diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 154a6970..0c41cec4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.37" + ".": "0.1.0-alpha.38" } \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index d434a478..ed34263a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -39,7 +39,7 @@ Layout/LineLength: AllowedPatterns: - "^\\s*#.*$" - ^require(_relative)? - - "Orb::(Models|Resources)::" + - "Orb::(Models|Resources|Test)::" Max: 110 Layout/MultilineArrayLineBreaks: @@ -122,9 +122,9 @@ Metrics/PerceivedComplexity: Naming/BlockForwarding: Enabled: false +# Underscores are generally useful for disambiguation. Naming/ClassAndModuleCamelCase: - Exclude: - - "**/*.rbi" + Enabled: false Naming/MethodParameterName: Enabled: false @@ -202,6 +202,9 @@ Style/MethodCallWithArgsParentheses: Exclude: - "**/*.gemspec" +Style/MultilineBlockChain: + Enabled: false + # Perfectly fine. Style/MultipleComparison: Enabled: false diff --git a/CHANGELOG.md b/CHANGELOG.md index db4e9a90..e259c735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## 0.1.0-alpha.38 (2025-04-05) + +Full Changelog: [v0.1.0-alpha.37...v0.1.0-alpha.38](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.37...v0.1.0-alpha.38) + +### Features + +* support query, header, and body params that have identical names ([#226](https://github.com/orbcorp/orb-ruby/issues/226)) ([edbbd05](https://github.com/orbcorp/orb-ruby/commit/edbbd057dcfe5cf5eaa12fed6f3cb2f25f56fa19)) +* support solargraph generics ([#220](https://github.com/orbcorp/orb-ruby/issues/220)) ([3db38b4](https://github.com/orbcorp/orb-ruby/commit/3db38b4390902cf97c6942f83f1b5aed4e214041)) + + +### Bug Fixes + +* converter should transform stringio into string where applicable ([#228](https://github.com/orbcorp/orb-ruby/issues/228)) ([f818391](https://github.com/orbcorp/orb-ruby/commit/f818391228f86c671be20deb723a7570fbcdf18e)) + + +### Chores + +* document LSP support in read me ([#225](https://github.com/orbcorp/orb-ruby/issues/225)) ([574fdf4](https://github.com/orbcorp/orb-ruby/commit/574fdf455227a604a4e6370cfad093c278c1e6c4)) +* **internal:** codegen related update ([#222](https://github.com/orbcorp/orb-ruby/issues/222)) ([f4b7010](https://github.com/orbcorp/orb-ruby/commit/f4b7010a5f7241a3c3f18ad2dd5000706216f8e9)) +* **internal:** codegen related update ([#223](https://github.com/orbcorp/orb-ruby/issues/223)) ([e25b11c](https://github.com/orbcorp/orb-ruby/commit/e25b11c9a06d7fdca01fea78d0860ae41cdb4c52)) +* **internal:** run rubocop linter in parallel ([#229](https://github.com/orbcorp/orb-ruby/issues/229)) ([7b6cedd](https://github.com/orbcorp/orb-ruby/commit/7b6cedd9f976a634b4f590237e421d3312495672)) +* **internal:** version bump ([#218](https://github.com/orbcorp/orb-ruby/issues/218)) ([906a451](https://github.com/orbcorp/orb-ruby/commit/906a451f0e155d476b227d61d512b5d3cc476e43)) +* misc sdk polish ([#224](https://github.com/orbcorp/orb-ruby/issues/224)) ([f2a6cec](https://github.com/orbcorp/orb-ruby/commit/f2a6cecdfe4a4bc98089ca0a6ea31a95a100f499)) +* rename confusing `Type::BooleanModel` to `Type::Boolean` ([#227](https://github.com/orbcorp/orb-ruby/issues/227)) ([8950333](https://github.com/orbcorp/orb-ruby/commit/89503331236fa01589fe19228b6549d45f29238b)) + ## 0.1.0-alpha.37 (2025-04-03) Full Changelog: [v0.1.0-alpha.36...v0.1.0-alpha.37](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.36...v0.1.0-alpha.37) diff --git a/Gemfile.lock b/Gemfile.lock index 7185d45f..553c07ac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb-billing (0.1.0.pre.alpha.36) + orb-billing (0.1.0.pre.alpha.37) connection_pool GEM diff --git a/README.md b/README.md index 8d5fa5a4..a58418a1 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,14 @@ The underlying REST API documentation can be found on [docs.withorb.com](https:/ To use this gem, install via Bundler by adding the following to your application's `Gemfile`: + + ```ruby -gem "orb-billing", "~> 0.1.0.pre.alpha.36" +gem "orb-billing", "~> 0.1.0.pre.alpha.37" ``` + + To fetch an initial copy of the gem: ```sh @@ -130,9 +134,23 @@ orb.customers.create( ## LSP Support -### Sorbet +### Solargraph + +This library includes [Solargraph](https://solargraph.org) support for both auto completion and go to definition. + +```ruby +gem "solargraph", group: :development +``` + +After Solargraph is installed, **you must populate its index** either via the provided editor command, or by running the following in your terminal: -**This library emits an intentional warning under the [`tapioca` toolchain](https://github.com/Shopify/tapioca)**. This is normal, and does not impact functionality. +```sh +bundle exec solargraph gems +``` + +Otherwise Solargraph will not be able to provide type information or auto-completion for any non-indexed libraries. + +### Sorbet This library is written with [Sorbet type definitions](https://sorbet.org/docs/rbi). However, there is no runtime dependency on the `sorbet-runtime`. @@ -143,11 +161,17 @@ Due to limitations with the Sorbet type system, where a method otherwise can tak Please follow Sorbet's [setup guides](https://sorbet.org/docs/adopting) for best experience. ```ruby -model = Orb::Models::CustomerCreateParams.new(email: "example-customer@withorb.com", name: "My Customer") +params = Orb::Models::CustomerCreateParams.new(email: "example-customer@withorb.com", name: "My Customer") -orb.customers.create(**model) +orb.customers.create(**params) ``` +Note: **This library emits an intentional warning under the [`tapioca` toolchain](https://github.com/Shopify/tapioca)**. This is normal, and does not impact functionality. + +### Ruby LSP + +The Ruby LSP has [best effort support](https://shopify.github.io/ruby-lsp/#guessed-types) for inferring type information from Ruby code, and as such it may not always be able to provide accurate type information. + ## Advanced ### Making custom/undocumented requests diff --git a/Rakefile b/Rakefile index f91fa5df..4efefa43 100644 --- a/Rakefile +++ b/Rakefile @@ -9,8 +9,6 @@ require "rubocop/rake_task" CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/]) -xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --] - multitask(default: [:test]) multitask(:test) do @@ -22,17 +20,17 @@ multitask(:test) do ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 } end -RuboCop::RakeTask.new(:rubocop) do |t| - t.options = %w[--fail-level E] - if ENV.key?("CI") - t.options += %w[--format github] - end +rubo_find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0] +xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --] + +multitask(:rubocop) do + lint = xargs + %w[rubocop --fail-level E] + (ENV.key?("CI") ? %w[--format github] : []) + sh("#{rubo_find.shelljoin} | #{lint.shelljoin}") end multitask(:ruboformat) do - find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0] fmt = xargs + %w[rubocop --fail-level F --autocorrect --format simple --] - sh("#{find.shelljoin} | #{fmt.shelljoin}") + sh("#{rubo_find.shelljoin} | #{fmt.shelljoin}") end multitask(:syntax_tree) do diff --git a/lib/orb.rb b/lib/orb.rb index be8126fb..81290f0f 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -39,7 +39,7 @@ require_relative "orb/internal/util" require_relative "orb/internal/type/converter" require_relative "orb/internal/type/unknown" -require_relative "orb/internal/type/boolean_model" +require_relative "orb/internal/type/boolean" require_relative "orb/internal/type/enum" require_relative "orb/internal/type/union" require_relative "orb/internal/type/array_of" diff --git a/lib/orb/internal/page.rb b/lib/orb/internal/page.rb index 7b581830..8d7c49fa 100644 --- a/lib/orb/internal/page.rb +++ b/lib/orb/internal/page.rb @@ -2,6 +2,8 @@ module Orb module Internal + # @generic Elem + # # @example # if page.has_next? # page = page.next_page @@ -14,7 +16,7 @@ module Internal class Page include Orb::Internal::Type::BasePage - # @return [Array, nil] + # @return [Array>, nil] attr_accessor :data # @return [PaginationMetadata] @@ -65,6 +67,8 @@ def next_page end # @param blk [Proc] + # + # @yieldparam [generic] def auto_paging_each(&blk) unless block_given? raise ArgumentError.new("A block must be given to ##{__method__}") @@ -88,7 +92,7 @@ class PaginationMetadata < Orb::Internal::Type::BaseModel # @!attribute has_more # # @return [Boolean] - required :has_more, Orb::Internal::Type::BooleanModel + required :has_more, Orb::Internal::Type::Boolean # @!attribute next_cursor # diff --git a/lib/orb/internal/transport/base_client.rb b/lib/orb/internal/transport/base_client.rb index 9f4e4fac..379c7ee7 100644 --- a/lib/orb/internal/transport/base_client.rb +++ b/lib/orb/internal/transport/base_client.rb @@ -131,7 +131,7 @@ def follow_redirect(request, status:, response_headers:) # @api private # # @param status [Integer, Orb::Errors::APIConnectionError] - # @param stream [Enumerable, nil] + # @param stream [Enumerable, nil] def reap_connection!(status, stream:) case status in (..199) | (300..499) @@ -328,7 +328,7 @@ def initialize( # @param send_retry_header [Boolean] # # @raise [Orb::Errors::APIError] - # @return [Array(Integer, Net::HTTPResponse, Enumerable)] + # @return [Array(Integer, Net::HTTPResponse, Enumerable)] private def send_request(request, redirect_count:, retry_count:, send_retry_header:) url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout) input = {**request.except(:timeout), deadline: Orb::Internal::Util.monotonic_secs + timeout} diff --git a/lib/orb/internal/transport/pooled_net_requester.rb b/lib/orb/internal/transport/pooled_net_requester.rb index 3d3ed2b0..a858cc43 100644 --- a/lib/orb/internal/transport/pooled_net_requester.rb +++ b/lib/orb/internal/transport/pooled_net_requester.rb @@ -119,7 +119,7 @@ def build_request(request, &blk) # # @option request [Float] :deadline # - # @return [Array(Integer, Net::HTTPResponse, Enumerable)] + # @return [Array(Integer, Net::HTTPResponse, Enumerable)] def execute(request) url, deadline = request.fetch_values(:url, :deadline) diff --git a/lib/orb/internal/type/array_of.rb b/lib/orb/internal/type/array_of.rb index 22fc9342..eb6b8f0f 100644 --- a/lib/orb/internal/type/array_of.rb +++ b/lib/orb/internal/type/array_of.rb @@ -7,6 +7,8 @@ module Type # # @abstract # + # @generic Elem + # # Array of items of a given type. class ArrayOf include Orb::Internal::Type::Converter @@ -40,7 +42,7 @@ def ==(other) # @api private # - # @param value [Enumerable, Object] + # @param value [Array, Object] # # @param state [Hash{Symbol=>Object}] . # @@ -75,7 +77,7 @@ def coerce(value, state:) # @api private # - # @param value [Enumerable, Object] + # @param value [Array, Object] # # @return [Array, Object] def dump(value) @@ -85,7 +87,7 @@ def dump(value) # @api private # - # @return [Orb::Internal::Type::Converter, Class] + # @return [generic] protected def item_type = @item_type_fn.call # @api private diff --git a/lib/orb/internal/type/base_model.rb b/lib/orb/internal/type/base_model.rb index 89875adb..b93b0e38 100644 --- a/lib/orb/internal/type/base_model.rb +++ b/lib/orb/internal/type/base_model.rb @@ -168,7 +168,9 @@ def optional(name_sym, type_info, spec = {}) # @param other [Object] # # @return [Boolean] - def ==(other) = other.is_a?(Class) && other <= Orb::Internal::Type::BaseModel && other.fields == fields + def ==(other) + other.is_a?(Class) && other <= Orb::Internal::Type::BaseModel && other.fields == fields + end end # @param other [Object] @@ -256,6 +258,7 @@ def dump(value) return super end + is_param = singleton_class <= Orb::Internal::Type::RequestParameters::Converter acc = {} coerced.each do |key, val| @@ -264,19 +267,21 @@ def dump(value) in nil acc.store(name, super(val)) else - mode, api_name, type_fn = field.fetch_values(:mode, :api_name, :type_fn) + mode, type_fn = field.fetch_values(:mode, :type_fn) case mode in :coerce next else target = type_fn.call + api_name = is_param ? name : field.fetch(:api_name) acc.store(api_name, Orb::Internal::Type::Converter.dump(target, val)) end end end - known_fields.each_value do |field| - mode, api_name, const = field.fetch_values(:mode, :api_name, :const) + known_fields.each do |name, field| + mode, const = field.fetch_values(:mode, :const) + api_name = is_param ? name : field.fetch(:api_name) next if mode == :coerce || acc.key?(api_name) || const == Orb::Internal::OMIT acc.store(api_name, const) end @@ -350,7 +355,8 @@ def initialize(data = {}) in Hash => coerced @data = coerced else - raise ArgumentError.new("Expected a #{Hash} or #{Orb::Internal::Type::BaseModel}, got #{data.inspect}") + message = "Expected a #{Hash} or #{Orb::Internal::Type::BaseModel}, got #{data.inspect}" + raise ArgumentError.new(message) end end @@ -358,7 +364,7 @@ def initialize(data = {}) def inspect rows = self.class.known_fields.keys.map do "#{_1}=#{@data.key?(_1) ? public_send(_1) : ''}" - rescue Orb::ConversionError + rescue Orb::Errors::ConversionError "#{_1}=#{@data.fetch(_1)}" end "#<#{self.class.name}:0x#{object_id.to_s(16)} #{rows.join(' ')}>" diff --git a/lib/orb/internal/type/base_page.rb b/lib/orb/internal/type/base_page.rb index 21ce36e9..ad092fd2 100644 --- a/lib/orb/internal/type/base_page.rb +++ b/lib/orb/internal/type/base_page.rb @@ -3,6 +3,8 @@ module Orb module Internal module Type + # @generic Elem + # # This module provides a base implementation for paginated responses in the SDK. module BasePage # rubocop:disable Lint/UnusedMethodArgument @@ -16,10 +18,11 @@ def next_page = (raise NotImplementedError) # @param blk [Proc] # + # @yieldparam [generic] # @return [void] def auto_paging_each(&blk) = (raise NotImplementedError) - # @return [Enumerable] + # @return [Enumerable>] def to_enum = super(:auto_paging_each) alias_method :enum_for, :to_enum diff --git a/lib/orb/internal/type/boolean_model.rb b/lib/orb/internal/type/boolean.rb similarity index 96% rename from lib/orb/internal/type/boolean_model.rb rename to lib/orb/internal/type/boolean.rb index 67c5cca8..5dd36e40 100644 --- a/lib/orb/internal/type/boolean_model.rb +++ b/lib/orb/internal/type/boolean.rb @@ -8,7 +8,7 @@ module Type # @abstract # # Ruby has no Boolean class; this is something for models to refer to. - class BooleanModel + class Boolean extend Orb::Internal::Type::Converter # @param other [Object] @@ -19,7 +19,7 @@ def self.===(other) = other == true || other == false # @param other [Object] # # @return [Boolean] - def self.==(other) = other.is_a?(Class) && other <= Orb::Internal::Type::BooleanModel + def self.==(other) = other.is_a?(Class) && other <= Orb::Internal::Type::Boolean class << self # @api private diff --git a/lib/orb/internal/type/converter.rb b/lib/orb/internal/type/converter.rb index c1d5dfa6..623e6d13 100644 --- a/lib/orb/internal/type/converter.rb +++ b/lib/orb/internal/type/converter.rb @@ -64,7 +64,7 @@ def type_info(spec) in Hash type_info(spec.slice(:const, :enum, :union).first&.last) in true | false - -> { Orb::Internal::Type::BooleanModel } + -> { Orb::Internal::Type::Boolean } in Orb::Internal::Type::Converter | Class | Symbol -> { spec } in NilClass | Integer | Float @@ -168,6 +168,9 @@ def coerce( in String | Symbol | Numeric exactness[value.is_a?(Numeric) ? :maybe : :yes] += 1 return value.to_s + in StringIO + exactness[:yes] += 1 + return value.string else if strictness == :strong message = "no implicit conversion of #{value.class} into #{target.inspect}" @@ -209,7 +212,9 @@ def coerce( # # @return [Object] def dump(target, value) + # rubocop:disable Layout/LineLength target.is_a?(Orb::Internal::Type::Converter) ? target.dump(value) : Orb::Internal::Type::Unknown.dump(value) + # rubocop:enable Layout/LineLength end end end diff --git a/lib/orb/internal/type/enum.rb b/lib/orb/internal/type/enum.rb index 89cedd32..f674594a 100644 --- a/lib/orb/internal/type/enum.rb +++ b/lib/orb/internal/type/enum.rb @@ -58,7 +58,9 @@ def ===(other) = values.include?(other) # # @return [Boolean] def ==(other) + # rubocop:disable Layout/LineLength other.is_a?(Module) && other.singleton_class <= Orb::Internal::Type::Enum && other.values.to_set == values.to_set + # rubocop:enable Layout/LineLength end # @api private diff --git a/lib/orb/internal/type/hash_of.rb b/lib/orb/internal/type/hash_of.rb index c491f827..55b83b05 100644 --- a/lib/orb/internal/type/hash_of.rb +++ b/lib/orb/internal/type/hash_of.rb @@ -7,6 +7,8 @@ module Type # # @abstract # + # @generic Elem + # # Hash of items of a given type. class HashOf include Orb::Internal::Type::Converter @@ -111,7 +113,7 @@ def dump(value) # @api private # - # @return [Orb::Internal::Type::Converter, Class] + # @return [generic] protected def item_type = @item_type_fn.call # @api private diff --git a/lib/orb/internal/util.rb b/lib/orb/internal/util.rb index 739713d8..50d91ad4 100644 --- a/lib/orb/internal/util.rb +++ b/lib/orb/internal/util.rb @@ -61,7 +61,7 @@ class << self # @return [Boolean] def primitive?(input) case input - in true | false | Integer | Float | Symbol | String + in true | false | Numeric | Symbol | String true else false @@ -70,13 +70,11 @@ def primitive?(input) # @api private # - # @param input [Object] + # @param input [String, Boolean] # # @return [Boolean, Object] def coerce_boolean(input) case input.is_a?(String) ? input.downcase : input - in Numeric - input.nonzero? in "true" true in "false" @@ -88,7 +86,7 @@ def coerce_boolean(input) # @api private # - # @param input [Object] + # @param input [String, Boolean] # # @raise [ArgumentError] # @return [Boolean, nil] @@ -103,34 +101,20 @@ def coerce_boolean!(input) # @api private # - # @param input [Object] + # @param input [String, Integer] # # @return [Integer, Object] def coerce_integer(input) - case input - in true - 1 - in false - 0 - else - Integer(input, exception: false) || input - end + Integer(input, exception: false) || input end # @api private # - # @param input [Object] + # @param input [String, Integer, Float] # # @return [Float, Object] def coerce_float(input) - case input - in true - 1.0 - in false - 0.0 - else - Float(input, exception: false) || input - end + Float(input, exception: false) || input end # @api private @@ -159,12 +143,7 @@ class << self private def deep_merge_lr(lhs, rhs, concat: false) case [lhs, rhs, concat] in [Hash, Hash, _] - rhs_cleaned = rhs.reject { _2 == Orb::Internal::OMIT } - lhs - .reject { |key, _| rhs[key] == Orb::Internal::OMIT } - .merge(rhs_cleaned) do |_, old_val, new_val| - deep_merge_lr(old_val, new_val, concat: concat) - end + lhs.merge(rhs) { deep_merge_lr(_2, _3, concat: concat) } in [Array, Array, true] lhs.concat(rhs) else @@ -362,7 +341,7 @@ def normalized_headers(*headers) value = case val in Array - val.map { _1.to_s.strip }.join(", ") + val.filter_map { _1&.to_s&.strip }.join(", ") else val&.to_s&.strip end @@ -419,7 +398,7 @@ def read(max_len = nil, out_string = nil) # @api private # - # @param stream [String, IO, StringIO, Enumerable] + # @param stream [String, IO, StringIO, Enumerable] # @param blk [Proc] # # @yieldparam [String] @@ -434,7 +413,7 @@ class << self # @param blk [Proc] # # @yieldparam [Enumerator::Yielder] - # @return [Enumerable] + # @return [Enumerable] def writable_enum(&blk) Enumerator.new do |y| y.define_singleton_method(:write) do @@ -469,7 +448,7 @@ class << self case val in IO y << "Content-Type: application/octet-stream\r\n\r\n" - IO.copy_stream(val, y) + IO.copy_stream(val.tap(&:rewind), y) in StringIO y << "Content-Type: application/octet-stream\r\n\r\n" y << val.string @@ -490,7 +469,7 @@ class << self # # @param body [Object] # - # @return [Array(String, Enumerable)] + # @return [Array(String, Enumerable)] private def encode_multipart_streaming(body) boundary = SecureRandom.urlsafe_base64(60) @@ -525,7 +504,7 @@ class << self def encode_content(headers, body) content_type = headers["content-type"] case [content_type, body] - in [%r{^application/(?:vnd\.api\+)?json}, Hash | Array] + in [%r{^application/(?:vnd\.api\+)?json}, _] unless body.nil? [headers, JSON.fast_generate(body)] in [%r{^application/(?:x-)?jsonl}, Enumerable] [headers, body.lazy.map { JSON.fast_generate(_1) }] @@ -533,8 +512,12 @@ def encode_content(headers, body) boundary, strio = encode_multipart_streaming(body) headers = {**headers, "content-type" => "#{content_type}; boundary=#{boundary}"} [headers, strio] + in [_, IO] + [headers, body.tap(&:rewind)] in [_, StringIO] [headers, body.string] + in [_, Symbol | Numeric] + [headers, body.to_s] else [headers, body] end @@ -543,7 +526,7 @@ def encode_content(headers, body) # @api private # # @param headers [Hash{String=>String}, Net::HTTPHeader] - # @param stream [Enumerable] + # @param stream [Enumerable] # @param suppress_error [Boolean] # # @raise [JSON::ParserError] @@ -580,11 +563,11 @@ class << self # # https://doc.rust-lang.org/std/iter/trait.FusedIterator.html # - # @param enum [Enumerable] + # @param enum [Enumerable] # @param external [Boolean] # @param close [Proc] # - # @return [Enumerable] + # @return [Enumerable] def fused_enum(enum, external: false, &close) fused = false iter = Enumerator.new do |y| @@ -610,7 +593,7 @@ def fused_enum(enum, external: false, &close) # @api private # - # @param enum [Enumerable, nil] + # @param enum [Enumerable, nil] def close_fused!(enum) return unless enum.is_a?(Enumerator) @@ -621,11 +604,11 @@ def close_fused!(enum) # @api private # - # @param enum [Enumerable, nil] + # @param enum [Enumerable, nil] # @param blk [Proc] # # @yieldparam [Enumerator::Yielder] - # @return [Enumerable] + # @return [Enumerable] def chain_fused(enum, &blk) iter = Enumerator.new { blk.call(_1) } fused_enum(iter) { close_fused!(enum) } @@ -635,9 +618,9 @@ def chain_fused(enum, &blk) class << self # @api private # - # @param enum [Enumerable] + # @param enum [Enumerable] # - # @return [Enumerable] + # @return [Enumerable] def decode_lines(enum) re = /(\r\n|\r|\n)/ buffer = String.new.b @@ -671,9 +654,9 @@ def decode_lines(enum) # # https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream # - # @param lines [Enumerable] + # @param lines [Enumerable] # - # @return [Hash{Symbol=>Object}] + # @return [EnumerableObject}>] def decode_sse(lines) # rubocop:disable Metrics/BlockLength chain_fused(lines) do |y| diff --git a/lib/orb/models/alert.rb b/lib/orb/models/alert.rb index 56967199..df6189b3 100644 --- a/lib/orb/models/alert.rb +++ b/lib/orb/models/alert.rb @@ -32,7 +32,7 @@ class Alert < Orb::Internal::Type::BaseModel # Whether the alert is enabled or disabled. # # @return [Boolean] - required :enabled, Orb::Internal::Type::BooleanModel + required :enabled, Orb::Internal::Type::Boolean # @!attribute metric # The metric the alert applies to. diff --git a/lib/orb/models/coupon_list_params.rb b/lib/orb/models/coupon_list_params.rb index b7addde1..dfc8f201 100644 --- a/lib/orb/models/coupon_list_params.rb +++ b/lib/orb/models/coupon_list_params.rb @@ -36,7 +36,7 @@ class CouponListParams < Orb::Internal::Type::BaseModel # coupons). # # @return [Boolean, nil] - optional :show_archived, Orb::Internal::Type::BooleanModel, nil?: true + optional :show_archived, Orb::Internal::Type::Boolean, nil?: true # @!parse # # @param cursor [String, nil] diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index 9718bb30..7dd69115 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -17,7 +17,7 @@ class Customer < Orb::Internal::Type::BaseModel # @!attribute auto_collection # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute balance # The customer's current balance in their currency. @@ -51,12 +51,12 @@ class Customer < Orb::Internal::Type::BaseModel # @!attribute email_delivery # # @return [Boolean] - required :email_delivery, Orb::Internal::Type::BooleanModel + required :email_delivery, Orb::Internal::Type::Boolean # @!attribute exempt_from_automated_tax # # @return [Boolean, nil] - required :exempt_from_automated_tax, Orb::Internal::Type::BooleanModel, nil?: true + required :exempt_from_automated_tax, Orb::Internal::Type::Boolean, nil?: true # @!attribute external_customer_id # An optional user-defined ID for this customer resource, used throughout the @@ -807,7 +807,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute excluded # # @return [Boolean] - required :excluded, Orb::Internal::Type::BooleanModel + required :excluded, Orb::Internal::Type::Boolean # @!parse # # @param accounting_providers [Array] @@ -858,7 +858,7 @@ class ReportingConfiguration < Orb::Internal::Type::BaseModel # @!attribute exempt # # @return [Boolean] - required :exempt, Orb::Internal::Type::BooleanModel + required :exempt, Orb::Internal::Type::Boolean # @!parse # # @param exempt [Boolean] diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index 6c2e7004..0e0f335d 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -42,7 +42,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # when a payment provider is provided on customer creation. # # @return [Boolean, nil] - optional :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_address # @@ -59,7 +59,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @!attribute email_delivery # # @return [Boolean, nil] - optional :email_delivery, Orb::Internal::Type::BooleanModel, nil?: true + optional :email_delivery, Orb::Internal::Type::Boolean, nil?: true # @!attribute external_customer_id # An optional user-defined ID for this customer resource, used throughout the @@ -292,7 +292,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute excluded # # @return [Boolean, nil] - optional :excluded, Orb::Internal::Type::BooleanModel, nil?: true + optional :excluded, Orb::Internal::Type::Boolean, nil?: true # @!parse # # @param accounting_providers [Array, nil] @@ -420,7 +420,7 @@ class ReportingConfiguration < Orb::Internal::Type::BaseModel # @!attribute exempt # # @return [Boolean] - required :exempt, Orb::Internal::Type::BooleanModel + required :exempt, Orb::Internal::Type::Boolean # @!parse # # @param exempt [Boolean] @@ -487,7 +487,7 @@ class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel # @!attribute tax_exempt # # @return [Boolean] - required :tax_exempt, Orb::Internal::Type::BooleanModel + required :tax_exempt, Orb::Internal::Type::Boolean # @!attribute tax_provider # @@ -513,7 +513,7 @@ class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel # @!attribute tax_exempt # # @return [Boolean] - required :tax_exempt, Orb::Internal::Type::BooleanModel + required :tax_exempt, Orb::Internal::Type::Boolean # @!attribute tax_provider # 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 a8d41fe6..af19e54a 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -28,7 +28,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # when a payment provider is provided on customer creation. # # @return [Boolean, nil] - optional :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_address # @@ -53,7 +53,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute email_delivery # # @return [Boolean, nil] - optional :email_delivery, Orb::Internal::Type::BooleanModel, nil?: true + optional :email_delivery, Orb::Internal::Type::Boolean, nil?: true # @!attribute external_customer_id # The external customer ID. This can only be set if empty and the customer has no @@ -291,7 +291,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute excluded # # @return [Boolean, nil] - optional :excluded, Orb::Internal::Type::BooleanModel, nil?: true + optional :excluded, Orb::Internal::Type::Boolean, nil?: true # @!parse # # @param accounting_providers [Array, nil] @@ -423,7 +423,7 @@ class ReportingConfiguration < Orb::Internal::Type::BaseModel # @!attribute exempt # # @return [Boolean] - required :exempt, Orb::Internal::Type::BooleanModel + required :exempt, Orb::Internal::Type::Boolean # @!parse # # @param exempt [Boolean] @@ -492,7 +492,7 @@ class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel # @!attribute tax_exempt # # @return [Boolean] - required :tax_exempt, Orb::Internal::Type::BooleanModel + required :tax_exempt, Orb::Internal::Type::Boolean # @!attribute tax_provider # @@ -518,7 +518,7 @@ class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel # @!attribute tax_exempt # # @return [Boolean] - required :tax_exempt, Orb::Internal::Type::BooleanModel + required :tax_exempt, Orb::Internal::Type::Boolean # @!attribute tax_provider # diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index 5ed7d7af..98675d14 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -28,7 +28,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # when a payment provider is provided on customer creation. # # @return [Boolean, nil] - optional :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_address # @@ -51,7 +51,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @!attribute email_delivery # # @return [Boolean, nil] - optional :email_delivery, Orb::Internal::Type::BooleanModel, nil?: true + optional :email_delivery, Orb::Internal::Type::Boolean, nil?: true # @!attribute external_customer_id # The external customer ID. This can only be set if empty and the customer has no @@ -283,7 +283,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute excluded # # @return [Boolean, nil] - optional :excluded, Orb::Internal::Type::BooleanModel, nil?: true + optional :excluded, Orb::Internal::Type::Boolean, nil?: true # @!parse # # @param accounting_providers [Array, nil] @@ -415,7 +415,7 @@ class ReportingConfiguration < Orb::Internal::Type::BaseModel # @!attribute exempt # # @return [Boolean] - required :exempt, Orb::Internal::Type::BooleanModel + required :exempt, Orb::Internal::Type::Boolean # @!parse # # @param exempt [Boolean] @@ -482,7 +482,7 @@ class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel # @!attribute tax_exempt # # @return [Boolean] - required :tax_exempt, Orb::Internal::Type::BooleanModel + required :tax_exempt, Orb::Internal::Type::Boolean # @!attribute tax_provider # @@ -508,7 +508,7 @@ class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel # @!attribute tax_exempt # # @return [Boolean] - required :tax_exempt, Orb::Internal::Type::BooleanModel + required :tax_exempt, Orb::Internal::Type::Boolean # @!attribute tax_provider # diff --git a/lib/orb/models/customers/credit_list_by_external_id_params.rb b/lib/orb/models/customers/credit_list_by_external_id_params.rb index 2b210a75..9d8f4730 100644 --- a/lib/orb/models/customers/credit_list_by_external_id_params.rb +++ b/lib/orb/models/customers/credit_list_by_external_id_params.rb @@ -27,7 +27,7 @@ class CreditListByExternalIDParams < Orb::Internal::Type::BaseModel # returned. # # @return [Boolean, nil] - optional :include_all_blocks, Orb::Internal::Type::BooleanModel + optional :include_all_blocks, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/customers/credit_list_params.rb b/lib/orb/models/customers/credit_list_params.rb index 349edba0..a44b39e0 100644 --- a/lib/orb/models/customers/credit_list_params.rb +++ b/lib/orb/models/customers/credit_list_params.rb @@ -27,7 +27,7 @@ class CreditListParams < Orb::Internal::Type::BaseModel # returned. # # @return [Boolean, nil] - optional :include_all_blocks, Orb::Internal::Type::BooleanModel + optional :include_all_blocks, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 3a7f062e..cd80ebdc 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 @@ -153,7 +153,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -174,7 +174,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # paid before it can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 027dc509..5a2a78d0 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -152,7 +152,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -173,7 +173,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # paid before it can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 8b467852..af58479b 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 @@ -99,7 +99,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -120,7 +120,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # corresponding invoice is paid before they can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 54965de5..be6c4729 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 @@ -92,7 +92,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -113,7 +113,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # corresponding invoice is paid before they can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 70126ff9..4346192c 100644 --- a/lib/orb/models/customers/credits/top_up_create_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_params.rb @@ -98,7 +98,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -119,7 +119,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # corresponding invoice is paid before they can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 f42466f6..346b16be 100644 --- a/lib/orb/models/customers/credits/top_up_create_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_response.rb @@ -91,7 +91,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -112,7 +112,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # corresponding invoice is paid before they can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 7871580d..120f1469 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 @@ -92,7 +92,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -113,7 +113,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # corresponding invoice is paid before they can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] 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 56438e3f..1f21c2d7 100644 --- a/lib/orb/models/customers/credits/top_up_list_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_response.rb @@ -91,7 +91,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # saved payment method. # # @return [Boolean] - required :auto_collection, Orb::Internal::Type::BooleanModel + required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms # The net terms determines the difference between the invoice date and the issue @@ -112,7 +112,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # corresponding invoice is paid before they can be drawn down from. # # @return [Boolean, nil] - optional :require_successful_payment, Orb::Internal::Type::BooleanModel + optional :require_successful_payment, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/evaluate_price_group.rb b/lib/orb/models/evaluate_price_group.rb index 6586e13e..11aab8e4 100644 --- a/lib/orb/models/evaluate_price_group.rb +++ b/lib/orb/models/evaluate_price_group.rb @@ -38,7 +38,7 @@ module GroupingValue variant Float - variant Orb::Internal::Type::BooleanModel + variant Orb::Internal::Type::Boolean # @!parse # # @return [Array(String, Float, Boolean)] diff --git a/lib/orb/models/event_ingest_params.rb b/lib/orb/models/event_ingest_params.rb index 796113dc..2de1f28e 100644 --- a/lib/orb/models/event_ingest_params.rb +++ b/lib/orb/models/event_ingest_params.rb @@ -24,7 +24,7 @@ class EventIngestParams < Orb::Internal::Type::BaseModel # Flag to enable additional debug information in the endpoint response # # @return [Boolean, nil] - optional :debug, Orb::Internal::Type::BooleanModel + optional :debug, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/event_search_response.rb b/lib/orb/models/event_search_response.rb index 9c6e6634..c02e6a3c 100644 --- a/lib/orb/models/event_search_response.rb +++ b/lib/orb/models/event_search_response.rb @@ -35,7 +35,7 @@ class Data < Orb::Internal::Type::BaseModel # A boolean indicating whether the event is currently deprecated. # # @return [Boolean] - required :deprecated, Orb::Internal::Type::BooleanModel + required :deprecated, Orb::Internal::Type::Boolean # @!attribute event_name # A name to meaningfully identify the action or event type. diff --git a/lib/orb/models/events/backfill_close_response.rb b/lib/orb/models/events/backfill_close_response.rb index 5dde1e7f..b2f81c1f 100644 --- a/lib/orb/models/events/backfill_close_response.rb +++ b/lib/orb/models/events/backfill_close_response.rb @@ -41,7 +41,7 @@ class BackfillCloseResponse < Orb::Internal::Type::BaseModel # events will be added to the existing events. # # @return [Boolean] - required :replace_existing_events, Orb::Internal::Type::BooleanModel + required :replace_existing_events, Orb::Internal::Type::Boolean # @!attribute reverted_at # The time at which this backfill was reverted. diff --git a/lib/orb/models/events/backfill_create_params.rb b/lib/orb/models/events/backfill_create_params.rb index 4fa93123..0ad4b2b9 100644 --- a/lib/orb/models/events/backfill_create_params.rb +++ b/lib/orb/models/events/backfill_create_params.rb @@ -60,7 +60,7 @@ class BackfillCreateParams < Orb::Internal::Type::BaseModel # events. If false, adds the newly ingested events to the existing events. # # @return [Boolean, nil] - optional :replace_existing_events, Orb::Internal::Type::BooleanModel + optional :replace_existing_events, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/events/backfill_create_response.rb b/lib/orb/models/events/backfill_create_response.rb index 56042645..0753c59a 100644 --- a/lib/orb/models/events/backfill_create_response.rb +++ b/lib/orb/models/events/backfill_create_response.rb @@ -41,7 +41,7 @@ class BackfillCreateResponse < Orb::Internal::Type::BaseModel # events will be added to the existing events. # # @return [Boolean] - required :replace_existing_events, Orb::Internal::Type::BooleanModel + required :replace_existing_events, Orb::Internal::Type::Boolean # @!attribute reverted_at # The time at which this backfill was reverted. diff --git a/lib/orb/models/events/backfill_fetch_response.rb b/lib/orb/models/events/backfill_fetch_response.rb index 26d9a7ed..72827fc6 100644 --- a/lib/orb/models/events/backfill_fetch_response.rb +++ b/lib/orb/models/events/backfill_fetch_response.rb @@ -41,7 +41,7 @@ class BackfillFetchResponse < Orb::Internal::Type::BaseModel # events will be added to the existing events. # # @return [Boolean] - required :replace_existing_events, Orb::Internal::Type::BooleanModel + required :replace_existing_events, Orb::Internal::Type::Boolean # @!attribute reverted_at # The time at which this backfill was reverted. diff --git a/lib/orb/models/events/backfill_list_response.rb b/lib/orb/models/events/backfill_list_response.rb index 35dfaabb..3e8cf84c 100644 --- a/lib/orb/models/events/backfill_list_response.rb +++ b/lib/orb/models/events/backfill_list_response.rb @@ -41,7 +41,7 @@ class BackfillListResponse < Orb::Internal::Type::BaseModel # events will be added to the existing events. # # @return [Boolean] - required :replace_existing_events, Orb::Internal::Type::BooleanModel + required :replace_existing_events, Orb::Internal::Type::Boolean # @!attribute reverted_at # The time at which this backfill was reverted. diff --git a/lib/orb/models/events/backfill_revert_response.rb b/lib/orb/models/events/backfill_revert_response.rb index b6ceedee..824372e8 100644 --- a/lib/orb/models/events/backfill_revert_response.rb +++ b/lib/orb/models/events/backfill_revert_response.rb @@ -41,7 +41,7 @@ class BackfillRevertResponse < Orb::Internal::Type::BaseModel # events will be added to the existing events. # # @return [Boolean] - required :replace_existing_events, Orb::Internal::Type::BooleanModel + required :replace_existing_events, Orb::Internal::Type::Boolean # @!attribute reverted_at # The time at which this backfill was reverted. diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 518eb4ef..46ec131a 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -362,7 +362,7 @@ class Invoice < Orb::Internal::Type::BaseModel # false otherwise. # # @return [Boolean] - required :will_auto_issue, Orb::Internal::Type::BooleanModel + required :will_auto_issue, Orb::Internal::Type::Boolean # @!parse # # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, @@ -468,7 +468,7 @@ class AutoCollection < Orb::Internal::Type::BaseModel # True only if auto-collection is enabled for this invoice. # # @return [Boolean, nil] - required :enabled, Orb::Internal::Type::BooleanModel, nil?: true + required :enabled, Orb::Internal::Type::Boolean, nil?: true # @!attribute next_attempt_at # If the invoice is scheduled for auto-collection, this field will reflect when @@ -1354,7 +1354,7 @@ class MonetaryUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute reason # The reason for the adjustment. @@ -1429,7 +1429,7 @@ class MonetaryAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute reason # The reason for the adjustment. @@ -1490,7 +1490,7 @@ class MonetaryPercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -1558,7 +1558,7 @@ class MonetaryMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -1634,7 +1634,7 @@ class MonetaryMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this @@ -2109,7 +2109,7 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # Whether the payment attempt succeeded. # # @return [Boolean] - required :succeeded, Orb::Internal::Type::BooleanModel + required :succeeded, Orb::Internal::Type::Boolean # @!parse # # @param id [String] diff --git a/lib/orb/models/invoice_create_params.rb b/lib/orb/models/invoice_create_params.rb index 11a16ef9..45c54cac 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -75,7 +75,7 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel # the resulting invoice will require manual review to issue. Defaulted to false. # # @return [Boolean, nil] - optional :will_auto_issue, Orb::Internal::Type::BooleanModel + optional :will_auto_issue, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 741e2a1f..ba4ece06 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -365,7 +365,7 @@ class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel # false otherwise. # # @return [Boolean] - required :will_auto_issue, Orb::Internal::Type::BooleanModel + required :will_auto_issue, Orb::Internal::Type::Boolean # @!parse # # @param id [String] @@ -465,7 +465,7 @@ class AutoCollection < Orb::Internal::Type::BaseModel # True only if auto-collection is enabled for this invoice. # # @return [Boolean, nil] - required :enabled, Orb::Internal::Type::BooleanModel, nil?: true + required :enabled, Orb::Internal::Type::Boolean, nil?: true # @!attribute next_attempt_at # If the invoice is scheduled for auto-collection, this field will reflect when @@ -1359,7 +1359,7 @@ class MonetaryUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute reason # The reason for the adjustment. @@ -1434,7 +1434,7 @@ class MonetaryAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute reason # The reason for the adjustment. @@ -1495,7 +1495,7 @@ class MonetaryPercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -1563,7 +1563,7 @@ class MonetaryMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -1639,7 +1639,7 @@ class MonetaryMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this @@ -2119,7 +2119,7 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # Whether the payment attempt succeeded. # # @return [Boolean] - required :succeeded, Orb::Internal::Type::BooleanModel + required :succeeded, Orb::Internal::Type::Boolean # @!parse # # @param id [String] diff --git a/lib/orb/models/invoice_issue_params.rb b/lib/orb/models/invoice_issue_params.rb index 015f039d..51bab883 100644 --- a/lib/orb/models/invoice_issue_params.rb +++ b/lib/orb/models/invoice_issue_params.rb @@ -16,7 +16,7 @@ class InvoiceIssueParams < Orb::Internal::Type::BaseModel # present in the provider. # # @return [Boolean, nil] - optional :synchronous, Orb::Internal::Type::BooleanModel + optional :synchronous, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index 8e2ff10b..6d74d34e 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -255,7 +255,7 @@ class MonetaryUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute reason # The reason for the adjustment. @@ -330,7 +330,7 @@ class MonetaryAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute reason # The reason for the adjustment. @@ -391,7 +391,7 @@ class MonetaryPercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -459,7 +459,7 @@ class MonetaryMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -535,7 +535,7 @@ class MonetaryMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/invoice_list_params.rb b/lib/orb/models/invoice_list_params.rb index a454cfab..b6f7099f 100644 --- a/lib/orb/models/invoice_list_params.rb +++ b/lib/orb/models/invoice_list_params.rb @@ -92,7 +92,7 @@ class InvoiceListParams < Orb::Internal::Type::BaseModel # @!attribute is_recurring # # @return [Boolean, nil] - optional :is_recurring, Orb::Internal::Type::BooleanModel, nil?: true + optional :is_recurring, Orb::Internal::Type::Boolean, nil?: true # @!attribute [r] limit # The number of items to fetch. Defaults to 20. diff --git a/lib/orb/models/pagination_metadata.rb b/lib/orb/models/pagination_metadata.rb index 83f93305..908ba439 100644 --- a/lib/orb/models/pagination_metadata.rb +++ b/lib/orb/models/pagination_metadata.rb @@ -6,7 +6,7 @@ class PaginationMetadata < Orb::Internal::Type::BaseModel # @!attribute has_more # # @return [Boolean] - required :has_more, Orb::Internal::Type::BooleanModel + required :has_more, Orb::Internal::Type::Boolean # @!attribute next_cursor # diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index c9817a32..ca979da7 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -248,7 +248,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -323,7 +323,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -384,7 +384,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -452,7 +452,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -528,7 +528,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index 061ddf62..7f033571 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -199,7 +199,7 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -463,7 +463,7 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -735,7 +735,7 @@ class NewPlanMatrixPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1038,7 +1038,7 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1333,7 +1333,7 @@ class NewPlanTieredBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1635,7 +1635,7 @@ class NewPlanBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1906,7 +1906,7 @@ class NewPlanBulkBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2201,7 +2201,7 @@ class NewPlanBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2489,7 +2489,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2737,7 +2737,7 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2986,7 +2986,7 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3234,7 +3234,7 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3483,7 +3483,7 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3732,7 +3732,7 @@ class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3981,7 +3981,7 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4230,7 +4230,7 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4480,7 +4480,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4730,7 +4730,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4979,7 +4979,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5228,7 +5228,7 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5477,7 +5477,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5726,7 +5726,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5976,7 +5976,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6226,7 +6226,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6475,7 +6475,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 2df737bd..082a16d7 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -337,7 +337,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -771,7 +771,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -1213,7 +1213,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -1686,7 +1686,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -2150,7 +2150,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -2645,7 +2645,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -3110,7 +3110,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -3566,7 +3566,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -3989,7 +3989,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -4408,7 +4408,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -4827,7 +4827,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -5248,7 +5248,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -5672,7 +5672,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -6095,7 +6095,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -6514,7 +6514,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -6938,7 +6938,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -7421,7 +7421,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -7842,7 +7842,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -8263,7 +8263,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -8687,7 +8687,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -9111,7 +9111,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -9534,7 +9534,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -9955,7 +9955,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -10378,7 +10378,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -10801,7 +10801,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -11225,7 +11225,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -11649,7 +11649,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # @@ -12072,7 +12072,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # # @return [Boolean] - required :allows_rollover, Orb::Internal::Type::BooleanModel + required :allows_rollover, Orb::Internal::Type::Boolean # @!attribute currency # diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index d832060b..31d8d70e 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -54,7 +54,7 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 7d88669c..6fcffb03 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -30,7 +30,7 @@ class Subscription < Orb::Internal::Type::BaseModel # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -353,7 +353,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -428,7 +428,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -489,7 +489,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -557,7 +557,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -633,7 +633,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/subscription_cancel_params.rb b/lib/orb/models/subscription_cancel_params.rb index 201850b4..aff99881 100644 --- a/lib/orb/models/subscription_cancel_params.rb +++ b/lib/orb/models/subscription_cancel_params.rb @@ -20,7 +20,7 @@ class SubscriptionCancelParams < Orb::Internal::Type::BaseModel # existing invoices to be changed. # # @return [Boolean, nil] - optional :allow_invoice_credit_or_void, Orb::Internal::Type::BooleanModel, nil?: true + optional :allow_invoice_credit_or_void, Orb::Internal::Type::Boolean, nil?: true # @!attribute cancellation_date # The date that the cancellation should take effect. This parameter can only be diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 13477fab..3147c799 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -30,7 +30,7 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -335,7 +335,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -410,7 +410,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -471,7 +471,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -539,7 +539,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -615,7 +615,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 2ae436e8..063546e6 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -29,7 +29,7 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # @!attribute [r] align_billing_with_subscription_start_date # # @return [Boolean, nil] - optional :align_billing_with_subscription_start_date, Orb::Internal::Type::BooleanModel + optional :align_billing_with_subscription_start_date, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -41,7 +41,7 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # defaults to the behavior configured for this customer. # # @return [Boolean, nil] - optional :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute aws_region # @@ -389,7 +389,7 @@ class NewPercentageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -436,7 +436,7 @@ class NewUsageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -475,7 +475,7 @@ class NewAmountDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -520,7 +520,7 @@ class NewMinimum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -560,7 +560,7 @@ class NewMaximum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -711,7 +711,7 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # over to the next period. # # @return [Boolean] - required :expires_at_end_of_cadence, Orb::Internal::Type::BooleanModel + required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean # @!parse # # The definition of a new allocation price to create and add to the subscription. @@ -920,7 +920,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1195,7 +1195,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1478,7 +1478,7 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1796,7 +1796,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2101,7 +2101,7 @@ class NewSubscriptionTieredBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2418,7 +2418,7 @@ class NewSubscriptionBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2700,7 +2700,7 @@ class NewSubscriptionBulkBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3006,7 +3006,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3303,7 +3303,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3561,7 +3561,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3819,7 +3819,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4077,7 +4077,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4336,7 +4336,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4594,7 +4594,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4852,7 +4852,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5110,7 +5110,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5369,7 +5369,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5627,7 +5627,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5886,7 +5886,7 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6145,7 +6145,7 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6404,7 +6404,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6663,7 +6663,7 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6922,7 +6922,7 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7181,7 +7181,7 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7439,7 +7439,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7812,7 +7812,7 @@ class NewPercentageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7859,7 +7859,7 @@ class NewUsageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7898,7 +7898,7 @@ class NewAmountDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7943,7 +7943,7 @@ class NewMinimum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7983,7 +7983,7 @@ class NewMaximum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -8123,7 +8123,7 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # over to the next period. # # @return [Boolean] - required :expires_at_end_of_cadence, Orb::Internal::Type::BooleanModel + required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean # @!parse # # The definition of a new allocation price to create and add to the subscription. @@ -8334,7 +8334,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -8609,7 +8609,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -8892,7 +8892,7 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -9210,7 +9210,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -9515,7 +9515,7 @@ class NewSubscriptionTieredBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -9832,7 +9832,7 @@ class NewSubscriptionBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -10114,7 +10114,7 @@ class NewSubscriptionBulkBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -10424,7 +10424,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -10721,7 +10721,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -10979,7 +10979,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -11237,7 +11237,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -11495,7 +11495,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -11754,7 +11754,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12012,7 +12012,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12270,7 +12270,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12528,7 +12528,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12787,7 +12787,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13045,7 +13045,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13304,7 +13304,7 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13563,7 +13563,7 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13822,7 +13822,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14081,7 +14081,7 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14340,7 +14340,7 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14599,7 +14599,7 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14857,7 +14857,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 7bf12ee7..c1908590 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -30,7 +30,7 @@ class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -335,7 +335,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -410,7 +410,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -471,7 +471,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -539,7 +539,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -615,7 +615,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index e3c64aa7..92118186 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -35,7 +35,7 @@ class SubscriptionPriceIntervalsParams < Orb::Internal::Type::BaseModel # existing invoices to be changed. # # @return [Boolean, nil] - optional :allow_invoice_credit_or_void, Orb::Internal::Type::BooleanModel, nil?: true + optional :allow_invoice_credit_or_void, Orb::Internal::Type::Boolean, nil?: true # @!attribute [r] edit # A list of price intervals to edit on the subscription. @@ -248,7 +248,7 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # over to the next period. # # @return [Boolean] - required :expires_at_end_of_cadence, Orb::Internal::Type::BooleanModel + required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean # @!parse # # The definition of a new allocation price to create and add to the subscription. @@ -541,7 +541,7 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -806,7 +806,7 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1079,7 +1079,7 @@ class NewFloatingMatrixPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1387,7 +1387,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1702,7 +1702,7 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1997,7 +1997,7 @@ class NewFloatingTieredBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2304,7 +2304,7 @@ class NewFloatingBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2576,7 +2576,7 @@ class NewFloatingBulkBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2872,7 +2872,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3159,7 +3159,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3407,7 +3407,7 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3655,7 +3655,7 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3904,7 +3904,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4152,7 +4152,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4401,7 +4401,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4650,7 +4650,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4898,7 +4898,7 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5146,7 +5146,7 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5394,7 +5394,7 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5642,7 +5642,7 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5891,7 +5891,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6140,7 +6140,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6389,7 +6389,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6637,7 +6637,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6885,7 +6885,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7134,7 +7134,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7383,7 +7383,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7632,7 +7632,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7921,7 +7921,7 @@ class NewPercentageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7968,7 +7968,7 @@ class NewUsageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -8007,7 +8007,7 @@ class NewAmountDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -8052,7 +8052,7 @@ class NewMinimum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -8092,7 +8092,7 @@ class NewMaximum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index 1dda59bc..628fa5b1 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -30,7 +30,7 @@ class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -337,7 +337,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -412,7 +412,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -473,7 +473,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -541,7 +541,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -617,7 +617,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index f1c59c9a..9f87ea1e 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -36,7 +36,7 @@ class SubscriptionSchedulePlanChangeParams < Orb::Internal::Type::BaseModel # aligned with the plan change's effective date. # # @return [Boolean, nil] - optional :align_billing_with_plan_change_date, Orb::Internal::Type::BooleanModel, nil?: true + optional :align_billing_with_plan_change_date, Orb::Internal::Type::Boolean, nil?: true # @!attribute auto_collection # Determines whether issued invoices for this subscription will automatically be @@ -44,7 +44,7 @@ class SubscriptionSchedulePlanChangeParams < Orb::Internal::Type::BaseModel # defaults to the behavior configured for this customer. # # @return [Boolean, nil] - optional :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_alignment # Reset billing periods to be aligned with the plan change's effective date or @@ -372,7 +372,7 @@ class NewPercentageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -419,7 +419,7 @@ class NewUsageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -458,7 +458,7 @@ class NewAmountDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -503,7 +503,7 @@ class NewMinimum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -543,7 +543,7 @@ class NewMaximum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -697,7 +697,7 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # over to the next period. # # @return [Boolean] - required :expires_at_end_of_cadence, Orb::Internal::Type::BooleanModel + required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean # @!parse # # The definition of a new allocation price to create and add to the subscription. @@ -911,7 +911,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1186,7 +1186,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1469,7 +1469,7 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -1787,7 +1787,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2096,7 +2096,7 @@ class NewSubscriptionTieredBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2413,7 +2413,7 @@ class NewSubscriptionBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -2695,7 +2695,7 @@ class NewSubscriptionBulkBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3005,7 +3005,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3306,7 +3306,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3564,7 +3564,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -3822,7 +3822,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4080,7 +4080,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4339,7 +4339,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4597,7 +4597,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -4855,7 +4855,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5113,7 +5113,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5372,7 +5372,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5630,7 +5630,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -5889,7 +5889,7 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6148,7 +6148,7 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6407,7 +6407,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6666,7 +6666,7 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -6925,7 +6925,7 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7184,7 +7184,7 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7442,7 +7442,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -7820,7 +7820,7 @@ class NewPercentageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7867,7 +7867,7 @@ class NewUsageDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7906,7 +7906,7 @@ class NewAmountDiscount < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7951,7 +7951,7 @@ class NewMinimum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -7991,7 +7991,7 @@ class NewMaximum < Orb::Internal::Type::BaseModel # will be applied at the invoice level, possibly to multiple prices. # # @return [Boolean, nil] - optional :is_invoice_level, Orb::Internal::Type::BooleanModel + optional :is_invoice_level, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] @@ -8133,7 +8133,7 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # over to the next period. # # @return [Boolean] - required :expires_at_end_of_cadence, Orb::Internal::Type::BooleanModel + required :expires_at_end_of_cadence, Orb::Internal::Type::Boolean # @!parse # # The definition of a new allocation price to create and add to the subscription. @@ -8347,7 +8347,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -8622,7 +8622,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -8905,7 +8905,7 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -9223,7 +9223,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -9532,7 +9532,7 @@ class NewSubscriptionTieredBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -9849,7 +9849,7 @@ class NewSubscriptionBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -10131,7 +10131,7 @@ class NewSubscriptionBulkBpsPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -10441,7 +10441,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -10742,7 +10742,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -11000,7 +11000,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -11258,7 +11258,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -11516,7 +11516,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -11775,7 +11775,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12033,7 +12033,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12291,7 +12291,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12549,7 +12549,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -12808,7 +12808,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13066,7 +13066,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13325,7 +13325,7 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13584,7 +13584,7 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -13843,7 +13843,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14102,7 +14102,7 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14361,7 +14361,7 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14620,7 +14620,7 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or @@ -14878,7 +14878,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # this is true, and in-arrears if this is false. # # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::BooleanModel, nil?: true + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_configuration # For custom cadence: specifies the duration of the billing period in days or diff --git a/lib/orb/models/subscription_schedule_plan_change_response.rb b/lib/orb/models/subscription_schedule_plan_change_response.rb index 2157d327..2946223e 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -30,7 +30,7 @@ class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -337,7 +337,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -412,7 +412,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -473,7 +473,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -541,7 +541,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -617,7 +617,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/subscription_trigger_phase_params.rb b/lib/orb/models/subscription_trigger_phase_params.rb index eb43f569..9862701f 100644 --- a/lib/orb/models/subscription_trigger_phase_params.rb +++ b/lib/orb/models/subscription_trigger_phase_params.rb @@ -14,7 +14,7 @@ class SubscriptionTriggerPhaseParams < Orb::Internal::Type::BaseModel # existing invoices to be changed. # # @return [Boolean, nil] - optional :allow_invoice_credit_or_void, Orb::Internal::Type::BooleanModel, nil?: true + optional :allow_invoice_credit_or_void, Orb::Internal::Type::Boolean, nil?: true # @!attribute effective_date # The date on which the phase change should take effect. If not provided, defaults diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index d838aa03..8f576ec9 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -30,7 +30,7 @@ class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -337,7 +337,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -412,7 +412,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -473,7 +473,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -541,7 +541,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -617,7 +617,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index e3341c81..2acefbe1 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -30,7 +30,7 @@ class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseMode # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -337,7 +337,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -412,7 +412,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -473,7 +473,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -541,7 +541,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -617,7 +617,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this 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 cc0534d4..7a764983 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 @@ -30,7 +30,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Typ # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -337,7 +337,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -412,7 +412,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -473,7 +473,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -541,7 +541,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -617,7 +617,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this 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 c3cf0396..f56f985e 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -30,7 +30,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::Ba # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -337,7 +337,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -412,7 +412,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -473,7 +473,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -541,7 +541,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -617,7 +617,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this 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 12cacc81..8df8185f 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb @@ -25,7 +25,7 @@ class SubscriptionUpdateFixedFeeQuantityParams < Orb::Internal::Type::BaseModel # existing invoices to be changed. # # @return [Boolean, nil] - optional :allow_invoice_credit_or_void, Orb::Internal::Type::BooleanModel, nil?: true + optional :allow_invoice_credit_or_void, Orb::Internal::Type::Boolean, nil?: true # @!attribute [r] change_option # Determines when the change takes effect. Note that if `effective_date` is 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 f68effed..bb8924f7 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -30,7 +30,7 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseMode # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -337,7 +337,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -412,7 +412,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -473,7 +473,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -541,7 +541,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -617,7 +617,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/models/subscription_update_params.rb b/lib/orb/models/subscription_update_params.rb index 9f282e8c..a891bfdd 100644 --- a/lib/orb/models/subscription_update_params.rb +++ b/lib/orb/models/subscription_update_params.rb @@ -14,7 +14,7 @@ class SubscriptionUpdateParams < Orb::Internal::Type::BaseModel # the plan's behavior. # # @return [Boolean, nil] - optional :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute default_invoice_memo # Determines the default memo on this subscription's invoices. Note that if this diff --git a/lib/orb/models/subscription_update_trial_params.rb b/lib/orb/models/subscription_update_trial_params.rb index fdbdf311..9a9a683b 100644 --- a/lib/orb/models/subscription_update_trial_params.rb +++ b/lib/orb/models/subscription_update_trial_params.rb @@ -20,7 +20,7 @@ class SubscriptionUpdateTrialParams < Orb::Internal::Type::BaseModel # durations, but adjusting their absolute dates). # # @return [Boolean, nil] - optional :shift, Orb::Internal::Type::BooleanModel + optional :shift, Orb::Internal::Type::Boolean # @!parse # # @return [Boolean] diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index 76f51e17..6d643946 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -30,7 +30,7 @@ class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel # the plan's behavior. If null, defaults to the customer's setting. # # @return [Boolean, nil] - required :auto_collection, Orb::Internal::Type::BooleanModel, nil?: true + required :auto_collection, Orb::Internal::Type::Boolean, nil?: true # @!attribute billing_cycle_anchor_configuration # @@ -335,7 +335,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -410,7 +410,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute plan_phase_order # The plan phase in which this adjustment is active. @@ -471,7 +471,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute percentage_discount # The percentage (as a value between 0 and 1) by which to discount the price @@ -539,7 +539,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute item_id # The item ID that revenue from this minimum will be attributed to. @@ -615,7 +615,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # that apply to only one price. # # @return [Boolean] - required :is_invoice_level, Orb::Internal::Type::BooleanModel + required :is_invoice_level, Orb::Internal::Type::Boolean # @!attribute maximum_amount # The maximum amount to charge in a given billing period for the prices this diff --git a/lib/orb/resources/alerts.rb b/lib/orb/resources/alerts.rb index f9e334cf..357409a6 100644 --- a/lib/orb/resources/alerts.rb +++ b/lib/orb/resources/alerts.rb @@ -77,7 +77,12 @@ def list(params = {}) @client.request( method: :get, path: "alerts", - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Alert, options: options diff --git a/lib/orb/resources/credit_notes.rb b/lib/orb/resources/credit_notes.rb index ced7382a..14443679 100644 --- a/lib/orb/resources/credit_notes.rb +++ b/lib/orb/resources/credit_notes.rb @@ -49,7 +49,12 @@ def list(params = {}) @client.request( method: :get, path: "credit_notes", - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::CreditNote, options: options diff --git a/lib/orb/resources/customers.rb b/lib/orb/resources/customers.rb index 6798dfb1..8d172b70 100644 --- a/lib/orb/resources/customers.rb +++ b/lib/orb/resources/customers.rb @@ -128,7 +128,12 @@ def list(params = {}) @client.request( method: :get, path: "customers", - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Customer, options: options diff --git a/lib/orb/resources/customers/balance_transactions.rb b/lib/orb/resources/customers/balance_transactions.rb index 330b2e53..a97da4df 100644 --- a/lib/orb/resources/customers/balance_transactions.rb +++ b/lib/orb/resources/customers/balance_transactions.rb @@ -77,7 +77,12 @@ def list(customer_id, params = {}) @client.request( method: :get, path: ["customers/%1$s/balance_transactions", customer_id], - query: parsed, + query: parsed.transform_keys( + operation_time_gt: :"operation_time[gt]", + operation_time_gte: :"operation_time[gte]", + operation_time_lt: :"operation_time[lt]", + operation_time_lte: :"operation_time[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Customers::BalanceTransactionListResponse, options: options diff --git a/lib/orb/resources/customers/credits/ledger.rb b/lib/orb/resources/customers/credits/ledger.rb index 0bb0a27a..40bb7446 100644 --- a/lib/orb/resources/customers/credits/ledger.rb +++ b/lib/orb/resources/customers/credits/ledger.rb @@ -110,7 +110,12 @@ def list(customer_id, params = {}) @client.request( method: :get, path: ["customers/%1$s/credits/ledger", customer_id], - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Customers::Credits::LedgerListResponse, options: options @@ -507,7 +512,12 @@ def list_by_external_id(external_customer_id, params = {}) @client.request( method: :get, path: ["customers/external_customer_id/%1$s/credits/ledger", external_customer_id], - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse, options: options diff --git a/lib/orb/resources/invoices.rb b/lib/orb/resources/invoices.rb index e622f1a2..d975114b 100644 --- a/lib/orb/resources/invoices.rb +++ b/lib/orb/resources/invoices.rb @@ -104,7 +104,16 @@ def list(params = {}) @client.request( method: :get, path: "invoices", - query: parsed, + query: parsed.transform_keys( + amount_gt: :"amount[gt]", + amount_lt: :"amount[lt]", + due_date_gt: :"due_date[gt]", + due_date_lt: :"due_date[lt]", + invoice_date_gt: :"invoice_date[gt]", + invoice_date_gte: :"invoice_date[gte]", + invoice_date_lt: :"invoice_date[lt]", + invoice_date_lte: :"invoice_date[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Invoice, options: options diff --git a/lib/orb/resources/metrics.rb b/lib/orb/resources/metrics.rb index 58cd96d8..47636cf7 100644 --- a/lib/orb/resources/metrics.rb +++ b/lib/orb/resources/metrics.rb @@ -76,7 +76,12 @@ def list(params = {}) @client.request( method: :get, path: "metrics", - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::BillableMetric, options: options diff --git a/lib/orb/resources/plans.rb b/lib/orb/resources/plans.rb index 14d65226..f8211743 100644 --- a/lib/orb/resources/plans.rb +++ b/lib/orb/resources/plans.rb @@ -79,7 +79,12 @@ def list(params = {}) @client.request( method: :get, path: "plans", - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Plan, options: options diff --git a/lib/orb/resources/subscriptions.rb b/lib/orb/resources/subscriptions.rb index f7197f71..59b214ed 100644 --- a/lib/orb/resources/subscriptions.rb +++ b/lib/orb/resources/subscriptions.rb @@ -368,7 +368,12 @@ def list(params = {}) @client.request( method: :get, path: "subscriptions", - query: parsed, + query: parsed.transform_keys( + created_at_gt: :"created_at[gt]", + created_at_gte: :"created_at[gte]", + created_at_lt: :"created_at[lt]", + created_at_lte: :"created_at[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::Subscription, options: options @@ -537,7 +542,12 @@ def fetch_schedule(subscription_id, params = {}) @client.request( method: :get, path: ["subscriptions/%1$s/schedule", subscription_id], - query: parsed, + query: parsed.transform_keys( + start_date_gt: :"start_date[gt]", + start_date_gte: :"start_date[gte]", + start_date_lt: :"start_date[lt]", + start_date_lte: :"start_date[lte]" + ), page: Orb::Internal::Page, model: Orb::Models::SubscriptionFetchScheduleResponse, options: options diff --git a/lib/orb/version.rb b/lib/orb/version.rb index c8a719b8..9f59eca5 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.37" + VERSION = "0.1.0.pre.alpha.38" end diff --git a/orb-billing.gemspec b/orb.gemspec similarity index 100% rename from orb-billing.gemspec rename to orb.gemspec diff --git a/rbi/lib/orb/internal/type/array_of.rbi b/rbi/lib/orb/internal/type/array_of.rbi index f5343c91..0935b6a8 100644 --- a/rbi/lib/orb/internal/type/array_of.rbi +++ b/rbi/lib/orb/internal/type/array_of.rbi @@ -40,7 +40,7 @@ module Orb sig(:final) do override .params(value: T.any( - T::Enumerable[Elem], + T::Array[T.anything], T.anything ), state: Orb::Internal::Type::Converter::State) @@ -52,7 +52,7 @@ module Orb # @api private sig(:final) do override - .params(value: T.any(T::Enumerable[Elem], T.anything)) + .params(value: T.any(T::Array[T.anything], T.anything)) .returns(T.any(T::Array[T.anything], T.anything)) end def dump(value) diff --git a/rbi/lib/orb/internal/type/boolean_model.rbi b/rbi/lib/orb/internal/type/boolean.rbi similarity index 97% rename from rbi/lib/orb/internal/type/boolean_model.rbi rename to rbi/lib/orb/internal/type/boolean.rbi index 6cb7a5fb..ab20720c 100644 --- a/rbi/lib/orb/internal/type/boolean_model.rbi +++ b/rbi/lib/orb/internal/type/boolean.rbi @@ -6,7 +6,7 @@ module Orb # @api private # # Ruby has no Boolean class; this is something for models to refer to. - class BooleanModel + class Boolean extend Orb::Internal::Type::Converter abstract! diff --git a/rbi/lib/orb/internal/util.rbi b/rbi/lib/orb/internal/util.rbi index 7509af90..b2c2d9d2 100644 --- a/rbi/lib/orb/internal/util.rbi +++ b/rbi/lib/orb/internal/util.rbi @@ -28,22 +28,22 @@ module Orb end # @api private - sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } + sig { params(input: T.any(String, T::Boolean)).returns(T.any(T::Boolean, T.anything)) } def coerce_boolean(input) end # @api private - sig { params(input: T.anything).returns(T.nilable(T::Boolean)) } + sig { params(input: T.any(String, T::Boolean)).returns(T.nilable(T::Boolean)) } def coerce_boolean!(input) end # @api private - sig { params(input: T.anything).returns(T.any(Integer, T.anything)) } + sig { params(input: T.any(String, Integer)).returns(T.any(Integer, T.anything)) } def coerce_integer(input) end # @api private - sig { params(input: T.anything).returns(T.any(Float, T.anything)) } + sig { params(input: T.any(String, Integer, Float)).returns(T.any(Float, T.anything)) } def coerce_float(input) end @@ -271,7 +271,9 @@ module Orb # @api private # # https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream - sig { params(lines: T::Enumerable[String]).returns(Orb::Internal::Util::ServerSentEvent) } + sig do + params(lines: T::Enumerable[String]).returns(T::Enumerable[Orb::Internal::Util::ServerSentEvent]) + end def decode_sse(lines) end end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index 2f9ef50c..11a7a7a6 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.37" + VERSION = T.let(T.unsafe(nil), String) end diff --git a/sig/orb/internal/type/array_of.rbs b/sig/orb/internal/type/array_of.rbs index fb9f0b63..65c60fb5 100644 --- a/sig/orb/internal/type/array_of.rbs +++ b/sig/orb/internal/type/array_of.rbs @@ -16,11 +16,11 @@ module Orb def ==: (top other) -> bool def coerce: ( - Enumerable[Elem] | top value, + ::Array[top] | top value, state: Orb::Internal::Type::Converter::state ) -> (::Array[top] | top) - def dump: (Enumerable[Elem] | top value) -> (::Array[top] | top) + def dump: (::Array[top] | top value) -> (::Array[top] | top) def item_type: -> Elem diff --git a/sig/orb/internal/type/boolean_model.rbs b/sig/orb/internal/type/boolean.rbs similarity index 94% rename from sig/orb/internal/type/boolean_model.rbs rename to sig/orb/internal/type/boolean.rbs index 38f2d3c8..a2e9b3f8 100644 --- a/sig/orb/internal/type/boolean_model.rbs +++ b/sig/orb/internal/type/boolean.rbs @@ -1,7 +1,7 @@ module Orb module Internal module Type - class BooleanModel + class Boolean extend Orb::Internal::Type::Converter def self.===: (top other) -> bool diff --git a/sig/orb/internal/util.rbs b/sig/orb/internal/util.rbs index 0145c77f..f233573c 100644 --- a/sig/orb/internal/util.rbs +++ b/sig/orb/internal/util.rbs @@ -9,13 +9,13 @@ module Orb def self?.primitive?: (top input) -> bool - def self?.coerce_boolean: (top input) -> (bool | top) + def self?.coerce_boolean: (String | bool input) -> (bool | top) - def self?.coerce_boolean!: (top input) -> bool? + def self?.coerce_boolean!: (String | bool input) -> bool? - def self?.coerce_integer: (top input) -> (Integer | top) + def self?.coerce_integer: (String | Integer input) -> (Integer | top) - def self?.coerce_float: (top input) -> (Float | top) + def self?.coerce_float: (String | Integer | Float input) -> (Float | top) def self?.coerce_hash: (top input) -> (::Hash[top, top] | top) @@ -133,7 +133,7 @@ module Orb def self?.decode_sse: ( Enumerable[String] lines - ) -> Orb::Internal::Util::server_sent_event + ) -> Enumerable[Orb::Internal::Util::server_sent_event] end end end diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index f2528791..e2469799 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0.pre.alpha.36" + VERSION: String end diff --git a/test/orb/internal/type/base_model_test.rb b/test/orb/internal/type/base_model_test.rb index 65cbfea2..3ae66ee0 100644 --- a/test/orb/internal/type/base_model_test.rb +++ b/test/orb/internal/type/base_model_test.rb @@ -22,7 +22,7 @@ class B < Orb::Internal::Type::BaseModel def test_typing converters = [ Orb::Internal::Type::Unknown, - Orb::Internal::Type::BooleanModel, + Orb::Internal::Type::Boolean, A, H, E, @@ -42,8 +42,8 @@ def test_coerce [Orb::Internal::Type::Unknown, :a] => [{yes: 1}, :a], [NilClass, :a] => [{maybe: 1}, nil], [NilClass, nil] => [{yes: 1}, nil], - [Orb::Internal::Type::BooleanModel, true] => [{yes: 1}, true], - [Orb::Internal::Type::BooleanModel, "true"] => [{no: 1}, "true"], + [Orb::Internal::Type::Boolean, true] => [{yes: 1}, true], + [Orb::Internal::Type::Boolean, "true"] => [{no: 1}, "true"], [Integer, 1] => [{yes: 1}, 1], [Integer, 1.0] => [{maybe: 1}, 1], [Integer, "1"] => [{maybe: 1}, 1], @@ -85,8 +85,8 @@ def test_dump [String, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, [:b, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, [nil, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, - [Orb::Internal::Type::BooleanModel, true] => true, - [Orb::Internal::Type::BooleanModel, "true"] => "true", + [Orb::Internal::Type::Boolean, true] => true, + [Orb::Internal::Type::Boolean, "true"] => "true", [Integer, "1"] => "1", [Float, 1] => 1, [String, "one"] => "one", @@ -154,11 +154,11 @@ module E4 def test_coerce cases = { - # rubocop:disable Style/BooleanSymbol + # rubocop:disable Lint/BooleanSymbol [E1, true] => [{yes: 1}, true], [E1, false] => [{no: 1}, false], [E1, :true] => [{no: 1}, :true], - # rubocop:enable Style/BooleanSymbol + # rubocop:enable Lint/BooleanSymbol [E2, 1] => [{yes: 1}, 1], [E2, 1.0] => [{yes: 1}, 1], @@ -560,8 +560,8 @@ class M3 < M2 def test_equality cases = { [Orb::Internal::Type::Unknown, Orb::Internal::Type::Unknown] => true, - [Orb::Internal::Type::BooleanModel, Orb::Internal::Type::BooleanModel] => true, - [Orb::Internal::Type::Unknown, Orb::Internal::Type::BooleanModel] => false, + [Orb::Internal::Type::Boolean, Orb::Internal::Type::Boolean] => true, + [Orb::Internal::Type::Unknown, Orb::Internal::Type::Boolean] => false, [E1, E2] => true, [E1, E3] => false, [M1, M2] => false, diff --git a/test/orb/resources/alerts_test.rb b/test/orb/resources/alerts_test.rb index a89f2fa2..f0a7da93 100644 --- a/test/orb/resources/alerts_test.rb +++ b/test/orb/resources/alerts_test.rb @@ -16,7 +16,7 @@ def test_retrieve created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, @@ -39,7 +39,7 @@ def test_update_required_params created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, @@ -71,7 +71,7 @@ def test_list created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, @@ -95,7 +95,7 @@ def test_create_for_customer_required_params created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, @@ -123,7 +123,7 @@ def test_create_for_external_customer_required_params created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, @@ -147,7 +147,7 @@ def test_create_for_subscription_required_params created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, @@ -170,7 +170,7 @@ def test_disable created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, @@ -193,7 +193,7 @@ def test_enable created_at: Time, currency: String | nil, customer: Orb::Models::Alert::Customer | nil, - enabled: Orb::Internal::Type::BooleanModel, + enabled: Orb::Internal::Type::Boolean, metric: Orb::Models::Alert::Metric | nil, plan: Orb::Models::Alert::Plan | nil, subscription: Orb::Models::Alert::Subscription | nil, diff --git a/test/orb/resources/coupons/subscriptions_test.rb b/test/orb/resources/coupons/subscriptions_test.rb index 7729fc4d..657bf49a 100644 --- a/test/orb/resources/coupons/subscriptions_test.rb +++ b/test/orb/resources/coupons/subscriptions_test.rb @@ -22,7 +22,7 @@ def test_list id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, diff --git a/test/orb/resources/customers_test.rb b/test/orb/resources/customers_test.rb index 2c4b2c83..c05c8fc7 100644 --- a/test/orb/resources/customers_test.rb +++ b/test/orb/resources/customers_test.rb @@ -14,14 +14,14 @@ def test_create_required_params response => { id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), - auto_collection: Orb::Internal::Type::BooleanModel, + auto_collection: Orb::Internal::Type::Boolean, balance: String, billing_address: Orb::Models::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, - email_delivery: Orb::Internal::Type::BooleanModel, - exempt_from_automated_tax: Orb::Internal::Type::BooleanModel | nil, + email_delivery: Orb::Internal::Type::Boolean, + exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, hierarchy: Orb::Models::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -49,14 +49,14 @@ def test_update response => { id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), - auto_collection: Orb::Internal::Type::BooleanModel, + auto_collection: Orb::Internal::Type::Boolean, balance: String, billing_address: Orb::Models::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, - email_delivery: Orb::Internal::Type::BooleanModel, - exempt_from_automated_tax: Orb::Internal::Type::BooleanModel | nil, + email_delivery: Orb::Internal::Type::Boolean, + exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, hierarchy: Orb::Models::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -91,14 +91,14 @@ def test_list row => { id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), - auto_collection: Orb::Internal::Type::BooleanModel, + auto_collection: Orb::Internal::Type::Boolean, balance: String, billing_address: Orb::Models::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, - email_delivery: Orb::Internal::Type::BooleanModel, - exempt_from_automated_tax: Orb::Internal::Type::BooleanModel | nil, + email_delivery: Orb::Internal::Type::Boolean, + exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, hierarchy: Orb::Models::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -134,14 +134,14 @@ def test_fetch response => { id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), - auto_collection: Orb::Internal::Type::BooleanModel, + auto_collection: Orb::Internal::Type::Boolean, balance: String, billing_address: Orb::Models::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, - email_delivery: Orb::Internal::Type::BooleanModel, - exempt_from_automated_tax: Orb::Internal::Type::BooleanModel | nil, + email_delivery: Orb::Internal::Type::Boolean, + exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, hierarchy: Orb::Models::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -169,14 +169,14 @@ def test_fetch_by_external_id response => { id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), - auto_collection: Orb::Internal::Type::BooleanModel, + auto_collection: Orb::Internal::Type::Boolean, balance: String, billing_address: Orb::Models::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, - email_delivery: Orb::Internal::Type::BooleanModel, - exempt_from_automated_tax: Orb::Internal::Type::BooleanModel | nil, + email_delivery: Orb::Internal::Type::Boolean, + exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, hierarchy: Orb::Models::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -220,14 +220,14 @@ def test_update_by_external_id response => { id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), - auto_collection: Orb::Internal::Type::BooleanModel, + auto_collection: Orb::Internal::Type::Boolean, balance: String, billing_address: Orb::Models::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, - email_delivery: Orb::Internal::Type::BooleanModel, - exempt_from_automated_tax: Orb::Internal::Type::BooleanModel | nil, + email_delivery: Orb::Internal::Type::Boolean, + exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, hierarchy: Orb::Models::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), diff --git a/test/orb/resources/events/backfills_test.rb b/test/orb/resources/events/backfills_test.rb index 5ca9afe4..41d7105f 100644 --- a/test/orb/resources/events/backfills_test.rb +++ b/test/orb/resources/events/backfills_test.rb @@ -21,7 +21,7 @@ def test_create_required_params created_at: Time, customer_id: String | nil, events_ingested: Integer, - replace_existing_events: Orb::Internal::Type::BooleanModel, + replace_existing_events: Orb::Internal::Type::Boolean, reverted_at: Time | nil, status: Orb::Models::Events::BackfillCreateResponse::Status, timeframe_end: Time, @@ -52,7 +52,7 @@ def test_list created_at: Time, customer_id: String | nil, events_ingested: Integer, - replace_existing_events: Orb::Internal::Type::BooleanModel, + replace_existing_events: Orb::Internal::Type::Boolean, reverted_at: Time | nil, status: Orb::Models::Events::BackfillListResponse::Status, timeframe_end: Time, @@ -76,7 +76,7 @@ def test_close created_at: Time, customer_id: String | nil, events_ingested: Integer, - replace_existing_events: Orb::Internal::Type::BooleanModel, + replace_existing_events: Orb::Internal::Type::Boolean, reverted_at: Time | nil, status: Orb::Models::Events::BackfillCloseResponse::Status, timeframe_end: Time, @@ -100,7 +100,7 @@ def test_fetch created_at: Time, customer_id: String | nil, events_ingested: Integer, - replace_existing_events: Orb::Internal::Type::BooleanModel, + replace_existing_events: Orb::Internal::Type::Boolean, reverted_at: Time | nil, status: Orb::Models::Events::BackfillFetchResponse::Status, timeframe_end: Time, @@ -124,7 +124,7 @@ def test_revert created_at: Time, customer_id: String | nil, events_ingested: Integer, - replace_existing_events: Orb::Internal::Type::BooleanModel, + replace_existing_events: Orb::Internal::Type::Boolean, reverted_at: Time | nil, status: Orb::Models::Events::BackfillRevertResponse::Status, timeframe_end: Time, diff --git a/test/orb/resources/invoices_test.rb b/test/orb/resources/invoices_test.rb index a68c6489..e339808d 100644 --- a/test/orb/resources/invoices_test.rb +++ b/test/orb/resources/invoices_test.rb @@ -68,7 +68,7 @@ def test_create_required_params sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -122,7 +122,7 @@ def test_update sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -183,7 +183,7 @@ def test_list sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -237,7 +237,7 @@ def test_fetch sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -291,7 +291,7 @@ def test_fetch_upcoming_required_params target_date: Time, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -345,7 +345,7 @@ def test_issue sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -399,7 +399,7 @@ def test_mark_paid_required_params sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -453,7 +453,7 @@ def test_pay sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end @@ -507,7 +507,7 @@ def test_void sync_failed_at: Time | nil, total: String, voided_at: Time | nil, - will_auto_issue: Orb::Internal::Type::BooleanModel + will_auto_issue: Orb::Internal::Type::Boolean } end end diff --git a/test/orb/resources/subscriptions_test.rb b/test/orb/resources/subscriptions_test.rb index 95839666..6f8a3717 100644 --- a/test/orb/resources/subscriptions_test.rb +++ b/test/orb/resources/subscriptions_test.rb @@ -15,7 +15,7 @@ def test_create id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -53,7 +53,7 @@ def test_update id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -98,7 +98,7 @@ def test_list id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -136,7 +136,7 @@ def test_cancel_required_params id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -174,7 +174,7 @@ def test_fetch id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -269,7 +269,7 @@ def test_price_intervals id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -307,7 +307,7 @@ def test_schedule_plan_change_required_params id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -345,7 +345,7 @@ def test_trigger_phase id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -383,7 +383,7 @@ def test_unschedule_cancellation id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -422,7 +422,7 @@ def test_unschedule_fixed_fee_quantity_updates_required_params id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -460,7 +460,7 @@ def test_unschedule_pending_plan_changes id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -499,7 +499,7 @@ def test_update_fixed_fee_quantity_required_params id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, @@ -537,7 +537,7 @@ def test_update_trial_required_params id: String, active_plan_phase_order: Integer | nil, adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]), - auto_collection: Orb::Internal::Type::BooleanModel | nil, + auto_collection: Orb::Internal::Type::Boolean | nil, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time,