diff --git a/.release-please-manifest.json b/.release-please-manifest.json index aa848759..1c0bb885 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.22" + ".": "0.1.0-alpha.23" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 58bce287..f6e24a32 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index cf318bd9..1e895ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.1.0-alpha.23 (2025-03-10) + +Full Changelog: [v0.1.0-alpha.22...v0.1.0-alpha.23](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.22...v0.1.0-alpha.23) + +### Features + +* add SKIP_BREW env var to ./scripts/bootstrap ([#116](https://github.com/orbcorp/orb-ruby/issues/116)) ([13e5aee](https://github.com/orbcorp/orb-ruby/commit/13e5aeefd3b81ab28d68c5b20cfeea50f95615a7)) +* **api:** api update ([#119](https://github.com/orbcorp/orb-ruby/issues/119)) ([7e4a750](https://github.com/orbcorp/orb-ruby/commit/7e4a750bfa69726c4fd112f3dce9d4ee8adc1df8)) + + +### Chores + +* add `sorbet` section to README ([#117](https://github.com/orbcorp/orb-ruby/issues/117)) ([9b1ea1d](https://github.com/orbcorp/orb-ruby/commit/9b1ea1d610be3cf87332ec4bdab36f1c57f30db9)) +* add more examples to README.md ([#118](https://github.com/orbcorp/orb-ruby/issues/118)) ([0420f35](https://github.com/orbcorp/orb-ruby/commit/0420f3533b7548de13162ff194fe1cc78d9fa2de)) +* generate better supported rbi signatures ([#114](https://github.com/orbcorp/orb-ruby/issues/114)) ([0c64668](https://github.com/orbcorp/orb-ruby/commit/0c6466871d43ec9bfe380f050f2d7a2267373465)) +* **internal:** version bump ([#112](https://github.com/orbcorp/orb-ruby/issues/112)) ([90a1f37](https://github.com/orbcorp/orb-ruby/commit/90a1f37d3fbe4c92126e3a7d6de4aba91dbaf193)) +* modify sorbet initializers to better support auto-completion ([#115](https://github.com/orbcorp/orb-ruby/issues/115)) ([cbc6906](https://github.com/orbcorp/orb-ruby/commit/cbc69067aa90231c564ecc3f6cb6076aa1dfd343)) + ## 0.1.0-alpha.22 (2025-03-07) Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.21...v0.1.0-alpha.22) diff --git a/Gemfile.lock b/Gemfile.lock index 5250c664..bd33e511 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.22) + orb (0.1.0.pre.alpha.23) connection_pool GEM diff --git a/README.md b/README.md index 2f5c5740..916946bc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Orb Ruby API library -The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.0.0+ -application. +The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.0.0+ application. ## Documentation @@ -11,8 +10,7 @@ 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 during the beta, install directly from GitHub with Bundler by adding the following to your application's `Gemfile`: ```ruby gem "orb", git: "https://github.com/orbcorp/orb-ruby", branch: "main" @@ -24,8 +22,7 @@ To fetch an initial copy of the gem: bundle install ``` -To update the version used by your application when updates are pushed to -GitHub: +To update the version used by your application when updates are pushed to GitHub: ```sh bundle update orb @@ -46,11 +43,28 @@ customer = orb.customers.create(email: "example-customer@withorb.com", name: "My puts(customer.id) ``` +## Pagination + +List methods in the Orb API are paginated. + +This library provides auto-paginating iterators with each list response, so you do not have to request successive pages manually: + +```ruby +page = orb.coupons.list + +# Fetch single item from page. +coupon = page.data[0] +puts(coupon.id) + +# Automatically fetches more pages as needed. +page.auto_paging_each do |coupon| + puts(coupon.id) +end +``` + ### Errors -When the library is unable to connect to the API, or if the API returns a -non-success status code (i.e., 4xx or 5xx response), a subclass of -`Orb::Error` will be thrown: +When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `Orb::Error` will be thrown: ```ruby begin @@ -78,10 +92,9 @@ Error codes are as followed: ### Retries -Certain errors will be automatically retried 2 times by default, with a short -exponential backoff. Connection errors (for example, due to a network -connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, -and timeouts will all be retried by default. +Certain errors will be automatically retried 2 times by default, with a short exponential backoff. + +Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, and timeouts will all be retried by default. You can use the `max_retries` option to configure or disable this: @@ -102,8 +115,8 @@ orb.customers.create( ### Timeouts By default, requests will time out after 60 seconds. -Timeouts are applied separately to the initial connection and the overall request time, -so in some cases a request could wait 2\*timeout seconds before it fails. + +Timeouts are applied separately to the initial connection and the overall request time, so in some cases a request could wait 2\*timeout seconds before it fails. You can use the `timeout` option to configure or disable this: @@ -121,12 +134,26 @@ orb.customers.create( ) ``` +## Sorbet Support + +This library is written with [Sorbet type definitions](https://sorbet.org/docs/rbi). However, there is no runtime dependency on the `sorbet-runtime`. + +What this means is that while you can use Sorbet to type check your code statically, and benefit from the [Sorbet Language Server](https://sorbet.org/docs/lsp) in your editor, there is no runtime type checking and execution overhead from Sorbet itself. + +Due to limitations with the Sorbet type system, where a method otherwise can take an instance of `Orb::BaseModel` class, you will need to use the `**` splat operator to pass the arguments: + +```ruby +model = CustomerCreateParams.new(email: "example-customer@withorb.com", name: "My Customer") + +orb.customers.create(**model) +``` + ## Versioning -This package follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions. As the -library is in initial development and has a major version of `0`, APIs may change -at any time. +This package follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions. As the library is in initial development and has a major version of `0`, APIs may change at any time. + +This package considers improvements to the (non-runtime) `*.rbi` and `*.rbs` type definitions to be non-breaking changes. ## Requirements -Ruby 3.0 or higher. +Ruby 3.0.0 or higher. diff --git a/lib/orb/base_model.rb b/lib/orb/base_model.rb index b77102f9..44b51285 100644 --- a/lib/orb/base_model.rb +++ b/lib/orb/base_model.rb @@ -192,33 +192,35 @@ def self.===(other) = true # def self.==(other) = other.is_a?(Class) && other <= Orb::Unknown - # @!parse - # # @private - # # - # # @param value [Object] - # # - # # @return [Object] - # # - # def self.coerce(value) = super - - # @!parse - # # @private - # # - # # @param value [Object] - # # - # # @return [Object] - # # - # def self.dump(value) = super + class << self + # @!parse + # # @private + # # + # # @param value [Object] + # # + # # @return [Object] + # # + # def coerce(value) = super + + # @!parse + # # @private + # # + # # @param value [Object] + # # + # # @return [Object] + # # + # def dump(value) = super - # @private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - # - def self.try_strict_coerce(value) - # prevent unknown variant from being chosen during the first coercion pass - [false, true, 0] + # @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 @@ -246,36 +248,38 @@ def self.===(other) = other == true || other == false # def self.==(other) = other.is_a?(Class) && other <= Orb::BooleanModel - # @!parse - # # @private - # # - # # @param value [Boolean, Object] - # # - # # @return [Boolean, Object] - # # - # def self.coerce(value) = super - - # @!parse - # # @private - # # - # # @param value [Boolean, Object] - # # - # # @return [Boolean, Object] - # # - # def self.dump(value) = super + class << self + # @!parse + # # @private + # # + # # @param value [Boolean, Object] + # # + # # @return [Boolean, Object] + # # + # def coerce(value) = super + + # @!parse + # # @private + # # + # # @param value [Boolean, Object] + # # + # # @return [Boolean, Object] + # # + # def dump(value) = super - # @private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - # - def self.try_strict_coerce(value) - case value - in true | false - [true, value, 1] - else - [false, false, 0] + # @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 @@ -322,17 +326,19 @@ def self.try_strict_coerce(value) class Enum extend Orb::Converter - # All of the valid Symbol values for this enum. - # - # @return [Array] - # - def self.values = (@values ||= constants.map { const_get(_1) }) + class << self + # All of the valid Symbol values for this enum. + # + # @return [Array] + # + def values = (@values ||= constants.map { const_get(_1) }) - # @private - # - # Guard against thread safety issues by instantiating `@values`. - # - private_class_method def self.finalize! = values + # @private + # + # Guard against thread safety issues by instantiating `@values`. + # + private def finalize! = values + end private_class_method :new @@ -350,41 +356,43 @@ def self.==(other) other.is_a?(Class) && other <= Orb::Enum && other.values.to_set == values.to_set end - # @private - # - # @param value [String, Symbol, Object] - # - # @return [Symbol, Object] - # - def self.coerce(value) = (value.is_a?(String) ? value.to_sym : value) + class << self + # @private + # + # @param value [String, Symbol, Object] + # + # @return [Symbol, Object] + # + def coerce(value) = (value.is_a?(String) ? value.to_sym : value) - # @!parse - # # @private - # # - # # @param value [Symbol, Object] - # # - # # @return [Symbol, Object] - # # - # def self.dump(value) = super + # @!parse + # # @private + # # + # # @param value [Symbol, Object] + # # + # # @return [Symbol, Object] + # # + # def dump(value) = super - # @private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - # - def self.try_strict_coerce(value) - return [true, value, 1] if values.include?(value) + # @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 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] + case value + in String if values.include?(val = value.to_sym) + [true, val, 1] else - [false, false, 0] + 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 @@ -447,15 +455,15 @@ def self.try_strict_coerce(value) class Union extend Orb::Converter - # @private - # - # All of the specified variant info for this union. - # - # @return [Array] - # - private_class_method def self.known_variants = (@known_variants ||= []) - class << self + # @private + # + # All of the specified variant info for this union. + # + # @return [Array] + # + private def known_variants = (@known_variants ||= []) + # @private # # All of the specified variants for this union. @@ -465,68 +473,68 @@ class << self protected def variants @known_variants.map { |key, variant_fn| [key, variant_fn.call] } end - end - # @private - # - # @param property [Symbol] - # - private_class_method def self.discriminator(property) - case property - in Symbol - @discriminator = property - end - end - - # @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_class_method def self.variant(key, spec = nil) - variant_info = - case key + # @private + # + # @param property [Symbol] + # + private def discriminator(property) + case property in Symbol - [key, Orb::Converter.type_info(spec)] - in Proc | Orb::Converter | Class | Hash - [nil, Orb::Converter.type_info(key)] + @discriminator = property end + end - known_variants << variant_info - end - - # @private - # - # @param value [Object] - # - # @return [Orb::Converter, Class, nil] - # - private_class_method def self.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) + # @private + # + # @param key [Symbol, Hash{Symbol=>Object}, Proc, Orb::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + # + private def variant(key, spec = nil) + variant_info = + case key + in Symbol + [key, Orb::Converter.type_info(spec)] + in Proc | Orb::Converter | Class | Hash + [nil, Orb::Converter.type_info(key)] end - key = key.to_sym if key.is_a?(String) - _, resolved = known_variants.find { |k,| k == key } - resolved.nil? ? Orb::Unknown : resolved.call - else - nil + known_variants << variant_info + end + + # @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 end @@ -553,87 +561,89 @@ def self.==(other) other.is_a?(Class) && other <= Orb::Union && other.variants == variants end - # @private - # - # @param value [Object] - # - # @return [Object] - # - def self.coerce(value) - if (variant = resolve_variant(value)) - return Orb::Converter.coerce(variant, value) - end + class << self + # @private + # + # @param value [Object] + # + # @return [Object] + # + def coerce(value) + if (variant = resolve_variant(value)) + return Orb::Converter.coerce(variant, value) + end - matches = [] + matches = [] - known_variants.each do |_, variant_fn| - variant = variant_fn.call + known_variants.each do |_, variant_fn| + variant = variant_fn.call - case Orb::Converter.try_strict_coerce(variant, value) - in [true, coerced, _] - return coerced - in [false, true, score] - matches << [score, variant] - in [false, false, _] - nil + 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 - end - - _, variant = matches.sort! { _2.first <=> _1.first }.find { |score,| !score.zero? } - variant.nil? ? value : Orb::Converter.coerce(variant, value) - end - # @private - # - # @param value [Object] - # - # @return [Object] - # - def self.dump(value) - if (variant = resolve_variant(value)) - return Orb::Converter.dump(variant, value) + _, variant = matches.sort! { _2.first <=> _1.first }.find { |score,| !score.zero? } + variant.nil? ? value : Orb::Converter.coerce(variant, value) end - known_variants.each do |_, variant_fn| - variant = variant_fn.call - if variant === value + # @private + # + # @param value [Object] + # + # @return [Object] + # + def dump(value) + if (variant = resolve_variant(value)) return Orb::Converter.dump(variant, value) end - end - value - end - # @private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - # - def self.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) + known_variants.each do |_, variant_fn| + variant = variant_fn.call + if variant === value + return Orb::Converter.dump(variant, value) + end + end + value end - coercible = false - max_score = 0 + # @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 - known_variants.each do |_, variant_fn| - variant = variant_fn.call + coercible = false + max_score = 0 - 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 + 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 - end - [false, coercible, max_score] + [false, coercible, max_score] + end end # rubocop:enable Style/CaseEquality @@ -926,20 +936,18 @@ def initialize(type_info, spec = {}) class BaseModel extend Orb::Converter - # @private - # - # Assumes superclass fields are totally defined before fields are accessed / - # defined on subclasses. - # - # @return [Hash{Symbol=>Hash{Symbol=>Object}}] - # - def self.known_fields - @known_fields ||= (self < Orb::BaseModel ? superclass.known_fields.dup : {}) - end - class << self # @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 + # @return [Hash{Symbol=>Hash{Symbol=>Object}}] # def fields @@ -947,135 +955,135 @@ def fields {**field.except(:type_fn), type: field.fetch(:type_fn).call} end end - end - # @private - # - # @return [Hash{Symbol=>Proc}] - # - def self.defaults = (@defaults ||= {}) + # @private + # + # @return [Hash{Symbol=>Proc}] + # + def defaults = (@defaults ||= {}) - # @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_class_method def self.add_field(name_sym, required:, type_info:, spec:) - type_fn, info = - case type_info - in Proc | Class | Orb::Converter - [Orb::Converter.type_info({**spec, union: type_info}), spec] - in Hash - [Orb::Converter.type_info(type_info), type_info] - end + # @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 | Class | 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) + fallback = info[:const] + defaults[name_sym] = fallback if required && !info[:nil?] && info.key?(:const) - key = info.fetch(:api_name, name_sym) - setter = "#{name_sym}=" + key = info.fetch(:api_name, name_sym) + setter = "#{name_sym}=" - if known_fields.key?(name_sym) - [name_sym, setter].each { undef_method(_1) } - end + 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} + 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(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}]." - ) + 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 - end - # @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 self.required(name_sym, type_info, spec = {}) - add_field(name_sym, required: true, type_info: type_info, spec: spec) - end + # @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 - # @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 self.optional(name_sym, type_info, spec = {}) - add_field(name_sym, required: false, type_info: type_info, spec: spec) - end + # @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 - # @private - # - # `request_only` attributes not excluded from `.#coerce` when receiving responses - # even if well behaved servers should not send them - # - # @param blk [Proc] - # - private_class_method def self.request_only(&blk) - @mode = :dump - blk.call - ensure - @mode = nil - end + # @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 - # @private - # - # `response_only` attributes are omitted from `.#dump` when making requests - # - # @param blk [Proc] - # - private_class_method def self.response_only(&blk) - @mode = :coerce - blk.call - ensure - @mode = nil + # @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] @@ -1091,108 +1099,110 @@ def ==(other) end end - # @private - # - # @param value [Orb::BaseModel, Hash{Object=>Object}, Object] - # - # @return [Orb::BaseModel, Object] - # - def self.coerce(value) - case Orb::Util.coerce_hash(value) - in Hash => coerced - new(coerced) - else - value + class << self + # @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 - end - # @private - # - # @param value [Orb::BaseModel, Object] - # - # @return [Hash{Object=>Object}, Object] - # - def self.dump(value) - unless (coerced = Orb::Util.coerce_hash(value)).is_a?(Hash) - return value - end + # @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 + values = coerced.filter_map do |key, val| + name = key.to_sym + case (field = known_fields[name]) + in nil + [name, val] else - target = type_fn.call - [api_name, Orb::Converter.dump(target, val)] + 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 - end.to_h + end.to_h - defaults.each do |key, val| - next if values.key?(key) + defaults.each do |key, val| + next if values.key?(key) - values[key] = val - end - - values - end + values[key] = val + end - # @private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - # - def self.try_strict_coerce(value) - case value - in Hash | Orb::BaseModel - value = value.to_h - else - return [false, false, 0] + values end - keys = value.keys.to_set - great_success = true - tally = 0 - acc = {} + # @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) + 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] + 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 - tally += score - acc[api_name] = item - in [false, false, _] - great_success &&= item.nil? + in [false, false] + nil end - in [true, false] - great_success = false - in [false, false] - nil end - end - keys.each do |key| - acc[key] = value.fetch(key) - end + keys.each do |key| + acc[key] = value.fetch(key) + end - great_success ? [true, new(acc), tally] : [false, true, tally] + 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 diff --git a/lib/orb/models/alert.rb b/lib/orb/models/alert.rb index 7ecabe35..1d7b8de2 100644 --- a/lib/orb/models/alert.rb +++ b/lib/orb/models/alert.rb @@ -208,11 +208,6 @@ class Type < Orb::Enum COST_EXCEEDED = :cost_exceeded finalize! - - # @!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 bf49b3ca..f2d5b41c 100644 --- a/lib/orb/models/alert_create_for_customer_params.rb +++ b/lib/orb/models/alert_create_for_customer_params.rb @@ -46,11 +46,6 @@ class Type < Orb::Enum CREDIT_BALANCE_RECOVERED = :credit_balance_recovered finalize! - - # @!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 a629a0cf..c0177c24 100644 --- a/lib/orb/models/alert_create_for_external_customer_params.rb +++ b/lib/orb/models/alert_create_for_external_customer_params.rb @@ -46,11 +46,6 @@ class Type < Orb::Enum CREDIT_BALANCE_RECOVERED = :credit_balance_recovered finalize! - - # @!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 1896844b..e69a7169 100644 --- a/lib/orb/models/alert_create_for_subscription_params.rb +++ b/lib/orb/models/alert_create_for_subscription_params.rb @@ -63,11 +63,6 @@ class Type < Orb::Enum COST_EXCEEDED = :cost_exceeded finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/amount_discount.rb b/lib/orb/models/amount_discount.rb index e546bcc9..7c7a2edb 100644 --- a/lib/orb/models/amount_discount.rb +++ b/lib/orb/models/amount_discount.rb @@ -42,11 +42,6 @@ class DiscountType < Orb::Enum AMOUNT = :amount finalize! - - # @!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 298e4f3d..1bb2b802 100644 --- a/lib/orb/models/billable_metric.rb +++ b/lib/orb/models/billable_metric.rb @@ -64,11 +64,6 @@ class Status < Orb::Enum ARCHIVED = :archived finalize! - - # @!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 2018baf2..f6cad000 100644 --- a/lib/orb/models/billing_cycle_relative_date.rb +++ b/lib/orb/models/billing_cycle_relative_date.rb @@ -9,11 +9,6 @@ class BillingCycleRelativeDate < Orb::Enum END_OF_TERM = :end_of_term finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/credit_note.rb b/lib/orb/models/credit_note.rb index faed1482..5feacb10 100644 --- a/lib/orb/models/credit_note.rb +++ b/lib/orb/models/credit_note.rb @@ -328,11 +328,6 @@ class DiscountType < Orb::Enum AMOUNT = :amount finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -384,11 +379,6 @@ class DiscountType < Orb::Enum PERCENTAGE = :percentage finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class AppliesToPrice < Orb::BaseModel @@ -421,11 +411,6 @@ class Reason < Orb::Enum PRODUCT_UNSATISFACTORY = :"Product unsatisfactory" finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -435,11 +420,6 @@ class Type < Orb::Enum ADJUSTMENT = :adjustment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class Discount < Orb::BaseModel @@ -487,11 +467,6 @@ class DiscountType < Orb::Enum PERCENTAGE = :percentage finalize! - - # @!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 ebdf114f..841d52e6 100644 --- a/lib/orb/models/credit_note_create_params.rb +++ b/lib/orb/models/credit_note_create_params.rb @@ -66,11 +66,6 @@ class Reason < Orb::Enum PRODUCT_UNSATISFACTORY = :product_unsatisfactory finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index 296b42e3..45a57c73 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -433,11 +433,6 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class ShippingAddress < Orb::BaseModel @@ -698,11 +693,6 @@ class Country < Orb::Enum ZA = :ZA finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -781,11 +771,6 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -836,11 +821,6 @@ class ProviderType < Orb::Enum NETSUITE = :netsuite finalize! - - # @!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 38ef2496..0f808cf4 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -409,11 +409,6 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class ReportingConfiguration < Orb::BaseModel @@ -744,11 +739,6 @@ class Country < Orb::Enum ZA = :ZA finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -827,11 +817,6 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customer_update_by_external_id_params.rb b/lib/orb/models/customer_update_by_external_id_params.rb index 067b2432..978bbff3 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -412,11 +412,6 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class ReportingConfiguration < Orb::BaseModel @@ -749,11 +744,6 @@ class Country < Orb::Enum ZA = :ZA finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -832,11 +822,6 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! - - # @!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 571aa629..e55e013f 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -404,11 +404,6 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class ReportingConfiguration < Orb::BaseModel @@ -739,11 +734,6 @@ class Country < Orb::Enum ZA = :ZA finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -822,11 +812,6 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! - - # @!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 d9cb1d44..d8a54ca5 100644 --- a/lib/orb/models/customers/balance_transaction_create_params.rb +++ b/lib/orb/models/customers/balance_transaction_create_params.rb @@ -41,11 +41,6 @@ class Type < Orb::Enum DECREMENT = :decrement finalize! - - # @!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 8883b7be..7367c232 100644 --- a/lib/orb/models/customers/balance_transaction_create_response.rb +++ b/lib/orb/models/customers/balance_transaction_create_response.rb @@ -108,11 +108,6 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditNote < Orb::BaseModel @@ -152,11 +147,6 @@ class Type < Orb::Enum DECREMENT = :decrement finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/balance_transaction_list_response.rb b/lib/orb/models/customers/balance_transaction_list_response.rb index 08713ce2..2f370b61 100644 --- a/lib/orb/models/customers/balance_transaction_list_response.rb +++ b/lib/orb/models/customers/balance_transaction_list_response.rb @@ -108,11 +108,6 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditNote < Orb::BaseModel @@ -152,11 +147,6 @@ class Type < Orb::Enum DECREMENT = :decrement finalize! - - # @!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 7efc58fe..9b7b54e0 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 @@ -57,11 +57,6 @@ class ViewMode < Orb::Enum CUMULATIVE = :cumulative finalize! - - # @!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 4f6dec82..28022675 100644 --- a/lib/orb/models/customers/cost_list_params.rb +++ b/lib/orb/models/customers/cost_list_params.rb @@ -57,11 +57,6 @@ class ViewMode < Orb::Enum CUMULATIVE = :cumulative finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credit_list_by_external_id_response.rb b/lib/orb/models/customers/credit_list_by_external_id_response.rb index faba02ad..cb254e95 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 @@ -59,11 +59,6 @@ class Status < Orb::Enum PENDING_PAYMENT = :pending_payment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credit_list_response.rb b/lib/orb/models/customers/credit_list_response.rb index 09972515..a81346f3 100644 --- a/lib/orb/models/customers/credit_list_response.rb +++ b/lib/orb/models/customers/credit_list_response.rb @@ -59,11 +59,6 @@ class Status < Orb::Enum PENDING_PAYMENT = :pending_payment finalize! - - # @!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 3d8c0510..1b6ebed5 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 @@ -140,11 +140,6 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class InvoiceSettings < Orb::BaseModel @@ -203,11 +198,6 @@ class VoidReason < Orb::Enum REFUND = :refund finalize! - - # @!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 91a90642..3c54e962 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 @@ -194,11 +194,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -385,11 +380,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -562,11 +552,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -732,11 +717,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -916,11 +896,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1107,11 +1082,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1277,11 +1247,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/ledger_create_entry_params.rb b/lib/orb/models/customers/credits/ledger_create_entry_params.rb index ff276274..ec23f06e 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -139,11 +139,6 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class InvoiceSettings < Orb::BaseModel @@ -202,11 +197,6 @@ class VoidReason < Orb::Enum REFUND = :refund finalize! - - # @!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 551f777b..e4907bcc 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_response.rb @@ -193,11 +193,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -384,11 +379,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -561,11 +551,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -731,11 +716,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -915,11 +895,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1106,11 +1081,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1276,11 +1246,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb b/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb index 8a233f02..9d99d748 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 @@ -110,11 +110,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -129,11 +124,6 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! - - # @!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 3c4623a2..81598950 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 @@ -193,11 +193,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -384,11 +379,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -561,11 +551,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -731,11 +716,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -915,11 +895,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1106,11 +1081,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1276,11 +1246,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/ledger_list_params.rb b/lib/orb/models/customers/credits/ledger_list_params.rb index 662d11f9..f90ceef1 100644 --- a/lib/orb/models/customers/credits/ledger_list_params.rb +++ b/lib/orb/models/customers/credits/ledger_list_params.rb @@ -110,11 +110,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -129,11 +124,6 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! - - # @!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 59a1f0b9..3ea7da8e 100644 --- a/lib/orb/models/customers/credits/ledger_list_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_response.rb @@ -190,11 +190,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -381,11 +376,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -558,11 +548,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -728,11 +713,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -911,11 +891,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1102,11 +1077,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1272,11 +1242,6 @@ class EntryStatus < Orb::Enum PENDING = :pending finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb b/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb index 9a0b6d7f..e5357492 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 @@ -146,11 +146,6 @@ class ExpiresAfterUnit < Orb::Enum MONTH = :month finalize! - - # @!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 f6376931..7e1f4b22 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 @@ -138,11 +138,6 @@ class ExpiresAfterUnit < Orb::Enum MONTH = :month finalize! - - # @!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 1cf05de5..992f1cdb 100644 --- a/lib/orb/models/customers/credits/top_up_create_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_params.rb @@ -145,11 +145,6 @@ class ExpiresAfterUnit < Orb::Enum MONTH = :month finalize! - - # @!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 0f7c549a..7f37f6c7 100644 --- a/lib/orb/models/customers/credits/top_up_create_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_response.rb @@ -137,11 +137,6 @@ class ExpiresAfterUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb b/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb index 82dc0497..8cad200e 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 @@ -138,11 +138,6 @@ class ExpiresAfterUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/customers/credits/top_up_list_response.rb b/lib/orb/models/customers/credits/top_up_list_response.rb index ba81e417..1935b45c 100644 --- a/lib/orb/models/customers/credits/top_up_list_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_response.rb @@ -137,11 +137,6 @@ class ExpiresAfterUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_close_response.rb b/lib/orb/models/events/backfill_close_response.rb index f256c563..3b7b5ad0 100644 --- a/lib/orb/models/events/backfill_close_response.rb +++ b/lib/orb/models/events/backfill_close_response.rb @@ -117,11 +117,6 @@ class Status < Orb::Enum REVERTED = :reverted finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_create_response.rb b/lib/orb/models/events/backfill_create_response.rb index e4758540..0f78ae9e 100644 --- a/lib/orb/models/events/backfill_create_response.rb +++ b/lib/orb/models/events/backfill_create_response.rb @@ -117,11 +117,6 @@ class Status < Orb::Enum REVERTED = :reverted finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_fetch_response.rb b/lib/orb/models/events/backfill_fetch_response.rb index d663d54b..75bd4d10 100644 --- a/lib/orb/models/events/backfill_fetch_response.rb +++ b/lib/orb/models/events/backfill_fetch_response.rb @@ -117,11 +117,6 @@ class Status < Orb::Enum REVERTED = :reverted finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_list_response.rb b/lib/orb/models/events/backfill_list_response.rb index 97ef1536..d34821a5 100644 --- a/lib/orb/models/events/backfill_list_response.rb +++ b/lib/orb/models/events/backfill_list_response.rb @@ -117,11 +117,6 @@ class Status < Orb::Enum REVERTED = :reverted finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/events/backfill_revert_response.rb b/lib/orb/models/events/backfill_revert_response.rb index d82e854e..93fc26a7 100644 --- a/lib/orb/models/events/backfill_revert_response.rb +++ b/lib/orb/models/events/backfill_revert_response.rb @@ -117,11 +117,6 @@ class Status < Orb::Enum REVERTED = :reverted finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 99782c3b..3535ab8a 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -724,11 +724,6 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditNote < Orb::BaseModel @@ -768,11 +763,6 @@ class Type < Orb::Enum DECREMENT = :decrement finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -990,11 +980,6 @@ class Country < Orb::Enum ZA = :ZA finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -1073,11 +1058,6 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1089,11 +1069,6 @@ class InvoiceSource < Orb::Enum ONE_OFF = :one_off finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class LineItem < Orb::BaseModel @@ -2104,11 +2079,6 @@ class PaymentProvider < Orb::Enum STRIPE = :stripe finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2166,11 +2136,6 @@ class Status < Orb::Enum DRAFT = :draft finalize! - - # @!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 470a49b0..e4de3bb5 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -171,11 +171,6 @@ class ModelType < Orb::Enum UNIT = :unit finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 688af274..de1ba906 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -723,11 +723,6 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditNote < Orb::BaseModel @@ -767,11 +762,6 @@ class Type < Orb::Enum DECREMENT = :decrement finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -989,11 +979,6 @@ class Country < Orb::Enum ZA = :ZA finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -1072,11 +1057,6 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1088,11 +1068,6 @@ class InvoiceSource < Orb::Enum ONE_OFF = :one_off finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class LineItem < Orb::BaseModel @@ -2112,11 +2087,6 @@ class PaymentProvider < Orb::Enum STRIPE = :stripe finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2174,11 +2144,6 @@ class Status < Orb::Enum DRAFT = :draft finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class Subscription < Orb::BaseModel diff --git a/lib/orb/models/invoice_list_params.rb b/lib/orb/models/invoice_list_params.rb index 7bc7672d..b62f9d3f 100644 --- a/lib/orb/models/invoice_list_params.rb +++ b/lib/orb/models/invoice_list_params.rb @@ -170,11 +170,6 @@ class DateType < Orb::Enum INVOICE_DATE = :invoice_date finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -187,11 +182,6 @@ class Status < Orb::Enum VOID = :void finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/item.rb b/lib/orb/models/item.rb index 0eb0f0fd..1634d12d 100644 --- a/lib/orb/models/item.rb +++ b/lib/orb/models/item.rb @@ -69,11 +69,6 @@ class ExternalConnectionName < Orb::Enum ANROK = :anrok finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/item_update_params.rb b/lib/orb/models/item_update_params.rb index 77fc0ee1..e23fc23d 100644 --- a/lib/orb/models/item_update_params.rb +++ b/lib/orb/models/item_update_params.rb @@ -60,11 +60,6 @@ class ExternalConnectionName < Orb::Enum ANROK = :anrok finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/percentage_discount.rb b/lib/orb/models/percentage_discount.rb index dcc76d0e..7e0d0509 100644 --- a/lib/orb/models/percentage_discount.rb +++ b/lib/orb/models/percentage_discount.rb @@ -43,11 +43,6 @@ class DiscountType < Orb::Enum PERCENTAGE = :percentage finalize! - - # @!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 0221ccc7..6770c51e 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -750,11 +750,6 @@ class DurationUnit < Orb::Enum ANNUAL = :annual finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class Maximum < Orb::BaseModel @@ -838,11 +833,6 @@ class Status < Orb::Enum DRAFT = :draft finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TrialConfig < Orb::BaseModel @@ -870,11 +860,6 @@ class TrialPeriodUnit < Orb::Enum DAYS = :days finalize! - - # @!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 4c5224e4..f273efc0 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -310,11 +310,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -365,11 +360,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -406,11 +396,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -568,11 +553,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class PackageConfig < Orb::BaseModel @@ -631,11 +611,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -672,11 +647,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -834,11 +804,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -928,11 +893,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -969,11 +929,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1131,11 +1086,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1216,11 +1166,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1257,11 +1202,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1420,11 +1360,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -1513,11 +1448,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1554,11 +1484,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1738,11 +1663,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -1778,11 +1698,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1819,11 +1734,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2027,11 +1937,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2067,11 +1972,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2108,11 +2008,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2308,11 +2203,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2348,11 +2238,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2389,11 +2274,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2552,11 +2432,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2592,11 +2467,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2633,11 +2503,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2795,11 +2660,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2835,11 +2695,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2876,11 +2731,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3039,11 +2889,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3079,11 +2924,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3120,11 +2960,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3282,11 +3117,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3322,11 +3152,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3363,11 +3188,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3526,11 +3346,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3566,11 +3381,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3607,11 +3417,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3770,11 +3575,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3810,11 +3610,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3851,11 +3646,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4014,11 +3804,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4054,11 +3839,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4095,11 +3875,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4258,11 +4033,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4298,11 +4068,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4339,11 +4104,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4502,11 +4262,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4542,11 +4297,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4583,11 +4333,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4746,11 +4491,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4786,11 +4526,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4827,11 +4562,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4990,11 +4720,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5030,11 +4755,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5071,11 +4791,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5234,11 +4949,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5274,11 +4984,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5315,11 +5020,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5478,11 +5178,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5518,11 +5213,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5559,11 +5249,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5722,11 +5407,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5762,11 +5442,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5803,11 +5478,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5966,11 +5636,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6006,11 +5671,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6047,11 +5707,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6210,11 +5865,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6250,11 +5900,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6291,11 +5936,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6454,11 +6094,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6494,11 +6129,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6535,11 +6165,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6554,11 +6179,6 @@ class Status < Orb::Enum DRAFT = :draft finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/plan_list_params.rb b/lib/orb/models/plan_list_params.rb index 2fc28efe..f6894ef9 100644 --- a/lib/orb/models/plan_list_params.rb +++ b/lib/orb/models/plan_list_params.rb @@ -89,11 +89,6 @@ class Status < Orb::Enum DRAFT = :draft finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 76b031ae..1989b787 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -302,11 +302,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -321,11 +316,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -375,11 +365,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -456,11 +441,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -727,11 +707,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -746,11 +721,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -800,11 +770,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -904,11 +869,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1160,11 +1120,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1179,11 +1134,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -1233,11 +1183,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1367,11 +1312,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1623,11 +1563,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1642,11 +1577,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -1696,11 +1626,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1777,11 +1702,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredConfig < Orb::BaseModel @@ -2078,11 +1998,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2097,11 +2012,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -2151,11 +2061,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2232,11 +2137,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2540,11 +2440,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2581,11 +2476,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -2635,11 +2525,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2716,11 +2601,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -2972,11 +2852,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3036,11 +2911,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -3090,11 +2960,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3171,11 +3036,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3427,11 +3287,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3483,11 +3338,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -3537,11 +3387,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3618,11 +3463,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3879,11 +3719,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3898,11 +3733,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -3952,11 +3782,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4033,11 +3858,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4290,11 +4110,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4309,11 +4124,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -4363,11 +4173,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4444,11 +4249,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4701,11 +4501,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4720,11 +4515,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -4774,11 +4564,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4855,11 +4640,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5114,11 +4894,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5133,11 +4908,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -5187,11 +4957,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5268,11 +5033,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5529,11 +5289,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5548,11 +5303,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -5602,11 +5352,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5683,11 +5428,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5944,11 +5684,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5963,11 +5698,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -6017,11 +5747,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6098,11 +5823,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6355,11 +6075,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6374,11 +6089,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -6428,11 +6138,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6509,11 +6214,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6771,11 +6471,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6790,11 +6485,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -6844,11 +6534,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6986,11 +6671,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7245,11 +6925,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7264,11 +6939,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -7318,11 +6988,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7399,11 +7064,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7658,11 +7318,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7677,11 +7332,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -7731,11 +7381,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7812,11 +7457,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8071,11 +7711,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8090,11 +7725,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -8144,11 +7774,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8225,11 +7850,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8486,11 +8106,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8505,11 +8120,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -8559,11 +8169,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8640,11 +8245,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8901,11 +8501,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8920,11 +8515,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -8974,11 +8564,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9055,11 +8640,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9316,11 +8896,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9335,11 +8910,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -9389,11 +8959,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9470,11 +9035,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9729,11 +9289,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9748,11 +9303,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -9802,11 +9352,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9883,11 +9428,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10144,11 +9684,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10163,11 +9698,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -10217,11 +9747,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10298,11 +9823,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10559,11 +10079,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10578,11 +10093,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -10632,11 +10142,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10713,11 +10218,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10974,11 +10474,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10993,11 +10488,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -11047,11 +10537,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11128,11 +10613,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -11389,11 +10869,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11408,11 +10883,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -11462,11 +10932,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11543,11 +11008,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -11804,11 +11264,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11823,11 +11278,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class CreditAllocation < Orb::BaseModel @@ -11877,11 +11327,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11958,11 +11403,6 @@ class PriceType < Orb::Enum FIXED_PRICE = :fixed_price finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class DimensionalPriceConfiguration < Orb::BaseModel diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index aadbda1e..00ba7337 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -349,11 +349,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -362,11 +357,6 @@ class ModelType < Orb::Enum CUMULATIVE_GROUPED_BULK = :cumulative_grouped_bulk finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -417,11 +407,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -458,11 +443,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 4f060648..4b5a5a99 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -1195,11 +1195,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!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 8b762312..0634c86e 100644 --- a/lib/orb/models/subscription_cancel_params.rb +++ b/lib/orb/models/subscription_cancel_params.rb @@ -47,11 +47,6 @@ class CancelOption < Orb::Enum REQUESTED_DATE = :requested_date finalize! - - # @!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 b3dc42a8..7983d9b9 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -1179,11 +1179,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!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 0ee698bc..2c6e46c4 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -727,11 +727,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -780,11 +775,6 @@ class DiscountType < Orb::Enum AMOUNT = :amount finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1028,11 +1018,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -1083,11 +1068,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1124,11 +1104,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1297,11 +1272,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class PackageConfig < Orb::BaseModel @@ -1360,11 +1330,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1401,11 +1366,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1574,11 +1534,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -1672,11 +1627,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1713,11 +1663,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1886,11 +1831,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1971,11 +1911,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2012,11 +1947,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2185,11 +2115,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2282,11 +2207,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2323,11 +2243,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2518,11 +2433,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2558,11 +2468,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2599,11 +2504,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2818,11 +2718,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2858,11 +2753,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2899,11 +2789,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3110,11 +2995,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3150,11 +3030,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3191,11 +3066,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3363,11 +3233,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3403,11 +3268,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3444,11 +3304,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3616,11 +3471,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3656,11 +3506,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3697,11 +3542,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3869,11 +3709,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3909,11 +3744,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3950,11 +3780,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4122,11 +3947,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4162,11 +3982,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4203,11 +4018,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4375,11 +4185,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4415,11 +4220,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4456,11 +4256,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4628,11 +4423,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4668,11 +4458,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4709,11 +4494,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4881,11 +4661,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4921,11 +4696,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4962,11 +4732,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5134,11 +4899,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5174,11 +4934,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5215,11 +4970,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5387,11 +5137,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5427,11 +5172,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5468,11 +5208,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5640,11 +5375,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5680,11 +5410,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5721,11 +5446,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5893,11 +5613,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5933,11 +5648,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5974,11 +5684,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6146,11 +5851,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6186,11 +5886,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6227,11 +5922,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6399,11 +6089,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6439,11 +6124,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6480,11 +6160,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6652,11 +6327,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6692,11 +6362,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6733,11 +6398,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6905,11 +6565,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6945,11 +6600,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6986,11 +6636,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7158,11 +6803,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7198,11 +6838,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7239,11 +6874,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7411,11 +7041,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7451,11 +7076,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7492,11 +7112,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7548,11 +7163,6 @@ class ExternalMarketplace < Orb::Enum AZURE = :azure finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class RemoveAdjustment < Orb::BaseModel @@ -7986,11 +7596,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8039,11 +7644,6 @@ class DiscountType < Orb::Enum AMOUNT = :amount finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8289,11 +7889,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -8344,11 +7939,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8385,11 +7975,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -8558,11 +8143,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class PackageConfig < Orb::BaseModel @@ -8621,11 +8201,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8662,11 +8237,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -8835,11 +8405,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -8933,11 +8498,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8974,11 +8534,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -9147,11 +8702,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredConfig < Orb::BaseModel @@ -9232,11 +8782,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9273,11 +8818,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -9446,11 +8986,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -9543,11 +9078,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9584,11 +9114,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -9779,11 +9304,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -9819,11 +9339,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9860,11 +9375,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10083,11 +9593,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10123,11 +9628,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10164,11 +9664,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10375,11 +9870,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10415,11 +9905,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10456,11 +9941,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10628,11 +10108,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10668,11 +10143,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10709,11 +10179,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10881,11 +10346,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10921,11 +10381,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10962,11 +10417,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11134,11 +10584,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11174,11 +10619,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11215,11 +10655,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11387,11 +10822,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11427,11 +10857,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11468,11 +10893,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11640,11 +11060,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11680,11 +11095,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11721,11 +11131,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11893,11 +11298,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11933,11 +11333,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11974,11 +11369,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12146,11 +11536,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12186,11 +11571,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -12227,11 +11607,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12399,11 +11774,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12439,11 +11809,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -12480,11 +11845,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12652,11 +12012,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12692,11 +12047,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -12733,11 +12083,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12905,11 +12250,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12945,11 +12285,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -12986,11 +12321,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13158,11 +12488,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13198,11 +12523,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13239,11 +12559,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13411,11 +12726,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13451,11 +12761,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13492,11 +12797,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13664,11 +12964,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13704,11 +12999,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13745,11 +13035,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13917,11 +13202,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13957,11 +13237,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13998,11 +13273,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -14170,11 +13440,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14210,11 +13475,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -14251,11 +13511,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -14423,11 +13678,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14463,11 +13713,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -14504,11 +13749,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -14676,11 +13916,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14716,11 +13951,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -14757,11 +13987,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 3665f31f..e9e6a6e7 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -1179,11 +1179,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!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 7be1d9e6..0dfbddd6 100644 --- a/lib/orb/models/subscription_fetch_costs_params.rb +++ b/lib/orb/models/subscription_fetch_costs_params.rb @@ -56,11 +56,6 @@ class ViewMode < Orb::Enum CUMULATIVE = :cumulative finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/subscription_fetch_usage_params.rb b/lib/orb/models/subscription_fetch_usage_params.rb index 982ed929..e09aebd5 100644 --- a/lib/orb/models/subscription_fetch_usage_params.rb +++ b/lib/orb/models/subscription_fetch_usage_params.rb @@ -107,11 +107,6 @@ class Granularity < Orb::Enum DAY = :day finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end # @abstract @@ -125,11 +120,6 @@ class ViewMode < Orb::Enum CUMULATIVE = :cumulative finalize! - - # @!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 f534f31b..603aa7eb 100644 --- a/lib/orb/models/subscription_list_params.rb +++ b/lib/orb/models/subscription_list_params.rb @@ -97,11 +97,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!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 051a58f4..49da970e 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -266,11 +266,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -625,11 +620,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -680,11 +670,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -721,11 +706,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -884,11 +864,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class PackageConfig < Orb::BaseModel @@ -947,11 +922,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -988,11 +958,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1151,11 +1116,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -1249,11 +1209,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1290,11 +1245,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1453,11 +1403,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class MatrixWithAllocationConfig < Orb::BaseModel @@ -1558,11 +1503,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1599,11 +1539,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1762,11 +1697,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1847,11 +1777,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1888,11 +1813,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2051,11 +1971,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2148,11 +2063,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2189,11 +2099,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2374,11 +2279,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2414,11 +2314,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2455,11 +2350,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2664,11 +2554,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2704,11 +2589,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2745,11 +2625,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2946,11 +2821,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2986,11 +2856,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3027,11 +2892,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3189,11 +3049,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3229,11 +3084,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3270,11 +3120,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3432,11 +3277,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3472,11 +3312,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3513,11 +3348,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3675,11 +3505,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3715,11 +3540,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3756,11 +3576,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3918,11 +3733,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3958,11 +3768,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3999,11 +3804,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4161,11 +3961,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4201,11 +3996,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4242,11 +4032,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4404,11 +4189,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4444,11 +4224,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4485,11 +4260,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4647,11 +4417,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4687,11 +4452,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4728,11 +4488,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4890,11 +4645,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4930,11 +4680,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4971,11 +4716,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5133,11 +4873,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5173,11 +4908,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5214,11 +4944,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5376,11 +5101,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5416,11 +5136,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5457,11 +5172,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5619,11 +5329,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5659,11 +5364,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5700,11 +5400,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5862,11 +5557,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5902,11 +5592,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5943,11 +5628,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6105,11 +5785,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6145,11 +5820,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6186,11 +5856,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6348,11 +6013,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6388,11 +6048,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6429,11 +6084,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6591,11 +6241,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6631,11 +6276,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6672,11 +6312,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6834,11 +6469,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6874,11 +6504,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6915,11 +6540,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7077,11 +6697,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7117,11 +6732,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7158,11 +6768,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7320,11 +6925,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7360,11 +6960,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7401,11 +6996,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7563,11 +7153,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7603,11 +7188,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7644,11 +7224,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7665,7 +7240,9 @@ class AddAdjustment < Orb::BaseModel # @!attribute start_date # The start date of the adjustment interval. This is the date that the adjustment - # will start affecting prices on the subscription. + # will start affecting prices on the subscription. The adjustment will apply to + # invoice dates that overlap with this `start_date`. This `start_date` is treated + # as inclusive for in-advance prices, and exclusive for in-arrears prices. # # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate] required :start_date, @@ -7673,7 +7250,9 @@ class AddAdjustment < Orb::BaseModel # @!attribute end_date # The end date of the adjustment interval. This is the date that the adjustment - # will stop affecting prices on the subscription. + # will stop affecting prices on the subscription. The adjustment will apply to + # invoice dates that overlap with this `end_date`.This `end_date` is treated as + # exclusive for in-advance prices, and inclusive for in-arrears prices. # # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] optional :end_date, @@ -7924,7 +7503,9 @@ class NewMaximum < Orb::BaseModel # @abstract # # The start date of the adjustment interval. This is the date that the adjustment - # will start affecting prices on the subscription. + # will start affecting prices on the subscription. The adjustment will apply to + # invoice dates that overlap with this `start_date`. This `start_date` is treated + # as inclusive for in-advance prices, and exclusive for in-arrears prices. class StartDate < Orb::Union variant Time @@ -7934,7 +7515,9 @@ class StartDate < Orb::Union # @abstract # # The end date of the adjustment interval. This is the date that the adjustment - # will stop affecting prices on the subscription. + # will stop affecting prices on the subscription. The adjustment will apply to + # invoice dates that overlap with this `end_date`.This `end_date` is treated as + # exclusive for in-advance prices, and inclusive for in-arrears prices. class EndDate < Orb::Union variant Time diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index 65fb330a..9ed2fcda 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -1186,11 +1186,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!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 24f98439..0eb85e9c 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -281,11 +281,6 @@ class ChangeOption < Orb::Enum IMMEDIATE = :immediate finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class AddAdjustment < Orb::BaseModel @@ -716,11 +711,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -769,11 +759,6 @@ class DiscountType < Orb::Enum AMOUNT = :amount finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1022,11 +1007,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -1077,11 +1057,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1118,11 +1093,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1291,11 +1261,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class PackageConfig < Orb::BaseModel @@ -1354,11 +1319,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1395,11 +1355,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1568,11 +1523,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -1666,11 +1616,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -1707,11 +1652,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -1880,11 +1820,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredConfig < Orb::BaseModel @@ -1969,11 +1904,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2010,11 +1940,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2183,11 +2108,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -2280,11 +2200,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2321,11 +2236,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2516,11 +2426,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2556,11 +2461,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2597,11 +2497,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -2820,11 +2715,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -2860,11 +2750,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -2901,11 +2786,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3116,11 +2996,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3156,11 +3031,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3197,11 +3067,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3369,11 +3234,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3409,11 +3269,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3450,11 +3305,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3622,11 +3472,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3662,11 +3507,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3703,11 +3543,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -3875,11 +3710,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -3915,11 +3745,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -3956,11 +3781,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4128,11 +3948,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4168,11 +3983,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4209,11 +4019,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4381,11 +4186,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4421,11 +4221,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4462,11 +4257,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4634,11 +4424,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4674,11 +4459,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4715,11 +4495,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -4887,11 +4662,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -4927,11 +4697,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -4968,11 +4733,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5140,11 +4900,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5180,11 +4935,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5221,11 +4971,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5393,11 +5138,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5433,11 +5173,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5474,11 +5209,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5646,11 +5376,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5686,11 +5411,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5727,11 +5447,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -5899,11 +5614,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -5939,11 +5649,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -5980,11 +5685,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6152,11 +5852,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6192,11 +5887,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6233,11 +5923,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6405,11 +6090,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6445,11 +6125,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6486,11 +6161,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6658,11 +6328,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6698,11 +6363,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6739,11 +6399,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -6911,11 +6566,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -6951,11 +6601,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -6992,11 +6637,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7164,11 +6804,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7204,11 +6839,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7245,11 +6875,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7417,11 +7042,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -7457,11 +7077,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -7498,11 +7113,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -7520,11 +7130,6 @@ class BillingCycleAlignment < Orb::Enum START_OF_MONTH = :start_of_month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleAnchorConfiguration < Orb::BaseModel @@ -7998,11 +7603,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8051,11 +7651,6 @@ class DiscountType < Orb::Enum AMOUNT = :amount finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8304,11 +7899,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class UnitConfig < Orb::BaseModel @@ -8359,11 +7949,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8400,11 +7985,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -8573,11 +8153,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class PackageConfig < Orb::BaseModel @@ -8636,11 +8211,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8677,11 +8247,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -8850,11 +8415,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class MatrixConfig < Orb::BaseModel @@ -8948,11 +8508,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -8989,11 +8544,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -9162,11 +8712,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredConfig < Orb::BaseModel @@ -9251,11 +8796,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9292,11 +8832,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -9465,11 +9000,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TieredBpsConfig < Orb::BaseModel @@ -9562,11 +9092,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9603,11 +9128,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -9798,11 +9318,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -9838,11 +9353,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -9879,11 +9389,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10102,11 +9607,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10142,11 +9642,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10183,11 +9678,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10398,11 +9888,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10438,11 +9923,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10479,11 +9959,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10651,11 +10126,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10691,11 +10161,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10732,11 +10197,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -10904,11 +10364,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -10944,11 +10399,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -10985,11 +10435,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11157,11 +10602,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11197,11 +10637,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11238,11 +10673,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11410,11 +10840,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11450,11 +10875,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11491,11 +10911,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11663,11 +11078,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11703,11 +11113,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11744,11 +11149,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -11916,11 +11316,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -11956,11 +11351,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -11997,11 +11387,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12169,11 +11554,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12209,11 +11589,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -12250,11 +11625,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12422,11 +11792,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12462,11 +11827,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -12503,11 +11863,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12675,11 +12030,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12715,11 +12065,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -12756,11 +12101,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -12928,11 +12268,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -12968,11 +12303,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13009,11 +12339,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13181,11 +12506,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13221,11 +12541,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13262,11 +12577,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13434,11 +12744,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13474,11 +12779,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13515,11 +12815,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13687,11 +12982,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13727,11 +13017,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -13768,11 +13053,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -13940,11 +13220,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -13980,11 +13255,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -14021,11 +13291,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -14193,11 +13458,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14233,11 +13493,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -14274,11 +13529,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -14446,11 +13696,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14486,11 +13731,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -14527,11 +13767,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -14699,11 +13934,6 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class BillingCycleConfiguration < Orb::BaseModel @@ -14739,11 +13969,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end @@ -14780,11 +14005,6 @@ class DurationUnit < Orb::Enum MONTH = :month finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; 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 e676ccb0..59c19442 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -1186,11 +1186,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index 49bf22d0..e60efb37 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -1186,11 +1186,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index 07a5a500..84a47868 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -1186,11 +1186,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb index ff29ef81..c33c1c22 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 @@ -1190,11 +1190,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb index d6440d49..8439ce5c 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -1186,11 +1186,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!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 c2956005..9a1e6c9e 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb @@ -79,11 +79,6 @@ class ChangeOption < Orb::Enum EFFECTIVE_DATE = :effective_date finalize! - - # @!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 b5c7c817..68f07e34 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -1186,11 +1186,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_update_trial_params.rb b/lib/orb/models/subscription_update_trial_params.rb index 3a7b2d92..91e7b12f 100644 --- a/lib/orb/models/subscription_update_trial_params.rb +++ b/lib/orb/models/subscription_update_trial_params.rb @@ -49,11 +49,6 @@ class UnionMember1 < Orb::Enum IMMEDIATE = :immediate finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index c338cc8f..0fa51d87 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -1184,11 +1184,6 @@ class Status < Orb::Enum UPCOMING = :upcoming finalize! - - # @!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 d8f92f60..2b70253c 100644 --- a/lib/orb/models/subscription_usage.rb +++ b/lib/orb/models/subscription_usage.rb @@ -103,11 +103,6 @@ class ViewMode < Orb::Enum CUMULATIVE = :cumulative finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end @@ -237,11 +232,6 @@ class ViewMode < Orb::Enum CUMULATIVE = :cumulative finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/models/trial_discount.rb b/lib/orb/models/trial_discount.rb index 9a73061c..7b70865f 100644 --- a/lib/orb/models/trial_discount.rb +++ b/lib/orb/models/trial_discount.rb @@ -58,11 +58,6 @@ class DiscountType < Orb::Enum TRIAL = :trial finalize! - - # @!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 7d0ec1ba..541011bb 100644 --- a/lib/orb/models/usage_discount.rb +++ b/lib/orb/models/usage_discount.rb @@ -43,11 +43,6 @@ class DiscountType < Orb::Enum USAGE = :usage finalize! - - # @!parse - # # @return [Array] - # # - # def self.values; end end end end diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 609ed8d9..95a418f8 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.22" + VERSION = "0.1.0-alpha.23" end diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi index 52f5a314..ad42347d 100644 --- a/rbi/lib/orb/base_client.rbi +++ b/rbi/lib/orb/base_client.rbi @@ -43,25 +43,27 @@ module Orb PLATFORM_HEADERS = T::Hash[String, String] - sig { params(req: Orb::BaseClient::RequestComponentsShape).void } - def self.validate!(req) - end - - sig do - params(status: Integer, headers: T.any(T::Hash[String, String], Net::HTTPHeader)).returns(T::Boolean) - end - def self.should_retry?(status, headers:) - end - - 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 self.follow_redirect(request, status:, response_headers:) + class << self + sig { params(req: Orb::BaseClient::RequestComponentsShape).void } + def validate!(req) + end + + sig do + params(status: Integer, headers: T.any(T::Hash[String, String], Net::HTTPHeader)).returns(T::Boolean) + end + def should_retry?(status, headers:) + end + + 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 end sig { returns(T.anything) } @@ -83,9 +85,9 @@ module Orb T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))], idempotency_header: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( base_url:, timeout: 0.0, max_retries: 0, diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi index 4b61004e..03671a6e 100644 --- a/rbi/lib/orb/base_model.rbi +++ b/rbi/lib/orb/base_model.rbi @@ -22,33 +22,35 @@ module Orb def try_strict_coerce(value) end - 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 + class << self + 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 + .returns(T.proc.returns(T.anything).void) + end + def self.type_info(spec) + end - sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.coerce(target, value) - end + sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } + def self.coerce(target, value) + end - sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.dump(target, value) - end + sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } + def self.dump(target, value) + end - sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.try_strict_coerce(target, value) + sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } + def self.try_strict_coerce(target, value) + end end end @@ -65,20 +67,22 @@ module Orb def self.==(other) end - sig { override.params(value: T.anything).returns(T.anything) } - def self.coerce(value) - end + class << self + sig { override.params(value: T.anything).returns(T.anything) } + def coerce(value) + end - sig { override.params(value: T.anything).returns(T.anything) } - def self.dump(value) - end + sig { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end - sig do - override - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def self.try_strict_coerce(value) + 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 end @@ -95,20 +99,22 @@ module Orb def self.==(other) end - sig { override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) } - def self.coerce(value) - end + class << self + sig { override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) } + def coerce(value) + end - sig { override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) } - def self.dump(value) - end + sig { override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) } + def dump(value) + end - sig do - override - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def self.try_strict_coerce(value) + 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 end @@ -117,12 +123,14 @@ module Orb extend Orb::Converter - sig { overridable.returns(T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)]) } - def self.values - end + class << self + sig { overridable.returns(T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)]) } + def values + end - sig { void } - private_class_method def self.finalize! + sig { void } + private def finalize! + end end sig { params(other: T.anything).returns(T::Boolean) } @@ -133,20 +141,22 @@ module Orb def self.==(other) end - sig { override.params(value: T.any(String, Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def self.coerce(value) - end + class << self + sig { override.params(value: T.any(String, Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def coerce(value) + end - sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def self.dump(value) - end + sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def dump(value) + end - sig do - override - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def self.try_strict_coerce(value) + 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 end @@ -155,39 +165,41 @@ module Orb extend Orb::Converter - sig { returns(T::Array[[T.nilable(Symbol), Proc]]) } - private_class_method def self.known_variants - end - - sig { overridable.returns(T::Array[[T.nilable(Symbol), T.anything]]) } - private_class_method def self.variants - end - - sig { params(property: Symbol).void } - private_class_method def self.discriminator(property) - end - - sig do - params( - key: T.any( - Symbol, - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input + class << self + sig { returns(T::Array[[T.nilable(Symbol), Proc]]) } + private def known_variants + end + + sig { overridable.returns(T::Array[[T.nilable(Symbol), T.anything]]) } + protected def variants + end + + sig { params(property: Symbol).void } + private def discriminator(property) + end + + sig do + params( + key: T.any( + Symbol, + T::Hash[Symbol, T.anything], + T.proc.returns(Orb::Converter::Input), + Orb::Converter::Input + ), + spec: T.any( + T::Hash[Symbol, T.anything], + T.proc.returns(Orb::Converter::Input), + Orb::Converter::Input + ) ) - ) - .void - end - private_class_method def self.variant(key, spec = nil) - end + .void + end + private def variant(key, spec = nil) + end - sig { params(value: T.anything).returns(T.nilable(Orb::Converter::Input)) } - private_class_method def self.resolve_variant(value) + sig { params(value: T.anything).returns(T.nilable(Orb::Converter::Input)) } + private def resolve_variant(value) + end end sig { params(other: T.anything).returns(T::Boolean) } @@ -198,20 +210,22 @@ module Orb def self.==(other) end - sig { override.params(value: T.anything).returns(T.anything) } - def self.coerce(value) - end + class << self + sig { override.params(value: T.anything).returns(T.anything) } + def coerce(value) + end - sig { override.params(value: T.anything).returns(T.anything) } - def self.dump(value) - end + sig { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end - sig do - override - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def self.try_strict_coerce(value) + 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 end @@ -265,9 +279,9 @@ module Orb ), spec: T::Hash[Symbol, T.anything] ) - .void + .returns(T.attached_class) end - def initialize(type_info, spec = {}) + def self.new(type_info, spec = {}) end end @@ -321,9 +335,9 @@ module Orb ), spec: T::Hash[Symbol, T.anything] ) - .void + .returns(T.attached_class) end - def initialize(type_info, spec = {}) + def self.new(type_info, spec = {}) end end @@ -334,109 +348,113 @@ module Orb KnownFieldShape = T.type_alias { {mode: T.nilable(Symbol), required: T::Boolean} } - sig do - returns( - T::Hash[Symbol, - T.all(Orb::BaseModel::KnownFieldShape, {type_fn: T.proc.returns(Orb::Converter::Input)})] - ) - end - def self.known_fields - end - - sig { returns(T::Hash[Symbol, T.all(Orb::BaseModel::KnownFieldShape, {type: Orb::Converter::Input})]) } - def self.fields - end - - sig { returns(T::Hash[Symbol, T.proc.returns(T::Class[T.anything])]) } - def self.defaults - end - - 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: T::Hash[Symbol, T.anything] - ) - .void - end - private_class_method def self.add_field(name_sym, required:, type_info:, spec:) - end - - sig do - params( - name_sym: Symbol, - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] - ) - .void - end - def self.required(name_sym, type_info, spec = {}) - end - - sig do - params( - name_sym: Symbol, - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] - ) - .void - end - def self.optional(name_sym, type_info, spec = {}) - end + class << self + sig do + returns( + T::Hash[Symbol, + T.all(Orb::BaseModel::KnownFieldShape, {type_fn: T.proc.returns(Orb::Converter::Input)})] + ) + end + def known_fields + end + + sig { returns(T::Hash[Symbol, T.all(Orb::BaseModel::KnownFieldShape, {type: Orb::Converter::Input})]) } + def fields + end + + sig { returns(T::Hash[Symbol, T.proc.returns(T::Class[T.anything])]) } + def defaults + end + + 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: T::Hash[Symbol, T.anything] + ) + .void + end + private def add_field(name_sym, required:, type_info:, spec:) + end + + sig do + params( + name_sym: Symbol, + type_info: T.any( + T::Hash[Symbol, T.anything], + T.proc.returns(Orb::Converter::Input), + Orb::Converter::Input + ), + spec: T::Hash[Symbol, T.anything] + ) + .void + end + def required(name_sym, type_info, spec = {}) + end + + sig do + params( + name_sym: Symbol, + type_info: T.any( + T::Hash[Symbol, T.anything], + T.proc.returns(Orb::Converter::Input), + Orb::Converter::Input + ), + spec: T::Hash[Symbol, T.anything] + ) + .void + end + def optional(name_sym, type_info, spec = {}) + end - sig { params(blk: T.proc.void).void } - private_class_method def self.request_only(&blk) - end + sig { params(blk: T.proc.void).void } + private def request_only(&blk) + end - sig { params(blk: T.proc.void).void } - private_class_method def self.response_only(&blk) + 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 - 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 self.coerce(value) - end - - sig do - override - .params(value: T.any(T.attached_class, T.anything)) - .returns(T.any(T::Hash[T.anything, T.anything], T.anything)) - end - def self.dump(value) - end - - sig do - override - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def self.try_strict_coerce(value) + class << self + 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 + + 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 + + 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 sig { params(key: Symbol).returns(T.nilable(T.anything)) } @@ -453,8 +471,8 @@ module Orb def deconstruct_keys(keys) end - sig { params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).void } - def initialize(data = {}) + 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) } diff --git a/rbi/lib/orb/client.rbi b/rbi/lib/orb/client.rbi index 6aa6e4ec..6248d014 100644 --- a/rbi/lib/orb/client.rbi +++ b/rbi/lib/orb/client.rbi @@ -84,9 +84,9 @@ module Orb max_retry_delay: Float, idempotency_header: String ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( base_url: nil, api_key: ENV["ORB_API_KEY"], max_retries: DEFAULT_MAX_RETRIES, diff --git a/rbi/lib/orb/errors.rbi b/rbi/lib/orb/errors.rbi index f6d7f140..9b26d290 100644 --- a/rbi/lib/orb/errors.rbi +++ b/rbi/lib/orb/errors.rbi @@ -32,9 +32,9 @@ module Orb response: NilClass, message: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil) + def self.new(url:, status: nil, body: nil, request: nil, response: nil, message: nil) end end @@ -56,9 +56,9 @@ module Orb response: NilClass, message: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: "Connection error.") + def self.new(url:, status: nil, body: nil, request: nil, response: nil, message: "Connection error.") end end @@ -72,9 +72,9 @@ module Orb response: NilClass, message: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: "Request timed out.") + def self.new(url:, status: nil, body: nil, request: nil, response: nil, message: "Request timed out.") end end @@ -106,9 +106,9 @@ module Orb response: NilClass, message: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(url:, status:, body:, request:, response:, message: nil) + def self.new(url:, status:, body:, request:, response:, message: nil) end end diff --git a/rbi/lib/orb/models/alert.rbi b/rbi/lib/orb/models/alert.rbi index 62c15100..12d6fb3f 100644 --- a/rbi/lib/orb/models/alert.rbi +++ b/rbi/lib/orb/models/alert.rbi @@ -101,20 +101,9 @@ module Orb thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), type: Symbol ) - .void - end - def initialize( - id:, - created_at:, - currency:, - customer:, - enabled:, - metric:, - plan:, - subscription:, - thresholds:, - type: - ) + .returns(T.attached_class) + end + def self.new(id:, created_at:, currency:, customer:, enabled:, metric:, plan:, subscription:, thresholds:, type:) end sig do @@ -154,8 +143,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -172,8 +161,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -221,9 +210,9 @@ module Orb name: T.nilable(String), plan_version: String ) - .void + .returns(T.attached_class) end - def initialize(id:, external_plan_id:, name:, plan_version:) + def self.new(id:, external_plan_id:, name:, plan_version:) end sig do @@ -250,8 +239,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -268,8 +257,8 @@ module Orb def value=(_) end - sig { params(value: Float).void } - def initialize(value:) + sig { params(value: Float).returns(T.attached_class) } + def self.new(value:) end sig { override.returns({value: Float}) } @@ -286,8 +275,10 @@ module Orb USAGE_EXCEEDED = :usage_exceeded COST_EXCEEDED = :cost_exceeded - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/alert_create_for_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_customer_params.rbi index 2b867440..da16ba69 100644 --- a/rbi/lib/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_customer_params.rbi @@ -40,9 +40,9 @@ module Orb thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(currency:, type:, thresholds: nil, request_options: {}) + def self.new(currency:, type:, thresholds: nil, request_options: {}) end sig do @@ -66,8 +66,10 @@ module Orb CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -80,8 +82,8 @@ module Orb def value=(_) end - sig { params(value: Float).void } - def initialize(value:) + sig { params(value: Float).returns(T.attached_class) } + def self.new(value:) end sig { override.returns({value: Float}) } 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 7ea610bd..f73a5857 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 @@ -40,9 +40,9 @@ module Orb thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(currency:, type:, thresholds: nil, request_options: {}) + def self.new(currency:, type:, thresholds: nil, request_options: {}) end sig do @@ -66,8 +66,10 @@ module Orb CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -80,8 +82,8 @@ module Orb def value=(_) end - sig { params(value: Float).void } - def initialize(value:) + sig { params(value: Float).returns(T.attached_class) } + def self.new(value:) end sig { override.returns({value: Float}) } 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 51d74b8f..01d9624e 100644 --- a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi @@ -40,9 +40,9 @@ module Orb metric_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(thresholds:, type:, metric_id: nil, request_options: {}) + def self.new(thresholds:, type:, metric_id: nil, request_options: {}) end sig do @@ -68,8 +68,8 @@ module Orb def value=(_) end - sig { params(value: Float).void } - def initialize(value:) + sig { params(value: Float).returns(T.attached_class) } + def self.new(value:) end sig { override.returns({value: Float}) } @@ -83,8 +83,10 @@ module Orb USAGE_EXCEEDED = :usage_exceeded COST_EXCEEDED = :cost_exceeded - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/alert_disable_params.rbi b/rbi/lib/orb/models/alert_disable_params.rbi index 2d12c93f..1ead47cb 100644 --- a/rbi/lib/orb/models/alert_disable_params.rbi +++ b/rbi/lib/orb/models/alert_disable_params.rbi @@ -19,9 +19,9 @@ module Orb subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(subscription_id: nil, request_options: {}) + def self.new(subscription_id: nil, request_options: {}) end sig { override.returns({subscription_id: T.nilable(String), request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/alert_enable_params.rbi b/rbi/lib/orb/models/alert_enable_params.rbi index e250944e..27a007fe 100644 --- a/rbi/lib/orb/models/alert_enable_params.rbi +++ b/rbi/lib/orb/models/alert_enable_params.rbi @@ -19,9 +19,9 @@ module Orb subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(subscription_id: nil, request_options: {}) + def self.new(subscription_id: nil, request_options: {}) end sig { override.returns({subscription_id: T.nilable(String), request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/alert_list_params.rbi b/rbi/lib/orb/models/alert_list_params.rbi index 248c4380..e15bb7cd 100644 --- a/rbi/lib/orb/models/alert_list_params.rbi +++ b/rbi/lib/orb/models/alert_list_params.rbi @@ -91,9 +91,9 @@ module Orb subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, diff --git a/rbi/lib/orb/models/alert_retrieve_params.rbi b/rbi/lib/orb/models/alert_retrieve_params.rbi index 4738643b..b9f7fd0d 100644 --- a/rbi/lib/orb/models/alert_retrieve_params.rbi +++ b/rbi/lib/orb/models/alert_retrieve_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/alert_update_params.rbi b/rbi/lib/orb/models/alert_update_params.rbi index 38cf1879..71447d97 100644 --- a/rbi/lib/orb/models/alert_update_params.rbi +++ b/rbi/lib/orb/models/alert_update_params.rbi @@ -22,9 +22,9 @@ module Orb thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(thresholds:, request_options: {}) + def self.new(thresholds:, request_options: {}) end sig do @@ -45,8 +45,8 @@ module Orb def value=(_) end - sig { params(value: Float).void } - def initialize(value:) + sig { params(value: Float).returns(T.attached_class) } + def self.new(value:) end sig { override.returns({value: Float}) } diff --git a/rbi/lib/orb/models/amount_discount.rbi b/rbi/lib/orb/models/amount_discount.rbi index 62f1165d..a875c090 100644 --- a/rbi/lib/orb/models/amount_discount.rbi +++ b/rbi/lib/orb/models/amount_discount.rbi @@ -42,9 +42,9 @@ module Orb discount_type: Symbol, reason: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(amount_discount:, applies_to_price_ids:, discount_type:, reason: nil) + def self.new(amount_discount:, applies_to_price_ids:, discount_type:, reason: nil) end sig do @@ -66,8 +66,10 @@ module Orb AMOUNT = :amount - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/billable_metric.rbi b/rbi/lib/orb/models/billable_metric.rbi index 4dc58f51..080986a6 100644 --- a/rbi/lib/orb/models/billable_metric.rbi +++ b/rbi/lib/orb/models/billable_metric.rbi @@ -60,9 +60,9 @@ module Orb name: String, status: Symbol ) - .void + .returns(T.attached_class) end - def initialize(id:, description:, item:, metadata:, name:, status:) + def self.new(id:, description:, item:, metadata:, name:, status:) end sig do @@ -88,8 +88,10 @@ module Orb DRAFT = :draft ARCHIVED = :archived - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/billing_cycle_relative_date.rbi b/rbi/lib/orb/models/billing_cycle_relative_date.rbi index 6a70378b..de23b4b4 100644 --- a/rbi/lib/orb/models/billing_cycle_relative_date.rbi +++ b/rbi/lib/orb/models/billing_cycle_relative_date.rbi @@ -8,8 +8,10 @@ module Orb START_OF_TERM = :start_of_term END_OF_TERM = :end_of_term - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/coupon.rbi b/rbi/lib/orb/models/coupon.rbi index 6f867f43..a236737f 100644 --- a/rbi/lib/orb/models/coupon.rbi +++ b/rbi/lib/orb/models/coupon.rbi @@ -72,17 +72,9 @@ module Orb redemption_code: String, times_redeemed: Integer ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -105,8 +97,10 @@ module Orb class Discount < Orb::Union abstract! - sig { override.returns([[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount]]) } - private_class_method def self.variants + class << self + sig { override.returns([[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount]]) } + private def variants + end end end end diff --git a/rbi/lib/orb/models/coupon_archive_params.rbi b/rbi/lib/orb/models/coupon_archive_params.rbi index 8928a8e3..176048c6 100644 --- a/rbi/lib/orb/models/coupon_archive_params.rbi +++ b/rbi/lib/orb/models/coupon_archive_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/coupon_create_params.rbi b/rbi/lib/orb/models/coupon_create_params.rbi index 92d08bd9..38a726f1 100644 --- a/rbi/lib/orb/models/coupon_create_params.rbi +++ b/rbi/lib/orb/models/coupon_create_params.rbi @@ -69,15 +69,9 @@ module Orb max_redemptions: T.nilable(Integer), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -118,8 +112,8 @@ module Orb def percentage_discount=(_) end - sig { params(percentage_discount: Float, discount_type: Symbol).void } - def initialize(percentage_discount:, discount_type: :percentage) + sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } + def self.new(percentage_discount:, discount_type: :percentage) end sig { override.returns({discount_type: Symbol, percentage_discount: Float}) } @@ -144,8 +138,8 @@ module Orb def discount_type=(_) end - sig { params(amount_discount: String, discount_type: Symbol).void } - def initialize(amount_discount:, discount_type: :amount) + sig { params(amount_discount: String, discount_type: Symbol).returns(T.attached_class) } + def self.new(amount_discount:, discount_type: :amount) end sig { override.returns({amount_discount: String, discount_type: Symbol}) } @@ -153,13 +147,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount], [Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount], [Symbol, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount]] + ) + end + private def variants + end end end end diff --git a/rbi/lib/orb/models/coupon_fetch_params.rbi b/rbi/lib/orb/models/coupon_fetch_params.rbi index 1ffa8fde..9f5d5c53 100644 --- a/rbi/lib/orb/models/coupon_fetch_params.rbi +++ b/rbi/lib/orb/models/coupon_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/coupon_list_params.rbi b/rbi/lib/orb/models/coupon_list_params.rbi index edf2682d..62fa423d 100644 --- a/rbi/lib/orb/models/coupon_list_params.rbi +++ b/rbi/lib/orb/models/coupon_list_params.rbi @@ -46,9 +46,9 @@ module Orb show_archived: T.nilable(T::Boolean), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/coupons/subscription_list_params.rbi b/rbi/lib/orb/models/coupons/subscription_list_params.rbi index 449a84a0..f8d8bd56 100644 --- a/rbi/lib/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/lib/orb/models/coupons/subscription_list_params.rbi @@ -29,9 +29,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/credit_note.rbi b/rbi/lib/orb/models/credit_note.rbi index f643a80c..0c88e024 100644 --- a/rbi/lib/orb/models/credit_note.rbi +++ b/rbi/lib/orb/models/credit_note.rbi @@ -157,9 +157,9 @@ module Orb voided_at: T.nilable(Time), discounts: T::Array[Orb::Models::CreditNote::Discount] ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, created_at:, credit_note_number:, @@ -222,8 +222,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -313,9 +313,9 @@ module Orb tax_amounts: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount], discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] ) - .void + .returns(T.attached_class) end - def initialize(id:, amount:, item_id:, name:, quantity:, subtotal:, tax_amounts:, discounts: nil) + def self.new(id:, amount:, item_id:, name:, quantity:, subtotal:, tax_amounts:, discounts: nil) end sig do @@ -362,9 +362,10 @@ module Orb end sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void + params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) + .returns(T.attached_class) end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + def self.new(amount:, tax_rate_description:, tax_rate_percentage:) end sig do @@ -447,9 +448,9 @@ module Orb amount_discount: T.nilable(String), reason: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_applied:, applies_to_price_ids:, @@ -483,8 +484,10 @@ module Orb PERCENTAGE = :percentage AMOUNT = :amount - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -542,15 +545,9 @@ module Orb applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), reason: T.nilable(String) ) - .void - end - def initialize( - amount_applied:, - discount_type:, - percentage_discount:, - applies_to_prices: nil, - reason: nil - ) + .returns(T.attached_class) + end + def self.new(amount_applied:, discount_type:, percentage_discount:, applies_to_prices: nil, reason: nil) end sig do @@ -573,8 +570,10 @@ module Orb PERCENTAGE = :percentage - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -595,8 +594,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -613,8 +612,10 @@ module Orb ORDER_CHANGE = T.let(:"Order change", T.nilable(Symbol)) PRODUCT_UNSATISFACTORY = T.let(:"Product unsatisfactory", T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -624,8 +625,10 @@ module Orb REFUND = :refund ADJUSTMENT = :adjustment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -681,15 +684,9 @@ module Orb applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), reason: T.nilable(String) ) - .void - end - def initialize( - amount_applied:, - discount_type:, - percentage_discount:, - applies_to_prices: nil, - reason: nil - ) + .returns(T.attached_class) + end + def self.new(amount_applied:, discount_type:, percentage_discount:, applies_to_prices: nil, reason: nil) end sig do @@ -712,8 +709,10 @@ module Orb PERCENTAGE = :percentage - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -734,8 +733,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } diff --git a/rbi/lib/orb/models/credit_note_create_params.rbi b/rbi/lib/orb/models/credit_note_create_params.rbi index 3118859e..33e90fd4 100644 --- a/rbi/lib/orb/models/credit_note_create_params.rbi +++ b/rbi/lib/orb/models/credit_note_create_params.rbi @@ -40,9 +40,9 @@ module Orb reason: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(line_items:, memo: nil, reason: nil, request_options: {}) + def self.new(line_items:, memo: nil, reason: nil, request_options: {}) end sig do @@ -76,8 +76,8 @@ module Orb def invoice_line_item_id=(_) end - sig { params(amount: String, invoice_line_item_id: String).void } - def initialize(amount:, invoice_line_item_id:) + sig { params(amount: String, invoice_line_item_id: String).returns(T.attached_class) } + def self.new(amount:, invoice_line_item_id:) end sig { override.returns({amount: String, invoice_line_item_id: String}) } @@ -93,8 +93,10 @@ module Orb ORDER_CHANGE = T.let(:order_change, T.nilable(Symbol)) PRODUCT_UNSATISFACTORY = T.let(:product_unsatisfactory, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/credit_note_fetch_params.rbi b/rbi/lib/orb/models/credit_note_fetch_params.rbi index 64fb73ae..524f0bf9 100644 --- a/rbi/lib/orb/models/credit_note_fetch_params.rbi +++ b/rbi/lib/orb/models/credit_note_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/credit_note_list_params.rbi b/rbi/lib/orb/models/credit_note_list_params.rbi index 07584a46..356f93c7 100644 --- a/rbi/lib/orb/models/credit_note_list_params.rbi +++ b/rbi/lib/orb/models/credit_note_list_params.rbi @@ -28,9 +28,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/customer.rbi b/rbi/lib/orb/models/customer.rbi index d9ea5366..7f8703a7 100644 --- a/rbi/lib/orb/models/customer.rbi +++ b/rbi/lib/orb/models/customer.rbi @@ -216,9 +216,9 @@ module Orb accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, additional_emails:, auto_collection:, @@ -334,9 +334,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city:, country:, line1:, line2:, postal_code:, state:) + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end sig do @@ -384,9 +384,9 @@ module Orb children: T::Array[Orb::Models::Customer::Hierarchy::Child], parent: T.nilable(Orb::Models::Customer::Hierarchy::Parent) ) - .void + .returns(T.attached_class) end - def initialize(children:, parent:) + def self.new(children:, parent:) end sig do @@ -418,8 +418,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -444,8 +444,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -463,8 +463,10 @@ module Orb STRIPE_INVOICE = T.let(:stripe_invoice, T.nilable(Symbol)) NETSUITE = T.let(:netsuite, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -526,9 +528,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city:, country:, line1:, line2:, postal_code:, state:) + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end sig do @@ -573,8 +575,8 @@ module Orb def value=(_) end - sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:) + sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + def self.new(country:, type:, value:) end sig { override.returns({country: Symbol, type: Symbol, value: String}) } @@ -663,8 +665,10 @@ module Orb VN = :VN ZA = :ZA - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -743,8 +747,10 @@ module Orb VN_TIN = :vn_tin ZA_VAT = :za_vat - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -774,9 +780,9 @@ module Orb accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(accounting_providers:, excluded:) + def self.new(accounting_providers:, excluded:) end sig do @@ -808,8 +814,10 @@ module Orb def provider_type=(_) end - sig { params(external_provider_id: T.nilable(String), provider_type: Symbol).void } - def initialize(external_provider_id:, provider_type:) + sig do + params(external_provider_id: T.nilable(String), provider_type: Symbol).returns(T.attached_class) + end + def self.new(external_provider_id:, provider_type:) end sig { override.returns({external_provider_id: T.nilable(String), provider_type: Symbol}) } @@ -822,8 +830,10 @@ module Orb QUICKBOOKS = :quickbooks NETSUITE = :netsuite - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -838,8 +848,8 @@ module Orb def exempt=(_) end - sig { params(exempt: T::Boolean).void } - def initialize(exempt:) + sig { params(exempt: T::Boolean).returns(T.attached_class) } + def self.new(exempt:) end sig { override.returns({exempt: T::Boolean}) } diff --git a/rbi/lib/orb/models/customer_create_params.rbi b/rbi/lib/orb/models/customer_create_params.rbi index 76910a58..5150f5ce 100644 --- a/rbi/lib/orb/models/customer_create_params.rbi +++ b/rbi/lib/orb/models/customer_create_params.rbi @@ -224,9 +224,9 @@ module Orb timezone: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( email:, name:, accounting_sync_configuration: nil, @@ -316,9 +316,9 @@ module Orb accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) ) - .void + .returns(T.attached_class) end - def initialize(accounting_providers: nil, excluded: nil) + def self.new(accounting_providers: nil, excluded: nil) end sig do @@ -350,8 +350,8 @@ module Orb def provider_type=(_) end - sig { params(external_provider_id: String, provider_type: String).void } - def initialize(external_provider_id:, provider_type:) + sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } + def self.new(external_provider_id:, provider_type:) end sig { override.returns({external_provider_id: String, provider_type: String}) } @@ -418,9 +418,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do @@ -457,8 +457,11 @@ module Orb def parent_customer_id=(_) end - sig { params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)).void } - def initialize(child_customer_ids: nil, parent_customer_id: nil) + sig do + params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)) + .returns(T.attached_class) + end + def self.new(child_customer_ids: nil, parent_customer_id: nil) end sig do @@ -477,8 +480,10 @@ module Orb STRIPE_INVOICE = T.let(:stripe_invoice, T.nilable(Symbol)) NETSUITE = T.let(:netsuite, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -491,8 +496,8 @@ module Orb def exempt=(_) end - sig { params(exempt: T::Boolean).void } - def initialize(exempt:) + sig { params(exempt: T::Boolean).returns(T.attached_class) } + def self.new(exempt:) end sig { override.returns({exempt: T::Boolean}) } @@ -558,9 +563,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do @@ -609,9 +614,10 @@ module Orb end sig do - params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol).void + params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) + .returns(T.attached_class) end - def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) + def self.new(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) end sig do @@ -644,8 +650,8 @@ module Orb def tax_provider=(_) end - sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).void } - def initialize(tax_exempt:, tax_provider: :taxjar) + sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } + def self.new(tax_exempt:, tax_provider: :taxjar) end sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } @@ -653,13 +659,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration]] + ) + end + private def variants + end end end @@ -688,8 +696,8 @@ module Orb def value=(_) end - sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:) + sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + def self.new(country:, type:, value:) end sig { override.returns({country: Symbol, type: Symbol, value: String}) } @@ -778,8 +786,10 @@ module Orb VN = :VN ZA = :ZA - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -858,8 +868,10 @@ module Orb VN_TIN = :vn_tin ZA_VAT = :za_vat - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customer_delete_params.rbi b/rbi/lib/orb/models/customer_delete_params.rbi index fb2de402..5a86a705 100644 --- a/rbi/lib/orb/models/customer_delete_params.rbi +++ b/rbi/lib/orb/models/customer_delete_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } 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 15aaf5b2..a59fb9fb 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 @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/customer_fetch_params.rbi b/rbi/lib/orb/models/customer_fetch_params.rbi index b074cc28..38dfc7b4 100644 --- a/rbi/lib/orb/models/customer_fetch_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/customer_list_params.rbi b/rbi/lib/orb/models/customer_list_params.rbi index 09f5a25d..f69a8a92 100644 --- a/rbi/lib/orb/models/customer_list_params.rbi +++ b/rbi/lib/orb/models/customer_list_params.rbi @@ -64,9 +64,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, 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 c204d9e3..47183301 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 @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } 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 f1ac0743..cac2266b 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 @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } 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 6936f16b..a87ab5c7 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 @@ -215,9 +215,9 @@ module Orb tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, @@ -313,9 +313,9 @@ module Orb ), excluded: T.nilable(T::Boolean) ) - .void + .returns(T.attached_class) end - def initialize(accounting_providers: nil, excluded: nil) + def self.new(accounting_providers: nil, excluded: nil) end sig do @@ -349,8 +349,8 @@ module Orb def provider_type=(_) end - sig { params(external_provider_id: String, provider_type: String).void } - def initialize(external_provider_id:, provider_type:) + sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } + def self.new(external_provider_id:, provider_type:) end sig { override.returns({external_provider_id: String, provider_type: String}) } @@ -417,9 +417,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do @@ -456,8 +456,11 @@ module Orb def parent_customer_id=(_) end - sig { params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)).void } - def initialize(child_customer_ids: nil, parent_customer_id: nil) + sig do + params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)) + .returns(T.attached_class) + end + def self.new(child_customer_ids: nil, parent_customer_id: nil) end sig do @@ -476,8 +479,10 @@ module Orb STRIPE_INVOICE = T.let(:stripe_invoice, T.nilable(Symbol)) NETSUITE = T.let(:netsuite, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -490,8 +495,8 @@ module Orb def exempt=(_) end - sig { params(exempt: T::Boolean).void } - def initialize(exempt:) + sig { params(exempt: T::Boolean).returns(T.attached_class) } + def self.new(exempt:) end sig { override.returns({exempt: T::Boolean}) } @@ -557,9 +562,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do @@ -608,9 +613,10 @@ module Orb end sig do - params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol).void + params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) + .returns(T.attached_class) end - def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) + def self.new(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) end sig do @@ -643,8 +649,8 @@ module Orb def tax_provider=(_) end - sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).void } - def initialize(tax_exempt:, tax_provider: :taxjar) + sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } + def self.new(tax_exempt:, tax_provider: :taxjar) end sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } @@ -652,13 +658,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration]] + ) + end + private def variants + end end end @@ -687,8 +695,8 @@ module Orb def value=(_) end - sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:) + sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + def self.new(country:, type:, value:) end sig { override.returns({country: Symbol, type: Symbol, value: String}) } @@ -777,8 +785,10 @@ module Orb VN = :VN ZA = :ZA - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -857,8 +867,10 @@ module Orb VN_TIN = :vn_tin ZA_VAT = :za_vat - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customer_update_params.rbi b/rbi/lib/orb/models/customer_update_params.rbi index 700cc5f3..988145a9 100644 --- a/rbi/lib/orb/models/customer_update_params.rbi +++ b/rbi/lib/orb/models/customer_update_params.rbi @@ -215,9 +215,9 @@ module Orb tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, @@ -305,9 +305,9 @@ module Orb accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) ) - .void + .returns(T.attached_class) end - def initialize(accounting_providers: nil, excluded: nil) + def self.new(accounting_providers: nil, excluded: nil) end sig do @@ -339,8 +339,8 @@ module Orb def provider_type=(_) end - sig { params(external_provider_id: String, provider_type: String).void } - def initialize(external_provider_id:, provider_type:) + sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } + def self.new(external_provider_id:, provider_type:) end sig { override.returns({external_provider_id: String, provider_type: String}) } @@ -407,9 +407,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do @@ -446,8 +446,11 @@ module Orb def parent_customer_id=(_) end - sig { params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)).void } - def initialize(child_customer_ids: nil, parent_customer_id: nil) + sig do + params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)) + .returns(T.attached_class) + end + def self.new(child_customer_ids: nil, parent_customer_id: nil) end sig do @@ -466,8 +469,10 @@ module Orb STRIPE_INVOICE = T.let(:stripe_invoice, T.nilable(Symbol)) NETSUITE = T.let(:netsuite, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -480,8 +485,8 @@ module Orb def exempt=(_) end - sig { params(exempt: T::Boolean).void } - def initialize(exempt:) + sig { params(exempt: T::Boolean).returns(T.attached_class) } + def self.new(exempt:) end sig { override.returns({exempt: T::Boolean}) } @@ -547,9 +552,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) end sig do @@ -598,9 +603,10 @@ module Orb end sig do - params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol).void + params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) + .returns(T.attached_class) end - def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) + def self.new(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) end sig do @@ -633,8 +639,8 @@ module Orb def tax_provider=(_) end - sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).void } - def initialize(tax_exempt:, tax_provider: :taxjar) + sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } + def self.new(tax_exempt:, tax_provider: :taxjar) end sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } @@ -642,13 +648,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [Symbol, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration]] + ) + end + private def variants + end end end @@ -677,8 +685,8 @@ module Orb def value=(_) end - sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:) + sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + def self.new(country:, type:, value:) end sig { override.returns({country: Symbol, type: Symbol, value: String}) } @@ -767,8 +775,10 @@ module Orb VN = :VN ZA = :ZA - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -847,8 +857,10 @@ module Orb VN_TIN = :vn_tin ZA_VAT = :za_vat - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi index 0e32b0e8..726b4869 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi @@ -38,9 +38,9 @@ module Orb description: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(amount:, type:, description: nil, request_options: {}) + def self.new(amount:, type:, description: nil, request_options: {}) end sig do @@ -63,8 +63,10 @@ module Orb INCREMENT = :increment DECREMENT = :decrement - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi index a1ae1d60..bf6a1e9c 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi @@ -103,9 +103,9 @@ module Orb starting_balance: String, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, action:, amount:, @@ -152,8 +152,10 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -166,8 +168,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -184,8 +186,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -199,8 +201,10 @@ module Orb INCREMENT = :increment DECREMENT = :decrement - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi index 0cf79a97..f74155a3 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi @@ -65,9 +65,9 @@ module Orb operation_time_lte: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cursor: nil, limit: nil, operation_time_gt: nil, 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 e1e1a4e1..ac24264b 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi @@ -103,9 +103,9 @@ module Orb starting_balance: String, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, action:, amount:, @@ -152,8 +152,10 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -166,8 +168,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -184,8 +186,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -199,8 +201,10 @@ module Orb INCREMENT = :increment DECREMENT = :decrement - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi index 1967c032..03c784da 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 @@ -47,15 +47,9 @@ module Orb view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -79,8 +73,10 @@ module Orb PERIODIC = T.let(:periodic, T.nilable(Symbol)) CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi index 34d6d4be..9325c535 100644 --- a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi @@ -15,8 +15,11 @@ module Orb def data=(_) end - sig { params(data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]).void } - def initialize(data:) + sig do + params(data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) + .returns(T.attached_class) + end + def self.new(data:) end sig { override.returns({data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]}) } @@ -75,9 +78,9 @@ module Orb timeframe_start: Time, total: String ) - .void + .returns(T.attached_class) end - def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) + def self.new(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) end sig do @@ -271,9 +274,9 @@ module Orb total: String, quantity: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize(price:, price_id:, subtotal:, total:, quantity: nil) + def self.new(price:, price_id:, subtotal:, total:, quantity: nil) end sig do diff --git a/rbi/lib/orb/models/customers/cost_list_params.rbi b/rbi/lib/orb/models/customers/cost_list_params.rbi index 123fb8f0..118a5b47 100644 --- a/rbi/lib/orb/models/customers/cost_list_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_params.rbi @@ -47,15 +47,9 @@ module Orb view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -79,8 +73,10 @@ module Orb PERIODIC = T.let(:periodic, T.nilable(Symbol)) CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_response.rbi b/rbi/lib/orb/models/customers/cost_list_response.rbi index 51a7b606..dfe00f8b 100644 --- a/rbi/lib/orb/models/customers/cost_list_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_response.rbi @@ -15,8 +15,8 @@ module Orb def data=(_) end - sig { params(data: T::Array[Orb::Models::Customers::CostListResponse::Data]).void } - def initialize(data:) + sig { params(data: T::Array[Orb::Models::Customers::CostListResponse::Data]).returns(T.attached_class) } + def self.new(data:) end sig { override.returns({data: T::Array[Orb::Models::Customers::CostListResponse::Data]}) } @@ -75,9 +75,9 @@ module Orb timeframe_start: Time, total: String ) - .void + .returns(T.attached_class) end - def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) + def self.new(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) end sig do @@ -271,9 +271,9 @@ module Orb total: String, quantity: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize(price:, price_id:, subtotal:, total:, quantity: nil) + def self.new(price:, price_id:, subtotal:, total:, quantity: nil) end sig do 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 2c28348f..62f6176c 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 @@ -47,9 +47,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) + def self.new(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) end sig do 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 d828b3a2..1cbace3d 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 @@ -70,17 +70,9 @@ module Orb per_unit_cost_basis: T.nilable(String), status: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -106,8 +98,10 @@ module Orb ACTIVE = :active PENDING_PAYMENT = :pending_payment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credit_list_params.rbi b/rbi/lib/orb/models/customers/credit_list_params.rbi index ab2110c7..4899b93f 100644 --- a/rbi/lib/orb/models/customers/credit_list_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_params.rbi @@ -47,9 +47,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) + def self.new(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/customers/credit_list_response.rbi b/rbi/lib/orb/models/customers/credit_list_response.rbi index 0560a765..5d41ea1c 100644 --- a/rbi/lib/orb/models/customers/credit_list_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_response.rbi @@ -70,17 +70,9 @@ module Orb per_unit_cost_basis: T.nilable(String), status: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -106,8 +98,10 @@ module Orb ACTIVE = :active PENDING_PAYMENT = :pending_payment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi index b1ddb590..0e2190d6 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 @@ -128,9 +128,9 @@ module Orb void_reason: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount:, entry_type:, expiry_date:, @@ -175,8 +175,10 @@ module Orb AMENDMENT = :amendment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -220,9 +222,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -245,8 +247,10 @@ module Orb REFUND = T.let(:refund, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi index 4418a9e9..3569313b 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 @@ -150,9 +150,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -218,9 +218,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -253,8 +254,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -268,8 +269,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -444,9 +447,9 @@ module Orb price_id: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -518,9 +521,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -553,8 +557,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -568,8 +572,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -726,9 +732,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -796,9 +802,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -831,8 +838,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -846,8 +853,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -995,9 +1004,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1063,9 +1072,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1098,8 +1108,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1113,8 +1123,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1274,9 +1286,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1346,9 +1358,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1381,8 +1394,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1396,8 +1409,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1572,9 +1587,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1646,9 +1661,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1681,8 +1697,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1696,8 +1712,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1845,9 +1863,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1913,9 +1931,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1948,8 +1967,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1963,19 +1982,23 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry]] + ) + end + private def variants + end 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 557d1ea5..551ab9d9 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 @@ -126,9 +126,9 @@ module Orb void_reason: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount:, entry_type:, expiry_date:, @@ -173,8 +173,10 @@ module Orb AMENDMENT = :amendment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -218,9 +220,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -243,8 +245,10 @@ module Orb REFUND = T.let(:refund, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi index 58563497..a6989fdf 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 @@ -134,9 +134,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -202,9 +202,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -237,8 +238,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -252,8 +253,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -412,9 +415,9 @@ module Orb price_id: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -486,9 +489,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -521,8 +525,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -536,8 +540,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -688,9 +694,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -758,9 +764,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -793,8 +800,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -808,8 +815,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -957,9 +966,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1025,9 +1034,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1060,8 +1070,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1075,8 +1085,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1226,9 +1238,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1298,9 +1310,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1333,8 +1346,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1348,8 +1361,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1510,9 +1525,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1584,9 +1599,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1619,8 +1635,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1634,8 +1650,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1767,9 +1785,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1835,9 +1853,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1870,8 +1889,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1885,19 +1904,23 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry]] + ) + end + private def variants + end 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 bcbf0b98..9e16f148 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 @@ -102,9 +102,9 @@ module Orb minimum_amount: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, @@ -146,8 +146,10 @@ module Orb COMMITTED = T.let(:committed, T.nilable(Symbol)) PENDING = T.let(:pending, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -162,8 +164,10 @@ module Orb VOID_INITIATED = T.let(:void_initiated, T.nilable(Symbol)) AMENDMENT = T.let(:amendment, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi index fa9322ba..0898f1d8 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 @@ -142,9 +142,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -210,9 +210,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -245,8 +246,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -260,8 +261,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -428,9 +431,9 @@ module Orb price_id: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -502,9 +505,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -537,8 +541,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -552,8 +556,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -710,9 +716,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -780,9 +786,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -815,8 +822,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -830,8 +837,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -979,9 +988,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1047,9 +1056,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1082,8 +1092,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1097,8 +1107,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1248,9 +1260,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1320,9 +1332,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1355,8 +1368,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1370,8 +1383,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1546,9 +1561,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1620,9 +1635,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1655,8 +1671,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1670,8 +1686,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1811,9 +1829,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1879,9 +1897,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1914,8 +1933,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1929,19 +1948,23 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry]] + ) + end + private def variants + end 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 38c28533..b48ceed1 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi @@ -102,9 +102,9 @@ module Orb minimum_amount: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, @@ -146,8 +146,10 @@ module Orb COMMITTED = T.let(:committed, T.nilable(Symbol)) PENDING = T.let(:pending, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -162,8 +164,10 @@ module Orb VOID_INITIATED = T.let(:void_initiated, T.nilable(Symbol)) AMENDMENT = T.let(:amendment, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi index e314d630..176eccf8 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi @@ -134,9 +134,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -202,9 +202,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -237,8 +238,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -252,8 +253,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -412,9 +415,9 @@ module Orb price_id: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -486,9 +489,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -521,8 +525,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -536,8 +540,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -678,9 +684,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -748,9 +754,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -783,8 +790,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -798,8 +805,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -931,9 +940,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -999,9 +1008,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1034,8 +1044,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1049,8 +1059,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1200,9 +1212,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1272,9 +1284,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1307,8 +1320,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1322,8 +1335,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1482,9 +1497,9 @@ module Orb void_reason: T.nilable(String), entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1556,9 +1571,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1591,8 +1607,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1606,8 +1622,10 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1739,9 +1757,9 @@ module Orb starting_balance: Float, entry_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, created_at:, @@ -1807,9 +1825,10 @@ module Orb end sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void + params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, expiry_date:, per_unit_cost_basis:) + def self.new(id:, expiry_date:, per_unit_cost_basis:) end sig do @@ -1842,8 +1861,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -1857,19 +1876,23 @@ module Orb COMMITTED = :committed PENDING = :pending - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry], [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry]] + ) + end + private def variants + end 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 18579423..282d9378 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 @@ -87,9 +87,9 @@ module Orb expires_after_unit: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount:, currency:, invoice_settings:, @@ -161,9 +161,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -187,8 +187,10 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) MONTH = T.let(:month, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi index 57300e69..af82aadf 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 @@ -83,9 +83,9 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, currency:, @@ -155,9 +155,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -181,8 +181,10 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) MONTH = T.let(:month, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi index 617f11c0..828f9106 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 @@ -87,9 +87,9 @@ module Orb expires_after_unit: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount:, currency:, invoice_settings:, @@ -161,9 +161,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -187,8 +187,10 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) MONTH = T.let(:month, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi index 99266258..f6ee64a5 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 @@ -83,9 +83,9 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, currency:, @@ -155,9 +155,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -181,8 +181,10 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) MONTH = T.let(:month, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi index 0c84ec15..e9d3992b 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 @@ -21,9 +21,9 @@ module Orb external_customer_id: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(external_customer_id:, request_options: {}) + def self.new(external_customer_id:, request_options: {}) end sig { override.returns({external_customer_id: String, request_options: Orb::RequestOptions}) } 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 80d9fc42..aef729a6 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 @@ -23,9 +23,10 @@ module Orb Orb::RequestOptions, T::Hash[Symbol, T.anything] ) - ).void + ) + .returns(T.attached_class) end - def initialize(customer_id:, request_options: {}) + def self.new(customer_id:, request_options: {}) end sig { override.returns({customer_id: String, request_options: Orb::RequestOptions}) } 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 32ccbe94..cd2cd05b 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 @@ -30,9 +30,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do 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 8d17536e..d1490631 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 @@ -83,9 +83,9 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, currency:, @@ -155,9 +155,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -181,8 +181,10 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) MONTH = T.let(:month, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi index ce387c73..e723598b 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 @@ -30,9 +30,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do 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 c5171a6d..b2b59e48 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 @@ -83,9 +83,9 @@ module Orb expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, currency:, @@ -155,9 +155,9 @@ module Orb memo: T.nilable(String), require_successful_payment: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + def self.new(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) end sig do @@ -181,8 +181,10 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) MONTH = T.let(:month, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_group.rbi b/rbi/lib/orb/models/dimensional_price_group.rbi index 4bed5d5e..42afb743 100644 --- a/rbi/lib/orb/models/dimensional_price_group.rbi +++ b/rbi/lib/orb/models/dimensional_price_group.rbi @@ -60,16 +60,9 @@ module Orb metadata: T::Hash[Symbol, String], name: String ) - .void - end - def initialize( - id:, - billable_metric_id:, - dimensions:, - external_dimensional_price_group_id:, - metadata:, - name: - ) + .returns(T.attached_class) + end + 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 d700542a..c57f67fc 100644 --- a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi @@ -58,9 +58,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( billable_metric_id:, dimensions:, name:, 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 478cf18b..bc4f039a 100644 --- a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi @@ -28,9 +28,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do 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 17a62501..6b641d32 100644 --- a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/dimensional_price_groups.rbi b/rbi/lib/orb/models/dimensional_price_groups.rbi index a5156ccb..6afd9756 100644 --- a/rbi/lib/orb/models/dimensional_price_groups.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups.rbi @@ -27,9 +27,9 @@ module Orb data: T::Array[Orb::Models::DimensionalPriceGroup], pagination_metadata: Orb::Models::PaginationMetadata ) - .void + .returns(T.attached_class) end - def initialize(data:, pagination_metadata:) + def self.new(data:, pagination_metadata:) end 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 bcf47ff3..ea1ad495 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 @@ -7,8 +7,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/discount.rbi b/rbi/lib/orb/models/discount.rbi index db8f4ab5..feaafa69 100644 --- a/rbi/lib/orb/models/discount.rbi +++ b/rbi/lib/orb/models/discount.rbi @@ -5,13 +5,15 @@ module Orb class Discount < Orb::Union abstract! - sig do - override - .returns( - [[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::TrialDiscount], [Symbol, Orb::Models::UsageDiscount], [Symbol, Orb::Models::AmountDiscount]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::TrialDiscount], [Symbol, Orb::Models::UsageDiscount], [Symbol, Orb::Models::AmountDiscount]] + ) + end + private def variants + end end end end diff --git a/rbi/lib/orb/models/evaluate_price_group.rbi b/rbi/lib/orb/models/evaluate_price_group.rbi index 6676213b..9c5fbc0c 100644 --- a/rbi/lib/orb/models/evaluate_price_group.rbi +++ b/rbi/lib/orb/models/evaluate_price_group.rbi @@ -36,13 +36,10 @@ module Orb end sig do - params( - amount: String, - grouping_values: T::Array[T.any(String, Float, T::Boolean)], - quantity: Float - ).void + params(amount: String, grouping_values: T::Array[T.any(String, Float, T::Boolean)], quantity: Float) + .returns(T.attached_class) end - def initialize(amount:, grouping_values:, quantity:) + def self.new(amount:, grouping_values:, quantity:) end sig do @@ -59,8 +56,10 @@ module Orb class GroupingValue < Orb::Union abstract! - sig { override.returns([[NilClass, String], [NilClass, Float], [NilClass, T::Boolean]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, String], [NilClass, Float], [NilClass, T::Boolean]]) } + private def variants + end end end end diff --git a/rbi/lib/orb/models/event_deprecate_params.rbi b/rbi/lib/orb/models/event_deprecate_params.rbi index abad8893..225cdf89 100644 --- a/rbi/lib/orb/models/event_deprecate_params.rbi +++ b/rbi/lib/orb/models/event_deprecate_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/event_deprecate_response.rbi b/rbi/lib/orb/models/event_deprecate_response.rbi index 582eed67..70a23041 100644 --- a/rbi/lib/orb/models/event_deprecate_response.rbi +++ b/rbi/lib/orb/models/event_deprecate_response.rbi @@ -11,8 +11,8 @@ module Orb def deprecated=(_) end - sig { params(deprecated: String).void } - def initialize(deprecated:) + sig { params(deprecated: String).returns(T.attached_class) } + def self.new(deprecated:) end sig { override.returns({deprecated: String}) } diff --git a/rbi/lib/orb/models/event_ingest_params.rbi b/rbi/lib/orb/models/event_ingest_params.rbi index 9adb08dd..21bd3a3d 100644 --- a/rbi/lib/orb/models/event_ingest_params.rbi +++ b/rbi/lib/orb/models/event_ingest_params.rbi @@ -40,9 +40,9 @@ module Orb debug: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(events:, backfill_id: nil, debug: nil, request_options: {}) + def self.new(events:, backfill_id: nil, debug: nil, request_options: {}) end sig do @@ -117,16 +117,9 @@ module Orb customer_id: T.nilable(String), external_customer_id: T.nilable(String) ) - .void - end - def initialize( - event_name:, - idempotency_key:, - properties:, - timestamp:, - customer_id: nil, - external_customer_id: nil - ) + .returns(T.attached_class) + end + 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_ingest_response.rbi b/rbi/lib/orb/models/event_ingest_response.rbi index df0c820a..4041a66c 100644 --- a/rbi/lib/orb/models/event_ingest_response.rbi +++ b/rbi/lib/orb/models/event_ingest_response.rbi @@ -30,9 +30,9 @@ module Orb validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], debug: T.nilable(Orb::Models::EventIngestResponse::Debug) ) - .void + .returns(T.attached_class) end - def initialize(validation_failed:, debug: nil) + def self.new(validation_failed:, debug: nil) end sig do @@ -64,8 +64,8 @@ module Orb def validation_errors=(_) end - sig { params(idempotency_key: String, validation_errors: T::Array[String]).void } - def initialize(idempotency_key:, validation_errors:) + sig { params(idempotency_key: String, validation_errors: T::Array[String]).returns(T.attached_class) } + def self.new(idempotency_key:, validation_errors:) end sig { override.returns({idempotency_key: String, validation_errors: T::Array[String]}) } @@ -90,8 +90,8 @@ module Orb def ingested=(_) end - sig { params(duplicate: T::Array[String], ingested: T::Array[String]).void } - def initialize(duplicate:, ingested:) + sig { params(duplicate: T::Array[String], ingested: T::Array[String]).returns(T.attached_class) } + def self.new(duplicate:, ingested:) end sig { override.returns({duplicate: T::Array[String], ingested: T::Array[String]}) } diff --git a/rbi/lib/orb/models/event_search_params.rbi b/rbi/lib/orb/models/event_search_params.rbi index 1113fbfe..8128b00a 100644 --- a/rbi/lib/orb/models/event_search_params.rbi +++ b/rbi/lib/orb/models/event_search_params.rbi @@ -37,9 +37,9 @@ module Orb timeframe_start: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}) + def self.new(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/event_search_response.rbi b/rbi/lib/orb/models/event_search_response.rbi index b2197cd0..28a860a3 100644 --- a/rbi/lib/orb/models/event_search_response.rbi +++ b/rbi/lib/orb/models/event_search_response.rbi @@ -14,8 +14,8 @@ module Orb def data=(_) end - sig { params(data: T::Array[Orb::Models::EventSearchResponse::Data]).void } - def initialize(data:) + sig { params(data: T::Array[Orb::Models::EventSearchResponse::Data]).returns(T.attached_class) } + def self.new(data:) end sig { override.returns({data: T::Array[Orb::Models::EventSearchResponse::Data]}) } @@ -89,17 +89,9 @@ module Orb properties: T.anything, timestamp: Time ) - .void - end - def initialize( - id:, - customer_id:, - deprecated:, - event_name:, - external_customer_id:, - properties:, - timestamp: - ) + .returns(T.attached_class) + end + 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 883259aa..b444906a 100644 --- a/rbi/lib/orb/models/event_update_params.rbi +++ b/rbi/lib/orb/models/event_update_params.rbi @@ -55,16 +55,9 @@ module Orb external_customer_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( - 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/event_update_response.rbi b/rbi/lib/orb/models/event_update_response.rbi index d77188be..4231fb39 100644 --- a/rbi/lib/orb/models/event_update_response.rbi +++ b/rbi/lib/orb/models/event_update_response.rbi @@ -11,8 +11,8 @@ module Orb def amended=(_) end - sig { params(amended: String).void } - def initialize(amended:) + sig { params(amended: String).returns(T.attached_class) } + def self.new(amended:) end sig { override.returns({amended: String}) } diff --git a/rbi/lib/orb/models/events/backfill_close_params.rbi b/rbi/lib/orb/models/events/backfill_close_params.rbi index 6bf8bc79..1468d57f 100644 --- a/rbi/lib/orb/models/events/backfill_close_params.rbi +++ b/rbi/lib/orb/models/events/backfill_close_params.rbi @@ -7,8 +7,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/events/backfill_close_response.rbi b/rbi/lib/orb/models/events/backfill_close_response.rbi index 15811b62..778ad3a0 100644 --- a/rbi/lib/orb/models/events/backfill_close_response.rbi +++ b/rbi/lib/orb/models/events/backfill_close_response.rbi @@ -106,9 +106,9 @@ module Orb timeframe_start: Time, deprecation_filter: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, close_time:, created_at:, @@ -152,8 +152,10 @@ module Orb PENDING_REVERT = :pending_revert REVERTED = :reverted - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_create_params.rbi b/rbi/lib/orb/models/events/backfill_create_params.rbi index 9aa1c677..c262cdb3 100644 --- a/rbi/lib/orb/models/events/backfill_create_params.rbi +++ b/rbi/lib/orb/models/events/backfill_create_params.rbi @@ -74,9 +74,9 @@ module Orb replace_existing_events: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( timeframe_end:, timeframe_start:, close_time: nil, diff --git a/rbi/lib/orb/models/events/backfill_create_response.rbi b/rbi/lib/orb/models/events/backfill_create_response.rbi index 8f7e0aea..9ebf0b21 100644 --- a/rbi/lib/orb/models/events/backfill_create_response.rbi +++ b/rbi/lib/orb/models/events/backfill_create_response.rbi @@ -106,9 +106,9 @@ module Orb timeframe_start: Time, deprecation_filter: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, close_time:, created_at:, @@ -152,8 +152,10 @@ module Orb PENDING_REVERT = :pending_revert REVERTED = :reverted - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_fetch_params.rbi b/rbi/lib/orb/models/events/backfill_fetch_params.rbi index 1e97a9c1..3948368c 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_params.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_params.rbi @@ -7,8 +7,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/events/backfill_fetch_response.rbi b/rbi/lib/orb/models/events/backfill_fetch_response.rbi index b8a5636f..2028ab00 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_response.rbi @@ -106,9 +106,9 @@ module Orb timeframe_start: Time, deprecation_filter: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, close_time:, created_at:, @@ -152,8 +152,10 @@ module Orb PENDING_REVERT = :pending_revert REVERTED = :reverted - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_list_params.rbi b/rbi/lib/orb/models/events/backfill_list_params.rbi index 20f1ff9d..e0e3087c 100644 --- a/rbi/lib/orb/models/events/backfill_list_params.rbi +++ b/rbi/lib/orb/models/events/backfill_list_params.rbi @@ -29,9 +29,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/events/backfill_list_response.rbi b/rbi/lib/orb/models/events/backfill_list_response.rbi index 3beb2761..2d1593e5 100644 --- a/rbi/lib/orb/models/events/backfill_list_response.rbi +++ b/rbi/lib/orb/models/events/backfill_list_response.rbi @@ -106,9 +106,9 @@ module Orb timeframe_start: Time, deprecation_filter: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, close_time:, created_at:, @@ -152,8 +152,10 @@ module Orb PENDING_REVERT = :pending_revert REVERTED = :reverted - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_revert_params.rbi b/rbi/lib/orb/models/events/backfill_revert_params.rbi index ec88cd25..bd219af5 100644 --- a/rbi/lib/orb/models/events/backfill_revert_params.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_params.rbi @@ -7,8 +7,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/events/backfill_revert_response.rbi b/rbi/lib/orb/models/events/backfill_revert_response.rbi index 501598fc..e6751e19 100644 --- a/rbi/lib/orb/models/events/backfill_revert_response.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_response.rbi @@ -106,9 +106,9 @@ module Orb timeframe_start: Time, deprecation_filter: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, close_time:, created_at:, @@ -152,8 +152,10 @@ module Orb PENDING_REVERT = :pending_revert REVERTED = :reverted - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/events/event_volumes.rbi b/rbi/lib/orb/models/events/event_volumes.rbi index 3b856b30..2d05d783 100644 --- a/rbi/lib/orb/models/events/event_volumes.rbi +++ b/rbi/lib/orb/models/events/event_volumes.rbi @@ -17,8 +17,8 @@ module Orb def data=(_) end - sig { params(data: T::Array[Orb::Models::Events::EventVolumes::Data]).void } - def initialize(data:) + sig { params(data: T::Array[Orb::Models::Events::EventVolumes::Data]).returns(T.attached_class) } + def self.new(data:) end sig { override.returns({data: T::Array[Orb::Models::Events::EventVolumes::Data]}) } @@ -50,8 +50,8 @@ module Orb def timeframe_start=(_) end - sig { params(count: Integer, timeframe_end: Time, timeframe_start: Time).void } - def initialize(count:, timeframe_end:, timeframe_start:) + sig { params(count: Integer, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) } + def self.new(count:, timeframe_end:, timeframe_start:) end sig { override.returns({count: Integer, timeframe_end: Time, timeframe_start: Time}) } diff --git a/rbi/lib/orb/models/events/volume_list_params.rbi b/rbi/lib/orb/models/events/volume_list_params.rbi index dc0200ce..1d389d76 100644 --- a/rbi/lib/orb/models/events/volume_list_params.rbi +++ b/rbi/lib/orb/models/events/volume_list_params.rbi @@ -47,9 +47,9 @@ module Orb timeframe_end: Time, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}) + def self.new(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index fc1bafe7..6d496468 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -404,9 +404,9 @@ module Orb voided_at: T.nilable(Time), will_auto_issue: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_due:, auto_collection:, @@ -542,9 +542,9 @@ module Orb num_attempts: T.nilable(Integer), previously_attempted_at: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) + def self.new(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) end sig do @@ -620,9 +620,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city:, country:, line1:, line2:, postal_code:, state:) + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end sig do @@ -709,9 +709,9 @@ module Orb type: String, voided_at: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) + def self.new(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) end sig do @@ -749,8 +749,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -858,9 +858,9 @@ module Orb starting_balance: String, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, action:, amount:, @@ -907,8 +907,10 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -921,8 +923,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -939,8 +941,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -954,8 +956,10 @@ module Orb INCREMENT = :increment DECREMENT = :decrement - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -985,8 +989,8 @@ module Orb def value=(_) end - sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:) + sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + def self.new(country:, type:, value:) end sig { override.returns({country: Symbol, type: Symbol, value: String}) } @@ -1075,8 +1079,10 @@ module Orb VN = :VN ZA = :ZA - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1155,8 +1161,10 @@ module Orb VN_TIN = :vn_tin ZA_VAT = :za_vat - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1168,8 +1176,10 @@ module Orb PARTIAL = :partial ONE_OFF = :one_off - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1636,9 +1646,9 @@ module Orb tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount], usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, adjusted_subtotal:, adjustments:, @@ -1818,9 +1828,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -1916,9 +1926,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, amount_discount:, @@ -2014,9 +2024,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -2121,9 +2131,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -2221,9 +2231,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -2252,13 +2262,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment]] + ) + end + private def variants + end end end @@ -2279,8 +2291,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -2305,8 +2319,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -2381,9 +2397,9 @@ module Orb quantity: Float, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) + def self.new(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) end sig do @@ -2419,8 +2435,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -2437,8 +2453,8 @@ module Orb def dimension_values=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)]).void } - def initialize(dimension_values:) + sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } + def self.new(dimension_values:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } @@ -2511,9 +2527,9 @@ module Orb tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) + def self.new(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) end sig do @@ -2549,8 +2565,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -2583,8 +2599,14 @@ module Orb def unit_amount=(_) end - sig { params(first_unit: Float, last_unit: T.nilable(Float), unit_amount: String).void } - def initialize(first_unit:, last_unit:, unit_amount:) + sig do + params( + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + ).returns(T.attached_class) + end + def self.new(first_unit:, last_unit:, unit_amount:) end sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } @@ -2645,9 +2667,9 @@ module Orb quantity: Float, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") + def self.new(amount:, grouping:, name:, quantity:, type: :"'null'") end sig do @@ -2682,8 +2704,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -2692,13 +2714,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem]] + ) + end + private def variants + end end end @@ -2728,9 +2752,10 @@ module Orb end sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void + params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) + .returns(T.attached_class) end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + def self.new(amount:, tax_rate_description:, tax_rate_percentage:) end sig do @@ -2764,8 +2789,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -2790,8 +2817,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -2857,9 +2886,9 @@ module Orb payment_provider_id: T.nilable(String), succeeded: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) + def self.new(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) end sig do @@ -2883,8 +2912,10 @@ module Orb STRIPE = T.let(:stripe, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2947,9 +2978,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city:, country:, line1:, line2:, postal_code:, state:) + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end sig do @@ -2978,8 +3009,10 @@ module Orb VOID = :void DRAFT = :draft - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2992,8 +3025,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } diff --git a/rbi/lib/orb/models/invoice_create_params.rbi b/rbi/lib/orb/models/invoice_create_params.rbi index 179370da..69442809 100644 --- a/rbi/lib/orb/models/invoice_create_params.rbi +++ b/rbi/lib/orb/models/invoice_create_params.rbi @@ -145,9 +145,9 @@ module Orb will_auto_issue: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( currency:, invoice_date:, line_items:, @@ -260,9 +260,9 @@ module Orb start_date: Date, unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig ) - .void + .returns(T.attached_class) end - def initialize(end_date:, item_id:, model_type:, name:, quantity:, start_date:, unit_config:) + def self.new(end_date:, item_id:, model_type:, name:, quantity:, start_date:, unit_config:) end sig do @@ -287,8 +287,10 @@ module Orb UNIT = :unit - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -301,8 +303,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } diff --git a/rbi/lib/orb/models/invoice_fetch_params.rbi b/rbi/lib/orb/models/invoice_fetch_params.rbi index 75264c78..0dd5cafe 100644 --- a/rbi/lib/orb/models/invoice_fetch_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi index 4e5439d7..b8ac54fb 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi @@ -19,9 +19,9 @@ module Orb subscription_id: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(subscription_id:, request_options: {}) + def self.new(subscription_id:, request_options: {}) end sig { override.returns({subscription_id: String, request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index a3f190d5..fd141197 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -422,9 +422,9 @@ module Orb voided_at: T.nilable(Time), will_auto_issue: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_due:, auto_collection:, @@ -560,9 +560,9 @@ module Orb num_attempts: T.nilable(Integer), previously_attempted_at: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) + def self.new(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) end sig do @@ -638,9 +638,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city:, country:, line1:, line2:, postal_code:, state:) + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end sig do @@ -727,9 +727,9 @@ module Orb type: String, voided_at: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) + def self.new(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) end sig do @@ -767,8 +767,8 @@ module Orb def external_customer_id=(_) end - sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:) + sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } + def self.new(id:, external_customer_id:) end sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } @@ -876,9 +876,9 @@ module Orb starting_balance: String, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, action:, amount:, @@ -925,8 +925,10 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -939,8 +941,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -957,8 +959,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -972,8 +974,10 @@ module Orb INCREMENT = :increment DECREMENT = :decrement - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1003,8 +1007,8 @@ module Orb def value=(_) end - sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:) + sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + def self.new(country:, type:, value:) end sig { override.returns({country: Symbol, type: Symbol, value: String}) } @@ -1093,8 +1097,10 @@ module Orb VN = :VN ZA = :ZA - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1173,8 +1179,10 @@ module Orb VN_TIN = :vn_tin ZA_VAT = :za_vat - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1186,8 +1194,10 @@ module Orb PARTIAL = :partial ONE_OFF = :one_off - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1654,9 +1664,9 @@ module Orb tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, adjusted_subtotal:, adjustments:, @@ -1836,9 +1846,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -1934,9 +1944,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, amount_discount:, @@ -2032,9 +2042,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -2139,9 +2149,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -2239,9 +2249,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -2270,13 +2280,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment]] + ) + end + private def variants + end end end @@ -2297,8 +2309,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -2323,8 +2337,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -2409,9 +2425,9 @@ module Orb quantity: Float, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) + def self.new(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) end sig do @@ -2447,8 +2463,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -2465,8 +2481,8 @@ module Orb def dimension_values=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)]).void } - def initialize(dimension_values:) + sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } + def self.new(dimension_values:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } @@ -2547,9 +2563,9 @@ module Orb tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) + def self.new(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) end sig do @@ -2585,8 +2601,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -2619,8 +2635,14 @@ module Orb def unit_amount=(_) end - sig { params(first_unit: Float, last_unit: T.nilable(Float), unit_amount: String).void } - def initialize(first_unit:, last_unit:, unit_amount:) + sig do + params( + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + ).returns(T.attached_class) + end + def self.new(first_unit:, last_unit:, unit_amount:) end sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } @@ -2689,9 +2711,9 @@ module Orb quantity: Float, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") + def self.new(amount:, grouping:, name:, quantity:, type: :"'null'") end sig do @@ -2726,8 +2748,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -2736,13 +2758,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem]] + ) + end + private def variants + end end end @@ -2772,9 +2796,10 @@ module Orb end sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void + params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) + .returns(T.attached_class) end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + def self.new(amount:, tax_rate_description:, tax_rate_percentage:) end sig do @@ -2808,8 +2833,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -2834,8 +2861,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -2901,9 +2930,9 @@ module Orb payment_provider_id: T.nilable(String), succeeded: T::Boolean ) - .void + .returns(T.attached_class) end - def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) + def self.new(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) end sig do @@ -2927,8 +2956,10 @@ module Orb STRIPE = T.let(:stripe, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2991,9 +3022,9 @@ module Orb postal_code: T.nilable(String), state: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(city:, country:, line1:, line2:, postal_code:, state:) + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end sig do @@ -3022,8 +3053,10 @@ module Orb VOID = :void DRAFT = :draft - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3036,8 +3069,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } diff --git a/rbi/lib/orb/models/invoice_issue_params.rbi b/rbi/lib/orb/models/invoice_issue_params.rbi index fe09bf61..21f6da32 100644 --- a/rbi/lib/orb/models/invoice_issue_params.rbi +++ b/rbi/lib/orb/models/invoice_issue_params.rbi @@ -19,9 +19,9 @@ module Orb synchronous: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(synchronous: nil, request_options: {}) + def self.new(synchronous: nil, request_options: {}) end sig { override.returns({synchronous: T::Boolean, request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/invoice_level_discount.rbi b/rbi/lib/orb/models/invoice_level_discount.rbi index 3b450b24..77dab074 100644 --- a/rbi/lib/orb/models/invoice_level_discount.rbi +++ b/rbi/lib/orb/models/invoice_level_discount.rbi @@ -5,13 +5,15 @@ module Orb class InvoiceLevelDiscount < Orb::Union abstract! - sig do - override - .returns( - [[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount], [Symbol, Orb::Models::TrialDiscount]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount], [Symbol, Orb::Models::TrialDiscount]] + ) + end + private def variants + end end end end diff --git a/rbi/lib/orb/models/invoice_line_item_create_params.rbi b/rbi/lib/orb/models/invoice_line_item_create_params.rbi index 1a9097a5..b9ed8a0b 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_params.rbi @@ -64,9 +64,9 @@ module Orb start_date: Date, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}) + def self.new(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}) end sig do 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 16d7beb7..b585116d 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -465,9 +465,9 @@ module Orb tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, adjusted_subtotal:, adjustments:, @@ -647,9 +647,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -745,9 +745,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, amount_discount:, @@ -843,9 +843,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -950,9 +950,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -1050,9 +1050,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount:, applies_to_price_ids:, @@ -1081,13 +1081,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment]] + ) + end + private def variants + end end end @@ -1108,8 +1110,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -1134,8 +1138,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -1210,9 +1216,9 @@ module Orb quantity: Float, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) + def self.new(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) end sig do @@ -1248,8 +1254,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -1266,8 +1272,8 @@ module Orb def dimension_values=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)]).void } - def initialize(dimension_values:) + sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } + def self.new(dimension_values:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } @@ -1340,9 +1346,9 @@ module Orb tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) + def self.new(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) end sig do @@ -1378,8 +1384,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -1412,8 +1418,14 @@ module Orb def unit_amount=(_) end - sig { params(first_unit: Float, last_unit: T.nilable(Float), unit_amount: String).void } - def initialize(first_unit:, last_unit:, unit_amount:) + sig do + params( + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + ).returns(T.attached_class) + end + def self.new(first_unit:, last_unit:, unit_amount:) end sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } @@ -1474,9 +1486,9 @@ module Orb quantity: Float, type: Symbol ) - .void + .returns(T.attached_class) end - def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") + def self.new(amount:, grouping:, name:, quantity:, type: :"'null'") end sig do @@ -1511,8 +1523,8 @@ module Orb def value=(_) end - sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:) + sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + def self.new(key:, value:) end sig { override.returns({key: String, value: T.nilable(String)}) } @@ -1521,13 +1533,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem], [Symbol, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem]] + ) + end + private def variants + end end end @@ -1557,9 +1571,10 @@ module Orb end sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void + params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) + .returns(T.attached_class) end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + def self.new(amount:, tax_rate_description:, tax_rate_percentage:) end sig do diff --git a/rbi/lib/orb/models/invoice_list_params.rbi b/rbi/lib/orb/models/invoice_list_params.rbi index 9e0025ce..5766ca4a 100644 --- a/rbi/lib/orb/models/invoice_list_params.rbi +++ b/rbi/lib/orb/models/invoice_list_params.rbi @@ -181,9 +181,9 @@ module Orb subscription_id: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount: nil, amount_gt: nil, amount_lt: nil, @@ -243,8 +243,10 @@ module Orb DUE_DATE = T.let(:due_date, T.nilable(Symbol)) INVOICE_DATE = T.let(:invoice_date, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -257,8 +259,10 @@ module Orb SYNCED = :synced VOID = :void - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/invoice_mark_paid_params.rbi b/rbi/lib/orb/models/invoice_mark_paid_params.rbi index 006af8d5..8649ba72 100644 --- a/rbi/lib/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/lib/orb/models/invoice_mark_paid_params.rbi @@ -37,9 +37,9 @@ module Orb notes: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(payment_received_date:, external_id: nil, notes: nil, request_options: {}) + def self.new(payment_received_date:, external_id: nil, notes: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/invoice_pay_params.rbi b/rbi/lib/orb/models/invoice_pay_params.rbi index bbdb04af..eab4a145 100644 --- a/rbi/lib/orb/models/invoice_pay_params.rbi +++ b/rbi/lib/orb/models/invoice_pay_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/invoice_update_params.rbi b/rbi/lib/orb/models/invoice_update_params.rbi index e4e07c12..50790758 100644 --- a/rbi/lib/orb/models/invoice_update_params.rbi +++ b/rbi/lib/orb/models/invoice_update_params.rbi @@ -22,9 +22,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(metadata: nil, request_options: {}) + def self.new(metadata: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/invoice_void_params.rbi b/rbi/lib/orb/models/invoice_void_params.rbi index 6b8d1edd..0fd67d33 100644 --- a/rbi/lib/orb/models/invoice_void_params.rbi +++ b/rbi/lib/orb/models/invoice_void_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/item.rbi b/rbi/lib/orb/models/item.rbi index a3d350d6..bf75398f 100644 --- a/rbi/lib/orb/models/item.rbi +++ b/rbi/lib/orb/models/item.rbi @@ -45,9 +45,9 @@ module Orb external_connections: T::Array[Orb::Models::Item::ExternalConnection], name: String ) - .void + .returns(T.attached_class) end - def initialize(id:, created_at:, external_connections:, name:) + def self.new(id:, created_at:, external_connections:, name:) end sig do @@ -81,8 +81,8 @@ module Orb def external_entity_id=(_) end - sig { params(external_connection_name: Symbol, external_entity_id: String).void } - def initialize(external_connection_name:, external_entity_id:) + sig { params(external_connection_name: Symbol, external_entity_id: String).returns(T.attached_class) } + def self.new(external_connection_name:, external_entity_id:) end sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } @@ -100,8 +100,10 @@ module Orb AVALARA = :avalara ANROK = :anrok - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/item_create_params.rbi b/rbi/lib/orb/models/item_create_params.rbi index 1625bbdf..3654d238 100644 --- a/rbi/lib/orb/models/item_create_params.rbi +++ b/rbi/lib/orb/models/item_create_params.rbi @@ -15,9 +15,10 @@ module Orb end sig do - params(name: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void + params(name: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + .returns(T.attached_class) end - def initialize(name:, request_options: {}) + def self.new(name:, request_options: {}) end sig { override.returns({name: String, request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/item_fetch_params.rbi b/rbi/lib/orb/models/item_fetch_params.rbi index 3d6243bc..c3eb8e63 100644 --- a/rbi/lib/orb/models/item_fetch_params.rbi +++ b/rbi/lib/orb/models/item_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/item_list_params.rbi b/rbi/lib/orb/models/item_list_params.rbi index a8943cee..49734782 100644 --- a/rbi/lib/orb/models/item_list_params.rbi +++ b/rbi/lib/orb/models/item_list_params.rbi @@ -28,9 +28,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/item_update_params.rbi b/rbi/lib/orb/models/item_update_params.rbi index 85faffd7..d164c2a9 100644 --- a/rbi/lib/orb/models/item_update_params.rbi +++ b/rbi/lib/orb/models/item_update_params.rbi @@ -31,9 +31,9 @@ module Orb name: T.nilable(String), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(external_connections: nil, name: nil, request_options: {}) + def self.new(external_connections: nil, name: nil, request_options: {}) end sig do @@ -66,8 +66,8 @@ module Orb def external_entity_id=(_) end - sig { params(external_connection_name: Symbol, external_entity_id: String).void } - def initialize(external_connection_name:, external_entity_id:) + sig { params(external_connection_name: Symbol, external_entity_id: String).returns(T.attached_class) } + def self.new(external_connection_name:, external_entity_id:) end sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } @@ -85,8 +85,10 @@ module Orb AVALARA = :avalara ANROK = :anrok - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/metric_create_params.rbi b/rbi/lib/orb/models/metric_create_params.rbi index ed757c5f..fb50e778 100644 --- a/rbi/lib/orb/models/metric_create_params.rbi +++ b/rbi/lib/orb/models/metric_create_params.rbi @@ -58,9 +58,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(description:, item_id:, name:, sql:, metadata: nil, request_options: {}) + def self.new(description:, item_id:, name:, sql:, metadata: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/metric_fetch_params.rbi b/rbi/lib/orb/models/metric_fetch_params.rbi index 36c39c66..be0db24c 100644 --- a/rbi/lib/orb/models/metric_fetch_params.rbi +++ b/rbi/lib/orb/models/metric_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/metric_list_params.rbi b/rbi/lib/orb/models/metric_list_params.rbi index 9646d9b3..4be3fc82 100644 --- a/rbi/lib/orb/models/metric_list_params.rbi +++ b/rbi/lib/orb/models/metric_list_params.rbi @@ -64,9 +64,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, diff --git a/rbi/lib/orb/models/metric_update_params.rbi b/rbi/lib/orb/models/metric_update_params.rbi index 9ae90efa..470cfa73 100644 --- a/rbi/lib/orb/models/metric_update_params.rbi +++ b/rbi/lib/orb/models/metric_update_params.rbi @@ -22,9 +22,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(metadata: nil, request_options: {}) + def self.new(metadata: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/pagination_metadata.rbi b/rbi/lib/orb/models/pagination_metadata.rbi index b7df9f31..ae361feb 100644 --- a/rbi/lib/orb/models/pagination_metadata.rbi +++ b/rbi/lib/orb/models/pagination_metadata.rbi @@ -19,8 +19,8 @@ module Orb def next_cursor=(_) end - sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).void } - def initialize(has_more:, next_cursor:) + sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns(T.attached_class) } + def self.new(has_more:, next_cursor:) end sig { override.returns({has_more: T::Boolean, next_cursor: T.nilable(String)}) } diff --git a/rbi/lib/orb/models/percentage_discount.rbi b/rbi/lib/orb/models/percentage_discount.rbi index 3536e607..475e1815 100644 --- a/rbi/lib/orb/models/percentage_discount.rbi +++ b/rbi/lib/orb/models/percentage_discount.rbi @@ -42,9 +42,9 @@ module Orb percentage_discount: Float, reason: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(applies_to_price_ids:, discount_type:, percentage_discount:, reason: nil) + def self.new(applies_to_price_ids:, discount_type:, percentage_discount:, reason: nil) end sig do @@ -66,8 +66,10 @@ module Orb PERCENTAGE = :percentage - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index d3d3dbbc..5962062d 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -442,9 +442,9 @@ module Orb trial_config: Orb::Models::Plan::TrialConfig, version: Integer ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, adjustments:, base_plan:, @@ -622,9 +622,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -720,9 +720,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -818,9 +818,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -925,9 +925,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -1025,9 +1025,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -1056,13 +1056,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end @@ -1092,9 +1094,10 @@ module Orb end sig do - params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)).void + params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, external_plan_id:, name:) + def self.new(id:, external_plan_id:, name:) end sig do @@ -1127,8 +1130,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -1153,8 +1158,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -1310,9 +1317,9 @@ module Orb name: String, order: Integer ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, description:, discount:, @@ -1364,8 +1371,10 @@ module Orb SEMI_ANNUAL = T.let(:semi_annual, T.nilable(Symbol)) ANNUAL = T.let(:annual, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1386,8 +1395,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -1412,8 +1423,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -1447,8 +1460,8 @@ module Orb def name=(_) end - sig { params(id: String, created_at: Time, name: String).void } - def initialize(id:, created_at:, name:) + sig { params(id: String, created_at: Time, name: String).returns(T.attached_class) } + def self.new(id:, created_at:, name:) end sig { override.returns({id: String, created_at: Time, name: String}) } @@ -1463,8 +1476,10 @@ module Orb ARCHIVED = :archived DRAFT = :draft - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1485,8 +1500,8 @@ module Orb def trial_period_unit=(_) end - sig { params(trial_period: T.nilable(Integer), trial_period_unit: Symbol).void } - def initialize(trial_period:, trial_period_unit:) + sig { params(trial_period: T.nilable(Integer), trial_period_unit: Symbol).returns(T.attached_class) } + def self.new(trial_period:, trial_period_unit:) end sig { override.returns({trial_period: T.nilable(Integer), trial_period_unit: Symbol}) } @@ -1498,8 +1513,10 @@ module Orb DAYS = :days - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/plan_create_params.rbi b/rbi/lib/orb/models/plan_create_params.rbi index fee6b228..55a96bf0 100644 --- a/rbi/lib/orb/models/plan_create_params.rbi +++ b/rbi/lib/orb/models/plan_create_params.rbi @@ -208,9 +208,9 @@ module Orb status: Symbol, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( currency:, name:, prices:, @@ -424,9 +424,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -480,8 +480,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -494,8 +496,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -520,8 +522,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -534,8 +536,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -557,8 +561,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -571,8 +575,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -731,9 +737,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -787,8 +793,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -809,8 +817,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -835,8 +843,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -849,8 +857,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -872,8 +882,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -886,8 +896,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1046,9 +1058,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_config:, @@ -1102,8 +1114,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1141,9 +1155,9 @@ module Orb dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -1176,8 +1190,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -1203,8 +1222,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1217,8 +1236,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1240,8 +1261,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1254,8 +1275,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1414,9 +1437,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -1470,8 +1493,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1487,8 +1512,11 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]).void } - def initialize(tiers:) + sig do + params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) + .returns(T.attached_class) + end + def self.new(tiers:) end sig do @@ -1523,8 +1551,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } @@ -1550,8 +1584,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1564,8 +1598,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1587,8 +1623,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1601,8 +1637,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1769,9 +1807,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -1825,8 +1863,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1846,9 +1886,9 @@ module Orb params( tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -1900,9 +1940,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -1938,8 +1978,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1952,8 +1992,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1975,8 +2017,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1989,8 +2031,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2147,9 +2191,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bps_config:, cadence:, item_id:, @@ -2210,8 +2254,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -2229,8 +2273,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2251,8 +2297,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2265,8 +2311,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2288,8 +2336,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2302,8 +2350,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2462,9 +2512,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_bps_config:, cadence:, item_id:, @@ -2522,9 +2572,9 @@ module Orb sig do params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -2560,13 +2610,10 @@ module Orb end sig do - params( - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -2593,8 +2640,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2615,8 +2664,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2629,8 +2678,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2652,8 +2703,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2666,8 +2717,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2824,9 +2877,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_config:, cadence:, item_id:, @@ -2882,8 +2935,11 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]).void } - def initialize(tiers:) + sig do + params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) + .returns(T.attached_class) + end + def self.new(tiers:) end sig do @@ -2910,8 +2966,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } @@ -2930,8 +2986,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2952,8 +3010,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2966,8 +3024,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2989,8 +3049,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3003,8 +3063,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3190,9 +3252,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -3250,8 +3312,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3272,8 +3336,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3286,8 +3350,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3309,8 +3375,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3323,8 +3389,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3494,9 +3562,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -3550,8 +3618,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3572,8 +3642,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3586,8 +3656,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3609,8 +3681,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3623,8 +3695,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3802,9 +3876,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -3860,8 +3934,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3882,8 +3958,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3896,8 +3972,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3919,8 +3997,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3933,8 +4011,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4104,9 +4184,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -4160,8 +4240,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4182,8 +4264,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4196,8 +4278,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4219,8 +4303,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4233,8 +4317,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4420,9 +4506,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -4480,8 +4566,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4502,8 +4590,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4516,8 +4604,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4539,8 +4629,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4553,8 +4643,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4732,9 +4824,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -4790,8 +4882,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4812,8 +4906,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4826,8 +4920,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4849,8 +4945,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4863,8 +4959,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5042,9 +5140,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -5100,8 +5198,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5122,8 +5222,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5136,8 +5236,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5159,8 +5261,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5173,8 +5275,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5352,9 +5456,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_allocation_config:, item_id:, @@ -5410,8 +5514,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5432,8 +5538,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5446,8 +5552,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5469,8 +5577,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5483,8 +5591,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5670,9 +5780,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_prorated_minimum_config:, item_id:, @@ -5730,8 +5840,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5752,8 +5864,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5766,8 +5878,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5789,8 +5903,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5803,8 +5917,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5990,9 +6106,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_metered_minimum_config:, item_id:, @@ -6050,8 +6166,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6072,8 +6190,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6086,8 +6204,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6109,8 +6229,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6123,8 +6243,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6310,9 +6432,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_with_display_name_config:, @@ -6370,8 +6492,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6392,8 +6516,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6406,8 +6530,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6429,8 +6555,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6443,8 +6569,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6622,9 +6750,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_with_proration_config:, cadence:, item_id:, @@ -6680,8 +6808,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6702,8 +6832,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6716,8 +6846,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6739,8 +6871,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6753,8 +6885,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6940,9 +7074,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_tiered_package_config:, item_id:, @@ -7000,8 +7134,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7022,8 +7158,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7036,8 +7172,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7059,8 +7197,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7073,8 +7211,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7260,9 +7400,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, max_group_tiered_package_config:, @@ -7320,8 +7460,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7342,8 +7484,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7356,8 +7498,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7379,8 +7523,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7393,8 +7537,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7580,9 +7726,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -7640,8 +7786,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7662,8 +7810,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7676,8 +7824,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7699,8 +7849,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7713,8 +7863,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7900,9 +8052,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -7960,8 +8112,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7982,8 +8136,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7996,8 +8150,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8019,8 +8175,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8033,8 +8189,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8220,9 +8378,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, cumulative_grouped_bulk_config:, item_id:, @@ -8280,8 +8438,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8302,8 +8462,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8316,8 +8476,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8339,8 +8501,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8353,20 +8515,24 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice]] + ) + end + private def variants + end end end @@ -8376,8 +8542,10 @@ module Orb ACTIVE = :active DRAFT = :draft - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/plan_fetch_params.rbi b/rbi/lib/orb/models/plan_fetch_params.rbi index 35a14f0b..f9355eb0 100644 --- a/rbi/lib/orb/models/plan_fetch_params.rbi +++ b/rbi/lib/orb/models/plan_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/plan_list_params.rbi b/rbi/lib/orb/models/plan_list_params.rbi index 87934cb5..4e138c85 100644 --- a/rbi/lib/orb/models/plan_list_params.rbi +++ b/rbi/lib/orb/models/plan_list_params.rbi @@ -73,9 +73,9 @@ module Orb status: Symbol, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, @@ -112,8 +112,10 @@ module Orb ARCHIVED = :archived DRAFT = :draft - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/plan_update_params.rbi b/rbi/lib/orb/models/plan_update_params.rbi index 6c917c46..f591bf4d 100644 --- a/rbi/lib/orb/models/plan_update_params.rbi +++ b/rbi/lib/orb/models/plan_update_params.rbi @@ -31,9 +31,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(external_plan_id: nil, metadata: nil, request_options: {}) + def self.new(external_plan_id: nil, metadata: nil, request_options: {}) end sig do 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 cdb03ac3..0e2002c1 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 @@ -7,8 +7,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } 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 135da52e..cf4c4090 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 @@ -32,9 +32,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(external_plan_id: nil, metadata: nil, request_options: {}) + def self.new(external_plan_id: nil, metadata: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/price.rbi b/rbi/lib/orb/models/price.rbi index c01cd393..4ab5b765 100644 --- a/rbi/lib/orb/models/price.rbi +++ b/rbi/lib/orb/models/price.rbi @@ -285,9 +285,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -365,8 +365,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -391,8 +391,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -405,8 +405,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -421,8 +423,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -443,8 +447,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -469,8 +473,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -483,8 +487,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -506,8 +512,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -532,8 +538,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -558,8 +566,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -573,8 +583,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -587,8 +599,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -613,8 +625,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -906,9 +923,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -986,8 +1003,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -1012,8 +1029,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1026,8 +1043,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1042,8 +1061,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1064,8 +1085,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -1090,8 +1111,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1104,8 +1125,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1127,8 +1150,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -1153,8 +1176,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -1179,8 +1204,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -1205,8 +1232,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -1220,8 +1247,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1242,8 +1271,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -1535,9 +1569,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -1615,8 +1649,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -1641,8 +1675,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1655,8 +1689,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1671,8 +1707,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1693,8 +1731,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -1719,8 +1757,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1733,8 +1771,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1756,8 +1796,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -1799,9 +1839,9 @@ module Orb dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -1834,8 +1874,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -1861,8 +1906,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -1887,8 +1934,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -1902,8 +1951,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1924,8 +1975,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -2217,9 +2273,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -2297,8 +2353,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -2323,8 +2379,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2337,8 +2393,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2353,8 +2411,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2375,8 +2435,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -2401,8 +2461,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2415,8 +2475,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2438,8 +2500,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -2464,8 +2526,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -2490,8 +2554,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -2505,8 +2571,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2522,8 +2590,8 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]).void } - def initialize(tiers:) + sig { params(tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]).returns(T.attached_class) } + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]}) } @@ -2555,8 +2623,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } @@ -2582,8 +2656,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -2875,9 +2954,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -2955,8 +3034,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -2981,8 +3060,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2995,8 +3074,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3011,8 +3092,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3033,8 +3116,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -3059,8 +3142,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3073,8 +3156,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3096,8 +3181,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -3122,8 +3207,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -3148,8 +3235,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -3163,8 +3252,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3180,8 +3271,11 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]).void } - def initialize(tiers:) + sig do + params(tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) + .returns(T.attached_class) + end + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]}) } @@ -3228,9 +3322,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -3266,8 +3360,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -3556,9 +3655,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -3636,8 +3735,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -3662,8 +3761,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3676,8 +3775,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3699,8 +3800,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -3718,8 +3819,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3740,8 +3843,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -3766,8 +3869,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3780,8 +3883,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3803,8 +3908,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -3829,8 +3934,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -3855,8 +3962,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -3870,8 +3979,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3892,8 +4003,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -4185,9 +4301,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -4265,8 +4381,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -4291,8 +4407,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4305,8 +4421,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4323,8 +4441,8 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]).void } - def initialize(tiers:) + sig { params(tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]).returns(T.attached_class) } + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]}) } @@ -4357,9 +4475,10 @@ module Orb end sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -4386,8 +4505,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4408,8 +4529,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -4434,8 +4555,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4448,8 +4569,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4471,8 +4594,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -4497,8 +4620,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -4523,8 +4648,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -4538,8 +4665,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4560,8 +4689,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -4850,9 +4984,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -4930,8 +5064,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -4956,8 +5090,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4970,8 +5104,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4988,8 +5124,8 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]).void } - def initialize(tiers:) + sig { params(tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]).returns(T.attached_class) } + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]}) } @@ -5013,8 +5149,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } @@ -5033,8 +5169,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5055,8 +5193,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -5081,8 +5219,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5095,8 +5233,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5118,8 +5258,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -5144,8 +5284,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -5170,8 +5312,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -5185,8 +5329,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5207,8 +5353,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -5500,9 +5651,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -5580,8 +5731,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -5606,8 +5757,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5620,8 +5771,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5636,8 +5789,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5658,8 +5813,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -5684,8 +5839,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5698,8 +5853,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5721,8 +5878,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -5747,8 +5904,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -5773,8 +5932,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -5788,8 +5949,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5810,8 +5973,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -6103,9 +6271,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -6183,8 +6351,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -6209,8 +6377,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6223,8 +6391,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6239,8 +6409,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6261,8 +6433,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -6287,8 +6459,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6301,8 +6473,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6324,8 +6498,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -6350,8 +6524,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -6376,8 +6552,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -6391,8 +6569,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6413,8 +6593,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -6706,9 +6891,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -6786,8 +6971,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -6812,8 +6997,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6826,8 +7011,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6842,8 +7029,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6864,8 +7053,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -6890,8 +7079,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6904,8 +7093,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6927,8 +7118,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -6953,8 +7144,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -6979,8 +7172,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -6994,8 +7189,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7016,8 +7213,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -7309,9 +7511,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -7389,8 +7591,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -7415,8 +7617,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7429,8 +7631,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7445,8 +7649,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7467,8 +7673,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -7493,8 +7699,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7507,8 +7713,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7530,8 +7738,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -7556,8 +7764,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -7582,8 +7792,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -7597,8 +7809,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7619,8 +7833,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -7912,9 +8131,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -7992,8 +8211,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -8018,8 +8237,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8032,8 +8251,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8048,8 +8269,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8070,8 +8293,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -8096,8 +8319,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8110,8 +8333,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8133,8 +8358,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -8159,8 +8384,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -8185,8 +8412,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -8200,8 +8429,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8222,8 +8453,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -8515,9 +8751,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -8595,8 +8831,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -8621,8 +8857,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8635,8 +8871,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8651,8 +8889,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8673,8 +8913,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -8699,8 +8939,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8713,8 +8953,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8736,8 +8978,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -8762,8 +9004,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -8788,8 +9032,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -8803,8 +9049,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8825,8 +9073,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -9118,9 +9371,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -9198,8 +9451,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -9224,8 +9477,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9238,8 +9491,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9254,8 +9509,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9276,8 +9533,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -9302,8 +9559,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9316,8 +9573,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9339,8 +9598,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -9365,8 +9624,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -9391,8 +9652,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -9406,8 +9669,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9428,8 +9693,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -9724,9 +9994,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -9804,8 +10074,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -9830,8 +10100,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9844,8 +10114,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9860,8 +10132,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9882,8 +10156,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -9908,8 +10182,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9922,8 +10196,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9945,8 +10221,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -9999,9 +10275,9 @@ module Orb dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] ) - .void + .returns(T.attached_class) end - def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) + def self.new(allocation:, default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -10035,8 +10311,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -10062,8 +10343,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -10088,8 +10371,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -10103,8 +10388,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10125,8 +10412,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -10418,9 +10710,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -10498,8 +10790,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -10524,8 +10816,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10538,8 +10830,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -10554,8 +10848,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10576,8 +10872,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -10602,8 +10898,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10616,8 +10912,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -10639,8 +10937,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -10665,8 +10963,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -10691,8 +10991,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -10706,8 +11008,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10728,8 +11032,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -11021,9 +11330,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -11101,8 +11410,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -11127,8 +11436,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11141,8 +11450,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11157,8 +11468,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11179,8 +11492,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -11205,8 +11518,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11219,8 +11532,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11242,8 +11557,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -11268,8 +11583,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -11294,8 +11611,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -11309,8 +11628,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11331,8 +11652,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -11624,9 +11950,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -11704,8 +12030,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -11730,8 +12056,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11744,8 +12070,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11760,8 +12088,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11782,8 +12112,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -11808,8 +12138,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11822,8 +12152,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11845,8 +12177,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -11871,8 +12203,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -11897,8 +12231,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -11912,8 +12248,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11934,8 +12272,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -12227,9 +12570,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -12307,8 +12650,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -12333,8 +12676,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12347,8 +12690,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12363,8 +12708,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12385,8 +12732,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -12411,8 +12758,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12425,8 +12772,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12448,8 +12797,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -12474,8 +12823,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -12500,8 +12851,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -12515,8 +12868,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12537,8 +12892,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -12830,9 +13190,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -12910,8 +13270,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -12936,8 +13296,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12950,8 +13310,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12966,8 +13328,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12988,8 +13352,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -13014,8 +13378,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13028,8 +13392,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13051,8 +13417,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -13077,8 +13443,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -13103,8 +13471,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -13118,8 +13488,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -13140,8 +13512,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -13433,9 +13810,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -13513,8 +13890,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -13539,8 +13916,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13553,8 +13930,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13569,8 +13948,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -13591,8 +13972,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -13617,8 +13998,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13631,8 +14012,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13654,8 +14037,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -13680,8 +14063,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -13706,8 +14091,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -13721,8 +14108,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -13743,8 +14132,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -14036,9 +14430,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -14116,8 +14510,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -14142,8 +14536,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14156,8 +14550,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14172,8 +14568,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14194,8 +14592,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -14220,8 +14618,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14234,8 +14632,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14257,8 +14657,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -14283,8 +14683,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -14309,8 +14711,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -14324,8 +14728,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14346,8 +14752,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -14639,9 +15050,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -14719,8 +15130,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -14745,8 +15156,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14759,8 +15170,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14775,8 +15188,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14797,8 +15212,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -14823,8 +15238,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14837,8 +15252,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14860,8 +15277,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -14886,8 +15303,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -14912,8 +15331,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -14927,8 +15348,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14949,8 +15372,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -15242,9 +15670,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -15322,8 +15750,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -15348,8 +15776,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15362,8 +15790,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15378,8 +15808,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15400,8 +15832,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -15426,8 +15858,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15440,8 +15872,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15463,8 +15897,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -15489,8 +15923,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -15515,8 +15951,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -15530,8 +15968,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15552,8 +15992,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -15847,9 +16292,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -15927,8 +16372,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -15953,8 +16398,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15967,8 +16412,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15983,8 +16430,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16005,8 +16454,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -16031,8 +16480,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16045,8 +16494,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16068,8 +16519,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -16094,8 +16545,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -16120,8 +16573,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -16135,8 +16590,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16157,8 +16614,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -16460,9 +16922,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -16540,8 +17002,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -16566,8 +17028,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16580,8 +17042,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16596,8 +17060,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16618,8 +17084,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -16644,8 +17110,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16658,8 +17124,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16681,8 +17149,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -16707,8 +17175,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -16733,8 +17203,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -16748,8 +17220,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16770,8 +17244,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -17063,9 +17542,9 @@ module Orb dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billable_metric:, billing_cycle_configuration:, @@ -17143,8 +17622,8 @@ module Orb def id=(_) end - sig { params(id: String).void } - def initialize(id:) + sig { params(id: String).returns(T.attached_class) } + def self.new(id:) end sig { override.returns({id: String}) } @@ -17169,8 +17648,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17183,8 +17662,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17199,8 +17680,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17221,8 +17704,8 @@ module Orb def currency=(_) end - sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:) + sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } + def self.new(allows_rollover:, currency:) end sig { override.returns({allows_rollover: T::Boolean, currency: String}) } @@ -17247,8 +17730,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17261,8 +17744,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17284,8 +17769,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -17310,8 +17795,10 @@ module Orb def maximum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, maximum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } @@ -17336,8 +17823,10 @@ module Orb def minimum_amount=(_) end - sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:) + sig do + params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + end + def self.new(applies_to_price_ids:, minimum_amount:) end sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } @@ -17351,8 +17840,10 @@ module Orb USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17373,8 +17864,13 @@ module Orb def dimensional_price_group_id=(_) end - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:) + sig do + params( + dimension_values: T::Array[String], + dimensional_price_group_id: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, dimensional_price_group_id:) end sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } @@ -17383,13 +17879,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::Price::UnitPrice], [Symbol, Orb::Models::Price::PackagePrice], [Symbol, Orb::Models::Price::MatrixPrice], [Symbol, Orb::Models::Price::TieredPrice], [Symbol, Orb::Models::Price::TieredBpsPrice], [Symbol, Orb::Models::Price::BpsPrice], [Symbol, Orb::Models::Price::BulkBpsPrice], [Symbol, Orb::Models::Price::BulkPrice], [Symbol, Orb::Models::Price::ThresholdTotalAmountPrice], [Symbol, Orb::Models::Price::TieredPackagePrice], [Symbol, Orb::Models::Price::GroupedTieredPrice], [Symbol, Orb::Models::Price::TieredWithMinimumPrice], [Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice], [Symbol, Orb::Models::Price::PackageWithAllocationPrice], [Symbol, Orb::Models::Price::UnitWithPercentPrice], [Symbol, Orb::Models::Price::MatrixWithAllocationPrice], [Symbol, Orb::Models::Price::TieredWithProrationPrice], [Symbol, Orb::Models::Price::UnitWithProrationPrice], [Symbol, Orb::Models::Price::GroupedAllocationPrice], [Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice], [Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice], [Symbol, Orb::Models::Price::BulkWithProrationPrice], [Symbol, Orb::Models::Price::GroupedTieredPackagePrice], [Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice], [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Price::UnitPrice], [Symbol, Orb::Models::Price::PackagePrice], [Symbol, Orb::Models::Price::MatrixPrice], [Symbol, Orb::Models::Price::TieredPrice], [Symbol, Orb::Models::Price::TieredBpsPrice], [Symbol, Orb::Models::Price::BpsPrice], [Symbol, Orb::Models::Price::BulkBpsPrice], [Symbol, Orb::Models::Price::BulkPrice], [Symbol, Orb::Models::Price::ThresholdTotalAmountPrice], [Symbol, Orb::Models::Price::TieredPackagePrice], [Symbol, Orb::Models::Price::GroupedTieredPrice], [Symbol, Orb::Models::Price::TieredWithMinimumPrice], [Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice], [Symbol, Orb::Models::Price::PackageWithAllocationPrice], [Symbol, Orb::Models::Price::UnitWithPercentPrice], [Symbol, Orb::Models::Price::MatrixWithAllocationPrice], [Symbol, Orb::Models::Price::TieredWithProrationPrice], [Symbol, Orb::Models::Price::UnitWithProrationPrice], [Symbol, Orb::Models::Price::GroupedAllocationPrice], [Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice], [Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice], [Symbol, Orb::Models::Price::BulkWithProrationPrice], [Symbol, Orb::Models::Price::GroupedTieredPackagePrice], [Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice], [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice]] + ) + end + private def variants + end end end end diff --git a/rbi/lib/orb/models/price_create_params.rbi b/rbi/lib/orb/models/price_create_params.rbi index 1bae64a0..61aea055 100644 --- a/rbi/lib/orb/models/price_create_params.rbi +++ b/rbi/lib/orb/models/price_create_params.rbi @@ -415,9 +415,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -527,8 +527,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -537,8 +539,10 @@ module Orb CUMULATIVE_GROUPED_BULK = :cumulative_grouped_bulk - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -551,8 +555,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -577,8 +581,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -591,8 +595,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -614,8 +620,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -628,8 +634,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -651,8 +659,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -694,9 +702,9 @@ module Orb dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -729,8 +737,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -782,9 +795,9 @@ module Orb dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] ) - .void + .returns(T.attached_class) end - def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) + def self.new(allocation:, default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -818,8 +831,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -840,8 +858,8 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]).void } - def initialize(tiers:) + sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]).returns(T.attached_class) } + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]}) } @@ -873,8 +891,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } @@ -895,8 +919,8 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]).void } - def initialize(tiers:) + sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]).returns(T.attached_class) } + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]}) } @@ -943,9 +967,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -981,8 +1005,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -1002,8 +1026,8 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]).void } - def initialize(tiers:) + sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]).returns(T.attached_class) } + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]}) } @@ -1036,9 +1060,10 @@ module Orb end sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -1067,8 +1092,8 @@ module Orb def tiers=(_) end - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]).void } - def initialize(tiers:) + sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]).returns(T.attached_class) } + def self.new(tiers:) end sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]}) } @@ -1092,8 +1117,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } diff --git a/rbi/lib/orb/models/price_evaluate_params.rbi b/rbi/lib/orb/models/price_evaluate_params.rbi index 30182297..fadc6d31 100644 --- a/rbi/lib/orb/models/price_evaluate_params.rbi +++ b/rbi/lib/orb/models/price_evaluate_params.rbi @@ -64,9 +64,9 @@ module Orb grouping_keys: T::Array[String], request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( timeframe_end:, timeframe_start:, customer_id: nil, diff --git a/rbi/lib/orb/models/price_evaluate_response.rbi b/rbi/lib/orb/models/price_evaluate_response.rbi index 8f8b7722..7395138f 100644 --- a/rbi/lib/orb/models/price_evaluate_response.rbi +++ b/rbi/lib/orb/models/price_evaluate_response.rbi @@ -11,8 +11,8 @@ module Orb def data=(_) end - sig { params(data: T::Array[Orb::Models::EvaluatePriceGroup]).void } - def initialize(data:) + sig { params(data: T::Array[Orb::Models::EvaluatePriceGroup]).returns(T.attached_class) } + def self.new(data:) end sig { override.returns({data: T::Array[Orb::Models::EvaluatePriceGroup]}) } diff --git a/rbi/lib/orb/models/price_fetch_params.rbi b/rbi/lib/orb/models/price_fetch_params.rbi index ccc244e9..8b5925cf 100644 --- a/rbi/lib/orb/models/price_fetch_params.rbi +++ b/rbi/lib/orb/models/price_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/price_list_params.rbi b/rbi/lib/orb/models/price_list_params.rbi index ea37fe72..ee8b8d18 100644 --- a/rbi/lib/orb/models/price_list_params.rbi +++ b/rbi/lib/orb/models/price_list_params.rbi @@ -28,9 +28,9 @@ module Orb limit: Integer, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(cursor: nil, limit: nil, request_options: {}) + def self.new(cursor: nil, limit: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/price_update_params.rbi b/rbi/lib/orb/models/price_update_params.rbi index 9509122d..7df3f932 100644 --- a/rbi/lib/orb/models/price_update_params.rbi +++ b/rbi/lib/orb/models/price_update_params.rbi @@ -22,9 +22,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(metadata: nil, request_options: {}) + def self.new(metadata: nil, request_options: {}) end sig do 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 b8eae869..9de0afb2 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 @@ -7,8 +7,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } 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 1fa729f9..609fb4cd 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 @@ -23,9 +23,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(metadata: nil, request_options: {}) + def self.new(metadata: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index 51498beb..49a3625f 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -287,9 +287,9 @@ module Orb status: Symbol, trial_info: Orb::Models::Subscription::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -443,9 +443,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -539,9 +539,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -637,9 +637,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -735,9 +735,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -842,9 +842,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -942,9 +942,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -973,13 +973,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1009,8 +1011,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1079,9 +1083,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1166,9 +1170,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1253,9 +1257,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1282,13 +1286,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1325,8 +1331,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1385,15 +1394,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1461,15 +1464,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1712,9 +1709,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1802,8 +1799,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1837,8 +1834,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1853,8 +1852,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1867,8 +1868,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } diff --git a/rbi/lib/orb/models/subscription_cancel_params.rbi b/rbi/lib/orb/models/subscription_cancel_params.rbi index 2070472d..46436f0a 100644 --- a/rbi/lib/orb/models/subscription_cancel_params.rbi +++ b/rbi/lib/orb/models/subscription_cancel_params.rbi @@ -37,14 +37,9 @@ module Orb cancellation_date: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -68,8 +63,10 @@ module Orb IMMEDIATE = :immediate REQUESTED_DATE = :requested_date - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index b9a4fd28..3a710d34 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1723,9 +1720,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1813,8 +1810,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1848,8 +1845,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1864,8 +1863,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1878,8 +1879,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index ce249d68..aeb7e5d4 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -313,9 +313,9 @@ module Orb usage_customer_ids: T.nilable(T::Array[String]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( add_adjustments: nil, add_prices: nil, align_billing_with_subscription_start_date: nil, @@ -468,9 +468,9 @@ module Orb plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) + def self.new(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) end sig do @@ -536,14 +536,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -601,14 +596,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -666,14 +656,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -740,15 +725,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -807,14 +786,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -832,13 +806,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum]] + ) + end + private def variants + end end end end @@ -1066,9 +1042,9 @@ module Orb price_id: T.nilable(String), start_date: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( allocation_price: nil, discounts: nil, end_date: nil, @@ -1164,14 +1140,10 @@ module Orb end sig do - params( - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - ).void + params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + .returns(T.attached_class) end - def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) + def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) end sig do @@ -1196,8 +1168,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1242,9 +1216,9 @@ module Orb percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) + def self.new(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do @@ -1268,8 +1242,10 @@ module Orb USAGE = :usage AMOUNT = :amount - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1469,9 +1445,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -1531,8 +1507,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1545,8 +1523,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -1571,8 +1549,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1585,8 +1563,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1608,8 +1588,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1622,8 +1602,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1829,9 +1811,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -1891,8 +1873,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1913,8 +1897,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -1939,8 +1923,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1953,8 +1937,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1976,8 +1962,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1990,8 +1976,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2191,9 +2179,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_config:, @@ -2253,8 +2241,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2308,9 +2298,9 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -2345,8 +2335,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -2372,8 +2367,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2386,8 +2381,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2409,8 +2406,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2423,8 +2420,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2624,9 +2623,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -2686,8 +2685,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2715,9 +2716,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -2756,8 +2757,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig do @@ -2785,8 +2792,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2799,8 +2806,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2822,8 +2831,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2836,8 +2845,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3043,9 +3054,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -3105,8 +3116,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3142,9 +3155,9 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -3200,9 +3213,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -3238,8 +3251,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3252,8 +3265,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3275,8 +3290,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3289,8 +3304,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3488,9 +3505,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bps_config:, cadence:, item_id:, @@ -3557,8 +3574,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -3576,8 +3593,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3598,8 +3617,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3612,8 +3631,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3635,8 +3656,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3649,8 +3670,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3856,9 +3879,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_bps_config:, cadence:, item_id:, @@ -3932,9 +3955,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -3974,13 +3997,10 @@ module Orb end sig do - params( - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -4007,8 +4027,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4029,8 +4051,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4043,8 +4065,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4066,8 +4090,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4080,8 +4104,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4279,9 +4305,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_config:, cadence:, item_id:, @@ -4355,9 +4381,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -4388,8 +4414,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } @@ -4408,8 +4434,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4430,8 +4458,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4444,8 +4472,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4467,8 +4497,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4481,8 +4511,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4677,9 +4709,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -4739,8 +4771,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4761,8 +4795,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4775,8 +4809,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4798,8 +4834,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4812,8 +4848,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5008,9 +5046,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -5070,8 +5108,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5092,8 +5132,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5106,8 +5146,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5129,8 +5171,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5143,8 +5185,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5339,9 +5383,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -5401,8 +5445,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5423,8 +5469,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5437,8 +5483,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5460,8 +5508,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5474,8 +5522,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5670,9 +5720,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -5732,8 +5782,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5754,8 +5806,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5768,8 +5820,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5791,8 +5845,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5805,8 +5859,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6001,9 +6057,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -6063,8 +6119,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6085,8 +6143,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6099,8 +6157,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6122,8 +6182,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6136,8 +6196,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6332,9 +6394,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -6394,8 +6456,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6416,8 +6480,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6430,8 +6494,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6453,8 +6519,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6467,8 +6533,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6663,9 +6731,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -6725,8 +6793,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6747,8 +6817,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6761,8 +6831,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6784,8 +6856,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6798,8 +6870,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6994,9 +7068,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_allocation_config:, item_id:, @@ -7056,8 +7130,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7078,8 +7154,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7092,8 +7168,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7115,8 +7193,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7129,8 +7207,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7325,9 +7405,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_prorated_minimum_config:, item_id:, @@ -7387,8 +7467,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7409,8 +7491,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7423,8 +7505,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7446,8 +7530,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7460,8 +7544,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7656,9 +7742,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_with_proration_config:, cadence:, item_id:, @@ -7718,8 +7804,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7740,8 +7828,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7754,8 +7842,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7777,8 +7867,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7791,8 +7881,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7987,9 +8079,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -8049,8 +8141,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8071,8 +8165,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8085,8 +8179,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8108,8 +8204,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8122,8 +8218,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8318,9 +8416,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -8380,8 +8478,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8402,8 +8502,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8416,8 +8516,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8439,8 +8541,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8453,8 +8555,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8649,9 +8753,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, cumulative_grouped_bulk_config:, item_id:, @@ -8711,8 +8815,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8733,8 +8839,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8747,8 +8853,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8770,8 +8878,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8784,8 +8892,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8980,9 +9090,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, max_group_tiered_package_config:, @@ -9042,8 +9152,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9064,8 +9176,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9078,8 +9190,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9101,8 +9215,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9115,8 +9229,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9311,9 +9427,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_metered_minimum_config:, item_id:, @@ -9373,8 +9489,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9395,8 +9513,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9409,8 +9527,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9432,8 +9552,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9446,8 +9566,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9642,9 +9764,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_with_display_name_config:, @@ -9704,8 +9826,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9726,8 +9850,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9740,8 +9864,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9763,8 +9889,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9777,8 +9903,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9973,9 +10101,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_tiered_package_config:, item_id:, @@ -10035,8 +10163,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10057,8 +10187,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10071,8 +10201,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -10094,8 +10226,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10108,20 +10240,24 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice]] + ) + end + private def variants + end end end end @@ -10151,8 +10287,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -10167,8 +10305,10 @@ module Orb AWS = T.let(:aws, T.nilable(Symbol)) AZURE = T.let(:azure, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10181,8 +10321,8 @@ module Orb def adjustment_id=(_) end - sig { params(adjustment_id: String).void } - def initialize(adjustment_id:) + sig { params(adjustment_id: String).returns(T.attached_class) } + def self.new(adjustment_id:) end sig { override.returns({adjustment_id: String}) } @@ -10207,8 +10347,10 @@ module Orb def price_id=(_) end - sig { params(external_price_id: T.nilable(String), price_id: T.nilable(String)).void } - def initialize(external_price_id: nil, price_id: nil) + sig do + params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) + end + def self.new(external_price_id: nil, price_id: nil) end sig { override.returns({external_price_id: T.nilable(String), price_id: T.nilable(String)}) } @@ -10273,9 +10415,9 @@ module Orb ), replaces_adjustment_id: String ) - .void + .returns(T.attached_class) end - def initialize(adjustment:, replaces_adjustment_id:) + def self.new(adjustment:, replaces_adjustment_id:) end sig do @@ -10339,14 +10481,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10404,14 +10541,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10469,14 +10601,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10543,15 +10670,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10610,14 +10731,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10635,13 +10751,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum]] + ) + end + private def variants + end end end end @@ -10860,9 +10978,9 @@ module Orb ), price_id: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( replaces_price_id:, allocation_price: nil, discounts: nil, @@ -10956,14 +11074,10 @@ module Orb end sig do - params( - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - ).void + params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + .returns(T.attached_class) end - def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) + def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) end sig do @@ -10988,8 +11102,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11034,9 +11150,9 @@ module Orb percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) + def self.new(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do @@ -11060,8 +11176,10 @@ module Orb USAGE = :usage AMOUNT = :amount - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11263,9 +11381,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -11325,8 +11443,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11339,8 +11459,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -11365,8 +11485,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11379,8 +11499,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11402,8 +11524,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11416,8 +11538,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11623,9 +11747,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -11685,8 +11809,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11707,8 +11833,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -11733,8 +11859,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11747,8 +11873,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11770,8 +11898,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11784,8 +11912,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11991,9 +12121,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_config:, @@ -12053,8 +12183,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12108,9 +12240,9 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -12145,8 +12277,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -12172,8 +12309,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12186,8 +12323,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12209,8 +12348,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12223,8 +12362,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12430,9 +12571,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -12492,8 +12633,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12521,9 +12664,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -12562,8 +12705,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig do @@ -12591,8 +12740,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12605,8 +12754,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12628,8 +12779,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12642,8 +12793,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12849,9 +13002,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -12911,8 +13064,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12948,9 +13103,9 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -13006,9 +13161,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -13044,8 +13199,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13058,8 +13213,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13081,8 +13238,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13095,8 +13252,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13294,9 +13453,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bps_config:, cadence:, item_id:, @@ -13363,8 +13522,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -13382,8 +13541,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -13404,8 +13565,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13418,8 +13579,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13441,8 +13604,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13455,8 +13618,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13662,9 +13827,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_bps_config:, cadence:, item_id:, @@ -13746,9 +13911,9 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -13790,13 +13955,10 @@ module Orb end sig do - params( - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -13823,8 +13985,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -13845,8 +14009,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13859,8 +14023,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13882,8 +14048,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13896,8 +14062,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14097,9 +14265,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_config:, cadence:, item_id:, @@ -14173,9 +14341,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -14206,8 +14374,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } @@ -14226,8 +14394,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14248,8 +14418,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14262,8 +14432,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14285,8 +14457,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14299,8 +14471,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14495,9 +14669,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -14557,8 +14731,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14579,8 +14755,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14593,8 +14769,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14616,8 +14794,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14630,8 +14808,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14826,9 +15006,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -14888,8 +15068,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14910,8 +15092,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14924,8 +15106,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14947,8 +15131,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14961,8 +15145,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15157,9 +15343,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -15219,8 +15405,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15241,8 +15429,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15255,8 +15443,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15278,8 +15468,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15292,8 +15482,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15488,9 +15680,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -15550,8 +15742,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15572,8 +15766,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15586,8 +15780,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15609,8 +15805,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15623,8 +15819,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15819,9 +16017,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -15881,8 +16079,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15903,8 +16103,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15917,8 +16117,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15940,8 +16142,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15954,8 +16156,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16150,9 +16354,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -16212,8 +16416,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16234,8 +16440,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16248,8 +16454,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16271,8 +16479,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16285,8 +16493,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16481,9 +16691,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -16543,8 +16753,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16565,8 +16777,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16579,8 +16791,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16602,8 +16816,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16616,8 +16830,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16812,9 +17028,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_allocation_config:, item_id:, @@ -16874,8 +17090,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16896,8 +17114,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16910,8 +17128,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16933,8 +17153,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16947,8 +17167,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17143,9 +17365,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_prorated_minimum_config:, item_id:, @@ -17205,8 +17427,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17227,8 +17451,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17241,8 +17465,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17264,8 +17490,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17278,8 +17504,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17474,9 +17702,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_with_proration_config:, cadence:, item_id:, @@ -17536,8 +17764,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17558,8 +17788,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17572,8 +17802,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17595,8 +17827,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17609,8 +17841,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17805,9 +18039,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -17867,8 +18101,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17889,8 +18125,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17903,8 +18139,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17926,8 +18164,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17940,8 +18178,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18136,9 +18376,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -18198,8 +18438,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -18220,8 +18462,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18234,8 +18476,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18257,8 +18501,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18271,8 +18515,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18467,9 +18713,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, cumulative_grouped_bulk_config:, item_id:, @@ -18529,8 +18775,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -18551,8 +18799,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18565,8 +18813,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18588,8 +18838,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18602,8 +18852,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18798,9 +19050,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, max_group_tiered_package_config:, @@ -18860,8 +19112,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -18882,8 +19136,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18896,8 +19150,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18919,8 +19175,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18933,8 +19189,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19129,9 +19387,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_metered_minimum_config:, item_id:, @@ -19191,8 +19449,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -19213,8 +19473,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19227,8 +19487,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19250,8 +19512,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19264,8 +19526,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19460,9 +19724,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_with_display_name_config:, @@ -19522,8 +19786,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -19544,8 +19810,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19558,8 +19824,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19581,8 +19849,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19595,8 +19863,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19791,9 +20061,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_tiered_package_config:, item_id:, @@ -19853,8 +20123,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -19875,8 +20147,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19889,8 +20161,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19912,8 +20186,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19926,20 +20200,24 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice]] + ) + end + private def variants + end end end end diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index d6bb12d3..08dae2d2 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1723,9 +1720,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1813,8 +1810,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1848,8 +1845,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1864,8 +1863,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1878,8 +1879,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } diff --git a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi index 1d54eba5..53b3dc52 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi @@ -46,15 +46,9 @@ module Orb view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -78,8 +72,10 @@ module Orb PERIODIC = T.let(:periodic, T.nilable(Symbol)) CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi index eba2a42a..bb797283 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi @@ -14,8 +14,8 @@ module Orb def data=(_) end - sig { params(data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]).void } - def initialize(data:) + sig { params(data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]).returns(T.attached_class) } + def self.new(data:) end sig { override.returns({data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]}) } @@ -74,9 +74,9 @@ module Orb timeframe_start: Time, total: String ) - .void + .returns(T.attached_class) end - def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) + def self.new(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) end sig do @@ -270,9 +270,9 @@ module Orb total: String, quantity: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize(price:, price_id:, subtotal:, total:, quantity: nil) + def self.new(price:, price_id:, subtotal:, total:, quantity: nil) end sig do diff --git a/rbi/lib/orb/models/subscription_fetch_params.rbi b/rbi/lib/orb/models/subscription_fetch_params.rbi index 8d72e847..50a9ce0a 100644 --- a/rbi/lib/orb/models/subscription_fetch_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi index e9da56ac..04145cdb 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi @@ -64,9 +64,9 @@ module Orb start_date_lte: T.nilable(Time), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cursor: nil, limit: nil, start_date_gt: nil, diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi index 4f69a369..6f656363 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi @@ -45,9 +45,9 @@ module Orb plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(created_at:, end_date:, plan:, start_date:) + def self.new(created_at:, end_date:, plan:, start_date:) end sig do @@ -90,9 +90,10 @@ module Orb end sig do - params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)).void + params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) + .returns(T.attached_class) end - def initialize(id:, external_plan_id:, name:) + def self.new(id:, external_plan_id:, name:) end sig do diff --git a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi index ee53a791..1f2cb60f 100644 --- a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi @@ -100,9 +100,9 @@ module Orb view_mode: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( billable_metric_id: nil, first_dimension_key: nil, first_dimension_value: nil, @@ -143,8 +143,10 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -154,8 +156,10 @@ module Orb PERIODIC = T.let(:periodic, T.nilable(Symbol)) CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/subscription_list_params.rbi b/rbi/lib/orb/models/subscription_list_params.rbi index a641436a..61478f50 100644 --- a/rbi/lib/orb/models/subscription_list_params.rbi +++ b/rbi/lib/orb/models/subscription_list_params.rbi @@ -91,9 +91,9 @@ module Orb status: T.nilable(Symbol), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, @@ -134,8 +134,10 @@ module Orb ENDED = T.let(:ended, T.nilable(Symbol)) UPCOMING = T.let(:upcoming, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_params.rbi b/rbi/lib/orb/models/subscription_price_intervals_params.rbi index 534c5fc1..75e09b80 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_params.rbi @@ -67,9 +67,9 @@ module Orb edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( add: nil, add_adjustments: nil, allow_invoice_credit_or_void: nil, @@ -399,9 +399,9 @@ module Orb price_id: T.nilable(String), usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( start_date:, allocation_price: nil, discounts: nil, @@ -481,8 +481,10 @@ module Orb class StartDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end @@ -520,14 +522,10 @@ module Orb end sig do - params( - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - ).void + params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + .returns(T.attached_class) end - def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) + def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) end sig do @@ -552,8 +550,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -578,8 +578,8 @@ module Orb def discount_type=(_) end - sig { params(amount_discount: Float, discount_type: Symbol).void } - def initialize(amount_discount:, discount_type: :amount) + sig { params(amount_discount: Float, discount_type: Symbol).returns(T.attached_class) } + def self.new(amount_discount:, discount_type: :amount) end sig { override.returns({amount_discount: Float, discount_type: Symbol}) } @@ -604,8 +604,8 @@ module Orb def percentage_discount=(_) end - sig { params(percentage_discount: Float, discount_type: Symbol).void } - def initialize(percentage_discount:, discount_type: :percentage) + sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } + def self.new(percentage_discount:, discount_type: :percentage) end sig { override.returns({discount_type: Symbol, percentage_discount: Float}) } @@ -630,8 +630,8 @@ module Orb def usage_discount=(_) end - sig { params(usage_discount: Float, discount_type: Symbol).void } - def initialize(usage_discount:, discount_type: :usage) + sig { params(usage_discount: Float, discount_type: Symbol).returns(T.attached_class) } + def self.new(usage_discount:, discount_type: :usage) end sig { override.returns({discount_type: Symbol, usage_discount: Float}) } @@ -639,21 +639,25 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams]] + ) + end + private def variants + end end end class EndDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end @@ -674,8 +678,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, quantity: Integer).void } - def initialize(effective_date:, quantity:) + sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, quantity:) end sig { override.returns({effective_date: Time, quantity: Integer}) } @@ -869,9 +873,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -929,8 +933,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -943,8 +949,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -969,8 +975,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -983,8 +989,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1006,8 +1014,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1020,8 +1028,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1212,9 +1222,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -1272,8 +1282,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1294,8 +1306,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -1320,8 +1332,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1334,8 +1346,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1357,8 +1371,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1371,8 +1385,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1561,9 +1577,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -1621,8 +1637,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1676,9 +1694,9 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue ] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -1713,8 +1731,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -1740,8 +1763,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1754,8 +1777,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1777,8 +1802,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1791,8 +1816,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1989,9 +2016,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -2049,8 +2076,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2113,9 +2142,9 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue ] ) - .void + .returns(T.attached_class) end - def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) + def self.new(allocation:, default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -2151,8 +2180,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -2178,8 +2212,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2192,8 +2226,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2215,8 +2251,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2229,8 +2265,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2419,9 +2457,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -2479,8 +2517,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2508,9 +2548,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -2549,8 +2589,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig do @@ -2578,8 +2624,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2592,8 +2638,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2615,8 +2663,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2629,8 +2677,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2827,9 +2877,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -2887,8 +2937,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2924,9 +2976,9 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -2982,9 +3034,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -3020,8 +3072,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3034,8 +3086,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3057,8 +3111,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3071,8 +3125,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3261,9 +3317,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bps_config:, cadence:, currency:, @@ -3328,8 +3384,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -3347,8 +3403,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3369,8 +3427,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3383,8 +3441,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3406,8 +3466,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3420,8 +3480,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3612,9 +3674,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_bps_config:, cadence:, currency:, @@ -3686,9 +3748,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -3728,13 +3790,10 @@ module Orb end sig do - params( - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -3761,8 +3820,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3783,8 +3844,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3797,8 +3858,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3820,8 +3883,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3834,8 +3897,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4024,9 +4089,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_config:, cadence:, currency:, @@ -4098,9 +4163,9 @@ module Orb params( tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -4131,8 +4196,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } @@ -4151,8 +4216,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4173,8 +4240,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4187,8 +4254,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4210,8 +4279,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4224,8 +4293,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4411,9 +4482,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -4471,8 +4542,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4493,8 +4566,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4507,8 +4580,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4530,8 +4605,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4544,8 +4619,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4731,9 +4808,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -4791,8 +4868,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4813,8 +4892,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4827,8 +4906,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4850,8 +4931,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4864,8 +4945,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5051,9 +5134,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, grouped_tiered_config:, @@ -5111,8 +5194,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5133,8 +5218,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5147,8 +5232,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5170,8 +5257,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5184,8 +5271,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5371,9 +5460,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -5431,8 +5520,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5453,8 +5544,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5467,8 +5558,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5490,8 +5583,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5504,8 +5597,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5691,9 +5786,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -5751,8 +5846,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5773,8 +5870,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5787,8 +5884,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5810,8 +5909,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5824,8 +5923,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6011,9 +6112,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -6071,8 +6172,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6093,8 +6196,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6107,8 +6210,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6130,8 +6235,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6144,8 +6249,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6331,9 +6438,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -6391,8 +6498,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6413,8 +6522,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6427,8 +6536,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6450,8 +6561,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6464,8 +6575,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6651,9 +6764,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -6711,8 +6824,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6733,8 +6848,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6747,8 +6862,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6770,8 +6887,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6784,8 +6901,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6971,9 +7090,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -7031,8 +7150,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7053,8 +7174,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7067,8 +7188,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7090,8 +7213,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7104,8 +7227,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7291,9 +7416,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -7351,8 +7476,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7373,8 +7500,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7387,8 +7514,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7410,8 +7539,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7424,8 +7553,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7611,9 +7742,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, grouped_allocation_config:, @@ -7671,8 +7802,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7693,8 +7826,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7707,8 +7840,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7730,8 +7865,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7744,8 +7879,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7931,9 +8068,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, grouped_with_prorated_minimum_config:, @@ -7991,8 +8128,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8013,8 +8152,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8027,8 +8166,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8050,8 +8191,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8064,8 +8205,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8251,9 +8394,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, grouped_with_metered_minimum_config:, @@ -8311,8 +8454,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8333,8 +8478,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8347,8 +8492,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8370,8 +8517,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8384,8 +8531,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8571,9 +8720,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -8631,8 +8780,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8653,8 +8804,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8667,8 +8818,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8690,8 +8843,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8704,8 +8857,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8891,9 +9046,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_with_proration_config:, cadence:, currency:, @@ -8951,8 +9106,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8973,8 +9130,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8987,8 +9144,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9010,8 +9169,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9024,8 +9183,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9211,9 +9372,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, grouped_tiered_package_config:, @@ -9271,8 +9432,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9293,8 +9456,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9307,8 +9470,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9330,8 +9495,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9344,8 +9509,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9531,9 +9698,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -9591,8 +9758,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9613,8 +9782,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9627,8 +9796,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9650,8 +9821,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9664,8 +9835,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9851,9 +10024,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, currency:, item_id:, @@ -9911,8 +10084,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9933,8 +10108,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9947,8 +10122,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9970,8 +10147,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9984,8 +10161,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -10171,9 +10350,9 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, cumulative_grouped_bulk_config:, currency:, @@ -10231,8 +10410,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10253,8 +10434,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10267,8 +10448,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -10290,8 +10473,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10304,20 +10487,24 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice]] + ) + end + private def variants + end end end end @@ -10388,9 +10575,9 @@ module Orb start_date: T.any(Time, Symbol), end_date: T.nilable(T.any(Time, Symbol)) ) - .void + .returns(T.attached_class) end - def initialize(adjustment:, start_date:, end_date: nil) + def self.new(adjustment:, start_date:, end_date: nil) end sig do @@ -10455,14 +10642,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10520,14 +10702,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10585,14 +10762,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10659,15 +10831,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10726,14 +10892,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10751,29 +10912,35 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum]] + ) + end + private def variants + end end end class StartDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end class EndDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end end @@ -10856,9 +11023,9 @@ module Orb start_date: T.any(Time, Symbol), usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( price_interval_id:, billing_cycle_day: nil, end_date: nil, @@ -10889,8 +11056,10 @@ module Orb class EndDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end @@ -10911,8 +11080,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, quantity: Integer).void } - def initialize(effective_date:, quantity:) + sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, quantity:) end sig { override.returns({effective_date: Time, quantity: Integer}) } @@ -10923,8 +11092,10 @@ module Orb class StartDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end end @@ -10960,9 +11131,9 @@ module Orb end_date: T.nilable(T.any(Time, Symbol)), start_date: T.any(Time, Symbol) ) - .void + .returns(T.attached_class) end - def initialize(adjustment_interval_id:, end_date: nil, start_date: nil) + def self.new(adjustment_interval_id:, end_date: nil, start_date: nil) end sig do @@ -10981,16 +11152,20 @@ module Orb class EndDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end class StartDate < Orb::Union abstract! - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_response.rbi b/rbi/lib/orb/models/subscription_price_intervals_response.rbi index 1e9e264f..10bf8b48 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1731,9 +1728,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1823,8 +1820,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1858,8 +1855,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1874,8 +1873,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1888,8 +1889,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } 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 24e3213c..a14bf172 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi @@ -265,9 +265,9 @@ module Orb usage_customer_ids: T.nilable(T::Array[String]), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( change_option:, add_adjustments: nil, add_prices: nil, @@ -342,8 +342,10 @@ module Orb END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term IMMEDIATE = :immediate - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -422,9 +424,9 @@ module Orb plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) + def self.new(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) end sig do @@ -490,14 +492,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -555,14 +552,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -620,14 +612,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -694,15 +681,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -761,14 +742,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -786,13 +762,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum]] + ) + end + private def variants + end end end end @@ -1020,9 +998,9 @@ module Orb price_id: T.nilable(String), start_date: T.nilable(Time) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( allocation_price: nil, discounts: nil, end_date: nil, @@ -1118,14 +1096,10 @@ module Orb end sig do - params( - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - ).void + params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + .returns(T.attached_class) end - def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) + def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) end sig do @@ -1150,8 +1124,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1196,9 +1172,9 @@ module Orb percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) + def self.new(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do @@ -1222,8 +1198,10 @@ module Orb USAGE = :usage AMOUNT = :amount - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1431,9 +1409,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -1493,8 +1471,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1507,8 +1487,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -1533,8 +1513,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1547,8 +1527,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1570,8 +1552,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1584,8 +1566,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1791,9 +1775,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -1853,8 +1837,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1875,8 +1861,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -1901,8 +1887,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1915,8 +1901,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -1938,8 +1926,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -1952,8 +1940,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2159,9 +2149,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_config:, @@ -2221,8 +2211,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2276,9 +2268,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -2313,8 +2305,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -2340,8 +2337,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2354,8 +2351,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2377,8 +2376,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2391,8 +2390,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2598,9 +2599,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -2660,8 +2661,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -2697,9 +2700,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -2740,8 +2743,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig do @@ -2769,8 +2778,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2783,8 +2792,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -2806,8 +2817,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -2820,8 +2831,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3027,9 +3040,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -3089,8 +3102,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3126,9 +3141,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -3184,9 +3199,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -3222,8 +3237,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3236,8 +3251,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3259,8 +3276,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3273,8 +3290,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3480,9 +3499,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bps_config:, cadence:, item_id:, @@ -3549,8 +3568,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -3568,8 +3587,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -3590,8 +3611,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3604,8 +3625,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3627,8 +3650,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -3641,8 +3664,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -3848,9 +3873,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_bps_config:, cadence:, item_id:, @@ -3932,9 +3957,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -3976,13 +4001,10 @@ module Orb end sig do - params( - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -4009,8 +4031,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4031,8 +4055,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4045,8 +4069,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4068,8 +4094,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4082,8 +4108,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4289,9 +4317,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_config:, cadence:, item_id:, @@ -4373,9 +4401,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -4408,8 +4436,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } @@ -4428,8 +4456,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4450,8 +4480,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4464,8 +4494,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4487,8 +4519,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4501,8 +4533,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4697,9 +4731,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -4759,8 +4793,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -4781,8 +4817,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4795,8 +4831,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -4818,8 +4856,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -4832,8 +4870,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5028,9 +5068,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -5090,8 +5130,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5112,8 +5154,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5126,8 +5168,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5149,8 +5193,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5163,8 +5207,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5359,9 +5405,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -5421,8 +5467,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5443,8 +5491,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5457,8 +5505,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5480,8 +5530,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5494,8 +5544,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5690,9 +5742,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -5752,8 +5804,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -5774,8 +5828,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5788,8 +5842,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -5811,8 +5867,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -5825,8 +5881,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6021,9 +6079,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -6083,8 +6141,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6105,8 +6165,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6119,8 +6179,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6142,8 +6204,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6156,8 +6218,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6352,9 +6416,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -6414,8 +6478,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6436,8 +6502,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6450,8 +6516,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6473,8 +6541,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6487,8 +6555,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6683,9 +6753,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -6745,8 +6815,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -6767,8 +6839,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6781,8 +6853,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -6804,8 +6878,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -6818,8 +6892,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7014,9 +7090,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_allocation_config:, item_id:, @@ -7076,8 +7152,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7098,8 +7176,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7112,8 +7190,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7135,8 +7215,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7149,8 +7229,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7345,9 +7427,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_prorated_minimum_config:, item_id:, @@ -7407,8 +7489,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7429,8 +7513,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7443,8 +7527,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7466,8 +7552,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7480,8 +7566,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7676,9 +7764,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_with_proration_config:, cadence:, item_id:, @@ -7738,8 +7826,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -7760,8 +7850,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7774,8 +7864,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -7797,8 +7889,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -7811,8 +7903,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8007,9 +8101,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -8069,8 +8163,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8091,8 +8187,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8105,8 +8201,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8128,8 +8226,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8142,8 +8240,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8338,9 +8438,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -8400,8 +8500,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8422,8 +8524,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8436,8 +8538,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8459,8 +8563,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8473,8 +8577,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8669,9 +8775,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, cumulative_grouped_bulk_config:, item_id:, @@ -8731,8 +8837,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -8753,8 +8861,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8767,8 +8875,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -8790,8 +8900,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -8804,8 +8914,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9000,9 +9112,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, max_group_tiered_package_config:, @@ -9062,8 +9174,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9084,8 +9198,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9098,8 +9212,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9121,8 +9237,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9135,8 +9251,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9331,9 +9449,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_metered_minimum_config:, item_id:, @@ -9393,8 +9511,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9415,8 +9535,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9429,8 +9549,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9452,8 +9574,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9466,8 +9588,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9662,9 +9786,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_with_display_name_config:, @@ -9724,8 +9848,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -9746,8 +9872,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9760,8 +9886,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9783,8 +9911,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -9797,8 +9925,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -9993,9 +10123,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_tiered_package_config:, item_id:, @@ -10055,8 +10185,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10077,8 +10209,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10091,8 +10223,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -10114,8 +10248,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -10128,20 +10262,24 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice]] + ) + end + private def variants + end end end end @@ -10153,8 +10291,10 @@ module Orb PLAN_CHANGE_DATE = T.let(:plan_change_date, T.nilable(Symbol)) START_OF_MONTH = T.let(:start_of_month, T.nilable(Symbol)) - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -10183,8 +10323,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -10201,8 +10343,8 @@ module Orb def adjustment_id=(_) end - sig { params(adjustment_id: String).void } - def initialize(adjustment_id:) + sig { params(adjustment_id: String).returns(T.attached_class) } + def self.new(adjustment_id:) end sig { override.returns({adjustment_id: String}) } @@ -10227,8 +10369,10 @@ module Orb def price_id=(_) end - sig { params(external_price_id: T.nilable(String), price_id: T.nilable(String)).void } - def initialize(external_price_id: nil, price_id: nil) + sig do + params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) + end + def self.new(external_price_id: nil, price_id: nil) end sig { override.returns({external_price_id: T.nilable(String), price_id: T.nilable(String)}) } @@ -10293,9 +10437,9 @@ module Orb ), replaces_adjustment_id: String ) - .void + .returns(T.attached_class) end - def initialize(adjustment:, replaces_adjustment_id:) + def self.new(adjustment:, replaces_adjustment_id:) end sig do @@ -10359,14 +10503,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10424,14 +10563,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10489,14 +10623,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10563,15 +10692,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10630,14 +10753,9 @@ module Orb is_invoice_level: T::Boolean, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -10655,13 +10773,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum]] + ) + end + private def variants + end end end end @@ -10880,9 +11000,9 @@ module Orb ), price_id: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( replaces_price_id:, allocation_price: nil, discounts: nil, @@ -10976,14 +11096,10 @@ module Orb end sig do - params( - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - ).void + params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + .returns(T.attached_class) end - def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) + def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) end sig do @@ -11008,8 +11124,10 @@ module Orb ANNUAL = :annual CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11054,9 +11172,9 @@ module Orb percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) + def self.new(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end sig do @@ -11080,8 +11198,10 @@ module Orb USAGE = :usage AMOUNT = :amount - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11289,9 +11409,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -11351,8 +11471,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11365,8 +11487,8 @@ module Orb def unit_amount=(_) end - sig { params(unit_amount: String).void } - def initialize(unit_amount:) + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new(unit_amount:) end sig { override.returns({unit_amount: String}) } @@ -11391,8 +11513,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11405,8 +11527,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11428,8 +11552,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11442,8 +11566,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11649,9 +11775,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -11711,8 +11837,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -11733,8 +11861,8 @@ module Orb def package_size=(_) end - sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:) + sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + def self.new(package_amount:, package_size:) end sig { override.returns({package_amount: String, package_size: Integer}) } @@ -11759,8 +11887,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11773,8 +11901,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -11796,8 +11926,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -11810,8 +11940,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12017,9 +12149,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_config:, @@ -12079,8 +12211,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12134,9 +12268,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue ] ) - .void + .returns(T.attached_class) end - def initialize(default_unit_amount:, dimensions:, matrix_values:) + def self.new(default_unit_amount:, dimensions:, matrix_values:) end sig do @@ -12171,8 +12305,13 @@ module Orb def unit_amount=(_) end - sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:) + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new(dimension_values:, unit_amount:) end sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } @@ -12198,8 +12337,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12212,8 +12351,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12235,8 +12376,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12249,8 +12390,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12456,9 +12599,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -12518,8 +12661,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12555,9 +12700,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -12598,8 +12743,14 @@ module Orb def last_unit=(_) end - sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil) + sig do + params( + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + ).returns(T.attached_class) + end + def self.new(first_unit:, unit_amount:, last_unit: nil) end sig do @@ -12627,8 +12778,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12641,8 +12792,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12664,8 +12817,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -12678,8 +12831,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -12885,9 +13040,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -12947,8 +13102,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -12984,9 +13141,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -13042,9 +13199,9 @@ module Orb maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -13080,8 +13237,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13094,8 +13251,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13117,8 +13276,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13131,8 +13290,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13338,9 +13499,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bps_config:, cadence:, item_id:, @@ -13407,8 +13568,8 @@ module Orb def per_unit_maximum=(_) end - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil) + sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + def self.new(bps:, per_unit_maximum: nil) end sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } @@ -13426,8 +13587,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -13448,8 +13611,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13462,8 +13625,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13485,8 +13650,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13499,8 +13664,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13706,9 +13873,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_bps_config:, cadence:, item_id:, @@ -13790,9 +13957,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -13834,13 +14001,10 @@ module Orb end sig do - params( - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).void + params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) + .returns(T.attached_class) end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil) end sig do @@ -13867,8 +14031,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -13889,8 +14055,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13903,8 +14069,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -13926,8 +14094,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -13940,8 +14108,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14147,9 +14317,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_config:, cadence:, item_id:, @@ -14231,9 +14401,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier ] ) - .void + .returns(T.attached_class) end - def initialize(tiers:) + def self.new(tiers:) end sig do @@ -14266,8 +14436,8 @@ module Orb def maximum_units=(_) end - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil) + sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + def self.new(unit_amount:, maximum_units: nil) end sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } @@ -14286,8 +14456,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14308,8 +14480,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14322,8 +14494,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14345,8 +14519,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14359,8 +14533,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14555,9 +14731,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -14617,8 +14793,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14639,8 +14817,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14653,8 +14831,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14676,8 +14856,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14690,8 +14870,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -14886,9 +15068,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -14948,8 +15130,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -14970,8 +15154,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -14984,8 +15168,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15007,8 +15193,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15021,8 +15207,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15217,9 +15405,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -15279,8 +15467,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15301,8 +15491,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15315,8 +15505,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15338,8 +15530,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15352,8 +15544,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15548,9 +15742,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -15610,8 +15804,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15632,8 +15828,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15646,8 +15842,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15669,8 +15867,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15683,8 +15881,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -15879,9 +16079,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -15941,8 +16141,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -15963,8 +16165,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -15977,8 +16179,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16000,8 +16204,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16014,8 +16218,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16210,9 +16416,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -16272,8 +16478,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16294,8 +16502,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16308,8 +16516,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16331,8 +16541,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16345,8 +16555,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16541,9 +16753,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -16603,8 +16815,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16625,8 +16839,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16639,8 +16853,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16662,8 +16878,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16676,8 +16892,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16872,9 +17090,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_allocation_config:, item_id:, @@ -16934,8 +17152,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -16956,8 +17176,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -16970,8 +17190,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -16993,8 +17215,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17007,8 +17229,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17203,9 +17427,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_prorated_minimum_config:, item_id:, @@ -17265,8 +17489,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17287,8 +17513,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17301,8 +17527,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17324,8 +17552,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17338,8 +17566,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17534,9 +17764,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( bulk_with_proration_config:, cadence:, item_id:, @@ -17596,8 +17826,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17618,8 +17850,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17632,8 +17864,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17655,8 +17889,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17669,8 +17903,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17865,9 +18101,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -17927,8 +18163,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -17949,8 +18187,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -17963,8 +18201,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -17986,8 +18226,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18000,8 +18240,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18196,9 +18438,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, name:, @@ -18258,8 +18500,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -18280,8 +18524,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18294,8 +18538,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18317,8 +18563,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18331,8 +18577,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18527,9 +18775,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, cumulative_grouped_bulk_config:, item_id:, @@ -18589,8 +18837,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -18611,8 +18861,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18625,8 +18875,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18648,8 +18900,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18662,8 +18914,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18858,9 +19112,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, max_group_tiered_package_config:, @@ -18920,8 +19174,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -18942,8 +19198,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18956,8 +19212,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -18979,8 +19237,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -18993,8 +19251,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19189,9 +19449,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_with_metered_minimum_config:, item_id:, @@ -19251,8 +19511,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -19273,8 +19535,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19287,8 +19549,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19310,8 +19574,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19324,8 +19588,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19520,9 +19786,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, item_id:, matrix_with_display_name_config:, @@ -19582,8 +19848,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -19604,8 +19872,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19618,8 +19886,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19641,8 +19911,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19655,8 +19925,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19851,9 +20123,9 @@ module Orb reference_id: T.nilable(String), model_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( cadence:, grouped_tiered_package_config:, item_id:, @@ -19913,8 +20185,10 @@ module Orb ONE_TIME = :one_time CUSTOM = :custom - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -19935,8 +20209,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19949,8 +20223,10 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -19972,8 +20248,8 @@ module Orb def duration_unit=(_) end - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:) + sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + def self.new(duration:, duration_unit:) end sig { override.returns({duration: Integer, duration_unit: Symbol}) } @@ -19986,20 +20262,24 @@ module Orb DAY = :day MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice]] + ) + end + private def variants + end end end end diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi index 2eaa9e89..a8443d36 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1731,9 +1728,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1823,8 +1820,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1858,8 +1855,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1874,8 +1873,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1888,8 +1889,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } diff --git a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi index a1d912f8..8d50a659 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi @@ -28,9 +28,9 @@ module Orb effective_date: T.nilable(Date), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(allow_invoice_credit_or_void: nil, effective_date: nil, request_options: {}) + def self.new(allow_invoice_credit_or_void: nil, effective_date: nil, request_options: {}) end sig do diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index ad6f1688..cda5bbc1 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1731,9 +1728,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1823,8 +1820,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1858,8 +1855,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1874,8 +1873,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1888,8 +1889,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi index 80248db2..453c72f2 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index de69b795..22c8b2fb 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1731,9 +1728,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1823,8 +1820,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1858,8 +1855,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1874,8 +1873,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1888,8 +1889,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } 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 bf89eead..b1a644e7 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 @@ -15,12 +15,10 @@ module Orb end sig do - params( - price_id: String, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ).void + params(price_id: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + .returns(T.attached_class) end - def initialize(price_id:, request_options: {}) + def self.new(price_id:, request_options: {}) end sig { override.returns({price_id: String, request_options: Orb::RequestOptions}) } 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 610a10a2..292455aa 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi @@ -308,9 +308,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -464,9 +464,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -560,9 +560,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -658,9 +658,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -756,9 +756,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -863,9 +863,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -963,9 +963,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -994,13 +994,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1030,8 +1032,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1100,9 +1104,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1187,9 +1191,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1274,9 +1278,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1303,13 +1307,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1346,8 +1352,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1406,15 +1415,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1482,15 +1485,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1757,9 +1754,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1851,8 +1848,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1886,8 +1883,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1902,8 +1901,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1916,8 +1917,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } 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 5c0459ac..19f23250 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } 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 837d2ddc..755aa546 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi @@ -292,9 +292,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -448,9 +448,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -544,9 +544,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -642,9 +642,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -740,9 +740,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -847,9 +847,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -947,9 +947,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -978,13 +978,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1014,8 +1016,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1084,9 +1088,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1171,9 +1175,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1258,9 +1262,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1287,13 +1291,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1330,8 +1336,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1390,15 +1399,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1466,15 +1469,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1733,9 +1730,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1825,8 +1822,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1860,8 +1857,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1876,8 +1875,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1890,8 +1891,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } 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 ede2dec2..e4e1af74 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi @@ -55,9 +55,9 @@ module Orb effective_date: T.nilable(Date), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( price_id:, quantity:, allow_invoice_credit_or_void: nil, @@ -90,8 +90,10 @@ module Orb UPCOMING_INVOICE = :upcoming_invoice EFFECTIVE_DATE = :effective_date - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi index 6a499f67..c4eed622 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1731,9 +1728,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1823,8 +1820,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1858,8 +1855,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1874,8 +1873,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1888,8 +1889,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } diff --git a/rbi/lib/orb/models/subscription_update_params.rbi b/rbi/lib/orb/models/subscription_update_params.rbi index 91a865d4..2a42dee9 100644 --- a/rbi/lib/orb/models/subscription_update_params.rbi +++ b/rbi/lib/orb/models/subscription_update_params.rbi @@ -58,9 +58,9 @@ module Orb net_terms: T.nilable(Integer), request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( auto_collection: nil, default_invoice_memo: nil, invoicing_threshold: nil, diff --git a/rbi/lib/orb/models/subscription_update_trial_params.rbi b/rbi/lib/orb/models/subscription_update_trial_params.rbi index c0f986e0..b64fa5b7 100644 --- a/rbi/lib/orb/models/subscription_update_trial_params.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_params.rbi @@ -28,9 +28,9 @@ module Orb shift: T::Boolean, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ) - .void + .returns(T.attached_class) end - def initialize(trial_end_date:, shift: nil, request_options: {}) + def self.new(trial_end_date:, shift: nil, request_options: {}) end sig do @@ -52,13 +52,17 @@ module Orb IMMEDIATE = :immediate - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants + class << self + sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } + private def variants + end end end end diff --git a/rbi/lib/orb/models/subscription_update_trial_response.rbi b/rbi/lib/orb/models/subscription_update_trial_response.rbi index 2bc1c706..02aa7e30 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -290,9 +290,9 @@ module Orb status: Symbol, trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, active_plan_phase_order:, adjustment_intervals:, @@ -446,9 +446,9 @@ module Orb end_date: T.nilable(Time), start_date: Time ) - .void + .returns(T.attached_class) end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + def self.new(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) end sig do @@ -542,9 +542,9 @@ module Orb usage_discount: Float, adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -640,9 +640,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, amount_discount:, applies_to_price_ids:, @@ -738,9 +738,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -845,9 +845,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -945,9 +945,9 @@ module Orb reason: T.nilable(String), adjustment_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, applies_to_price_ids:, is_invoice_level:, @@ -976,13 +976,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] + ) + end + private def variants + end end end end @@ -1012,8 +1014,10 @@ module Orb def year=(_) end - sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil) + sig do + params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + end + def self.new(day:, month: nil, year: nil) end sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } @@ -1082,9 +1086,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, @@ -1169,9 +1173,9 @@ module Orb start_date: Time, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1256,9 +1260,9 @@ module Orb usage_discount: Float, discount_type: Symbol ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, @@ -1285,13 +1289,15 @@ module Orb end end - sig do - override - .returns( - [[Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval], [Symbol, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval]] + ) + end + private def variants + end end end @@ -1328,8 +1334,11 @@ module Orb def start_date=(_) end - sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:) + sig do + params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) + .returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end sig do @@ -1388,15 +1397,9 @@ module Orb maximum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1464,15 +1467,9 @@ module Orb minimum_amount: String, start_date: Time ) - .void + .returns(T.attached_class) end - def initialize( - 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 @@ -1731,9 +1728,9 @@ module Orb start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( id:, billing_cycle_day:, current_billing_period_end_date:, @@ -1823,8 +1820,8 @@ module Orb def quantity=(_) end - sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:) + sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } + def self.new(effective_date:, price_id:, quantity:) end sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } @@ -1858,8 +1855,10 @@ module Orb def start_date=(_) end - sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:) + sig do + params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } @@ -1874,8 +1873,10 @@ module Orb ENDED = :ended UPCOMING = :upcoming - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end @@ -1888,8 +1889,8 @@ module Orb def end_date=(_) end - sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:) + sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } + def self.new(end_date:) end sig { override.returns({end_date: T.nilable(Time)}) } diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index 739ed9e1..06976204 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -17,8 +17,11 @@ module Orb def data=(_) end - sig { params(data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]).void } - def initialize(data:) + sig do + params(data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) + .returns(T.attached_class) + end + def self.new(data:) end sig { override.returns({data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]}) } @@ -62,9 +65,9 @@ module Orb usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], view_mode: Symbol ) - .void + .returns(T.attached_class) end - def initialize(billable_metric:, usage:, view_mode:) + def self.new(billable_metric:, usage:, view_mode:) end sig do @@ -97,8 +100,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -131,8 +134,10 @@ module Orb def timeframe_start=(_) end - sig { params(quantity: Float, timeframe_end: Time, timeframe_start: Time).void } - def initialize(quantity:, timeframe_end:, timeframe_start:) + sig do + params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) + end + def self.new(quantity:, timeframe_end:, timeframe_start:) end sig { override.returns({quantity: Float, timeframe_end: Time, timeframe_start: Time}) } @@ -146,8 +151,10 @@ module Orb PERIODIC = :periodic CUMULATIVE = :cumulative - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end @@ -178,9 +185,9 @@ module Orb data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) ) - .void + .returns(T.attached_class) end - def initialize(data:, pagination_metadata: nil) + def self.new(data:, pagination_metadata: nil) end sig do @@ -244,9 +251,9 @@ module Orb usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], view_mode: Symbol ) - .void + .returns(T.attached_class) end - def initialize(billable_metric:, metric_group:, usage:, view_mode:) + def self.new(billable_metric:, metric_group:, usage:, view_mode:) end sig do @@ -280,8 +287,8 @@ module Orb def name=(_) end - sig { params(id: String, name: String).void } - def initialize(id:, name:) + sig { params(id: String, name: String).returns(T.attached_class) } + def self.new(id:, name:) end sig { override.returns({id: String, name: String}) } @@ -306,8 +313,8 @@ module Orb def property_value=(_) end - sig { params(property_key: String, property_value: String).void } - def initialize(property_key:, property_value:) + sig { params(property_key: String, property_value: String).returns(T.attached_class) } + def self.new(property_key:, property_value:) end sig { override.returns({property_key: String, property_value: String}) } @@ -340,8 +347,10 @@ module Orb def timeframe_start=(_) end - sig { params(quantity: Float, timeframe_end: Time, timeframe_start: Time).void } - def initialize(quantity:, timeframe_end:, timeframe_start:) + sig do + params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) + end + def self.new(quantity:, timeframe_end:, timeframe_start:) end sig { override.returns({quantity: Float, timeframe_end: Time, timeframe_start: Time}) } @@ -355,20 +364,24 @@ module Orb PERIODIC = :periodic CUMULATIVE = :cumulative - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end end - sig do - override - .returns( - [[NilClass, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage], [NilClass, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage]] - ) - end - private_class_method def self.variants + class << self + sig do + override + .returns( + [[NilClass, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage], [NilClass, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage]] + ) + end + private def variants + end end end end diff --git a/rbi/lib/orb/models/subscriptions.rbi b/rbi/lib/orb/models/subscriptions.rbi index e2daf847..8aad6c17 100644 --- a/rbi/lib/orb/models/subscriptions.rbi +++ b/rbi/lib/orb/models/subscriptions.rbi @@ -21,9 +21,9 @@ module Orb sig do params(data: T::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata) - .void + .returns(T.attached_class) end - def initialize(data:, pagination_metadata:) + def self.new(data:, pagination_metadata:) end sig do diff --git a/rbi/lib/orb/models/top_level_ping_params.rbi b/rbi/lib/orb/models/top_level_ping_params.rbi index 03d0d22a..c6826ab9 100644 --- a/rbi/lib/orb/models/top_level_ping_params.rbi +++ b/rbi/lib/orb/models/top_level_ping_params.rbi @@ -6,8 +6,15 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } - def initialize(request_options: {}) + sig do + params( + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).returns(T.attached_class) + end + def self.new(request_options: {}) end sig { override.returns({request_options: Orb::RequestOptions}) } diff --git a/rbi/lib/orb/models/top_level_ping_response.rbi b/rbi/lib/orb/models/top_level_ping_response.rbi index a96c717a..2a04fd69 100644 --- a/rbi/lib/orb/models/top_level_ping_response.rbi +++ b/rbi/lib/orb/models/top_level_ping_response.rbi @@ -11,8 +11,8 @@ module Orb def response=(_) end - sig { params(response: String).void } - def initialize(response:) + sig { params(response: String).returns(T.attached_class) } + def self.new(response:) end sig { override.returns({response: String}) } diff --git a/rbi/lib/orb/models/trial_discount.rbi b/rbi/lib/orb/models/trial_discount.rbi index 1403ab1a..8e5efc16 100644 --- a/rbi/lib/orb/models/trial_discount.rbi +++ b/rbi/lib/orb/models/trial_discount.rbi @@ -51,9 +51,9 @@ module Orb trial_amount_discount: T.nilable(String), trial_percentage_discount: T.nilable(Float) ) - .void + .returns(T.attached_class) end - def initialize( + def self.new( applies_to_price_ids:, discount_type:, reason: nil, @@ -82,8 +82,10 @@ module Orb TRIAL = :trial - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/models/usage_discount.rbi b/rbi/lib/orb/models/usage_discount.rbi index 1e6422d3..347e6216 100644 --- a/rbi/lib/orb/models/usage_discount.rbi +++ b/rbi/lib/orb/models/usage_discount.rbi @@ -42,9 +42,9 @@ module Orb usage_discount: Float, reason: T.nilable(String) ) - .void + .returns(T.attached_class) end - def initialize(applies_to_price_ids:, discount_type:, usage_discount:, reason: nil) + def self.new(applies_to_price_ids:, discount_type:, usage_discount:, reason: nil) end sig do @@ -66,8 +66,10 @@ module Orb USAGE = :usage - sig { override.returns(T::Array[Symbol]) } - def self.values + class << self + sig { override.returns(T::Array[Symbol]) } + def values + end end end end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index f8c9966b..f3602d54 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -51,8 +51,8 @@ module Orb def next_cursor=(_) end - sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).void } - def initialize(has_more:, next_cursor:) + sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns(T.attached_class) } + def self.new(has_more:, next_cursor:) end sig { override.returns({has_more: T::Boolean, next_cursor: T.nilable(String)}) } diff --git a/rbi/lib/orb/pooled_net_requester.rbi b/rbi/lib/orb/pooled_net_requester.rbi index 4405adec..eb78d94b 100644 --- a/rbi/lib/orb/pooled_net_requester.rbi +++ b/rbi/lib/orb/pooled_net_requester.rbi @@ -6,16 +6,18 @@ module Orb {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} end - sig { params(url: URI::Generic).returns(Net::HTTP) } - def self.connect(url) - end + class << self + sig { params(url: URI::Generic).returns(Net::HTTP) } + def connect(url) + end - sig { params(conn: Net::HTTP, deadline: Float).void } - def self.calibrate_socket_timeout(conn, deadline) - end + sig { params(conn: Net::HTTP, deadline: Float).void } + def calibrate_socket_timeout(conn, deadline) + end - sig { params(request: Orb::PooledNetRequester::RequestShape).returns(Net::HTTPGenericRequest) } - def self.build_request(request) + sig { params(request: Orb::PooledNetRequester::RequestShape).returns(Net::HTTPGenericRequest) } + def build_request(request) + end end sig { params(url: URI::Generic, blk: T.proc.params(arg0: Net::HTTP).void).void } @@ -33,8 +35,8 @@ module Orb def execute(request) end - sig { void } - def initialize + sig { returns(T.attached_class) } + def self.new end end end diff --git a/rbi/lib/orb/request_options.rbi b/rbi/lib/orb/request_options.rbi index b3e51aac..1462bbe6 100644 --- a/rbi/lib/orb/request_options.rbi +++ b/rbi/lib/orb/request_options.rbi @@ -80,5 +80,9 @@ module Orb sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } def timeout=(_) end + + sig { params(values: T::Hash[Symbol, T.anything]).returns(T.attached_class) } + def self.new(values = {}) + end end end diff --git a/rbi/lib/orb/resources/alerts.rbi b/rbi/lib/orb/resources/alerts.rbi index 4178206b..2dee8960 100644 --- a/rbi/lib/orb/resources/alerts.rbi +++ b/rbi/lib/orb/resources/alerts.rbi @@ -120,8 +120,8 @@ module Orb def enable(alert_configuration_id, subscription_id: nil, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/coupons.rbi b/rbi/lib/orb/resources/coupons.rbi index a743e409..1bc043b8 100644 --- a/rbi/lib/orb/resources/coupons.rbi +++ b/rbi/lib/orb/resources/coupons.rbi @@ -62,8 +62,8 @@ module Orb def fetch(coupon_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/coupons/subscriptions.rbi b/rbi/lib/orb/resources/coupons/subscriptions.rbi index eaa23657..8b882ce5 100644 --- a/rbi/lib/orb/resources/coupons/subscriptions.rbi +++ b/rbi/lib/orb/resources/coupons/subscriptions.rbi @@ -16,8 +16,8 @@ module Orb def list(coupon_id, cursor: nil, limit: nil, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/credit_notes.rbi b/rbi/lib/orb/resources/credit_notes.rbi index 2f55b4f3..9b9e5a94 100644 --- a/rbi/lib/orb/resources/credit_notes.rbi +++ b/rbi/lib/orb/resources/credit_notes.rbi @@ -36,8 +36,8 @@ module Orb def fetch(credit_note_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/customers.rbi b/rbi/lib/orb/resources/customers.rbi index 53015b31..7c7d0b66 100644 --- a/rbi/lib/orb/resources/customers.rbi +++ b/rbi/lib/orb/resources/customers.rbi @@ -244,8 +244,8 @@ module Orb ) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/customers/balance_transactions.rbi b/rbi/lib/orb/resources/customers/balance_transactions.rbi index b7d6dcfb..404415e3 100644 --- a/rbi/lib/orb/resources/customers/balance_transactions.rbi +++ b/rbi/lib/orb/resources/customers/balance_transactions.rbi @@ -42,8 +42,8 @@ module Orb ) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/customers/costs.rbi b/rbi/lib/orb/resources/customers/costs.rbi index d28bb7c4..ab47af0f 100644 --- a/rbi/lib/orb/resources/customers/costs.rbi +++ b/rbi/lib/orb/resources/customers/costs.rbi @@ -46,8 +46,8 @@ module Orb ) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/customers/credits.rbi b/rbi/lib/orb/resources/customers/credits.rbi index 276ff166..1e6cd94b 100644 --- a/rbi/lib/orb/resources/customers/credits.rbi +++ b/rbi/lib/orb/resources/customers/credits.rbi @@ -54,8 +54,8 @@ module Orb ) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/customers/credits/ledger.rbi b/rbi/lib/orb/resources/customers/credits/ledger.rbi index b1c38f4c..19731f10 100644 --- a/rbi/lib/orb/resources/customers/credits/ledger.rbi +++ b/rbi/lib/orb/resources/customers/credits/ledger.rbi @@ -189,8 +189,8 @@ module Orb ) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/customers/credits/top_ups.rbi b/rbi/lib/orb/resources/customers/credits/top_ups.rbi index 6cd83ef3..35920de1 100644 --- a/rbi/lib/orb/resources/customers/credits/top_ups.rbi +++ b/rbi/lib/orb/resources/customers/credits/top_ups.rbi @@ -109,8 +109,8 @@ module Orb def list_by_external_id(external_customer_id, cursor: nil, limit: nil, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/dimensional_price_groups.rbi b/rbi/lib/orb/resources/dimensional_price_groups.rbi index d8022d6a..55fb33cd 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups.rbi @@ -49,8 +49,8 @@ module Orb def list(cursor: nil, limit: nil, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi index 2068d28c..ce300b6b 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi @@ -14,8 +14,8 @@ module Orb def retrieve(external_dimensional_price_group_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/events.rbi b/rbi/lib/orb/resources/events.rbi index 4245ef2d..ec38d575 100644 --- a/rbi/lib/orb/resources/events.rbi +++ b/rbi/lib/orb/resources/events.rbi @@ -68,8 +68,8 @@ module Orb def search(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/events/backfills.rbi b/rbi/lib/orb/resources/events/backfills.rbi index b43ab432..bf8aaa5e 100644 --- a/rbi/lib/orb/resources/events/backfills.rbi +++ b/rbi/lib/orb/resources/events/backfills.rbi @@ -70,8 +70,8 @@ module Orb def revert(backfill_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/events/volume.rbi b/rbi/lib/orb/resources/events/volume.rbi index 0734b9cf..caeee30f 100644 --- a/rbi/lib/orb/resources/events/volume.rbi +++ b/rbi/lib/orb/resources/events/volume.rbi @@ -17,8 +17,8 @@ module Orb def list(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/invoice_line_items.rbi b/rbi/lib/orb/resources/invoice_line_items.rbi index 4f84e034..ecc8e1b0 100644 --- a/rbi/lib/orb/resources/invoice_line_items.rbi +++ b/rbi/lib/orb/resources/invoice_line_items.rbi @@ -18,8 +18,8 @@ module Orb def create(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/invoices.rbi b/rbi/lib/orb/resources/invoices.rbi index 063f0226..bea3a771 100644 --- a/rbi/lib/orb/resources/invoices.rbi +++ b/rbi/lib/orb/resources/invoices.rbi @@ -165,8 +165,8 @@ module Orb def void(invoice_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/items.rbi b/rbi/lib/orb/resources/items.rbi index 8f43fd41..d317930e 100644 --- a/rbi/lib/orb/resources/items.rbi +++ b/rbi/lib/orb/resources/items.rbi @@ -51,8 +51,8 @@ module Orb def fetch(item_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/metrics.rbi b/rbi/lib/orb/resources/metrics.rbi index 05a395ef..b54f557c 100644 --- a/rbi/lib/orb/resources/metrics.rbi +++ b/rbi/lib/orb/resources/metrics.rbi @@ -61,8 +61,8 @@ module Orb def fetch(metric_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/plans.rbi b/rbi/lib/orb/resources/plans.rbi index c35c7ee3..d8e49878 100644 --- a/rbi/lib/orb/resources/plans.rbi +++ b/rbi/lib/orb/resources/plans.rbi @@ -109,8 +109,8 @@ module Orb def fetch(plan_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/plans/external_plan_id.rbi b/rbi/lib/orb/resources/plans/external_plan_id.rbi index fca8f1e6..4ffbc462 100644 --- a/rbi/lib/orb/resources/plans/external_plan_id.rbi +++ b/rbi/lib/orb/resources/plans/external_plan_id.rbi @@ -26,8 +26,8 @@ module Orb def fetch(external_plan_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/prices.rbi b/rbi/lib/orb/resources/prices.rbi index dfff22b1..10436a8f 100644 --- a/rbi/lib/orb/resources/prices.rbi +++ b/rbi/lib/orb/resources/prices.rbi @@ -285,8 +285,8 @@ module Orb def fetch(price_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/prices/external_price_id.rbi b/rbi/lib/orb/resources/prices/external_price_id.rbi index 51c2ebde..c2a50ee0 100644 --- a/rbi/lib/orb/resources/prices/external_price_id.rbi +++ b/rbi/lib/orb/resources/prices/external_price_id.rbi @@ -87,8 +87,8 @@ module Orb def fetch(external_price_id, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/subscriptions.rbi b/rbi/lib/orb/resources/subscriptions.rbi index 8f1aa8a3..1956c2d8 100644 --- a/rbi/lib/orb/resources/subscriptions.rbi +++ b/rbi/lib/orb/resources/subscriptions.rbi @@ -412,8 +412,8 @@ module Orb def update_trial(subscription_id, trial_end_date:, shift: nil, request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/resources/top_level.rbi b/rbi/lib/orb/resources/top_level.rbi index e52519c7..b4afe5fb 100644 --- a/rbi/lib/orb/resources/top_level.rbi +++ b/rbi/lib/orb/resources/top_level.rbi @@ -10,8 +10,8 @@ module Orb def ping(request_options: {}) end - sig { params(client: Orb::Client).void } - def initialize(client:) + sig { params(client: Orb::Client).returns(T.attached_class) } + def self.new(client:) end end end diff --git a/rbi/lib/orb/util.rbi b/rbi/lib/orb/util.rbi index 0f122a3a..8c97f14a 100644 --- a/rbi/lib/orb/util.rbi +++ b/rbi/lib/orb/util.rbi @@ -6,80 +6,90 @@ module Orb def self.monotonic_secs end - sig { returns(String) } - def self.arch - end + class << self + sig { returns(String) } + def arch + end - sig { returns(String) } - def self.os + sig { returns(String) } + def os + end end - sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } - def self.primitive?(input) - end + class << self + sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } + def primitive?(input) + end - sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } - def self.coerce_boolean(input) - end + sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } + def coerce_boolean(input) + end - sig { params(input: T.anything).returns(T.nilable(T::Boolean)) } - def self.coerce_boolean!(input) - end + sig { params(input: T.anything).returns(T.nilable(T::Boolean)) } + def coerce_boolean!(input) + end - sig { params(input: T.anything).returns(T.any(Integer, T.anything)) } - def self.coerce_integer(input) - end + sig { params(input: T.anything).returns(T.any(Integer, T.anything)) } + def coerce_integer(input) + end - sig { params(input: T.anything).returns(T.any(Float, T.anything)) } - def self.coerce_float(input) - end + sig { params(input: T.anything).returns(T.any(Float, T.anything)) } + def coerce_float(input) + end - sig { params(input: T.anything).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) } - def self.coerce_hash(input) + sig { params(input: T.anything).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) } + def coerce_hash(input) + end end OMIT = T.let(T.anything, T.anything) - sig { params(lhs: T.anything, rhs: T.anything, concat: T::Boolean).returns(T.anything) } - private_class_method def self.deep_merge_lr(lhs, rhs, concat: false) - end - - sig do - params(values: T::Array[T.anything], sentinel: T.nilable(T.anything), concat: T::Boolean) - .returns(T.anything) - end - def self.deep_merge(*values, sentinel: nil, concat: false) - end - - sig do - params( - data: T.any(T::Hash[Symbol, T.anything], T::Array[T.anything], T.anything), - pick: T.nilable(T.any(Symbol, Integer, T::Array[T.any(Symbol, Integer)])), - sentinel: T.nilable(T.anything), - blk: T.nilable(T.proc.returns(T.anything)) - ) - .returns(T.nilable(T.anything)) - end - def self.dig(data, pick, sentinel = nil, &blk) - end - - sig { params(uri: URI::Generic).returns(String) } - def self.uri_origin(uri) - end - - sig { params(path: T.any(String, T::Array[String])).returns(String) } - def self.interpolate_path(path) - end - - sig { params(query: T.nilable(String)).returns(T::Hash[String, T::Array[String]]) } - def self.decode_query(query) - end - - sig do - params(query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) - .returns(T.nilable(String)) - end - def self.encode_query(query) + class << self + sig { params(lhs: T.anything, rhs: T.anything, concat: T::Boolean).returns(T.anything) } + private def deep_merge_lr(lhs, rhs, concat: false) + end + + sig do + params(values: T::Array[T.anything], sentinel: T.nilable(T.anything), concat: T::Boolean) + .returns(T.anything) + end + def deep_merge(*values, sentinel: nil, concat: false) + end + + sig do + params( + data: T.any(T::Hash[Symbol, T.anything], T::Array[T.anything], T.anything), + pick: T.nilable(T.any(Symbol, Integer, T::Array[T.any(Symbol, Integer)])), + sentinel: T.nilable(T.anything), + blk: T.nilable(T.proc.returns(T.anything)) + ) + .returns(T.nilable(T.anything)) + end + def dig(data, pick, sentinel = nil, &blk) + end + end + + class << self + sig { params(uri: URI::Generic).returns(String) } + def uri_origin(uri) + end + + sig { params(path: T.any(String, T::Array[String])).returns(String) } + def interpolate_path(path) + end + end + + class << self + sig { params(query: T.nilable(String)).returns(T::Hash[String, T::Array[String]]) } + def decode_query(query) + end + + sig do + params(query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) + .returns(T.nilable(String)) + end + def encode_query(query) + end end ParsedUriShape = T.type_alias do @@ -92,74 +102,84 @@ module Orb } end - sig { params(url: T.any(URI::Generic, String)).returns(Orb::Util::ParsedUriShape) } - def self.parse_uri(url) - end - - sig { params(parsed: Orb::Util::ParsedUriShape).returns(URI::Generic) } - def self.unparse_uri(parsed) - end - - sig { params(lhs: Orb::Util::ParsedUriShape, rhs: Orb::Util::ParsedUriShape).returns(URI::Generic) } - def self.join_parsed_uri(lhs, rhs) - end - - sig do - params( - headers: T::Hash[String, - T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))] - ) - .returns(T::Hash[String, String]) - end - def self.normalized_headers(*headers) - end - - sig { params(io: StringIO, boundary: String, key: T.any(Symbol, String), val: T.anything).void } - private_class_method def self.encode_multipart_formdata(io, boundary:, key:, val:) - end - - sig { params(headers: T::Hash[String, String], body: T.anything).returns(T.anything) } - def self.encode_content(headers, body) - end - - sig do - params( - headers: T.any(T::Hash[String, String], Net::HTTPHeader), - stream: T::Enumerable[String], - suppress_error: T::Boolean - ) - .returns(T.anything) - end - def self.decode_content(headers, stream:, suppress_error: false) - end - - sig { params(enum: T::Enumerable[T.anything], close: T.proc.void).returns(T::Enumerable[T.anything]) } - def self.fused_enum(enum, &close) - end - - sig { params(enum: T.nilable(T::Enumerable[T.anything])).void } - def self.close_fused!(enum) - end - - sig do - params( - enum: T.nilable(T::Enumerable[T.anything]), - blk: T.proc.params(arg0: Enumerator::Yielder).void - ).void - end - def self.chain_fused(enum, &blk) + class << self + sig { params(url: T.any(URI::Generic, String)).returns(Orb::Util::ParsedUriShape) } + def parse_uri(url) + end + + sig { params(parsed: Orb::Util::ParsedUriShape).returns(URI::Generic) } + def unparse_uri(parsed) + end + + sig { params(lhs: Orb::Util::ParsedUriShape, rhs: Orb::Util::ParsedUriShape).returns(URI::Generic) } + def join_parsed_uri(lhs, rhs) + end + end + + class << self + sig do + params( + headers: T::Hash[String, + T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))] + ) + .returns(T::Hash[String, String]) + end + def normalized_headers(*headers) + end + end + + class << self + sig { params(io: StringIO, boundary: String, key: T.any(Symbol, String), val: T.anything).void } + private def encode_multipart_formdata(io, boundary:, key:, val:) + end + + sig { params(headers: T::Hash[String, String], body: T.anything).returns(T.anything) } + def encode_content(headers, body) + end + + sig do + params( + headers: T.any(T::Hash[String, String], Net::HTTPHeader), + stream: T::Enumerable[String], + suppress_error: T::Boolean + ) + .returns(T.anything) + end + def decode_content(headers, stream:, suppress_error: false) + end + end + + class << self + sig { params(enum: T::Enumerable[T.anything], close: T.proc.void).returns(T::Enumerable[T.anything]) } + def fused_enum(enum, &close) + end + + sig { params(enum: T.nilable(T::Enumerable[T.anything])).void } + def close_fused!(enum) + end + + sig do + params( + enum: T.nilable(T::Enumerable[T.anything]), + blk: T.proc.params(arg0: Enumerator::Yielder).void + ).void + end + def chain_fused(enum, &blk) + end end SSEMessage = T.type_alias do {event: T.nilable(String), data: T.nilable(String), id: T.nilable(String), retry: T.nilable(Integer)} end - sig { params(enum: T::Enumerable[String]).returns(T::Enumerable[String]) } - def self.decode_lines(enum) - end + class << self + sig { params(enum: T::Enumerable[String]).returns(T::Enumerable[String]) } + def decode_lines(enum) + end - sig { params(lines: T::Enumerable[String]).returns(Orb::Util::SSEMessage) } - def self.decode_sse(lines) + sig { params(lines: T::Enumerable[String]).returns(Orb::Util::SSEMessage) } + def decode_sse(lines) + end end end end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index 4b897cc7..15f9b918 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.22" + VERSION = "0.1.0-alpha.23" end diff --git a/scripts/bootstrap b/scripts/bootstrap index 0b65ccb0..88566757 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -4,7 +4,7 @@ set -e cd "$(dirname "$0")/.." -if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then +if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then brew bundle check >/dev/null 2>&1 || { echo "==> Installing Homebrew dependencies…" brew bundle diff --git a/sig/orb/request_options.rbs b/sig/orb/request_options.rbs index fd7e5314..93690538 100644 --- a/sig/orb/request_options.rbs +++ b/sig/orb/request_options.rbs @@ -36,5 +36,7 @@ module Orb attr_accessor max_retries: Integer? attr_accessor timeout: Float? + + def initialize: (?Orb::request_options | ::Hash[Symbol, top] values) -> void end end diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index 32bcebad..a8534593 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.21" + VERSION: "0.1.0-alpha.22" end