diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c412e974..52b3e834 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.29" + ".": "0.1.0-alpha.30" } \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index 8cddf3f5..8b45b096 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -84,6 +84,12 @@ Lint/MissingSuper: Lint/UnusedMethodArgument: AutoCorrect: false +# This option is prone to causing accidental bugs. +Lint/UselessAssignment: + AutoCorrect: false + Exclude: + - "examples/**/*.rb" + Metrics/AbcSize: Enabled: false @@ -229,6 +235,10 @@ Style/RegexpLiteral: Style/SafeNavigation: Enabled: false +Style/SignalException: + Exclude: + - Rakefile + # We use these sparingly, where we anticipate future branches for the # inner conditional. Style/SoleNestedConditional: diff --git a/.stats.yml b/.stats.yml index d1b66331..037b2232 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,4 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-36a6db97756e8658369c9af3c0ac532ecacb032e5b8f6211094dcb4052943ff3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-95a3d7780935a38e0cf076d4ad2d68bd1a5641bced8398d972db2e92751d364a.yml +openapi_spec_hash: 9ebe818c4ad4f2d9c4e473b5192d7544 +config_hash: ec4f1e02d3528e3a93a73e33bca17c2a diff --git a/.yardopts b/.yardopts index c7c3301d..004c697b 100644 --- a/.yardopts +++ b/.yardopts @@ -1,3 +1,4 @@ --markup markdown +--markup-provider redcarpet --exclude /rbi --exclude /sig diff --git a/CHANGELOG.md b/CHANGELOG.md index 94af7d36..1685a1eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## 0.1.0-alpha.30 (2025-04-01) + +Full Changelog: [v0.1.0-alpha.29...v0.1.0-alpha.30](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.29...v0.1.0-alpha.30) + +### Bug Fixes + +* switch to github compatible markdown engine ([#189](https://github.com/orbcorp/orb-ruby/issues/189)) ([d7fc30d](https://github.com/orbcorp/orb-ruby/commit/d7fc30ddbf8ff3310c14184dea09dd1c54f29f2d)) + + +### Chores + +* disable dangerous rubocop auto correct rule ([#180](https://github.com/orbcorp/orb-ruby/issues/180)) ([0fdaa59](https://github.com/orbcorp/orb-ruby/commit/0fdaa59ee48e9a3e5563c209eb1fc1a4535f5897)) +* **internal:** codegen related update ([#179](https://github.com/orbcorp/orb-ruby/issues/179)) ([7946e79](https://github.com/orbcorp/orb-ruby/commit/7946e79a28f9451e9c4bd00d43333734e7f5c4a6)) +* **internal:** codegen related update ([#184](https://github.com/orbcorp/orb-ruby/issues/184)) ([ecaf100](https://github.com/orbcorp/orb-ruby/commit/ecaf100bea5029971bcf424a48fe5fe241a433b4)) +* **internal:** minor refactoring of utils ([#183](https://github.com/orbcorp/orb-ruby/issues/183)) ([3ac6554](https://github.com/orbcorp/orb-ruby/commit/3ac65546773f869f554233156f4c958b1a1d0810)) +* **internal:** version bump ([#177](https://github.com/orbcorp/orb-ruby/issues/177)) ([adbaaa7](https://github.com/orbcorp/orb-ruby/commit/adbaaa7ee0d790f72fa67d6f2b7e5b12ff2314c2)) +* more accurate type annotations for SDK internals ([#187](https://github.com/orbcorp/orb-ruby/issues/187)) ([76fc06e](https://github.com/orbcorp/orb-ruby/commit/76fc06e5b6566c63b7521db57089112014b507c3)) +* more readable output when tests fail ([#181](https://github.com/orbcorp/orb-ruby/issues/181)) ([8310ee4](https://github.com/orbcorp/orb-ruby/commit/8310ee4c764c7edec013d71b07dac2c6025df5a7)) +* re-order assignment lines to make unions easier to read ([#182](https://github.com/orbcorp/orb-ruby/issues/182)) ([384e751](https://github.com/orbcorp/orb-ruby/commit/384e751c5f36eec90e1e31b6a6110abe22ed0890)) +* relocate internal modules ([#186](https://github.com/orbcorp/orb-ruby/issues/186)) ([b939695](https://github.com/orbcorp/orb-ruby/commit/b9396955c4ae4b18356218fb1742c6518e3ad37e)) +* remove unnecessary & confusing module ([#185](https://github.com/orbcorp/orb-ruby/issues/185)) ([aa3588c](https://github.com/orbcorp/orb-ruby/commit/aa3588c525b6f62bda302bd3ad80228035972448)) +* update readme ([#188](https://github.com/orbcorp/orb-ruby/issues/188)) ([6a671ec](https://github.com/orbcorp/orb-ruby/commit/6a671ec91b3f11cd3a7a4e1359d795e8d2fdf22c)) + ## 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) diff --git a/Gemfile b/Gemfile index b064fc5a..e5ec01e9 100644 --- a/Gemfile +++ b/Gemfile @@ -5,12 +5,6 @@ source "https://rubygems.org" gemspec group :development do - gem "async" - gem "minitest" - gem "minitest-focus" - gem "minitest-hooks" - gem "minitest-proveit" - gem "minitest-rg" gem "rake" gem "rbs" gem "rubocop" @@ -20,6 +14,19 @@ group :development do # TODO: using a fork for now, the prettier below has a bug gem "syntax_tree-rbs", github: "stainless-api/syntax_tree-rbs", branch: "main" gem "tapioca" +end + +group :development, :test do + gem "async" + gem "minitest" + gem "minitest-focus" + gem "minitest-hooks" + gem "minitest-proveit" + gem "minitest-rg" +end + +group :development, :docs do + gem "redcarpet" gem "webrick" gem "yard" end diff --git a/Gemfile.lock b/Gemfile.lock index affaad2c..5d0901f4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.29) + orb (0.1.0.pre.alpha.30) connection_pool GEM @@ -29,8 +29,8 @@ GEM minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) - ast (2.4.2) - async (2.23.0) + ast (2.4.3) + async (2.23.1) console (~> 1.29) fiber-annotation io-event (~> 1.9) @@ -41,11 +41,11 @@ GEM bigdecimal (3.1.9) concurrent-ruby (1.3.5) connection_pool (2.5.0) - console (1.29.3) + console (1.30.2) fiber-annotation fiber-local (~> 1.1) json - csv (3.3.2) + csv (3.3.3) drb (2.2.1) erubi (1.13.1) ffi (1.17.1) @@ -56,16 +56,16 @@ GEM fileutils (1.7.3) i18n (1.14.7) concurrent-ruby (~> 1.0) - io-event (1.9.0) - json (2.10.1) + io-event (1.10.0) + json (2.10.2) language_server-protocol (3.17.0.4) lint_roller (1.1.0) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - logger (1.6.6) - metrics (0.12.1) - minitest (5.25.4) + logger (1.7.0) + metrics (0.12.2) + minitest (5.25.5) minitest-focus (1.4.0) minitest (>= 4, < 6) minitest-hooks (1.5.2) @@ -74,26 +74,29 @@ GEM minitest (> 5, < 7) minitest-rg (5.3.0) minitest (~> 5.0) + mutex_m (0.3.0) netrc (0.11.0) parallel (1.26.3) - parser (3.3.7.1) + parser (3.3.7.4) ast (~> 2.4.1) racc prettier_print (1.2.1) - prism (1.3.0) + prism (1.4.0) racc (1.8.1) rainbow (3.1.1) rake (13.2.1) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rbi (0.2.4) + rbi (0.3.1) prism (~> 1.0) + rbs (>= 3.4.4) sorbet-runtime (>= 0.5.9204) - rbs (3.8.1) + rbs (3.9.2) logger + redcarpet (3.6.1) regexp_parser (2.10.0) - rubocop (1.73.2) + rubocop (1.75.1) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -101,41 +104,43 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.38.0, < 2.0) + rubocop-ast (>= 1.43.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.38.1) - parser (>= 3.3.1.0) + rubocop-ast (1.43.0) + parser (>= 3.3.7.2) + prism (~> 1.4) ruby-progressbar (1.13.0) securerandom (0.4.1) - sorbet (0.5.11888) - sorbet-static (= 0.5.11888) - sorbet-runtime (0.5.11888) - sorbet-static (0.5.11888-x86_64-linux) - sorbet-static-and-runtime (0.5.11888) - sorbet (= 0.5.11888) - sorbet-runtime (= 0.5.11888) - spoom (1.5.4) + sorbet (0.5.11966) + sorbet-static (= 0.5.11966) + sorbet-runtime (0.5.11966) + sorbet-static (0.5.11966-x86_64-linux) + sorbet-static-and-runtime (0.5.11966) + sorbet (= 0.5.11966) + sorbet-runtime (= 0.5.11966) + spoom (1.6.1) erubi (>= 1.10.0) prism (>= 0.28.0) rbi (>= 0.2.3) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) - steep (1.9.4) + steep (1.10.0) activesupport (>= 5.1) concurrent-ruby (>= 1.1.10) csv (>= 3.0.9) fileutils (>= 1.1.0) json (>= 2.1.0) - language_server-protocol (>= 3.15, < 4.0) + language_server-protocol (>= 3.17.0.4, < 4.0) listen (~> 3.0) logger (>= 1.3.0) + mutex_m (>= 0.3.0) parser (>= 3.1) rainbow (>= 2.2.2, < 4.0) - rbs (~> 3.8) + rbs (~> 3.9) securerandom (>= 0.1) strscan (>= 1.0.0) - terminal-table (>= 2, < 4) + terminal-table (>= 2, < 5) uri (>= 0.12.0) strscan (3.1.2) syntax_tree (6.2.0) @@ -150,13 +155,15 @@ GEM spoom (>= 1.2.0) thor (>= 1.2.0) yard-sorbet - terminal-table (3.0.2) - unicode-display_width (>= 1.1.1, < 3) + terminal-table (4.0.0) + unicode-display_width (>= 1.1.1, < 4) thor (1.3.2) traces (0.15.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.6.0) + unicode-display_width (3.1.4) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) uri (1.0.3) webrick (1.9.1) yard (0.9.37) @@ -177,6 +184,7 @@ DEPENDENCIES orb! rake rbs + redcarpet rubocop sorbet steep diff --git a/README.md b/README.md index 8021caaa..14b6ca5b 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,10 @@ The underlying REST API documentation can be found on [docs.withorb.com](https:/ ## Installation -To use this gem during the beta, install directly from GitHub with Bundler by adding the following to your application's `Gemfile`: +To use this gem, install via Bundler by adding the following to your application's `Gemfile`: ```ruby -gem "orb", git: "https://github.com/orbcorp/orb-ruby", branch: "main" +gem "orb", "~> 0.1.0.pre.alpha.29" ``` To fetch an initial copy of the gem: @@ -22,12 +22,6 @@ To fetch an initial copy of the gem: bundle install ``` -To update the version used by your application when updates are pushed to GitHub: - -```sh -bundle update orb -``` - ## Usage ```ruby diff --git a/Rakefile b/Rakefile index 5f3bd994..d2b5b1bc 100644 --- a/Rakefile +++ b/Rakefile @@ -1,20 +1,25 @@ # frozen_string_literal: true +require "securerandom" +require "shellwords" + require "minitest/test_task" require "rake/clean" require "rubocop/rake_task" -require "securerandom" -require "shellwords" CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/]) xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --] -task(default: [:test, :format]) +multitask(default: [:test]) + +multitask(:test) do + rb = + FileList[ENV.fetch("TEST", "./test/**/*_test.rb")] + .map { "require_relative(#{_1.dump});" } + .join -Minitest::TestTask.create do |t| - t.libs = %w[.] - t.test_globs = ENV.fetch("TEST", "./test/**/*_test.rb") + ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 } end RuboCop::RakeTask.new(:rubocop) do |t| diff --git a/lib/orb.rb b/lib/orb.rb index ec71d656..5b11f3be 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -2,7 +2,7 @@ # 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") } +if Object.const_defined?(:Tapioca) && caller.chain([$0]).chain(ARGV).grep(/tapioca/) Warning.warn( <<~WARN \n @@ -36,13 +36,21 @@ # Package files. require_relative "orb/version" require_relative "orb/util" -require_relative "orb/extern" -require_relative "orb/base_model" -require_relative "orb/base_page" +require_relative "orb/type/converter" +require_relative "orb/type/unknown" +require_relative "orb/type/boolean_model" +require_relative "orb/type/enum" +require_relative "orb/type/union" +require_relative "orb/type/array_of" +require_relative "orb/type/hash_of" +require_relative "orb/type/base_model" +require_relative "orb/type/base_page" +require_relative "orb/type/request_parameters" +require_relative "orb/type" require_relative "orb/request_options" require_relative "orb/errors" -require_relative "orb/base_client" -require_relative "orb/pooled_net_requester" +require_relative "orb/transport/base_client" +require_relative "orb/transport/pooled_net_requester" require_relative "orb/client" require_relative "orb/page" require_relative "orb/models/alert" diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb deleted file mode 100644 index 4ec8d462..00000000 --- a/lib/orb/base_client.rb +++ /dev/null @@ -1,457 +0,0 @@ -# frozen_string_literal: true - -module Orb - # @api private - # - # @abstract - class BaseClient - # from whatwg fetch spec - 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 - } - # rubocop:enable Style/MutableConstant - - class << self - # @api private - # - # @param req [Hash{Symbol=>Object}] - # - # @raise [ArgumentError] - def validate!(req) - keys = [:method, :path, :query, :headers, :body, :unwrap, :page, :stream, :model, :options] - case req - in Hash - req.each_key do |k| - unless keys.include?(k) - raise ArgumentError.new("Request `req` keys must be one of #{keys}, got #{k.inspect}") - end - end - else - raise ArgumentError.new("Request `req` must be a Hash or RequestOptions, got #{req.inspect}") - end - end - - # @api private - # - # @param status [Integer] - # @param headers [Hash{String=>String}, Net::HTTPHeader] - # - # @return [Boolean] - def should_retry?(status, headers:) - coerced = Orb::Util.coerce_boolean(headers["x-should-retry"]) - case [coerced, status] - in [true | false, _] - coerced - in [_, 408 | 409 | 429 | (500..)] - # retry on: - # 408: timeouts - # 409: locks - # 429: rate limits - # 500+: unknown errors - true - else - false - end - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @option request [Object] :body - # - # @option request [Integer] :max_retries - # - # @option request [Float] :timeout - # - # @param status [Integer] - # - # @param response_headers [Hash{String=>String}, Net::HTTPHeader] - # - # @return [Hash{Symbol=>Object}] - def follow_redirect(request, status:, response_headers:) - method, url, headers = request.fetch_values(:method, :url, :headers) - location = - Kernel.then do - URI.join(url, response_headers["location"]) - rescue ArgumentError - message = "Server responded with status #{status} but no valid location header." - raise Orb::APIConnectionError.new(url: url, message: message) - end - - request = {**request, url: location} - - case [url.scheme, location.scheme] - in ["https", "http"] - message = "Tried to redirect to a insecure URL" - raise Orb::APIConnectionError.new(url: url, message: message) - else - nil - end - - # from whatwg fetch spec - case [status, method] - in [301 | 302, :post] | [303, _] - drop = %w[content-encoding content-language content-length content-location content-type] - request = { - **request, - method: method == :head ? :head : :get, - headers: headers.except(*drop), - body: nil - } - else - end - - # from undici - if Orb::Util.uri_origin(url) != Orb::Util.uri_origin(location) - drop = %w[authorization cookie host proxy-authorization] - request = {**request, headers: request.fetch(:headers).except(*drop)} - end - - request - end - - # @api private - # - # @param status [Integer, Orb::APIConnectionError] - # @param stream [Enumerable, nil] - def reap_connection!(status, stream:) - case status - in (..199) | (300..499) - stream&.each { next } - in Orb::APIConnectionError | (500..) - Orb::Util.close_fused!(stream) - else - end - end - end - - # @api private - # @return [Orb::PooledNetRequester] - attr_accessor :requester - - # @api private - # - # @param base_url [String] - # @param timeout [Float] - # @param max_retries [Integer] - # @param initial_retry_delay [Float] - # @param max_retry_delay [Float] - # @param headers [Hash{String=>String, Integer, Array, nil}] - # @param idempotency_header [String, nil] - def initialize( - base_url:, - timeout: 0.0, - max_retries: 0, - initial_retry_delay: 0.0, - max_retry_delay: 0.0, - headers: {}, - idempotency_header: nil - ) - @requester = Orb::PooledNetRequester.new - @headers = Orb::Util.normalized_headers( - self.class::PLATFORM_HEADERS, - { - "accept" => "application/json", - "content-type" => "application/json" - }, - headers - ) - @base_url = Orb::Util.parse_uri(base_url) - @idempotency_header = idempotency_header&.to_s&.downcase - @max_retries = max_retries - @timeout = timeout - @initial_retry_delay = initial_retry_delay - @max_retry_delay = max_retry_delay - end - - # @api private - # - # @return [Hash{String=>String}] - private def auth_headers = {} - - # @api private - # - # @return [String] - private def generate_idempotency_key = "stainless-ruby-retry-#{SecureRandom.uuid}" - - # @api private - # - # @param req [Hash{Symbol=>Object}] . - # - # @option req [Symbol] :method - # - # @option req [String, Array] :path - # - # @option req [Hash{String=>Array, String, nil}, nil] :query - # - # @option req [Hash{String=>String, Integer, Array, nil}, nil] :headers - # - # @option req [Object, nil] :body - # - # @option req [Symbol, nil] :unwrap - # - # @option req [Class, nil] :page - # - # @option req [Class, nil] :stream - # - # @option req [Orb::Converter, Class, nil] :model - # - # @param opts [Hash{Symbol=>Object}] . - # - # @option opts [String, nil] :idempotency_key - # - # @option opts [Hash{String=>Array, String, nil}, nil] :extra_query - # - # @option opts [Hash{String=>String, nil}, nil] :extra_headers - # - # @option opts [Object, nil] :extra_body - # - # @option opts [Integer, nil] :max_retries - # - # @option opts [Float, nil] :timeout - # - # @return [Hash{Symbol=>Object}] - private def build_request(req, opts) - method, uninterpolated_path = req.fetch_values(:method, :path) - - path = Orb::Util.interpolate_path(uninterpolated_path) - - query = Orb::Util.deep_merge(req[:query].to_h, opts[:extra_query].to_h) - - headers = Orb::Util.normalized_headers( - @headers, - auth_headers, - req[:headers].to_h, - opts[:extra_headers].to_h - ) - - if @idempotency_header && - !headers.key?(@idempotency_header) && - !Net::HTTP::IDEMPOTENT_METHODS_.include?(method.to_s.upcase) - headers[@idempotency_header] = opts.fetch(:idempotency_key) { generate_idempotency_key } - end - - unless headers.key?("x-stainless-retry-count") - headers["x-stainless-retry-count"] = "0" - end - - timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..)) - unless headers.key?("x-stainless-timeout") || timeout.zero? - headers["x-stainless-timeout"] = timeout.to_s - end - - headers.reject! { |_, v| v.to_s.empty? } - - body = - case method - in :get | :head | :options | :trace - nil - else - Orb::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) - end - - headers, encoded = Orb::Util.encode_content(headers, body) - { - method: method, - url: Orb::Util.join_parsed_uri(@base_url, {**req, path: path, query: query}), - headers: headers, - body: encoded, - max_retries: opts.fetch(:max_retries, @max_retries), - timeout: timeout - } - end - - # @api private - # - # @param headers [Hash{String=>String}] - # @param retry_count [Integer] - # - # @return [Float] - private def retry_delay(headers, retry_count:) - # Non-standard extension - span = Float(headers["retry-after-ms"], exception: false)&.then { _1 / 1000 } - return span if span - - retry_header = headers["retry-after"] - return span if (span = Float(retry_header, exception: false)) - - span = retry_header&.then do - Time.httpdate(_1) - Time.now - rescue ArgumentError - nil - end - return span if span - - scale = retry_count**2 - jitter = 1 - (0.25 * rand) - (@initial_retry_delay * scale * jitter).clamp(0, @max_retry_delay) - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @option request [Object] :body - # - # @option request [Integer] :max_retries - # - # @option request [Float] :timeout - # - # @param redirect_count [Integer] - # - # @param retry_count [Integer] - # - # @param send_retry_header [Boolean] - # - # @raise [Orb::APIError] - # @return [Array(Integer, Net::HTTPResponse, Enumerable)] - private def send_request(request, redirect_count:, retry_count:, send_retry_header:) - url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout) - input = {**request.except(:timeout), deadline: Orb::Util.monotonic_secs + timeout} - - if send_retry_header - headers["x-stainless-retry-count"] = retry_count.to_s - end - - begin - status, response, stream = @requester.execute(input) - rescue Orb::APIConnectionError => e - status = e - end - - case status - in ..299 - [status, response, stream] - in 300..399 if redirect_count >= self.class::MAX_REDIRECTS - self.class.reap_connection!(status, stream: stream) - - message = "Failed to complete the request within #{self.class::MAX_REDIRECTS} redirects." - raise Orb::APIConnectionError.new(url: url, message: message) - in 300..399 - self.class.reap_connection!(status, stream: stream) - - request = self.class.follow_redirect(request, status: status, response_headers: response) - send_request( - request, - redirect_count: redirect_count + 1, - retry_count: retry_count, - send_retry_header: send_retry_header - ) - in Orb::APIConnectionError if retry_count >= max_retries - raise status - in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: response) - decoded = Kernel.then do - Orb::Util.decode_content(response, stream: stream, suppress_error: true) - ensure - self.class.reap_connection!(status, stream: stream) - end - - raise Orb::APIStatusError.for( - url: url, - status: status, - body: decoded, - request: nil, - response: response - ) - in (400..) | Orb::APIConnectionError - self.class.reap_connection!(status, stream: stream) - - delay = retry_delay(response, retry_count: retry_count) - sleep(delay) - - send_request( - request, - redirect_count: redirect_count, - retry_count: retry_count + 1, - send_retry_header: send_retry_header - ) - end - end - - # Execute the request specified by `req`. This is the method that all resource - # methods call into. - # - # @param req [Hash{Symbol=>Object}] . - # - # @option req [Symbol] :method - # - # @option req [String, Array] :path - # - # @option req [Hash{String=>Array, String, nil}, nil] :query - # - # @option req [Hash{String=>String, Integer, Array, nil}, nil] :headers - # - # @option req [Object, nil] :body - # - # @option req [Symbol, nil] :unwrap - # - # @option req [Class, nil] :page - # - # @option req [Class, nil] :stream - # - # @option req [Orb::Converter, Class, nil] :model - # - # @option req [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :options - # - # @raise [Orb::APIError] - # @return [Object] - def request(req) - self.class.validate!(req) - model = req.fetch(:model) { Orb::Unknown } - opts = req[:options].to_h - Orb::RequestOptions.validate!(opts) - request = build_request(req.except(:options), opts) - url = request.fetch(:url) - - # Don't send the current retry count in the headers if the caller modified the header defaults. - send_retry_header = request.fetch(:headers)["x-stainless-retry-count"] == "0" - status, response, stream = send_request( - request, - redirect_count: 0, - retry_count: 0, - send_retry_header: send_retry_header - ) - - decoded = Orb::Util.decode_content(response, stream: stream) - case req - in { stream: Class => st } - 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 - unwrapped = Orb::Util.dig(decoded, req[:unwrap]) - Orb::Converter.coerce(model, unwrapped) - end - end - - # @return [String] - def inspect - # rubocop:disable Layout/LineLength - base_url = Orb::Util.unparse_uri(@base_url) - "#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{base_url} max_retries=#{@max_retries} timeout=#{@timeout}>" - # rubocop:enable Layout/LineLength - end - end -end diff --git a/lib/orb/base_model.rb b/lib/orb/base_model.rb deleted file mode 100644 index 63548de6..00000000 --- a/lib/orb/base_model.rb +++ /dev/null @@ -1,1241 +0,0 @@ -# frozen_string_literal: true - -module Orb - # @api private - module Converter - # rubocop:disable Lint/UnusedMethodArgument - - # @api private - # - # @param value [Object] - # - # @return [Object] - def coerce(value) = value - - # @api private - # - # @param value [Object] - # - # @return [Object] - def dump(value) = value - - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) = (raise NotImplementedError) - - # rubocop:enable Lint/UnusedMethodArgument - - class << self - # @api private - # - # @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?" - # - # @return [Proc] - def type_info(spec) - case spec - in Hash - type_info(spec.slice(:const, :enum, :union).first&.last) - in Proc - spec - in Orb::Converter | Module | Symbol - -> { spec } - in true | false - -> { Orb::BooleanModel } - in NilClass | Integer | Float - -> { spec.class } - end - end - - # @api private - # - # Based on `target`, transform `value` into `target`, to the extent possible: - # - # 1. if the given `value` conforms to `target` already, return the given `value` - # 2. if it's possible and safe to convert the given `value` to `target`, then the - # converted value - # 3. otherwise, the given `value` unaltered - # - # @param target [Orb::Converter, Class] - # @param value [Object] - # - # @return [Object] - def coerce(target, value) - case target - in Orb::Converter - target.coerce(value) - in Symbol - case value - in Symbol | String if (val = value.to_sym) == target - val - else - value - end - in Module - case target - in -> { _1 <= NilClass } - nil - in -> { _1 <= Integer } - value.is_a?(Numeric) ? Integer(value) : value - in -> { _1 <= Float } - value.is_a?(Numeric) ? Float(value) : value - in -> { _1 <= Symbol } - value.is_a?(String) ? value.to_sym : value - in -> { _1 <= String } - value.is_a?(Symbol) ? value.to_s : value - in -> { _1 <= Date || _1 <= Time } - value.is_a?(String) ? target.parse(value) : value - in -> { _1 <= IO } - value.is_a?(String) ? StringIO.new(value) : value - else - value - end - end - end - - # @api private - # - # @param target [Orb::Converter, Class] - # @param value [Object] - # - # @return [Object] - def dump(target, value) - case target - in Orb::Converter - target.dump(value) - else - value - end - end - - # @api private - # - # The underlying algorithm for computing maximal compatibility is subject to - # future improvements. - # - # Similar to `#.coerce`, used to determine the best union variant to decode into. - # - # 1. determine if strict-ish coercion is possible - # 2. return either result of successful coercion or if loose coercion is possible - # 3. return a score for recursively tallied count for fields that can be coerced - # - # @param target [Orb::Converter, Class] - # @param value [Object] - # - # @return [Object] - def try_strict_coerce(target, value) - case target - in Orb::Converter - target.try_strict_coerce(value) - in Symbol - case value - in Symbol | String if (val = value.to_sym) == target - [true, val, 1] - else - [false, false, 0] - end - in Module - case [target, value] - in [-> { _1 <= NilClass }, _] - [true, nil, value.nil? ? 1 : 0] - in [-> { _1 <= Integer }, Numeric] - [true, Integer(value), 1] - in [-> { _1 <= Float }, Numeric] - [true, Float(value), 1] - in [-> { _1 <= Symbol }, String] - [true, value.to_sym, 1] - in [-> { _1 <= String }, Symbol] - [true, value.to_s, 1] - in [-> { _1 <= Date || _1 <= Time }, String] - Kernel.then do - [true, target.parse(value), 1] - rescue ArgumentError - [false, false, 0] - end - in [_, ^target] - [true, value, 1] - else - [false, false, 0] - end - end - end - end - end - - # @api private - # - # @abstract - # - # When we don't know what to expect for the value. - class Unknown - extend Orb::Converter - - # rubocop:disable Lint/UnusedMethodArgument - - # @param other [Object] - # - # @return [Boolean] - def self.===(other) = true - - # @param other [Object] - # - # @return [Boolean] - def self.==(other) = other.is_a?(Class) && other <= Orb::Unknown - - class << self - # @!parse - # # @api private - # # - # # @param value [Object] - # # - # # @return [Object] - # def coerce(value) = super - - # @!parse - # # @api private - # # - # # @param value [Object] - # # - # # @return [Object] - # def dump(value) = super - - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - # prevent unknown variant from being chosen during the first coercion pass - [false, true, 0] - end - end - - # rubocop:enable Lint/UnusedMethodArgument - end - - # @api private - # - # @abstract - # - # Ruby has no Boolean class; this is something for models to refer to. - class BooleanModel - extend Orb::Converter - - # @param other [Object] - # - # @return [Boolean] - def self.===(other) = other == true || other == false - - # @param other [Object] - # - # @return [Boolean] - def self.==(other) = other.is_a?(Class) && other <= Orb::BooleanModel - - class << self - # @!parse - # # @api private - # # - # # @param value [Boolean, Object] - # # - # # @return [Boolean, Object] - # def coerce(value) = super - - # @!parse - # # @api private - # # - # # @param value [Boolean, Object] - # # - # # @return [Boolean, Object] - # def dump(value) = super - - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - case value - in true | false - [true, value, 1] - else - [false, false, 0] - end - end - end - end - - # @api private - # - # A value from among a specified list of options. OpenAPI enum values map to Ruby - # values in the SDK as follows: - # - # 1. boolean => true | false - # 2. integer => Integer - # 3. float => Float - # 4. string => Symbol - # - # We can therefore convert string values to Symbols, but can't convert other - # values safely. - # - # @example - # # `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 - # 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 - - # All of the valid Symbol values for this enum. - # - # @return [Array] - def values = (@values ||= constants.map { const_get(_1) }) - - # @api private - # - # Guard against thread safety issues by instantiating `@values`. - private def finalize! = values - - # @param other [Object] - # - # @return [Boolean] - def ===(other) = values.include?(other) - - # @param other [Object] - # - # @return [Boolean] - def ==(other) - other.is_a?(Module) && other.singleton_class.ancestors.include?(Orb::Enum) && other.values.to_set == values.to_set - 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 - - # @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] - else - case [value, values.first] - in [true | false, true | false] | [Integer, Integer] | [Symbol | String, Symbol] - [false, true, 0] - else - [false, false, 0] - end - end - end - end - - # @api private - # - # @example - # # `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 - # 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 - - # @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 - - # 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 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 | Module | Hash - [nil, Orb::Converter.type_info(key)] - 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 - - 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 - - # @param other [Object] - # - # @return [Boolean] - def ===(other) - known_variants.any? do |_, variant_fn| - variant_fn.call === other - end - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) - other.is_a?(Module) && other.singleton_class.ancestors.include?(Orb::Union) && other.derefed_variants == derefed_variants - end - - # @api private - # - # @param value [Object] - # - # @return [Object] - def coerce(value) - if (variant = resolve_variant(value)) - return Orb::Converter.coerce(variant, value) - end - - matches = [] - - 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 - end - - _, 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 - - known_variants.each do |_, variant_fn| - variant = variant_fn.call - if variant === value - return Orb::Converter.dump(variant, value) - end - 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 - - coercible = false - max_score = 0 - - 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 - end - - [false, coercible, max_score] - end - - # rubocop:enable Style/CaseEquality - # rubocop:enable Style/HashEachMethods - end - - # @api private - # - # @abstract - # - # Array of items of a given type. - class ArrayOf - include Orb::Converter - - # @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] - # - # @return [Boolean] - def ===(other) - type = item_type - case other - in Array - # rubocop:disable Style/CaseEquality - other.all? { type === _1 } - # rubocop:enable Style/CaseEquality - else - false - end - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) = other.is_a?(Orb::ArrayOf) && other.item_type == item_type - - # @api private - # - # @param value [Enumerable, Object] - # - # @return [Array, Object] - def coerce(value) - type = item_type - case value - in Enumerable unless value.is_a?(Hash) - value.map { Orb::Converter.coerce(type, _1) } - else - value - end - end - - # @api private - # - # @param value [Enumerable, Object] - # - # @return [Array, Object] - def dump(value) - type = item_type - case value - in Enumerable unless value.is_a?(Hash) - value.map { Orb::Converter.dump(type, _1) }.to_a - else - value - end - end - - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - case value - in Array - type = item_type - great_success = true - tally = 0 - - mapped = - value.map do |item| - case Orb::Converter.try_strict_coerce(type, item) - in [true, coerced, score] - tally += score - coerced - in [false, true, score] - great_success = false - tally += score - item - in [false, false, _] - great_success &&= item.nil? - item - end - end - - if great_success - [true, mapped, tally] - else - [false, true, tally] - end - else - [false, false, 0] - end - end - - # @api private - # - # @return [Orb::Converter, Class] - protected def item_type = @item_type_fn.call - - # @api private - # - # @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 initialize(type_info, spec = {}) - @item_type_fn = Orb::Converter.type_info(type_info || spec) - end - end - - # @api private - # - # @abstract - # - # Hash of items of a given type. - class HashOf - include Orb::Converter - - # @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] - # - # @return [Boolean] - def ===(other) - type = item_type - case other - in Hash - other.all? do |key, val| - case [key, val] - in [Symbol | String, ^type] - true - else - false - end - end - else - false - end - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) = other.is_a?(Orb::HashOf) && other.item_type == item_type - - # @api private - # - # @param value [Hash{Object=>Object}, Object] - # - # @return [Hash{Symbol=>Object}, Object] - def coerce(value) - type = item_type - case value - in Hash - value.to_h do |key, val| - coerced = Orb::Converter.coerce(type, val) - [key.is_a?(String) ? key.to_sym : key, coerced] - end - else - value - end - end - - # @api private - # - # @param value [Hash{Object=>Object}, Object] - # - # @return [Hash{Symbol=>Object}, Object] - def dump(value) - type = item_type - case value - in Hash - value.transform_values do |val| - Orb::Converter.dump(type, val) - end - else - value - end - end - - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - case value - in Hash - type = item_type - great_success = true - tally = 0 - - mapped = - value.transform_values do |val| - case Orb::Converter.try_strict_coerce(type, val) - in [true, coerced, score] - tally += score - coerced - in [false, true, score] - great_success = false - tally += score - val - in [false, false, _] - great_success &&= val.nil? - val - end - end - - if great_success - [true, mapped, tally] - else - [false, true, tally] - end - else - [false, false, 0] - end - end - - # @api private - # - # @return [Orb::Converter, Class] - protected def item_type = @item_type_fn.call - - # @api private - # - # @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 initialize(type_info, spec = {}) - @item_type_fn = Orb::Converter.type_info(type_info || spec) - end - end - - # @abstract - # - # @example - # # `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 - - class << self - # @api private - # - # Assumes superclass fields are totally defined before fields are accessed / - # defined on subclasses. - # - # @return [Hash{Symbol=>Hash{Symbol=>Object}}] - def known_fields - @known_fields ||= (self < Orb::BaseModel ? superclass.known_fields.dup : {}) - end - - # @api private - # - # @return [Hash{Symbol=>Symbol}] - def reverse_map - @reverse_map ||= (self < Orb::BaseModel ? superclass.reverse_map.dup : {}) - end - - # @api private - # - # @return [Hash{Symbol=>Hash{Symbol=>Object}}] - def fields - known_fields.transform_values do |field| - {**field.except(:type_fn), type: field.fetch(:type_fn).call} - end - end - - # @api private - # - # @return [Hash{Symbol=>Proc}] - def defaults = (@defaults ||= {}) - - # @api private - # - # @param name_sym [Symbol] - # - # @param required [Boolean] - # - # @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?" - private def add_field(name_sym, required:, type_info:, spec:) - type_fn, info = - case type_info - in Proc | Module | Orb::Converter - [Orb::Converter.type_info({**spec, union: type_info}), spec] - in Hash - [Orb::Converter.type_info(type_info), type_info] - end - - fallback = info[:const] - defaults[name_sym] = fallback if required && !info[:nil?] && info.key?(:const) - - key = info[:api_name]&.tap { reverse_map[_1] = name_sym } || name_sym - setter = "#{name_sym}=" - - if known_fields.key?(name_sym) - [name_sym, setter].each { undef_method(_1) } - end - - known_fields[name_sym] = {mode: @mode, key: key, required: required, type_fn: type_fn} - - define_method(setter) do |val| - @data[key] = val - end - - define_method(name_sym) do - field_type = type_fn.call - value = @data.fetch(key) { self.class.defaults[key] } - Orb::Converter.coerce(field_type, value) - rescue StandardError - name = self.class.name.split("::").last - raise Orb::ConversionError.new( - "Failed to parse #{name}.#{name_sym} as #{field_type.inspect}. " \ - "To get the unparsed API response, use #{name}[:#{key}]." - ) - end - end - - # @api private - # - # @param name_sym [Symbol] - # - # @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 required(name_sym, type_info, spec = {}) - add_field(name_sym, required: true, type_info: type_info, spec: spec) - end - - # @api private - # - # @param name_sym [Symbol] - # - # @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 optional(name_sym, type_info, spec = {}) - add_field(name_sym, required: false, type_info: type_info, spec: spec) - end - - # @api private - # - # `request_only` attributes not excluded from `.#coerce` when receiving responses - # even if well behaved servers should not send them - # - # @param blk [Proc] - private def request_only(&blk) - @mode = :dump - blk.call - ensure - @mode = nil - end - - # @api private - # - # `response_only` attributes are omitted from `.#dump` when making requests - # - # @param blk [Proc] - private def response_only(&blk) - @mode = :coerce - blk.call - ensure - @mode = nil - end - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) - case other - in Orb::BaseModel - self.class.fields == other.class.fields && @data == other.to_h - else - false - end - end - - class << self - # @api private - # - # @param value [Orb::BaseModel, Hash{Object=>Object}, Object] - # - # @return [Orb::BaseModel, Object] - def coerce(value) - case Orb::Util.coerce_hash(value) - in Hash => coerced - new(coerced) - else - value - end - end - - # @api private - # - # @param value [Orb::BaseModel, Object] - # - # @return [Hash{Object=>Object}, Object] - def dump(value) - unless (coerced = Orb::Util.coerce_hash(value)).is_a?(Hash) - return value - end - - values = coerced.filter_map do |key, val| - name = key.to_sym - case (field = known_fields[name]) - in nil - [name, val] - else - mode, type_fn, api_name = field.fetch_values(:mode, :type_fn, :key) - case mode - in :coerce - next - else - target = type_fn.call - [api_name, Orb::Converter.dump(target, val)] - end - end - end.to_h - - defaults.each do |key, val| - next if values.key?(key) - - values[key] = val - end - - values - end - - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - case value - in Hash | Orb::BaseModel - value = value.to_h - else - return [false, false, 0] - end - - keys = value.keys.to_set - great_success = true - tally = 0 - acc = {} - - known_fields.each_value do |field| - mode, required, type_fn, api_name = field.fetch_values(:mode, :required, :type_fn, :key) - keys.delete(api_name) - - case [required && mode != :dump, value.key?(api_name)] - in [_, true] - target = type_fn.call - item = value.fetch(api_name) - case Orb::Converter.try_strict_coerce(target, item) - in [true, coerced, score] - tally += score - acc[api_name] = coerced - in [false, true, score] - great_success = false - tally += score - acc[api_name] = item - in [false, false, _] - great_success &&= item.nil? - end - in [true, false] - great_success = false - in [false, false] - nil - end - end - - keys.each do |key| - acc[key] = value.fetch(key) - end - - great_success ? [true, new(acc), tally] : [false, true, tally] - end - end - - # Returns the raw value associated with the given key, if found. Otherwise, nil is - # returned. - # - # It is valid to lookup keys that are not in the API spec, for example to access - # undocumented features. This method does not parse response data into - # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. - # - # @param key [Symbol] - # - # @return [Object, nil] - def [](key) - unless key.instance_of?(Symbol) - raise ArgumentError.new("Expected symbol key for lookup, got #{key.inspect}") - end - - @data[key] - end - - # 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. - # - # @return [Hash{Symbol=>Object}] - def to_h = @data - - alias_method :to_hash, :to_h - - # @param keys [Array, nil] - # - # @return [Hash{Symbol=>Object}] - def deconstruct_keys(keys) - (keys || self.class.known_fields.keys).filter_map do |k| - unless self.class.known_fields.key?(k) - next - end - - [k, method(k).call] - end - .to_h - end - - # Create a new instance of a model. - # - # @param data [Hash{Symbol=>Object}, Orb::BaseModel] - def initialize(data = {}) - case Orb::Util.coerce_hash(data) - in Hash => coerced - @data = coerced.to_h do |key, value| - name = key.to_sym - mapped = self.class.reverse_map.fetch(name, name) - type = self.class.fields[mapped]&.fetch(:type) - stored = - case [type, value] - in [Module, Hash] if type <= Orb::BaseModel - type.new(value) - in [Orb::ArrayOf, Array] | [Orb::HashOf, Hash] - type.coerce(value) - else - value - end - [name, stored] - end - else - raise ArgumentError.new("Expected a #{Hash} or #{Orb::BaseModel}, got #{data.inspect}") - end - end - - # @return [String] - def to_s = @data.to_s - - # @return [String] - def inspect - "#<#{self.class.name}:0x#{object_id.to_s(16)} #{deconstruct_keys(nil).map do |k, v| - "#{k}=#{v.inspect}" - end.join(' ')}>" - end - end -end diff --git a/lib/orb/base_page.rb b/lib/orb/base_page.rb deleted file mode 100644 index 4e665f97..00000000 --- a/lib/orb/base_page.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -module Orb - # @example - # if page.has_next? - # page = page.next_page - # end - # - # @example - # page.auto_paging_each do |top_level| - # puts(top_level) - # end - # - # @example - # top_levels = - # page - # .to_enum - # .lazy - # .select { _1.object_id.even? } - # .map(&:itself) - # .take(2) - # .to_a - # - # top_levels => Array - module BasePage - # rubocop:disable Lint/UnusedMethodArgument - - # @return [Boolean] - def next_page? = (raise NotImplementedError) - - # @raise [Orb::APIError] - # @return [Orb::BasePage] - def next_page = (raise NotImplementedError) - - # @param blk [Proc] - # - # @return [void] - def auto_paging_each(&) = (raise NotImplementedError) - - # @return [Enumerable] - def to_enum = super(:auto_paging_each) - - alias_method :enum_for, :to_enum - - # @api private - # - # @param client [Orb::BaseClient] - # @param req [Hash{Symbol=>Object}] - # @param headers [Hash{String=>String}, Net::HTTPHeader] - # @param page_data [Object] - def initialize(client:, req:, headers:, page_data:) - @client = client - @req = req - super() - end - - # rubocop:enable Lint/UnusedMethodArgument - end -end diff --git a/lib/orb/client.rb b/lib/orb/client.rb index dd7f8043..257da5d5 100644 --- a/lib/orb/client.rb +++ b/lib/orb/client.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Orb - class Client < Orb::BaseClient + class Client < Orb::Transport::BaseClient # Default max number of retries to attempt after a failed retryable request. DEFAULT_MAX_RETRIES = 2 diff --git a/lib/orb/extern.rb b/lib/orb/extern.rb deleted file mode 100644 index f57216e6..00000000 --- a/lib/orb/extern.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -module Orb - # @api private - module Extern - end -end diff --git a/lib/orb/models/alert.rb b/lib/orb/models/alert.rb index 6c7af48c..416ae45f 100644 --- a/lib/orb/models/alert.rb +++ b/lib/orb/models/alert.rb @@ -209,11 +209,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 bb32b4bb..fb7cc17b 100644 --- a/lib/orb/models/alert_create_for_customer_params.rb +++ b/lib/orb/models/alert_create_for_customer_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertCreateForCustomerParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency @@ -47,11 +47,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 92bd5a49..8ad244d0 100644 --- a/lib/orb/models/alert_create_for_external_customer_params.rb +++ b/lib/orb/models/alert_create_for_external_customer_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertCreateForExternalCustomerParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency @@ -47,11 +47,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 20e11c30..761322db 100644 --- a/lib/orb/models/alert_create_for_subscription_params.rb +++ b/lib/orb/models/alert_create_for_subscription_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertCreateForSubscriptionParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute thresholds @@ -64,11 +64,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/alert_disable_params.rb b/lib/orb/models/alert_disable_params.rb index a235d065..a13fe14a 100644 --- a/lib/orb/models/alert_disable_params.rb +++ b/lib/orb/models/alert_disable_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertDisableParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute subscription_id diff --git a/lib/orb/models/alert_enable_params.rb b/lib/orb/models/alert_enable_params.rb index 422778ae..53d1a4fa 100644 --- a/lib/orb/models/alert_enable_params.rb +++ b/lib/orb/models/alert_enable_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertEnableParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute subscription_id diff --git a/lib/orb/models/alert_list_params.rb b/lib/orb/models/alert_list_params.rb index cf0bcc16..98b2f92a 100644 --- a/lib/orb/models/alert_list_params.rb +++ b/lib/orb/models/alert_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt diff --git a/lib/orb/models/alert_retrieve_params.rb b/lib/orb/models/alert_retrieve_params.rb index 00640dbc..d44eeda1 100644 --- a/lib/orb/models/alert_retrieve_params.rb +++ b/lib/orb/models/alert_retrieve_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertRetrieveParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/alert_update_params.rb b/lib/orb/models/alert_update_params.rb index 9a7dd021..07626fa0 100644 --- a/lib/orb/models/alert_update_params.rb +++ b/lib/orb/models/alert_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class AlertUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute thresholds diff --git a/lib/orb/models/amount_discount.rb b/lib/orb/models/amount_discount.rb index 1044e276..b6cdd9e0 100644 --- a/lib/orb/models/amount_discount.rb +++ b/lib/orb/models/amount_discount.rb @@ -43,11 +43,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/billable_metric.rb b/lib/orb/models/billable_metric.rb index e1c509c8..bcc752a0 100644 --- a/lib/orb/models/billable_metric.rb +++ b/lib/orb/models/billable_metric.rb @@ -65,11 +65,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 b743063a..6607f4b1 100644 --- a/lib/orb/models/billing_cycle_relative_date.rb +++ b/lib/orb/models/billing_cycle_relative_date.rb @@ -10,11 +10,9 @@ module BillingCycleRelativeDate finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/coupon.rb b/lib/orb/models/coupon.rb index 5f23f55c..7c6acc57 100644 --- a/lib/orb/models/coupon.rb +++ b/lib/orb/models/coupon.rb @@ -76,10 +76,8 @@ module Discount variant :amount, -> { Orb::Models::AmountDiscount } # @!parse - # class << self - # # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)] - # def variants; end - # end + # # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)] + # def self.variants; end end end end diff --git a/lib/orb/models/coupon_archive_params.rb b/lib/orb/models/coupon_archive_params.rb index 619351db..3f09d194 100644 --- a/lib/orb/models/coupon_archive_params.rb +++ b/lib/orb/models/coupon_archive_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CouponArchiveParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/coupon_create_params.rb b/lib/orb/models/coupon_create_params.rb index ebeb2f47..aafe5685 100644 --- a/lib/orb/models/coupon_create_params.rb +++ b/lib/orb/models/coupon_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CouponCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute discount @@ -93,10 +93,8 @@ class NewCouponAmountDiscount < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount)] - # def variants; end - # end + # # @return [Array(Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount)] + # def self.variants; end end end end diff --git a/lib/orb/models/coupon_fetch_params.rb b/lib/orb/models/coupon_fetch_params.rb index 60763772..3c327950 100644 --- a/lib/orb/models/coupon_fetch_params.rb +++ b/lib/orb/models/coupon_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CouponFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/coupon_list_params.rb b/lib/orb/models/coupon_list_params.rb index a4251958..8dc123e5 100644 --- a/lib/orb/models/coupon_list_params.rb +++ b/lib/orb/models/coupon_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CouponListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/coupons/subscription_list_params.rb b/lib/orb/models/coupons/subscription_list_params.rb index 1766bc45..acfccedb 100644 --- a/lib/orb/models/coupons/subscription_list_params.rb +++ b/lib/orb/models/coupons/subscription_list_params.rb @@ -5,7 +5,7 @@ module Models module Coupons class SubscriptionListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/credit_note.rb b/lib/orb/models/credit_note.rb index eca35c1a..36ae5f39 100644 --- a/lib/orb/models/credit_note.rb +++ b/lib/orb/models/credit_note.rb @@ -329,11 +329,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -386,11 +384,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class AppliesToPrice < Orb::BaseModel @@ -424,11 +420,9 @@ module Reason finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Type @@ -439,11 +433,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class Discount < Orb::BaseModel @@ -492,11 +484,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 a08aa164..6c561197 100644 --- a/lib/orb/models/credit_note_create_params.rb +++ b/lib/orb/models/credit_note_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CreditNoteCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute line_items @@ -67,11 +67,9 @@ module Reason finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/credit_note_fetch_params.rb b/lib/orb/models/credit_note_fetch_params.rb index b71c30fd..305f35c9 100644 --- a/lib/orb/models/credit_note_fetch_params.rb +++ b/lib/orb/models/credit_note_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CreditNoteFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/credit_note_list_params.rb b/lib/orb/models/credit_note_list_params.rb index 005be39f..5b84f054 100644 --- a/lib/orb/models/credit_note_list_params.rb +++ b/lib/orb/models/credit_note_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CreditNoteListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index 37cd9408..08f95373 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -434,11 +434,9 @@ module PaymentProvider finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class ShippingAddress < Orb::BaseModel @@ -700,11 +698,9 @@ module Country finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Type @@ -784,11 +780,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -840,11 +834,9 @@ module ProviderType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index db62ceb4..c41ed123 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute email @@ -410,11 +410,9 @@ module PaymentProvider finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class ReportingConfiguration < Orb::BaseModel @@ -531,10 +529,8 @@ class NewTaxJarConfiguration < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration)] - # def variants; end - # end + # # @return [Array(Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration)] + # def self.variants; end end class TaxID < Orb::BaseModel @@ -752,11 +748,9 @@ module Country finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Type @@ -836,11 +830,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customer_delete_params.rb b/lib/orb/models/customer_delete_params.rb index 2e7f479e..fc70ff50 100644 --- a/lib/orb/models/customer_delete_params.rb +++ b/lib/orb/models/customer_delete_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerDeleteParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/customer_fetch_by_external_id_params.rb b/lib/orb/models/customer_fetch_by_external_id_params.rb index a7ee2e17..5ed7ee32 100644 --- a/lib/orb/models/customer_fetch_by_external_id_params.rb +++ b/lib/orb/models/customer_fetch_by_external_id_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerFetchByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/customer_fetch_params.rb b/lib/orb/models/customer_fetch_params.rb index 83417ff2..339f38ff 100644 --- a/lib/orb/models/customer_fetch_params.rb +++ b/lib/orb/models/customer_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/customer_list_params.rb b/lib/orb/models/customer_list_params.rb index f9c937bb..ad236606 100644 --- a/lib/orb/models/customer_list_params.rb +++ b/lib/orb/models/customer_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt diff --git a/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb b/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb index 4aceb1ea..0059b05f 100644 --- a/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +++ b/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb b/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb index 01f0308e..93514b0f 100644 --- a/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +++ b/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerSyncPaymentMethodsFromGatewayParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse 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 56413c1f..0565158d 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerUpdateByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute accounting_sync_configuration @@ -413,11 +413,9 @@ module PaymentProvider finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class ReportingConfiguration < Orb::BaseModel @@ -536,10 +534,8 @@ class NewTaxJarConfiguration < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration)] - # def variants; end - # end + # # @return [Array(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration)] + # def self.variants; end end class TaxID < Orb::BaseModel @@ -757,11 +753,9 @@ module Country finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Type @@ -841,11 +835,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index 17f1b612..a5bdcebf 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class CustomerUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute accounting_sync_configuration @@ -405,11 +405,9 @@ module PaymentProvider finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class ReportingConfiguration < Orb::BaseModel @@ -526,10 +524,8 @@ class NewTaxJarConfiguration < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration)] - # def variants; end - # end + # # @return [Array(Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration)] + # def self.variants; end end class TaxID < Orb::BaseModel @@ -747,11 +743,9 @@ module Country finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Type @@ -831,11 +825,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 e01ac158..8f8dc5c0 100644 --- a/lib/orb/models/customers/balance_transaction_create_params.rb +++ b/lib/orb/models/customers/balance_transaction_create_params.rb @@ -5,7 +5,7 @@ module Models module Customers class BalanceTransactionCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute amount @@ -42,11 +42,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 1593e7a3..d314bed3 100644 --- a/lib/orb/models/customers/balance_transaction_create_response.rb +++ b/lib/orb/models/customers/balance_transaction_create_response.rb @@ -109,11 +109,9 @@ module Action finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditNote < Orb::BaseModel @@ -154,11 +152,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customers/balance_transaction_list_params.rb b/lib/orb/models/customers/balance_transaction_list_params.rb index 2aa67898..09471c6e 100644 --- a/lib/orb/models/customers/balance_transaction_list_params.rb +++ b/lib/orb/models/customers/balance_transaction_list_params.rb @@ -5,7 +5,7 @@ module Models module Customers class BalanceTransactionListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/customers/balance_transaction_list_response.rb b/lib/orb/models/customers/balance_transaction_list_response.rb index 92303c16..e6d5e900 100644 --- a/lib/orb/models/customers/balance_transaction_list_response.rb +++ b/lib/orb/models/customers/balance_transaction_list_response.rb @@ -109,11 +109,9 @@ module Action finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditNote < Orb::BaseModel @@ -154,11 +152,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 d90ba826..2a8aa036 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 @@ -5,7 +5,7 @@ module Models module Customers class CostListByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency @@ -58,11 +58,9 @@ module ViewMode finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 d3554473..10ab8d4b 100644 --- a/lib/orb/models/customers/cost_list_params.rb +++ b/lib/orb/models/customers/cost_list_params.rb @@ -5,7 +5,7 @@ module Models module Customers class CostListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency @@ -58,11 +58,9 @@ module ViewMode finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customers/credit_list_by_external_id_params.rb b/lib/orb/models/customers/credit_list_by_external_id_params.rb index 39a89406..dc9d0fbe 100644 --- a/lib/orb/models/customers/credit_list_by_external_id_params.rb +++ b/lib/orb/models/customers/credit_list_by_external_id_params.rb @@ -5,7 +5,7 @@ module Models module Customers class CreditListByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency 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 6ed2d5ba..2742e64b 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 @@ -60,11 +60,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customers/credit_list_params.rb b/lib/orb/models/customers/credit_list_params.rb index bc381506..c1986b2e 100644 --- a/lib/orb/models/customers/credit_list_params.rb +++ b/lib/orb/models/customers/credit_list_params.rb @@ -5,7 +5,7 @@ module Models module Customers class CreditListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency diff --git a/lib/orb/models/customers/credit_list_response.rb b/lib/orb/models/customers/credit_list_response.rb index 411e8ca0..68f9cbba 100644 --- a/lib/orb/models/customers/credit_list_response.rb +++ b/lib/orb/models/customers/credit_list_response.rb @@ -60,11 +60,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 a98e4ded..a0339fe9 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 @@ -6,7 +6,7 @@ module Customers module Credits class LedgerCreateEntryByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute amount @@ -141,11 +141,9 @@ module EntryType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class InvoiceSettings < Orb::BaseModel @@ -205,11 +203,9 @@ module VoidReason finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 c17fe37f..ca6ea74b 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 @@ -195,11 +195,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -387,11 +385,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -565,11 +561,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -736,11 +730,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -921,11 +913,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1113,11 +1103,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1284,19 +1272,15 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; 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 857ba309..e78a9ad4 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -6,7 +6,7 @@ module Customers module Credits class LedgerCreateEntryParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute amount @@ -140,11 +140,9 @@ module EntryType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class InvoiceSettings < Orb::BaseModel @@ -204,11 +202,9 @@ module VoidReason finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 4d23a1b2..94d772de 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_response.rb @@ -194,11 +194,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -386,11 +384,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -564,11 +560,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -735,11 +729,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -920,11 +912,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1112,11 +1102,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1283,19 +1271,15 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; 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 2140cd90..45853c37 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 @@ -6,7 +6,7 @@ module Customers module Credits class LedgerListByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt @@ -111,11 +111,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module EntryType @@ -131,11 +129,9 @@ module EntryType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 babbaa28..ba493e38 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 @@ -194,11 +194,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -386,11 +384,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -564,11 +560,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -735,11 +729,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -920,11 +912,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1112,11 +1102,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1283,19 +1271,15 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; 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 08630170..772ed685 100644 --- a/lib/orb/models/customers/credits/ledger_list_params.rb +++ b/lib/orb/models/customers/credits/ledger_list_params.rb @@ -6,7 +6,7 @@ module Customers module Credits class LedgerListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt @@ -111,11 +111,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module EntryType @@ -131,11 +129,9 @@ module EntryType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 9d392fa2..deb87cdd 100644 --- a/lib/orb/models/customers/credits/ledger_list_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_response.rb @@ -191,11 +191,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -383,11 +381,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -561,11 +557,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -732,11 +726,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -916,11 +908,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1108,11 +1098,9 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1279,19 +1267,15 @@ module EntryStatus finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; 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 47493403..9ea7b86c 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 @@ -6,7 +6,7 @@ module Customers module Credits class TopUpCreateByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute amount @@ -147,11 +147,9 @@ module ExpiresAfterUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 59184853..fea14743 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 @@ -139,11 +139,9 @@ module ExpiresAfterUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 8905f7f6..4db3e3b4 100644 --- a/lib/orb/models/customers/credits/top_up_create_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_params.rb @@ -6,7 +6,7 @@ module Customers module Credits class TopUpCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute amount @@ -146,11 +146,9 @@ module ExpiresAfterUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 fe393956..525f6315 100644 --- a/lib/orb/models/customers/credits/top_up_create_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_response.rb @@ -138,11 +138,9 @@ module ExpiresAfterUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb b/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb index 484f85fe..a1d8de8f 100644 --- a/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb @@ -6,7 +6,7 @@ module Customers module Credits class TopUpDeleteByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute external_customer_id diff --git a/lib/orb/models/customers/credits/top_up_delete_params.rb b/lib/orb/models/customers/credits/top_up_delete_params.rb index 70d7edc9..cf6ae53b 100644 --- a/lib/orb/models/customers/credits/top_up_delete_params.rb +++ b/lib/orb/models/customers/credits/top_up_delete_params.rb @@ -6,7 +6,7 @@ module Customers module Credits class TopUpDeleteParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute customer_id diff --git a/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb b/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb index f767b827..68cc0348 100644 --- a/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb @@ -6,7 +6,7 @@ module Customers module Credits class TopUpListByExternalIDParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor 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 f074a037..5752ecd1 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 @@ -139,11 +139,9 @@ module ExpiresAfterUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/top_up_list_params.rb b/lib/orb/models/customers/credits/top_up_list_params.rb index 839bdfef..7223e6ae 100644 --- a/lib/orb/models/customers/credits/top_up_list_params.rb +++ b/lib/orb/models/customers/credits/top_up_list_params.rb @@ -6,7 +6,7 @@ module Customers module Credits class TopUpListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor 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 79d44aaf..07c8e4ff 100644 --- a/lib/orb/models/customers/credits/top_up_list_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_response.rb @@ -138,11 +138,9 @@ module ExpiresAfterUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/dimensional_price_group_create_params.rb b/lib/orb/models/dimensional_price_group_create_params.rb index f685da9b..1f645c5b 100644 --- a/lib/orb/models/dimensional_price_group_create_params.rb +++ b/lib/orb/models/dimensional_price_group_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class DimensionalPriceGroupCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute billable_metric_id diff --git a/lib/orb/models/dimensional_price_group_list_params.rb b/lib/orb/models/dimensional_price_group_list_params.rb index 28098ccd..50557ca6 100644 --- a/lib/orb/models/dimensional_price_group_list_params.rb +++ b/lib/orb/models/dimensional_price_group_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class DimensionalPriceGroupListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/dimensional_price_group_retrieve_params.rb b/lib/orb/models/dimensional_price_group_retrieve_params.rb index 71e40f64..5701b432 100644 --- a/lib/orb/models/dimensional_price_group_retrieve_params.rb +++ b/lib/orb/models/dimensional_price_group_retrieve_params.rb @@ -4,7 +4,7 @@ module Orb module Models class DimensionalPriceGroupRetrieveParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb b/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb index 11b2fe97..c6f8ee39 100644 --- a/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +++ b/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb @@ -5,7 +5,7 @@ module Models module DimensionalPriceGroups class ExternalDimensionalPriceGroupIDRetrieveParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/discount.rb b/lib/orb/models/discount.rb index 978e192f..71b656fe 100644 --- a/lib/orb/models/discount.rb +++ b/lib/orb/models/discount.rb @@ -16,10 +16,8 @@ module Discount variant :amount, -> { Orb::Models::AmountDiscount } # @!parse - # class << self - # # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount)] - # def variants; end - # end + # # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount)] + # def self.variants; end end end end diff --git a/lib/orb/models/evaluate_price_group.rb b/lib/orb/models/evaluate_price_group.rb index 93a0119b..2a3cafbd 100644 --- a/lib/orb/models/evaluate_price_group.rb +++ b/lib/orb/models/evaluate_price_group.rb @@ -40,10 +40,8 @@ module GroupingValue variant Orb::BooleanModel # @!parse - # class << self - # # @return [Array(String, Float, Boolean)] - # def variants; end - # end + # # @return [Array(String, Float, Boolean)] + # def self.variants; end end end end diff --git a/lib/orb/models/event_deprecate_params.rb b/lib/orb/models/event_deprecate_params.rb index 54adb02b..90eeb445 100644 --- a/lib/orb/models/event_deprecate_params.rb +++ b/lib/orb/models/event_deprecate_params.rb @@ -4,7 +4,7 @@ module Orb module Models class EventDeprecateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/event_ingest_params.rb b/lib/orb/models/event_ingest_params.rb index 27178752..f4de3ebc 100644 --- a/lib/orb/models/event_ingest_params.rb +++ b/lib/orb/models/event_ingest_params.rb @@ -4,7 +4,7 @@ module Orb module Models class EventIngestParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute events diff --git a/lib/orb/models/event_search_params.rb b/lib/orb/models/event_search_params.rb index ff7139fa..134be023 100644 --- a/lib/orb/models/event_search_params.rb +++ b/lib/orb/models/event_search_params.rb @@ -4,7 +4,7 @@ module Orb module Models class EventSearchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute event_ids diff --git a/lib/orb/models/event_update_params.rb b/lib/orb/models/event_update_params.rb index 93fc13da..0a2f794e 100644 --- a/lib/orb/models/event_update_params.rb +++ b/lib/orb/models/event_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class EventUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute event_name diff --git a/lib/orb/models/events/backfill_close_params.rb b/lib/orb/models/events/backfill_close_params.rb index d0c7beb1..6f82c48f 100644 --- a/lib/orb/models/events/backfill_close_params.rb +++ b/lib/orb/models/events/backfill_close_params.rb @@ -5,7 +5,7 @@ module Models module Events class BackfillCloseParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/events/backfill_close_response.rb b/lib/orb/models/events/backfill_close_response.rb index bf8fccd4..26bb80d9 100644 --- a/lib/orb/models/events/backfill_close_response.rb +++ b/lib/orb/models/events/backfill_close_response.rb @@ -118,11 +118,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_create_params.rb b/lib/orb/models/events/backfill_create_params.rb index 2bb75e0d..f97a02a4 100644 --- a/lib/orb/models/events/backfill_create_params.rb +++ b/lib/orb/models/events/backfill_create_params.rb @@ -5,7 +5,7 @@ module Models module Events class BackfillCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute timeframe_end diff --git a/lib/orb/models/events/backfill_create_response.rb b/lib/orb/models/events/backfill_create_response.rb index 029b8bf1..749d46cb 100644 --- a/lib/orb/models/events/backfill_create_response.rb +++ b/lib/orb/models/events/backfill_create_response.rb @@ -118,11 +118,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_fetch_params.rb b/lib/orb/models/events/backfill_fetch_params.rb index 22782154..1f87bbac 100644 --- a/lib/orb/models/events/backfill_fetch_params.rb +++ b/lib/orb/models/events/backfill_fetch_params.rb @@ -5,7 +5,7 @@ module Models module Events class BackfillFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/events/backfill_fetch_response.rb b/lib/orb/models/events/backfill_fetch_response.rb index 021d7c5e..8fe972d0 100644 --- a/lib/orb/models/events/backfill_fetch_response.rb +++ b/lib/orb/models/events/backfill_fetch_response.rb @@ -118,11 +118,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_list_params.rb b/lib/orb/models/events/backfill_list_params.rb index 99fd84c5..4fa393cd 100644 --- a/lib/orb/models/events/backfill_list_params.rb +++ b/lib/orb/models/events/backfill_list_params.rb @@ -5,7 +5,7 @@ module Models module Events class BackfillListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/events/backfill_list_response.rb b/lib/orb/models/events/backfill_list_response.rb index 93d64ec7..158bb6b6 100644 --- a/lib/orb/models/events/backfill_list_response.rb +++ b/lib/orb/models/events/backfill_list_response.rb @@ -118,11 +118,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_revert_params.rb b/lib/orb/models/events/backfill_revert_params.rb index 86bfec9c..625e119b 100644 --- a/lib/orb/models/events/backfill_revert_params.rb +++ b/lib/orb/models/events/backfill_revert_params.rb @@ -5,7 +5,7 @@ module Models module Events class BackfillRevertParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/events/backfill_revert_response.rb b/lib/orb/models/events/backfill_revert_response.rb index 1325f08e..1cadbeb4 100644 --- a/lib/orb/models/events/backfill_revert_response.rb +++ b/lib/orb/models/events/backfill_revert_response.rb @@ -118,11 +118,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/events/volume_list_params.rb b/lib/orb/models/events/volume_list_params.rb index 54c5df07..1796f42a 100644 --- a/lib/orb/models/events/volume_list_params.rb +++ b/lib/orb/models/events/volume_list_params.rb @@ -5,7 +5,7 @@ module Models module Events class VolumeListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute timeframe_start diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index da0add59..3c36c0fb 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -725,11 +725,9 @@ module Action finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditNote < Orb::BaseModel @@ -770,11 +768,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -993,11 +989,9 @@ module Country finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Type @@ -1077,11 +1071,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1094,11 +1086,9 @@ module InvoiceSource finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class LineItem < Orb::BaseModel @@ -1671,10 +1661,8 @@ class MonetaryMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end # @deprecated @@ -1981,10 +1969,8 @@ class Grouping < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem)] - # def variants; end - # end + # # @return [Array(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem)] + # def self.variants; end end class TaxAmount < Orb::BaseModel @@ -2120,11 +2106,9 @@ module PaymentProvider finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2183,11 +2167,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 c605d414..3e28bb9e 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency @@ -172,11 +172,9 @@ module ModelType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel diff --git a/lib/orb/models/invoice_fetch_params.rb b/lib/orb/models/invoice_fetch_params.rb index 88f2a3e3..31bbf9cf 100644 --- a/lib/orb/models/invoice_fetch_params.rb +++ b/lib/orb/models/invoice_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/invoice_fetch_upcoming_params.rb b/lib/orb/models/invoice_fetch_upcoming_params.rb index 8b3405b9..5ee26b5c 100644 --- a/lib/orb/models/invoice_fetch_upcoming_params.rb +++ b/lib/orb/models/invoice_fetch_upcoming_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceFetchUpcomingParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute subscription_id diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 075f377d..c3963efe 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -724,11 +724,9 @@ module Action finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditNote < Orb::BaseModel @@ -769,11 +767,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -992,11 +988,9 @@ module Country finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Type @@ -1076,11 +1070,9 @@ module Type finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1093,11 +1085,9 @@ module InvoiceSource finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class LineItem < Orb::BaseModel @@ -1674,10 +1664,8 @@ class MonetaryMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end # @deprecated @@ -1987,10 +1975,8 @@ class Grouping < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem)] - # def variants; end - # end + # # @return [Array(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem)] + # def self.variants; end end class TaxAmount < Orb::BaseModel @@ -2128,11 +2114,9 @@ module PaymentProvider finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2191,11 +2175,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class Subscription < Orb::BaseModel diff --git a/lib/orb/models/invoice_issue_params.rb b/lib/orb/models/invoice_issue_params.rb index 3aa31d2e..4784778e 100644 --- a/lib/orb/models/invoice_issue_params.rb +++ b/lib/orb/models/invoice_issue_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceIssueParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute [r] synchronous diff --git a/lib/orb/models/invoice_level_discount.rb b/lib/orb/models/invoice_level_discount.rb index 0a110f31..832270e0 100644 --- a/lib/orb/models/invoice_level_discount.rb +++ b/lib/orb/models/invoice_level_discount.rb @@ -14,10 +14,8 @@ module InvoiceLevelDiscount variant :trial, -> { Orb::Models::TrialDiscount } # @!parse - # class << self - # # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] - # def variants; end - # end + # # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + # def self.variants; end end end end diff --git a/lib/orb/models/invoice_line_item_create_params.rb b/lib/orb/models/invoice_line_item_create_params.rb index fbc7fb1c..3fa820ac 100644 --- a/lib/orb/models/invoice_line_item_create_params.rb +++ b/lib/orb/models/invoice_line_item_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceLineItemCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute amount diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index f8f52800..9143509a 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -573,10 +573,8 @@ class MonetaryMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end # @deprecated @@ -884,10 +882,8 @@ class Grouping < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem)] - # def variants; end - # end + # # @return [Array(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem)] + # def self.variants; end end class TaxAmount < Orb::BaseModel diff --git a/lib/orb/models/invoice_list_params.rb b/lib/orb/models/invoice_list_params.rb index ad0fe49f..85841890 100644 --- a/lib/orb/models/invoice_list_params.rb +++ b/lib/orb/models/invoice_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute amount @@ -171,11 +171,9 @@ module DateType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module Status @@ -189,11 +187,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/invoice_mark_paid_params.rb b/lib/orb/models/invoice_mark_paid_params.rb index 1173d252..66af2533 100644 --- a/lib/orb/models/invoice_mark_paid_params.rb +++ b/lib/orb/models/invoice_mark_paid_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceMarkPaidParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute payment_received_date diff --git a/lib/orb/models/invoice_pay_params.rb b/lib/orb/models/invoice_pay_params.rb index ed8cd542..29b0fad0 100644 --- a/lib/orb/models/invoice_pay_params.rb +++ b/lib/orb/models/invoice_pay_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoicePayParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/invoice_update_params.rb b/lib/orb/models/invoice_update_params.rb index 767b4ea0..b725c57e 100644 --- a/lib/orb/models/invoice_update_params.rb +++ b/lib/orb/models/invoice_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute metadata diff --git a/lib/orb/models/invoice_void_params.rb b/lib/orb/models/invoice_void_params.rb index 9953e3d5..3f6ad301 100644 --- a/lib/orb/models/invoice_void_params.rb +++ b/lib/orb/models/invoice_void_params.rb @@ -4,7 +4,7 @@ module Orb module Models class InvoiceVoidParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/item.rb b/lib/orb/models/item.rb index 1d0caf1d..1a244522 100644 --- a/lib/orb/models/item.rb +++ b/lib/orb/models/item.rb @@ -70,11 +70,9 @@ module ExternalConnectionName finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/item_create_params.rb b/lib/orb/models/item_create_params.rb index d28b406f..fe1886fd 100644 --- a/lib/orb/models/item_create_params.rb +++ b/lib/orb/models/item_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class ItemCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute name diff --git a/lib/orb/models/item_fetch_params.rb b/lib/orb/models/item_fetch_params.rb index bb1827f8..a9ef2520 100644 --- a/lib/orb/models/item_fetch_params.rb +++ b/lib/orb/models/item_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class ItemFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/item_list_params.rb b/lib/orb/models/item_list_params.rb index c63d0652..70c95e48 100644 --- a/lib/orb/models/item_list_params.rb +++ b/lib/orb/models/item_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class ItemListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/item_update_params.rb b/lib/orb/models/item_update_params.rb index 46a0c597..12570552 100644 --- a/lib/orb/models/item_update_params.rb +++ b/lib/orb/models/item_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class ItemUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute external_connections @@ -61,11 +61,9 @@ module ExternalConnectionName finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/metric_create_params.rb b/lib/orb/models/metric_create_params.rb index 2d0eb8a9..4bef1c0d 100644 --- a/lib/orb/models/metric_create_params.rb +++ b/lib/orb/models/metric_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class MetricCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute description diff --git a/lib/orb/models/metric_fetch_params.rb b/lib/orb/models/metric_fetch_params.rb index 3db09c6c..17015501 100644 --- a/lib/orb/models/metric_fetch_params.rb +++ b/lib/orb/models/metric_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class MetricFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/metric_list_params.rb b/lib/orb/models/metric_list_params.rb index c56b6992..93ee6f61 100644 --- a/lib/orb/models/metric_list_params.rb +++ b/lib/orb/models/metric_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class MetricListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt diff --git a/lib/orb/models/metric_update_params.rb b/lib/orb/models/metric_update_params.rb index e1a99e89..836e290f 100644 --- a/lib/orb/models/metric_update_params.rb +++ b/lib/orb/models/metric_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class MetricUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute metadata diff --git a/lib/orb/models/percentage_discount.rb b/lib/orb/models/percentage_discount.rb index 317e65a0..91d8f1a2 100644 --- a/lib/orb/models/percentage_discount.rb +++ b/lib/orb/models/percentage_discount.rb @@ -44,11 +44,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index d807cad7..b632c8db 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -574,10 +574,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end class BasePlan < Orb::BaseModel @@ -757,11 +755,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class Maximum < Orb::BaseModel @@ -846,11 +842,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TrialConfig < Orb::BaseModel @@ -879,11 +873,9 @@ module TrialPeriodUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index bd5e95bb..55dcecd7 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PlanCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency @@ -311,11 +311,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -367,11 +365,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -409,11 +405,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -572,11 +566,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class PackageConfig < Orb::BaseModel @@ -636,11 +628,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -678,11 +668,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -841,11 +829,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -936,11 +922,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -978,11 +962,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1141,11 +1123,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1227,11 +1207,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1269,11 +1247,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1433,11 +1409,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -1527,11 +1501,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1569,11 +1541,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1754,11 +1724,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -1795,11 +1763,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1837,11 +1803,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2046,11 +2010,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2087,11 +2049,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2129,11 +2089,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2330,11 +2288,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2371,11 +2327,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2413,11 +2367,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2577,11 +2529,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2618,11 +2568,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2660,11 +2608,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2823,11 +2769,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2864,11 +2808,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2906,11 +2848,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3070,11 +3010,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3111,11 +3049,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3153,11 +3089,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3316,11 +3250,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3357,11 +3289,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3399,11 +3329,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3563,11 +3491,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3604,11 +3530,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3646,11 +3570,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3810,11 +3732,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3851,11 +3771,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3893,11 +3811,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4057,11 +3973,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4098,11 +4012,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4140,11 +4052,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4304,11 +4214,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4345,11 +4253,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4387,11 +4293,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4551,11 +4455,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4592,11 +4494,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4634,11 +4534,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4798,11 +4696,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4839,11 +4735,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4881,11 +4775,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5045,11 +4937,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5086,11 +4976,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5128,11 +5016,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5292,11 +5178,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5333,11 +5217,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5375,11 +5257,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5539,11 +5419,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5580,11 +5458,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5622,11 +5498,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5786,11 +5660,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5827,11 +5699,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5869,11 +5739,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6033,11 +5901,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6074,11 +5940,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6116,11 +5980,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6280,11 +6142,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6321,11 +6181,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6363,11 +6221,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6527,11 +6383,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6568,11 +6422,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6610,20 +6462,16 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end # The status of the plan to create (either active or draft). If not specified, @@ -6636,11 +6484,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/plan_fetch_params.rb b/lib/orb/models/plan_fetch_params.rb index 2a41f4ab..d465bd31 100644 --- a/lib/orb/models/plan_fetch_params.rb +++ b/lib/orb/models/plan_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PlanFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/plan_list_params.rb b/lib/orb/models/plan_list_params.rb index ce3c183e..a555a057 100644 --- a/lib/orb/models/plan_list_params.rb +++ b/lib/orb/models/plan_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PlanListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt @@ -90,11 +90,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/plan_update_params.rb b/lib/orb/models/plan_update_params.rb index 8975c0cc..870c7ac2 100644 --- a/lib/orb/models/plan_update_params.rb +++ b/lib/orb/models/plan_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PlanUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute external_plan_id diff --git a/lib/orb/models/plans/external_plan_id_fetch_params.rb b/lib/orb/models/plans/external_plan_id_fetch_params.rb index 9d754bfb..2f50d660 100644 --- a/lib/orb/models/plans/external_plan_id_fetch_params.rb +++ b/lib/orb/models/plans/external_plan_id_fetch_params.rb @@ -5,7 +5,7 @@ module Models module Plans class ExternalPlanIDFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/plans/external_plan_id_update_params.rb b/lib/orb/models/plans/external_plan_id_update_params.rb index f8122a1d..5696505a 100644 --- a/lib/orb/models/plans/external_plan_id_update_params.rb +++ b/lib/orb/models/plans/external_plan_id_update_params.rb @@ -5,7 +5,7 @@ module Models module Plans class ExternalPlanIDUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute external_plan_id diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 88b126d2..9deed2e6 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -303,11 +303,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -323,11 +321,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -378,11 +374,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -460,11 +454,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -732,11 +724,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -752,11 +742,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -807,11 +795,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -912,11 +898,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1169,11 +1153,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1189,11 +1171,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -1244,11 +1224,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1379,11 +1357,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1636,11 +1612,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1656,11 +1630,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -1711,11 +1683,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1793,11 +1763,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredConfig < Orb::BaseModel @@ -2095,11 +2063,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2115,11 +2081,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -2170,11 +2134,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2252,11 +2214,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2561,11 +2521,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2603,11 +2561,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -2658,11 +2614,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2740,11 +2694,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -2997,11 +2949,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3062,11 +3012,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -3117,11 +3065,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3199,11 +3145,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3456,11 +3400,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3513,11 +3455,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -3568,11 +3508,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3650,11 +3588,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3912,11 +3848,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3932,11 +3866,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -3987,11 +3919,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4069,11 +3999,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4327,11 +4255,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4347,11 +4273,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -4402,11 +4326,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4484,11 +4406,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4742,11 +4662,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4762,11 +4680,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -4817,11 +4733,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4899,11 +4813,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5159,11 +5071,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5179,11 +5089,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -5234,11 +5142,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5316,11 +5222,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5578,11 +5482,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5598,11 +5500,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -5653,11 +5553,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5735,11 +5633,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5997,11 +5893,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6017,11 +5911,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -6072,11 +5964,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6154,11 +6044,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6412,11 +6300,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6432,11 +6318,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -6487,11 +6371,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6569,11 +6451,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6832,11 +6712,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6852,11 +6730,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -6907,11 +6783,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7050,11 +6924,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7310,11 +7182,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7330,11 +7200,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -7385,11 +7253,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7467,11 +7333,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7727,11 +7591,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7747,11 +7609,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -7802,11 +7662,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7884,11 +7742,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8144,11 +8000,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8164,11 +8018,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -8219,11 +8071,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8301,11 +8151,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8563,11 +8411,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8583,11 +8429,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -8638,11 +8482,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8720,11 +8562,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8982,11 +8822,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9002,11 +8840,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -9057,11 +8893,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9139,11 +8973,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9401,11 +9233,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9421,11 +9251,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -9476,11 +9304,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9558,11 +9384,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9818,11 +9642,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9838,11 +9660,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -9893,11 +9713,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9975,11 +9793,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10237,11 +10053,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10257,11 +10071,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -10312,11 +10124,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10394,11 +10204,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10656,11 +10464,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10676,11 +10482,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -10731,11 +10535,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10813,11 +10615,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -11075,11 +10875,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11095,11 +10893,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -11150,11 +10946,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11232,11 +11026,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -11494,11 +11286,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11514,11 +11304,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -11569,11 +11357,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11651,11 +11437,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -11913,11 +11697,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11933,11 +11715,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -11988,11 +11768,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12070,11 +11848,9 @@ module PriceType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -12099,10 +11875,8 @@ class DimensionalPriceConfiguration < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end end diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index 0cf5bf2a..e1ae61d5 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PriceCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cadence @@ -350,11 +350,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end module ModelType @@ -364,11 +362,9 @@ module ModelType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -420,11 +416,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -462,11 +456,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end diff --git a/lib/orb/models/price_evaluate_params.rb b/lib/orb/models/price_evaluate_params.rb index 5277759e..0bfca384 100644 --- a/lib/orb/models/price_evaluate_params.rb +++ b/lib/orb/models/price_evaluate_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PriceEvaluateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute timeframe_end diff --git a/lib/orb/models/price_fetch_params.rb b/lib/orb/models/price_fetch_params.rb index a1c906ed..a49130a5 100644 --- a/lib/orb/models/price_fetch_params.rb +++ b/lib/orb/models/price_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PriceFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/price_list_params.rb b/lib/orb/models/price_list_params.rb index 49eb0400..6df62169 100644 --- a/lib/orb/models/price_list_params.rb +++ b/lib/orb/models/price_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PriceListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/price_update_params.rb b/lib/orb/models/price_update_params.rb index 6b79c65f..ab59651c 100644 --- a/lib/orb/models/price_update_params.rb +++ b/lib/orb/models/price_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class PriceUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute metadata diff --git a/lib/orb/models/prices/external_price_id_fetch_params.rb b/lib/orb/models/prices/external_price_id_fetch_params.rb index 5f095717..78435664 100644 --- a/lib/orb/models/prices/external_price_id_fetch_params.rb +++ b/lib/orb/models/prices/external_price_id_fetch_params.rb @@ -5,7 +5,7 @@ module Models module Prices class ExternalPriceIDFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/prices/external_price_id_update_params.rb b/lib/orb/models/prices/external_price_id_update_params.rb index 568b6789..14c0c5a6 100644 --- a/lib/orb/models/prices/external_price_id_update_params.rb +++ b/lib/orb/models/prices/external_price_id_update_params.rb @@ -5,7 +5,7 @@ module Models module Prices class ExternalPriceIDUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute metadata diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 392c4d11..38c5de7f 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -674,10 +674,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -907,10 +905,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1208,11 +1204,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 35a6c7a3..9793f7d5 100644 --- a/lib/orb/models/subscription_cancel_params.rb +++ b/lib/orb/models/subscription_cancel_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionCancelParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cancel_option @@ -48,11 +48,9 @@ module CancelOption finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 41ebb884..52a1f9db 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -657,10 +657,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -891,10 +889,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1192,11 +1188,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 e4ecc929..104b9727 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionCreateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute add_adjustments @@ -573,10 +573,8 @@ class NewMaximum < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -734,11 +732,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -788,11 +784,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1037,11 +1031,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -1093,11 +1085,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1135,11 +1125,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1309,11 +1297,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class PackageConfig < Orb::BaseModel @@ -1373,11 +1359,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1415,11 +1399,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1589,11 +1571,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -1688,11 +1668,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1730,11 +1708,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1904,11 +1880,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1990,11 +1964,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2032,11 +2004,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2206,11 +2176,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2304,11 +2272,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2346,11 +2312,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2542,11 +2506,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2583,11 +2545,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2625,11 +2585,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2845,11 +2803,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2886,11 +2842,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2928,11 +2882,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3140,11 +3092,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3181,11 +3131,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3223,11 +3171,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3396,11 +3342,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3437,11 +3381,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3479,11 +3421,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3652,11 +3592,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3693,11 +3631,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3735,11 +3671,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3908,11 +3842,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3949,11 +3881,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3991,11 +3921,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4164,11 +4092,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4205,11 +4131,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4247,11 +4171,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4420,11 +4342,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4461,11 +4381,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4503,11 +4421,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4676,11 +4592,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4717,11 +4631,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4759,11 +4671,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4932,11 +4842,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4973,11 +4881,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5015,11 +4921,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5188,11 +5092,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5229,11 +5131,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5271,11 +5171,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5444,11 +5342,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5485,11 +5381,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5527,11 +5421,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5700,11 +5592,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5741,11 +5631,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5783,11 +5671,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5956,11 +5842,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5997,11 +5881,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6039,11 +5921,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6212,11 +6092,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6253,11 +6131,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6295,11 +6171,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6468,11 +6342,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6509,11 +6381,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6551,11 +6421,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6724,11 +6592,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6765,11 +6631,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6807,11 +6671,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6980,11 +6842,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7021,11 +6881,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7063,11 +6921,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -7236,11 +7092,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7277,11 +7131,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7319,11 +7171,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -7492,11 +7342,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7533,11 +7381,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7575,20 +7421,16 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -7637,11 +7479,9 @@ module ExternalMarketplace finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class RemoveAdjustment < Orb::BaseModel @@ -7932,10 +7772,8 @@ class NewMaximum < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -8082,11 +7920,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8136,11 +7972,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8387,11 +8221,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -8443,11 +8275,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8485,11 +8315,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -8659,11 +8487,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class PackageConfig < Orb::BaseModel @@ -8723,11 +8549,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8765,11 +8589,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -8939,11 +8761,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -9038,11 +8858,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9080,11 +8898,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -9254,11 +9070,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredConfig < Orb::BaseModel @@ -9340,11 +9154,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9382,11 +9194,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -9556,11 +9366,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -9654,11 +9462,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9696,11 +9502,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -9892,11 +9696,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -9933,11 +9735,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9975,11 +9775,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -10199,11 +9997,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10240,11 +10036,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10282,11 +10076,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -10494,11 +10286,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10535,11 +10325,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10577,11 +10365,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -10750,11 +10536,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10791,11 +10575,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10833,11 +10615,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11006,11 +10786,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11047,11 +10825,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11089,11 +10865,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11262,11 +11036,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11303,11 +11075,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11345,11 +11115,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11518,11 +11286,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11559,11 +11325,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11601,11 +11365,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11774,11 +11536,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11815,11 +11575,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11857,11 +11615,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12030,11 +11786,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12071,11 +11825,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12113,11 +11865,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12286,11 +12036,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12327,11 +12075,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12369,11 +12115,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12542,11 +12286,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12583,11 +12325,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12625,11 +12365,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12798,11 +12536,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12839,11 +12575,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12881,11 +12615,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13054,11 +12786,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13095,11 +12825,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13137,11 +12865,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13310,11 +13036,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13351,11 +13075,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13393,11 +13115,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13566,11 +13286,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13607,11 +13325,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13649,11 +13365,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13822,11 +13536,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13863,11 +13575,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13905,11 +13615,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14078,11 +13786,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14119,11 +13825,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14161,11 +13865,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14334,11 +14036,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14375,11 +14075,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14417,11 +14115,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14590,11 +14286,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14631,11 +14325,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14673,11 +14365,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14846,11 +14536,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14887,11 +14575,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14929,20 +14615,16 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end end diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 435f464c..284b8a74 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -657,10 +657,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -891,10 +889,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1192,11 +1188,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 23868e0a..266879aa 100644 --- a/lib/orb/models/subscription_fetch_costs_params.rb +++ b/lib/orb/models/subscription_fetch_costs_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionFetchCostsParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute currency @@ -57,11 +57,9 @@ module ViewMode finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/subscription_fetch_params.rb b/lib/orb/models/subscription_fetch_params.rb index e94e5be0..128b31ef 100644 --- a/lib/orb/models/subscription_fetch_params.rb +++ b/lib/orb/models/subscription_fetch_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionFetchParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/subscription_fetch_schedule_params.rb b/lib/orb/models/subscription_fetch_schedule_params.rb index 5be672d3..a1321112 100644 --- a/lib/orb/models/subscription_fetch_schedule_params.rb +++ b/lib/orb/models/subscription_fetch_schedule_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionFetchScheduleParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute cursor diff --git a/lib/orb/models/subscription_fetch_usage_params.rb b/lib/orb/models/subscription_fetch_usage_params.rb index 2e5dbf4d..e95eb6d4 100644 --- a/lib/orb/models/subscription_fetch_usage_params.rb +++ b/lib/orb/models/subscription_fetch_usage_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionFetchUsageParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute billable_metric_id @@ -108,11 +108,9 @@ module Granularity finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end # Controls whether Orb returns cumulative usage since the start of the billing @@ -127,11 +125,9 @@ module ViewMode finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/subscription_list_params.rb b/lib/orb/models/subscription_list_params.rb index 70bdfb52..12986f76 100644 --- a/lib/orb/models/subscription_list_params.rb +++ b/lib/orb/models/subscription_list_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionListParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute created_at_gt @@ -98,11 +98,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 b1868896..0e646160 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionPriceIntervalsParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute [r] add @@ -214,10 +214,8 @@ module StartDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end class AllocationPrice < Orb::BaseModel @@ -273,11 +271,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -361,10 +357,8 @@ class UsageDiscountCreationParams < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams)] + # def self.variants; end end # The end date of the price interval. This is the date that the price will stop @@ -377,10 +371,8 @@ module EndDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end class FixedFeeQuantityTransition < Orb::BaseModel @@ -645,11 +637,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -701,11 +691,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -743,11 +731,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -907,11 +893,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class PackageConfig < Orb::BaseModel @@ -971,11 +955,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1013,11 +995,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1177,11 +1157,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -1276,11 +1254,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1318,11 +1294,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1482,11 +1456,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class MatrixWithAllocationConfig < Orb::BaseModel @@ -1588,11 +1560,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1630,11 +1600,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1794,11 +1762,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1880,11 +1846,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1922,11 +1886,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2086,11 +2048,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2184,11 +2144,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2226,11 +2184,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2412,11 +2368,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2453,11 +2407,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2495,11 +2447,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2705,11 +2655,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2746,11 +2694,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2788,11 +2734,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2990,11 +2934,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3031,11 +2973,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3073,11 +3013,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3236,11 +3174,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3277,11 +3213,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3319,11 +3253,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3482,11 +3414,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3523,11 +3453,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3565,11 +3493,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3728,11 +3654,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3769,11 +3693,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3811,11 +3733,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3974,11 +3894,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4015,11 +3933,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4057,11 +3973,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4220,11 +4134,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4261,11 +4173,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4303,11 +4213,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4466,11 +4374,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4507,11 +4413,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4549,11 +4453,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4712,11 +4614,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4753,11 +4653,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4795,11 +4693,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4958,11 +4854,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4999,11 +4893,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5041,11 +4933,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5204,11 +5094,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5245,11 +5133,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5287,11 +5173,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5450,11 +5334,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5491,11 +5373,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5533,11 +5413,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5696,11 +5574,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5737,11 +5613,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5779,11 +5653,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5942,11 +5814,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5983,11 +5853,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6025,11 +5893,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6188,11 +6054,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6229,11 +6093,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6271,11 +6133,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6434,11 +6294,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6475,11 +6333,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6517,11 +6373,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6680,11 +6534,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6721,11 +6573,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6763,11 +6613,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6926,11 +6774,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6967,11 +6813,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7009,11 +6853,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -7172,11 +7014,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7213,11 +7053,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7255,11 +7093,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -7418,11 +7254,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7459,11 +7293,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7501,11 +7333,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -7664,11 +7494,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7705,11 +7533,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7747,20 +7573,16 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -8034,10 +7856,8 @@ class NewMaximum < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end # The start date of the adjustment interval. This is the date that the adjustment @@ -8052,10 +7872,8 @@ module StartDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end # The end date of the adjustment interval. This is the date that the adjustment @@ -8070,10 +7888,8 @@ module EndDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end end @@ -8174,10 +7990,8 @@ module EndDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end class FixedFeeQuantityTransition < Orb::BaseModel @@ -8212,10 +8026,8 @@ module StartDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end end @@ -8266,10 +8078,8 @@ module EndDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end # The updated start date of this adjustment interval. If not specified, the start @@ -8282,10 +8092,8 @@ module StartDate variant enum: -> { Orb::Models::BillingCycleRelativeDate } # @!parse - # class << self - # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - # def variants; end - # end + # # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # def self.variants; end end end end diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index 2c753529..3d890b0b 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -662,10 +662,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -898,10 +896,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1199,11 +1195,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 67a4268c..c8054e12 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionSchedulePlanChangeParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute change_option @@ -282,11 +282,9 @@ module ChangeOption finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class AddAdjustment < Orb::BaseModel @@ -560,10 +558,8 @@ class NewMaximum < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -724,11 +720,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -778,11 +772,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1032,11 +1024,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -1088,11 +1078,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1130,11 +1118,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1304,11 +1290,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class PackageConfig < Orb::BaseModel @@ -1368,11 +1352,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1410,11 +1392,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1584,11 +1564,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -1683,11 +1661,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -1725,11 +1701,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -1899,11 +1873,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1989,11 +1961,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2031,11 +2001,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2205,11 +2173,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2303,11 +2269,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2345,11 +2309,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2541,11 +2503,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2582,11 +2542,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2624,11 +2582,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -2848,11 +2804,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2889,11 +2843,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -2931,11 +2883,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3147,11 +3097,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3188,11 +3136,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3230,11 +3176,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3403,11 +3347,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3444,11 +3386,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3486,11 +3426,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3659,11 +3597,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3700,11 +3636,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3742,11 +3676,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -3915,11 +3847,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3956,11 +3886,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -3998,11 +3926,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4171,11 +4097,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4212,11 +4136,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4254,11 +4176,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4427,11 +4347,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4468,11 +4386,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4510,11 +4426,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4683,11 +4597,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4724,11 +4636,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -4766,11 +4676,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -4939,11 +4847,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4980,11 +4886,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5022,11 +4926,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5195,11 +5097,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5236,11 +5136,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5278,11 +5176,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5451,11 +5347,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5492,11 +5386,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5534,11 +5426,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5707,11 +5597,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5748,11 +5636,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -5790,11 +5676,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -5963,11 +5847,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6004,11 +5886,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6046,11 +5926,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6219,11 +6097,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6260,11 +6136,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6302,11 +6176,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6475,11 +6347,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6516,11 +6386,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6558,11 +6426,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6731,11 +6597,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6772,11 +6636,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -6814,11 +6676,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -6987,11 +6847,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7028,11 +6886,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7070,11 +6926,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -7243,11 +7097,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7284,11 +7136,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7326,11 +7176,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -7499,11 +7347,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7540,11 +7386,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -7582,20 +7426,16 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -7611,11 +7451,9 @@ module BillingCycleAlignment finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleAnchorConfiguration < Orb::BaseModel @@ -7944,10 +7782,8 @@ class NewMaximum < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -8096,11 +7932,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8150,11 +7984,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8404,11 +8236,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class UnitConfig < Orb::BaseModel @@ -8460,11 +8290,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8502,11 +8330,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -8676,11 +8502,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class PackageConfig < Orb::BaseModel @@ -8740,11 +8564,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -8782,11 +8604,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -8956,11 +8776,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -9055,11 +8873,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9097,11 +8913,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -9271,11 +9085,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredConfig < Orb::BaseModel @@ -9361,11 +9173,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9403,11 +9213,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -9577,11 +9385,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -9675,11 +9481,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9717,11 +9521,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -9913,11 +9715,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -9954,11 +9754,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -9996,11 +9794,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -10220,11 +10016,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10261,11 +10055,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10303,11 +10095,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -10519,11 +10309,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10560,11 +10348,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10602,11 +10388,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -10775,11 +10559,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10816,11 +10598,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -10858,11 +10638,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11031,11 +10809,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11072,11 +10848,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11114,11 +10888,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11287,11 +11059,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11328,11 +11098,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11370,11 +11138,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11543,11 +11309,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11584,11 +11348,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11626,11 +11388,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -11799,11 +11559,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11840,11 +11598,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -11882,11 +11638,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12055,11 +11809,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12096,11 +11848,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12138,11 +11888,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12311,11 +12059,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12352,11 +12098,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12394,11 +12138,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12567,11 +12309,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12608,11 +12348,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12650,11 +12388,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -12823,11 +12559,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12864,11 +12598,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -12906,11 +12638,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13079,11 +12809,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13120,11 +12848,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13162,11 +12888,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13335,11 +13059,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13376,11 +13098,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13418,11 +13138,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13591,11 +13309,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13632,11 +13348,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13674,11 +13388,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -13847,11 +13559,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13888,11 +13598,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -13930,11 +13638,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14103,11 +13809,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14144,11 +13848,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14186,11 +13888,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14359,11 +14059,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14400,11 +14098,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14442,11 +14138,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14615,11 +14309,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14656,11 +14348,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14698,11 +14388,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -14871,11 +14559,9 @@ module Cadence finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14912,11 +14598,9 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end @@ -14954,20 +14638,16 @@ module DurationUnit finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; 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 4349f917..d67e3f4d 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -662,10 +662,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -898,10 +896,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1199,11 +1195,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_trigger_phase_params.rb b/lib/orb/models/subscription_trigger_phase_params.rb index 6ea1c273..9ce42ebb 100644 --- a/lib/orb/models/subscription_trigger_phase_params.rb +++ b/lib/orb/models/subscription_trigger_phase_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionTriggerPhaseParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute allow_invoice_credit_or_void diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index 69d72bc9..129d7aaf 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -662,10 +662,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -898,10 +896,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1199,11 +1195,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_cancellation_params.rb b/lib/orb/models/subscription_unschedule_cancellation_params.rb index 6cf1dca4..6c827218 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_params.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionUnscheduleCancellationParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index 64ea86a0..f851f16b 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -662,10 +662,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -898,10 +896,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1199,11 +1195,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb index af736ddf..68650373 100644 --- a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +++ b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionUnscheduleFixedFeeQuantityUpdatesParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute price_id 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 2d331a55..0d9d6315 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 @@ -662,10 +662,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -898,10 +896,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1203,11 +1199,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb b/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb index b9a0c3e6..f2b294eb 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionUnschedulePendingPlanChangesParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse 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 d6494fe3..c405536a 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -662,10 +662,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -898,10 +896,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1199,11 +1195,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 d809ee43..5152754a 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionUpdateFixedFeeQuantityParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute price_id @@ -80,11 +80,9 @@ module ChangeOption finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; 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 16034ff7..2ba39f77 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -662,10 +662,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -898,10 +896,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1199,11 +1195,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_update_params.rb b/lib/orb/models/subscription_update_params.rb index 772701ef..a9d82289 100644 --- a/lib/orb/models/subscription_update_params.rb +++ b/lib/orb/models/subscription_update_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionUpdateParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute auto_collection diff --git a/lib/orb/models/subscription_update_trial_params.rb b/lib/orb/models/subscription_update_trial_params.rb index 098dc5b3..2533dd43 100644 --- a/lib/orb/models/subscription_update_trial_params.rb +++ b/lib/orb/models/subscription_update_trial_params.rb @@ -4,7 +4,7 @@ module Orb module Models class SubscriptionUpdateTrialParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!attribute trial_end_date @@ -39,21 +39,19 @@ class SubscriptionUpdateTrialParams < Orb::BaseModel module TrialEndDate extend Orb::Union - # @!group + variant Time - IMMEDIATE = :immediate + variant const: -> { Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::IMMEDIATE } - # @!endgroup + # @!parse + # # @return [Array(Time, Symbol)] + # def self.variants; end - variant Time + # @!group - variant const: Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::IMMEDIATE + IMMEDIATE = :immediate - # @!parse - # class << self - # # @return [Array(Time, Symbol)] - # def variants; end - # end + # @!endgroup end end end diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index 325243b3..632611d2 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -660,10 +660,8 @@ class PlanPhaseMaximumAdjustment < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(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 variants; end - # end + # # @return [Array(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; end end end @@ -896,10 +894,8 @@ class UsageDiscountInterval < Orb::BaseModel end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval)] + # def self.variants; end end class FixedFeeQuantitySchedule < Orb::BaseModel @@ -1197,11 +1193,9 @@ module Status finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_usage.rb b/lib/orb/models/subscription_usage.rb index 651d552c..b1faf73a 100644 --- a/lib/orb/models/subscription_usage.rb +++ b/lib/orb/models/subscription_usage.rb @@ -104,11 +104,9 @@ module ViewMode finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end @@ -239,20 +237,16 @@ module ViewMode finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end # @!parse - # class << self - # # @return [Array(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage)] - # def variants; end - # end + # # @return [Array(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage)] + # def self.variants; end end end end diff --git a/lib/orb/models/top_level_ping_params.rb b/lib/orb/models/top_level_ping_params.rb index 4e3bede6..2fa84e0b 100644 --- a/lib/orb/models/top_level_ping_params.rb +++ b/lib/orb/models/top_level_ping_params.rb @@ -4,7 +4,7 @@ module Orb module Models class TopLevelPingParams < Orb::BaseModel # @!parse - # extend Orb::RequestParameters::Converter + # extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # @!parse diff --git a/lib/orb/models/trial_discount.rb b/lib/orb/models/trial_discount.rb index 41644b8a..a7e99b13 100644 --- a/lib/orb/models/trial_discount.rb +++ b/lib/orb/models/trial_discount.rb @@ -59,11 +59,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/models/usage_discount.rb b/lib/orb/models/usage_discount.rb index bdbfd444..493e09e0 100644 --- a/lib/orb/models/usage_discount.rb +++ b/lib/orb/models/usage_discount.rb @@ -44,11 +44,9 @@ module DiscountType finalize! - class << self - # @!parse - # # @return [Array] - # def values; end - end + # @!parse + # # @return [Array] + # def self.values; end end end end diff --git a/lib/orb/page.rb b/lib/orb/page.rb index 95e63a90..47e87b5d 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -23,7 +23,7 @@ module Orb # # coupons => Array class Page - include Orb::BasePage + include Orb::Type::BasePage # @return [Array, nil] attr_accessor :data @@ -33,7 +33,7 @@ class Page # @api private # - # @param client [Orb::BaseClient] + # @param client [Orb::Transport::BaseClient] # @param req [Hash{Symbol=>Object}] # @param headers [Hash{String=>String}, Net::HTTPHeader] # @param page_data [Hash{Symbol=>Object}] @@ -43,13 +43,13 @@ def initialize(client:, req:, headers:, page_data:) case page_data in {data: Array | nil => data} - @data = data&.map { Orb::Converter.coerce(model, _1) } + @data = data&.map { Orb::Type::Converter.coerce(model, _1) } else end case page_data in {pagination_metadata: Hash | nil => pagination_metadata} - @pagination_metadata = Orb::Page::PaginationMetadata.coerce(pagination_metadata) + @pagination_metadata = Orb::Type::Converter.coerce(Orb::Page::PaginationMetadata, pagination_metadata) else end end diff --git a/lib/orb/pooled_net_requester.rb b/lib/orb/pooled_net_requester.rb deleted file mode 100644 index 3a1e5844..00000000 --- a/lib/orb/pooled_net_requester.rb +++ /dev/null @@ -1,180 +0,0 @@ -# frozen_string_literal: true - -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 - # - # @param url [URI::Generic] - # - # @return [Net::HTTP] - def connect(url) - port = - case [url.port, url.scheme] - in [Integer, _] - url.port - in [nil, "http" | "ws"] - Net::HTTP.http_default_port - in [nil, "https" | "wss"] - Net::HTTP.https_default_port - end - - Net::HTTP.new(url.host, port).tap do - _1.use_ssl = %w[https wss].include?(url.scheme) - _1.max_retries = 0 - end - end - - # @api private - # - # @param conn [Net::HTTP] - # @param deadline [Float] - def calibrate_socket_timeout(conn, deadline) - timeout = deadline - Orb::Util.monotonic_secs - conn.open_timeout = conn.read_timeout = conn.write_timeout = conn.continue_timeout = timeout - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @param blk [Proc] - # - # @yieldparam [String] - # @return [Net::HTTPGenericRequest] - def build_request(request, &) - method, url, headers, body = request.fetch_values(:method, :url, :headers, :body) - req = Net::HTTPGenericRequest.new( - method.to_s.upcase, - !body.nil?, - method != :head, - url.to_s - ) - - headers.each { req[_1] = _2 } - - case body - in nil - nil - in String - req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"] - req.body_stream = Orb::Util::ReadIOAdapter.new(body, &) - in StringIO - req["content-length"] ||= body.size.to_s unless req["transfer-encoding"] - req.body_stream = Orb::Util::ReadIOAdapter.new(body, &) - in IO | Enumerator - req["transfer-encoding"] ||= "chunked" unless req["content-length"] - req.body_stream = Orb::Util::ReadIOAdapter.new(body, &) - end - - req - end - end - - # @api private - # - # @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 - pool = - @mutex.synchronize do - @pools[origin] ||= ConnectionPool.new(size: @size) do - self.class.connect(url) - end - end - - pool.with(timeout: timeout, &blk) - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @option request [Object] :body - # - # @option request [Float] :deadline - # - # @return [Array(Integer, Net::HTTPResponse, Enumerable)] - def execute(request) - url, deadline = request.fetch_values(:url, :deadline) - - eof = false - finished = false - enum = Enumerator.new do |y| - with_pool(url, deadline: deadline) do |conn| - next if finished - - req = self.class.build_request(request) do - self.class.calibrate_socket_timeout(conn, deadline) - end - - self.class.calibrate_socket_timeout(conn, deadline) - 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| - y << [conn, req, rsp] - break if finished - - rsp.read_body do |bytes| - y << bytes - break if finished - - self.class.calibrate_socket_timeout(conn, deadline) - end - eof = true - end - end - rescue Timeout::Error - raise Orb::APITimeoutError - end - - conn, _, response = enum.next - body = Orb::Util.fused_enum(enum, external: true) do - finished = true - tap do - enum.next - rescue StopIteration - nil - end - conn.finish if !eof && conn&.started? - end - [Integer(response.code), response, (response.body = body)] - end - - # @api private - # - # @param size [Integer] - def initialize(size: Etc.nprocessors) - @mutex = Mutex.new - @size = size - @pools = {} - end - end -end diff --git a/lib/orb/request_options.rb b/lib/orb/request_options.rb index 9025852c..57acd2a3 100644 --- a/lib/orb/request_options.rb +++ b/lib/orb/request_options.rb @@ -1,39 +1,6 @@ # frozen_string_literal: true module Orb - # @api private - module RequestParameters - # @!parse - # # Options to specify HTTP behaviour for this request. - # # @return [Orb::RequestOptions, Hash{Symbol=>Object}] - # attr_accessor :request_options - - # @param mod [Module] - def self.included(mod) - return unless mod <= Orb::BaseModel - - mod.extend(Orb::RequestParameters::Converter) - mod.optional(:request_options, Orb::RequestOptions) - end - - # @api private - module Converter - # @api private - # - # @param params [Object] - # - # @return [Array(Object, Hash{Symbol=>Object})] - def dump_request(params) - case (dumped = dump(params)) - in Hash - [dumped.except(:request_options), dumped[:request_options]] - else - [dumped, nil] - end - end - end - end - # Specify HTTP behaviour to use for a specific request. These options supplement # or override those provided at the client level. # diff --git a/lib/orb/transport/base_client.rb b/lib/orb/transport/base_client.rb new file mode 100644 index 00000000..d2bce249 --- /dev/null +++ b/lib/orb/transport/base_client.rb @@ -0,0 +1,459 @@ +# frozen_string_literal: true + +module Orb + module Transport + # @api private + # + # @abstract + class BaseClient + # from whatwg fetch spec + 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 + } + # rubocop:enable Style/MutableConstant + + class << self + # @api private + # + # @param req [Hash{Symbol=>Object}] + # + # @raise [ArgumentError] + def validate!(req) + keys = [:method, :path, :query, :headers, :body, :unwrap, :page, :stream, :model, :options] + case req + in Hash + req.each_key do |k| + unless keys.include?(k) + raise ArgumentError.new("Request `req` keys must be one of #{keys}, got #{k.inspect}") + end + end + else + raise ArgumentError.new("Request `req` must be a Hash or RequestOptions, got #{req.inspect}") + end + end + + # @api private + # + # @param status [Integer] + # @param headers [Hash{String=>String}, Net::HTTPHeader] + # + # @return [Boolean] + def should_retry?(status, headers:) + coerced = Orb::Util.coerce_boolean(headers["x-should-retry"]) + case [coerced, status] + in [true | false, _] + coerced + in [_, 408 | 409 | 429 | (500..)] + # retry on: + # 408: timeouts + # 409: locks + # 429: rate limits + # 500+: unknown errors + true + else + false + end + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @option request [Object] :body + # + # @option request [Integer] :max_retries + # + # @option request [Float] :timeout + # + # @param status [Integer] + # + # @param response_headers [Hash{String=>String}, Net::HTTPHeader] + # + # @return [Hash{Symbol=>Object}] + def follow_redirect(request, status:, response_headers:) + method, url, headers = request.fetch_values(:method, :url, :headers) + location = + Kernel.then do + URI.join(url, response_headers["location"]) + rescue ArgumentError + message = "Server responded with status #{status} but no valid location header." + raise Orb::APIConnectionError.new(url: url, message: message) + end + + request = {**request, url: location} + + case [url.scheme, location.scheme] + in ["https", "http"] + message = "Tried to redirect to a insecure URL" + raise Orb::APIConnectionError.new(url: url, message: message) + else + nil + end + + # from whatwg fetch spec + case [status, method] + in [301 | 302, :post] | [303, _] + drop = %w[content-encoding content-language content-length content-location content-type] + request = { + **request, + method: method == :head ? :head : :get, + headers: headers.except(*drop), + body: nil + } + else + end + + # from undici + if Orb::Util.uri_origin(url) != Orb::Util.uri_origin(location) + drop = %w[authorization cookie host proxy-authorization] + request = {**request, headers: request.fetch(:headers).except(*drop)} + end + + request + end + + # @api private + # + # @param status [Integer, Orb::APIConnectionError] + # @param stream [Enumerable, nil] + def reap_connection!(status, stream:) + case status + in (..199) | (300..499) + stream&.each { next } + in Orb::APIConnectionError | (500..) + Orb::Util.close_fused!(stream) + else + end + end + end + + # @api private + # @return [Orb::Transport::PooledNetRequester] + attr_accessor :requester + + # @api private + # + # @param base_url [String] + # @param timeout [Float] + # @param max_retries [Integer] + # @param initial_retry_delay [Float] + # @param max_retry_delay [Float] + # @param headers [Hash{String=>String, Integer, Array, nil}] + # @param idempotency_header [String, nil] + def initialize( + base_url:, + timeout: 0.0, + max_retries: 0, + initial_retry_delay: 0.0, + max_retry_delay: 0.0, + headers: {}, + idempotency_header: nil + ) + @requester = Orb::Transport::PooledNetRequester.new + @headers = Orb::Util.normalized_headers( + self.class::PLATFORM_HEADERS, + { + "accept" => "application/json", + "content-type" => "application/json" + }, + headers + ) + @base_url = Orb::Util.parse_uri(base_url) + @idempotency_header = idempotency_header&.to_s&.downcase + @max_retries = max_retries + @timeout = timeout + @initial_retry_delay = initial_retry_delay + @max_retry_delay = max_retry_delay + end + + # @api private + # + # @return [Hash{String=>String}] + private def auth_headers = {} + + # @api private + # + # @return [String] + private def generate_idempotency_key = "stainless-ruby-retry-#{SecureRandom.uuid}" + + # @api private + # + # @param req [Hash{Symbol=>Object}] . + # + # @option req [Symbol] :method + # + # @option req [String, Array] :path + # + # @option req [Hash{String=>Array, String, nil}, nil] :query + # + # @option req [Hash{String=>String, Integer, Array, nil}, nil] :headers + # + # @option req [Object, nil] :body + # + # @option req [Symbol, nil] :unwrap + # + # @option req [Class, nil] :page + # + # @option req [Class, nil] :stream + # + # @option req [Orb::Type::Converter, Class, nil] :model + # + # @param opts [Hash{Symbol=>Object}] . + # + # @option opts [String, nil] :idempotency_key + # + # @option opts [Hash{String=>Array, String, nil}, nil] :extra_query + # + # @option opts [Hash{String=>String, nil}, nil] :extra_headers + # + # @option opts [Object, nil] :extra_body + # + # @option opts [Integer, nil] :max_retries + # + # @option opts [Float, nil] :timeout + # + # @return [Hash{Symbol=>Object}] + private def build_request(req, opts) + method, uninterpolated_path = req.fetch_values(:method, :path) + + path = Orb::Util.interpolate_path(uninterpolated_path) + + query = Orb::Util.deep_merge(req[:query].to_h, opts[:extra_query].to_h) + + headers = Orb::Util.normalized_headers( + @headers, + auth_headers, + req[:headers].to_h, + opts[:extra_headers].to_h + ) + + if @idempotency_header && + !headers.key?(@idempotency_header) && + !Net::HTTP::IDEMPOTENT_METHODS_.include?(method.to_s.upcase) + headers[@idempotency_header] = opts.fetch(:idempotency_key) { generate_idempotency_key } + end + + unless headers.key?("x-stainless-retry-count") + headers["x-stainless-retry-count"] = "0" + end + + timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..)) + unless headers.key?("x-stainless-timeout") || timeout.zero? + headers["x-stainless-timeout"] = timeout.to_s + end + + headers.reject! { |_, v| v.to_s.empty? } + + body = + case method + in :get | :head | :options | :trace + nil + else + Orb::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) + end + + headers, encoded = Orb::Util.encode_content(headers, body) + { + method: method, + url: Orb::Util.join_parsed_uri(@base_url, {**req, path: path, query: query}), + headers: headers, + body: encoded, + max_retries: opts.fetch(:max_retries, @max_retries), + timeout: timeout + } + end + + # @api private + # + # @param headers [Hash{String=>String}] + # @param retry_count [Integer] + # + # @return [Float] + private def retry_delay(headers, retry_count:) + # Non-standard extension + span = Float(headers["retry-after-ms"], exception: false)&.then { _1 / 1000 } + return span if span + + retry_header = headers["retry-after"] + return span if (span = Float(retry_header, exception: false)) + + span = retry_header&.then do + Time.httpdate(_1) - Time.now + rescue ArgumentError + nil + end + return span if span + + scale = retry_count**2 + jitter = 1 - (0.25 * rand) + (@initial_retry_delay * scale * jitter).clamp(0, @max_retry_delay) + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @option request [Object] :body + # + # @option request [Integer] :max_retries + # + # @option request [Float] :timeout + # + # @param redirect_count [Integer] + # + # @param retry_count [Integer] + # + # @param send_retry_header [Boolean] + # + # @raise [Orb::APIError] + # @return [Array(Integer, Net::HTTPResponse, Enumerable)] + private def send_request(request, redirect_count:, retry_count:, send_retry_header:) + url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout) + input = {**request.except(:timeout), deadline: Orb::Util.monotonic_secs + timeout} + + if send_retry_header + headers["x-stainless-retry-count"] = retry_count.to_s + end + + begin + status, response, stream = @requester.execute(input) + rescue Orb::APIConnectionError => e + status = e + end + + case status + in ..299 + [status, response, stream] + in 300..399 if redirect_count >= self.class::MAX_REDIRECTS + self.class.reap_connection!(status, stream: stream) + + message = "Failed to complete the request within #{self.class::MAX_REDIRECTS} redirects." + raise Orb::APIConnectionError.new(url: url, message: message) + in 300..399 + self.class.reap_connection!(status, stream: stream) + + request = self.class.follow_redirect(request, status: status, response_headers: response) + send_request( + request, + redirect_count: redirect_count + 1, + retry_count: retry_count, + send_retry_header: send_retry_header + ) + in Orb::APIConnectionError if retry_count >= max_retries + raise status + in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: response) + decoded = Kernel.then do + Orb::Util.decode_content(response, stream: stream, suppress_error: true) + ensure + self.class.reap_connection!(status, stream: stream) + end + + raise Orb::APIStatusError.for( + url: url, + status: status, + body: decoded, + request: nil, + response: response + ) + in (400..) | Orb::APIConnectionError + self.class.reap_connection!(status, stream: stream) + + delay = retry_delay(response, retry_count: retry_count) + sleep(delay) + + send_request( + request, + redirect_count: redirect_count, + retry_count: retry_count + 1, + send_retry_header: send_retry_header + ) + end + end + + # Execute the request specified by `req`. This is the method that all resource + # methods call into. + # + # @param req [Hash{Symbol=>Object}] . + # + # @option req [Symbol] :method + # + # @option req [String, Array] :path + # + # @option req [Hash{String=>Array, String, nil}, nil] :query + # + # @option req [Hash{String=>String, Integer, Array, nil}, nil] :headers + # + # @option req [Object, nil] :body + # + # @option req [Symbol, nil] :unwrap + # + # @option req [Class, nil] :page + # + # @option req [Class, nil] :stream + # + # @option req [Orb::Type::Converter, Class, nil] :model + # + # @option req [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :options + # + # @raise [Orb::APIError] + # @return [Object] + def request(req) + self.class.validate!(req) + model = req.fetch(:model) { Orb::Unknown } + opts = req[:options].to_h + Orb::RequestOptions.validate!(opts) + request = build_request(req.except(:options), opts) + url = request.fetch(:url) + + # Don't send the current retry count in the headers if the caller modified the header defaults. + send_retry_header = request.fetch(:headers)["x-stainless-retry-count"] == "0" + status, response, stream = send_request( + request, + redirect_count: 0, + retry_count: 0, + send_retry_header: send_retry_header + ) + + decoded = Orb::Util.decode_content(response, stream: stream) + case req + in { stream: Class => st } + 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 + unwrapped = Orb::Util.dig(decoded, req[:unwrap]) + Orb::Type::Converter.coerce(model, unwrapped) + end + end + + # @return [String] + def inspect + # rubocop:disable Layout/LineLength + base_url = Orb::Util.unparse_uri(@base_url) + "#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{base_url} max_retries=#{@max_retries} timeout=#{@timeout}>" + # rubocop:enable Layout/LineLength + end + end + end +end diff --git a/lib/orb/transport/pooled_net_requester.rb b/lib/orb/transport/pooled_net_requester.rb new file mode 100644 index 00000000..7b21c3bd --- /dev/null +++ b/lib/orb/transport/pooled_net_requester.rb @@ -0,0 +1,182 @@ +# frozen_string_literal: true + +module Orb + module Transport + # @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 + # + # @param url [URI::Generic] + # + # @return [Net::HTTP] + def connect(url) + port = + case [url.port, url.scheme] + in [Integer, _] + url.port + in [nil, "http" | "ws"] + Net::HTTP.http_default_port + in [nil, "https" | "wss"] + Net::HTTP.https_default_port + end + + Net::HTTP.new(url.host, port).tap do + _1.use_ssl = %w[https wss].include?(url.scheme) + _1.max_retries = 0 + end + end + + # @api private + # + # @param conn [Net::HTTP] + # @param deadline [Float] + def calibrate_socket_timeout(conn, deadline) + timeout = deadline - Orb::Util.monotonic_secs + conn.open_timeout = conn.read_timeout = conn.write_timeout = conn.continue_timeout = timeout + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @param blk [Proc] + # + # @yieldparam [String] + # @return [Net::HTTPGenericRequest] + def build_request(request, &) + method, url, headers, body = request.fetch_values(:method, :url, :headers, :body) + req = Net::HTTPGenericRequest.new( + method.to_s.upcase, + !body.nil?, + method != :head, + url.to_s + ) + + headers.each { req[_1] = _2 } + + case body + in nil + nil + in String + req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"] + req.body_stream = Orb::Util::ReadIOAdapter.new(body, &) + in StringIO + req["content-length"] ||= body.size.to_s unless req["transfer-encoding"] + req.body_stream = Orb::Util::ReadIOAdapter.new(body, &) + in IO | Enumerator + req["transfer-encoding"] ||= "chunked" unless req["content-length"] + req.body_stream = Orb::Util::ReadIOAdapter.new(body, &) + end + + req + end + end + + # @api private + # + # @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 + pool = + @mutex.synchronize do + @pools[origin] ||= ConnectionPool.new(size: @size) do + self.class.connect(url) + end + end + + pool.with(timeout: timeout, &blk) + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @option request [Object] :body + # + # @option request [Float] :deadline + # + # @return [Array(Integer, Net::HTTPResponse, Enumerable)] + def execute(request) + url, deadline = request.fetch_values(:url, :deadline) + + eof = false + finished = false + enum = Enumerator.new do |y| + with_pool(url, deadline: deadline) do |conn| + next if finished + + req = self.class.build_request(request) do + self.class.calibrate_socket_timeout(conn, deadline) + end + + self.class.calibrate_socket_timeout(conn, deadline) + 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| + y << [conn, req, rsp] + break if finished + + rsp.read_body do |bytes| + y << bytes + break if finished + + self.class.calibrate_socket_timeout(conn, deadline) + end + eof = true + end + end + rescue Timeout::Error + raise Orb::APITimeoutError + end + + conn, _, response = enum.next + body = Orb::Util.fused_enum(enum, external: true) do + finished = true + tap do + enum.next + rescue StopIteration + nil + end + conn.finish if !eof && conn&.started? + end + [Integer(response.code), response, (response.body = body)] + end + + # @api private + # + # @param size [Integer] + def initialize(size: Etc.nprocessors) + @mutex = Mutex.new + @size = size + @pools = {} + end + end + end +end diff --git a/lib/orb/type.rb b/lib/orb/type.rb new file mode 100644 index 00000000..0ef261e8 --- /dev/null +++ b/lib/orb/type.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Orb + Unknown = Orb::Type::Unknown + + BooleanModel = Orb::Type::BooleanModel + + Enum = Orb::Type::Enum + + Union = Orb::Type::Union + + ArrayOf = Orb::Type::ArrayOf + + HashOf = Orb::Type::HashOf + + BaseModel = Orb::Type::BaseModel + + RequestParameters = Orb::Type::RequestParameters + + # This module contains various type declarations. + module Type + end +end diff --git a/lib/orb/type/array_of.rb b/lib/orb/type/array_of.rb new file mode 100644 index 00000000..89629003 --- /dev/null +++ b/lib/orb/type/array_of.rb @@ -0,0 +1,110 @@ +# frozen_string_literal: true + +module Orb + module Type + # @api private + # + # @abstract + # + # Array of items of a given type. + class ArrayOf + include Orb::Type::Converter + + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Type::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] + # + # @return [Boolean] + def ===(other) = other.is_a?(Array) && other.all?(item_type) + + # @param other [Object] + # + # @return [Boolean] + def ==(other) = other.is_a?(Orb::ArrayOf) && other.nilable? == nilable? && other.item_type == item_type + + # @api private + # + # @param value [Enumerable, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Array, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + + unless value.is_a?(Array) + exactness[:no] += 1 + return value + end + + target = item_type + exactness[:yes] += 1 + value + .map do |item| + case [nilable?, item] + in [true, nil] + exactness[:yes] += 1 + nil + else + Orb::Type::Converter.coerce(target, item, state: state) + end + end + end + + # @api private + # + # @param value [Enumerable, Object] + # + # @return [Array, Object] + def dump(value) + target = item_type + value.is_a?(Array) ? value.map { Orb::Type::Converter.dump(target, _1) } : super + end + + # @api private + # + # @return [Orb::Type::Converter, Class] + protected def item_type = @item_type_fn.call + + # @api private + # + # @return [Boolean] + protected def nilable? = @nilable + + # @api private + # + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Type::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 initialize(type_info, spec = {}) + @item_type_fn = Orb::Type::Converter.type_info(type_info || spec) + @nilable = spec[:nil?] + end + end + end +end diff --git a/lib/orb/type/base_model.rb b/lib/orb/type/base_model.rb new file mode 100644 index 00000000..a5ee9732 --- /dev/null +++ b/lib/orb/type/base_model.rb @@ -0,0 +1,355 @@ +# frozen_string_literal: true + +module Orb + module Type + # @abstract + # + # @example + # # `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::Type::Converter + + class << self + # @api private + # + # Assumes superclass fields are totally defined before fields are accessed / + # defined on subclasses. + # + # @return [Hash{Symbol=>Hash{Symbol=>Object}}] + def known_fields + @known_fields ||= (self < Orb::BaseModel ? superclass.known_fields.dup : {}) + end + + # @api private + # + # @return [Hash{Symbol=>Hash{Symbol=>Object}}] + def fields + known_fields.transform_values do |field| + {**field.except(:type_fn), type: field.fetch(:type_fn).call} + end + end + + # @api private + # + # @param name_sym [Symbol] + # + # @param required [Boolean] + # + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Type::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?" + private def add_field(name_sym, required:, type_info:, spec:) + type_fn, info = + case type_info + in Proc | Orb::Type::Converter | Class + [Orb::Type::Converter.type_info({**spec, union: type_info}), spec] + in Hash + [Orb::Type::Converter.type_info(type_info), type_info] + end + + setter = "#{name_sym}=" + api_name = info.fetch(:api_name, name_sym) + nilable = info[:nil?] + const = required && !nilable ? info.fetch(:const, Orb::Util::OMIT) : Orb::Util::OMIT + + [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym) + + known_fields[name_sym] = + { + mode: @mode, + api_name: api_name, + required: required, + nilable: nilable, + const: const, + type_fn: type_fn + } + + define_method(setter) { @data.store(name_sym, _1) } + + define_method(name_sym) do + target = type_fn.call + value = @data.fetch(name_sym) { const == Orb::Util::OMIT ? nil : const } + state = {strictness: :strong, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + if (nilable || !required) && value.nil? + nil + else + Orb::Type::Converter.coerce( + target, + value, + state: state + ) + end + rescue StandardError + cls = self.class.name.split("::").last + message = "Failed to parse #{cls}.#{__method__} from #{value.class} to #{target.inspect}. To get the unparsed API response, use #{cls}[:#{__method__}]." + raise Orb::ConversionError.new(message) + end + end + + # @api private + # + # @param name_sym [Symbol] + # + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Type::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 required(name_sym, type_info, spec = {}) + add_field(name_sym, required: true, type_info: type_info, spec: spec) + end + + # @api private + # + # @param name_sym [Symbol] + # + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Type::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 optional(name_sym, type_info, spec = {}) + add_field(name_sym, required: false, type_info: type_info, spec: spec) + end + + # @api private + # + # `request_only` attributes not excluded from `.#coerce` when receiving responses + # even if well behaved servers should not send them + # + # @param blk [Proc] + private def request_only(&blk) + @mode = :dump + blk.call + ensure + @mode = nil + end + + # @api private + # + # `response_only` attributes are omitted from `.#dump` when making requests + # + # @param blk [Proc] + private def response_only(&blk) + @mode = :coerce + blk.call + ensure + @mode = nil + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) = other.is_a?(Class) && other <= Orb::BaseModel && other.fields == fields + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) = self.class == other.class && @data == other.to_h + + class << self + # @api private + # + # @param value [Orb::BaseModel, Hash{Object=>Object}, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Orb::BaseModel, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + + if value.is_a?(self.class) + exactness[:yes] += 1 + return value + end + + unless (val = Orb::Util.coerce_hash(value)).is_a?(Hash) + exactness[:no] += 1 + return value + end + exactness[:yes] += 1 + + keys = val.keys.to_set + instance = new + data = instance.to_h + + fields.each do |name, field| + mode, required, target = field.fetch_values(:mode, :required, :type) + api_name, nilable, const = field.fetch_values(:api_name, :nilable, :const) + + unless val.key?(api_name) + if const != Orb::Util::OMIT + exactness[:yes] += 1 + elsif required && mode != :dump + exactness[nilable ? :maybe : :no] += 1 + else + exactness[:yes] += 1 + end + next + end + + item = val.fetch(api_name) + keys.delete(api_name) + + converted = + if item.nil? && (nilable || !required) + exactness[nilable ? :yes : :maybe] += 1 + nil + else + coerced = Orb::Type::Converter.coerce(target, item, state: state) + case target + in Orb::Type::Converter | Symbol + coerced + else + item + end + end + data.store(name, converted) + end + + keys.each { data.store(_1, val.fetch(_1)) } + instance + end + + # @api private + # + # @param value [Orb::BaseModel, Object] + # + # @return [Hash{Object=>Object}, Object] + def dump(value) + unless (coerced = Orb::Util.coerce_hash(value)).is_a?(Hash) + return super + end + + acc = {} + + coerced.each do |key, val| + name = key.is_a?(String) ? key.to_sym : key + case (field = known_fields[name]) + in nil + acc.store(name, super(val)) + else + mode, api_name, type_fn = field.fetch_values(:mode, :api_name, :type_fn) + case mode + in :coerce + next + else + target = type_fn.call + acc.store(api_name, Orb::Type::Converter.dump(target, val)) + end + end + end + + known_fields.each_value do |field| + mode, api_name, const = field.fetch_values(:mode, :api_name, :const) + next if mode == :coerce || acc.key?(api_name) || const == Orb::Util::OMIT + acc.store(api_name, const) + end + + acc + end + end + + # Returns the raw value associated with the given key, if found. Otherwise, nil is + # returned. + # + # It is valid to lookup keys that are not in the API spec, for example to access + # undocumented features. This method does not parse response data into + # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. + # + # @param key [Symbol] + # + # @return [Object, nil] + def [](key) + unless key.instance_of?(Symbol) + raise ArgumentError.new("Expected symbol key for lookup, got #{key.inspect}") + end + + @data[key] + end + + # 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. + # + # @return [Hash{Symbol=>Object}] + def to_h = @data + + alias_method :to_hash, :to_h + + # @param keys [Array, nil] + # + # @return [Hash{Symbol=>Object}] + def deconstruct_keys(keys) + (keys || self.class.known_fields.keys) + .filter_map do |k| + unless self.class.known_fields.key?(k) + next + end + + [k, public_send(k)] + end + .to_h + end + + # Create a new instance of a model. + # + # @param data [Hash{Symbol=>Object}, Orb::BaseModel] + def initialize(data = {}) + case Orb::Util.coerce_hash(data) + in Hash => coerced + @data = coerced + else + raise ArgumentError.new("Expected a #{Hash} or #{Orb::BaseModel}, got #{data.inspect}") + end + end + + # @return [String] + def inspect + rows = self.class.known_fields.keys.map do + "#{_1}=#{@data.key?(_1) ? public_send(_1) : ''}" + rescue Orb::ConversionError + "#{_1}=#{@data.fetch(_1)}" + end + "#<#{self.class.name}:0x#{object_id.to_s(16)} #{rows.join(' ')}>" + end + end + end +end diff --git a/lib/orb/type/base_page.rb b/lib/orb/type/base_page.rb new file mode 100644 index 00000000..864b6e7f --- /dev/null +++ b/lib/orb/type/base_page.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +module Orb + module Type + # @example + # if page.has_next? + # page = page.next_page + # end + # + # @example + # page.auto_paging_each do |top_level| + # puts(top_level) + # end + # + # @example + # top_levels = + # page + # .to_enum + # .lazy + # .select { _1.object_id.even? } + # .map(&:itself) + # .take(2) + # .to_a + # + # top_levels => Array + module BasePage + # rubocop:disable Lint/UnusedMethodArgument + + # @return [Boolean] + def next_page? = (raise NotImplementedError) + + # @raise [Orb::APIError] + # @return [Orb::Type::BasePage] + def next_page = (raise NotImplementedError) + + # @param blk [Proc] + # + # @return [void] + def auto_paging_each(&) = (raise NotImplementedError) + + # @return [Enumerable] + def to_enum = super(:auto_paging_each) + + alias_method :enum_for, :to_enum + + # @api private + # + # @param client [Orb::Transport::BaseClient] + # @param req [Hash{Symbol=>Object}] + # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param page_data [Object] + def initialize(client:, req:, headers:, page_data:) + @client = client + @req = req + super() + end + + # rubocop:enable Lint/UnusedMethodArgument + end + end +end diff --git a/lib/orb/type/boolean_model.rb b/lib/orb/type/boolean_model.rb new file mode 100644 index 00000000..dc17335c --- /dev/null +++ b/lib/orb/type/boolean_model.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +module Orb + module Type + # @api private + # + # @abstract + # + # Ruby has no Boolean class; this is something for models to refer to. + class BooleanModel + extend Orb::Type::Converter + + # @param other [Object] + # + # @return [Boolean] + def self.===(other) = other == true || other == false + + # @param other [Object] + # + # @return [Boolean] + def self.==(other) = other.is_a?(Class) && other <= Orb::BooleanModel + + class << self + # @api private + # + # @param value [Boolean, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Boolean, Object] + def coerce(value, state:) + state.fetch(:exactness)[value == true || value == false ? :yes : :no] += 1 + value + end + + # @!parse + # # @api private + # # + # # @param value [Boolean, Object] + # # + # # @return [Boolean, Object] + # def dump(value) = super + end + end + end +end diff --git a/lib/orb/type/converter.rb b/lib/orb/type/converter.rb new file mode 100644 index 00000000..a5f26734 --- /dev/null +++ b/lib/orb/type/converter.rb @@ -0,0 +1,217 @@ +# frozen_string_literal: true + +module Orb + module Type + # rubocop:disable Metrics/ModuleLength + # @api private + module Converter + # rubocop:disable Lint/UnusedMethodArgument + + # @api private + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce(value, state:) = (raise NotImplementedError) + + # @api private + # + # @param value [Object] + # + # @return [Object] + def dump(value) + case value + in Array + value.map { Orb::Unknown.dump(_1) } + in Hash + value.transform_values { Orb::Unknown.dump(_1) } + in Orb::BaseModel + value.class.dump(value) + else + value + end + end + + # rubocop:enable Lint/UnusedMethodArgument + + class << self + # @api private + # + # @param spec [Hash{Symbol=>Object}, Proc, Orb::Type::Converter, Class] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + # + # @return [Proc] + def type_info(spec) + case spec + in Proc + spec + in Hash + type_info(spec.slice(:const, :enum, :union).first&.last) + in true | false + -> { Orb::BooleanModel } + in Orb::Type::Converter | Class | Symbol + -> { spec } + in NilClass | Integer | Float + -> { spec.class } + end + end + + # @api private + # + # Based on `target`, transform `value` into `target`, to the extent possible: + # + # 1. if the given `value` conforms to `target` already, return the given `value` + # 2. if it's possible and safe to convert the given `value` to `target`, then the + # converted value + # 3. otherwise, the given `value` unaltered + # + # The coercion process is subject to improvement between minor release versions. + # See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode + # + # @param target [Orb::Type::Converter, Class] + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] The `strictness` is one of `true`, `false`, or `:strong`. This informs the + # coercion strategy when we have to decide between multiple possible conversion + # targets: + # + # - `true`: the conversion must be exact, with minimum coercion. + # - `false`: the conversion can be approximate, with some coercion. + # - `:strong`: the conversion must be exact, with no coercion, and raise an error + # if not possible. + # + # The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For + # any given conversion attempt, the exactness will be updated based on how closely + # the value recursively matches the target type: + # + # - `yes`: the value can be converted to the target type with minimum coercion. + # - `maybe`: the value can be converted to the target type with some reasonable + # coercion. + # - `no`: the value cannot be converted to the target type. + # + # See implementation below for more details. + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce( + target, + value, + state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + ) + # rubocop:disable Lint/SuppressedException + # rubocop:disable Metrics/BlockNesting + strictness, exactness = state.fetch_values(:strictness, :exactness) + + case target + in Orb::Type::Converter + return target.coerce(value, state: state) + in Class + if value.is_a?(target) + exactness[:yes] += 1 + return value + end + + case target + in -> { _1 <= NilClass } + exactness[value.nil? ? :yes : :maybe] += 1 + return nil + in -> { _1 <= Integer } + if value.is_a?(Integer) + exactness[:yes] += 1 + return value + elsif strictness == :strong + message = "no implicit conversion of #{value.class} into #{target.inspect}" + raise TypeError.new(message) + else + Kernel.then do + return Integer(value).tap { exactness[:maybe] += 1 } + rescue ArgumentError, TypeError + end + end + in -> { _1 <= Float } + if value.is_a?(Numeric) + exactness[:yes] += 1 + return Float(value) + elsif strictness == :strong + message = "no implicit conversion of #{value.class} into #{target.inspect}" + raise TypeError.new(message) + else + Kernel.then do + return Float(value).tap { exactness[:maybe] += 1 } + rescue ArgumentError, TypeError + end + end + in -> { _1 <= String } + case value + in String | Symbol | Numeric + exactness[value.is_a?(Numeric) ? :maybe : :yes] += 1 + return value.to_s + else + if strictness == :strong + message = "no implicit conversion of #{value.class} into #{target.inspect}" + raise TypeError.new(message) + end + end + in -> { _1 <= Date || _1 <= Time } + Kernel.then do + return target.parse(value).tap { exactness[:yes] += 1 } + rescue ArgumentError, TypeError => e + raise e if strictness == :strong + end + in -> { _1 <= IO } if value.is_a?(String) + exactness[:yes] += 1 + return StringIO.new(value.b) + else + end + in Symbol + if (value.is_a?(Symbol) || value.is_a?(String)) && value.to_sym == target + exactness[:yes] += 1 + return target + elsif strictness == :strong + message = "cannot convert non-matching #{value.class} into #{target.inspect}" + raise ArgumentError.new(message) + end + else + end + + exactness[:no] += 1 + value + # rubocop:enable Metrics/BlockNesting + # rubocop:enable Lint/SuppressedException + end + + # @api private + # + # @param target [Orb::Type::Converter, Class] + # @param value [Object] + # + # @return [Object] + def dump(target, value) + target.is_a?(Orb::Type::Converter) ? target.dump(value) : Orb::Unknown.dump(value) + end + end + end + # rubocop:enable Metrics/ModuleLength + end +end diff --git a/lib/orb/type/enum.rb b/lib/orb/type/enum.rb new file mode 100644 index 00000000..eea99dc8 --- /dev/null +++ b/lib/orb/type/enum.rb @@ -0,0 +1,101 @@ +# frozen_string_literal: true + +module Orb + module Type + # @api private + # + # A value from among a specified list of options. OpenAPI enum values map to Ruby + # values in the SDK as follows: + # + # 1. boolean => true | false + # 2. integer => Integer + # 3. float => Float + # 4. string => Symbol + # + # We can therefore convert string values to Symbols, but can't convert other + # values safely. + # + # @example + # # `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 + # case billing_cycle_relative_date + # in :start_of_term + # # ... + # in :end_of_term + # # ... + # else + # puts(billing_cycle_relative_date) + # end + module Enum + include Orb::Type::Converter + + # All of the valid Symbol values for this enum. + # + # @return [Array] + def values = (@values ||= constants.map { const_get(_1) }) + + # @api private + # + # Guard against thread safety issues by instantiating `@values`. + private def finalize! = values + + # @param other [Object] + # + # @return [Boolean] + def ===(other) = values.include?(other) + + # @param other [Object] + # + # @return [Boolean] + def ==(other) + other.is_a?(Module) && other.singleton_class <= Orb::Enum && other.values.to_set == values.to_set + end + + # @api private + # + # Unlike with primitives, `Enum` additionally validates that the value is a member + # of the enum. + # + # @param value [String, Symbol, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Symbol, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + val = value.is_a?(String) ? value.to_sym : value + + if values.include?(val) + exactness[:yes] += 1 + val + else + exactness[values.first&.class == val.class ? :maybe : :no] += 1 + value + end + end + + # @!parse + # # @api private + # # + # # @param value [Symbol, Object] + # # + # # @return [Symbol, Object] + # def dump(value) = super + end + end +end diff --git a/lib/orb/type/hash_of.rb b/lib/orb/type/hash_of.rb new file mode 100644 index 00000000..f8f3ed3f --- /dev/null +++ b/lib/orb/type/hash_of.rb @@ -0,0 +1,130 @@ +# frozen_string_literal: true + +module Orb + module Type + # @api private + # + # @abstract + # + # Hash of items of a given type. + class HashOf + include Orb::Type::Converter + + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Type::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] + # + # @return [Boolean] + def ===(other) + type = item_type + case other + in Hash + other.all? do |key, val| + case [key, val] + in [Symbol | String, ^type] + true + else + false + end + end + else + false + end + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) = other.is_a?(Orb::HashOf) && other.nilable? == nilable? && other.item_type == item_type + + # @api private + # + # @param value [Hash{Object=>Object}, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Hash{Symbol=>Object}, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + + unless value.is_a?(Hash) + exactness[:no] += 1 + return value + end + + target = item_type + exactness[:yes] += 1 + value + .to_h do |key, val| + k = key.is_a?(String) ? key.to_sym : key + v = + case [nilable?, val] + in [true, nil] + exactness[:yes] += 1 + nil + else + Orb::Type::Converter.coerce(target, val, state: state) + end + + exactness[:no] += 1 unless k.is_a?(Symbol) + [k, v] + end + end + + # @api private + # + # @param value [Hash{Object=>Object}, Object] + # + # @return [Hash{Symbol=>Object}, Object] + def dump(value) + target = item_type + value.is_a?(Hash) ? value.transform_values { Orb::Type::Converter.dump(target, _1) } : super + end + + # @api private + # + # @return [Orb::Type::Converter, Class] + protected def item_type = @item_type_fn.call + + # @api private + # + # @return [Boolean] + protected def nilable? = @nilable + + # @api private + # + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Type::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 initialize(type_info, spec = {}) + @item_type_fn = Orb::Type::Converter.type_info(type_info || spec) + @nilable = spec[:nil?] + end + end + end +end diff --git a/lib/orb/type/request_parameters.rb b/lib/orb/type/request_parameters.rb new file mode 100644 index 00000000..f965b4c8 --- /dev/null +++ b/lib/orb/type/request_parameters.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +module Orb + module Type + # @api private + module RequestParameters + # @!parse + # # Options to specify HTTP behaviour for this request. + # # @return [Orb::RequestOptions, Hash{Symbol=>Object}] + # attr_accessor :request_options + + # @param mod [Module] + def self.included(mod) + return unless mod <= Orb::BaseModel + + mod.extend(Orb::Type::RequestParameters::Converter) + mod.optional(:request_options, Orb::RequestOptions) + end + + # @api private + module Converter + # @api private + # + # @param params [Object] + # + # @return [Array(Object, Hash{Symbol=>Object})] + def dump_request(params) + case (dumped = dump(params)) + in Hash + [dumped.except(:request_options), dumped[:request_options]] + else + [dumped, nil] + end + end + end + end + end +end diff --git a/lib/orb/type/union.rb b/lib/orb/type/union.rb new file mode 100644 index 00000000..f025869e --- /dev/null +++ b/lib/orb/type/union.rb @@ -0,0 +1,223 @@ +# frozen_string_literal: true + +module Orb + module Type + # @api private + # + # @example + # # `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 + # 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::Type::Converter + + # @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 + + # All of the specified variants for this union. + # + # @return [Array] + def variants = derefed_variants.map(&:last) + + # @api private + # + # @param property [Symbol] + private def discriminator(property) + case property + in Symbol + @discriminator = property + end + end + + # @api private + # + # @param key [Symbol, Hash{Symbol=>Object}, Proc, Orb::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}, Proc, Orb::Type::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::Type::Converter.type_info(spec)] + in Proc | Orb::Type::Converter | Class | Hash + [nil, Orb::Type::Converter.type_info(key)] + end + + known_variants << variant_info + end + + # @api private + # + # @param value [Object] + # + # @return [Orb::Type::Converter, Class, nil] + private def resolve_variant(value) + case [@discriminator, value] + in [_, Orb::BaseModel] + value.class + in [Symbol, Hash] + key = value.fetch(@discriminator) do + value.fetch(@discriminator.to_s, Orb::Util::OMIT) + end + + return nil if key == Orb::Util::OMIT + + key = key.to_sym if key.is_a?(String) + known_variants.find { |k,| k == key }&.last&.call + else + nil + end + end + + # rubocop:disable Style/HashEachMethods + # rubocop:disable Style/CaseEquality + + # @param other [Object] + # + # @return [Boolean] + def ===(other) + known_variants.any? do |_, variant_fn| + variant_fn.call === other + end + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) + other.is_a?(Module) && other.singleton_class <= Orb::Union && other.derefed_variants == derefed_variants + end + + # @api private + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce(value, state:) + if (target = resolve_variant(value)) + return Orb::Type::Converter.coerce(target, value, state: state) + end + + strictness = state.fetch(:strictness) + exactness = state.fetch(:exactness) + state[:strictness] = strictness == :strong ? true : strictness + + alternatives = [] + known_variants.each do |_, variant_fn| + target = variant_fn.call + exact = state[:exactness] = {yes: 0, no: 0, maybe: 0} + state[:branched] += 1 + + coerced = Orb::Type::Converter.coerce(target, value, state: state) + yes, no, maybe = exact.values + if (no + maybe).zero? || (!strictness && yes.positive?) + exact.each { exactness[_1] += _2 } + state[:exactness] = exactness + return coerced + elsif maybe.positive? + alternatives << [[-yes, -maybe, no], exact, coerced] + end + end + + case alternatives.sort_by(&:first) + in [] + exactness[:no] += 1 + if strictness == :strong + message = "no possible conversion of #{value.class} into a variant of #{target.inspect}" + raise ArgumentError.new(message) + end + value + in [[_, exact, coerced], *] + exact.each { exactness[_1] += _2 } + coerced + end + .tap { state[:exactness] = exactness } + ensure + state[:strictness] = strictness + end + + # @api private + # + # @param value [Object] + # + # @return [Object] + def dump(value) + if (target = resolve_variant(value)) + return Orb::Type::Converter.dump(target, value) + end + + known_variants.each do + target = _2.call + return Orb::Type::Converter.dump(target, value) if target === value + end + + super + end + + # rubocop:enable Style/CaseEquality + # rubocop:enable Style/HashEachMethods + end + end +end diff --git a/lib/orb/type/unknown.rb b/lib/orb/type/unknown.rb new file mode 100644 index 00000000..3cc965bb --- /dev/null +++ b/lib/orb/type/unknown.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +module Orb + module Type + # @api private + # + # @abstract + # + # When we don't know what to expect for the value. + class Unknown + extend Orb::Type::Converter + + # rubocop:disable Lint/UnusedMethodArgument + + # @param other [Object] + # + # @return [Boolean] + def self.===(other) = true + + # @param other [Object] + # + # @return [Boolean] + def self.==(other) = other.is_a?(Class) && other <= Orb::Unknown + + class << self + # @api private + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce(value, state:) + state.fetch(:exactness)[:yes] += 1 + value + end + + # @!parse + # # @api private + # # + # # @param value [Object] + # # + # # @return [Object] + # def dump(value) = super + end + + # rubocop:enable Lint/UnusedMethodArgument + end + end +end diff --git a/lib/orb/util.rb b/lib/orb/util.rb index 6be64643..462639fb 100644 --- a/lib/orb/util.rb +++ b/lib/orb/util.rb @@ -75,7 +75,7 @@ def primitive?(input) def coerce_boolean(input) case input.is_a?(String) ? input.downcase : input in Numeric - !input.zero? + input.nonzero? in "true" true in "false" @@ -165,14 +165,12 @@ class << self private def deep_merge_lr(lhs, rhs, concat: false) case [lhs, rhs, concat] in [Hash, Hash, _] - # rubocop:disable Style/YodaCondition - rhs_cleaned = rhs.reject { |_, val| OMIT == val } + rhs_cleaned = rhs.reject { _2 == Orb::Util::OMIT } lhs - .reject { |key, _| OMIT == rhs[key] } + .reject { |key, _| rhs[key] == Orb::Util::OMIT } .merge(rhs_cleaned) do |_, old_val, new_val| deep_merge_lr(old_val, new_val, concat: concat) end - # rubocop:enable Style/YodaCondition in [Array, Array, true] lhs.concat(rhs) else diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 0987ef1b..f28574e4 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.29" + VERSION = "0.1.0-alpha.30" end diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi deleted file mode 100644 index d11974dd..00000000 --- a/rbi/lib/orb/base_client.rbi +++ /dev/null @@ -1,193 +0,0 @@ -# typed: strong - -module Orb - # @api private - 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, 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 - - # from whatwg fetch spec - MAX_REDIRECTS = 20 - - PLATFORM_HEADERS = T::Hash[String, String] - - class << self - # @api private - sig { params(req: Orb::BaseClient::RequestComponentsShape).void } - def validate!(req) - end - - # @api private - sig do - params(status: Integer, headers: T.any(T::Hash[String, String], Net::HTTPHeader)).returns(T::Boolean) - end - def should_retry?(status, headers:) - end - - # @api private - sig do - params( - request: Orb::BaseClient::RequestInputShape, - status: Integer, - response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) - ) - .returns(Orb::BaseClient::RequestInputShape) - end - def follow_redirect(request, status:, response_headers:) - end - - # @api private - sig do - params(status: T.any(Integer, Orb::APIConnectionError), stream: T.nilable(T::Enumerable[String])).void - end - def reap_connection!(status, stream:) - end - end - - # @api private - sig { returns(T.anything) } - attr_accessor :requester - - # @api private - sig do - params( - base_url: String, - timeout: Float, - max_retries: Integer, - initial_retry_delay: Float, - max_retry_delay: Float, - headers: T::Hash[String, - T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))], - idempotency_header: T.nilable(String) - ) - .returns(T.attached_class) - end - def self.new( - base_url:, - timeout: 0.0, - max_retries: 0, - initial_retry_delay: 0.0, - max_retry_delay: 0.0, - headers: {}, - idempotency_header: nil - ) - end - - # @api private - sig { overridable.returns(T::Hash[String, String]) } - private def auth_headers - end - - # @api private - sig { returns(String) } - private def generate_idempotency_key - end - - # @api private - sig do - overridable - .params(req: Orb::BaseClient::RequestComponentsShape, opts: Orb::Util::AnyHash) - .returns(Orb::BaseClient::RequestInputShape) - end - private def build_request(req, opts) - end - - # @api private - sig { params(headers: T::Hash[String, String], retry_count: Integer).returns(Float) } - private def retry_delay(headers, retry_count:) - end - - # @api private - sig do - params( - request: Orb::BaseClient::RequestInputShape, - redirect_count: Integer, - retry_count: Integer, - send_retry_header: T::Boolean - ) - .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) - end - private def send_request(request, redirect_count:, retry_count:, send_retry_header:) - end - - # Execute the request specified by `req`. This is the method that all resource - # methods call into. - sig do - params( - 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)) - ) - .returns(T.anything) - end - def request( - method, - path, - query: {}, - headers: {}, - body: nil, - unwrap: nil, - page: nil, - stream: nil, - model: Orb::Unknown, - options: {} - ) - end - - sig { returns(String) } - def inspect - end - end -end diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi deleted file mode 100644 index 157231f2..00000000 --- a/rbi/lib/orb/base_model.rbi +++ /dev/null @@ -1,619 +0,0 @@ -# typed: strong - -module Orb - # @api private - module Converter - Input = T.type_alias { T.any(Orb::Converter, T::Class[T.anything]) } - - # @api private - sig { overridable.params(value: T.anything).returns(T.anything) } - def coerce(value) - end - - # @api private - sig { overridable.params(value: T.anything).returns(T.anything) } - def dump(value) - end - - # @api private - sig do - overridable - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def try_strict_coerce(value) - end - - class << self - # @api private - sig do - params( - spec: T.any( - { - const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), - enum: T.nilable(T.proc.returns(Orb::Converter::Input)), - union: T.nilable(T.proc.returns(Orb::Converter::Input)) - }, - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ) - ) - .returns(T.proc.returns(T.anything).void) - end - def self.type_info(spec) - end - - # @api private - # - # Based on `target`, transform `value` into `target`, to the extent possible: - # - # 1. if the given `value` conforms to `target` already, return the given `value` - # 2. if it's possible and safe to convert the given `value` to `target`, then the - # converted value - # 3. otherwise, the given `value` unaltered - sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.coerce(target, value) - end - - # @api private - sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.dump(target, value) - end - - # @api private - # - # The underlying algorithm for computing maximal compatibility is subject to - # future improvements. - # - # Similar to `#.coerce`, used to determine the best union variant to decode into. - # - # 1. determine if strict-ish coercion is possible - # 2. return either result of successful coercion or if loose coercion is possible - # 3. return a score for recursively tallied count for fields that can be coerced - sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.try_strict_coerce(target, value) - end - end - end - - # @api private - # - # When we don't know what to expect for the value. - class Unknown - extend Orb::Converter - - abstract! - final! - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.===(other) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.==(other) - end - - class << self - # @api private - sig(:final) { override.params(value: T.anything).returns(T.anything) } - def coerce(value) - end - - # @api private - sig(:final) { override.params(value: T.anything).returns(T.anything) } - def dump(value) - end - - # @api private - sig(:final) 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 - end - - # @api private - # - # Ruby has no Boolean class; this is something for models to refer to. - class BooleanModel - extend Orb::Converter - - abstract! - final! - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.===(other) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.==(other) - end - - class << self - # @api private - sig(:final) do - override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) - end - def coerce(value) - end - - # @api private - sig(:final) do - override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) - end - def dump(value) - end - - # @api private - sig(:final) 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 - end - - # @api private - # - # A value from among a specified list of options. OpenAPI enum values map to Ruby - # values in the SDK as follows: - # - # 1. boolean => true | false - # 2. integer => Integer - # 3. float => Float - # 4. string => Symbol - # - # We can therefore convert string values to Symbols, but can't convert other - # values safely. - module Enum - include Orb::Converter - - # 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 - - sig { params(other: T.anything).returns(T::Boolean) } - def ===(other) - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ==(other) - 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 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 - module Union - include Orb::Converter - - # @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), T.anything]]) } - protected def derefed_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 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(T.anything)) } - private def resolve_variant(value) - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ===(other) - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ==(other) - 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 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 - # - # Array of items of a given type. - class ArrayOf - include Orb::Converter - - abstract! - final! - - 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) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - # @api private - sig(:final) do - override - .params(value: T.any(T::Enumerable[T.anything], T.anything)) - .returns(T.any(T::Array[T.anything], T.anything)) - end - def coerce(value) - end - - # @api private - sig(:final) do - override - .params(value: T.any(T::Enumerable[T.anything], T.anything)) - .returns(T.any(T::Array[T.anything], T.anything)) - end - def dump(value) - end - - # @api private - sig(:final) 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(:final) { returns(T.anything) } - protected def item_type - end - - # @api private - sig(:final) do - params( - type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), - spec: Orb::Util::AnyHash - ) - .void - end - def initialize(type_info, spec = {}) - end - end - - # @api private - # - # Hash of items of a given type. - class HashOf - include Orb::Converter - - abstract! - final! - - 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) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - # @api private - sig(:final) do - override - .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(Orb::Util::AnyHash, T.anything)) - end - def coerce(value) - end - - # @api private - sig(:final) do - override - .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(Orb::Util::AnyHash, T.anything)) - end - def dump(value) - end - - # @api private - sig(:final) 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(:final) { returns(T.anything) } - protected def item_type - end - - # @api private - sig(:final) do - params( - type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), - spec: Orb::Util::AnyHash - ) - .void - end - def initialize(type_info, spec = {}) - end - end - - class BaseModel - extend Orb::Converter - - abstract! - - KnownFieldShape = T.type_alias { {mode: T.nilable(Symbol), required: T::Boolean} } - - class << self - # @api private - # - # Assumes superclass fields are totally defined before fields are accessed / - # defined on subclasses. - sig do - returns( - T::Hash[Symbol, - T.all(Orb::BaseModel::KnownFieldShape, {type_fn: T.proc.returns(Orb::Converter::Input)})] - ) - end - def known_fields - end - - # @api private - sig { returns(T::Hash[Symbol, Symbol]) } - def reverse_map - end - - # @api private - sig { returns(T::Hash[Symbol, T.all(Orb::BaseModel::KnownFieldShape, {type: Orb::Converter::Input})]) } - def fields - end - - # @api private - sig { returns(T::Hash[Symbol, T.proc.returns(T::Class[T.anything])]) } - def defaults - end - - # @api private - sig do - params( - name_sym: Symbol, - required: T::Boolean, - type_info: T.any( - { - const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), - enum: T.nilable(T.proc.returns(Orb::Converter::Input)), - union: T.nilable(T.proc.returns(Orb::Converter::Input)), - api_name: Symbol, - nil?: T::Boolean - }, - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: Orb::Util::AnyHash - ) - .void - end - private def add_field(name_sym, required:, type_info:, spec:) - end - - # @api private - sig do - params( - name_sym: Symbol, - type_info: T.any( - Orb::Util::AnyHash, - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: Orb::Util::AnyHash - ) - .void - end - def required(name_sym, type_info, spec = {}) - end - - # @api private - sig do - params( - name_sym: Symbol, - type_info: T.any( - Orb::Util::AnyHash, - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: Orb::Util::AnyHash - ) - .void - end - def optional(name_sym, type_info, spec = {}) - end - - # @api private - # - # `request_only` attributes not excluded from `.#coerce` when receiving responses - # even if well behaved servers should not send them - sig { params(blk: T.proc.void).void } - private def request_only(&blk) - end - - # @api private - # - # `response_only` attributes are omitted from `.#dump` when making requests - sig { params(blk: T.proc.void).void } - private def response_only(&blk) - end - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - class << self - # @api private - sig do - override - .params(value: T.any(Orb::BaseModel, T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(T.attached_class, T.anything)) - end - def coerce(value) - end - - # @api private - sig do - override - .params(value: T.any(T.attached_class, T.anything)) - .returns(T.any(T::Hash[T.anything, T.anything], T.anything)) - end - 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 - end - - # Returns the raw value associated with the given key, if found. Otherwise, nil is - # returned. - # - # It is valid to lookup keys that are not in the API spec, for example to access - # undocumented features. This method does not parse response data into - # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. - sig { params(key: Symbol).returns(T.nilable(T.anything)) } - def [](key) - end - - # 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_h - end - - # 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(Orb::Util::AnyHash) } - def deconstruct_keys(keys) - end - - # Create a new instance of a model. - sig { params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns(T.attached_class) } - def self.new(data = {}) - end - - sig { returns(String) } - def to_s - end - - sig { returns(String) } - def inspect - end - end -end diff --git a/rbi/lib/orb/base_page.rbi b/rbi/lib/orb/base_page.rbi deleted file mode 100644 index 0a706852..00000000 --- a/rbi/lib/orb/base_page.rbi +++ /dev/null @@ -1,36 +0,0 @@ -# typed: strong - -module Orb - module BasePage - Elem = type_member(:out) - - sig { overridable.returns(T::Boolean) } - def next_page? - end - - sig { overridable.returns(T.self_type) } - def next_page - end - - sig { overridable.params(blk: T.proc.params(arg0: Elem).void).void } - def auto_paging_each(&blk) - end - - sig { returns(T::Enumerable[Elem]) } - def to_enum - end - - # @api private - sig do - params( - client: Orb::BaseClient, - req: Orb::BaseClient::RequestComponentsShape, - headers: T.any(T::Hash[String, String], Net::HTTPHeader), - page_data: T.anything - ) - .void - end - def initialize(client:, req:, headers:, page_data:) - end - end -end diff --git a/rbi/lib/orb/client.rbi b/rbi/lib/orb/client.rbi index 7f098875..0612ed96 100644 --- a/rbi/lib/orb/client.rbi +++ b/rbi/lib/orb/client.rbi @@ -1,7 +1,7 @@ # typed: strong module Orb - class Client < Orb::BaseClient + class Client < Orb::Transport::BaseClient DEFAULT_MAX_RETRIES = 2 DEFAULT_TIMEOUT_IN_SECONDS = T.let(60.0, Float) diff --git a/rbi/lib/orb/extern.rbi b/rbi/lib/orb/extern.rbi deleted file mode 100644 index 78cb5c26..00000000 --- a/rbi/lib/orb/extern.rbi +++ /dev/null @@ -1,7 +0,0 @@ -# typed: strong - -module Orb - # @api private - module Extern - end -end diff --git a/rbi/lib/orb/models/alert.rbi b/rbi/lib/orb/models/alert.rbi index d3d7a2ae..aa5cd68e 100644 --- a/rbi/lib/orb/models/alert.rbi +++ b/rbi/lib/orb/models/alert.rbi @@ -76,7 +76,18 @@ module Orb ) .returns(T.attached_class) end - def self.new(id:, created_at:, currency:, customer:, enabled:, metric:, plan:, subscription:, thresholds:, type:) + def self.new( + id:, + created_at:, + currency:, + customer:, + enabled:, + metric:, + plan:, + subscription:, + thresholds:, + type: + ) end sig do @@ -219,10 +230,8 @@ module Orb USAGE_EXCEEDED = T.let(:usage_exceeded, Orb::Models::Alert::Type::TaggedSymbol) COST_EXCEEDED = T.let(:cost_exceeded, Orb::Models::Alert::Type::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Alert::Type::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Alert::Type::TaggedSymbol]) } + def self.values 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 2972efb2..302c1a9d 100644 --- a/rbi/lib/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_customer_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class AlertCreateForCustomerParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The case sensitive currency or custom pricing unit to use for this alert. @@ -58,10 +58,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi index 6ba342d5..4a345e39 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 @@ -3,7 +3,7 @@ module Orb module Models class AlertCreateForExternalCustomerParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The case sensitive currency or custom pricing unit to use for this alert. @@ -61,10 +61,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi index 5844f512..09db0241 100644 --- a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class AlertCreateForSubscriptionParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The thresholds that define the values at which the alert will be triggered. @@ -74,10 +74,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/alert_disable_params.rbi b/rbi/lib/orb/models/alert_disable_params.rbi index e9b8fe52..8f254ade 100644 --- a/rbi/lib/orb/models/alert_disable_params.rbi +++ b/rbi/lib/orb/models/alert_disable_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class AlertDisableParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Used to update the status of a plan alert scoped to this subscription_id diff --git a/rbi/lib/orb/models/alert_enable_params.rbi b/rbi/lib/orb/models/alert_enable_params.rbi index fbe1b5be..1b0014f1 100644 --- a/rbi/lib/orb/models/alert_enable_params.rbi +++ b/rbi/lib/orb/models/alert_enable_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class AlertEnableParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Used to update the status of a plan alert scoped to this subscription_id diff --git a/rbi/lib/orb/models/alert_list_params.rbi b/rbi/lib/orb/models/alert_list_params.rbi index d50abfc3..545f3540 100644 --- a/rbi/lib/orb/models/alert_list_params.rbi +++ b/rbi/lib/orb/models/alert_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class AlertListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/orb/models/alert_retrieve_params.rbi b/rbi/lib/orb/models/alert_retrieve_params.rbi index a0597dfb..a879ef2d 100644 --- a/rbi/lib/orb/models/alert_retrieve_params.rbi +++ b/rbi/lib/orb/models/alert_retrieve_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class AlertRetrieveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/alert_update_params.rbi b/rbi/lib/orb/models/alert_update_params.rbi index 6b8c0397..2a1b2377 100644 --- a/rbi/lib/orb/models/alert_update_params.rbi +++ b/rbi/lib/orb/models/alert_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class AlertUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The thresholds that define the values at which the alert will be triggered. diff --git a/rbi/lib/orb/models/amount_discount.rbi b/rbi/lib/orb/models/amount_discount.rbi index 2dfe7df0..daf5f66f 100644 --- a/rbi/lib/orb/models/amount_discount.rbi +++ b/rbi/lib/orb/models/amount_discount.rbi @@ -52,10 +52,8 @@ module Orb AMOUNT = T.let(:amount, Orb::Models::AmountDiscount::DiscountType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::AmountDiscount::DiscountType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::AmountDiscount::DiscountType::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/billable_metric.rbi b/rbi/lib/orb/models/billable_metric.rbi index 25d14c53..f7864c3d 100644 --- a/rbi/lib/orb/models/billable_metric.rbi +++ b/rbi/lib/orb/models/billable_metric.rbi @@ -74,10 +74,8 @@ module Orb DRAFT = T.let(:draft, Orb::Models::BillableMetric::Status::TaggedSymbol) ARCHIVED = T.let(:archived, Orb::Models::BillableMetric::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::BillableMetric::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::BillableMetric::Status::TaggedSymbol]) } + def self.values 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 547b9087..6c78f7cc 100644 --- a/rbi/lib/orb/models/billing_cycle_relative_date.rbi +++ b/rbi/lib/orb/models/billing_cycle_relative_date.rbi @@ -11,10 +11,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/coupon.rbi b/rbi/lib/orb/models/coupon.rbi index 775bf1a0..92821181 100644 --- a/rbi/lib/orb/models/coupon.rbi +++ b/rbi/lib/orb/models/coupon.rbi @@ -50,7 +50,15 @@ module Orb ) .returns(T.attached_class) end - def self.new(id:, archived_at:, discount:, duration_in_months:, max_redemptions:, redemption_code:, times_redeemed:) + def self.new( + id:, + archived_at:, + discount:, + duration_in_months:, + max_redemptions:, + redemption_code:, + times_redeemed: + ) end sig do @@ -73,13 +81,8 @@ module Orb module Discount extend Orb::Union - 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 + sig { override.returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount]) } + def self.variants end end end diff --git a/rbi/lib/orb/models/coupon_archive_params.rbi b/rbi/lib/orb/models/coupon_archive_params.rbi index 62a9aa7b..478bab1d 100644 --- a/rbi/lib/orb/models/coupon_archive_params.rbi +++ b/rbi/lib/orb/models/coupon_archive_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CouponArchiveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/coupon_create_params.rbi b/rbi/lib/orb/models/coupon_create_params.rbi index b410349d..bced664b 100644 --- a/rbi/lib/orb/models/coupon_create_params.rbi +++ b/rbi/lib/orb/models/coupon_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CouponCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do @@ -44,7 +44,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(discount:, redemption_code:, duration_in_months: nil, max_redemptions: nil, request_options: {}) + def self.new( + discount:, + redemption_code:, + duration_in_months: nil, + max_redemptions: nil, + request_options: {} + ) end sig do @@ -68,16 +74,6 @@ module Orb module Discount extend Orb::Union - 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) } attr_accessor :discount_type @@ -110,15 +106,13 @@ module Orb end end - class << self - sig do - override - .returns( - [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] - ) - end - def variants - end + sig do + override + .returns( + [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] + ) + end + def self.variants end end end diff --git a/rbi/lib/orb/models/coupon_fetch_params.rbi b/rbi/lib/orb/models/coupon_fetch_params.rbi index 325487b2..a8987bb7 100644 --- a/rbi/lib/orb/models/coupon_fetch_params.rbi +++ b/rbi/lib/orb/models/coupon_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CouponFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/coupon_list_params.rbi b/rbi/lib/orb/models/coupon_list_params.rbi index 1e183541..3e1d8252 100644 --- a/rbi/lib/orb/models/coupon_list_params.rbi +++ b/rbi/lib/orb/models/coupon_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CouponListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned diff --git a/rbi/lib/orb/models/coupons/subscription_list_params.rbi b/rbi/lib/orb/models/coupons/subscription_list_params.rbi index 90659593..85b9c80e 100644 --- a/rbi/lib/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/lib/orb/models/coupons/subscription_list_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Coupons class SubscriptionListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned diff --git a/rbi/lib/orb/models/credit_note.rbi b/rbi/lib/orb/models/credit_note.rbi index ae2c7fbb..07de6230 100644 --- a/rbi/lib/orb/models/credit_note.rbi +++ b/rbi/lib/orb/models/credit_note.rbi @@ -338,10 +338,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol]) } + def self.values end end end @@ -376,7 +374,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(amount_applied:, discount_type:, percentage_discount:, applies_to_prices: nil, reason: nil) + def self.new( + amount_applied:, + discount_type:, + percentage_discount:, + applies_to_prices: nil, + reason: nil + ) end sig do @@ -405,10 +409,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol]) } + def self.values end end @@ -440,10 +442,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CreditNote::Reason::TaggedSymbol]) } + def self.values end end @@ -456,10 +456,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CreditNote::Type::TaggedSymbol]) } + def self.values end end @@ -489,7 +487,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(amount_applied:, discount_type:, percentage_discount:, applies_to_prices: nil, reason: nil) + def self.new( + amount_applied:, + discount_type:, + percentage_discount:, + applies_to_prices: nil, + reason: nil + ) end sig do @@ -515,10 +519,8 @@ module Orb PERCENTAGE = T.let(:percentage, Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/credit_note_create_params.rbi b/rbi/lib/orb/models/credit_note_create_params.rbi index a143a82d..812b5030 100644 --- a/rbi/lib/orb/models/credit_note_create_params.rbi +++ b/rbi/lib/orb/models/credit_note_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CreditNoteCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) } @@ -74,10 +74,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol]) } + def self.values 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 d29a47b6..1ba4d388 100644 --- a/rbi/lib/orb/models/credit_note_fetch_params.rbi +++ b/rbi/lib/orb/models/credit_note_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CreditNoteFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/credit_note_list_params.rbi b/rbi/lib/orb/models/credit_note_list_params.rbi index 8cd5de4b..87e29fac 100644 --- a/rbi/lib/orb/models/credit_note_list_params.rbi +++ b/rbi/lib/orb/models/credit_note_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CreditNoteListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/orb/models/customer.rbi b/rbi/lib/orb/models/customer.rbi index 724baa9f..d2fb76e4 100644 --- a/rbi/lib/orb/models/customer.rbi +++ b/rbi/lib/orb/models/customer.rbi @@ -457,10 +457,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customer::PaymentProvider::TaggedSymbol]) } + def self.values end end @@ -738,10 +736,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Country::TaggedSymbol]) } + def self.values end end @@ -823,10 +819,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Type::TaggedSymbol]) } + def self.values end end end @@ -917,15 +911,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol] + ) + end + def self.values end end end diff --git a/rbi/lib/orb/models/customer_create_params.rbi b/rbi/lib/orb/models/customer_create_params.rbi index c685dd94..78d34610 100644 --- a/rbi/lib/orb/models/customer_create_params.rbi +++ b/rbi/lib/orb/models/customer_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CustomerCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # A valid customer email, to be used for notifications. When Orb triggers payment @@ -477,10 +477,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol]) } + def self.values end end @@ -550,16 +548,6 @@ module Orb module TaxConfiguration extend Orb::Union - 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) } attr_accessor :tax_exempt @@ -606,15 +594,13 @@ module Orb end end - class << self - sig do - override - .returns( - [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] - ) - end - def variants - end + sig do + override + .returns( + [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def self.variants end end @@ -843,10 +829,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol]) } + def self.values end end @@ -928,10 +912,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/customer_delete_params.rbi b/rbi/lib/orb/models/customer_delete_params.rbi index dc83c09e..213ac4b3 100644 --- a/rbi/lib/orb/models/customer_delete_params.rbi +++ b/rbi/lib/orb/models/customer_delete_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CustomerDeleteParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do 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 433ea598..c63db625 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 @@ -3,7 +3,7 @@ module Orb module Models class CustomerFetchByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/customer_fetch_params.rbi b/rbi/lib/orb/models/customer_fetch_params.rbi index bcae34d2..559201c9 100644 --- a/rbi/lib/orb/models/customer_fetch_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CustomerFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/customer_list_params.rbi b/rbi/lib/orb/models/customer_list_params.rbi index 33e88b4c..38ca4370 100644 --- a/rbi/lib/orb/models/customer_list_params.rbi +++ b/rbi/lib/orb/models/customer_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CustomerListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } 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 d385c3b5..a4cb59a2 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 @@ -3,7 +3,7 @@ module Orb module Models class CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do 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 f4c61f1e..7dbefe11 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 @@ -3,7 +3,7 @@ module Orb module Models class CustomerSyncPaymentMethodsFromGatewayParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do 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 4ec10923..7a72e7ef 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 @@ -3,7 +3,7 @@ module Orb module Models class CustomerUpdateByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) } @@ -498,10 +498,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol]) } + def self.values end end @@ -571,16 +569,6 @@ module Orb module TaxConfiguration extend Orb::Union - 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) } attr_accessor :tax_exempt @@ -627,15 +615,13 @@ module Orb end end - class << self - sig do - override - .returns( - [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] - ) - end - def variants - end + sig do + override + .returns( + [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def self.variants end end @@ -865,10 +851,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol]) } + def self.values end end @@ -951,10 +935,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/customer_update_params.rbi b/rbi/lib/orb/models/customer_update_params.rbi index 9ae32caa..049a0006 100644 --- a/rbi/lib/orb/models/customer_update_params.rbi +++ b/rbi/lib/orb/models/customer_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class CustomerUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) } @@ -473,10 +473,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol]) } + def self.values end end @@ -546,16 +544,6 @@ module Orb module TaxConfiguration extend Orb::Union - 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) } attr_accessor :tax_exempt @@ -602,15 +590,13 @@ module Orb end end - class << self - sig do - override - .returns( - [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] - ) - end - def variants - end + sig do + override + .returns( + [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def self.variants end end @@ -839,10 +825,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol]) } + def self.values end end @@ -924,10 +908,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol]) } + def self.values 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 5ece65ca..3ca11bff 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Customers class BalanceTransactionCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(String) } @@ -54,10 +54,8 @@ module Orb INCREMENT = T.let(:increment, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) DECREMENT = T.let(:decrement, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol]) } + def self.values 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 ee597d45..d4d68a2e 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi @@ -143,10 +143,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol]) } + def self.values end end @@ -191,10 +189,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol]) } + def self.values 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 483d56ec..53717572 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Customers class BalanceTransactionListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned 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 4918e2bd..866c57d7 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi @@ -137,10 +137,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol]) } + def self.values end end @@ -183,10 +181,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol]) } + def self.values 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 bdfe86ab..63ee2960 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 @@ -4,7 +4,7 @@ module Orb module Models module Customers class CostListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The currency or custom pricing unit to use. @@ -36,7 +36,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(currency: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) + def self.new( + currency: nil, + timeframe_end: nil, + timeframe_start: nil, + view_mode: nil, + request_options: {} + ) end sig do @@ -70,10 +76,8 @@ module Orb CUMULATIVE = T.let(:cumulative, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/customers/cost_list_params.rbi b/rbi/lib/orb/models/customers/cost_list_params.rbi index 4af8f171..747422d1 100644 --- a/rbi/lib/orb/models/customers/cost_list_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Customers class CostListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The currency or custom pricing unit to use. @@ -36,7 +36,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(currency: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) + def self.new( + currency: nil, + timeframe_end: nil, + timeframe_start: nil, + view_mode: nil, + request_options: {} + ) end sig do @@ -67,10 +73,8 @@ module Orb PERIODIC = T.let(:periodic, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) CUMULATIVE = T.let(:cumulative, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi index be717b13..391b8fc4 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 @@ -4,7 +4,7 @@ module Orb module Models module Customers class CreditListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The ledger currency or custom pricing unit to use. 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 05c95838..85d444c7 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 @@ -37,7 +37,15 @@ module Orb ) .returns(T.attached_class) end - def self.new(id:, balance:, effective_date:, expiry_date:, maximum_initial_balance:, per_unit_cost_basis:, status:) + def self.new( + id:, + balance:, + effective_date:, + expiry_date:, + maximum_initial_balance:, + per_unit_cost_basis:, + status: + ) end sig do @@ -69,10 +77,8 @@ module Orb PENDING_PAYMENT = T.let(:pending_payment, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol]) } + def self.values 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 2653dcdf..11ec89c8 100644 --- a/rbi/lib/orb/models/customers/credit_list_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Customers class CreditListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The ledger currency or custom pricing unit to use. diff --git a/rbi/lib/orb/models/customers/credit_list_response.rbi b/rbi/lib/orb/models/customers/credit_list_response.rbi index 7654b29d..4c7cc912 100644 --- a/rbi/lib/orb/models/customers/credit_list_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_response.rbi @@ -37,7 +37,15 @@ module Orb ) .returns(T.attached_class) end - def self.new(id:, balance:, effective_date:, expiry_date:, maximum_initial_balance:, per_unit_cost_basis:, status:) + def self.new( + id:, + balance:, + effective_date:, + expiry_date:, + maximum_initial_balance:, + per_unit_cost_basis:, + status: + ) end sig do @@ -68,10 +76,8 @@ module Orb PENDING_PAYMENT = T.let(:pending_payment, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol]) } + def self.values 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 e1356dde..1c5a3481 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class LedgerCreateEntryByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The number of credits to effect. Note that this is required for increment, @@ -167,15 +167,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol] + ) + end + def self.values end end @@ -254,15 +252,13 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol] + ) + end + def self.values 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 f8960471..d516638b 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 @@ -9,21 +9,6 @@ module Orb 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) } attr_accessor :id @@ -238,17 +223,15 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -485,17 +468,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -720,17 +701,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -949,17 +928,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1186,17 +1163,15 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1433,17 +1408,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1662,30 +1635,26 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.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 adc36d69..2d0dd303 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class LedgerCreateEntryParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The number of credits to effect. Note that this is required for increment, @@ -149,13 +149,11 @@ module Orb AMENDMENT = T.let(:amendment, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol]) + end + def self.values end end @@ -226,13 +224,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol]) + end + def self.values 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 a55657da..1d800454 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 @@ -9,21 +9,6 @@ module Orb 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) } attr_accessor :id @@ -230,17 +215,15 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -469,17 +452,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -700,17 +681,15 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -929,17 +908,15 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1160,15 +1137,13 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def self.values end end end @@ -1397,17 +1372,15 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1618,30 +1591,26 @@ module Orb Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.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 40188710..1b174df2 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class LedgerListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } @@ -113,15 +113,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol] + ) + end + def self.values end end @@ -157,13 +155,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol]) + end + def self.values 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 a8fbf69b..fd218045 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 @@ -9,21 +9,6 @@ module Orb 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) } attr_accessor :id @@ -234,17 +219,15 @@ module Orb Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -477,17 +460,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -712,17 +693,15 @@ module Orb Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -941,17 +920,15 @@ module Orb Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1174,17 +1151,15 @@ module Orb Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1421,17 +1396,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1646,30 +1619,26 @@ module Orb Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.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 a5a6b95d..e111895f 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi @@ -5,7 +5,7 @@ module Orb module Customers module Credits class LedgerListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } @@ -109,10 +109,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol]) } + def self.values end end @@ -135,10 +133,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol]) } + def self.values 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 988c9c2f..8ac0c292 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi @@ -9,21 +9,6 @@ module Orb 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) } attr_accessor :id @@ -228,15 +213,13 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def self.values end end end @@ -463,15 +446,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def self.values end end end @@ -688,17 +669,15 @@ module Orb 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 + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -909,17 +888,15 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1130,15 +1107,13 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def self.values end end end @@ -1365,15 +1340,13 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def self.values end end end @@ -1582,28 +1555,24 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def self.values 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 + 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 self.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 82d177c6..68c4fc93 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class TopUpCreateByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The amount to increment when the threshold is reached. @@ -179,15 +179,13 @@ module Orb Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol] + ) + end + def self.values 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 7f839ffc..0bb5cede 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 @@ -181,15 +181,13 @@ module Orb Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] + ) + end + def self.values 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 66f6704a..ae8f10a6 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class TopUpCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The amount to increment when the threshold is reached. @@ -162,13 +162,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol]) + end + def self.values 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 299420c7..c947802a 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 @@ -155,13 +155,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol]) + end + def self.values 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 f7affdcf..aeabf2b5 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class TopUpDeleteByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(String) } 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 f30cf531..8aca219b 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class TopUpDeleteParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(String) } 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 cc63968f..af3d7d68 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class TopUpListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned 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 3e04b616..82c5724f 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 @@ -171,15 +171,13 @@ module Orb Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] + ) + end + def self.values 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 7320609d..364decb5 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 @@ -5,7 +5,7 @@ module Orb module Customers module Credits class TopUpListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned 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 d9077ae2..dbf77fe2 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 @@ -154,13 +154,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol]) + end + def self.values end end end diff --git a/rbi/lib/orb/models/dimensional_price_group.rbi b/rbi/lib/orb/models/dimensional_price_group.rbi index 0af6e5c2..c97f5139 100644 --- a/rbi/lib/orb/models/dimensional_price_group.rbi +++ b/rbi/lib/orb/models/dimensional_price_group.rbi @@ -45,7 +45,14 @@ module Orb ) .returns(T.attached_class) end - def self.new(id:, billable_metric_id:, dimensions:, external_dimensional_price_group_id:, metadata:, name:) + def self.new( + id:, + billable_metric_id:, + dimensions:, + external_dimensional_price_group_id:, + metadata:, + name: + ) end sig do 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 a89baeec..62e4b851 100644 --- a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class DimensionalPriceGroupCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(String) } 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 5c7e0c63..12e5b335 100644 --- a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class DimensionalPriceGroupListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned 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 833f2fdb..0f820dff 100644 --- a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class DimensionalPriceGroupRetrieveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do 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 f46117db..7aea4939 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 @@ -4,7 +4,7 @@ module Orb module Models module DimensionalPriceGroups class ExternalDimensionalPriceGroupIDRetrieveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/discount.rbi b/rbi/lib/orb/models/discount.rbi index 1e28e806..d4e94547 100644 --- a/rbi/lib/orb/models/discount.rbi +++ b/rbi/lib/orb/models/discount.rbi @@ -5,27 +5,13 @@ module Orb 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 - ) - } - end - - class << self - sig do - override - .returns( - [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] - ) - end - def variants - end + sig do + override + .returns( + [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] + ) + end + def self.variants end end end diff --git a/rbi/lib/orb/models/evaluate_price_group.rbi b/rbi/lib/orb/models/evaluate_price_group.rbi index ea368b38..65710a03 100644 --- a/rbi/lib/orb/models/evaluate_price_group.rbi +++ b/rbi/lib/orb/models/evaluate_price_group.rbi @@ -36,12 +36,8 @@ module Orb 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 + sig { override.returns([String, Float, T::Boolean]) } + def self.variants end end end diff --git a/rbi/lib/orb/models/event_deprecate_params.rbi b/rbi/lib/orb/models/event_deprecate_params.rbi index 8232fc49..203e1078 100644 --- a/rbi/lib/orb/models/event_deprecate_params.rbi +++ b/rbi/lib/orb/models/event_deprecate_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class EventDeprecateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/event_ingest_params.rbi b/rbi/lib/orb/models/event_ingest_params.rbi index 7a198694..0435820e 100644 --- a/rbi/lib/orb/models/event_ingest_params.rbi +++ b/rbi/lib/orb/models/event_ingest_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class EventIngestParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T::Array[Orb::Models::EventIngestParams::Event]) } @@ -89,7 +89,14 @@ module Orb ) .returns(T.attached_class) end - def self.new(event_name:, idempotency_key:, properties:, timestamp:, customer_id: nil, external_customer_id: nil) + def self.new( + event_name:, + idempotency_key:, + properties:, + timestamp:, + customer_id: nil, + external_customer_id: nil + ) end sig do diff --git a/rbi/lib/orb/models/event_search_params.rbi b/rbi/lib/orb/models/event_search_params.rbi index 3fa9c976..0e8434ff 100644 --- a/rbi/lib/orb/models/event_search_params.rbi +++ b/rbi/lib/orb/models/event_search_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class EventSearchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # This is an explicit array of IDs to filter by. Note that an event's ID is the diff --git a/rbi/lib/orb/models/event_search_response.rbi b/rbi/lib/orb/models/event_search_response.rbi index f0d495df..cfe14388 100644 --- a/rbi/lib/orb/models/event_search_response.rbi +++ b/rbi/lib/orb/models/event_search_response.rbi @@ -67,7 +67,15 @@ module Orb ) .returns(T.attached_class) end - def self.new(id:, customer_id:, deprecated:, event_name:, external_customer_id:, properties:, timestamp:) + def self.new( + id:, + customer_id:, + deprecated:, + event_name:, + external_customer_id:, + properties:, + timestamp: + ) end sig do diff --git a/rbi/lib/orb/models/event_update_params.rbi b/rbi/lib/orb/models/event_update_params.rbi index 8a3cf0d7..53a59b23 100644 --- a/rbi/lib/orb/models/event_update_params.rbi +++ b/rbi/lib/orb/models/event_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class EventUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # A name to meaningfully identify the action or event type. @@ -41,7 +41,14 @@ module Orb ) .returns(T.attached_class) end - def self.new(event_name:, properties:, timestamp:, customer_id: nil, external_customer_id: nil, request_options: {}) + def self.new( + event_name:, + properties:, + timestamp:, + customer_id: nil, + external_customer_id: nil, + request_options: {} + ) end sig do diff --git a/rbi/lib/orb/models/events/backfill_close_params.rbi b/rbi/lib/orb/models/events/backfill_close_params.rbi index a868ef8a..1c7443db 100644 --- a/rbi/lib/orb/models/events/backfill_close_params.rbi +++ b/rbi/lib/orb/models/events/backfill_close_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Events class BackfillCloseParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/events/backfill_close_response.rbi b/rbi/lib/orb/models/events/backfill_close_response.rbi index d56429f8..4fe049b4 100644 --- a/rbi/lib/orb/models/events/backfill_close_response.rbi +++ b/rbi/lib/orb/models/events/backfill_close_response.rbi @@ -117,10 +117,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol]) } + def self.values 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 6d154e94..f7bf1bc1 100644 --- a/rbi/lib/orb/models/events/backfill_create_params.rbi +++ b/rbi/lib/orb/models/events/backfill_create_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Events class BackfillCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The (exclusive) end of the usage timeframe affected by this backfill. By diff --git a/rbi/lib/orb/models/events/backfill_create_response.rbi b/rbi/lib/orb/models/events/backfill_create_response.rbi index 9f5da1b8..25f6fa57 100644 --- a/rbi/lib/orb/models/events/backfill_create_response.rbi +++ b/rbi/lib/orb/models/events/backfill_create_response.rbi @@ -118,10 +118,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol]) } + def self.values 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 dece14fe..859b6872 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_params.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Events class BackfillFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/events/backfill_fetch_response.rbi b/rbi/lib/orb/models/events/backfill_fetch_response.rbi index 5960fcfa..d890dd31 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_response.rbi @@ -117,10 +117,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol]) } + def self.values 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 18b02d34..6efb20a9 100644 --- a/rbi/lib/orb/models/events/backfill_list_params.rbi +++ b/rbi/lib/orb/models/events/backfill_list_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Events class BackfillListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned diff --git a/rbi/lib/orb/models/events/backfill_list_response.rbi b/rbi/lib/orb/models/events/backfill_list_response.rbi index 3e416d11..c7eaf12e 100644 --- a/rbi/lib/orb/models/events/backfill_list_response.rbi +++ b/rbi/lib/orb/models/events/backfill_list_response.rbi @@ -117,10 +117,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol]) } + def self.values 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 4ef8e816..dffa84b0 100644 --- a/rbi/lib/orb/models/events/backfill_revert_params.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Events class BackfillRevertParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/events/backfill_revert_response.rbi b/rbi/lib/orb/models/events/backfill_revert_response.rbi index 5cfc9759..bcdf8e21 100644 --- a/rbi/lib/orb/models/events/backfill_revert_response.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_response.rbi @@ -118,10 +118,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol]) } + def self.values end 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 c6694c64..9a4cc780 100644 --- a/rbi/lib/orb/models/events/volume_list_params.rbi +++ b/rbi/lib/orb/models/events/volume_list_params.rbi @@ -4,7 +4,7 @@ module Orb module Models module Events class VolumeListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The start of the timeframe, inclusive, in which to return event volume. All diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index f566e247..bf2e116c 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -767,10 +767,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol]) } + def self.values end end @@ -812,10 +810,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol]) } + def self.values end end end @@ -1044,10 +1040,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol]) } + def self.values end end @@ -1129,10 +1123,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol]) } + def self.values end end end @@ -1147,10 +1139,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Invoice::InvoiceSource::TaggedSymbol]) } + def self.values end end @@ -1529,19 +1519,6 @@ module Orb 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 - class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -1899,15 +1876,13 @@ module Orb 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 + 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 self.variants end end @@ -1958,17 +1933,6 @@ module Orb 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 - class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } @@ -2259,15 +2223,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] + ) + end + def self.variants end end @@ -2412,10 +2374,8 @@ module Orb STRIPE = T.let(:stripe, Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol]) } + def self.values end end end @@ -2482,10 +2442,8 @@ module Orb VOID = T.let(:void, Orb::Models::Invoice::Status::TaggedSymbol) DRAFT = T.let(:draft, Orb::Models::Invoice::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Invoice::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Invoice::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/invoice_create_params.rbi b/rbi/lib/orb/models/invoice_create_params.rbi index d55bde04..fba4e81d 100644 --- a/rbi/lib/orb/models/invoice_create_params.rbi +++ b/rbi/lib/orb/models/invoice_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # An ISO 4217 currency string. Must be the same as the customer's currency if it @@ -206,10 +206,8 @@ module Orb UNIT = T.let(:unit, Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/invoice_fetch_params.rbi b/rbi/lib/orb/models/invoice_fetch_params.rbi index 1fb78b09..446174c0 100644 --- a/rbi/lib/orb/models/invoice_fetch_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi index 4c7acb11..db93ae3e 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceFetchUpcomingParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(String) } diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index 848071dc..da46d4e9 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -835,15 +835,13 @@ module Orb Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol] + ) + end + def self.values end end @@ -894,15 +892,13 @@ module Orb Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol] + ) + end + def self.values end end end @@ -1133,12 +1129,10 @@ module Orb 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 + sig do + override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol]) + end + def self.values end end @@ -1227,10 +1221,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol]) } + def self.values end end end @@ -1247,10 +1239,8 @@ module Orb PARTIAL = T.let(:partial, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) ONE_OFF = T.let(:one_off, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol]) } + def self.values end end @@ -1639,19 +1629,6 @@ module Orb 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 - class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -2009,15 +1986,13 @@ module Orb 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 + 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 self.variants end end @@ -2068,17 +2043,6 @@ module Orb 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 - class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } @@ -2411,15 +2375,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] + ) + end + def self.variants end end @@ -2570,15 +2532,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol] + ) + end + def self.values end end end @@ -2646,10 +2606,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/invoice_issue_params.rbi b/rbi/lib/orb/models/invoice_issue_params.rbi index 7cd93c57..949d2dfb 100644 --- a/rbi/lib/orb/models/invoice_issue_params.rbi +++ b/rbi/lib/orb/models/invoice_issue_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceIssueParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # If true, the invoice will be issued synchronously. If false, the invoice will be diff --git a/rbi/lib/orb/models/invoice_level_discount.rbi b/rbi/lib/orb/models/invoice_level_discount.rbi index 1581dab5..6b7dfcd7 100644 --- a/rbi/lib/orb/models/invoice_level_discount.rbi +++ b/rbi/lib/orb/models/invoice_level_discount.rbi @@ -5,16 +5,11 @@ module Orb module InvoiceLevelDiscount extend Orb::Union - 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 + sig do + override + .returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount]) + end + def self.variants 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 f3c9bd60..5cd18be3 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceLineItemCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The total amount in the invoice's currency to add to the line item. 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 adf94f49..2c826d7e 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -383,19 +383,6 @@ module Orb module Adjustment extend Orb::Union - 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 - class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -753,15 +740,13 @@ module Orb 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 + 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 self.variants end end @@ -812,17 +797,6 @@ module Orb 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 - class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } @@ -1143,15 +1117,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] + ) + end + def self.variants end end diff --git a/rbi/lib/orb/models/invoice_list_params.rbi b/rbi/lib/orb/models/invoice_list_params.rbi index 13408036..bba5b774 100644 --- a/rbi/lib/orb/models/invoice_list_params.rbi +++ b/rbi/lib/orb/models/invoice_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(String)) } @@ -161,10 +161,8 @@ module Orb DUE_DATE = T.let(:due_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) INVOICE_DATE = T.let(:invoice_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::InvoiceListParams::DateType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::InvoiceListParams::DateType::TaggedSymbol]) } + def self.values end end @@ -180,10 +178,8 @@ module Orb SYNCED = T.let(:synced, Orb::Models::InvoiceListParams::Status::TaggedSymbol) VOID = T.let(:void, Orb::Models::InvoiceListParams::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::InvoiceListParams::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::InvoiceListParams::Status::TaggedSymbol]) } + def self.values 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 3dfc5d5f..fcfdd06f 100644 --- a/rbi/lib/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/lib/orb/models/invoice_mark_paid_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceMarkPaidParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # A date string to specify the date of the payment. diff --git a/rbi/lib/orb/models/invoice_pay_params.rbi b/rbi/lib/orb/models/invoice_pay_params.rbi index 8a805ec3..465e01a4 100644 --- a/rbi/lib/orb/models/invoice_pay_params.rbi +++ b/rbi/lib/orb/models/invoice_pay_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoicePayParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/invoice_update_params.rbi b/rbi/lib/orb/models/invoice_update_params.rbi index 0ab6f912..b36292fe 100644 --- a/rbi/lib/orb/models/invoice_update_params.rbi +++ b/rbi/lib/orb/models/invoice_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # User-specified key/value pairs for the resource. Individual keys can be removed diff --git a/rbi/lib/orb/models/invoice_void_params.rbi b/rbi/lib/orb/models/invoice_void_params.rbi index 783773e0..c71d45f4 100644 --- a/rbi/lib/orb/models/invoice_void_params.rbi +++ b/rbi/lib/orb/models/invoice_void_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class InvoiceVoidParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/item.rbi b/rbi/lib/orb/models/item.rbi index 856e1b90..0b883125 100644 --- a/rbi/lib/orb/models/item.rbi +++ b/rbi/lib/orb/models/item.rbi @@ -91,10 +91,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/item_create_params.rbi b/rbi/lib/orb/models/item_create_params.rbi index 0a615783..217d9538 100644 --- a/rbi/lib/orb/models/item_create_params.rbi +++ b/rbi/lib/orb/models/item_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class ItemCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The name of the item. diff --git a/rbi/lib/orb/models/item_fetch_params.rbi b/rbi/lib/orb/models/item_fetch_params.rbi index 2358a672..12e6f280 100644 --- a/rbi/lib/orb/models/item_fetch_params.rbi +++ b/rbi/lib/orb/models/item_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class ItemFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/item_list_params.rbi b/rbi/lib/orb/models/item_list_params.rbi index 1b0776a4..fc403703 100644 --- a/rbi/lib/orb/models/item_list_params.rbi +++ b/rbi/lib/orb/models/item_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class ItemListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned diff --git a/rbi/lib/orb/models/item_update_params.rbi b/rbi/lib/orb/models/item_update_params.rbi index a3d4d8bd..38506c97 100644 --- a/rbi/lib/orb/models/item_update_params.rbi +++ b/rbi/lib/orb/models/item_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class ItemUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) } @@ -94,13 +94,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol]) + end + def self.values end end end diff --git a/rbi/lib/orb/models/metric_create_params.rbi b/rbi/lib/orb/models/metric_create_params.rbi index 78ea6196..79c1984d 100644 --- a/rbi/lib/orb/models/metric_create_params.rbi +++ b/rbi/lib/orb/models/metric_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class MetricCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # A description of the metric. diff --git a/rbi/lib/orb/models/metric_fetch_params.rbi b/rbi/lib/orb/models/metric_fetch_params.rbi index bdfce19b..53a555fe 100644 --- a/rbi/lib/orb/models/metric_fetch_params.rbi +++ b/rbi/lib/orb/models/metric_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class MetricFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/metric_list_params.rbi b/rbi/lib/orb/models/metric_list_params.rbi index 8ef13166..3b97db20 100644 --- a/rbi/lib/orb/models/metric_list_params.rbi +++ b/rbi/lib/orb/models/metric_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class MetricListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/orb/models/metric_update_params.rbi b/rbi/lib/orb/models/metric_update_params.rbi index 9ddd2d2a..f991cd33 100644 --- a/rbi/lib/orb/models/metric_update_params.rbi +++ b/rbi/lib/orb/models/metric_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class MetricUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # User-specified key/value pairs for the resource. Individual keys can be removed diff --git a/rbi/lib/orb/models/percentage_discount.rbi b/rbi/lib/orb/models/percentage_discount.rbi index b9eca6c1..22d3fde9 100644 --- a/rbi/lib/orb/models/percentage_discount.rbi +++ b/rbi/lib/orb/models/percentage_discount.rbi @@ -53,10 +53,8 @@ module Orb PERCENTAGE = T.let(:percentage, Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index a0f62555..4f57af94 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -365,19 +365,6 @@ module Orb module Adjustment extend Orb::Union - 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -735,15 +722,13 @@ module Orb 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 + 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 self.variants end end @@ -955,10 +940,8 @@ module Orb SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) ANNUAL = T.let(:annual, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol]) } + def self.values end end @@ -1034,10 +1017,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Plan::Status::TaggedSymbol]) } + def self.values end end @@ -1078,10 +1059,8 @@ module Orb DAYS = T.let(:days, Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/plan_create_params.rbi b/rbi/lib/orb/models/plan_create_params.rbi index 23f0ac8b..d5e7fac8 100644 --- a/rbi/lib/orb/models/plan_create_params.rbi +++ b/rbi/lib/orb/models/plan_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PlanCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # An ISO 4217 currency string for invoices generated by subscriptions on this @@ -184,39 +184,6 @@ module Orb module Price extend Orb::Union - 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 - class NewPlanUnitPrice < Orb::BaseModel # The cadence to bill for this price on. sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::OrSymbol) } @@ -411,10 +378,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -496,17 +461,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -575,17 +538,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -786,13 +747,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol]) + end + def self.values end end @@ -879,17 +838,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -958,17 +915,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1169,12 +1124,10 @@ module Orb 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 + sig do + override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol]) + end + def self.values end end @@ -1310,17 +1263,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1389,17 +1340,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1600,12 +1549,10 @@ module Orb 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 + sig do + override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol]) + end + def self.values end end @@ -1723,17 +1670,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1802,17 +1747,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2019,13 +1962,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol]) + end + def self.values end end @@ -2167,17 +2108,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2246,17 +2185,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2473,10 +2410,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -2544,17 +2479,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2623,17 +2556,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2890,13 +2821,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol]) + end + def self.values end end @@ -2964,17 +2893,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3043,17 +2970,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3293,10 +3218,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -3364,17 +3287,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3443,17 +3364,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3687,15 +3606,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -3763,17 +3680,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3842,17 +3757,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4058,13 +3971,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol]) + end + def self.values end end @@ -4132,17 +4043,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4211,17 +4120,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4440,15 +4347,13 @@ module Orb CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -4516,18 +4421,16 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end end end @@ -4595,17 +4498,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4814,15 +4715,13 @@ module Orb CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -4890,17 +4789,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4969,17 +4866,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5213,15 +5108,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -5289,17 +5182,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5368,17 +5259,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5597,15 +5486,13 @@ module Orb CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -5673,17 +5560,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5752,17 +5637,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5981,15 +5864,13 @@ module Orb CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -6057,17 +5938,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6136,17 +6015,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6365,15 +6242,13 @@ module Orb CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -6441,17 +6316,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6520,17 +6393,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6764,15 +6635,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -6840,17 +6709,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6919,17 +6786,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7163,15 +7028,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -7239,17 +7102,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7318,17 +7179,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7562,15 +7421,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -7638,17 +7495,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7717,17 +7572,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7946,15 +7799,13 @@ module Orb CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -8022,17 +7873,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8101,17 +7950,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8345,15 +8192,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -8421,17 +8266,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8500,17 +8343,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8744,15 +8585,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -8820,17 +8659,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8899,17 +8736,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9147,15 +8982,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -9223,17 +9056,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9302,17 +9133,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9550,15 +9379,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -9626,17 +9453,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9705,17 +9530,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9949,15 +9772,13 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -10025,17 +9846,15 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10104,31 +9923,27 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.variants end end @@ -10143,10 +9958,8 @@ module Orb ACTIVE = T.let(:active, Orb::Models::PlanCreateParams::Status::TaggedSymbol) DRAFT = T.let(:draft, Orb::Models::PlanCreateParams::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Status::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/plan_fetch_params.rbi b/rbi/lib/orb/models/plan_fetch_params.rbi index 4879303c..dc1fd0db 100644 --- a/rbi/lib/orb/models/plan_fetch_params.rbi +++ b/rbi/lib/orb/models/plan_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PlanFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/plan_list_params.rbi b/rbi/lib/orb/models/plan_list_params.rbi index d014033e..fd611c58 100644 --- a/rbi/lib/orb/models/plan_list_params.rbi +++ b/rbi/lib/orb/models/plan_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PlanListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } @@ -91,10 +91,8 @@ module Orb ARCHIVED = T.let(:archived, Orb::Models::PlanListParams::Status::TaggedSymbol) DRAFT = T.let(:draft, Orb::Models::PlanListParams::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::PlanListParams::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::PlanListParams::Status::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/plan_update_params.rbi b/rbi/lib/orb/models/plan_update_params.rbi index 6688fc00..08ffea38 100644 --- a/rbi/lib/orb/models/plan_update_params.rbi +++ b/rbi/lib/orb/models/plan_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PlanUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # An optional user-defined ID for this plan resource, used throughout the system 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 3a4c765d..2e1a877e 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 @@ -4,7 +4,7 @@ module Orb module Models module Plans class ExternalPlanIDFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do 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 21003036..f5857e93 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 @@ -4,7 +4,7 @@ module Orb module Models module Plans class ExternalPlanIDUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # An optional user-defined ID for this plan resource, used throughout the system diff --git a/rbi/lib/orb/models/price.rbi b/rbi/lib/orb/models/price.rbi index 37bb6c34..faaef769 100644 --- a/rbi/lib/orb/models/price.rbi +++ b/rbi/lib/orb/models/price.rbi @@ -15,42 +15,6 @@ module Orb 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) } attr_accessor :id @@ -351,13 +315,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -375,10 +337,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -439,13 +399,11 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -517,10 +475,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -861,13 +817,11 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -885,10 +839,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -950,15 +902,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -1049,10 +999,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -1378,13 +1326,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -1402,10 +1348,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -1467,15 +1411,13 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -1610,10 +1552,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -1939,13 +1879,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -1963,10 +1901,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -2028,15 +1964,13 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -2108,10 +2042,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -2486,15 +2418,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -2512,10 +2442,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -2577,15 +2505,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -2657,10 +2583,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -3050,13 +2974,11 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -3092,10 +3014,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -3156,13 +3076,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -3234,10 +3152,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -3564,13 +3480,11 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -3639,10 +3553,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -3704,15 +3616,13 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -3784,10 +3694,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -4113,13 +4021,11 @@ module Orb MONTH = T.let(:month, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -4172,10 +4078,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -4236,13 +4140,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -4314,10 +4216,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -4674,15 +4574,13 @@ module Orb Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -4701,10 +4599,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -4781,15 +4677,13 @@ module Orb Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -4862,10 +4756,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -5201,15 +5093,13 @@ module Orb Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -5227,10 +5117,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -5303,15 +5191,13 @@ module Orb Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -5384,10 +5270,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -5723,15 +5607,13 @@ module Orb Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -5749,10 +5631,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -5825,15 +5705,13 @@ module Orb Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -5906,10 +5784,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -6258,15 +6134,13 @@ module Orb Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -6285,10 +6159,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -6365,15 +6237,13 @@ module Orb Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -6446,10 +6316,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -6812,15 +6680,13 @@ module Orb Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -6840,10 +6706,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -6922,15 +6786,13 @@ module Orb Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -7006,10 +6868,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -7366,15 +7226,13 @@ module Orb Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -7393,10 +7251,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -7473,15 +7329,13 @@ module Orb Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -7556,10 +7410,8 @@ module Orb FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -7908,15 +7760,13 @@ module Orb Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -7935,10 +7785,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -8011,15 +7859,13 @@ module Orb Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -8092,10 +7938,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -8460,15 +8304,13 @@ module Orb Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -8487,10 +8329,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -8567,15 +8407,13 @@ module Orb Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -8722,10 +8560,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -9082,15 +8918,13 @@ module Orb Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -9109,10 +8943,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -9189,15 +9021,13 @@ module Orb Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -9270,10 +9100,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -9622,15 +9450,13 @@ module Orb Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -9649,10 +9475,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -9729,15 +9553,13 @@ module Orb Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -9810,10 +9632,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -10162,15 +9982,13 @@ module Orb Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -10189,10 +10007,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -10269,15 +10085,13 @@ module Orb Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -10350,10 +10164,8 @@ module Orb USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -10728,15 +10540,13 @@ module Orb Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -10757,10 +10567,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -10839,17 +10647,15 @@ module Orb Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10925,10 +10731,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -11291,15 +11095,13 @@ module Orb Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -11320,10 +11122,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -11402,17 +11202,15 @@ module Orb Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11488,10 +11286,8 @@ module Orb FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -11848,15 +11644,13 @@ module Orb Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -11875,10 +11669,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -11955,15 +11747,13 @@ module Orb Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -12038,10 +11828,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -12390,15 +12178,13 @@ module Orb Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -12417,10 +12203,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -12497,15 +12281,13 @@ module Orb Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -12578,10 +12360,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -12938,15 +12718,13 @@ module Orb Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -12965,10 +12743,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -13045,15 +12821,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -13126,10 +12900,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -13486,15 +13258,13 @@ module Orb Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -13513,10 +13283,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -13593,15 +13361,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -13676,10 +13442,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -14064,17 +13828,15 @@ module Orb Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14097,10 +13859,8 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -14179,17 +13939,15 @@ module Orb Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14265,12 +14023,10 @@ module Orb 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 + sig do + override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol]) + end + def self.values end end @@ -14662,17 +14418,15 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14696,12 +14450,10 @@ module Orb ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) - class << self - sig do - override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol]) - end - def values - end + sig do + override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol]) + end + def self.values end end @@ -14780,17 +14532,15 @@ module Orb Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14866,13 +14616,11 @@ module Orb FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol]) + end + def self.values end end @@ -15229,15 +14977,13 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -15256,10 +15002,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol]) } + def self.values end end @@ -15336,15 +15080,13 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def self.values end end end @@ -15419,10 +15161,8 @@ module Orb FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol]) } + def self.values end end @@ -15448,15 +15188,13 @@ module Orb 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 + 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 self.variants end end end diff --git a/rbi/lib/orb/models/price_create_params.rbi b/rbi/lib/orb/models/price_create_params.rbi index 48962849..b467e67c 100644 --- a/rbi/lib/orb/models/price_create_params.rbi +++ b/rbi/lib/orb/models/price_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PriceCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The cadence to bill for this price on. @@ -362,10 +362,8 @@ module Orb ONE_TIME = T.let(:one_time, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) CUSTOM = T.let(:custom, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::PriceCreateParams::Cadence::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::PriceCreateParams::Cadence::TaggedSymbol]) } + def self.values end end @@ -378,10 +376,8 @@ module Orb 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 + sig { override.returns(T::Array[Orb::Models::PriceCreateParams::ModelType::TaggedSymbol]) } + def self.values end end @@ -445,13 +441,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end @@ -503,13 +497,11 @@ module Orb MONTH = T.let(:month, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def self.values end end end diff --git a/rbi/lib/orb/models/price_evaluate_params.rbi b/rbi/lib/orb/models/price_evaluate_params.rbi index 7149dca5..57660892 100644 --- a/rbi/lib/orb/models/price_evaluate_params.rbi +++ b/rbi/lib/orb/models/price_evaluate_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PriceEvaluateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The exclusive upper bound for event timestamps diff --git a/rbi/lib/orb/models/price_fetch_params.rbi b/rbi/lib/orb/models/price_fetch_params.rbi index 8800f11d..3155c438 100644 --- a/rbi/lib/orb/models/price_fetch_params.rbi +++ b/rbi/lib/orb/models/price_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PriceFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/price_list_params.rbi b/rbi/lib/orb/models/price_list_params.rbi index 16f2d9cb..53cc85df 100644 --- a/rbi/lib/orb/models/price_list_params.rbi +++ b/rbi/lib/orb/models/price_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PriceListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned diff --git a/rbi/lib/orb/models/price_update_params.rbi b/rbi/lib/orb/models/price_update_params.rbi index 0edbe52e..5327910d 100644 --- a/rbi/lib/orb/models/price_update_params.rbi +++ b/rbi/lib/orb/models/price_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class PriceUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # User-specified key/value pairs for the resource. Individual keys can be removed 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 cf4027c9..99df3390 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 @@ -4,7 +4,7 @@ module Orb module Models module Prices class ExternalPriceIDFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do 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 4b9b77cc..2ed3b734 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 @@ -4,7 +4,7 @@ module Orb module Models module Prices class ExternalPriceIDUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # User-specified key/value pairs for the resource. Individual keys can be removed diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index 7887ef61..9767e885 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -365,19 +365,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -735,15 +722,13 @@ module Orb 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 + 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 self.variants end end end @@ -781,17 +766,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -980,15 +954,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1051,7 +1023,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1102,7 +1080,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1375,10 +1359,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::Subscription::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::Subscription::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::Subscription::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::Subscription::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_cancel_params.rbi b/rbi/lib/orb/models/subscription_cancel_params.rbi index 3a5b5fea..b277ed55 100644 --- a/rbi/lib/orb/models/subscription_cancel_params.rbi +++ b/rbi/lib/orb/models/subscription_cancel_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionCancelParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Determines the timing of subscription cancellation @@ -30,7 +30,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(cancel_option:, allow_invoice_credit_or_void: nil, cancellation_date: nil, request_options: {}) + def self.new( + cancel_option:, + allow_invoice_credit_or_void: nil, + cancellation_date: nil, + request_options: {} + ) end sig do @@ -61,10 +66,8 @@ module Orb REQUESTED_DATE = T.let(:requested_date, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index 81482c65..9574630c 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -348,19 +348,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -718,15 +705,13 @@ module Orb 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 + 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 self.variants end end end @@ -764,17 +749,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -963,15 +937,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1034,7 +1006,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1085,7 +1063,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1367,10 +1351,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index 3d2ae711..f3674b9a 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Additional adjustments to be added to the subscription. (Only available for @@ -353,19 +353,6 @@ module Orb 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 - class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :adjustment_type @@ -394,7 +381,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) + def self.new( + applies_to_price_ids:, + percentage_discount:, + is_invoice_level: nil, + adjustment_type: :percentage_discount + ) end sig do @@ -440,7 +432,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) + def self.new( + applies_to_price_ids:, + usage_discount:, + is_invoice_level: nil, + adjustment_type: :usage_discount + ) end sig do @@ -486,7 +483,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) + def self.new( + amount_discount:, + applies_to_price_ids:, + is_invoice_level: nil, + adjustment_type: :amount_discount + ) end sig do @@ -537,7 +539,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) + def self.new( + applies_to_price_ids:, + item_id:, + minimum_amount:, + is_invoice_level: nil, + adjustment_type: :minimum + ) end sig do @@ -584,7 +592,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) + def self.new( + applies_to_price_ids:, + maximum_amount:, + is_invoice_level: nil, + adjustment_type: :maximum + ) end sig do @@ -602,15 +615,13 @@ module Orb 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 + 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 self.variants end end end @@ -880,13 +891,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol]) + end + def self.values end end end @@ -950,13 +959,11 @@ module Orb AMOUNT = T.let(:amount, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol]) + end + def self.values end end end @@ -965,39 +972,6 @@ module Orb 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 - class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. sig do @@ -1252,15 +1226,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -1342,17 +1314,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1421,17 +1391,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1697,15 +1665,13 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -1792,17 +1758,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1871,17 +1835,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2141,15 +2103,13 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -2293,17 +2253,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2372,17 +2330,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2642,15 +2598,13 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -2783,17 +2737,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2862,17 +2814,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3138,17 +3088,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -3300,17 +3248,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3379,17 +3325,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3667,15 +3611,13 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -3743,17 +3685,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3822,17 +3762,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4167,15 +4105,13 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -4243,20 +4179,18 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end - end - end - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end + end + end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. @@ -4322,17 +4256,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4645,15 +4577,13 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -4721,17 +4651,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4800,17 +4728,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5058,17 +4984,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5136,17 +5060,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5215,17 +5137,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5473,17 +5393,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5551,17 +5469,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5630,17 +5546,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5888,17 +5802,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5966,17 +5878,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6045,17 +5955,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6303,17 +6211,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -6381,17 +6287,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6460,17 +6364,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6718,17 +6620,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -6796,17 +6696,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6875,17 +6773,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7133,17 +7029,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -7211,17 +7105,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7290,17 +7182,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7548,17 +7438,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -7626,17 +7514,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7705,17 +7591,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7963,17 +7847,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8041,17 +7923,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8120,17 +8000,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8378,17 +8256,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8456,17 +8332,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8535,17 +8409,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8793,17 +8665,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8871,17 +8741,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8950,17 +8818,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9208,17 +9074,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -9286,17 +9150,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9365,17 +9227,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9623,17 +9483,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -9701,17 +9559,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9780,17 +9636,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10038,17 +9892,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10116,17 +9968,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10195,17 +10045,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10453,17 +10301,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10531,19 +10377,17 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end - end - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end + end end class InvoicingCycleConfiguration < Orb::BaseModel @@ -10610,17 +10454,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10868,17 +10710,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10946,17 +10786,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11025,17 +10863,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11283,17 +11119,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -11361,17 +11195,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11440,17 +11272,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11698,17 +11528,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -11776,17 +11604,15 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11855,31 +11681,27 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.variants end end end @@ -11925,10 +11747,8 @@ module Orb AWS = T.let(:aws, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) AZURE = T.let(:azure, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol]) } + def self.values end end @@ -12024,19 +11844,6 @@ module Orb 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 - class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12065,7 +11872,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) + def self.new( + applies_to_price_ids:, + percentage_discount:, + is_invoice_level: nil, + adjustment_type: :percentage_discount + ) end sig do @@ -12111,7 +11923,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) + def self.new( + applies_to_price_ids:, + usage_discount:, + is_invoice_level: nil, + adjustment_type: :usage_discount + ) end sig do @@ -12157,7 +11974,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) + def self.new( + amount_discount:, + applies_to_price_ids:, + is_invoice_level: nil, + adjustment_type: :amount_discount + ) end sig do @@ -12208,7 +12030,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) + def self.new( + applies_to_price_ids:, + item_id:, + minimum_amount:, + is_invoice_level: nil, + adjustment_type: :minimum + ) end sig do @@ -12255,7 +12083,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) + def self.new( + applies_to_price_ids:, + maximum_amount:, + is_invoice_level: nil, + adjustment_type: :maximum + ) end sig do @@ -12273,15 +12106,13 @@ module Orb 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 + 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 self.variants end end end @@ -12557,15 +12388,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end end @@ -12632,15 +12461,13 @@ module Orb AMOUNT = T.let(:amount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] + ) + end + def self.values end end end @@ -12649,39 +12476,6 @@ module Orb 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 - class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. sig do @@ -12938,17 +12732,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -13030,17 +12822,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -13109,17 +12899,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -13385,17 +13173,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -13482,17 +13268,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -13561,20 +13345,18 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end - end - end - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end + end + end end class NewSubscriptionMatrixPrice < Orb::BaseModel @@ -13837,17 +13619,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -13991,17 +13771,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14070,17 +13848,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14346,17 +14122,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -14489,17 +14263,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14568,17 +14340,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14844,17 +14614,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -15006,17 +14774,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15085,17 +14851,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15375,15 +15139,13 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -15451,17 +15213,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15530,17 +15290,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15879,17 +15637,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -15957,17 +15713,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16036,17 +15790,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16361,17 +16113,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -16439,17 +16189,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16518,17 +16266,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16776,17 +16522,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -16854,17 +16598,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16933,17 +16675,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17191,19 +16931,17 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end - end - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. @@ -17269,17 +17007,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17348,17 +17084,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17606,17 +17340,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -17684,17 +17416,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17763,17 +17493,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18021,17 +17749,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -18099,17 +17825,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18178,17 +17902,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18436,17 +18158,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -18514,17 +18234,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18593,17 +18311,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18851,17 +18567,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -18929,17 +18643,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19008,17 +18720,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19266,17 +18976,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -19344,17 +19052,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19423,17 +19129,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19681,17 +19385,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -19759,17 +19461,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19838,17 +19538,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20096,17 +19794,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -20174,17 +19870,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20253,17 +19947,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20511,17 +20203,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -20589,17 +20279,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20668,17 +20356,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20926,17 +20612,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -21004,17 +20688,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21083,17 +20765,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21341,17 +21021,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -21419,17 +21097,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21498,17 +21174,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21756,17 +21430,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -21834,17 +21506,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21913,17 +21583,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22171,17 +21839,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -22249,17 +21915,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22328,17 +21992,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22586,17 +22248,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -22664,17 +22324,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22743,17 +22401,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23001,17 +22657,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -23079,17 +22733,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23158,17 +22810,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23416,17 +23066,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -23494,17 +23142,15 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23573,31 +23219,27 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.variants end end end diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index 36fbcb73..30113fa3 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -348,19 +348,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -718,15 +705,13 @@ module Orb 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 + 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 self.variants end end end @@ -764,17 +749,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -963,15 +937,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1034,7 +1006,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1085,7 +1063,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1367,10 +1351,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi index e7002313..a9aa38a9 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionFetchCostsParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The currency or custom pricing unit to use. @@ -35,7 +35,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(currency: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) + def self.new( + currency: nil, + timeframe_end: nil, + timeframe_start: nil, + view_mode: nil, + request_options: {} + ) end sig do @@ -67,10 +73,8 @@ module Orb PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/subscription_fetch_params.rbi b/rbi/lib/orb/models/subscription_fetch_params.rbi index b0d4d44d..fa687188 100644 --- a/rbi/lib/orb/models/subscription_fetch_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi index ec541c8c..ec43c17a 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionFetchScheduleParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Cursor for pagination. This can be populated by the `next_cursor` value returned diff --git a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi index cb351eab..7f525d2a 100644 --- a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionFetchUsageParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # When specified in conjunction with `group_by`, this parameter filters usage to a @@ -109,10 +109,8 @@ module Orb DAY = T.let(:day, Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol]) } + def self.values end end @@ -130,10 +128,8 @@ module Orb PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/subscription_list_params.rbi b/rbi/lib/orb/models/subscription_list_params.rbi index f9bd2dc7..4c3dd676 100644 --- a/rbi/lib/orb/models/subscription_list_params.rbi +++ b/rbi/lib/orb/models/subscription_list_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(T.nilable(Time)) } @@ -98,10 +98,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionListParams::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionListParams::Status::TaggedSymbol]) } + def self.values 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 32965c60..b3c572a9 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionPriceIntervalsParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # A list of price intervals to add to the subscription. @@ -349,12 +349,8 @@ module Orb module StartDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants end end @@ -438,15 +434,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end end @@ -454,17 +448,6 @@ module Orb 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 - class AmountDiscountCreationParams < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(Float) } @@ -518,15 +501,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams] + ) + end + def self.variants end end @@ -535,12 +516,8 @@ module Orb module EndDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants end end @@ -566,42 +543,6 @@ module Orb 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 - class NewFloatingUnitPrice < Orb::BaseModel # The cadence to bill for this price on. sig do @@ -847,15 +788,13 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -937,17 +876,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1016,17 +953,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1277,15 +1212,13 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -1372,17 +1305,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1451,17 +1382,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1712,15 +1641,13 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -1864,17 +1791,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1943,17 +1868,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2210,17 +2133,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -2370,17 +2291,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2449,17 +2368,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2710,15 +2627,13 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -2851,17 +2766,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2930,17 +2843,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3197,17 +3108,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -3359,17 +3268,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3438,17 +3345,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3713,15 +3618,13 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -3789,17 +3692,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3868,22 +3769,20 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - 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 - + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + class NewFloatingBulkBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) } attr_reader :bulk_bps_config @@ -4198,15 +4097,13 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -4274,17 +4171,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4353,17 +4248,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4667,15 +4560,13 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end @@ -4743,17 +4634,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4822,17 +4711,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5071,17 +4958,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5149,17 +5034,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5228,17 +5111,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5477,17 +5358,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5555,17 +5434,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5634,17 +5511,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5883,17 +5758,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5961,17 +5834,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6040,17 +5911,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6289,17 +6158,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -6367,17 +6234,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6446,17 +6311,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6695,17 +6558,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -6773,17 +6634,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6852,17 +6711,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7101,20 +6958,18 @@ module Orb 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 - + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } @@ -7179,17 +7034,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7258,17 +7111,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7507,17 +7358,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -7585,17 +7434,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7664,17 +7511,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7913,17 +7758,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -7991,17 +7834,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8070,17 +7911,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8319,17 +8158,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8397,17 +8234,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8476,17 +8311,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8725,17 +8558,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8803,17 +8634,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8882,17 +8711,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9131,17 +8958,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -9209,17 +9034,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9288,17 +9111,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9537,17 +9358,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -9615,17 +9434,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9694,17 +9511,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9943,17 +9758,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10021,17 +9834,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10100,17 +9911,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10349,17 +10158,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10427,17 +10234,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10506,17 +10311,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10755,17 +10558,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10833,17 +10634,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10912,17 +10711,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11161,17 +10958,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -11239,17 +11034,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11318,17 +11111,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11567,17 +11358,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -11645,17 +11434,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11724,17 +11511,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11973,17 +11758,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -12051,17 +11834,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -12130,17 +11911,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -12379,17 +12158,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -12457,17 +12234,15 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -12536,31 +12311,27 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.variants end end end @@ -12635,19 +12406,6 @@ module Orb 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 - class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12676,7 +12434,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) + def self.new( + applies_to_price_ids:, + percentage_discount:, + is_invoice_level: nil, + adjustment_type: :percentage_discount + ) end sig do @@ -12722,7 +12485,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) + def self.new( + applies_to_price_ids:, + usage_discount:, + is_invoice_level: nil, + adjustment_type: :usage_discount + ) end sig do @@ -12768,7 +12536,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) + def self.new( + amount_discount:, + applies_to_price_ids:, + is_invoice_level: nil, + adjustment_type: :amount_discount + ) end sig do @@ -12819,7 +12592,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) + def self.new( + applies_to_price_ids:, + item_id:, + minimum_amount:, + is_invoice_level: nil, + adjustment_type: :minimum + ) end sig do @@ -12866,7 +12645,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) + def self.new( + applies_to_price_ids:, + maximum_amount:, + is_invoice_level: nil, + adjustment_type: :maximum + ) end sig do @@ -12884,15 +12668,13 @@ module Orb 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 + 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 self.variants end end @@ -12903,12 +12685,8 @@ module Orb module StartDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants end end @@ -12919,12 +12697,8 @@ module Orb module EndDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants end end end @@ -13026,12 +12800,8 @@ module Orb module EndDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants end end @@ -13058,12 +12828,8 @@ module Orb module StartDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants end end end @@ -13115,12 +12881,8 @@ module Orb module EndDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants end end @@ -13129,12 +12891,8 @@ module Orb module StartDate extend Orb::Union - 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 + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def self.variants 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 ce971024..0d4288a6 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -357,19 +357,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -727,15 +714,13 @@ module Orb 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 + 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 self.variants end end end @@ -773,17 +758,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -972,15 +946,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1043,7 +1015,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1094,7 +1072,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1381,10 +1365,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi index 731327a2..d666f06e 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionSchedulePlanChangeParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol) } @@ -288,10 +288,8 @@ module Orb IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol]) } + def self.values end end @@ -368,19 +366,6 @@ module Orb 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 - class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :adjustment_type @@ -409,7 +394,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) + def self.new( + applies_to_price_ids:, + percentage_discount:, + is_invoice_level: nil, + adjustment_type: :percentage_discount + ) end sig do @@ -455,7 +445,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) + def self.new( + applies_to_price_ids:, + usage_discount:, + is_invoice_level: nil, + adjustment_type: :usage_discount + ) end sig do @@ -501,7 +496,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) + def self.new( + amount_discount:, + applies_to_price_ids:, + is_invoice_level: nil, + adjustment_type: :amount_discount + ) end sig do @@ -552,7 +552,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) + def self.new( + applies_to_price_ids:, + item_id:, + minimum_amount:, + is_invoice_level: nil, + adjustment_type: :minimum + ) end sig do @@ -599,7 +605,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) + def self.new( + applies_to_price_ids:, + maximum_amount:, + is_invoice_level: nil, + adjustment_type: :maximum + ) end sig do @@ -617,15 +628,13 @@ module Orb 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 + 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 self.variants end end end @@ -921,15 +930,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end end @@ -1007,15 +1014,13 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol] + ) + end + def self.values end end end @@ -1024,39 +1029,6 @@ module Orb 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 - class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. sig do @@ -1317,17 +1289,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -1409,17 +1379,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1488,17 +1456,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1764,17 +1730,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -1861,17 +1825,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -1940,17 +1902,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2216,17 +2176,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -2370,17 +2328,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2449,17 +2405,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2725,17 +2679,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -2872,17 +2824,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -2951,17 +2901,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3227,17 +3175,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -3389,17 +3335,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3468,17 +3412,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3762,17 +3704,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -3840,17 +3780,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -3919,17 +3857,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4268,17 +4204,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -4346,17 +4280,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4425,17 +4357,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4758,17 +4688,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -4836,17 +4764,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -4915,17 +4841,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5173,17 +5097,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5251,17 +5173,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5330,17 +5250,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5588,17 +5506,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -5666,17 +5582,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -5745,17 +5659,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6003,17 +5915,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -6081,17 +5991,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6160,17 +6068,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6418,17 +6324,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -6496,17 +6400,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6575,17 +6477,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6833,17 +6733,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -6911,17 +6809,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -6990,17 +6886,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7248,19 +7142,17 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end - end - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. @@ -7326,17 +7218,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7405,17 +7295,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7663,17 +7551,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -7741,17 +7627,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -7820,17 +7704,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8078,17 +7960,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8156,17 +8036,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8235,17 +8113,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8493,17 +8369,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8571,17 +8445,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8650,17 +8522,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -8908,17 +8778,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -8986,17 +8854,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9065,17 +8931,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9323,17 +9187,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -9401,17 +9263,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9480,17 +9340,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9738,17 +9596,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -9816,17 +9672,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -9895,17 +9749,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10153,17 +10005,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10231,17 +10081,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10310,17 +10158,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10568,17 +10414,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -10646,17 +10490,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10725,17 +10567,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -10983,17 +10823,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -11061,17 +10899,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11140,17 +10976,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11398,17 +11232,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -11476,17 +11308,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11555,17 +11385,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11813,17 +11641,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -11891,17 +11717,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -11970,31 +11794,27 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.variants end end end @@ -12023,13 +11843,11 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol ) - class << self - sig do - override - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol]) + end + def self.values end end @@ -12155,19 +11973,6 @@ module Orb 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 - class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12196,7 +12001,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) + def self.new( + applies_to_price_ids:, + percentage_discount:, + is_invoice_level: nil, + adjustment_type: :percentage_discount + ) end sig do @@ -12242,7 +12052,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) + def self.new( + applies_to_price_ids:, + usage_discount:, + is_invoice_level: nil, + adjustment_type: :usage_discount + ) end sig do @@ -12288,7 +12103,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) + def self.new( + amount_discount:, + applies_to_price_ids:, + is_invoice_level: nil, + adjustment_type: :amount_discount + ) end sig do @@ -12339,7 +12159,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) + def self.new( + applies_to_price_ids:, + item_id:, + minimum_amount:, + is_invoice_level: nil, + adjustment_type: :minimum + ) end sig do @@ -12386,7 +12212,12 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) + def self.new( + applies_to_price_ids:, + maximum_amount:, + is_invoice_level: nil, + adjustment_type: :maximum + ) end sig do @@ -12404,15 +12235,13 @@ module Orb 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 + 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 self.variants end end end @@ -12707,15 +12536,13 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def self.values end end end @@ -12793,15 +12620,13 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] + ) + end + def self.values end end end @@ -12810,39 +12635,6 @@ module Orb 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 - class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. sig do @@ -13103,17 +12895,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -13195,17 +12985,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -13274,17 +13062,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -13550,17 +13336,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -13647,17 +13431,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -13726,17 +13508,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14002,17 +13782,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -14156,17 +13934,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14235,17 +14011,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14511,17 +14285,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -14658,17 +14430,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -14737,17 +14507,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15013,17 +14781,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -15175,17 +14941,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15254,17 +15018,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15548,17 +15310,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -15626,17 +15386,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -15705,17 +15463,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16054,17 +15810,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -16132,17 +15886,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16211,17 +15963,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16544,17 +16294,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -16622,17 +16370,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16701,17 +16447,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -16959,17 +16703,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -17037,18 +16779,16 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end end end @@ -17116,17 +16856,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17374,17 +17112,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -17452,17 +17188,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17531,17 +17265,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17789,17 +17521,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -17867,17 +17597,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -17946,17 +17674,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18204,17 +17930,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -18282,17 +18006,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18361,17 +18083,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18619,17 +18339,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -18697,17 +18415,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -18776,17 +18492,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19034,17 +18748,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -19112,17 +18824,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19191,17 +18901,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19449,17 +19157,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -19527,17 +19233,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19606,17 +19310,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -19864,17 +19566,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -19942,17 +19642,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20021,17 +19719,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20279,17 +19975,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -20357,17 +20051,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20436,17 +20128,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20694,17 +20384,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -20772,17 +20460,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -20851,17 +20537,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21109,17 +20793,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -21187,17 +20869,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21266,17 +20946,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21524,17 +21202,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -21602,17 +21278,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21681,17 +21355,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -21939,17 +21611,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -22017,17 +21687,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22096,17 +21764,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22354,17 +22020,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -22432,17 +22096,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22511,17 +22173,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22769,17 +22429,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -22847,17 +22505,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -22926,17 +22582,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23184,17 +22838,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -23262,17 +22914,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23341,17 +22991,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23599,17 +23247,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end end @@ -23677,17 +23323,15 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end end end @@ -23756,31 +23400,27 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) - class << self - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def values - end + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values 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 + 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 self.variants 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 8ef0d50f..ce83a93f 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -359,19 +359,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -729,15 +716,13 @@ module Orb 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 + 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 self.variants end end end @@ -775,17 +760,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -974,15 +948,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1045,7 +1017,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1096,7 +1074,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1384,10 +1368,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi index 2a396d38..57bbfb8f 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionTriggerPhaseParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # If false, this request will fail if it would void an issued invoice or create a diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index c1cf4d2a..79e30145 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -351,19 +351,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -721,15 +708,13 @@ module Orb 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 + 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 self.variants end end end @@ -767,17 +752,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -966,15 +940,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1037,7 +1009,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1088,7 +1066,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1375,10 +1359,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi index 8dba58ba..71d7ef32 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionUnscheduleCancellationParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index d0c8eb8a..61ef3e1f 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -368,19 +368,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -738,15 +725,13 @@ module Orb 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 + 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 self.variants end end end @@ -784,17 +769,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -983,15 +957,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1054,7 +1026,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1105,7 +1083,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1394,10 +1378,8 @@ module Orb UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol]) } + def self.values end end 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 b89bd2d7..504356b5 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 @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionUnscheduleFixedFeeQuantityUpdatesParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Price for which the updates should be cleared. Must be a fixed fee. 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 e904801e..eab1cd00 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 @@ -402,19 +402,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -772,15 +759,13 @@ module Orb 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 + 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 self.variants end end end @@ -818,17 +803,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -1017,15 +991,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1088,7 +1060,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1139,7 +1117,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1434,15 +1418,13 @@ module Orb UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) - class << self - sig do - override - .returns( - T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol] - ) - end - def values - end + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol] + ) + end + def self.values end end diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi index 172dfc61..ae503c0d 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 @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionUnschedulePendingPlanChangesParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do 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 fa3c2827..df1cf4ca 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 @@ -373,19 +373,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -743,15 +730,13 @@ module Orb 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 + 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 self.variants end end end @@ -789,17 +774,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -988,15 +962,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1059,7 +1031,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1110,7 +1088,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1401,13 +1385,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol]) + end + def self.values end end diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi index 7c8971de..e0957839 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 @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionUpdateFixedFeeQuantityParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Price for which the quantity should be updated. Must be a fixed fee. @@ -92,13 +92,11 @@ module Orb 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 + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol]) + end + def self.values 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 eeb1d649..4d1bfde3 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 @@ -368,19 +368,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -738,15 +725,13 @@ module Orb 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 + 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 self.variants end end end @@ -784,17 +769,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -983,15 +957,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1054,7 +1026,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1105,7 +1083,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1394,10 +1378,8 @@ module Orb UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_update_params.rbi b/rbi/lib/orb/models/subscription_update_params.rbi index 00fae942..82f4e567 100644 --- a/rbi/lib/orb/models/subscription_update_params.rbi +++ b/rbi/lib/orb/models/subscription_update_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # Determines whether issued invoices for this subscription will automatically be diff --git a/rbi/lib/orb/models/subscription_update_trial_params.rbi b/rbi/lib/orb/models/subscription_update_trial_params.rbi index 46c83d47..b0ae6889 100644 --- a/rbi/lib/orb/models/subscription_update_trial_params.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class SubscriptionUpdateTrialParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters # The new date that the trial should end, or the literal string `immediate` to end @@ -48,20 +48,15 @@ module Orb module TrialEndDate extend Orb::Union - Variants = - type_template(:out) { {fixed: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol)} } + sig { override.returns([Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol]) } + def self.variants + end TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate) } OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) } IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) - - class << self - sig { override.returns([Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol]) } - def variants - end - 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 344d1fc2..45ed1755 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -348,19 +348,6 @@ module Orb 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 - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -718,15 +705,13 @@ module Orb 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 + 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 self.variants end end end @@ -764,17 +749,6 @@ module Orb 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 - class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } @@ -963,15 +937,13 @@ module Orb 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 + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def self.variants end end @@ -1034,7 +1006,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + maximum_amount:, + start_date: + ) end sig do @@ -1085,7 +1063,13 @@ module Orb ) .returns(T.attached_class) end - def self.new(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) + def self.new( + applies_to_price_ids:, + applies_to_price_interval_ids:, + end_date:, + minimum_amount:, + start_date: + ) end sig do @@ -1372,10 +1356,8 @@ module Orb ENDED = T.let(:ended, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol]) } + def self.values end end diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index 77dee42c..b5879274 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -5,16 +5,6 @@ module Orb 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]) } attr_accessor :data @@ -133,15 +123,13 @@ module Orb 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 + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol] + ) + end + def self.values end end end @@ -300,27 +288,23 @@ module Orb CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) - class << self - sig do - override - .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol]) - end - def values - end + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol]) + end + def self.values end end end end - class << self - sig do - override - .returns( - [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] - ) - end - def variants - end + sig do + override + .returns( + [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] + ) + end + def self.variants end end end diff --git a/rbi/lib/orb/models/top_level_ping_params.rbi b/rbi/lib/orb/models/top_level_ping_params.rbi index e9e87d54..9aa152a2 100644 --- a/rbi/lib/orb/models/top_level_ping_params.rbi +++ b/rbi/lib/orb/models/top_level_ping_params.rbi @@ -3,7 +3,7 @@ module Orb module Models class TopLevelPingParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters sig do diff --git a/rbi/lib/orb/models/trial_discount.rbi b/rbi/lib/orb/models/trial_discount.rbi index a769483a..88de8948 100644 --- a/rbi/lib/orb/models/trial_discount.rbi +++ b/rbi/lib/orb/models/trial_discount.rbi @@ -64,10 +64,8 @@ module Orb TRIAL = T.let(:trial, Orb::Models::TrialDiscount::DiscountType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::TrialDiscount::DiscountType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::TrialDiscount::DiscountType::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/models/usage_discount.rbi b/rbi/lib/orb/models/usage_discount.rbi index 816e586a..bd772653 100644 --- a/rbi/lib/orb/models/usage_discount.rbi +++ b/rbi/lib/orb/models/usage_discount.rbi @@ -53,10 +53,8 @@ module Orb USAGE = T.let(:usage, Orb::Models::UsageDiscount::DiscountType::TaggedSymbol) - class << self - sig { override.returns(T::Array[Orb::Models::UsageDiscount::DiscountType::TaggedSymbol]) } - def values - end + sig { override.returns(T::Array[Orb::Models::UsageDiscount::DiscountType::TaggedSymbol]) } + def self.values end end end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index 8b84f232..dd5237e8 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -2,7 +2,7 @@ module Orb class Page - include Orb::BasePage + include Orb::Type::BasePage Elem = type_member diff --git a/rbi/lib/orb/pooled_net_requester.rbi b/rbi/lib/orb/pooled_net_requester.rbi deleted file mode 100644 index c508597c..00000000 --- a/rbi/lib/orb/pooled_net_requester.rbi +++ /dev/null @@ -1,59 +0,0 @@ -# typed: strong - -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 - - # 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 - sig { params(url: URI::Generic).returns(Net::HTTP) } - def connect(url) - end - - # @api private - sig { params(conn: Net::HTTP, deadline: Float).void } - def calibrate_socket_timeout(conn, deadline) - end - - # @api private - sig do - params(request: Orb::PooledNetRequester::RequestShape, blk: T.proc.params(arg0: String).void) - .returns(Net::HTTPGenericRequest) - end - def build_request(request, &blk) - end - end - - # @api private - sig { params(url: URI::Generic, deadline: Float, blk: T.proc.params(arg0: Net::HTTP).void).void } - private def with_pool(url, deadline:, &blk) - end - - # @api private - sig do - params(request: Orb::PooledNetRequester::RequestShape) - .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) - end - def execute(request) - end - - # @api private - sig { params(size: Integer).returns(T.attached_class) } - def self.new(size: Etc.nprocessors) - end - end -end diff --git a/rbi/lib/orb/request_options.rbi b/rbi/lib/orb/request_options.rbi index 6982a9e3..fca916a6 100644 --- a/rbi/lib/orb/request_options.rbi +++ b/rbi/lib/orb/request_options.rbi @@ -1,21 +1,6 @@ # typed: strong module Orb - # @api private - module RequestParameters - # Options to specify HTTP behaviour for this request. - 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, Orb::Util::AnyHash]) } - def dump_request(params) - end - end - end - # Specify HTTP behaviour to use for a specific request. These options supplement # or override those provided at the client level. # diff --git a/rbi/lib/orb/transport/base_client.rbi b/rbi/lib/orb/transport/base_client.rbi new file mode 100644 index 00000000..8b87db16 --- /dev/null +++ b/rbi/lib/orb/transport/base_client.rbi @@ -0,0 +1,204 @@ +# typed: strong + +module Orb + module Transport + # @api private + 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::Type::BasePage[Orb::BaseModel]]), + stream: T.nilable(T::Class[T.anything]), + model: T.nilable(Orb::Type::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 + + # from whatwg fetch spec + MAX_REDIRECTS = 20 + + PLATFORM_HEADERS = T::Hash[String, String] + + class << self + # @api private + sig { params(req: Orb::Transport::BaseClient::RequestComponentsShape).void } + def validate!(req) + end + + # @api private + sig do + params( + status: Integer, + headers: T.any( + T::Hash[String, String], + Net::HTTPHeader + ) + ).returns(T::Boolean) + end + def should_retry?(status, headers:) + end + + # @api private + sig do + params( + request: Orb::Transport::BaseClient::RequestInputShape, + status: Integer, + response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) + ) + .returns(Orb::Transport::BaseClient::RequestInputShape) + end + def follow_redirect(request, status:, response_headers:) + end + + # @api private + sig do + params( + status: T.any(Integer, Orb::APIConnectionError), + stream: T.nilable(T::Enumerable[String]) + ).void + end + def reap_connection!(status, stream:) + end + end + + # @api private + sig { returns(Orb::Transport::PooledNetRequester) } + attr_accessor :requester + + # @api private + sig do + params( + base_url: String, + timeout: Float, + max_retries: Integer, + initial_retry_delay: Float, + max_retry_delay: Float, + headers: T::Hash[String, + T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))], + idempotency_header: T.nilable(String) + ) + .returns(T.attached_class) + end + def self.new( + base_url:, + timeout: 0.0, + max_retries: 0, + initial_retry_delay: 0.0, + max_retry_delay: 0.0, + headers: {}, + idempotency_header: nil + ) + end + + # @api private + sig { overridable.returns(T::Hash[String, String]) } + private def auth_headers + end + + # @api private + sig { returns(String) } + private def generate_idempotency_key + end + + # @api private + sig do + overridable + .params(req: Orb::Transport::BaseClient::RequestComponentsShape, opts: Orb::Util::AnyHash) + .returns(Orb::Transport::BaseClient::RequestInputShape) + end + private def build_request(req, opts) + end + + # @api private + sig { params(headers: T::Hash[String, String], retry_count: Integer).returns(Float) } + private def retry_delay(headers, retry_count:) + end + + # @api private + sig do + params( + request: Orb::Transport::BaseClient::RequestInputShape, + redirect_count: Integer, + retry_count: Integer, + send_retry_header: T::Boolean + ) + .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + end + private def send_request(request, redirect_count:, retry_count:, send_retry_header:) + end + + # Execute the request specified by `req`. This is the method that all resource + # methods call into. + sig do + params( + 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::Type::BasePage[Orb::BaseModel]]), + stream: T.nilable(T::Class[T.anything]), + model: T.nilable(Orb::Type::Converter::Input), + options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) + ) + .returns(T.anything) + end + def request( + method, + path, + query: {}, + headers: {}, + body: nil, + unwrap: nil, + page: nil, + stream: nil, + model: Orb::Unknown, + options: {} + ) + end + + sig { returns(String) } + def inspect + end + end + end +end diff --git a/rbi/lib/orb/transport/pooled_net_requester.rbi b/rbi/lib/orb/transport/pooled_net_requester.rbi new file mode 100644 index 00000000..6f1e2c66 --- /dev/null +++ b/rbi/lib/orb/transport/pooled_net_requester.rbi @@ -0,0 +1,64 @@ +# typed: strong + +module Orb + module Transport + # @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 + + # 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 + sig { params(url: URI::Generic).returns(Net::HTTP) } + def connect(url) + end + + # @api private + sig { params(conn: Net::HTTP, deadline: Float).void } + def calibrate_socket_timeout(conn, deadline) + end + + # @api private + sig do + params( + request: Orb::Transport::PooledNetRequester::RequestShape, + blk: T.proc.params(arg0: String).void + ) + .returns(Net::HTTPGenericRequest) + end + def build_request(request, &blk) + end + end + + # @api private + sig { params(url: URI::Generic, deadline: Float, blk: T.proc.params(arg0: Net::HTTP).void).void } + private def with_pool(url, deadline:, &blk) + end + + # @api private + sig do + params(request: Orb::Transport::PooledNetRequester::RequestShape) + .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + end + def execute(request) + end + + # @api private + sig { params(size: Integer).returns(T.attached_class) } + def self.new(size: Etc.nprocessors) + end + end + end +end diff --git a/rbi/lib/orb/type.rbi b/rbi/lib/orb/type.rbi new file mode 100644 index 00000000..62c4267c --- /dev/null +++ b/rbi/lib/orb/type.rbi @@ -0,0 +1,23 @@ +# typed: strong + +module Orb + Unknown = Orb::Type::Unknown + + BooleanModel = Orb::Type::BooleanModel + + Enum = Orb::Type::Enum + + Union = Orb::Type::Union + + ArrayOf = Orb::Type::ArrayOf + + HashOf = Orb::Type::HashOf + + BaseModel = Orb::Type::BaseModel + + RequestParameters = Orb::Type::RequestParameters + + # This module contains various type declarations. + module Type + end +end diff --git a/rbi/lib/orb/type/array_of.rbi b/rbi/lib/orb/type/array_of.rbi new file mode 100644 index 00000000..951e56ba --- /dev/null +++ b/rbi/lib/orb/type/array_of.rbi @@ -0,0 +1,82 @@ +# typed: strong + +module Orb + module Type + # @api private + # + # Array of items of a given type. + class ArrayOf + include Orb::Type::Converter + + abstract! + final! + + Elem = type_member(:out) + + sig(:final) do + params( + type_info: T.any( + Orb::Util::AnyHash, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::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) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + sig(:final) do + override + .params(value: T.any(T::Enumerable[Elem], T.anything), state: Orb::Type::Converter::State) + .returns(T.any(T::Array[T.anything], T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig(:final) do + override + .params(value: T.any(T::Enumerable[Elem], T.anything)) + .returns(T.any(T::Array[T.anything], T.anything)) + end + def dump(value) + end + + # @api private + sig(:final) { returns(Elem) } + protected def item_type + end + + # @api private + sig(:final) { returns(T::Boolean) } + protected def nilable? + end + + # @api private + sig(:final) do + params( + type_info: T.any( + Orb::Util::AnyHash, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::Converter::Input + ), + spec: Orb::Util::AnyHash + ) + .void + end + def initialize(type_info, spec = {}) + end + end + end +end diff --git a/rbi/lib/orb/type/base_model.rbi b/rbi/lib/orb/type/base_model.rbi new file mode 100644 index 00000000..4c67f7df --- /dev/null +++ b/rbi/lib/orb/type/base_model.rbi @@ -0,0 +1,189 @@ +# typed: strong + +module Orb + module Type + class BaseModel + extend Orb::Type::Converter + + abstract! + + KnownFieldShape = T.type_alias { {mode: T.nilable(Symbol), required: T::Boolean, nilable: T::Boolean} } + + class << self + # @api private + # + # Assumes superclass fields are totally defined before fields are accessed / + # defined on subclasses. + sig do + returns( + T::Hash[Symbol, + T.all( + Orb::BaseModel::KnownFieldShape, + {type_fn: T.proc.returns(Orb::Type::Converter::Input)} + )] + ) + end + def known_fields + end + + # @api private + sig do + returns( + T::Hash[Symbol, + T.all(Orb::BaseModel::KnownFieldShape, {type: Orb::Type::Converter::Input})] + ) + end + def fields + end + + # @api private + sig do + params( + name_sym: Symbol, + required: T::Boolean, + type_info: T.any( + { + const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), + enum: T.nilable(T.proc.returns(Orb::Type::Converter::Input)), + union: T.nilable(T.proc.returns(Orb::Type::Converter::Input)), + api_name: Symbol, + nil?: T::Boolean + }, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::Converter::Input + ), + spec: Orb::Util::AnyHash + ) + .void + end + private def add_field(name_sym, required:, type_info:, spec:) + end + + # @api private + sig do + params( + name_sym: Symbol, + type_info: T.any( + Orb::Util::AnyHash, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::Converter::Input + ), + spec: Orb::Util::AnyHash + ) + .void + end + def required(name_sym, type_info, spec = {}) + end + + # @api private + sig do + params( + name_sym: Symbol, + type_info: T.any( + Orb::Util::AnyHash, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::Converter::Input + ), + spec: Orb::Util::AnyHash + ) + .void + end + def optional(name_sym, type_info, spec = {}) + end + + # @api private + # + # `request_only` attributes not excluded from `.#coerce` when receiving responses + # even if well behaved servers should not send them + sig { params(blk: T.proc.void).void } + private def request_only(&blk) + end + + # @api private + # + # `response_only` attributes are omitted from `.#dump` when making requests + sig { params(blk: T.proc.void).void } + private def response_only(&blk) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + class << self + # @api private + sig do + override + .params( + value: T.any(Orb::BaseModel, T::Hash[T.anything, T.anything], T.anything), + state: Orb::Type::Converter::State + ) + .returns(T.any(T.attached_class, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig do + override + .params(value: T.any(T.attached_class, T.anything)) + .returns(T.any(T::Hash[T.anything, T.anything], T.anything)) + end + def dump(value) + end + end + + # Returns the raw value associated with the given key, if found. Otherwise, nil is + # returned. + # + # It is valid to lookup keys that are not in the API spec, for example to access + # undocumented features. This method does not parse response data into + # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. + sig { params(key: Symbol).returns(T.nilable(T.anything)) } + def [](key) + end + + # 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_h + end + + # 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(Orb::Util::AnyHash) } + def deconstruct_keys(keys) + end + + # Create a new instance of a model. + sig { params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns(T.attached_class) } + def self.new(data = {}) + end + + sig { returns(String) } + def inspect + end + end + end +end diff --git a/rbi/lib/orb/type/base_page.rbi b/rbi/lib/orb/type/base_page.rbi new file mode 100644 index 00000000..fbe87427 --- /dev/null +++ b/rbi/lib/orb/type/base_page.rbi @@ -0,0 +1,38 @@ +# typed: strong + +module Orb + module Type + module BasePage + Elem = type_member(:out) + + sig { overridable.returns(T::Boolean) } + def next_page? + end + + sig { overridable.returns(T.self_type) } + def next_page + end + + sig { overridable.params(blk: T.proc.params(arg0: Elem).void).void } + def auto_paging_each(&blk) + end + + sig { returns(T::Enumerable[Elem]) } + def to_enum + end + + # @api private + sig do + params( + client: Orb::Transport::BaseClient, + req: Orb::Transport::BaseClient::RequestComponentsShape, + headers: T.any(T::Hash[String, String], Net::HTTPHeader), + page_data: T.anything + ) + .void + end + def initialize(client:, req:, headers:, page_data:) + end + end + end +end diff --git a/rbi/lib/orb/type/boolean_model.rbi b/rbi/lib/orb/type/boolean_model.rbi new file mode 100644 index 00000000..51a4e77f --- /dev/null +++ b/rbi/lib/orb/type/boolean_model.rbi @@ -0,0 +1,41 @@ +# typed: strong + +module Orb + module Type + # @api private + # + # Ruby has no Boolean class; this is something for models to refer to. + class BooleanModel + extend Orb::Type::Converter + + abstract! + final! + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.===(other) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.==(other) + end + + class << self + # @api private + sig(:final) do + override + .params(value: T.any(T::Boolean, T.anything), state: Orb::Type::Converter::State) + .returns(T.any(T::Boolean, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig(:final) do + override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) + end + def dump(value) + end + end + end + end +end diff --git a/rbi/lib/orb/type/converter.rbi b/rbi/lib/orb/type/converter.rbi new file mode 100644 index 00000000..68327ddb --- /dev/null +++ b/rbi/lib/orb/type/converter.rbi @@ -0,0 +1,95 @@ +# typed: strong + +module Orb + module Type + # @api private + module Converter + Input = T.type_alias { T.any(Orb::Type::Converter, T::Class[T.anything]) } + + State = + T.type_alias do + { + strictness: T.any(T::Boolean, Symbol), + exactness: {yes: Integer, no: Integer, maybe: Integer}, + branched: Integer + } + end + + # @api private + sig { overridable.params(value: T.anything, state: Orb::Type::Converter::State).returns(T.anything) } + def coerce(value, state:) + end + + # @api private + sig { overridable.params(value: T.anything).returns(T.anything) } + def dump(value) + end + + class << self + # @api private + sig do + params( + spec: T.any( + { + const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), + enum: T.nilable(T.proc.returns(Orb::Type::Converter::Input)), + union: T.nilable(T.proc.returns(Orb::Type::Converter::Input)) + }, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::Converter::Input + ) + ) + .returns(T.proc.returns(T.anything)) + end + def self.type_info(spec) + end + + # @api private + # + # Based on `target`, transform `value` into `target`, to the extent possible: + # + # 1. if the given `value` conforms to `target` already, return the given `value` + # 2. if it's possible and safe to convert the given `value` to `target`, then the + # converted value + # 3. otherwise, the given `value` unaltered + # + # The coercion process is subject to improvement between minor release versions. + # See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode + sig do + params(target: Orb::Type::Converter::Input, value: T.anything, state: Orb::Type::Converter::State) + .returns(T.anything) + end + def self.coerce( + target, + value, + # The `strictness` is one of `true`, `false`, or `:strong`. This informs the + # coercion strategy when we have to decide between multiple possible conversion + # targets: + # + # - `true`: the conversion must be exact, with minimum coercion. + # - `false`: the conversion can be approximate, with some coercion. + # - `:strong`: the conversion must be exact, with no coercion, and raise an error + # if not possible. + # + # The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For + # any given conversion attempt, the exactness will be updated based on how closely + # the value recursively matches the target type: + # + # - `yes`: the value can be converted to the target type with minimum coercion. + # - `maybe`: the value can be converted to the target type with some reasonable + # coercion. + # - `no`: the value cannot be converted to the target type. + # + # See implementation below for more details. + state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + ) + end + + # @api private + sig { params(target: Orb::Type::Converter::Input, value: T.anything).returns(T.anything) } + def self.dump(target, value) + end + end + end + end +end diff --git a/rbi/lib/orb/type/enum.rbi b/rbi/lib/orb/type/enum.rbi new file mode 100644 index 00000000..f89d5e63 --- /dev/null +++ b/rbi/lib/orb/type/enum.rbi @@ -0,0 +1,58 @@ +# typed: strong + +module Orb + module Type + # @api private + # + # A value from among a specified list of options. OpenAPI enum values map to Ruby + # values in the SDK as follows: + # + # 1. boolean => true | false + # 2. integer => Integer + # 3. float => Float + # 4. string => Symbol + # + # We can therefore convert string values to Symbols, but can't convert other + # values safely. + module Enum + include Orb::Type::Converter + + # 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 + + sig { params(other: T.anything).returns(T::Boolean) } + def ===(other) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + # + # Unlike with primitives, `Enum` additionally validates that the value is a member + # of the enum. + sig do + override + .params(value: T.any(String, Symbol, T.anything), state: Orb::Type::Converter::State) + .returns(T.any(Symbol, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def dump(value) + end + end + end +end diff --git a/rbi/lib/orb/type/hash_of.rbi b/rbi/lib/orb/type/hash_of.rbi new file mode 100644 index 00000000..6d41c1ee --- /dev/null +++ b/rbi/lib/orb/type/hash_of.rbi @@ -0,0 +1,86 @@ +# typed: strong + +module Orb + module Type + # @api private + # + # Hash of items of a given type. + class HashOf + include Orb::Type::Converter + + abstract! + final! + + Elem = type_member(:out) + + sig(:final) do + params( + type_info: T.any( + Orb::Util::AnyHash, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::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) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + sig(:final) do + override + .params(value: T.any( + T::Hash[T.anything, T.anything], + T.anything + ), + state: Orb::Type::Converter::State) + .returns(T.any(Orb::Util::AnyHash, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig(:final) do + override + .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) + .returns(T.any(Orb::Util::AnyHash, T.anything)) + end + def dump(value) + end + + # @api private + sig(:final) { returns(Elem) } + protected def item_type + end + + # @api private + sig(:final) { returns(T::Boolean) } + protected def nilable? + end + + # @api private + sig(:final) do + params( + type_info: T.any( + Orb::Util::AnyHash, + T.proc.returns(Orb::Type::Converter::Input), + Orb::Type::Converter::Input + ), + spec: Orb::Util::AnyHash + ) + .void + end + def initialize(type_info, spec = {}) + end + end + end +end diff --git a/rbi/lib/orb/type/request_parameters.rbi b/rbi/lib/orb/type/request_parameters.rbi new file mode 100644 index 00000000..59729987 --- /dev/null +++ b/rbi/lib/orb/type/request_parameters.rbi @@ -0,0 +1,20 @@ +# typed: strong + +module Orb + module Type + # @api private + module RequestParameters + # Options to specify HTTP behaviour for this request. + 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, Orb::Util::AnyHash]) } + def dump_request(params) + end + end + end + end +end diff --git a/rbi/lib/orb/type/union.rbi b/rbi/lib/orb/type/union.rbi new file mode 100644 index 00000000..5f36bed7 --- /dev/null +++ b/rbi/lib/orb/type/union.rbi @@ -0,0 +1,66 @@ +# typed: strong + +module Orb + module Type + # @api private + module Union + include Orb::Type::Converter + + # @api private + # + # All of the specified variant info for this union. + sig { returns(T::Array[[T.nilable(Symbol), T.proc.returns(Orb::Type::Converter::Input)]]) } + private def known_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[T.anything]) } + def variants + end + + # @api private + sig { params(property: Symbol).void } + private def discriminator(property) + 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(T.anything)) } + private def resolve_variant(value) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ===(other) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + sig { override.params(value: T.anything, state: Orb::Type::Converter::State).returns(T.anything) } + def coerce(value, state:) + end + + # @api private + sig { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end + end + end +end diff --git a/rbi/lib/orb/type/unknown.rbi b/rbi/lib/orb/type/unknown.rbi new file mode 100644 index 00000000..733ddb63 --- /dev/null +++ b/rbi/lib/orb/type/unknown.rbi @@ -0,0 +1,37 @@ +# typed: strong + +module Orb + module Type + # @api private + # + # When we don't know what to expect for the value. + class Unknown + extend Orb::Type::Converter + + abstract! + final! + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.===(other) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.==(other) + end + + class << self + # @api private + sig(:final) do + override.params(value: T.anything, state: Orb::Type::Converter::State).returns(T.anything) + end + def coerce(value, state:) + end + + # @api private + sig(:final) { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end + end + end + end +end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index 9feb2b8e..7176a7ff 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.29" + VERSION = "0.1.0-alpha.30" end diff --git a/sig/orb/base_client.rbs b/sig/orb/base_client.rbs deleted file mode 100644 index e87f1342..00000000 --- a/sig/orb/base_client.rbs +++ /dev/null @@ -1,106 +0,0 @@ -module Orb - class BaseClient - type request_components = - { - method: Symbol, - path: String | ::Array[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? - } - - type request_input = - { - method: Symbol, - url: URI::Generic, - headers: ::Hash[String, String], - body: top, - max_retries: Integer, - timeout: Float - } - - MAX_REDIRECTS: 20 - - PLATFORM_HEADERS: ::Hash[String, String] - - def self.validate!: (Orb::BaseClient::request_components req) -> void - - def self.should_retry?: ( - Integer status, - headers: ::Hash[String, String] - ) -> bool - - def self.follow_redirect: ( - Orb::BaseClient::request_input request, - status: Integer, - response_headers: ::Hash[String, String] - ) -> Orb::BaseClient::request_input - - def self.reap_connection!: ( - Integer | Orb::APIConnectionError status, - stream: Enumerable[String]? - ) -> void - - # @api private - attr_accessor requester: top - - def initialize: ( - base_url: 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? - ) -> void - - private def auth_headers: -> ::Hash[String, String] - - private def generate_idempotency_key: -> String - - private def build_request: ( - Orb::BaseClient::request_components req, - Orb::request_options opts - ) -> Orb::BaseClient::request_input - - private def retry_delay: ( - ::Hash[String, String] headers, - retry_count: Integer - ) -> Float - - private def send_request: ( - Orb::BaseClient::request_input request, - redirect_count: Integer, - retry_count: Integer, - send_retry_header: bool - ) -> [Integer, top, Enumerable[String]] - - def request: - ( - Symbol method, - String | ::Array[String] path, - ?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? - ) -> top - | (Orb::BaseClient::request_components req) -> top - - def inspect: -> String - end -end diff --git a/sig/orb/base_model.rbs b/sig/orb/base_model.rbs deleted file mode 100644 index 81ce6a23..00000000 --- a/sig/orb/base_model.rbs +++ /dev/null @@ -1,257 +0,0 @@ -module Orb - module Converter - type input = Orb::Converter | Class - - def coerce: (top value) -> top - - def dump: (top value) -> top - - def try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - - def self.type_info: ( - { - const: (nil | bool | Integer | Float | Symbol)?, - enum: ^-> Orb::Converter::input?, - union: ^-> Orb::Converter::input? - } - | ^-> Orb::Converter::input - | Orb::Converter::input spec - ) -> (^-> top) - - def self.coerce: (Orb::Converter::input target, top value) -> top - - def self.dump: (Orb::Converter::input target, top value) -> top - - def self.try_strict_coerce: (Orb::Converter::input target, top value) -> top - end - - class Unknown - extend Orb::Converter - - def self.===: (top other) -> bool - - def self.==: (top other) -> bool - - def self.coerce: (top value) -> top - - def self.dump: (top value) -> top - - def self.try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - end - - class BooleanModel - extend Orb::Converter - - def self.===: (top other) -> bool - - def self.==: (top other) -> bool - - def self.coerce: (bool | top value) -> (bool | top) - - def self.dump: (bool | top value) -> (bool | top) - - def self.try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - end - - module Enum - include Orb::Converter - - def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] - - private def self.finalize!: -> void - - def ===: (top other) -> bool - - def ==: (top other) -> bool - - def coerce: (String | Symbol | top value) -> (Symbol | top) - - def dump: (Symbol | top value) -> (Symbol | top) - - def try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - end - - module Union - include Orb::Converter - - private def self.known_variants: -> ::Array[[Symbol?, (^-> Orb::Converter::input)]] - - def self.derefed_variants: -> ::Array[[Symbol?, top]] - - def self.variants: -> ::Array[top] - - private def self.discriminator: (Symbol property) -> void - - private def self.variant: ( - Symbol - | ::Hash[Symbol, top] - | ^-> Orb::Converter::input - | Orb::Converter::input key, - ?::Hash[Symbol, top] - | ^-> Orb::Converter::input - | Orb::Converter::input spec - ) -> void - - private def self.resolve_variant: (top value) -> Orb::Converter::input? - - def ===: (top other) -> bool - - def ==: (top other) -> bool - - def coerce: (top value) -> top - - def dump: (top value) -> top - - def try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - end - - 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 - - def coerce: (Enumerable[top] | top value) -> (::Array[top] | top) - - def dump: (Enumerable[top] | top value) -> (::Array[top] | top) - - def try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - - def item_type: -> top - - def initialize: ( - ::Hash[Symbol, top] - | ^-> Orb::Converter::input - | Orb::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - end - - 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 - - def coerce: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top) - - def dump: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top) - - def try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - - def item_type: -> top - - def initialize: ( - ::Hash[Symbol, top] - | ^-> Orb::Converter::input - | Orb::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - end - - class BaseModel - extend Orb::Converter - - type known_field = { mode: (:coerce | :dump)?, required: bool } - - def self.known_fields: -> ::Hash[Symbol, (Orb::BaseModel::known_field - & { type_fn: (^-> Orb::Converter::input) })] - - def self.reverse_map: -> ::Hash[Symbol, Symbol] - - def self.fields: -> ::Hash[Symbol, (Orb::BaseModel::known_field - & { type: Orb::Converter::input })] - - def self.defaults: -> ::Hash[Symbol, (^-> Class)] - - private def self.add_field: ( - Symbol name_sym, - required: bool, - type_info: { - const: (nil | bool | Integer | Float | Symbol)?, - enum: ^-> Orb::Converter::input?, - union: ^-> Orb::Converter::input?, - api_name: Symbol - } - | ^-> Orb::Converter::input - | Orb::Converter::input, - spec: ::Hash[Symbol, top] - ) -> void - - def self.required: ( - Symbol name_sym, - ::Hash[Symbol, top] - | ^-> Orb::Converter::input - | Orb::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - - def self.optional: ( - Symbol name_sym, - ::Hash[Symbol, top] - | ^-> Orb::Converter::input - | Orb::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - - private def self.request_only: { -> void } -> void - - private def self.response_only: { -> void } -> void - - def ==: (top other) -> bool - - def self.coerce: ( - Orb::BaseModel | ::Hash[top, top] | top value - ) -> (instance | top) - - def self.dump: (instance | top value) -> (::Hash[top, top] | top) - - def self.try_strict_coerce: ( - top value - ) -> ([true, top, nil] | [false, bool, Integer]) - - def []: (Symbol key) -> top? - - def to_h: -> ::Hash[Symbol, top] - - alias to_hash to_h - - def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top] - - def initialize: (?::Hash[Symbol, top] | self data) -> void - - def to_s: -> String - - def inspect: -> String - end -end diff --git a/sig/orb/base_page.rbs b/sig/orb/base_page.rbs deleted file mode 100644 index 2f15112f..00000000 --- a/sig/orb/base_page.rbs +++ /dev/null @@ -1,20 +0,0 @@ -module Orb - module BasePage[Elem] - def next_page?: -> bool - - def next_page: -> self - - def auto_paging_each: { (Elem arg0) -> void } -> void - - def to_enum: -> Enumerable[Elem] - - alias enum_for to_enum - - def initialize: ( - client: Orb::BaseClient, - req: Orb::BaseClient::request_components, - headers: ::Hash[String, String], - page_data: top - ) -> void - end -end diff --git a/sig/orb/client.rbs b/sig/orb/client.rbs index e6da014c..08dfc8a8 100644 --- a/sig/orb/client.rbs +++ b/sig/orb/client.rbs @@ -1,5 +1,5 @@ module Orb - class Client < Orb::BaseClient + class Client < Orb::Transport::BaseClient DEFAULT_MAX_RETRIES: 2 DEFAULT_TIMEOUT_IN_SECONDS: Float diff --git a/sig/orb/extern.rbs b/sig/orb/extern.rbs deleted file mode 100644 index 6b9181ce..00000000 --- a/sig/orb/extern.rbs +++ /dev/null @@ -1,4 +0,0 @@ -module Orb - module Extern - 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 a9d84f24..2fd60f25 100644 --- a/sig/orb/models/alert_create_for_customer_params.rbs +++ b/sig/orb/models/alert_create_for_customer_params.rbs @@ -9,7 +9,7 @@ module Orb & Orb::request_parameters class AlertCreateForCustomerParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String 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 4aa3ef4b..ce766174 100644 --- a/sig/orb/models/alert_create_for_external_customer_params.rbs +++ b/sig/orb/models/alert_create_for_external_customer_params.rbs @@ -9,7 +9,7 @@ module Orb & Orb::request_parameters class AlertCreateForExternalCustomerParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String diff --git a/sig/orb/models/alert_create_for_subscription_params.rbs b/sig/orb/models/alert_create_for_subscription_params.rbs index 3dfc5ac3..d80deaef 100644 --- a/sig/orb/models/alert_create_for_subscription_params.rbs +++ b/sig/orb/models/alert_create_for_subscription_params.rbs @@ -9,7 +9,7 @@ module Orb & Orb::request_parameters class AlertCreateForSubscriptionParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold] diff --git a/sig/orb/models/alert_disable_params.rbs b/sig/orb/models/alert_disable_params.rbs index a3e5f77c..3902f0c7 100644 --- a/sig/orb/models/alert_disable_params.rbs +++ b/sig/orb/models/alert_disable_params.rbs @@ -4,7 +4,7 @@ module Orb { subscription_id: String? } & Orb::request_parameters class AlertDisableParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor subscription_id: String? diff --git a/sig/orb/models/alert_enable_params.rbs b/sig/orb/models/alert_enable_params.rbs index 6e3caf55..b708e56a 100644 --- a/sig/orb/models/alert_enable_params.rbs +++ b/sig/orb/models/alert_enable_params.rbs @@ -4,7 +4,7 @@ module Orb { subscription_id: String? } & Orb::request_parameters class AlertEnableParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor subscription_id: String? diff --git a/sig/orb/models/alert_list_params.rbs b/sig/orb/models/alert_list_params.rbs index 8ce96201..b69736f9 100644 --- a/sig/orb/models/alert_list_params.rbs +++ b/sig/orb/models/alert_list_params.rbs @@ -15,7 +15,7 @@ module Orb & Orb::request_parameters class AlertListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? diff --git a/sig/orb/models/alert_retrieve_params.rbs b/sig/orb/models/alert_retrieve_params.rbs index 13aa15b5..11c936b5 100644 --- a/sig/orb/models/alert_retrieve_params.rbs +++ b/sig/orb/models/alert_retrieve_params.rbs @@ -3,7 +3,7 @@ module Orb type alert_retrieve_params = { } & Orb::request_parameters class AlertRetrieveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/alert_update_params.rbs b/sig/orb/models/alert_update_params.rbs index 1f120b52..ef2da552 100644 --- a/sig/orb/models/alert_update_params.rbs +++ b/sig/orb/models/alert_update_params.rbs @@ -5,7 +5,7 @@ module Orb & Orb::request_parameters class AlertUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold] diff --git a/sig/orb/models/coupon_archive_params.rbs b/sig/orb/models/coupon_archive_params.rbs index ed551585..bb6c38ef 100644 --- a/sig/orb/models/coupon_archive_params.rbs +++ b/sig/orb/models/coupon_archive_params.rbs @@ -3,7 +3,7 @@ module Orb type coupon_archive_params = { } & Orb::request_parameters class CouponArchiveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/coupon_create_params.rbs b/sig/orb/models/coupon_create_params.rbs index a37c51f9..d150f0b3 100644 --- a/sig/orb/models/coupon_create_params.rbs +++ b/sig/orb/models/coupon_create_params.rbs @@ -10,7 +10,7 @@ module Orb & Orb::request_parameters class CouponCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor discount: Orb::Models::CouponCreateParams::discount diff --git a/sig/orb/models/coupon_fetch_params.rbs b/sig/orb/models/coupon_fetch_params.rbs index 0abbd80e..8958e15b 100644 --- a/sig/orb/models/coupon_fetch_params.rbs +++ b/sig/orb/models/coupon_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type coupon_fetch_params = { } & Orb::request_parameters class CouponFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/coupon_list_params.rbs b/sig/orb/models/coupon_list_params.rbs index 813ae6af..d4a28ef2 100644 --- a/sig/orb/models/coupon_list_params.rbs +++ b/sig/orb/models/coupon_list_params.rbs @@ -10,7 +10,7 @@ module Orb & Orb::request_parameters class CouponListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/coupons/subscription_list_params.rbs b/sig/orb/models/coupons/subscription_list_params.rbs index b0474e0d..715a8a14 100644 --- a/sig/orb/models/coupons/subscription_list_params.rbs +++ b/sig/orb/models/coupons/subscription_list_params.rbs @@ -5,7 +5,7 @@ module Orb { cursor: String?, limit: Integer } & Orb::request_parameters class SubscriptionListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/credit_note_create_params.rbs b/sig/orb/models/credit_note_create_params.rbs index 10226ac9..e89b6c5f 100644 --- a/sig/orb/models/credit_note_create_params.rbs +++ b/sig/orb/models/credit_note_create_params.rbs @@ -9,7 +9,7 @@ module Orb & Orb::request_parameters class CreditNoteCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem] diff --git a/sig/orb/models/credit_note_fetch_params.rbs b/sig/orb/models/credit_note_fetch_params.rbs index 02c60f8b..92e110fc 100644 --- a/sig/orb/models/credit_note_fetch_params.rbs +++ b/sig/orb/models/credit_note_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type credit_note_fetch_params = { } & Orb::request_parameters class CreditNoteFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/credit_note_list_params.rbs b/sig/orb/models/credit_note_list_params.rbs index 7dc52517..fbafe4e8 100644 --- a/sig/orb/models/credit_note_list_params.rbs +++ b/sig/orb/models/credit_note_list_params.rbs @@ -12,7 +12,7 @@ module Orb & Orb::request_parameters class CreditNoteListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index 8d80f0a4..c0dc7062 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -24,7 +24,7 @@ module Orb & Orb::request_parameters class CustomerCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor email: String diff --git a/sig/orb/models/customer_delete_params.rbs b/sig/orb/models/customer_delete_params.rbs index df38d7fe..45b29324 100644 --- a/sig/orb/models/customer_delete_params.rbs +++ b/sig/orb/models/customer_delete_params.rbs @@ -3,7 +3,7 @@ module Orb type customer_delete_params = { } & Orb::request_parameters class CustomerDeleteParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 4ba9cb77..c02e674e 100644 --- a/sig/orb/models/customer_fetch_by_external_id_params.rbs +++ b/sig/orb/models/customer_fetch_by_external_id_params.rbs @@ -3,7 +3,7 @@ module Orb type customer_fetch_by_external_id_params = { } & Orb::request_parameters class CustomerFetchByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/customer_fetch_params.rbs b/sig/orb/models/customer_fetch_params.rbs index 99450116..17d36ac2 100644 --- a/sig/orb/models/customer_fetch_params.rbs +++ b/sig/orb/models/customer_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type customer_fetch_params = { } & Orb::request_parameters class CustomerFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/customer_list_params.rbs b/sig/orb/models/customer_list_params.rbs index 876e905d..9b68fe3d 100644 --- a/sig/orb/models/customer_list_params.rbs +++ b/sig/orb/models/customer_list_params.rbs @@ -12,7 +12,7 @@ module Orb & Orb::request_parameters class CustomerListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? 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 f02fa64c..ae527cee 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 @@ -4,7 +4,7 @@ module Orb { } & Orb::request_parameters class CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 9a1b1243..51d9a64c 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 @@ -4,7 +4,7 @@ module Orb { } & Orb::request_parameters class CustomerSyncPaymentMethodsFromGatewayParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 8f92fb9f..a09b98c2 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -23,7 +23,7 @@ module Orb & Orb::request_parameters class CustomerUpdateByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration? diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index f161e0a9..4869d3c8 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -23,7 +23,7 @@ module Orb & Orb::request_parameters class CustomerUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration? diff --git a/sig/orb/models/customers/balance_transaction_create_params.rbs b/sig/orb/models/customers/balance_transaction_create_params.rbs index 48e39f0b..2819dea6 100644 --- a/sig/orb/models/customers/balance_transaction_create_params.rbs +++ b/sig/orb/models/customers/balance_transaction_create_params.rbs @@ -10,7 +10,7 @@ module Orb & Orb::request_parameters class BalanceTransactionCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor amount: String diff --git a/sig/orb/models/customers/balance_transaction_list_params.rbs b/sig/orb/models/customers/balance_transaction_list_params.rbs index 4906ec62..73621913 100644 --- a/sig/orb/models/customers/balance_transaction_list_params.rbs +++ b/sig/orb/models/customers/balance_transaction_list_params.rbs @@ -13,7 +13,7 @@ module Orb & Orb::request_parameters class BalanceTransactionListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? 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 7dc5ae55..bea016fd 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 @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class CostListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String? diff --git a/sig/orb/models/customers/cost_list_params.rbs b/sig/orb/models/customers/cost_list_params.rbs index 85887448..e4dace89 100644 --- a/sig/orb/models/customers/cost_list_params.rbs +++ b/sig/orb/models/customers/cost_list_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class CostListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String? 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 1db24044..be3ffbbd 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 @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class CreditListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String? diff --git a/sig/orb/models/customers/credit_list_params.rbs b/sig/orb/models/customers/credit_list_params.rbs index 8da8aa08..cb3d9a4e 100644 --- a/sig/orb/models/customers/credit_list_params.rbs +++ b/sig/orb/models/customers/credit_list_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class CreditListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String? 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 b7b7e299..d9852c1e 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 @@ -20,7 +20,7 @@ module Orb & Orb::request_parameters class LedgerCreateEntryByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor amount: Float 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 d7f39fde..2a84643a 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -20,7 +20,7 @@ module Orb & Orb::request_parameters class LedgerCreateEntryParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor amount: Float 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 f42ecce0..10183ba0 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 @@ -18,7 +18,7 @@ module Orb & Orb::request_parameters class LedgerListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? diff --git a/sig/orb/models/customers/credits/ledger_list_params.rbs b/sig/orb/models/customers/credits/ledger_list_params.rbs index 59551873..43c2d027 100644 --- a/sig/orb/models/customers/credits/ledger_list_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_params.rbs @@ -18,7 +18,7 @@ module Orb & Orb::request_parameters class LedgerListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? 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 746ed054..bf9fd03c 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 @@ -16,7 +16,7 @@ module Orb & Orb::request_parameters class TopUpCreateByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor amount: String 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 e52d6c4c..bacd25ae 100644 --- a/sig/orb/models/customers/credits/top_up_create_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_params.rbs @@ -16,7 +16,7 @@ module Orb & Orb::request_parameters class TopUpCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor amount: String 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 58da5918..6a188a6e 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 @@ -6,7 +6,7 @@ module Orb { external_customer_id: String } & Orb::request_parameters class TopUpDeleteByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor external_customer_id: String 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 76c30b7d..d5d996c3 100644 --- a/sig/orb/models/customers/credits/top_up_delete_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_params.rbs @@ -6,7 +6,7 @@ module Orb { customer_id: String } & Orb::request_parameters class TopUpDeleteParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor customer_id: String 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 2d1ffdda..9ca1ceca 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 @@ -6,7 +6,7 @@ module Orb { cursor: String?, limit: Integer } & Orb::request_parameters class TopUpListByExternalIDParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? 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 ade485c0..7e748200 100644 --- a/sig/orb/models/customers/credits/top_up_list_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_params.rbs @@ -6,7 +6,7 @@ module Orb { cursor: String?, limit: Integer } & Orb::request_parameters class TopUpListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/dimensional_price_group_create_params.rbs b/sig/orb/models/dimensional_price_group_create_params.rbs index 0fb069d7..9179ad37 100644 --- a/sig/orb/models/dimensional_price_group_create_params.rbs +++ b/sig/orb/models/dimensional_price_group_create_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class DimensionalPriceGroupCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor billable_metric_id: String diff --git a/sig/orb/models/dimensional_price_group_list_params.rbs b/sig/orb/models/dimensional_price_group_list_params.rbs index 36d3c05e..0d1170ca 100644 --- a/sig/orb/models/dimensional_price_group_list_params.rbs +++ b/sig/orb/models/dimensional_price_group_list_params.rbs @@ -4,7 +4,7 @@ module Orb { cursor: String?, limit: Integer } & Orb::request_parameters class DimensionalPriceGroupListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/dimensional_price_group_retrieve_params.rbs b/sig/orb/models/dimensional_price_group_retrieve_params.rbs index 8d4d903d..cba2ba3c 100644 --- a/sig/orb/models/dimensional_price_group_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_group_retrieve_params.rbs @@ -4,7 +4,7 @@ module Orb { } & Orb::request_parameters class DimensionalPriceGroupRetrieveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 b45bb368..acf24079 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 @@ -5,7 +5,7 @@ module Orb { } & Orb::request_parameters class ExternalDimensionalPriceGroupIDRetrieveParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/event_deprecate_params.rbs b/sig/orb/models/event_deprecate_params.rbs index 9420c333..ab27c58b 100644 --- a/sig/orb/models/event_deprecate_params.rbs +++ b/sig/orb/models/event_deprecate_params.rbs @@ -3,7 +3,7 @@ module Orb type event_deprecate_params = { } & Orb::request_parameters class EventDeprecateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/event_ingest_params.rbs b/sig/orb/models/event_ingest_params.rbs index 70233275..8a14e4c1 100644 --- a/sig/orb/models/event_ingest_params.rbs +++ b/sig/orb/models/event_ingest_params.rbs @@ -9,7 +9,7 @@ module Orb & Orb::request_parameters class EventIngestParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor events: ::Array[Orb::Models::EventIngestParams::Event] diff --git a/sig/orb/models/event_search_params.rbs b/sig/orb/models/event_search_params.rbs index 5cd98ac7..109cb77f 100644 --- a/sig/orb/models/event_search_params.rbs +++ b/sig/orb/models/event_search_params.rbs @@ -9,7 +9,7 @@ module Orb & Orb::request_parameters class EventSearchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor event_ids: ::Array[String] diff --git a/sig/orb/models/event_update_params.rbs b/sig/orb/models/event_update_params.rbs index a68a97dc..ed7adb11 100644 --- a/sig/orb/models/event_update_params.rbs +++ b/sig/orb/models/event_update_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class EventUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor event_name: String diff --git a/sig/orb/models/events/backfill_close_params.rbs b/sig/orb/models/events/backfill_close_params.rbs index 40305264..9e5ef8db 100644 --- a/sig/orb/models/events/backfill_close_params.rbs +++ b/sig/orb/models/events/backfill_close_params.rbs @@ -4,7 +4,7 @@ module Orb type backfill_close_params = { } & Orb::request_parameters class BackfillCloseParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/events/backfill_create_params.rbs b/sig/orb/models/events/backfill_create_params.rbs index 799629df..a1bb02b1 100644 --- a/sig/orb/models/events/backfill_create_params.rbs +++ b/sig/orb/models/events/backfill_create_params.rbs @@ -14,7 +14,7 @@ module Orb & Orb::request_parameters class BackfillCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor timeframe_end: Time diff --git a/sig/orb/models/events/backfill_fetch_params.rbs b/sig/orb/models/events/backfill_fetch_params.rbs index 95998077..be10ab17 100644 --- a/sig/orb/models/events/backfill_fetch_params.rbs +++ b/sig/orb/models/events/backfill_fetch_params.rbs @@ -4,7 +4,7 @@ module Orb type backfill_fetch_params = { } & Orb::request_parameters class BackfillFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/events/backfill_list_params.rbs b/sig/orb/models/events/backfill_list_params.rbs index f1c9b9c4..804f309b 100644 --- a/sig/orb/models/events/backfill_list_params.rbs +++ b/sig/orb/models/events/backfill_list_params.rbs @@ -5,7 +5,7 @@ module Orb { cursor: String?, limit: Integer } & Orb::request_parameters class BackfillListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/events/backfill_revert_params.rbs b/sig/orb/models/events/backfill_revert_params.rbs index 9329af9d..a005df42 100644 --- a/sig/orb/models/events/backfill_revert_params.rbs +++ b/sig/orb/models/events/backfill_revert_params.rbs @@ -4,7 +4,7 @@ module Orb type backfill_revert_params = { } & Orb::request_parameters class BackfillRevertParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/events/volume_list_params.rbs b/sig/orb/models/events/volume_list_params.rbs index 1b7a5f23..01984a4e 100644 --- a/sig/orb/models/events/volume_list_params.rbs +++ b/sig/orb/models/events/volume_list_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class VolumeListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor timeframe_start: Time diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index c810406b..ee509108 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -16,7 +16,7 @@ module Orb & Orb::request_parameters class InvoiceCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String diff --git a/sig/orb/models/invoice_fetch_params.rbs b/sig/orb/models/invoice_fetch_params.rbs index 773a7f9f..ab6ece1d 100644 --- a/sig/orb/models/invoice_fetch_params.rbs +++ b/sig/orb/models/invoice_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type invoice_fetch_params = { } & Orb::request_parameters class InvoiceFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/invoice_fetch_upcoming_params.rbs b/sig/orb/models/invoice_fetch_upcoming_params.rbs index 6df7fa65..04ba8a3b 100644 --- a/sig/orb/models/invoice_fetch_upcoming_params.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_params.rbs @@ -4,7 +4,7 @@ module Orb { subscription_id: String } & Orb::request_parameters class InvoiceFetchUpcomingParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor subscription_id: String diff --git a/sig/orb/models/invoice_issue_params.rbs b/sig/orb/models/invoice_issue_params.rbs index 1dd89f33..c8943a4d 100644 --- a/sig/orb/models/invoice_issue_params.rbs +++ b/sig/orb/models/invoice_issue_params.rbs @@ -3,7 +3,7 @@ module Orb type invoice_issue_params = { synchronous: bool } & Orb::request_parameters class InvoiceIssueParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_reader synchronous: bool? diff --git a/sig/orb/models/invoice_line_item_create_params.rbs b/sig/orb/models/invoice_line_item_create_params.rbs index 62c0a170..46bda033 100644 --- a/sig/orb/models/invoice_line_item_create_params.rbs +++ b/sig/orb/models/invoice_line_item_create_params.rbs @@ -12,7 +12,7 @@ module Orb & Orb::request_parameters class InvoiceLineItemCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor amount: String diff --git a/sig/orb/models/invoice_list_params.rbs b/sig/orb/models/invoice_list_params.rbs index 2d693200..d2f48b49 100644 --- a/sig/orb/models/invoice_list_params.rbs +++ b/sig/orb/models/invoice_list_params.rbs @@ -25,7 +25,7 @@ module Orb & Orb::request_parameters class InvoiceListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor amount: String? diff --git a/sig/orb/models/invoice_mark_paid_params.rbs b/sig/orb/models/invoice_mark_paid_params.rbs index 101e1d9c..b7c1a109 100644 --- a/sig/orb/models/invoice_mark_paid_params.rbs +++ b/sig/orb/models/invoice_mark_paid_params.rbs @@ -5,7 +5,7 @@ module Orb & Orb::request_parameters class InvoiceMarkPaidParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor payment_received_date: Date diff --git a/sig/orb/models/invoice_pay_params.rbs b/sig/orb/models/invoice_pay_params.rbs index 7d80b8a8..0a12a075 100644 --- a/sig/orb/models/invoice_pay_params.rbs +++ b/sig/orb/models/invoice_pay_params.rbs @@ -3,7 +3,7 @@ module Orb type invoice_pay_params = { } & Orb::request_parameters class InvoicePayParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/invoice_update_params.rbs b/sig/orb/models/invoice_update_params.rbs index 2f7cbd9b..37ddbb57 100644 --- a/sig/orb/models/invoice_update_params.rbs +++ b/sig/orb/models/invoice_update_params.rbs @@ -4,7 +4,7 @@ module Orb { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class InvoiceUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor metadata: ::Hash[Symbol, String?]? diff --git a/sig/orb/models/invoice_void_params.rbs b/sig/orb/models/invoice_void_params.rbs index 2d841232..cf49f4d6 100644 --- a/sig/orb/models/invoice_void_params.rbs +++ b/sig/orb/models/invoice_void_params.rbs @@ -3,7 +3,7 @@ module Orb type invoice_void_params = { } & Orb::request_parameters class InvoiceVoidParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/item_create_params.rbs b/sig/orb/models/item_create_params.rbs index 4281f1e6..bcde7177 100644 --- a/sig/orb/models/item_create_params.rbs +++ b/sig/orb/models/item_create_params.rbs @@ -3,7 +3,7 @@ module Orb type item_create_params = { name: String } & Orb::request_parameters class ItemCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor name: String diff --git a/sig/orb/models/item_fetch_params.rbs b/sig/orb/models/item_fetch_params.rbs index 3ad92ea3..b50d4dbc 100644 --- a/sig/orb/models/item_fetch_params.rbs +++ b/sig/orb/models/item_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type item_fetch_params = { } & Orb::request_parameters class ItemFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/item_list_params.rbs b/sig/orb/models/item_list_params.rbs index f7debabb..b8f4387a 100644 --- a/sig/orb/models/item_list_params.rbs +++ b/sig/orb/models/item_list_params.rbs @@ -4,7 +4,7 @@ module Orb { cursor: String?, limit: Integer } & Orb::request_parameters class ItemListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index 3e8e0dae..4e32e78f 100644 --- a/sig/orb/models/item_update_params.rbs +++ b/sig/orb/models/item_update_params.rbs @@ -8,7 +8,7 @@ module Orb & Orb::request_parameters class ItemUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]? diff --git a/sig/orb/models/metric_create_params.rbs b/sig/orb/models/metric_create_params.rbs index 23ffbd89..ca483dc5 100644 --- a/sig/orb/models/metric_create_params.rbs +++ b/sig/orb/models/metric_create_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class MetricCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor description: String? diff --git a/sig/orb/models/metric_fetch_params.rbs b/sig/orb/models/metric_fetch_params.rbs index 35077fa2..dba974a9 100644 --- a/sig/orb/models/metric_fetch_params.rbs +++ b/sig/orb/models/metric_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type metric_fetch_params = { } & Orb::request_parameters class MetricFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/metric_list_params.rbs b/sig/orb/models/metric_list_params.rbs index 50272106..dbbc6b8d 100644 --- a/sig/orb/models/metric_list_params.rbs +++ b/sig/orb/models/metric_list_params.rbs @@ -12,7 +12,7 @@ module Orb & Orb::request_parameters class MetricListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? diff --git a/sig/orb/models/metric_update_params.rbs b/sig/orb/models/metric_update_params.rbs index 20901497..db2ad59e 100644 --- a/sig/orb/models/metric_update_params.rbs +++ b/sig/orb/models/metric_update_params.rbs @@ -4,7 +4,7 @@ module Orb { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class MetricUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor metadata: ::Hash[Symbol, String?]? diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index 6bae5799..47e3b9aa 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -14,7 +14,7 @@ module Orb & Orb::request_parameters class PlanCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String diff --git a/sig/orb/models/plan_fetch_params.rbs b/sig/orb/models/plan_fetch_params.rbs index 1354f0de..18ca4db1 100644 --- a/sig/orb/models/plan_fetch_params.rbs +++ b/sig/orb/models/plan_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type plan_fetch_params = { } & Orb::request_parameters class PlanFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/plan_list_params.rbs b/sig/orb/models/plan_list_params.rbs index 9f23fe3f..b79886c8 100644 --- a/sig/orb/models/plan_list_params.rbs +++ b/sig/orb/models/plan_list_params.rbs @@ -13,7 +13,7 @@ module Orb & Orb::request_parameters class PlanListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? diff --git a/sig/orb/models/plan_update_params.rbs b/sig/orb/models/plan_update_params.rbs index 51ac1488..f06ca849 100644 --- a/sig/orb/models/plan_update_params.rbs +++ b/sig/orb/models/plan_update_params.rbs @@ -5,7 +5,7 @@ module Orb & Orb::request_parameters class PlanUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor external_plan_id: String? 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 e7c555e3..2e19fd93 100644 --- a/sig/orb/models/plans/external_plan_id_fetch_params.rbs +++ b/sig/orb/models/plans/external_plan_id_fetch_params.rbs @@ -4,7 +4,7 @@ module Orb type external_plan_id_fetch_params = { } & Orb::request_parameters class ExternalPlanIDFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 2fb1db25..b4093907 100644 --- a/sig/orb/models/plans/external_plan_id_update_params.rbs +++ b/sig/orb/models/plans/external_plan_id_update_params.rbs @@ -6,7 +6,7 @@ module Orb & Orb::request_parameters class ExternalPlanIDUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor external_plan_id: String? diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index 600179b8..4f9bdb4f 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -48,7 +48,7 @@ module Orb & Orb::request_parameters class PriceCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cadence: Orb::Models::PriceCreateParams::cadence diff --git a/sig/orb/models/price_evaluate_params.rbs b/sig/orb/models/price_evaluate_params.rbs index 14b07520..a9437df6 100644 --- a/sig/orb/models/price_evaluate_params.rbs +++ b/sig/orb/models/price_evaluate_params.rbs @@ -12,7 +12,7 @@ module Orb & Orb::request_parameters class PriceEvaluateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor timeframe_end: Time diff --git a/sig/orb/models/price_fetch_params.rbs b/sig/orb/models/price_fetch_params.rbs index b5f68aad..94337a51 100644 --- a/sig/orb/models/price_fetch_params.rbs +++ b/sig/orb/models/price_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type price_fetch_params = { } & Orb::request_parameters class PriceFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/price_list_params.rbs b/sig/orb/models/price_list_params.rbs index 3d331900..bab0f4bc 100644 --- a/sig/orb/models/price_list_params.rbs +++ b/sig/orb/models/price_list_params.rbs @@ -4,7 +4,7 @@ module Orb { cursor: String?, limit: Integer } & Orb::request_parameters class PriceListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/price_update_params.rbs b/sig/orb/models/price_update_params.rbs index 6fb75cd3..4d5c3a0f 100644 --- a/sig/orb/models/price_update_params.rbs +++ b/sig/orb/models/price_update_params.rbs @@ -4,7 +4,7 @@ module Orb { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class PriceUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor metadata: ::Hash[Symbol, String?]? 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 0bb37c0c..7fabcbe3 100644 --- a/sig/orb/models/prices/external_price_id_fetch_params.rbs +++ b/sig/orb/models/prices/external_price_id_fetch_params.rbs @@ -4,7 +4,7 @@ module Orb type external_price_id_fetch_params = { } & Orb::request_parameters class ExternalPriceIDFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 b706a797..ab8e850a 100644 --- a/sig/orb/models/prices/external_price_id_update_params.rbs +++ b/sig/orb/models/prices/external_price_id_update_params.rbs @@ -5,7 +5,7 @@ module Orb { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class ExternalPriceIDUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor metadata: ::Hash[Symbol, String?]? diff --git a/sig/orb/models/subscription_cancel_params.rbs b/sig/orb/models/subscription_cancel_params.rbs index b0d0c92d..3fce83ce 100644 --- a/sig/orb/models/subscription_cancel_params.rbs +++ b/sig/orb/models/subscription_cancel_params.rbs @@ -9,7 +9,7 @@ module Orb & Orb::request_parameters class SubscriptionCancelParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 15a47f57..5cfdc17b 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -37,7 +37,7 @@ module Orb & Orb::request_parameters class SubscriptionCreateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]? diff --git a/sig/orb/models/subscription_fetch_costs_params.rbs b/sig/orb/models/subscription_fetch_costs_params.rbs index 01780204..289fa2f8 100644 --- a/sig/orb/models/subscription_fetch_costs_params.rbs +++ b/sig/orb/models/subscription_fetch_costs_params.rbs @@ -10,7 +10,7 @@ module Orb & Orb::request_parameters class SubscriptionFetchCostsParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor currency: String? diff --git a/sig/orb/models/subscription_fetch_params.rbs b/sig/orb/models/subscription_fetch_params.rbs index 5eef1b0d..6743d0a2 100644 --- a/sig/orb/models/subscription_fetch_params.rbs +++ b/sig/orb/models/subscription_fetch_params.rbs @@ -3,7 +3,7 @@ module Orb type subscription_fetch_params = { } & Orb::request_parameters class SubscriptionFetchParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/models/subscription_fetch_schedule_params.rbs b/sig/orb/models/subscription_fetch_schedule_params.rbs index 9b6eb3dd..f6543d7f 100644 --- a/sig/orb/models/subscription_fetch_schedule_params.rbs +++ b/sig/orb/models/subscription_fetch_schedule_params.rbs @@ -12,7 +12,7 @@ module Orb & Orb::request_parameters class SubscriptionFetchScheduleParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor cursor: String? diff --git a/sig/orb/models/subscription_fetch_usage_params.rbs b/sig/orb/models/subscription_fetch_usage_params.rbs index 4efed748..084ac65f 100644 --- a/sig/orb/models/subscription_fetch_usage_params.rbs +++ b/sig/orb/models/subscription_fetch_usage_params.rbs @@ -16,7 +16,7 @@ module Orb & Orb::request_parameters class SubscriptionFetchUsageParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor billable_metric_id: String? diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index 73d76b70..50783784 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -15,7 +15,7 @@ module Orb & Orb::request_parameters class SubscriptionListParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor created_at_gt: Time? diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 7194855e..e3145f52 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class SubscriptionPriceIntervalsParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_reader add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]? diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index 696ae65f..c6d084e7 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -32,7 +32,7 @@ module Orb & Orb::request_parameters class SubscriptionSchedulePlanChangeParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option diff --git a/sig/orb/models/subscription_trigger_phase_params.rbs b/sig/orb/models/subscription_trigger_phase_params.rbs index 2382adeb..144aeb3b 100644 --- a/sig/orb/models/subscription_trigger_phase_params.rbs +++ b/sig/orb/models/subscription_trigger_phase_params.rbs @@ -5,7 +5,7 @@ module Orb & Orb::request_parameters class SubscriptionTriggerPhaseParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor allow_invoice_credit_or_void: bool? diff --git a/sig/orb/models/subscription_unschedule_cancellation_params.rbs b/sig/orb/models/subscription_unschedule_cancellation_params.rbs index 1007758e..e7255990 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_params.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_params.rbs @@ -4,7 +4,7 @@ module Orb { } & Orb::request_parameters class SubscriptionUnscheduleCancellationParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 9cc2d32e..7a585fe1 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 @@ -4,7 +4,7 @@ module Orb { price_id: String } & Orb::request_parameters class SubscriptionUnscheduleFixedFeeQuantityUpdatesParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor price_id: String 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 c492a2d0..6ba74cfe 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs @@ -4,7 +4,7 @@ module Orb { } & Orb::request_parameters class SubscriptionUnschedulePendingPlanChangesParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void 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 a455c258..250d5da0 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class SubscriptionUpdateFixedFeeQuantityParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor price_id: String diff --git a/sig/orb/models/subscription_update_params.rbs b/sig/orb/models/subscription_update_params.rbs index 6d133517..d738dd08 100644 --- a/sig/orb/models/subscription_update_params.rbs +++ b/sig/orb/models/subscription_update_params.rbs @@ -11,7 +11,7 @@ module Orb & Orb::request_parameters class SubscriptionUpdateParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor auto_collection: bool? diff --git a/sig/orb/models/subscription_update_trial_params.rbs b/sig/orb/models/subscription_update_trial_params.rbs index ba78ae69..f112f57b 100644 --- a/sig/orb/models/subscription_update_trial_params.rbs +++ b/sig/orb/models/subscription_update_trial_params.rbs @@ -8,7 +8,7 @@ module Orb & Orb::request_parameters class SubscriptionUpdateTrialParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters attr_accessor trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date @@ -30,9 +30,9 @@ module Orb module TrialEndDate extend Orb::Union - IMMEDIATE: :immediate - def self?.variants: -> [Time, :immediate] + + IMMEDIATE: :immediate end end end diff --git a/sig/orb/models/top_level_ping_params.rbs b/sig/orb/models/top_level_ping_params.rbs index 6aa69179..b25de367 100644 --- a/sig/orb/models/top_level_ping_params.rbs +++ b/sig/orb/models/top_level_ping_params.rbs @@ -3,7 +3,7 @@ module Orb type top_level_ping_params = { } & Orb::request_parameters class TopLevelPingParams < Orb::BaseModel - extend Orb::RequestParameters::Converter + extend Orb::Type::RequestParameters::Converter include Orb::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index e91871ce..1aa0df40 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -1,6 +1,6 @@ module Orb class Page[Elem] - include Orb::BasePage[Elem] + include Orb::Type::BasePage[Elem] attr_accessor data: ::Array[Elem]? diff --git a/sig/orb/pooled_net_requester.rbs b/sig/orb/pooled_net_requester.rbs deleted file mode 100644 index dc916f71..00000000 --- a/sig/orb/pooled_net_requester.rbs +++ /dev/null @@ -1,37 +0,0 @@ -module Orb - class PooledNetRequester - type request = - { - method: Symbol, - url: URI::Generic, - headers: ::Hash[String, String], - body: top, - deadline: Float - } - - KEEP_ALIVE_TIMEOUT: 30 - - def self.connect: (URI::Generic url) -> top - - def self.calibrate_socket_timeout: (top conn, Float deadline) -> void - - def self.build_request: ( - Orb::PooledNetRequester::request request - ) { - (String arg0) -> void - } -> top - - private def with_pool: ( - URI::Generic url, - deadline: Float - ) { - (top arg0) -> void - } -> void - - def execute: ( - Orb::PooledNetRequester::request request - ) -> [Integer, top, Enumerable[String]] - - def initialize: (?size: Integer) -> void - end -end diff --git a/sig/orb/request_options.rbs b/sig/orb/request_options.rbs index 588b7753..46b7d714 100644 --- a/sig/orb/request_options.rbs +++ b/sig/orb/request_options.rbs @@ -2,16 +2,6 @@ module Orb type request_opts = Orb::RequestOptions | Orb::request_options | ::Hash[Symbol, top] - type request_parameters = { request_options: Orb::request_opts } - - module RequestParameters - attr_accessor request_options: Orb::request_opts - - module Converter - def dump_request: (top params) -> [top, ::Hash[Symbol, top]] - end - end - type request_options = { idempotency_key: String?, diff --git a/sig/orb/transport/base_client.rbs b/sig/orb/transport/base_client.rbs new file mode 100644 index 00000000..3b2fa0d1 --- /dev/null +++ b/sig/orb/transport/base_client.rbs @@ -0,0 +1,110 @@ +module Orb + module Transport + class BaseClient + type request_components = + { + method: Symbol, + path: String | ::Array[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::Type::Converter::input?, + options: Orb::request_opts? + } + + type request_input = + { + method: Symbol, + url: URI::Generic, + headers: ::Hash[String, String], + body: top, + max_retries: Integer, + timeout: Float + } + + MAX_REDIRECTS: 20 + + PLATFORM_HEADERS: ::Hash[String, String] + + def self.validate!: ( + Orb::Transport::BaseClient::request_components req + ) -> void + + def self.should_retry?: ( + Integer status, + headers: ::Hash[String, String] + ) -> bool + + def self.follow_redirect: ( + Orb::Transport::BaseClient::request_input request, + status: Integer, + response_headers: ::Hash[String, String] + ) -> Orb::Transport::BaseClient::request_input + + def self.reap_connection!: ( + Integer | Orb::APIConnectionError status, + stream: Enumerable[String]? + ) -> void + + # @api private + attr_accessor requester: Orb::Transport::PooledNetRequester + + def initialize: ( + base_url: 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? + ) -> void + + private def auth_headers: -> ::Hash[String, String] + + private def generate_idempotency_key: -> String + + private def build_request: ( + Orb::Transport::BaseClient::request_components req, + Orb::request_options opts + ) -> Orb::Transport::BaseClient::request_input + + private def retry_delay: ( + ::Hash[String, String] headers, + retry_count: Integer + ) -> Float + + private def send_request: ( + Orb::Transport::BaseClient::request_input request, + redirect_count: Integer, + retry_count: Integer, + send_retry_header: bool + ) -> [Integer, top, Enumerable[String]] + + def request: + ( + Symbol method, + String | ::Array[String] path, + ?query: ::Hash[String, (::Array[String] | String)?]?, + ?headers: ::Hash[String, (String + | Integer + | ::Array[(String | Integer)?])?]?, + ?body: top?, + ?unwrap: Symbol?, + ?page: Class?, + ?stream: Class?, + ?model: Orb::Type::Converter::input?, + ?options: Orb::request_opts? + ) -> top + | (Orb::Transport::BaseClient::request_components req) -> top + + def inspect: -> String + end + end +end diff --git a/sig/orb/transport/pooled_net_requester.rbs b/sig/orb/transport/pooled_net_requester.rbs new file mode 100644 index 00000000..dccfe7b9 --- /dev/null +++ b/sig/orb/transport/pooled_net_requester.rbs @@ -0,0 +1,39 @@ +module Orb + module Transport + class PooledNetRequester + type request = + { + method: Symbol, + url: URI::Generic, + headers: ::Hash[String, String], + body: top, + deadline: Float + } + + KEEP_ALIVE_TIMEOUT: 30 + + def self.connect: (URI::Generic url) -> top + + def self.calibrate_socket_timeout: (top conn, Float deadline) -> void + + def self.build_request: ( + Orb::Transport::PooledNetRequester::request request + ) { + (String arg0) -> void + } -> top + + private def with_pool: ( + URI::Generic url, + deadline: Float + ) { + (top arg0) -> void + } -> void + + def execute: ( + Orb::Transport::PooledNetRequester::request request + ) -> [Integer, top, Enumerable[String]] + + def initialize: (?size: Integer) -> void + end + end +end diff --git a/sig/orb/type.rbs b/sig/orb/type.rbs new file mode 100644 index 00000000..631a7ed5 --- /dev/null +++ b/sig/orb/type.rbs @@ -0,0 +1,22 @@ +module Orb + class Unknown = Orb::Type::Unknown + + class BooleanModel = Orb::Type::BooleanModel + + module Enum = Orb::Type::Enum + + module Union = Orb::Type::Union + + class ArrayOf = Orb::Type::ArrayOf + + class HashOf = Orb::Type::HashOf + + class BaseModel = Orb::Type::BaseModel + + type request_parameters = Orb::Type::request_parameters + + module RequestParameters = Orb::Type::RequestParameters + + module Type + end +end diff --git a/sig/orb/type/array_of.rbs b/sig/orb/type/array_of.rbs new file mode 100644 index 00000000..aeb687be --- /dev/null +++ b/sig/orb/type/array_of.rbs @@ -0,0 +1,36 @@ +module Orb + module Type + class ArrayOf[Elem] + include Orb::Type::Converter + + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: ( + Enumerable[Elem] | top value, + state: Orb::Type::Converter::state + ) -> (::Array[top] | top) + + def dump: (Enumerable[Elem] | top value) -> (::Array[top] | top) + + def item_type: -> Elem + + def nilable?: -> bool + + def initialize: ( + ::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + end + end +end diff --git a/sig/orb/type/base_model.rbs b/sig/orb/type/base_model.rbs new file mode 100644 index 00000000..b2166677 --- /dev/null +++ b/sig/orb/type/base_model.rbs @@ -0,0 +1,73 @@ +module Orb + module Type + class BaseModel + extend Orb::Type::Converter + + type known_field = + { mode: (:coerce | :dump)?, required: bool, nilable: bool } + + def self.known_fields: -> ::Hash[Symbol, (Orb::BaseModel::known_field + & { type_fn: (^-> Orb::Type::Converter::input) })] + + def self.fields: -> ::Hash[Symbol, (Orb::BaseModel::known_field + & { type: Orb::Type::Converter::input })] + + private def self.add_field: ( + Symbol name_sym, + required: bool, + type_info: { + const: (nil | bool | Integer | Float | Symbol)?, + enum: ^-> Orb::Type::Converter::input?, + union: ^-> Orb::Type::Converter::input?, + api_name: Symbol + } + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input, + spec: ::Hash[Symbol, top] + ) -> void + + def self.required: ( + Symbol name_sym, + ::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + + def self.optional: ( + Symbol name_sym, + ::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + + private def self.request_only: { -> void } -> void + + private def self.response_only: { -> void } -> void + + def self.==: (top other) -> bool + + def ==: (top other) -> bool + + def self.coerce: ( + Orb::BaseModel | ::Hash[top, top] | top value, + state: Orb::Type::Converter::state + ) -> (instance | top) + + def self.dump: (instance | top value) -> (::Hash[top, top] | top) + + def []: (Symbol key) -> top? + + def to_h: -> ::Hash[Symbol, top] + + alias to_hash to_h + + def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top] + + def initialize: (?::Hash[Symbol, top] | self data) -> void + + def inspect: -> String + end + end +end diff --git a/sig/orb/type/base_page.rbs b/sig/orb/type/base_page.rbs new file mode 100644 index 00000000..5103c859 --- /dev/null +++ b/sig/orb/type/base_page.rbs @@ -0,0 +1,22 @@ +module Orb + module Type + module BasePage[Elem] + def next_page?: -> bool + + def next_page: -> self + + def auto_paging_each: { (Elem arg0) -> void } -> void + + def to_enum: -> Enumerable[Elem] + + alias enum_for to_enum + + def initialize: ( + client: Orb::Transport::BaseClient, + req: Orb::Transport::BaseClient::request_components, + headers: ::Hash[String, String], + page_data: top + ) -> void + end + end +end diff --git a/sig/orb/type/boolean_model.rbs b/sig/orb/type/boolean_model.rbs new file mode 100644 index 00000000..0b93ad98 --- /dev/null +++ b/sig/orb/type/boolean_model.rbs @@ -0,0 +1,18 @@ +module Orb + module Type + class BooleanModel + extend Orb::Type::Converter + + def self.===: (top other) -> bool + + def self.==: (top other) -> bool + + def self.coerce: ( + bool | top value, + state: Orb::Type::Converter::state + ) -> (bool | top) + + def self.dump: (bool | top value) -> (bool | top) + end + end +end diff --git a/sig/orb/type/converter.rbs b/sig/orb/type/converter.rbs new file mode 100644 index 00000000..2a1edd35 --- /dev/null +++ b/sig/orb/type/converter.rbs @@ -0,0 +1,36 @@ +module Orb + module Type + module Converter + type input = Orb::Type::Converter | Class + + type state = + { + strictness: bool | :strong, + exactness: { yes: Integer, no: Integer, maybe: Integer }, + branched: Integer + } + + def coerce: (top value, state: Orb::Type::Converter::state) -> top + + def dump: (top value) -> top + + def self.type_info: ( + { + const: (nil | bool | Integer | Float | Symbol)?, + enum: ^-> Orb::Type::Converter::input?, + union: ^-> Orb::Type::Converter::input? + } + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input spec + ) -> (^-> top) + + def self.coerce: ( + Orb::Type::Converter::input target, + top value, + ?state: Orb::Type::Converter::state + ) -> top + + def self.dump: (Orb::Type::Converter::input target, top value) -> top + end + end +end diff --git a/sig/orb/type/enum.rbs b/sig/orb/type/enum.rbs new file mode 100644 index 00000000..d2039566 --- /dev/null +++ b/sig/orb/type/enum.rbs @@ -0,0 +1,22 @@ +module Orb + module Type + module Enum + include Orb::Type::Converter + + def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] + + private def self.finalize!: -> void + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: ( + String | Symbol | top value, + state: Orb::Type::Converter::state + ) -> (Symbol | top) + + def dump: (Symbol | top value) -> (Symbol | top) + end + end +end diff --git a/sig/orb/type/hash_of.rbs b/sig/orb/type/hash_of.rbs new file mode 100644 index 00000000..6e4d1d1a --- /dev/null +++ b/sig/orb/type/hash_of.rbs @@ -0,0 +1,36 @@ +module Orb + module Type + class HashOf[Elem] + include Orb::Type::Converter + + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: ( + ::Hash[top, top] | top value, + state: Orb::Type::Converter::state + ) -> (::Hash[Symbol, top] | top) + + def dump: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top) + + def item_type: -> Elem + + def nilable?: -> bool + + def initialize: ( + ::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + end + end +end diff --git a/sig/orb/type/request_parameters.rbs b/sig/orb/type/request_parameters.rbs new file mode 100644 index 00000000..28702233 --- /dev/null +++ b/sig/orb/type/request_parameters.rbs @@ -0,0 +1,13 @@ +module Orb + module Type + type request_parameters = { request_options: Orb::request_opts } + + module RequestParameters + attr_accessor request_options: Orb::request_opts + + module Converter + def dump_request: (top params) -> [top, ::Hash[Symbol, top]] + end + end + end +end diff --git a/sig/orb/type/union.rbs b/sig/orb/type/union.rbs new file mode 100644 index 00000000..c4bea786 --- /dev/null +++ b/sig/orb/type/union.rbs @@ -0,0 +1,37 @@ +module Orb + module Type + module Union + include Orb::Type::Converter + + private def self.known_variants: -> ::Array[[Symbol?, (^-> Orb::Type::Converter::input)]] + + def self.derefed_variants: -> ::Array[[Symbol?, top]] + + def self.variants: -> ::Array[top] + + private def self.discriminator: (Symbol property) -> void + + private def self.variant: ( + Symbol + | ::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input key, + ?::Hash[Symbol, top] + | ^-> Orb::Type::Converter::input + | Orb::Type::Converter::input spec + ) -> void + + private def self.resolve_variant: ( + top value + ) -> Orb::Type::Converter::input? + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: (top value, state: Orb::Type::Converter::state) -> top + + def dump: (top value) -> top + end + end +end diff --git a/sig/orb/type/unknown.rbs b/sig/orb/type/unknown.rbs new file mode 100644 index 00000000..f3da1d49 --- /dev/null +++ b/sig/orb/type/unknown.rbs @@ -0,0 +1,15 @@ +module Orb + module Type + class Unknown + extend Orb::Type::Converter + + def self.===: (top other) -> bool + + def self.==: (top other) -> bool + + def self.coerce: (top value, state: Orb::Type::Converter::state) -> top + + def self.dump: (top value) -> top + end + end +end diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index 856d6549..360fb558 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.28" + VERSION: "0.1.0-alpha.29" end diff --git a/test/orb/base_model_test.rb b/test/orb/base_model_test.rb index 334cf60d..3df949ba 100644 --- a/test/orb/base_model_test.rb +++ b/test/orb/base_model_test.rb @@ -2,380 +2,578 @@ require_relative "test_helper" -class Orb::Test::BaseModelTest < Minitest::Test - module E1 - extend Orb::Enum +class Orb::Test::PrimitiveModelTest < Minitest::Test + A = Orb::ArrayOf[-> { Integer }] + H = Orb::HashOf[-> { Integer }, nil?: true] - A = :a - B = :b + module E + extend Orb::Enum end - A1 = Orb::ArrayOf[-> { Integer }] - A2 = Orb::ArrayOf[enum: -> { E1 }] + module U + extend Orb::Union + end - def test_basic - assert(E1.is_a?(Orb::Converter)) - assert(A1.is_a?(Orb::Converter)) + class B < Orb::BaseModel + optional :a, Integer + optional :b, B end - def test_basic_coerce - assert_pattern do - Orb::Converter.coerce(A1, [1.0, 2.0, 3.0]) => [1, 2, 3] - end + def test_typing + converters = [ + Orb::Unknown, + Orb::BooleanModel, + A, + H, + E, + U, + B + ] - assert_pattern do - Orb::Converter.coerce(A2, %w[a b c]) => [:a, :b, "c"] + converters.each do |conv| + assert_pattern do + conv => Orb::Type::Converter + end end end - def test_basic_dump - assert_pattern do - Orb::Converter.dump(A1, [1.0, 2.0, 3.0]) => [1, 2, 3] - end + def test_coerce + cases = { + [Orb::Unknown, :a] => [{yes: 1}, :a], + [NilClass, :a] => [{maybe: 1}, nil], + [NilClass, nil] => [{yes: 1}, nil], + [Orb::BooleanModel, true] => [{yes: 1}, true], + [Orb::BooleanModel, "true"] => [{no: 1}, "true"], + [Integer, 1] => [{yes: 1}, 1], + [Integer, 1.0] => [{maybe: 1}, 1], + [Integer, "1"] => [{maybe: 1}, 1], + [Integer, "one"] => [{no: 1}, "one"], + [Float, 1] => [{yes: 1}, 1.0], + [Float, "1"] => [{maybe: 1}, 1.0], + [Float, :one] => [{no: 1}, :one], + [String, :str] => [{yes: 1}, "str"], + [String, "str"] => [{yes: 1}, "str"], + [String, 1] => [{maybe: 1}, "1"], + [:a, "a"] => [{yes: 1}, :a], + [Date, "1990-09-19"] => [{yes: 1}, Date.new(1990, 9, 19)], + [Date, Date.new(1990, 9, 19)] => [{yes: 1}, Date.new(1990, 9, 19)], + [Date, "one"] => [{no: 1}, "one"], + [Time, "1990-09-19"] => [{yes: 1}, Time.new(1990, 9, 19)], + [Time, Time.new(1990, 9, 19)] => [{yes: 1}, Time.new(1990, 9, 19)], + [Time, "one"] => [{no: 1}, "one"] + } - assert_pattern do - Orb::Converter.dump(A2, %w[a b c]) => %w[a b c] + cases.each do |lhs, rhs| + target, input = lhs + exactness, expect = rhs + state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + assert_pattern do + Orb::Type::Converter.coerce(target, input, state: state) => ^expect + state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness + end end end - def test_primitive_try_strict_coerce - d_now = Date.today - t_now = Time.now - + def test_dump cases = { - [NilClass, :a] => [true, nil, 0], - [NilClass, nil] => [true, nil, 1], - [Integer, 1.0] => [true, 1, 1], - [Float, 1] => [true, 1.0, 1], - [Date, d_now] => [true, d_now, 1], - [Time, t_now] => [true, t_now, 1] + [Orb::Unknown, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [A, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [H, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [E, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [U, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [B, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [String, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [:b, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [nil, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [Orb::BooleanModel, true] => true, + [Orb::BooleanModel, "true"] => "true", + [Integer, "1"] => "1", + [Float, 1] => 1, + [String, "one"] => "one", + [String, :one] => :one, + [:a, :b] => :b, + [:a, "a"] => "a" } - cases.each do |test, expect| - type, input = test + cases.each do + target, input = _1 + expect = _2 assert_pattern do - Orb::Converter.try_strict_coerce(type, input) => ^expect + Orb::Type::Converter.dump(target, input) => ^expect end end end - def test_basic_enum_try_strict_coerce + def test_coerce_errors cases = { - :a => [true, :a, 1], - "a" => [true, :a, 1], - :c => [false, true, 0], - 1 => [false, false, 0] + [Integer, "one"] => TypeError, + [Float, "one"] => TypeError, + [String, Time] => TypeError, + [:a, "one"] => ArgumentError, + [Date, "one"] => ArgumentError, + [Time, "one"] => ArgumentError } - cases.each do |input, expect| - assert_pattern do - Orb::Converter.try_strict_coerce(E1, input) => ^expect + cases.each do + target, input = _1 + state = {strictness: :strong, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + assert_raises(_2) do + Orb::Type::Converter.coerce(target, input, state: state) end end end +end + +class Orb::Test::EnumModelTest < Minitest::Test + module E1 + extend Orb::Enum + + TRUE = true + end + + module E2 + extend Orb::Enum + + ONE = 1 + TWO = 2 + end - def test_basic_array_try_strict_coerce + module E3 + extend Orb::Enum + + ONE = 1.0 + TWO = 2.0 + end + + module E4 + extend Orb::Enum + + ONE = :one + TWO = :two + end + + def test_coerce cases = { - [] => [true, [], 0], - nil => [false, false, 0], - [1, 2, 3] => [true, [1, 2, 3], 3], - [1.0, 2.0, 3.0] => [true, [1, 2, 3], 3], - [1, nil, 3] => [true, [1, nil, 3], 2], - [1, nil, nil] => [true, [1, nil, nil], 1], - [1, "two", 3] => [false, true, 2] + # rubocop:disable Style/BooleanSymbol + [E1, true] => [{yes: 1}, true], + [E1, false] => [{no: 1}, false], + [E1, :true] => [{no: 1}, :true], + # rubocop:enable Style/BooleanSymbol + + [E2, 1] => [{yes: 1}, 1], + [E2, 1.0] => [{yes: 1}, 1], + [E2, 1.2] => [{no: 1}, 1.2], + [E2, "1"] => [{no: 1}, "1"], + + [E3, 1.0] => [{yes: 1}, 1.0], + [E3, 1] => [{yes: 1}, 1.0], + [E3, "one"] => [{no: 1}, "one"], + + [E4, :one] => [{yes: 1}, :one], + [E4, "one"] => [{yes: 1}, :one], + [E4, "1"] => [{maybe: 1}, "1"], + [E4, :"1"] => [{maybe: 1}, :"1"], + [E4, 1] => [{no: 1}, 1] } - cases.each do |input, expect| + cases.each do |lhs, rhs| + target, input = lhs + exactness, expect = rhs + state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - Orb::Converter.try_strict_coerce(A1, input) => ^expect + Orb::Type::Converter.coerce(target, input, state: state) => ^expect + state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness end end end - def test_nested_array_try_strict_coerce + def test_dump cases = { - %w[a b] => [true, [:a, :b], 2], - %w[a b c] => [false, true, 2] + [E1, true] => true, + [E1, "true"] => "true", + + [E2, 1.0] => 1.0, + [E2, 3] => 3, + [E2, "1.0"] => "1.0", + + [E3, 1.0] => 1.0, + [E3, 3] => 3, + [E3, "1.0"] => "1.0", + + [E4, :one] => :one, + [E4, "one"] => "one", + [E4, "1.0"] => "1.0" } - cases.each do |input, expect| + cases.each do + target, input = _1 + expect = _2 assert_pattern do - Orb::Converter.try_strict_coerce(A2, input) => ^expect + Orb::Type::Converter.dump(target, input) => ^expect end end end +end - class M1 < Orb::BaseModel - required :a, Time - optional :b, E1, api_name: :renamed - required :c, A1 +class Orb::Test::CollectionModelTest < Minitest::Test + A1 = Orb::ArrayOf[-> { Integer }] + H1 = Orb::HashOf[Integer] - request_only do - required :w, Integer - optional :x, String - end + A2 = Orb::ArrayOf[H1] + H2 = Orb::HashOf[-> { A1 }] - response_only do - required :y, Integer - optional :z, String + A3 = Orb::ArrayOf[Integer, nil?: true] + H3 = Orb::HashOf[Integer, nil?: true] + + def test_coerce + cases = { + [A1, []] => [{yes: 1}, []], + [A1, {}] => [{no: 1}, {}], + [A1, [1, 2.0]] => [{yes: 2, maybe: 1}, [1, 2]], + [A1, ["1", 2.0]] => [{yes: 1, maybe: 2}, [1, 2]], + [H1, {}] => [{yes: 1}, {}], + [H1, []] => [{no: 1}, []], + [H1, {a: 1, b: 2}] => [{yes: 3}, {a: 1, b: 2}], + [H1, {"a" => 1, "b" => 2}] => [{yes: 3}, {a: 1, b: 2}], + [H1, {[] => 1}] => [{yes: 2, no: 1}, {[] => 1}], + [H1, {a: 1.5}] => [{yes: 1, maybe: 1}, {a: 1}], + + [A2, [{}, {"a" => 1}]] => [{yes: 4}, [{}, {a: 1}]], + [A2, [{"a" => "1"}]] => [{yes: 2, maybe: 1}, [{a: 1}]], + [H2, {a: [1, 2]}] => [{yes: 4}, {a: [1, 2]}], + [H2, {"a" => ["1", 2]}] => [{yes: 3, maybe: 1}, {a: [1, 2]}], + [H2, {"a" => ["one", 2]}] => [{yes: 3, no: 1}, {a: ["one", 2]}], + + [A3, [nil, 1]] => [{yes: 3}, [nil, 1]], + [A3, [nil, "1"]] => [{yes: 2, maybe: 1}, [nil, 1]], + [H3, {a: nil, b: "1"}] => [{yes: 2, maybe: 1}, {a: nil, b: 1}], + [H3, {a: nil}] => [{yes: 2}, {a: nil}] + } + + cases.each do |lhs, rhs| + target, input = lhs + exactness, expect = rhs + state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + assert_pattern do + Orb::Type::Converter.coerce(target, input, state: state) => ^expect + state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness + end end end +end - class M2 < M1 - required :c, M1 +class Orb::Test::BaseModelTest < Minitest::Test + class M1 < Orb::BaseModel + required :a, Integer end - def test_model_accessors - now = Time.now.round(0) - model = M2.new(a: now.to_s, b: "b", renamed: "a", c: [1.0, 2.0, 3.0], w: 1, y: 1) + class M2 < M1 + required :a, Time + required :b, Integer, nil?: true + optional :c, String + end - cases = [ - [model.a, now], - [model.b, :a], - [model.c, [1, 2, 3]], - [model.w, 1], - [model.y, 1] - ] + class M3 < Orb::BaseModel + optional :c, const: :c + required :d, const: :d + end - cases.each do |input, expect| - assert_pattern do - input => ^expect - end + class M4 < M1 + request_only do + required :a, Integer + optional :b, String end - end - def test_model_conversion_accessor - model = M2.new(c: {}) - assert_pattern do - model.c => M1 + response_only do + required :c, Integer + optional :d, String end end - def test_model_equality - now = Time.now - model1 = M2.new(a: now, b: "b", renamed: "a", c: M1.new, w: 1, y: 1) - model2 = M2.new(a: now, b: "b", renamed: "a", c: M1.new, w: 1, y: 1) + class M5 < Orb::BaseModel + request_only do + required :c, const: :c + end - assert_pattern do - model2 => ^model1 + response_only do + required :d, const: :d end end - def test_basic_model_coerce + class M6 < M1 + required :a, Orb::ArrayOf[M6] + end + + def test_coerce cases = { - {} => M2.new, - {a: nil, b: :a, c: [1.0, 2.0, 3.0], w: 1} => M2.new(a: nil, b: :a, c: [1.0, 2.0, 3.0], w: 1) + [M1, {}] => [{yes: 1, no: 1}, {}], + [M1, :m1] => [{no: 1}, :m1], + + [M2, {}] => [{yes: 2, no: 1, maybe: 1}, {}], + [M2, {a: "1990-09-19", b: nil}] => [{yes: 4}, {a: "1990-09-19", b: nil}], + [M2, {a: "1990-09-19", b: "1"}] => [{yes: 3, maybe: 1}, {a: "1990-09-19", b: "1"}], + [M2, {a: "1990-09-19"}] => [{yes: 3, maybe: 1}, {a: "1990-09-19"}], + [M2, {a: "1990-09-19", c: nil}] => [{yes: 2, maybe: 2}, {a: "1990-09-19", c: nil}], + + [M3, {c: "c", d: "d"}] => [{yes: 3}, {c: :c, d: :d}], + [M3, {c: "d", d: "c"}] => [{yes: 1, no: 2}, {c: "d", d: "c"}], + + [M4, {c: 2}] => [{yes: 5}, {c: 2}], + [M4, {a: "1", c: 2}] => [{yes: 4, maybe: 1}, {a: "1", c: 2}], + [M4, {b: nil, c: 2}] => [{yes: 4, maybe: 1}, {b: nil, c: 2}], + + [M5, {}] => [{yes: 3}, {}], + [M5, {c: "c"}] => [{yes: 3}, {c: :c}], + [M5, {d: "d"}] => [{yes: 3}, {d: :d}], + [M5, {d: nil}] => [{yes: 2, no: 1}, {d: nil}], + + [M6, {a: [{a: []}]}] => [{yes: 4}, -> { _1 in {a: [M6]} }] } - cases.each do |input, expect| + cases.each do |lhs, rhs| + target, input = lhs + exactness, expect = rhs + state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - Orb::Converter.coerce(M2, input) => ^expect + coerced = Orb::Type::Converter.coerce(target, input, state: state) + assert_equal(coerced, coerced) + if coerced.is_a?(Orb::BaseModel) + coerced.to_h => ^expect + else + coerced => ^expect + end + state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness end end end - def test_basic_model_dump + def test_dump cases = { - nil => nil, - {} => {}, - {w: 1, x: "x", y: 1, z: "z"} => {w: 1, x: "x"}, - [1, 2, 3] => [1, 2, 3] + [M3, M3.new] => {d: :d}, + [M3, {}] => {d: :d}, + [M3, {d: 1}] => {d: 1}, + + [M4, M4.new(a: 1, b: "b", c: 2, d: "d")] => {a: 1, b: "b"}, + [M4, {a: 1, b: "b", c: 2, d: "d"}] => {a: 1, b: "b"}, + + [M5, M5.new] => {c: :c}, + [M5, {}] => {c: :c}, + [M5, {c: 1}] => {c: 1} } - cases.each do |input, expect| + cases.each do + target, input = _1 + expect = _2 assert_pattern do - Orb::Converter.dump(M2, input) => ^expect + Orb::Type::Converter.dump(target, input) => ^expect end end end - def test_basic_model_try_strict_coerce - raw = {a: Time.now, c: [2], y: 1} - addn = {x: "x", n: "n"} - expect_exact = M1.new(raw) - expect_addn = M1.new(**raw, **addn) - + def test_accessors cases = { - {} => [false, true, 0], - raw => [true, expect_exact, 3], - {**raw, **addn} => [true, expect_addn, 4] + M2.new({a: "1990-09-19", b: "1"}) => {a: Time.new(1990, 9, 19), b: TypeError}, + M2.new(a: "one", b: "one") => {a: ArgumentError, b: TypeError}, + M2.new(a: nil, b: 2.0) => {a: TypeError, b: TypeError}, + + M3.new => {d: :d}, + M3.new(d: 1) => {d: ArgumentError}, + + M5.new => {c: :c, d: :d} } - cases.each do |input, expect| - assert_pattern do - Orb::Converter.try_strict_coerce(M1, input) => ^expect + cases.each do + target = _1 + _2.each do |accessor, expect| + case expect + in Class if expect <= StandardError + tap do + target.public_send(accessor) + flunk + rescue Orb::ConversionError => e + assert_kind_of(expect, e.cause) + end + else + assert_pattern { target.public_send(accessor) => ^expect } + end end end end +end - def test_nested_model_dump - now = Time.now - models = [M1, M2] - inputs = [ - M1.new(a: now, b: "a", c: [1.0, 2.0, 3.0], y: 1), - {a: now, b: "a", c: [1.0, 2.0, 3.0], y: 1}, - {"a" => now, b: "", "b" => "a", "c" => [], :c => [1.0, 2.0, 3.0], "y" => 1} - ] +class Orb::Test::UnionTest < Minitest::Test + module U0 + extend Orb::Union + end - models.product(inputs).each do |model, input| - assert_pattern do - Orb::Converter.dump(model, input) => {a: now, renamed: "a", c: [1, 2, 3]} - end - end + module U1 + extend Orb::Union + variant const: :a + variant const: 2 end - class M4 < M2 - required :c, M1 - required :d, Orb::ArrayOf[M4] - required :e, M2, api_name: :f + class M1 < Orb::BaseModel + required :t, const: :a, api_name: :type + optional :c, String end - def test_model_to_h - model = M4.new(a: "wow", c: {}, d: [{}, 2, {c: {}}], f: {}) - assert_pattern do - model.to_h => {a: "wow", c: M1, d: [M4, 2, M4 => child], f: M2} - assert_equal({c: M1.new}, child.to_h) - end + class M2 < Orb::BaseModel + required :type, const: :b + optional :c, String end - A3 = Orb::ArrayOf[A1] + module U2 + extend Orb::Union + discriminator :type - class M3 < M1 - optional :b, E1, api_name: :renamed_again + variant :a, M1 + variant :b, M2 end - module U1 + module U3 extend Orb::Union - discriminator :type + variant :a, M1 - variant :b, M3 + variant String end - module U2 + module U4 extend Orb::Union + discriminator :type - variant A1 - variant A3 + variant String + variant :a, M1 end - def test_basic_union - assert(U1.is_a?(Orb::Converter)) + class M3 < Orb::BaseModel + optional :recur, -> { U5 } + required :a, Integer + end - assert_pattern do - M1.new => U1 - M3.new => U1 - end + class M4 < Orb::BaseModel + optional :recur, -> { U5 } + required :a, Orb::ArrayOf[-> { U5 }] end - def test_basic_discriminated_union_coerce - common = {a: Time.now, c: [], w: 1} - cases = { - nil => nil, - {type: "a", **common} => M1.new(type: "a", **common), - {type: :b, **common} => M3.new(type: :b, **common), - {type: :c, xyz: 1} => {type: :c, xyz: 1} - } + class M5 < Orb::BaseModel + optional :recur, -> { U5 } + required :b, Orb::ArrayOf[-> { U5 }] + end - cases.each do |input, expect| - assert_pattern do - Orb::Converter.coerce(U1, input) => ^expect - end - end + module U5 + extend Orb::Union + + variant -> { M3 } + variant -> { M4 } end - def test_basic_discriminated_union_dump - now = Time.now - cases = { - nil => nil, - M1.new(a: now, b: :a, c: [1.0, 2.0, 3.0], y: 1) => {a: now, renamed: :a, c: [1, 2, 3]}, - M3.new(b: "a", y: 1) => {renamed_again: "a"}, - {type: :a, b: "a", y: 1} => {type: :a, renamed: "a"}, - {type: "b", b: "a", y: 1} => {type: "b", renamed_again: "a"}, - {type: :c, xyz: 1} => {type: :c, xyz: 1} - } + module U6 + extend Orb::Union - cases.each do |input, expect| - assert_pattern do - Orb::Converter.dump(U1, input) => ^expect - end + variant -> { M3 } + variant -> { M5 } + end + + def test_accessors + model = M3.new(recur: []) + tap do + model.recur + flunk + rescue Orb::ConversionError => e + assert_kind_of(ArgumentError, e.cause) end end - def test_basic_undifferentiated_union_try_strict_coerce + def test_coerce cases = { - [] => [true, [], 0], - [[]] => [true, [[]], 0], - # [nil] => [false, true, 0], - [1, 2, 3] => [true, [1, 2, 3], 3], - [[1, 2, 3], [4, 5, 6]] => [true, [[1, 2, 3], [4, 5, 6]], 6] + [U0, :""] => [{no: 1}, 0, :""], + + [U1, "a"] => [{yes: 1}, 1, :a], + [U1, "2"] => [{maybe: 1}, 2, 2], + [U1, :b] => [{no: 1}, 2, :b], + + [U2, {type: :a}] => [{yes: 3}, 0, {t: :a}], + [U2, {type: "b"}] => [{yes: 3}, 0, {type: :b}], + + [U3, "one"] => [{yes: 1}, 2, "one"], + [U4, "one"] => [{yes: 1}, 1, "one"], + + [U5, {a: []}] => [{yes: 3}, 2, {a: []}], + [U6, {b: []}] => [{yes: 3}, 2, {b: []}], + + [U5, {a: [{a: []}]}] => [{yes: 6}, 4, {a: [M4.new(a: [])]}], + [U5, {a: [{a: [{a: []}]}]}] => [{yes: 9}, 6, {a: [M4.new(a: [M4.new(a: [])])]}] } - cases.each do |input, expect| + cases.each do |lhs, rhs| + target, input = lhs + exactness, branched, expect = rhs + state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - Orb::Converter.try_strict_coerce(U2, input) => ^expect + coerced = Orb::Type::Converter.coerce(target, input, state: state) + assert_equal(coerced, coerced) + if coerced.is_a?(Orb::BaseModel) + coerced.to_h => ^expect + else + coerced => ^expect + end + state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness + state => {branched: ^branched} end end end +end - class C1 < Orb::BaseModel - required :a, const: :a - required :b, const: :b, nil?: true - optional :c, const: :c - end +class Orb::Test::BaseModelQoLTest < Minitest::Test + module E1 + extend Orb::Enum - def test_basic_const - assert_pattern do - C1.dump(C1.new) => {a: :a} - C1.new => {a: :a} - C1.new(a: "a") => {a: :a} - C1.new(b: 2) => {b: 2} - C1.new.a => :a - C1.new.b => nil - C1.new.c => nil - end + A = 1 end module E2 extend Orb::Enum - A = :a - B = :b + A = 1 end - module U3 - extend Orb::Union + module E3 + extend Orb::Enum - discriminator :type - variant :a, M1 - variant :b, M3 + A = 2 + B = 3 end - def test_basic_eql - assert_equal(Orb::Unknown, Orb::Unknown) - refute_equal(Orb::Unknown, Orb::BooleanModel) - assert_equal(Orb::BooleanModel, Orb::BooleanModel) - - assert_equal(E1, E2) - assert_equal(E1, E2) - - refute_equal(U1, U2) - assert_equal(U1, U3) + class M1 < Orb::BaseModel + required :a, Integer end - module U4 - extend Orb::Union + class M2 < Orb::BaseModel + required :a, Integer, nil?: true + end - variant :a, const: :a - variant :b, const: :b + class M3 < M2 + required :a, Integer end - def test_basic_const_union - assert_pattern do - U4.coerce(nil) => nil - U4.coerce("") => "" - U4.coerce(:a) => :a - U4.coerce("a") => :a + def test_equality + cases = { + [Orb::Unknown, Orb::Unknown] => true, + [Orb::BooleanModel, Orb::BooleanModel] => true, + [Orb::Unknown, Orb::BooleanModel] => false, + [E1, E2] => true, + [E1, E3] => false, + [M1, M2] => false, + [M1, M3] => true + } + + cases.each do + if _2 + assert_equal(*_1) + else + refute_equal(*_1) + end end end end