diff --git a/.release-please-manifest.json b/.release-please-manifest.json index dbe5ddf4..da59f99e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.3.2" + ".": "0.4.0" } \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index 07753389..2be96bbd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,7 +8,7 @@ AllCops: - "bin/*" NewCops: enable SuggestExtensions: false - TargetRubyVersion: 3.1.0 + TargetRubyVersion: 3.2.0 # Whether MFA is required or not should be left to the token configuration. Gemspec/RequireMFA: @@ -112,6 +112,8 @@ Metrics/AbcSize: Metrics/BlockLength: AllowedPatterns: - assert_pattern + - type_alias + - define_sorbet_constant! Exclude: - "**/*.rbi" @@ -182,6 +184,9 @@ Style/ClassAndModuleChildren: Exclude: - "test/**/*" +Style/CommentAnnotation: + Enabled: false + # We should go back and add these docs, but ignore for now. Style/Documentation: Enabled: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 38672b1c..c10a7c25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## 0.4.0 (2025-05-13) + +Full Changelog: [v0.3.2...v0.4.0](https://github.com/orbcorp/orb-ruby/compare/v0.3.2...v0.4.0) + +### Features + +* expose base client options as read only attributes ([1f638b6](https://github.com/orbcorp/orb-ruby/commit/1f638b60ad1679bc7969f441650ba61fb9a65e8a)) +* expose recursive `#to_h` conversion ([cfd49a1](https://github.com/orbcorp/orb-ruby/commit/cfd49a15d805ffaa5828249c5b91565661ae7e52)) +* support sorbet aliases at the runtime ([786d1e3](https://github.com/orbcorp/orb-ruby/commit/786d1e3dd882054bd298e33a448a194f1d68bac4)) + + +### Bug Fixes + +* **internal:** update gemspec name ([852ab56](https://github.com/orbcorp/orb-ruby/commit/852ab562ee4948d3fe4de8dd877f9301f36c8a4b)) + + +### Chores + +* fix misc linting / minor issues ([0e7dd84](https://github.com/orbcorp/orb-ruby/commit/0e7dd846c906cc2e72827f5477a93e4799ab9482)) +* **internal:** version bump ([359839c](https://github.com/orbcorp/orb-ruby/commit/359839c734c4bcf8051490b1e8723674ef634753)) + ## 0.3.2 (2025-05-07) Full Changelog: [v0.3.1...v0.3.2](https://github.com/orbcorp/orb-ruby/compare/v0.3.1...v0.3.2) diff --git a/Gemfile.lock b/Gemfile.lock index b6aa38de..d43a27af 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb-billing (0.3.1) + orb-billing (0.3.2) connection_pool GEM diff --git a/README.md b/README.md index 520f4f4f..c44d032a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "orb-billing", "~> 0.3.2" +gem "orb-billing", "~> 0.4.0" ``` diff --git a/Rakefile b/Rakefile index 8361a8b9..0be8749d 100644 --- a/Rakefile +++ b/Rakefile @@ -41,7 +41,7 @@ desc("Lint `*.rb(i)`") multitask(:"lint:rubocop") do find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0] - rubocop = %w[rubocop --fail-level E] + rubocop = %w[rubocop] rubocop += %w[--format github] if ENV.key?("CI") # some lines cannot be shortened @@ -147,7 +147,7 @@ multitask(:"build:gem") do sig/* GLOB - sh(*%w[gem build -- openai.gemspec]) + sh(*%w[gem build -- orb.gemspec]) rm_rf(ignore_file) end diff --git a/lib/orb.rb b/lib/orb.rb index 16a42655..32bfb91d 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true # Standard libraries. +# rubocop:disable Lint/RedundantRequireStatement require "English" require "cgi" require "date" @@ -15,6 +16,7 @@ require "stringio" require "time" require "uri" +# rubocop:enable Lint/RedundantRequireStatement # We already ship the preferred sorbet manifests in the package itself. # `tapioca` currently does not offer us a way to opt out of unnecessary compilation. diff --git a/lib/orb/errors.rb b/lib/orb/errors.rb index 26416a7f..6765ce57 100644 --- a/lib/orb/errors.rb +++ b/lib/orb/errors.rb @@ -99,7 +99,7 @@ class APIStatusError < Orb::Errors::APIError # @param response [nil] # @param message [String, nil] # - # @return [Orb::Errors::APIStatusError] + # @return [self] def self.for(url:, status:, body:, request:, response:, message: nil) key = Orb::Internal::Util.dig(body, :type) kwargs = { diff --git a/lib/orb/internal.rb b/lib/orb/internal.rb index 440a6737..594e9331 100644 --- a/lib/orb/internal.rb +++ b/lib/orb/internal.rb @@ -2,10 +2,16 @@ module Orb module Internal + extend Orb::Internal::Util::SorbetRuntimeSupport + OMIT = Object.new.tap do _1.define_singleton_method(:inspect) { "#<#{Orb::Internal}::OMIT>" } end .freeze + + define_sorbet_constant!(:AnyHash) do + T.type_alias { T::Hash[Symbol, T.anything] } + end end end diff --git a/lib/orb/internal/transport/base_client.rb b/lib/orb/internal/transport/base_client.rb index b848dfb8..927dbc78 100644 --- a/lib/orb/internal/transport/base_client.rb +++ b/lib/orb/internal/transport/base_client.rb @@ -7,6 +7,8 @@ module Transport # # @abstract class BaseClient + extend Orb::Internal::Util::SorbetRuntimeSupport + # from whatwg fetch spec MAX_REDIRECTS = 20 @@ -151,6 +153,27 @@ def reap_connection!(status, stream:) end end + # @return [URI::Generic] + attr_reader :base_url + + # @return [Float] + attr_reader :timeout + + # @return [Integer] + attr_reader :max_retries + + # @return [Float] + attr_reader :initial_retry_delay + + # @return [Float] + attr_reader :max_retry_delay + + # @return [Hash{String=>String}] + attr_reader :headers + + # @return [String, nil] + attr_reader :idempotency_header + # @api private # @return [Orb::Internal::Transport::PooledNetRequester] attr_reader :requester @@ -182,10 +205,11 @@ def initialize( }, headers ) - @base_url = Orb::Internal::Util.parse_uri(base_url) + @base_url_components = Orb::Internal::Util.parse_uri(base_url) + @base_url = Orb::Internal::Util.unparse_uri(@base_url_components) @idempotency_header = idempotency_header&.to_s&.downcase - @max_retries = max_retries @timeout = timeout + @max_retries = max_retries @initial_retry_delay = initial_retry_delay @max_retry_delay = max_retry_delay end @@ -276,10 +300,11 @@ def initialize( Orb::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) end + url = Orb::Internal::Util.join_parsed_uri(@base_url_components, {**req, path: path, query: query}) headers, encoded = Orb::Internal::Util.encode_content(headers, body) { method: method, - url: Orb::Internal::Util.join_parsed_uri(@base_url, {**req, path: path, query: query}), + url: url, headers: headers, body: encoded, max_retries: opts.fetch(:max_retries, @max_retries), @@ -473,10 +498,54 @@ def request(req) # @return [String] def inspect # rubocop:disable Layout/LineLength - base_url = Orb::Internal::Util.unparse_uri(@base_url) - "#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{base_url} max_retries=#{@max_retries} timeout=#{@timeout}>" + "#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{@base_url} max_retries=#{@max_retries} timeout=#{@timeout}>" # rubocop:enable Layout/LineLength end + + define_sorbet_constant!(:RequestComponents) do + T.type_alias do + { + method: Symbol, + path: T.any(String, T::Array[String]), + query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), + headers: T.nilable( + T::Hash[String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + )] + ), + body: T.nilable(T.anything), + unwrap: T.nilable( + T.any( + Symbol, + Integer, + T::Array[T.any(Symbol, Integer)], + T.proc.params(arg0: T.anything).returns(T.anything) + ) + ), + page: T.nilable(T::Class[Orb::Internal::Type::BasePage[Orb::Internal::Type::BaseModel]]), + stream: T.nilable(T::Class[T.anything]), + model: T.nilable(Orb::Internal::Type::Converter::Input), + options: T.nilable(Orb::RequestOptions::OrHash) + } + end + end + define_sorbet_constant!(:RequestInput) do + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + max_retries: Integer, + timeout: Float + } + end + end end end end diff --git a/lib/orb/internal/transport/pooled_net_requester.rb b/lib/orb/internal/transport/pooled_net_requester.rb index 571c9c07..d1c69f54 100644 --- a/lib/orb/internal/transport/pooled_net_requester.rb +++ b/lib/orb/internal/transport/pooled_net_requester.rb @@ -5,6 +5,8 @@ module Internal module Transport # @api private class PooledNetRequester + extend Orb::Internal::Util::SorbetRuntimeSupport + # from the golang stdlib # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 KEEP_ALIVE_TIMEOUT = 30 @@ -187,6 +189,18 @@ def initialize(size: Etc.nprocessors) @size = size @pools = {} end + + define_sorbet_constant!(:Request) do + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + deadline: Float + } + end + end end end end diff --git a/lib/orb/internal/type/array_of.rb b/lib/orb/internal/type/array_of.rb index fa300551..3c9bd44c 100644 --- a/lib/orb/internal/type/array_of.rb +++ b/lib/orb/internal/type/array_of.rb @@ -29,7 +29,7 @@ class ArrayOf # # @option spec [Boolean] :"nil?" # - # @return [Orb::Internal::Type::ArrayOf] + # @return [self] def self.[](...) = new(...) # @api public diff --git a/lib/orb/internal/type/base_model.rb b/lib/orb/internal/type/base_model.rb index 3bb0ecd1..86b1a50c 100644 --- a/lib/orb/internal/type/base_model.rb +++ b/lib/orb/internal/type/base_model.rb @@ -6,6 +6,7 @@ module Type # @abstract class BaseModel extend Orb::Internal::Type::Converter + extend Orb::Internal::Util::SorbetRuntimeSupport class << self # @api private @@ -13,11 +14,17 @@ class << self # Assumes superclass fields are totally defined before fields are accessed / # defined on subclasses. # - # @return [Hash{Symbol=>Hash{Symbol=>Object}}] - def known_fields - @known_fields ||= (self < Orb::Internal::Type::BaseModel ? superclass.known_fields.dup : {}) + # @param child [Class] + def inherited(child) + super + child.known_fields.replace(known_fields.dup) end + # @api private + # + # @return [Hash{Symbol=>Hash{Symbol=>Object}}] + def known_fields = @known_fields ||= {} + # @api private # # @return [Hash{Symbol=>Hash{Symbol=>Object}}] @@ -199,7 +206,7 @@ class << self # # @option state [Integer] :branched # - # @return [Orb::Internal::Type::BaseModel, Object] + # @return [self, Object] def coerce(value, state:) exactness = state.fetch(:exactness) @@ -258,7 +265,7 @@ def coerce(value, state:) # @api private # - # @param value [Orb::Internal::Type::BaseModel, Object] + # @param value [self, Object] # # @param state [Hash{Symbol=>Object}] . # @@ -299,6 +306,39 @@ def dump(value, state:) end end + class << self + # @api private + # + # @param model [Orb::Internal::Type::BaseModel] + # @param convert [Boolean] + # + # @return [Hash{Symbol=>Object}] + def recursively_to_h(model, convert:) + rec = ->(x) do + case x + in Orb::Internal::Type::BaseModel + if convert + fields = x.class.known_fields + x.to_h.to_h do |key, val| + [key, rec.call(fields.key?(key) ? x.public_send(key) : val)] + rescue Orb::Errors::ConversionError + [key, rec.call(val)] + end + else + rec.call(x.to_h) + end + in Hash + x.transform_values(&rec) + in Array + x.map(&rec) + else + x + end + end + rec.call(model) + end + end + # @api public # # Returns the raw value associated with the given key, if found. Otherwise, nil is @@ -335,6 +375,14 @@ def to_h = @data alias_method :to_hash, :to_h + # @api public + # + # In addition to the behaviour of `#to_h`, this method will recursively call + # `#to_h` on nested models. + # + # @return [Hash{Symbol=>Object}] + def deep_to_h = self.class.recursively_to_h(@data, convert: false) + # @param keys [Array, nil] # # @return [Hash{Symbol=>Object}] @@ -350,29 +398,6 @@ def deconstruct_keys(keys) .to_h end - class << self - # @api private - # - # @param model [Orb::Internal::Type::BaseModel] - # - # @return [Hash{Symbol=>Object}] - def walk(model) - walk = ->(x) do - case x - in Orb::Internal::Type::BaseModel - walk.call(x.to_h) - in Hash - x.transform_values(&walk) - in Array - x.map(&walk) - else - x - end - end - walk.call(model) - end - end - # @api public # # @param a [Object] @@ -418,12 +443,19 @@ def inspect(depth: 0) # @api public # # @return [String] - def to_s = self.class.walk(@data).to_s + def to_s = deep_to_h.to_s # @api private # # @return [String] - def inspect = "#<#{self.class}:0x#{object_id.to_s(16)} #{self}>" + def inspect + converted = self.class.recursively_to_h(self, convert: true) + "#<#{self.class}:0x#{object_id.to_s(16)} #{converted}>" + end + + define_sorbet_constant!(:KnownField) do + T.type_alias { {mode: T.nilable(Symbol), required: T::Boolean, nilable: T::Boolean} } + end end end end diff --git a/lib/orb/internal/type/converter.rb b/lib/orb/internal/type/converter.rb index 33a6b19c..e78a6bfb 100644 --- a/lib/orb/internal/type/converter.rb +++ b/lib/orb/internal/type/converter.rb @@ -5,6 +5,8 @@ module Internal module Type # @api private module Converter + extend Orb::Internal::Util::SorbetRuntimeSupport + # rubocop:disable Lint/UnusedMethodArgument # @api private @@ -268,6 +270,22 @@ def inspect(target, depth:) end end end + + define_sorbet_constant!(:Input) do + T.type_alias { T.any(Orb::Internal::Type::Converter, T::Class[T.anything]) } + end + define_sorbet_constant!(:CoerceState) do + T.type_alias do + { + strictness: T.any(T::Boolean, Symbol), + exactness: {yes: Integer, no: Integer, maybe: Integer}, + branched: Integer + } + end + end + define_sorbet_constant!(:DumpState) do + T.type_alias { {can_retry: T::Boolean} } + end end end end diff --git a/lib/orb/internal/type/enum.rb b/lib/orb/internal/type/enum.rb index d3777666..af1ca495 100644 --- a/lib/orb/internal/type/enum.rb +++ b/lib/orb/internal/type/enum.rb @@ -38,6 +38,7 @@ module Type # end module Enum include Orb::Internal::Type::Converter + include Orb::Internal::Util::SorbetRuntimeSupport # All of the valid Symbol values for this enum. # diff --git a/lib/orb/internal/type/hash_of.rb b/lib/orb/internal/type/hash_of.rb index f52830a1..08c21b85 100644 --- a/lib/orb/internal/type/hash_of.rb +++ b/lib/orb/internal/type/hash_of.rb @@ -29,7 +29,7 @@ class HashOf # # @option spec [Boolean] :"nil?" # - # @return [Orb::Internal::Type::HashOf] + # @return [self] def self.[](...) = new(...) # @api public diff --git a/lib/orb/internal/type/union.rb b/lib/orb/internal/type/union.rb index 80db9f57..a156a2cb 100644 --- a/lib/orb/internal/type/union.rb +++ b/lib/orb/internal/type/union.rb @@ -46,6 +46,7 @@ module Type # end module Union include Orb::Internal::Type::Converter + include Orb::Internal::Util::SorbetRuntimeSupport # @api private # diff --git a/lib/orb/internal/util.rb b/lib/orb/internal/util.rb index 7804bb11..245dac8c 100644 --- a/lib/orb/internal/util.rb +++ b/lib/orb/internal/util.rb @@ -801,6 +801,62 @@ def decode_sse(lines) end end end + + # @api private + module SorbetRuntimeSupport + class MissingSorbetRuntimeError < ::RuntimeError + end + + # @api private + # + # @return [Hash{Symbol=>Object}] + private def sorbet_runtime_constants = @sorbet_runtime_constants ||= {} + + # @api private + # + # @param name [Symbol] + def const_missing(name) + super unless sorbet_runtime_constants.key?(name) + + unless Object.const_defined?(:T) + message = "Trying to access a Sorbet constant #{name.inspect} without `sorbet-runtime`." + raise MissingSorbetRuntimeError.new(message) + end + + sorbet_runtime_constants.fetch(name).call + end + + # @api private + # + # @param name [Symbol] + # @param blk [Proc] + def define_sorbet_constant!(name, &blk) = sorbet_runtime_constants.store(name, blk) + end + + extend Orb::Internal::Util::SorbetRuntimeSupport + + define_sorbet_constant!(:ParsedUri) do + T.type_alias do + { + scheme: T.nilable(String), + host: T.nilable(String), + port: T.nilable(Integer), + path: T.nilable(String), + query: T::Hash[String, T::Array[String]] + } + end + end + + define_sorbet_constant!(:ServerSentEvent) do + T.type_alias do + { + event: T.nilable(String), + data: T.nilable(String), + id: T.nilable(String), + retry: T.nilable(Integer) + } + end + end end end end diff --git a/lib/orb/models.rb b/lib/orb/models.rb index 96c2bbd9..922dfb55 100644 --- a/lib/orb/models.rb +++ b/lib/orb/models.rb @@ -1,6 +1,30 @@ # frozen_string_literal: true module Orb + [Orb::Internal::Type::BaseModel, *Orb::Internal::Type::BaseModel.subclasses].each do |cls| + cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, Orb::Internal::AnyHash) } } + end + + [*Orb::Internal::Type::Enum.included_modules, *Orb::Internal::Type::Union.included_modules].each do |cls| + cls.constants.each do |name| + case cls.const_get(name) + in true | false + cls.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, cls) } } + cls.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } } + in Integer + cls.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, cls) } } + cls.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } } + in Float + cls.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, cls) } } + cls.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } } + in Symbol + cls.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, cls) } } + cls.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } } + else + end + end + end + Alert = Orb::Models::Alert AlertCreateForCustomerParams = Orb::Models::AlertCreateForCustomerParams diff --git a/lib/orb/models/coupon.rb b/lib/orb/models/coupon.rb index 506c8273..1dbc7a5d 100644 --- a/lib/orb/models/coupon.rb +++ b/lib/orb/models/coupon.rb @@ -84,6 +84,10 @@ module Discount # @!method self.variants # @return [Array(Orb::PercentageDiscount, Orb::AmountDiscount)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Orb::PercentageDiscount, Orb::AmountDiscount) } + end end end end diff --git a/lib/orb/models/coupon_create_params.rb b/lib/orb/models/coupon_create_params.rb index 7d8fff92..e3476b5f 100644 --- a/lib/orb/models/coupon_create_params.rb +++ b/lib/orb/models/coupon_create_params.rb @@ -89,6 +89,12 @@ class Amount < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::CouponCreateParams::Discount::Percentage, Orb::CouponCreateParams::Discount::Amount)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any(Orb::CouponCreateParams::Discount::Percentage, Orb::CouponCreateParams::Discount::Amount) + end + end end end end diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index 4de10b45..09ab770b 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -489,6 +489,15 @@ class Taxjar < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::CustomerCreateParams::TaxConfiguration::Avalara, Orb::CustomerCreateParams::TaxConfiguration::Taxjar)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::CustomerCreateParams::TaxConfiguration::Avalara, + Orb::CustomerCreateParams::TaxConfiguration::Taxjar + ) + end + end end class TaxID < Orb::Internal::Type::BaseModel 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 dbfebb7e..775e10d1 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -490,6 +490,15 @@ class Taxjar < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar + ) + end + end end class TaxID < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index 493b96f4..214e53ca 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -484,6 +484,15 @@ class Taxjar < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::CustomerUpdateParams::TaxConfiguration::Taxjar)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::CustomerUpdateParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateParams::TaxConfiguration::Taxjar + ) + end + end end class TaxID < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb index e6ecde7e..d5635b4d 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb @@ -1190,6 +1190,20 @@ module EntryStatus # @!method self.variants # @return [Array(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment + ) + end + end end end end diff --git a/lib/orb/models/customers/credits/ledger_create_entry_response.rb b/lib/orb/models/customers/credits/ledger_create_entry_response.rb index 1bc5bb8b..dfb4e79e 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_response.rb @@ -1182,6 +1182,20 @@ module EntryStatus # @!method self.variants # @return [Array(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment + ) + end + end end end end diff --git a/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb b/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb index ed0309c7..d0de2cb0 100644 --- a/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb @@ -1186,6 +1186,20 @@ module EntryStatus # @!method self.variants # @return [Array(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment + ) + end + end end end end diff --git a/lib/orb/models/customers/credits/ledger_list_response.rb b/lib/orb/models/customers/credits/ledger_list_response.rb index bae56ead..86171ba7 100644 --- a/lib/orb/models/customers/credits/ledger_list_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_response.rb @@ -1174,6 +1174,20 @@ module EntryStatus # @!method self.variants # @return [Array(Orb::Models::Customers::Credits::LedgerListResponse::Increment, Orb::Models::Customers::Credits::LedgerListResponse::Decrement, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListResponse::Void, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListResponse::Amendment)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Increment, + Orb::Models::Customers::Credits::LedgerListResponse::Decrement, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerListResponse::Void, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerListResponse::Amendment + ) + end + end end end end diff --git a/lib/orb/models/discount.rb b/lib/orb/models/discount.rb index cd892ae2..905d0701 100644 --- a/lib/orb/models/discount.rb +++ b/lib/orb/models/discount.rb @@ -17,6 +17,12 @@ module Discount # @!method self.variants # @return [Array(Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any(Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount) + end + end end end end diff --git a/lib/orb/models/evaluate_price_group.rb b/lib/orb/models/evaluate_price_group.rb index 0757bc5d..f9cca3a0 100644 --- a/lib/orb/models/evaluate_price_group.rb +++ b/lib/orb/models/evaluate_price_group.rb @@ -40,6 +40,10 @@ module GroupingValue # @!method self.variants # @return [Array(String, Float, Boolean)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(String, Float, T::Boolean) } + end end end end diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 270d59f9..65d5ba86 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -1608,6 +1608,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Invoice::LineItem::Adjustment::UsageDiscount, Orb::Invoice::LineItem::Adjustment::AmountDiscount, Orb::Invoice::LineItem::Adjustment::PercentageDiscount, Orb::Invoice::LineItem::Adjustment::Minimum, Orb::Invoice::LineItem::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Invoice::LineItem::Adjustment::UsageDiscount, + Orb::Invoice::LineItem::Adjustment::AmountDiscount, + Orb::Invoice::LineItem::Adjustment::PercentageDiscount, + Orb::Invoice::LineItem::Adjustment::Minimum, + Orb::Invoice::LineItem::Adjustment::Maximum + ) + end + end end # @deprecated @@ -1902,6 +1914,16 @@ class Grouping < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Invoice::LineItem::SubLineItem::Matrix, Orb::Invoice::LineItem::SubLineItem::Tier, Orb::Invoice::LineItem::SubLineItem::Null)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Matrix, + Orb::Invoice::LineItem::SubLineItem::Tier, + Orb::Invoice::LineItem::SubLineItem::Null + ) + end + end end class TaxAmount < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 335d5fd0..ed00d553 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -1619,6 +1619,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum + ) + end + end end # @deprecated @@ -1921,6 +1933,16 @@ class Grouping < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null + ) + end + end end class TaxAmount < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/invoice_level_discount.rb b/lib/orb/models/invoice_level_discount.rb index f4ce2e5c..88651008 100644 --- a/lib/orb/models/invoice_level_discount.rb +++ b/lib/orb/models/invoice_level_discount.rb @@ -15,6 +15,10 @@ module InvoiceLevelDiscount # @!method self.variants # @return [Array(Orb::PercentageDiscount, Orb::AmountDiscount, Orb::TrialDiscount)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Orb::PercentageDiscount, Orb::AmountDiscount, Orb::TrialDiscount) } + end end end end diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index d62cf3c8..f7d05676 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -552,6 +552,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum + ) + end + end end # @deprecated @@ -853,6 +865,16 @@ class Grouping < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null + ) + end + end end class TaxAmount < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index 7ddc0d6e..987b31af 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -542,6 +542,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Plan::Adjustment::UsageDiscount, Orb::Plan::Adjustment::AmountDiscount, Orb::Plan::Adjustment::PercentageDiscount, Orb::Plan::Adjustment::Minimum, Orb::Plan::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Plan::Adjustment::UsageDiscount, + Orb::Plan::Adjustment::AmountDiscount, + Orb::Plan::Adjustment::PercentageDiscount, + Orb::Plan::Adjustment::Minimum, + Orb::Plan::Adjustment::Maximum + ) + end + end end # @see Orb::Plan#base_plan diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index 6b3d22b4..0dd7f3d5 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -6219,6 +6219,38 @@ module DurationUnit # @!method self.variants # @return [Array(Orb::PlanCreateParams::Price::Unit, Orb::PlanCreateParams::Price::Package, Orb::PlanCreateParams::Price::Matrix, Orb::PlanCreateParams::Price::Tiered, Orb::PlanCreateParams::Price::TieredBps, Orb::PlanCreateParams::Price::Bps, Orb::PlanCreateParams::Price::BulkBps, Orb::PlanCreateParams::Price::Bulk, Orb::PlanCreateParams::Price::ThresholdTotalAmount, Orb::PlanCreateParams::Price::TieredPackage, Orb::PlanCreateParams::Price::TieredWithMinimum, Orb::PlanCreateParams::Price::UnitWithPercent, Orb::PlanCreateParams::Price::PackageWithAllocation, Orb::PlanCreateParams::Price::TieredWithProration, Orb::PlanCreateParams::Price::UnitWithProration, Orb::PlanCreateParams::Price::GroupedAllocation, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum, Orb::PlanCreateParams::Price::MatrixWithDisplayName, Orb::PlanCreateParams::Price::BulkWithProration, Orb::PlanCreateParams::Price::GroupedTieredPackage, Orb::PlanCreateParams::Price::MaxGroupTieredPackage, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, Orb::PlanCreateParams::Price::CumulativeGroupedBulk)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Unit, + Orb::PlanCreateParams::Price::Package, + Orb::PlanCreateParams::Price::Matrix, + Orb::PlanCreateParams::Price::Tiered, + Orb::PlanCreateParams::Price::TieredBps, + Orb::PlanCreateParams::Price::Bps, + Orb::PlanCreateParams::Price::BulkBps, + Orb::PlanCreateParams::Price::Bulk, + Orb::PlanCreateParams::Price::ThresholdTotalAmount, + Orb::PlanCreateParams::Price::TieredPackage, + Orb::PlanCreateParams::Price::TieredWithMinimum, + Orb::PlanCreateParams::Price::UnitWithPercent, + Orb::PlanCreateParams::Price::PackageWithAllocation, + Orb::PlanCreateParams::Price::TieredWithProration, + Orb::PlanCreateParams::Price::UnitWithProration, + Orb::PlanCreateParams::Price::GroupedAllocation, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum, + Orb::PlanCreateParams::Price::MatrixWithDisplayName, + Orb::PlanCreateParams::Price::BulkWithProration, + Orb::PlanCreateParams::Price::GroupedTieredPackage, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk + ) + end + end end # The status of the plan to create (either active or draft). If not specified, diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 6c263fcf..d925bbb9 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -11016,6 +11016,41 @@ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk + ) + end + end end end end diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 530632b5..9d35b324 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -653,6 +653,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Subscription::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -864,6 +876,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Subscription::DiscountInterval::Amount, Orb::Subscription::DiscountInterval::Percentage, Orb::Subscription::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Subscription::DiscountInterval::Amount, + Orb::Subscription::DiscountInterval::Percentage, + Orb::Subscription::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index ee2080ab..2f6a4aef 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -650,6 +650,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -864,6 +876,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_change_apply_response.rb b/lib/orb/models/subscription_change_apply_response.rb index e6499b7d..424aa278 100644 --- a/lib/orb/models/subscription_change_apply_response.rb +++ b/lib/orb/models/subscription_change_apply_response.rb @@ -724,6 +724,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -940,6 +952,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_change_cancel_response.rb b/lib/orb/models/subscription_change_cancel_response.rb index a7d1097d..9e226495 100644 --- a/lib/orb/models/subscription_change_cancel_response.rb +++ b/lib/orb/models/subscription_change_cancel_response.rb @@ -724,6 +724,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -941,6 +953,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_change_retrieve_response.rb b/lib/orb/models/subscription_change_retrieve_response.rb index 221553cd..7b7cfeea 100644 --- a/lib/orb/models/subscription_change_retrieve_response.rb +++ b/lib/orb/models/subscription_change_retrieve_response.rb @@ -725,6 +725,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -942,6 +954,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 83ec4bdc..c6ca9912 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -569,6 +569,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum + ) + end + end end end @@ -7337,6 +7349,38 @@ module DurationUnit # @!method self.variants # @return [Array(Orb::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::SubscriptionCreateParams::AddPrice::Price::Package, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit, + Orb::SubscriptionCreateParams::AddPrice::Price::Package, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage + ) + end + end end end @@ -7658,6 +7702,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum + ) + end + end end end @@ -14444,6 +14500,38 @@ module DurationUnit # @!method self.variants # @return [Array(Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage + ) + end + end end end end diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index d8ea4be3..cf9e91cc 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -650,6 +650,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -864,6 +876,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index 7ef4e1f8..1ef2a855 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -195,6 +195,10 @@ module StartDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end # @see Orb::SubscriptionPriceIntervalsParams::Add#allocation_price @@ -333,6 +337,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount, Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage + ) + end + end end # The end date of the price interval. This is the date that the price will stop @@ -348,6 +362,10 @@ module EndDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel @@ -7480,6 +7498,41 @@ module DurationUnit # @!method self.variants # @return [Array(Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk + ) + end + end end end @@ -7741,6 +7794,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum + ) + end + end end # The start date of the adjustment interval. This is the date that the adjustment @@ -7758,6 +7823,10 @@ module StartDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end # The end date of the adjustment interval. This is the date that the adjustment @@ -7775,6 +7844,10 @@ module EndDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end end @@ -7870,6 +7943,10 @@ module EndDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel @@ -7904,6 +7981,10 @@ module StartDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end end @@ -7953,6 +8034,10 @@ module EndDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end # The updated start date of this adjustment interval. If not specified, the start @@ -7968,6 +8053,10 @@ module StartDate # @!method self.variants # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) } + end end end end diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index f3c25041..8a732ce0 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -656,6 +656,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -870,6 +882,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index 1a85e6ac..fc96e4e3 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -558,6 +558,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum + ) + end + end end end @@ -7372,6 +7384,38 @@ module DurationUnit # @!method self.variants # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage + ) + end + end end end @@ -7708,6 +7752,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum + ) + end + end end end @@ -14529,6 +14585,38 @@ module DurationUnit # @!method self.variants # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage + ) + end + end end end end diff --git a/lib/orb/models/subscription_schedule_plan_change_response.rb b/lib/orb/models/subscription_schedule_plan_change_response.rb index 7e1680d1..b04a5957 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -656,6 +656,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -871,6 +883,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index 19599bb8..369df71d 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -656,6 +656,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -870,6 +882,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index ee14f99d..ff87b735 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -656,6 +656,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -871,6 +883,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb index 0aca6f86..3974cfd7 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 @@ -657,6 +657,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -874,6 +886,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb index ad49669e..7322b5be 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -657,6 +657,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -874,6 +886,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel 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 c623b73b..86ca63ff 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -656,6 +656,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -871,6 +883,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_update_trial_params.rb b/lib/orb/models/subscription_update_trial_params.rb index a81ef5dc..8e5c5c72 100644 --- a/lib/orb/models/subscription_update_trial_params.rb +++ b/lib/orb/models/subscription_update_trial_params.rb @@ -43,6 +43,10 @@ module TrialEndDate # @!method self.variants # @return [Array(Time, Symbol)] + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Time, Orb::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) } + end + # @!group IMMEDIATE = :immediate diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index 63f0c649..e9b0bc5f 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -654,6 +654,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + end end end @@ -868,6 +880,16 @@ class Usage < Orb::Internal::Type::BaseModel # @!method self.variants # @return [Array(Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage + ) + end + end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel diff --git a/lib/orb/models/subscription_usage.rb b/lib/orb/models/subscription_usage.rb index abc22d99..b8617ac8 100644 --- a/lib/orb/models/subscription_usage.rb +++ b/lib/orb/models/subscription_usage.rb @@ -219,6 +219,15 @@ module ViewMode # @!method self.variants # @return [Array(Orb::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::SubscriptionUsage::GroupedSubscriptionUsage)] + + define_sorbet_constant!(:Variants) do + T.type_alias do + T.any( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::SubscriptionUsage::GroupedSubscriptionUsage + ) + end + end end end end diff --git a/lib/orb/request_options.rb b/lib/orb/request_options.rb index 29c30579..86230794 100644 --- a/lib/orb/request_options.rb +++ b/lib/orb/request_options.rb @@ -69,5 +69,9 @@ def self.validate!(opts) # Returns a new instance of RequestOptions. # # @param values [Hash{Symbol=>Object}] + + define_sorbet_constant!(:OrHash) do + T.type_alias { T.any(Orb::RequestOptions, Orb::Internal::AnyHash) } + end end end diff --git a/lib/orb/version.rb b/lib/orb/version.rb index e393901f..97389ae7 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.3.2" + VERSION = "0.4.0" end diff --git a/rbi/orb/internal.rbi b/rbi/orb/internal.rbi index f702fce7..2d9cb1ca 100644 --- a/rbi/orb/internal.rbi +++ b/rbi/orb/internal.rbi @@ -2,6 +2,8 @@ module Orb module Internal + extend Orb::Internal::Util::SorbetRuntimeSupport + # Due to the current WIP status of Shapes support in Sorbet, types referencing # this alias might be refined in the future. AnyHash = T.type_alias { T::Hash[Symbol, T.anything] } diff --git a/rbi/orb/internal/page.rbi b/rbi/orb/internal/page.rbi index 55af3a85..22c85452 100644 --- a/rbi/orb/internal/page.rbi +++ b/rbi/orb/internal/page.rbi @@ -19,7 +19,8 @@ module Orb end class PaginationMetadata < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(PaginationMetadata, Orb::Internal::AnyHash) } sig { returns(T::Boolean) } attr_accessor :has_more diff --git a/rbi/orb/internal/transport/base_client.rbi b/rbi/orb/internal/transport/base_client.rbi index e230f8a4..3d83f579 100644 --- a/rbi/orb/internal/transport/base_client.rbi +++ b/rbi/orb/internal/transport/base_client.rbi @@ -5,9 +5,11 @@ module Orb module Transport # @api private class BaseClient + extend Orb::Internal::Util::SorbetRuntimeSupport + abstract! - RequestComponentsShape = + RequestComponents = T.type_alias do { method: Symbol, @@ -53,7 +55,7 @@ module Orb } end - RequestInputShape = + RequestInput = T.type_alias do { method: Symbol, @@ -74,7 +76,7 @@ module Orb # @api private sig do params( - req: Orb::Internal::Transport::BaseClient::RequestComponentsShape + req: Orb::Internal::Transport::BaseClient::RequestComponents ).void end def validate!(req) @@ -93,10 +95,10 @@ module Orb # @api private sig do params( - request: Orb::Internal::Transport::BaseClient::RequestInputShape, + request: Orb::Internal::Transport::BaseClient::RequestInput, status: Integer, response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) - ).returns(Orb::Internal::Transport::BaseClient::RequestInputShape) + ).returns(Orb::Internal::Transport::BaseClient::RequestInput) end def follow_redirect(request, status:, response_headers:) end @@ -112,6 +114,27 @@ module Orb end end + sig { returns(URI::Generic) } + attr_reader :base_url + + sig { returns(Float) } + attr_reader :timeout + + sig { returns(Integer) } + attr_reader :max_retries + + sig { returns(Float) } + attr_reader :initial_retry_delay + + sig { returns(Float) } + attr_reader :max_retry_delay + + sig { returns(T::Hash[String, String]) } + attr_reader :headers + + sig { returns(T.nilable(String)) } + attr_reader :idempotency_header + # @api private sig { returns(Orb::Internal::Transport::PooledNetRequester) } attr_reader :requester @@ -163,10 +186,10 @@ module Orb sig do overridable .params( - req: Orb::Internal::Transport::BaseClient::RequestComponentsShape, + req: Orb::Internal::Transport::BaseClient::RequestComponents, opts: Orb::Internal::AnyHash ) - .returns(Orb::Internal::Transport::BaseClient::RequestInputShape) + .returns(Orb::Internal::Transport::BaseClient::RequestInput) end private def build_request(req, opts) end @@ -184,7 +207,7 @@ module Orb # @api private sig do params( - request: Orb::Internal::Transport::BaseClient::RequestInputShape, + request: Orb::Internal::Transport::BaseClient::RequestInput, redirect_count: Integer, retry_count: Integer, send_retry_header: T::Boolean diff --git a/rbi/orb/internal/transport/pooled_net_requester.rbi b/rbi/orb/internal/transport/pooled_net_requester.rbi index f2e72180..36283844 100644 --- a/rbi/orb/internal/transport/pooled_net_requester.rbi +++ b/rbi/orb/internal/transport/pooled_net_requester.rbi @@ -5,7 +5,9 @@ module Orb module Transport # @api private class PooledNetRequester - RequestShape = + extend Orb::Internal::Util::SorbetRuntimeSupport + + Request = T.type_alias do { method: Symbol, @@ -34,8 +36,7 @@ module Orb # @api private sig do params( - request: - Orb::Internal::Transport::PooledNetRequester::RequestShape, + request: Orb::Internal::Transport::PooledNetRequester::Request, blk: T.proc.params(arg0: String).void ).returns([Net::HTTPGenericRequest, T.proc.void]) end @@ -57,7 +58,7 @@ module Orb # @api private sig do params( - request: Orb::Internal::Transport::PooledNetRequester::RequestShape + request: Orb::Internal::Transport::PooledNetRequester::Request ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) end def execute(request) diff --git a/rbi/orb/internal/type/base_model.rbi b/rbi/orb/internal/type/base_model.rbi index b73d99a4..b8a40240 100644 --- a/rbi/orb/internal/type/base_model.rbi +++ b/rbi/orb/internal/type/base_model.rbi @@ -5,10 +5,11 @@ module Orb module Type class BaseModel extend Orb::Internal::Type::Converter + extend Orb::Internal::Util::SorbetRuntimeSupport abstract! - KnownFieldShape = + KnownField = T.type_alias do { mode: T.nilable(Symbol), @@ -17,19 +18,27 @@ module Orb } end - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Internal::Type::BaseModel, Orb::Internal::AnyHash) + end class << self # @api private # # Assumes superclass fields are totally defined before fields are accessed / # defined on subclasses. + sig { params(child: T.self_type).void } + def inherited(child) + end + + # @api private sig do returns( T::Hash[ Symbol, T.all( - Orb::Internal::Type::BaseModel::KnownFieldShape, + Orb::Internal::Type::BaseModel::KnownField, { type_fn: T.proc.returns(Orb::Internal::Type::Converter::Input) @@ -47,7 +56,7 @@ module Orb T::Hash[ Symbol, T.all( - Orb::Internal::Type::BaseModel::KnownFieldShape, + Orb::Internal::Type::BaseModel::KnownField, { type: Orb::Internal::Type::Converter::Input } ) ] @@ -183,6 +192,18 @@ module Orb end end + class << self + # @api private + sig do + params( + model: Orb::Internal::Type::BaseModel, + convert: T::Boolean + ).returns(Orb::Internal::AnyHash) + end + def recursively_to_h(model, convert:) + end + end + # Returns the raw value associated with the given key, if found. Otherwise, nil is # returned. # @@ -217,6 +238,12 @@ module Orb def to_hash end + # In addition to the behaviour of `#to_h`, this method will recursively call + # `#to_h` on nested models. + sig { overridable.returns(Orb::Internal::AnyHash) } + def deep_to_h + end + sig do params(keys: T.nilable(T::Array[Symbol])).returns( Orb::Internal::AnyHash @@ -225,17 +252,6 @@ module Orb def deconstruct_keys(keys) end - class << self - # @api private - sig do - params(model: Orb::Internal::Type::BaseModel).returns( - Orb::Internal::AnyHash - ) - end - def walk(model) - end - end - sig { params(a: T.anything).returns(String) } def to_json(*a) end diff --git a/rbi/orb/internal/type/base_page.rbi b/rbi/orb/internal/type/base_page.rbi index ae1403d0..c2901134 100644 --- a/rbi/orb/internal/type/base_page.rbi +++ b/rbi/orb/internal/type/base_page.rbi @@ -29,7 +29,7 @@ module Orb sig do params( client: Orb::Internal::Transport::BaseClient, - req: Orb::Internal::Transport::BaseClient::RequestComponentsShape, + req: Orb::Internal::Transport::BaseClient::RequestComponents, headers: T.any(T::Hash[String, String], Net::HTTPHeader), page_data: T.anything ).void diff --git a/rbi/orb/internal/type/converter.rbi b/rbi/orb/internal/type/converter.rbi index 60a52c6a..f27f6316 100644 --- a/rbi/orb/internal/type/converter.rbi +++ b/rbi/orb/internal/type/converter.rbi @@ -5,6 +5,8 @@ module Orb module Type # @api private module Converter + extend Orb::Internal::Util::SorbetRuntimeSupport + Input = T.type_alias do T.any(Orb::Internal::Type::Converter, T::Class[T.anything]) diff --git a/rbi/orb/internal/type/enum.rbi b/rbi/orb/internal/type/enum.rbi index f84ae124..e512158f 100644 --- a/rbi/orb/internal/type/enum.rbi +++ b/rbi/orb/internal/type/enum.rbi @@ -17,6 +17,7 @@ module Orb # values safely. module Enum include Orb::Internal::Type::Converter + include Orb::Internal::Util::SorbetRuntimeSupport # All of the valid Symbol values for this enum. sig do diff --git a/rbi/orb/internal/type/union.rbi b/rbi/orb/internal/type/union.rbi index 21c9d4e9..fde441c9 100644 --- a/rbi/orb/internal/type/union.rbi +++ b/rbi/orb/internal/type/union.rbi @@ -6,6 +6,7 @@ module Orb # @api private module Union include Orb::Internal::Type::Converter + include Orb::Internal::Util::SorbetRuntimeSupport # @api private # diff --git a/rbi/orb/internal/util.rbi b/rbi/orb/internal/util.rbi index 54f9a259..39e70cb2 100644 --- a/rbi/orb/internal/util.rbi +++ b/rbi/orb/internal/util.rbi @@ -4,6 +4,8 @@ module Orb module Internal # @api private module Util + extend Orb::Internal::Util::SorbetRuntimeSupport + # @api private sig { returns(Float) } def self.monotonic_secs @@ -168,7 +170,7 @@ module Orb end end - ParsedUriShape = + ParsedUri = T.type_alias do { scheme: T.nilable(String), @@ -183,7 +185,7 @@ module Orb # @api private sig do params(url: T.any(URI::Generic, String)).returns( - Orb::Internal::Util::ParsedUriShape + Orb::Internal::Util::ParsedUri ) end def parse_uri(url) @@ -191,9 +193,7 @@ module Orb # @api private sig do - params(parsed: Orb::Internal::Util::ParsedUriShape).returns( - URI::Generic - ) + params(parsed: Orb::Internal::Util::ParsedUri).returns(URI::Generic) end def unparse_uri(parsed) end @@ -201,8 +201,8 @@ module Orb # @api private sig do params( - lhs: Orb::Internal::Util::ParsedUriShape, - rhs: Orb::Internal::Util::ParsedUriShape + lhs: Orb::Internal::Util::ParsedUri, + rhs: Orb::Internal::Util::ParsedUri ).returns(URI::Generic) end def join_parsed_uri(lhs, rhs) @@ -419,6 +419,27 @@ module Orb def decode_sse(lines) end end + + # @api private + module SorbetRuntimeSupport + class MissingSorbetRuntimeError < ::RuntimeError + end + + # @api private + sig { returns(T::Hash[Symbol, T.anything]) } + private def sorbet_runtime_constants + end + + # @api private + sig { params(name: Symbol).void } + def const_missing(name) + end + + # @api private + sig { params(name: Symbol, blk: T.proc.returns(T.anything)).void } + def define_sorbet_constant!(name, &blk) + end + end end end end diff --git a/rbi/orb/models/alert.rbi b/rbi/orb/models/alert.rbi index 703de82e..be4e7fd6 100644 --- a/rbi/orb/models/alert.rbi +++ b/rbi/orb/models/alert.rbi @@ -3,7 +3,7 @@ module Orb module Models class Alert < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Alert, Orb::Internal::AnyHash) } # Also referred to as alert_id in this documentation. sig { returns(String) } @@ -124,7 +124,8 @@ module Orb end class Customer < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Alert::Customer, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -151,7 +152,8 @@ module Orb end class Metric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Alert::Metric, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -167,7 +169,8 @@ module Orb end class Plan < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Alert::Plan, Orb::Internal::AnyHash) } sig { returns(T.nilable(String)) } attr_accessor :id @@ -219,7 +222,10 @@ module Orb end class Subscription < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Alert::Subscription, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -235,7 +241,8 @@ module Orb end class Threshold < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Alert::Threshold, Orb::Internal::AnyHash) } # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at diff --git a/rbi/orb/models/alert_create_for_customer_params.rbi b/rbi/orb/models/alert_create_for_customer_params.rbi index 70bd8ec8..e40ce3c8 100644 --- a/rbi/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/orb/models/alert_create_for_customer_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::AlertCreateForCustomerParams, Orb::Internal::AnyHash) + end # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } @@ -96,7 +99,13 @@ module Orb end class Threshold < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::AlertCreateForCustomerParams::Threshold, + Orb::Internal::AnyHash + ) + end # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at diff --git a/rbi/orb/models/alert_create_for_external_customer_params.rbi b/rbi/orb/models/alert_create_for_external_customer_params.rbi index 78b38ba6..8305b70a 100644 --- a/rbi/orb/models/alert_create_for_external_customer_params.rbi +++ b/rbi/orb/models/alert_create_for_external_customer_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::AlertCreateForExternalCustomerParams, + Orb::Internal::AnyHash + ) + end # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } @@ -104,7 +110,13 @@ module Orb end class Threshold < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::AlertCreateForExternalCustomerParams::Threshold, + Orb::Internal::AnyHash + ) + end # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at diff --git a/rbi/orb/models/alert_create_for_subscription_params.rbi b/rbi/orb/models/alert_create_for_subscription_params.rbi index a4aaeb78..b912cea3 100644 --- a/rbi/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/orb/models/alert_create_for_subscription_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::AlertCreateForSubscriptionParams, Orb::Internal::AnyHash) + end # The thresholds that define the values at which the alert will be triggered. sig do @@ -57,7 +60,13 @@ module Orb end class Threshold < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::AlertCreateForSubscriptionParams::Threshold, + Orb::Internal::AnyHash + ) + end # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at diff --git a/rbi/orb/models/alert_disable_params.rbi b/rbi/orb/models/alert_disable_params.rbi index 2c0be25b..4567c1c6 100644 --- a/rbi/orb/models/alert_disable_params.rbi +++ b/rbi/orb/models/alert_disable_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::AlertDisableParams, Orb::Internal::AnyHash) } # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/alert_enable_params.rbi b/rbi/orb/models/alert_enable_params.rbi index 2a173a7e..c1ef4143 100644 --- a/rbi/orb/models/alert_enable_params.rbi +++ b/rbi/orb/models/alert_enable_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::AlertEnableParams, Orb::Internal::AnyHash) } # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/alert_list_params.rbi b/rbi/orb/models/alert_list_params.rbi index c1c738b8..a9bac1d8 100644 --- a/rbi/orb/models/alert_list_params.rbi +++ b/rbi/orb/models/alert_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::AlertListParams, Orb::Internal::AnyHash) } sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/alert_retrieve_params.rbi b/rbi/orb/models/alert_retrieve_params.rbi index ccc9da17..7d14fa49 100644 --- a/rbi/orb/models/alert_retrieve_params.rbi +++ b/rbi/orb/models/alert_retrieve_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::AlertRetrieveParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/alert_update_params.rbi b/rbi/orb/models/alert_update_params.rbi index 8cab9dbf..30fe6457 100644 --- a/rbi/orb/models/alert_update_params.rbi +++ b/rbi/orb/models/alert_update_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::AlertUpdateParams, Orb::Internal::AnyHash) } # The thresholds that define the values at which the alert will be triggered. sig { returns(T::Array[Orb::AlertUpdateParams::Threshold]) } @@ -37,7 +38,10 @@ module Orb end class Threshold < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::AlertUpdateParams::Threshold, Orb::Internal::AnyHash) + end # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at diff --git a/rbi/orb/models/amount_discount.rbi b/rbi/orb/models/amount_discount.rbi index 50c64914..b1dcfe38 100644 --- a/rbi/orb/models/amount_discount.rbi +++ b/rbi/orb/models/amount_discount.rbi @@ -3,7 +3,8 @@ module Orb module Models class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::AmountDiscount, Orb::Internal::AnyHash) } # Only available if discount_type is `amount`. sig { returns(String) } diff --git a/rbi/orb/models/billable_metric.rbi b/rbi/orb/models/billable_metric.rbi index 6a90e275..8a5bc40e 100644 --- a/rbi/orb/models/billable_metric.rbi +++ b/rbi/orb/models/billable_metric.rbi @@ -3,7 +3,8 @@ module Orb module Models class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::BillableMetric, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/coupon.rbi b/rbi/orb/models/coupon.rbi index 9a51d142..0dfb665f 100644 --- a/rbi/orb/models/coupon.rbi +++ b/rbi/orb/models/coupon.rbi @@ -3,7 +3,7 @@ module Orb module Models class Coupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Coupon, Orb::Internal::AnyHash) } # Also referred to as coupon_id in this documentation. sig { returns(String) } diff --git a/rbi/orb/models/coupon_archive_params.rbi b/rbi/orb/models/coupon_archive_params.rbi index ae0b58c9..2f644fa1 100644 --- a/rbi/orb/models/coupon_archive_params.rbi +++ b/rbi/orb/models/coupon_archive_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::CouponArchiveParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/coupon_create_params.rbi b/rbi/orb/models/coupon_create_params.rbi index bb5491e4..60ac175e 100644 --- a/rbi/orb/models/coupon_create_params.rbi +++ b/rbi/orb/models/coupon_create_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::CouponCreateParams, Orb::Internal::AnyHash) } sig do returns( @@ -89,7 +90,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CouponCreateParams::Discount::Percentage, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :discount_type @@ -115,7 +122,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CouponCreateParams::Discount::Amount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :amount_discount diff --git a/rbi/orb/models/coupon_fetch_params.rbi b/rbi/orb/models/coupon_fetch_params.rbi index 04ae921a..a9ba680d 100644 --- a/rbi/orb/models/coupon_fetch_params.rbi +++ b/rbi/orb/models/coupon_fetch_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::CouponFetchParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/coupon_list_params.rbi b/rbi/orb/models/coupon_list_params.rbi index 96815e42..d034b008 100644 --- a/rbi/orb/models/coupon_list_params.rbi +++ b/rbi/orb/models/coupon_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::CouponListParams, Orb::Internal::AnyHash) } # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/coupons/subscription_list_params.rbi b/rbi/orb/models/coupons/subscription_list_params.rbi index 37463702..8de2f074 100644 --- a/rbi/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/orb/models/coupons/subscription_list_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Coupons::SubscriptionListParams, Orb::Internal::AnyHash) + end # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/credit_note.rbi b/rbi/orb/models/credit_note.rbi index 22a8d6cd..5f00652b 100644 --- a/rbi/orb/models/credit_note.rbi +++ b/rbi/orb/models/credit_note.rbi @@ -3,7 +3,7 @@ module Orb module Models class CreditNote < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::CreditNote, Orb::Internal::AnyHash) } # The Orb id of this credit note. sig { returns(String) } @@ -165,7 +165,10 @@ module Orb end class Customer < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNote::Customer, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -191,7 +194,10 @@ module Orb end class LineItem < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNote::LineItem, Orb::Internal::AnyHash) + end # The Orb id of this resource. sig { returns(String) } @@ -284,7 +290,13 @@ module Orb end class TaxAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CreditNote::LineItem::TaxAmount, + Orb::Internal::AnyHash + ) + end # The amount of additional tax incurred by this tax rate. sig { returns(String) } @@ -329,7 +341,10 @@ module Orb end class Discount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNote::LineItem::Discount, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -430,7 +445,13 @@ module Orb end class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CreditNote::MaximumAmountAdjustment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :amount_applied @@ -532,7 +553,13 @@ module Orb end class AppliesToPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -588,7 +615,10 @@ module Orb end class Discount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNote::Discount, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :amount_applied @@ -671,7 +701,13 @@ module Orb end class AppliesToPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CreditNote::Discount::AppliesToPrice, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/credit_note_create_params.rbi b/rbi/orb/models/credit_note_create_params.rbi index 2d9af98b..5c5f1094 100644 --- a/rbi/orb/models/credit_note_create_params.rbi +++ b/rbi/orb/models/credit_note_create_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNoteCreateParams, Orb::Internal::AnyHash) + end sig { returns(T::Array[Orb::CreditNoteCreateParams::LineItem]) } attr_accessor :line_items @@ -51,7 +54,10 @@ module Orb end class LineItem < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNoteCreateParams::LineItem, Orb::Internal::AnyHash) + end # The total amount in the invoice's currency to credit this line item. sig { returns(String) } diff --git a/rbi/orb/models/credit_note_fetch_params.rbi b/rbi/orb/models/credit_note_fetch_params.rbi index 3a63ac38..a30f8573 100644 --- a/rbi/orb/models/credit_note_fetch_params.rbi +++ b/rbi/orb/models/credit_note_fetch_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNoteFetchParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/credit_note_list_params.rbi b/rbi/orb/models/credit_note_list_params.rbi index 07c5ce84..c093f829 100644 --- a/rbi/orb/models/credit_note_list_params.rbi +++ b/rbi/orb/models/credit_note_list_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CreditNoteListParams, Orb::Internal::AnyHash) + end sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/customer.rbi b/rbi/orb/models/customer.rbi index 92d58153..98991641 100644 --- a/rbi/orb/models/customer.rbi +++ b/rbi/orb/models/customer.rbi @@ -3,7 +3,7 @@ module Orb module Models class Customer < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Customer, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -466,7 +466,10 @@ module Orb end class BillingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customer::BillingAddress, Orb::Internal::AnyHash) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -516,7 +519,10 @@ module Orb end class Hierarchy < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customer::Hierarchy, Orb::Internal::AnyHash) + end sig { returns(T::Array[Orb::Customer::Hierarchy::Child]) } attr_accessor :children @@ -553,7 +559,10 @@ module Orb end class Child < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customer::Hierarchy::Child, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -579,7 +588,10 @@ module Orb end class Parent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customer::Hierarchy::Parent, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -636,7 +648,10 @@ module Orb end class ShippingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customer::ShippingAddress, Orb::Internal::AnyHash) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -686,7 +701,8 @@ module Orb end class TaxID < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Customer::TaxID, Orb::Internal::AnyHash) } sig { returns(Orb::Customer::TaxID::Country::TaggedSymbol) } attr_accessor :country @@ -1012,7 +1028,13 @@ module Orb end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customer::AccountingSyncConfiguration, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -1053,7 +1075,13 @@ module Orb end class AccountingProvider < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customer::AccountingSyncConfiguration::AccountingProvider, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :external_provider_id @@ -1124,7 +1152,10 @@ module Orb end class ReportingConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customer::ReportingConfiguration, Orb::Internal::AnyHash) + end sig { returns(T::Boolean) } attr_accessor :exempt diff --git a/rbi/orb/models/customer_create_params.rbi b/rbi/orb/models/customer_create_params.rbi index 0fedca46..e515db78 100644 --- a/rbi/orb/models/customer_create_params.rbi +++ b/rbi/orb/models/customer_create_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerCreateParams, Orb::Internal::AnyHash) + end # A valid customer email, to be used for notifications. When Orb triggers payment # through a payment gateway, this email will be used for any automatically issued @@ -488,7 +491,13 @@ module Orb end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::AccountingSyncConfiguration, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -535,7 +544,13 @@ module Orb end class AccountingProvider < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :external_provider_id @@ -562,7 +577,13 @@ module Orb end class BillingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::BillingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -619,7 +640,10 @@ module Orb end class Hierarchy < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerCreateParams::Hierarchy, Orb::Internal::AnyHash) + end # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. @@ -711,7 +735,13 @@ module Orb end class ReportingConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::ReportingConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :exempt @@ -726,7 +756,13 @@ module Orb end class ShippingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::ShippingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -794,7 +830,13 @@ module Orb end class Avalara < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::TaxConfiguration::Avalara, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -833,7 +875,13 @@ module Orb end class Taxjar < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::TaxConfiguration::Taxjar, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -866,7 +914,10 @@ module Orb end class TaxID < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerCreateParams::TaxID, Orb::Internal::AnyHash) + end sig { returns(Orb::CustomerCreateParams::TaxID::Country::OrSymbol) } attr_accessor :country diff --git a/rbi/orb/models/customer_delete_params.rbi b/rbi/orb/models/customer_delete_params.rbi index d288a0e3..bb5a5e7a 100644 --- a/rbi/orb/models/customer_delete_params.rbi +++ b/rbi/orb/models/customer_delete_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerDeleteParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/customer_fetch_by_external_id_params.rbi b/rbi/orb/models/customer_fetch_by_external_id_params.rbi index 7188ac43..5d011823 100644 --- a/rbi/orb/models/customer_fetch_by_external_id_params.rbi +++ b/rbi/orb/models/customer_fetch_by_external_id_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerFetchByExternalIDParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/customer_fetch_params.rbi b/rbi/orb/models/customer_fetch_params.rbi index 71202d59..7681401d 100644 --- a/rbi/orb/models/customer_fetch_params.rbi +++ b/rbi/orb/models/customer_fetch_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::CustomerFetchParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/customer_list_params.rbi b/rbi/orb/models/customer_list_params.rbi index 0fce970c..6c7fa391 100644 --- a/rbi/orb/models/customer_list_params.rbi +++ b/rbi/orb/models/customer_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::CustomerListParams, Orb::Internal::AnyHash) } sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi b/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi index 73ceca12..33317dfe 100644 --- a/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +++ b/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams, + Orb::Internal::AnyHash + ) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi b/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi index b07e07c0..db0b03c3 100644 --- a/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +++ b/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerSyncPaymentMethodsFromGatewayParams, + Orb::Internal::AnyHash + ) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/customer_update_by_external_id_params.rbi b/rbi/orb/models/customer_update_by_external_id_params.rbi index fcd2819a..0b33434d 100644 --- a/rbi/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/orb/models/customer_update_by_external_id_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerUpdateByExternalIDParams, Orb::Internal::AnyHash) + end sig do returns( @@ -523,7 +526,13 @@ module Orb end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -570,7 +579,13 @@ module Orb end class AccountingProvider < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :external_provider_id @@ -597,7 +612,13 @@ module Orb end class BillingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::BillingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -654,7 +675,13 @@ module Orb end class Hierarchy < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::Hierarchy, + Orb::Internal::AnyHash + ) + end # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. @@ -755,7 +782,13 @@ module Orb end class ReportingConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :exempt @@ -770,7 +803,13 @@ module Orb end class ShippingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::ShippingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -838,7 +877,13 @@ module Orb end class Avalara < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -877,7 +922,13 @@ module Orb end class Taxjar < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -912,7 +963,13 @@ module Orb end class TaxID < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxID, + Orb::Internal::AnyHash + ) + end sig do returns( diff --git a/rbi/orb/models/customer_update_params.rbi b/rbi/orb/models/customer_update_params.rbi index b0acb673..37799e63 100644 --- a/rbi/orb/models/customer_update_params.rbi +++ b/rbi/orb/models/customer_update_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerUpdateParams, Orb::Internal::AnyHash) + end sig do returns( @@ -478,7 +481,13 @@ module Orb end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::AccountingSyncConfiguration, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -525,7 +534,13 @@ module Orb end class AccountingProvider < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :external_provider_id @@ -552,7 +567,13 @@ module Orb end class BillingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::BillingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -609,7 +630,10 @@ module Orb end class Hierarchy < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerUpdateParams::Hierarchy, Orb::Internal::AnyHash) + end # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. @@ -705,7 +729,13 @@ module Orb end class ReportingConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::ReportingConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :exempt @@ -720,7 +750,13 @@ module Orb end class ShippingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::ShippingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -788,7 +824,13 @@ module Orb end class Avalara < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::TaxConfiguration::Avalara, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -827,7 +869,13 @@ module Orb end class Taxjar < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::TaxConfiguration::Taxjar, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -860,7 +908,10 @@ module Orb end class TaxID < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::CustomerUpdateParams::TaxID, Orb::Internal::AnyHash) + end sig { returns(Orb::CustomerUpdateParams::TaxID::Country::OrSymbol) } attr_accessor :country diff --git a/rbi/orb/models/customers/balance_transaction_create_params.rbi b/rbi/orb/models/customers/balance_transaction_create_params.rbi index f45963bc..e467c92d 100644 --- a/rbi/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/orb/models/customers/balance_transaction_create_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::BalanceTransactionCreateParams, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :amount diff --git a/rbi/orb/models/customers/balance_transaction_create_response.rbi b/rbi/orb/models/customers/balance_transaction_create_response.rbi index 960d33b4..0c500ebe 100644 --- a/rbi/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/orb/models/customers/balance_transaction_create_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Customers class BalanceTransactionCreateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::BalanceTransactionCreateResponse, + Orb::Internal::AnyHash + ) + end # A unique id for this transaction. sig { returns(String) } @@ -225,7 +231,13 @@ module Orb end class CreditNote < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote, + Orb::Internal::AnyHash + ) + end # The id of the Credit note sig { returns(String) } @@ -244,7 +256,13 @@ module Orb end class Invoice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, + Orb::Internal::AnyHash + ) + end # The Invoice id sig { returns(String) } diff --git a/rbi/orb/models/customers/balance_transaction_list_params.rbi b/rbi/orb/models/customers/balance_transaction_list_params.rbi index bb1d9a05..a8bfb3bf 100644 --- a/rbi/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/orb/models/customers/balance_transaction_list_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::BalanceTransactionListParams, + Orb::Internal::AnyHash + ) + end # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/customers/balance_transaction_list_response.rbi b/rbi/orb/models/customers/balance_transaction_list_response.rbi index 695e3f54..af00555e 100644 --- a/rbi/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/orb/models/customers/balance_transaction_list_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Customers class BalanceTransactionListResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::BalanceTransactionListResponse, + Orb::Internal::AnyHash + ) + end # A unique id for this transaction. sig { returns(String) } @@ -225,7 +231,13 @@ module Orb end class CreditNote < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::BalanceTransactionListResponse::CreditNote, + Orb::Internal::AnyHash + ) + end # The id of the Credit note sig { returns(String) } @@ -244,7 +256,13 @@ module Orb end class Invoice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::BalanceTransactionListResponse::Invoice, + Orb::Internal::AnyHash + ) + end # The Invoice id sig { returns(String) } diff --git a/rbi/orb/models/customers/cost_list_by_external_id_params.rbi b/rbi/orb/models/customers/cost_list_by_external_id_params.rbi index 93e02548..f56c29d1 100644 --- a/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/cost_list_by_external_id_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::CostListByExternalIDParams, + Orb::Internal::AnyHash + ) + end # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/customers/cost_list_by_external_id_response.rbi b/rbi/orb/models/customers/cost_list_by_external_id_response.rbi index c6f7c605..91078f8f 100644 --- a/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/cost_list_by_external_id_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Customers class CostListByExternalIDResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CostListByExternalIDResponse, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -38,7 +44,13 @@ module Orb end class Data < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CostListByExternalIDResponse::Data, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -104,7 +116,13 @@ module Orb end class PerPriceCost < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost, + Orb::Internal::AnyHash + ) + end # The price object sig do diff --git a/rbi/orb/models/customers/cost_list_params.rbi b/rbi/orb/models/customers/cost_list_params.rbi index 64b68fc8..d45b4cf5 100644 --- a/rbi/orb/models/customers/cost_list_params.rbi +++ b/rbi/orb/models/customers/cost_list_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customers::CostListParams, Orb::Internal::AnyHash) + end # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/customers/cost_list_response.rbi b/rbi/orb/models/customers/cost_list_response.rbi index 829eafae..0419c1fe 100644 --- a/rbi/orb/models/customers/cost_list_response.rbi +++ b/rbi/orb/models/customers/cost_list_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Customers class CostListResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CostListResponse, + Orb::Internal::AnyHash + ) + end sig do returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) @@ -29,7 +35,13 @@ module Orb end class Data < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CostListResponse::Data, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -95,7 +107,13 @@ module Orb end class PerPriceCost < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CostListResponse::Data::PerPriceCost, + Orb::Internal::AnyHash + ) + end # The price object sig do diff --git a/rbi/orb/models/customers/credit_list_by_external_id_params.rbi b/rbi/orb/models/customers/credit_list_by_external_id_params.rbi index 50f98cbb..5d5fd2c0 100644 --- a/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credit_list_by_external_id_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::CreditListByExternalIDParams, + Orb::Internal::AnyHash + ) + end # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/customers/credit_list_by_external_id_response.rbi b/rbi/orb/models/customers/credit_list_by_external_id_response.rbi index 78d797d9..2fffcbdd 100644 --- a/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credit_list_by_external_id_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Customers class CreditListByExternalIDResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CreditListByExternalIDResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/customers/credit_list_params.rbi b/rbi/orb/models/customers/credit_list_params.rbi index e4d0a347..ec18d2f5 100644 --- a/rbi/orb/models/customers/credit_list_params.rbi +++ b/rbi/orb/models/customers/credit_list_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Customers::CreditListParams, Orb::Internal::AnyHash) + end # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/customers/credit_list_response.rbi b/rbi/orb/models/customers/credit_list_response.rbi index 9f06daf3..73a0ac36 100644 --- a/rbi/orb/models/customers/credit_list_response.rbi +++ b/rbi/orb/models/customers/credit_list_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Customers class CreditListResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::CreditListResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi index 9b40c2a9..49ba47af 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams, + Orb::Internal::AnyHash + ) + end # The number of credits to effect. Note that this is required for increment, # decrement or void operations. @@ -220,7 +226,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi index e6623eae..925ef4c0 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi @@ -23,7 +23,13 @@ module Orb end class Increment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -164,7 +170,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -200,7 +211,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -262,7 +278,13 @@ module Orb end class Decrement < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -421,7 +443,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -457,7 +484,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -519,7 +551,13 @@ module Orb end class ExpirationChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -666,7 +704,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -702,7 +745,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -764,7 +812,13 @@ module Orb end class CreditBlockExpiry < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -905,7 +959,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -941,7 +1000,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1003,7 +1067,13 @@ module Orb end class Void < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1156,7 +1226,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1192,7 +1267,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1254,7 +1334,13 @@ module Orb end class VoidInitiated < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1413,7 +1499,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1449,7 +1540,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1511,7 +1607,13 @@ module Orb end class Amendment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1652,7 +1754,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1688,7 +1795,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi index 54a1677b..f672c05a 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::LedgerCreateEntryParams, + Orb::Internal::AnyHash + ) + end # The number of credits to effect. Note that this is required for increment, # decrement or void operations. @@ -220,7 +226,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi index cae52968..30e8af9c 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi @@ -23,7 +23,13 @@ module Orb end class Increment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -164,7 +170,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -200,7 +211,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -262,7 +278,13 @@ module Orb end class Decrement < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -421,7 +443,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -457,7 +484,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -519,7 +551,13 @@ module Orb end class ExpirationChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -666,7 +704,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -702,7 +745,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -764,7 +812,13 @@ module Orb end class CreditBlockExpiry < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -905,7 +959,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -941,7 +1000,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1003,7 +1067,13 @@ module Orb end class Void < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1156,7 +1226,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1192,7 +1267,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1254,7 +1334,13 @@ module Orb end class VoidInitiated < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1413,7 +1499,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1449,7 +1540,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1511,7 +1607,13 @@ module Orb end class Amendment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1652,7 +1754,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1688,7 +1795,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi b/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi index ec3eba4f..6e4b9c60 100644 --- a/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::LedgerListByExternalIDParams, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi b/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi index e141a306..d52e3b63 100644 --- a/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi @@ -23,7 +23,13 @@ module Orb end class Increment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -164,7 +170,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -200,7 +211,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -262,7 +278,13 @@ module Orb end class Decrement < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -421,7 +443,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -457,7 +484,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -519,7 +551,13 @@ module Orb end class ExpirationChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -666,7 +704,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -702,7 +745,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -764,7 +812,13 @@ module Orb end class CreditBlockExpiry < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -905,7 +959,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -941,7 +1000,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1003,7 +1067,13 @@ module Orb end class Void < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1156,7 +1226,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1192,7 +1267,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1254,7 +1334,13 @@ module Orb end class VoidInitiated < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1413,7 +1499,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1449,7 +1540,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1511,7 +1607,13 @@ module Orb end class Amendment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1652,7 +1754,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1688,7 +1795,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/customers/credits/ledger_list_params.rbi b/rbi/orb/models/customers/credits/ledger_list_params.rbi index 93cd1c96..e685a5b3 100644 --- a/rbi/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::LedgerListParams, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/customers/credits/ledger_list_response.rbi b/rbi/orb/models/customers/credits/ledger_list_response.rbi index d323fd8e..e7452ef9 100644 --- a/rbi/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_response.rbi @@ -23,7 +23,13 @@ module Orb end class Increment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Increment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -164,7 +170,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -200,7 +211,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -262,7 +278,13 @@ module Orb end class Decrement < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Decrement, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -421,7 +443,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -457,7 +484,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -519,7 +551,13 @@ module Orb end class ExpirationChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -666,7 +704,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -702,7 +745,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -764,7 +812,13 @@ module Orb end class CreditBlockExpiry < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -905,7 +959,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -941,7 +1000,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1003,7 +1067,13 @@ module Orb end class Void < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Void, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1156,7 +1226,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1192,7 +1267,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1254,7 +1334,13 @@ module Orb end class VoidInitiated < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1413,7 +1499,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1449,7 +1540,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1511,7 +1607,13 @@ module Orb end class Amendment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Amendment, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1652,7 +1754,12 @@ module Orb class CreditBlock < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1688,7 +1795,12 @@ module Orb class Customer < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi b/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi index 4c133c8b..6d6617a3 100644 --- a/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpCreateByExternalIDParams, + Orb::Internal::AnyHash + ) + end # The amount to increment when the threshold is reached. sig { returns(String) } @@ -129,7 +135,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi b/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi index 03948ee3..9594b293 100644 --- a/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi @@ -5,7 +5,13 @@ module Orb module Customers module Credits class TopUpCreateByExternalIDResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -119,7 +125,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/customers/credits/top_up_create_params.rbi b/rbi/orb/models/customers/credits/top_up_create_params.rbi index e96b3f64..2813fd59 100644 --- a/rbi/orb/models/customers/credits/top_up_create_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpCreateParams, + Orb::Internal::AnyHash + ) + end # The amount to increment when the threshold is reached. sig { returns(String) } @@ -127,7 +133,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/customers/credits/top_up_create_response.rbi b/rbi/orb/models/customers/credits/top_up_create_response.rbi index 979aafd9..0892687a 100644 --- a/rbi/orb/models/customers/credits/top_up_create_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_response.rbi @@ -5,7 +5,13 @@ module Orb module Customers module Credits class TopUpCreateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpCreateResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -119,7 +125,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi b/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi index 16f47468..679f6a17 100644 --- a/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpDeleteByExternalIDParams, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :external_customer_id diff --git a/rbi/orb/models/customers/credits/top_up_delete_params.rbi b/rbi/orb/models/customers/credits/top_up_delete_params.rbi index aa0106a0..ee0e58fd 100644 --- a/rbi/orb/models/customers/credits/top_up_delete_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_delete_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpDeleteParams, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :customer_id diff --git a/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi b/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi index 90885f41..09ff5dd9 100644 --- a/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpListByExternalIDParams, + Orb::Internal::AnyHash + ) + end # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi b/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi index 053b1404..200ebf13 100644 --- a/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi @@ -5,7 +5,13 @@ module Orb module Customers module Credits class TopUpListByExternalIDResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -119,7 +125,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/customers/credits/top_up_list_params.rbi b/rbi/orb/models/customers/credits/top_up_list_params.rbi index 2ab43e11..4f827151 100644 --- a/rbi/orb/models/customers/credits/top_up_list_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_params.rbi @@ -8,7 +8,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Customers::Credits::TopUpListParams, + Orb::Internal::AnyHash + ) + end # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/customers/credits/top_up_list_response.rbi b/rbi/orb/models/customers/credits/top_up_list_response.rbi index eca1df88..6494d0ad 100644 --- a/rbi/orb/models/customers/credits/top_up_list_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_response.rbi @@ -5,7 +5,13 @@ module Orb module Customers module Credits class TopUpListResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpListResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -119,7 +125,13 @@ module Orb end class InvoiceSettings < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + Orb::Internal::AnyHash + ) + end # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. diff --git a/rbi/orb/models/dimensional_price_group.rbi b/rbi/orb/models/dimensional_price_group.rbi index 6f23d48e..82a3d93b 100644 --- a/rbi/orb/models/dimensional_price_group.rbi +++ b/rbi/orb/models/dimensional_price_group.rbi @@ -3,7 +3,10 @@ module Orb module Models class DimensionalPriceGroup < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::DimensionalPriceGroup, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/dimensional_price_group_create_params.rbi b/rbi/orb/models/dimensional_price_group_create_params.rbi index 4fb0d745..835a6a1e 100644 --- a/rbi/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/orb/models/dimensional_price_group_create_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::DimensionalPriceGroupCreateParams, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :billable_metric_id diff --git a/rbi/orb/models/dimensional_price_group_list_params.rbi b/rbi/orb/models/dimensional_price_group_list_params.rbi index 6bd70041..a9f822e4 100644 --- a/rbi/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/orb/models/dimensional_price_group_list_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::DimensionalPriceGroupListParams, Orb::Internal::AnyHash) + end # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/dimensional_price_group_retrieve_params.rbi b/rbi/orb/models/dimensional_price_group_retrieve_params.rbi index addf821a..05105f88 100644 --- a/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +++ b/rbi/orb/models/dimensional_price_group_retrieve_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::DimensionalPriceGroupRetrieveParams, + Orb::Internal::AnyHash + ) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/dimensional_price_groups.rbi b/rbi/orb/models/dimensional_price_groups.rbi index de095f08..03410fce 100644 --- a/rbi/orb/models/dimensional_price_groups.rbi +++ b/rbi/orb/models/dimensional_price_groups.rbi @@ -3,7 +3,10 @@ module Orb module Models class DimensionalPriceGroupsAPI < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::DimensionalPriceGroupsAPI, Orb::Internal::AnyHash) + end sig { returns(T::Array[Orb::DimensionalPriceGroup]) } attr_accessor :data diff --git a/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi b/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi index 89968a11..fcdfea85 100644 --- a/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +++ b/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams, + Orb::Internal::AnyHash + ) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/evaluate_price_group.rbi b/rbi/orb/models/evaluate_price_group.rbi index afec2748..764b6372 100644 --- a/rbi/orb/models/evaluate_price_group.rbi +++ b/rbi/orb/models/evaluate_price_group.rbi @@ -3,7 +3,8 @@ module Orb module Models class EvaluatePriceGroup < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::EvaluatePriceGroup, Orb::Internal::AnyHash) } # The price's output for the group sig { returns(String) } diff --git a/rbi/orb/models/event_deprecate_params.rbi b/rbi/orb/models/event_deprecate_params.rbi index 436ff1bb..62690a55 100644 --- a/rbi/orb/models/event_deprecate_params.rbi +++ b/rbi/orb/models/event_deprecate_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::EventDeprecateParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/event_deprecate_response.rbi b/rbi/orb/models/event_deprecate_response.rbi index 444400b9..8fca50f2 100644 --- a/rbi/orb/models/event_deprecate_response.rbi +++ b/rbi/orb/models/event_deprecate_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class EventDeprecateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::EventDeprecateResponse, Orb::Internal::AnyHash) + end # event_id of the deprecated event, if successfully updated sig { returns(String) } diff --git a/rbi/orb/models/event_ingest_params.rbi b/rbi/orb/models/event_ingest_params.rbi index d927061a..dbae7501 100644 --- a/rbi/orb/models/event_ingest_params.rbi +++ b/rbi/orb/models/event_ingest_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::EventIngestParams, Orb::Internal::AnyHash) } sig { returns(T::Array[Orb::EventIngestParams::Event]) } attr_accessor :events @@ -56,7 +57,10 @@ module Orb end class Event < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::EventIngestParams::Event, Orb::Internal::AnyHash) + end # A name to meaningfully identify the action or event type. sig { returns(String) } diff --git a/rbi/orb/models/event_ingest_response.rbi b/rbi/orb/models/event_ingest_response.rbi index d9ca1434..6221361c 100644 --- a/rbi/orb/models/event_ingest_response.rbi +++ b/rbi/orb/models/event_ingest_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class EventIngestResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::EventIngestResponse, Orb::Internal::AnyHash) + end # Contains all failing validation events. In the case of a 200, this array will # always be empty. This field will always be present. @@ -56,7 +59,13 @@ module Orb end class ValidationFailed < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::EventIngestResponse::ValidationFailed, + Orb::Internal::AnyHash + ) + end # The passed idempotency_key corresponding to the validation_errors sig { returns(String) } @@ -92,7 +101,13 @@ module Orb end class Debug < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::EventIngestResponse::Debug, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :duplicate diff --git a/rbi/orb/models/event_search_params.rbi b/rbi/orb/models/event_search_params.rbi index 406794c3..428623d7 100644 --- a/rbi/orb/models/event_search_params.rbi +++ b/rbi/orb/models/event_search_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::EventSearchParams, Orb::Internal::AnyHash) } # This is an explicit array of IDs to filter by. Note that an event's ID is the # idempotency_key that was originally used for ingestion, and this only supports diff --git a/rbi/orb/models/event_search_response.rbi b/rbi/orb/models/event_search_response.rbi index f382f107..0fa4bb69 100644 --- a/rbi/orb/models/event_search_response.rbi +++ b/rbi/orb/models/event_search_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class EventSearchResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::EventSearchResponse, Orb::Internal::AnyHash) + end sig { returns(T::Array[Orb::Models::EventSearchResponse::Data]) } attr_accessor :data @@ -25,7 +28,13 @@ module Orb end class Data < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::EventSearchResponse::Data, + Orb::Internal::AnyHash + ) + end # A unique value, generated by the client, that is used to de-duplicate events. # Exactly one event with a given idempotency key will be ingested, which allows diff --git a/rbi/orb/models/event_update_params.rbi b/rbi/orb/models/event_update_params.rbi index d6ba792f..403fdd94 100644 --- a/rbi/orb/models/event_update_params.rbi +++ b/rbi/orb/models/event_update_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::EventUpdateParams, Orb::Internal::AnyHash) } # A name to meaningfully identify the action or event type. sig { returns(String) } diff --git a/rbi/orb/models/event_update_response.rbi b/rbi/orb/models/event_update_response.rbi index ca693cba..52559dca 100644 --- a/rbi/orb/models/event_update_response.rbi +++ b/rbi/orb/models/event_update_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class EventUpdateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::EventUpdateResponse, Orb::Internal::AnyHash) + end # event_id of the amended event, if successfully ingested sig { returns(String) } diff --git a/rbi/orb/models/events/backfill_close_params.rbi b/rbi/orb/models/events/backfill_close_params.rbi index 39c35539..5aa6bacd 100644 --- a/rbi/orb/models/events/backfill_close_params.rbi +++ b/rbi/orb/models/events/backfill_close_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::BackfillCloseParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/events/backfill_close_response.rbi b/rbi/orb/models/events/backfill_close_response.rbi index 394a2026..17203935 100644 --- a/rbi/orb/models/events/backfill_close_response.rbi +++ b/rbi/orb/models/events/backfill_close_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Events class BackfillCloseResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Events::BackfillCloseResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/events/backfill_create_params.rbi b/rbi/orb/models/events/backfill_create_params.rbi index 7c9d57d1..82b8ea50 100644 --- a/rbi/orb/models/events/backfill_create_params.rbi +++ b/rbi/orb/models/events/backfill_create_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::BackfillCreateParams, Orb::Internal::AnyHash) + end # The (exclusive) end of the usage timeframe affected by this backfill. By # default, Orb allows backfills up to 10 days in duration at a time. Reach out to diff --git a/rbi/orb/models/events/backfill_create_response.rbi b/rbi/orb/models/events/backfill_create_response.rbi index 63865d5f..e52f05ed 100644 --- a/rbi/orb/models/events/backfill_create_response.rbi +++ b/rbi/orb/models/events/backfill_create_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Events class BackfillCreateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Events::BackfillCreateResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/events/backfill_fetch_params.rbi b/rbi/orb/models/events/backfill_fetch_params.rbi index f64756f9..8feee6cf 100644 --- a/rbi/orb/models/events/backfill_fetch_params.rbi +++ b/rbi/orb/models/events/backfill_fetch_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::BackfillFetchParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/events/backfill_fetch_response.rbi b/rbi/orb/models/events/backfill_fetch_response.rbi index 45d40851..9f7f14f4 100644 --- a/rbi/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/orb/models/events/backfill_fetch_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Events class BackfillFetchResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Events::BackfillFetchResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/events/backfill_list_params.rbi b/rbi/orb/models/events/backfill_list_params.rbi index cb86e5c6..e1573bc1 100644 --- a/rbi/orb/models/events/backfill_list_params.rbi +++ b/rbi/orb/models/events/backfill_list_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::BackfillListParams, Orb::Internal::AnyHash) + end # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/events/backfill_list_response.rbi b/rbi/orb/models/events/backfill_list_response.rbi index 6150323b..1c639277 100644 --- a/rbi/orb/models/events/backfill_list_response.rbi +++ b/rbi/orb/models/events/backfill_list_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Events class BackfillListResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Events::BackfillListResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/events/backfill_revert_params.rbi b/rbi/orb/models/events/backfill_revert_params.rbi index 53b94b44..05e797f7 100644 --- a/rbi/orb/models/events/backfill_revert_params.rbi +++ b/rbi/orb/models/events/backfill_revert_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::BackfillRevertParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/events/backfill_revert_response.rbi b/rbi/orb/models/events/backfill_revert_response.rbi index 9b5360f0..4404a4d8 100644 --- a/rbi/orb/models/events/backfill_revert_response.rbi +++ b/rbi/orb/models/events/backfill_revert_response.rbi @@ -4,7 +4,13 @@ module Orb module Models module Events class BackfillRevertResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::Events::BackfillRevertResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/events/event_volumes.rbi b/rbi/orb/models/events/event_volumes.rbi index 93fe67a8..d5ec20f7 100644 --- a/rbi/orb/models/events/event_volumes.rbi +++ b/rbi/orb/models/events/event_volumes.rbi @@ -6,7 +6,10 @@ module Orb module Events class EventVolumes < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::EventVolumes, Orb::Internal::AnyHash) + end sig { returns(T::Array[Orb::Events::EventVolumes::Data]) } attr_accessor :data @@ -26,7 +29,10 @@ module Orb end class Data < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::EventVolumes::Data, Orb::Internal::AnyHash) + end # The number of events ingested with a timestamp between the timeframe sig { returns(Integer) } diff --git a/rbi/orb/models/events/volume_list_params.rbi b/rbi/orb/models/events/volume_list_params.rbi index 379d7688..3a9ddcf3 100644 --- a/rbi/orb/models/events/volume_list_params.rbi +++ b/rbi/orb/models/events/volume_list_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Events::VolumeListParams, Orb::Internal::AnyHash) + end # The start of the timeframe, inclusive, in which to return event volume. All # datetime values are converted to UTC time. If the specified time isn't diff --git a/rbi/orb/models/invoice.rbi b/rbi/orb/models/invoice.rbi index 5ed1d17d..090ea276 100644 --- a/rbi/orb/models/invoice.rbi +++ b/rbi/orb/models/invoice.rbi @@ -3,7 +3,7 @@ module Orb module Models class Invoice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Invoice, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -646,7 +646,10 @@ module Orb end class AutoCollection < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::AutoCollection, Orb::Internal::AnyHash) + end # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } @@ -713,7 +716,10 @@ module Orb end class BillingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::BillingAddress, Orb::Internal::AnyHash) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -763,7 +769,10 @@ module Orb end class CreditNote < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::CreditNote, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -832,7 +841,8 @@ module Orb end class Customer < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Invoice::Customer, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -858,7 +868,13 @@ module Orb end class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::CustomerBalanceTransaction, + Orb::Internal::AnyHash + ) + end # A unique id for this transaction. sig { returns(String) } @@ -1061,7 +1077,13 @@ module Orb end class CreditNote < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::CustomerBalanceTransaction::CreditNote, + Orb::Internal::AnyHash + ) + end # The id of the Credit note sig { returns(String) } @@ -1080,7 +1102,13 @@ module Orb end class Invoice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::CustomerBalanceTransaction::Invoice, + Orb::Internal::AnyHash + ) + end # The Invoice id sig { returns(String) } @@ -1131,7 +1159,10 @@ module Orb end class CustomerTaxID < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::CustomerTaxID, Orb::Internal::AnyHash) + end sig { returns(Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) } attr_accessor :country @@ -1540,7 +1571,8 @@ module Orb end class LineItem < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Invoice::LineItem, Orb::Internal::AnyHash) } # A unique ID for this line item. sig { returns(String) } @@ -1976,7 +2008,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2053,7 +2091,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2130,7 +2174,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2207,7 +2257,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2292,7 +2348,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2378,7 +2440,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::LineItem::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -2415,7 +2480,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::LineItem::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -2464,7 +2532,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Matrix, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -2555,7 +2629,12 @@ module Orb class Grouping < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -2585,7 +2664,12 @@ module Orb class MatrixConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } @@ -2613,7 +2697,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Tier, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -2704,7 +2794,12 @@ module Orb class Grouping < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Tier::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -2734,7 +2829,12 @@ module Orb class TierConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig, + Orb::Internal::AnyHash + ) + end sig { returns(Float) } attr_accessor :first_unit @@ -2770,7 +2870,13 @@ module Orb end class Null < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Null, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -2843,7 +2949,12 @@ module Orb class Grouping < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Null::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -2882,7 +2993,10 @@ module Orb end class TaxAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::LineItem::TaxAmount, Orb::Internal::AnyHash) + end # The amount of additional tax incurred by this tax rate. sig { returns(String) } @@ -2928,7 +3042,8 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Invoice::Maximum, Orb::Internal::AnyHash) } # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -2964,7 +3079,8 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Invoice::Minimum, Orb::Internal::AnyHash) } # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -3000,7 +3116,10 @@ module Orb end class PaymentAttempt < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::PaymentAttempt, Orb::Internal::AnyHash) + end # The ID of the payment attempt. sig { returns(String) } @@ -3108,7 +3227,10 @@ module Orb end class ShippingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::ShippingAddress, Orb::Internal::AnyHash) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -3175,7 +3297,10 @@ module Orb end class Subscription < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Invoice::Subscription, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/invoice_create_params.rbi b/rbi/orb/models/invoice_create_params.rbi index c98f55c0..cbd6756a 100644 --- a/rbi/orb/models/invoice_create_params.rbi +++ b/rbi/orb/models/invoice_create_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::InvoiceCreateParams, Orb::Internal::AnyHash) } # An ISO 4217 currency string. Must be the same as the customer's currency if it # is set. @@ -159,7 +160,10 @@ module Orb end class LineItem < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::InvoiceCreateParams::LineItem, Orb::Internal::AnyHash) + end # A date string to specify the line item's end date in the customer's timezone. sig { returns(Date) } @@ -263,7 +267,13 @@ module Orb end class UnitConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::InvoiceCreateParams::LineItem::UnitConfig, + Orb::Internal::AnyHash + ) + end # Rate per unit of usage sig { returns(String) } diff --git a/rbi/orb/models/invoice_fetch_params.rbi b/rbi/orb/models/invoice_fetch_params.rbi index ba8272c0..8e393eac 100644 --- a/rbi/orb/models/invoice_fetch_params.rbi +++ b/rbi/orb/models/invoice_fetch_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::InvoiceFetchParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/orb/models/invoice_fetch_upcoming_params.rbi index 612c5ed1..bdbb9327 100644 --- a/rbi/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/orb/models/invoice_fetch_upcoming_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::InvoiceFetchUpcomingParams, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :subscription_id diff --git a/rbi/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/orb/models/invoice_fetch_upcoming_response.rbi index f8afe1ff..a53ca27f 100644 --- a/rbi/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/orb/models/invoice_fetch_upcoming_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -773,7 +779,13 @@ module Orb end class AutoCollection < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, + Orb::Internal::AnyHash + ) + end # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } @@ -840,7 +852,13 @@ module Orb end class BillingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -890,7 +908,13 @@ module Orb end class CreditNote < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CreditNote, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -959,7 +983,13 @@ module Orb end class Customer < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::Customer, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -985,7 +1015,13 @@ module Orb end class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction, + Orb::Internal::AnyHash + ) + end # A unique id for this transaction. sig { returns(String) } @@ -1206,7 +1242,13 @@ module Orb end class CreditNote < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, + Orb::Internal::AnyHash + ) + end # The id of the Credit note sig { returns(String) } @@ -1225,7 +1267,13 @@ module Orb end class Invoice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, + Orb::Internal::AnyHash + ) + end # The Invoice id sig { returns(String) } @@ -1279,7 +1327,13 @@ module Orb end class CustomerTaxID < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -2263,7 +2317,13 @@ module Orb end class LineItem < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem, + Orb::Internal::AnyHash + ) + end # A unique ID for this line item. sig { returns(String) } @@ -2741,7 +2801,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2818,7 +2884,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2895,7 +2967,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -2972,7 +3050,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -3057,7 +3141,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -3145,7 +3235,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -3182,7 +3278,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -3231,7 +3333,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -3326,7 +3434,12 @@ module Orb class Grouping < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -3356,7 +3469,12 @@ module Orb class MatrixConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } @@ -3384,7 +3502,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -3479,7 +3603,12 @@ module Orb class Grouping < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -3509,7 +3638,12 @@ module Orb class TierConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig, + Orb::Internal::AnyHash + ) + end sig { returns(Float) } attr_accessor :first_unit @@ -3545,7 +3679,13 @@ module Orb end class Null < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -3620,7 +3760,12 @@ module Orb class Grouping < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -3661,7 +3806,13 @@ module Orb end class TaxAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount, + Orb::Internal::AnyHash + ) + end # The amount of additional tax incurred by this tax rate. sig { returns(String) } @@ -3707,7 +3858,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -3743,7 +3900,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -3779,7 +3942,13 @@ module Orb end class PaymentAttempt < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt, + Orb::Internal::AnyHash + ) + end # The ID of the payment attempt. sig { returns(String) } @@ -3890,7 +4059,13 @@ module Orb end class ShippingAddress < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :city @@ -3986,7 +4161,13 @@ module Orb end class Subscription < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::Subscription, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id diff --git a/rbi/orb/models/invoice_issue_params.rbi b/rbi/orb/models/invoice_issue_params.rbi index 0a3c0471..893e7418 100644 --- a/rbi/orb/models/invoice_issue_params.rbi +++ b/rbi/orb/models/invoice_issue_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::InvoiceIssueParams, Orb::Internal::AnyHash) } # If true, the invoice will be issued synchronously. If false, the invoice will be # issued asynchronously. The synchronous option is only available for invoices diff --git a/rbi/orb/models/invoice_line_item_create_params.rbi b/rbi/orb/models/invoice_line_item_create_params.rbi index 576c59dd..d1721127 100644 --- a/rbi/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/orb/models/invoice_line_item_create_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::InvoiceLineItemCreateParams, Orb::Internal::AnyHash) + end # The total amount in the invoice's currency to add to the line item. sig { returns(String) } diff --git a/rbi/orb/models/invoice_line_item_create_response.rbi b/rbi/orb/models/invoice_line_item_create_response.rbi index 11ffdac5..1beccf2f 100644 --- a/rbi/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/orb/models/invoice_line_item_create_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse, + Orb::Internal::AnyHash + ) + end # A unique ID for this line item. sig { returns(String) } @@ -463,7 +469,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -540,7 +552,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -617,7 +635,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -694,7 +718,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -779,7 +809,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -867,7 +903,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -904,7 +946,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -953,7 +1001,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -1047,7 +1101,13 @@ module Orb end class Grouping < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -1074,7 +1134,13 @@ module Orb end class MatrixConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } @@ -1102,7 +1168,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -1196,7 +1268,13 @@ module Orb end class Grouping < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -1223,7 +1301,13 @@ module Orb end class TierConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig, + Orb::Internal::AnyHash + ) + end sig { returns(Float) } attr_accessor :first_unit @@ -1259,7 +1343,13 @@ module Orb end class Null < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null, + Orb::Internal::AnyHash + ) + end # The total amount for this sub line item. sig { returns(String) } @@ -1333,7 +1423,13 @@ module Orb end class Grouping < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :key @@ -1372,7 +1468,13 @@ module Orb end class TaxAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::TaxAmount, + Orb::Internal::AnyHash + ) + end # The amount of additional tax incurred by this tax rate. sig { returns(String) } diff --git a/rbi/orb/models/invoice_list_params.rbi b/rbi/orb/models/invoice_list_params.rbi index db3a1ada..d3a4c8eb 100644 --- a/rbi/orb/models/invoice_list_params.rbi +++ b/rbi/orb/models/invoice_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::InvoiceListParams, Orb::Internal::AnyHash) } sig { returns(T.nilable(String)) } attr_accessor :amount diff --git a/rbi/orb/models/invoice_mark_paid_params.rbi b/rbi/orb/models/invoice_mark_paid_params.rbi index 91b2b12d..6a45b01a 100644 --- a/rbi/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/orb/models/invoice_mark_paid_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::InvoiceMarkPaidParams, Orb::Internal::AnyHash) + end # A date string to specify the date of the payment. sig { returns(Date) } diff --git a/rbi/orb/models/invoice_pay_params.rbi b/rbi/orb/models/invoice_pay_params.rbi index f1b6c7ae..756fbfb3 100644 --- a/rbi/orb/models/invoice_pay_params.rbi +++ b/rbi/orb/models/invoice_pay_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::InvoicePayParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/invoice_update_params.rbi b/rbi/orb/models/invoice_update_params.rbi index ad31fe95..b3bd0979 100644 --- a/rbi/orb/models/invoice_update_params.rbi +++ b/rbi/orb/models/invoice_update_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::InvoiceUpdateParams, Orb::Internal::AnyHash) } # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared diff --git a/rbi/orb/models/invoice_void_params.rbi b/rbi/orb/models/invoice_void_params.rbi index 38adbd83..ee6fa4a6 100644 --- a/rbi/orb/models/invoice_void_params.rbi +++ b/rbi/orb/models/invoice_void_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::InvoiceVoidParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/item.rbi b/rbi/orb/models/item.rbi index be12cfd4..a26a35a9 100644 --- a/rbi/orb/models/item.rbi +++ b/rbi/orb/models/item.rbi @@ -3,7 +3,7 @@ module Orb module Models class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Item, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -45,7 +45,10 @@ module Orb end class ExternalConnection < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Item::ExternalConnection, Orb::Internal::AnyHash) + end sig do returns( diff --git a/rbi/orb/models/item_create_params.rbi b/rbi/orb/models/item_create_params.rbi index cb2dc14e..7406b159 100644 --- a/rbi/orb/models/item_create_params.rbi +++ b/rbi/orb/models/item_create_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::ItemCreateParams, Orb::Internal::AnyHash) } # The name of the item. sig { returns(String) } diff --git a/rbi/orb/models/item_fetch_params.rbi b/rbi/orb/models/item_fetch_params.rbi index abae7602..d92bf33f 100644 --- a/rbi/orb/models/item_fetch_params.rbi +++ b/rbi/orb/models/item_fetch_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::ItemFetchParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/item_list_params.rbi b/rbi/orb/models/item_list_params.rbi index 0c7f116b..a73c3621 100644 --- a/rbi/orb/models/item_list_params.rbi +++ b/rbi/orb/models/item_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::ItemListParams, Orb::Internal::AnyHash) } # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/item_update_params.rbi b/rbi/orb/models/item_update_params.rbi index 240bb149..90e35557 100644 --- a/rbi/orb/models/item_update_params.rbi +++ b/rbi/orb/models/item_update_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::ItemUpdateParams, Orb::Internal::AnyHash) } sig do returns(T.nilable(T::Array[Orb::ItemUpdateParams::ExternalConnection])) @@ -43,7 +44,13 @@ module Orb end class ExternalConnection < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::ItemUpdateParams::ExternalConnection, + Orb::Internal::AnyHash + ) + end sig do returns( diff --git a/rbi/orb/models/metric_create_params.rbi b/rbi/orb/models/metric_create_params.rbi index 2dc4c48f..5b2723e1 100644 --- a/rbi/orb/models/metric_create_params.rbi +++ b/rbi/orb/models/metric_create_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::MetricCreateParams, Orb::Internal::AnyHash) } # A description of the metric. sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/metric_fetch_params.rbi b/rbi/orb/models/metric_fetch_params.rbi index 98a392af..f26d49ab 100644 --- a/rbi/orb/models/metric_fetch_params.rbi +++ b/rbi/orb/models/metric_fetch_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::MetricFetchParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/metric_list_params.rbi b/rbi/orb/models/metric_list_params.rbi index 008259b7..4f85b65a 100644 --- a/rbi/orb/models/metric_list_params.rbi +++ b/rbi/orb/models/metric_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::MetricListParams, Orb::Internal::AnyHash) } sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/metric_update_params.rbi b/rbi/orb/models/metric_update_params.rbi index 79ada9fd..72eaecd6 100644 --- a/rbi/orb/models/metric_update_params.rbi +++ b/rbi/orb/models/metric_update_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::MetricUpdateParams, Orb::Internal::AnyHash) } # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared diff --git a/rbi/orb/models/pagination_metadata.rbi b/rbi/orb/models/pagination_metadata.rbi index f5198cfc..69561863 100644 --- a/rbi/orb/models/pagination_metadata.rbi +++ b/rbi/orb/models/pagination_metadata.rbi @@ -3,7 +3,8 @@ module Orb module Models class PaginationMetadata < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PaginationMetadata, Orb::Internal::AnyHash) } sig { returns(T::Boolean) } attr_accessor :has_more diff --git a/rbi/orb/models/percentage_discount.rbi b/rbi/orb/models/percentage_discount.rbi index c0719b3f..5f341702 100644 --- a/rbi/orb/models/percentage_discount.rbi +++ b/rbi/orb/models/percentage_discount.rbi @@ -3,7 +3,8 @@ module Orb module Models class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PercentageDiscount, Orb::Internal::AnyHash) } # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. diff --git a/rbi/orb/models/plan.rbi b/rbi/orb/models/plan.rbi index 34012894..0cea1f4e 100644 --- a/rbi/orb/models/plan.rbi +++ b/rbi/orb/models/plan.rbi @@ -3,7 +3,7 @@ module Orb module Models class Plan < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Plan, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -404,7 +404,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Plan::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -481,7 +487,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Plan::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -558,7 +570,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Plan::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -635,7 +653,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Plan::Adjustment::Minimum, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -720,7 +741,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Plan::Adjustment::Maximum, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -802,7 +826,8 @@ module Orb end class BasePlan < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Plan::BasePlan, Orb::Internal::AnyHash) } sig { returns(T.nilable(String)) } attr_accessor :id @@ -847,7 +872,8 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Plan::Maximum, Orb::Internal::AnyHash) } # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -883,7 +909,8 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Plan::Minimum, Orb::Internal::AnyHash) } # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -919,7 +946,8 @@ module Orb end class PlanPhase < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Plan::PlanPhase, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -1082,7 +1110,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Plan::PlanPhase::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -1118,7 +1149,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Plan::PlanPhase::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -1155,7 +1189,8 @@ module Orb end class Product < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Plan::Product, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -1195,7 +1230,8 @@ module Orb end class TrialConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Plan::TrialConfig, Orb::Internal::AnyHash) } sig { returns(T.nilable(Integer)) } attr_accessor :trial_period diff --git a/rbi/orb/models/plan_create_params.rbi b/rbi/orb/models/plan_create_params.rbi index e7708e5e..95f20d1b 100644 --- a/rbi/orb/models/plan_create_params.rbi +++ b/rbi/orb/models/plan_create_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PlanCreateParams, Orb::Internal::AnyHash) } # An ISO 4217 currency string for invoices generated by subscriptions on this # plan. @@ -230,7 +231,10 @@ module Orb end class Unit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PlanCreateParams::Price::Unit, Orb::Internal::AnyHash) + end # The cadence to bill for this price on. sig { returns(Orb::PlanCreateParams::Price::Unit::Cadence::OrSymbol) } @@ -487,7 +491,13 @@ module Orb end class UnitConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Unit::UnitConfig, + Orb::Internal::AnyHash + ) + end # Rate per unit of usage sig { returns(String) } @@ -506,7 +516,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -586,7 +602,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -667,7 +689,13 @@ module Orb end class Package < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Package, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -928,7 +956,13 @@ module Orb end class PackageConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Package::PackageConfig, + Orb::Internal::AnyHash + ) + end # A currency amount to rate usage by sig { returns(String) } @@ -963,7 +997,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1043,7 +1083,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1124,7 +1170,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Matrix, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -1385,7 +1437,13 @@ module Orb end class MatrixConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -1442,7 +1500,12 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -1484,7 +1547,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1564,7 +1633,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1645,7 +1720,13 @@ module Orb end class Tiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Tiered, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -1906,7 +1987,13 @@ module Orb end class TieredConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Tiered::TieredConfig, + Orb::Internal::AnyHash + ) + end # Tiers for rating based on total usage quantities into the specified tier sig do @@ -1947,7 +2034,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -1993,7 +2085,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2073,7 +2171,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2154,7 +2258,13 @@ module Orb end class TieredBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredBps, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -2418,7 +2528,13 @@ module Orb end class TieredBpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -2461,7 +2577,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -2515,7 +2636,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2595,7 +2722,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2676,7 +2809,10 @@ module Orb end class Bps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PlanCreateParams::Price::Bps, Orb::Internal::AnyHash) + end sig { returns(Orb::PlanCreateParams::Price::Bps::BpsConfig) } attr_reader :bps_config @@ -2879,7 +3015,13 @@ module Orb end class BpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Bps::BpsConfig, + Orb::Internal::AnyHash + ) + end # Basis point take rate per event sig { returns(Float) } @@ -2964,7 +3106,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3044,7 +3192,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3125,7 +3279,13 @@ module Orb end class BulkBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkBps, + Orb::Internal::AnyHash + ) + end sig { returns(Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig) } attr_reader :bulk_bps_config @@ -3334,7 +3494,13 @@ module Orb end class BulkBpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -3377,7 +3543,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -3475,7 +3646,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3555,7 +3732,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3636,7 +3819,10 @@ module Orb end class Bulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PlanCreateParams::Price::Bulk, Orb::Internal::AnyHash) + end sig { returns(Orb::PlanCreateParams::Price::Bulk::BulkConfig) } attr_reader :bulk_config @@ -3841,7 +4027,13 @@ module Orb end class BulkConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Bulk::BulkConfig, + Orb::Internal::AnyHash + ) + end # Bulk tiers for rating based on total usage volume sig do @@ -3880,7 +4072,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } @@ -3967,7 +4164,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4047,7 +4250,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4128,7 +4337,13 @@ module Orb end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ThresholdTotalAmount, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -4385,7 +4600,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4465,7 +4686,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4546,7 +4773,13 @@ module Orb end class TieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -4803,7 +5036,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4883,7 +5122,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4964,7 +5209,13 @@ module Orb end class TieredWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredWithMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -5221,7 +5472,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5301,7 +5558,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5382,7 +5645,13 @@ module Orb end class UnitWithPercent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::UnitWithPercent, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -5639,7 +5908,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5719,7 +5994,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5800,7 +6081,13 @@ module Orb end class PackageWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::PackageWithAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6057,7 +6344,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6137,7 +6430,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6218,7 +6517,13 @@ module Orb end class TieredWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6475,7 +6780,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6555,7 +6866,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6636,7 +6953,13 @@ module Orb end class UnitWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::UnitWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6893,7 +7216,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6973,7 +7302,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7054,7 +7389,13 @@ module Orb end class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7311,7 +7652,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7391,7 +7738,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7472,7 +7825,13 @@ module Orb end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7730,7 +8089,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7810,7 +8175,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7891,7 +8262,13 @@ module Orb end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8149,7 +8526,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8229,7 +8612,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8310,7 +8699,13 @@ module Orb end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::MatrixWithDisplayName, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8567,7 +8962,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8647,7 +9048,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8728,7 +9135,13 @@ module Orb end class BulkWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkWithProration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -8985,7 +9398,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9065,7 +9484,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9146,7 +9571,13 @@ module Orb end class GroupedTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -9403,7 +9834,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9483,7 +9920,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9564,7 +10007,13 @@ module Orb end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -9821,7 +10270,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9901,7 +10356,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9982,7 +10443,13 @@ module Orb end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10241,7 +10708,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10321,7 +10794,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10402,7 +10881,13 @@ module Orb end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10661,7 +11146,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10741,7 +11232,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10822,7 +11319,13 @@ module Orb end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -11079,7 +11582,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11159,7 +11668,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } diff --git a/rbi/orb/models/plan_fetch_params.rbi b/rbi/orb/models/plan_fetch_params.rbi index 3e9465ce..66aa7f53 100644 --- a/rbi/orb/models/plan_fetch_params.rbi +++ b/rbi/orb/models/plan_fetch_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PlanFetchParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/plan_list_params.rbi b/rbi/orb/models/plan_list_params.rbi index b2731159..74967e74 100644 --- a/rbi/orb/models/plan_list_params.rbi +++ b/rbi/orb/models/plan_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PlanListParams, Orb::Internal::AnyHash) } sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/plan_update_params.rbi b/rbi/orb/models/plan_update_params.rbi index b882b5bc..8c633588 100644 --- a/rbi/orb/models/plan_update_params.rbi +++ b/rbi/orb/models/plan_update_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PlanUpdateParams, Orb::Internal::AnyHash) } # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing diff --git a/rbi/orb/models/plans/external_plan_id_fetch_params.rbi b/rbi/orb/models/plans/external_plan_id_fetch_params.rbi index 7f87efc0..0f702641 100644 --- a/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +++ b/rbi/orb/models/plans/external_plan_id_fetch_params.rbi @@ -7,7 +7,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Plans::ExternalPlanIDFetchParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/plans/external_plan_id_update_params.rbi b/rbi/orb/models/plans/external_plan_id_update_params.rbi index b7f67ef1..786c78ab 100644 --- a/rbi/orb/models/plans/external_plan_id_update_params.rbi +++ b/rbi/orb/models/plans/external_plan_id_update_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Plans::ExternalPlanIDUpdateParams, + Orb::Internal::AnyHash + ) + end # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index ff74dfcd..203643f8 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -50,7 +50,8 @@ module Orb end class Unit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Price::Unit, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -318,7 +319,10 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Unit::BillableMetric, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -333,7 +337,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Unit::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -425,7 +435,10 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Unit::CreditAllocation, Orb::Internal::AnyHash) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -449,7 +462,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Unit::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -519,7 +538,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Unit::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -537,7 +559,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Unit::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -573,7 +598,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Unit::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -630,7 +658,10 @@ module Orb end class UnitConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Unit::UnitConfig, Orb::Internal::AnyHash) + end # Rate per unit of usage sig { returns(String) } @@ -649,7 +680,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Unit::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -680,7 +717,8 @@ module Orb end class Package < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Price::Package, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -960,7 +998,10 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Package::BillableMetric, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -975,7 +1016,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Package::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -1071,7 +1118,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Package::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -1095,7 +1148,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Package::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -1165,7 +1224,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Package::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -1183,7 +1245,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Package::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -1219,7 +1284,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Package::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -1255,7 +1323,10 @@ module Orb end class PackageConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Package::PackageConfig, Orb::Internal::AnyHash) + end # A currency amount to rate usage by sig { returns(String) } @@ -1309,7 +1380,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Package::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -1340,7 +1417,8 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Price::Matrix, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -1616,7 +1694,10 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Matrix::BillableMetric, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -1631,7 +1712,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Matrix::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -1726,7 +1813,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Matrix::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -1750,7 +1843,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Matrix::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -1820,7 +1919,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Matrix::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -1838,7 +1940,10 @@ module Orb end class MatrixConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Matrix::MatrixConfig, Orb::Internal::AnyHash) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -1886,7 +1991,13 @@ module Orb end class MatrixValue < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Matrix::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -1928,7 +2039,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Matrix::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -1964,7 +2078,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Matrix::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -2021,7 +2138,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Matrix::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -2052,7 +2175,8 @@ module Orb end class Tiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Price::Tiered, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -2328,7 +2452,10 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Tiered::BillableMetric, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -2343,7 +2470,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Tiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -2438,7 +2571,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Tiered::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -2462,7 +2601,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Tiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -2532,7 +2677,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Tiered::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -2550,7 +2698,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Tiered::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -2586,7 +2737,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Tiered::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -2643,7 +2797,10 @@ module Orb end class TieredConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Tiered::TieredConfig, Orb::Internal::AnyHash) + end # Tiers for rating based on total usage quantities into the specified tier sig { returns(T::Array[Orb::Price::Tiered::TieredConfig::Tier]) } @@ -2669,7 +2826,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Tiered::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -2715,7 +2878,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Tiered::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -2746,7 +2915,8 @@ module Orb end class TieredBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Price::TieredBps, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -3032,7 +3202,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredBps::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -3047,7 +3223,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -3144,7 +3326,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredBps::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -3168,7 +3356,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -3238,7 +3432,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredBps::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -3256,7 +3453,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredBps::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -3292,7 +3492,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredBps::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -3349,7 +3552,13 @@ module Orb end class TieredBpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredBps::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -3380,7 +3589,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredBps::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -3434,7 +3649,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredBps::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -3465,7 +3686,7 @@ module Orb end class Bps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Price::Bps, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -3728,7 +3949,10 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bps::BillableMetric, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -3743,7 +3967,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Bps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -3813,7 +4043,10 @@ module Orb end class BpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bps::BpsConfig, Orb::Internal::AnyHash) + end # Basis point take rate per event sig { returns(Float) } @@ -3868,7 +4101,10 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bps::CreditAllocation, Orb::Internal::AnyHash) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -3892,7 +4128,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Bps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -3962,7 +4204,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bps::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -3980,7 +4225,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bps::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -4016,7 +4264,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bps::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -4071,7 +4322,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Bps::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -4102,7 +4359,8 @@ module Orb end class BulkBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Price::BulkBps, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -4382,7 +4640,10 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::BulkBps::BillableMetric, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -4397,7 +4658,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -4467,7 +4734,10 @@ module Orb end class BulkBpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::BulkBps::BulkBpsConfig, Orb::Internal::AnyHash) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -4495,7 +4765,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkBps::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -4567,7 +4843,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkBps::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -4591,7 +4873,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -4661,7 +4949,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::BulkBps::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -4679,7 +4970,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::BulkBps::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -4715,7 +5009,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::BulkBps::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -4772,7 +5069,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkBps::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -4803,7 +5106,8 @@ module Orb end class Bulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::Price::Bulk, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -5071,7 +5375,10 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bulk::BillableMetric, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -5086,7 +5393,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Bulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -5156,7 +5469,10 @@ module Orb end class BulkConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bulk::BulkConfig, Orb::Internal::AnyHash) + end # Bulk tiers for rating based on total usage volume sig { returns(T::Array[Orb::Price::Bulk::BulkConfig::Tier]) } @@ -5182,7 +5498,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Bulk::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } @@ -5239,7 +5561,10 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bulk::CreditAllocation, Orb::Internal::AnyHash) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -5263,7 +5588,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Bulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -5333,7 +5664,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bulk::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -5351,7 +5685,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bulk::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -5387,7 +5724,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::Bulk::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -5444,7 +5784,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::Bulk::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -5475,7 +5821,10 @@ module Orb end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::ThresholdTotalAmount, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -5788,7 +6137,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -5803,7 +6158,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -5922,7 +6283,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -5946,7 +6313,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -6016,7 +6389,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -6034,7 +6413,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -6070,7 +6455,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -6137,7 +6528,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -6168,7 +6565,10 @@ module Orb end class TieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredPackage, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -6454,7 +6854,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackage::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -6469,7 +6875,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -6571,7 +6983,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackage::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -6595,7 +7013,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -6665,7 +7089,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredPackage::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -6683,7 +7110,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredPackage::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -6719,7 +7149,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredPackage::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -6782,7 +7215,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackage::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -6813,7 +7252,10 @@ module Orb end class GroupedTiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedTiered, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -7099,7 +7541,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTiered::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -7114,7 +7562,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -7216,7 +7670,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTiered::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -7240,7 +7700,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -7310,7 +7776,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedTiered::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -7328,7 +7797,10 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedTiered::Maximum, Orb::Internal::AnyHash) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -7364,7 +7836,10 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedTiered::Minimum, Orb::Internal::AnyHash) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -7427,7 +7902,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTiered::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -7458,7 +7939,10 @@ module Orb end class TieredWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredWithMinimum, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -7757,7 +8241,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -7772,7 +8262,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -7885,7 +8381,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -7909,7 +8411,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -7979,7 +8487,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredWithMinimum::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -7997,7 +8508,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -8033,7 +8550,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -8098,7 +8621,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -8129,7 +8658,10 @@ module Orb end class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredPackageWithMinimum, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -8458,7 +8990,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -8473,7 +9011,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -8594,7 +9138,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -8618,7 +9168,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -8688,7 +9244,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -8706,7 +9268,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -8742,7 +9310,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -8809,7 +9383,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -8840,7 +9420,10 @@ module Orb end class PackageWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::PackageWithAllocation, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -9157,7 +9740,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -9172,7 +9761,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -9291,7 +9886,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -9315,7 +9916,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -9385,7 +9992,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -9403,7 +10016,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -9439,7 +10058,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -9506,7 +10131,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -9537,7 +10168,10 @@ module Orb end class UnitWithPercent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::UnitWithPercent, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -9827,7 +10461,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -9842,7 +10482,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -9947,7 +10593,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -9971,7 +10623,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -10041,7 +10699,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::UnitWithPercent::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -10059,7 +10720,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -10095,7 +10762,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -10160,7 +10833,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -10191,7 +10870,10 @@ module Orb end class MatrixWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::MatrixWithAllocation, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -10516,7 +11198,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -10531,7 +11219,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -10650,7 +11344,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -10674,7 +11374,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -10744,7 +11450,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -10762,7 +11474,13 @@ module Orb end class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + Orb::Internal::AnyHash + ) + end # Allocation to be used to calculate the price sig { returns(Float) } @@ -10826,7 +11544,13 @@ module Orb end class MatrixValue < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -10868,7 +11592,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -10904,7 +11634,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -10971,7 +11707,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -11002,7 +11744,10 @@ module Orb end class TieredWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::TieredWithProration, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -11309,7 +12054,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -11324,7 +12075,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -11443,10 +12200,16 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } - - sig { returns(T::Boolean) } - attr_accessor :allows_rollover + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::CreditAllocation, + Orb::Internal::AnyHash + ) + end + + sig { returns(T::Boolean) } + attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency @@ -11467,7 +12230,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -11537,7 +12306,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -11555,7 +12330,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -11591,7 +12372,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -11656,7 +12443,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -11687,7 +12480,10 @@ module Orb end class UnitWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::UnitWithProration, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -11986,7 +12782,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -12001,7 +12803,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -12114,7 +12922,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -12138,7 +12952,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -12208,7 +13028,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::UnitWithProration::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -12226,7 +13049,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -12262,7 +13091,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -12327,7 +13162,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -12358,7 +13199,10 @@ module Orb end class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedAllocation, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -12657,7 +13501,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -12672,7 +13522,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -12785,7 +13641,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -12809,7 +13671,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -12879,7 +13747,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedAllocation::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -12897,7 +13768,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -12933,7 +13810,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -12998,7 +13881,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -13029,7 +13918,13 @@ module Orb end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -13370,7 +14265,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -13385,7 +14286,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -13506,7 +14413,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -13530,7 +14443,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -13600,7 +14519,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -13618,7 +14543,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -13654,7 +14585,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -13721,7 +14658,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -13752,7 +14695,10 @@ module Orb end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedWithMeteredMinimum, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -14087,7 +15033,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -14102,7 +15054,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -14223,7 +15181,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -14247,7 +15211,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -14317,7 +15287,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -14335,7 +15311,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -14371,7 +15353,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -14438,7 +15426,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -14469,7 +15463,10 @@ module Orb end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::MatrixWithDisplayName, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -14786,7 +15783,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -14801,7 +15804,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -14920,7 +15929,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -14944,7 +15959,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -15014,7 +16035,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -15032,7 +16059,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -15068,7 +16101,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -15135,7 +16174,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -15166,7 +16211,10 @@ module Orb end class BulkWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::BulkWithProration, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -15465,7 +16513,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -15480,7 +16534,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -15593,7 +16653,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -15617,7 +16683,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -15687,7 +16759,10 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::BulkWithProration::Item, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -15705,7 +16780,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -15741,7 +16822,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -15806,7 +16893,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -15837,7 +16930,10 @@ module Orb end class GroupedTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::GroupedTieredPackage, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -16150,7 +17246,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -16165,7 +17267,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -16284,7 +17392,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -16308,7 +17422,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -16378,7 +17498,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -16396,7 +17522,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -16432,7 +17564,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -16499,7 +17637,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -16530,7 +17674,10 @@ module Orb end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::MaxGroupTieredPackage, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -16847,7 +17994,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -16862,7 +18015,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -16981,7 +18140,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -17005,7 +18170,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -17075,7 +18246,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -17093,7 +18270,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -17129,7 +18312,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -17196,7 +18385,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -17227,7 +18422,13 @@ module Orb end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -17579,7 +18780,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -17594,7 +18801,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -17715,7 +18928,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -17739,7 +18958,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -17809,7 +19034,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -17827,7 +19058,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -17863,7 +19100,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -17933,7 +19176,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -17964,7 +19213,13 @@ module Orb end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -18322,7 +19577,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -18337,7 +19598,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -18461,7 +19728,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -18485,7 +19758,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -18555,7 +19834,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -18573,7 +19858,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -18609,7 +19900,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -18679,7 +19976,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -18710,7 +20013,10 @@ module Orb end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Price::CumulativeGroupedBulk, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -19027,7 +20333,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -19042,7 +20354,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -19161,7 +20479,13 @@ module Orb end class CreditAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::CreditAllocation, + Orb::Internal::AnyHash + ) + end sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -19185,7 +20509,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(Integer) } attr_accessor :duration @@ -19255,7 +20585,13 @@ module Orb end class Item < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::Item, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -19273,7 +20609,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::Maximum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. @@ -19309,7 +20651,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::Minimum, + Orb::Internal::AnyHash + ) + end # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. @@ -19376,7 +20724,13 @@ module Orb end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Array[String]) } attr_accessor :dimension_values diff --git a/rbi/orb/models/price_create_params.rbi b/rbi/orb/models/price_create_params.rbi index 975eb451..614f574b 100644 --- a/rbi/orb/models/price_create_params.rbi +++ b/rbi/orb/models/price_create_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PriceCreateParams, Orb::Internal::AnyHash) } # The cadence to bill for this price on. sig { returns(Orb::PriceCreateParams::Cadence::OrSymbol) } @@ -457,7 +458,10 @@ module Orb end class UnitConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::UnitConfig, Orb::Internal::AnyHash) + end # Rate per unit of usage sig { returns(String) } @@ -476,7 +480,13 @@ module Orb end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -556,7 +566,13 @@ module Orb end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -636,7 +652,10 @@ module Orb end class PackageConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::PackageConfig, Orb::Internal::AnyHash) + end # A currency amount to rate usage by sig { returns(String) } @@ -669,7 +688,10 @@ module Orb end class MatrixConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::MatrixConfig, Orb::Internal::AnyHash) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -719,7 +741,13 @@ module Orb end class MatrixValue < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -761,7 +789,13 @@ module Orb end class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::MatrixWithAllocationConfig, + Orb::Internal::AnyHash + ) + end # Allocation to be used to calculate the price sig { returns(Float) } @@ -825,7 +859,13 @@ module Orb end class MatrixValue < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -867,7 +907,10 @@ module Orb end class TieredConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::TieredConfig, Orb::Internal::AnyHash) + end # Tiers for rating based on total usage quantities into the specified tier sig { returns(T::Array[Orb::PriceCreateParams::TieredConfig::Tier]) } @@ -893,7 +936,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -939,7 +988,13 @@ module Orb end class TieredBpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -968,7 +1023,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -1022,7 +1083,10 @@ module Orb end class BpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::BpsConfig, Orb::Internal::AnyHash) + end # Basis point take rate per event sig { returns(Float) } @@ -1053,7 +1117,10 @@ module Orb end class BulkBpsConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::BulkBpsConfig, Orb::Internal::AnyHash) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -1081,7 +1148,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -1127,7 +1200,10 @@ module Orb end class BulkConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::BulkConfig, Orb::Internal::AnyHash) + end # Bulk tiers for rating based on total usage volume sig { returns(T::Array[Orb::PriceCreateParams::BulkConfig::Tier]) } @@ -1153,7 +1229,13 @@ module Orb end class Tier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } diff --git a/rbi/orb/models/price_evaluate_params.rbi b/rbi/orb/models/price_evaluate_params.rbi index a227426b..c1171289 100644 --- a/rbi/orb/models/price_evaluate_params.rbi +++ b/rbi/orb/models/price_evaluate_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PriceEvaluateParams, Orb::Internal::AnyHash) } # The exclusive upper bound for event timestamps sig { returns(Time) } diff --git a/rbi/orb/models/price_evaluate_response.rbi b/rbi/orb/models/price_evaluate_response.rbi index e12fa0c4..8d2a78af 100644 --- a/rbi/orb/models/price_evaluate_response.rbi +++ b/rbi/orb/models/price_evaluate_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class PriceEvaluateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::PriceEvaluateResponse, Orb::Internal::AnyHash) + end sig { returns(T::Array[Orb::EvaluatePriceGroup]) } attr_accessor :data diff --git a/rbi/orb/models/price_fetch_params.rbi b/rbi/orb/models/price_fetch_params.rbi index bb3860c3..e92313b6 100644 --- a/rbi/orb/models/price_fetch_params.rbi +++ b/rbi/orb/models/price_fetch_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PriceFetchParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/price_list_params.rbi b/rbi/orb/models/price_list_params.rbi index 88c4547e..be08e3db 100644 --- a/rbi/orb/models/price_list_params.rbi +++ b/rbi/orb/models/price_list_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PriceListParams, Orb::Internal::AnyHash) } # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/price_update_params.rbi b/rbi/orb/models/price_update_params.rbi index c9cc4f77..26739209 100644 --- a/rbi/orb/models/price_update_params.rbi +++ b/rbi/orb/models/price_update_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::PriceUpdateParams, Orb::Internal::AnyHash) } # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared diff --git a/rbi/orb/models/prices/external_price_id_fetch_params.rbi b/rbi/orb/models/prices/external_price_id_fetch_params.rbi index 21e5da12..5f3d751d 100644 --- a/rbi/orb/models/prices/external_price_id_fetch_params.rbi +++ b/rbi/orb/models/prices/external_price_id_fetch_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Prices::ExternalPriceIDFetchParams, + Orb::Internal::AnyHash + ) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/prices/external_price_id_update_params.rbi b/rbi/orb/models/prices/external_price_id_update_params.rbi index 30008589..92a9257b 100644 --- a/rbi/orb/models/prices/external_price_id_update_params.rbi +++ b/rbi/orb/models/prices/external_price_id_update_params.rbi @@ -7,7 +7,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Prices::ExternalPriceIDUpdateParams, + Orb::Internal::AnyHash + ) + end # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared diff --git a/rbi/orb/models/subscription.rbi b/rbi/orb/models/subscription.rbi index 4929760f..ed1eb453 100644 --- a/rbi/orb/models/subscription.rbi +++ b/rbi/orb/models/subscription.rbi @@ -3,7 +3,7 @@ module Orb module Models class Subscription < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::Subscription, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -376,7 +376,10 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Subscription::AdjustmentInterval, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -470,7 +473,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -547,7 +556,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -624,7 +639,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -701,7 +722,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -786,7 +813,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -875,7 +908,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -944,7 +983,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1011,7 +1056,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1080,7 +1131,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1158,7 +1215,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1198,7 +1261,10 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Subscription::MaximumInterval, Orb::Internal::AnyHash) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1261,7 +1327,10 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Subscription::MinimumInterval, Orb::Internal::AnyHash) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1324,7 +1393,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1340,7 +1415,10 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Subscription::PriceInterval, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -1586,7 +1664,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Subscription::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1618,7 +1702,10 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Subscription::RedeemedCoupon, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :coupon_id @@ -1666,7 +1753,10 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Subscription::TrialInfo, Orb::Internal::AnyHash) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date diff --git a/rbi/orb/models/subscription_cancel_params.rbi b/rbi/orb/models/subscription_cancel_params.rbi index dfef8364..35689fc7 100644 --- a/rbi/orb/models/subscription_cancel_params.rbi +++ b/rbi/orb/models/subscription_cancel_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionCancelParams, Orb::Internal::AnyHash) + end # Determines the timing of subscription cancellation sig { returns(Orb::SubscriptionCancelParams::CancelOption::OrSymbol) } diff --git a/rbi/orb/models/subscription_cancel_response.rbi b/rbi/orb/models/subscription_cancel_response.rbi index 12c99e6c..25820eef 100644 --- a/rbi/orb/models/subscription_cancel_response.rbi +++ b/rbi/orb/models/subscription_cancel_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::SubscriptionCancelResponse, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -470,7 +473,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -564,7 +573,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -641,7 +656,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -718,7 +739,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -795,7 +822,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -880,7 +913,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -969,7 +1008,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1038,7 +1083,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1105,7 +1156,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1174,7 +1231,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1254,7 +1317,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1294,7 +1363,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1357,7 +1432,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1420,7 +1501,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1436,7 +1523,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1682,7 +1775,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1714,7 +1813,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1781,7 +1886,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1796,7 +1907,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_change_apply_params.rbi b/rbi/orb/models/subscription_change_apply_params.rbi index 0f035a05..b523cd86 100644 --- a/rbi/orb/models/subscription_change_apply_params.rbi +++ b/rbi/orb/models/subscription_change_apply_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionChangeApplyParams, Orb::Internal::AnyHash) + end # Description to apply to the balance transaction representing this credit. sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/subscription_change_apply_response.rbi b/rbi/orb/models/subscription_change_apply_response.rbi index f7b868d8..9ac16cb6 100644 --- a/rbi/orb/models/subscription_change_apply_response.rbi +++ b/rbi/orb/models/subscription_change_apply_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionChangeApplyResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -131,7 +137,13 @@ module Orb end class Subscription < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -621,7 +633,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -716,7 +734,12 @@ module Orb class UsageDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -794,7 +817,12 @@ module Orb class AmountDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -872,7 +900,12 @@ module Orb class PercentageDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -950,7 +983,12 @@ module Orb class Minimum < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1036,7 +1074,12 @@ module Orb class Maximum < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1125,7 +1168,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1194,7 +1243,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1261,7 +1316,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1330,7 +1391,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1410,7 +1477,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1450,7 +1523,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1513,7 +1592,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1576,7 +1661,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1592,7 +1683,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1838,7 +1935,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1870,7 +1973,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1940,7 +2049,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1955,7 +2070,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_change_cancel_params.rbi b/rbi/orb/models/subscription_change_cancel_params.rbi index 19b4a067..f970a92c 100644 --- a/rbi/orb/models/subscription_change_cancel_params.rbi +++ b/rbi/orb/models/subscription_change_cancel_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionChangeCancelParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/subscription_change_cancel_response.rbi b/rbi/orb/models/subscription_change_cancel_response.rbi index f391825c..df93ce10 100644 --- a/rbi/orb/models/subscription_change_cancel_response.rbi +++ b/rbi/orb/models/subscription_change_cancel_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionChangeCancelResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -131,7 +137,13 @@ module Orb end class Subscription < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -621,7 +633,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -716,7 +734,12 @@ module Orb class UsageDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -794,7 +817,12 @@ module Orb class AmountDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -872,7 +900,12 @@ module Orb class PercentageDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -950,7 +983,12 @@ module Orb class Minimum < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1036,7 +1074,12 @@ module Orb class Maximum < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1125,7 +1168,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1194,7 +1243,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1261,7 +1316,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1330,7 +1391,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1410,7 +1477,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1450,7 +1523,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1513,7 +1592,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1576,7 +1661,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1592,7 +1683,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1838,7 +1935,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1870,7 +1973,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1940,7 +2049,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1955,7 +2070,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_change_retrieve_params.rbi b/rbi/orb/models/subscription_change_retrieve_params.rbi index 01579df5..6281c049 100644 --- a/rbi/orb/models/subscription_change_retrieve_params.rbi +++ b/rbi/orb/models/subscription_change_retrieve_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionChangeRetrieveParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/subscription_change_retrieve_response.rbi b/rbi/orb/models/subscription_change_retrieve_response.rbi index b22dcffa..8f2aabdb 100644 --- a/rbi/orb/models/subscription_change_retrieve_response.rbi +++ b/rbi/orb/models/subscription_change_retrieve_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionChangeRetrieveResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -136,7 +142,13 @@ module Orb end class Subscription < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -626,7 +638,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -721,7 +739,12 @@ module Orb class UsageDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -799,7 +822,12 @@ module Orb class AmountDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -877,7 +905,12 @@ module Orb class PercentageDiscount < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -955,7 +988,12 @@ module Orb class Minimum < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1041,7 +1079,12 @@ module Orb class Maximum < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1130,7 +1173,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1199,7 +1248,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1266,7 +1321,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1335,7 +1396,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1415,7 +1482,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1455,7 +1528,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1518,7 +1597,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1581,7 +1666,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1597,7 +1688,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1843,7 +1940,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1875,7 +1978,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1945,7 +2054,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1960,7 +2075,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_create_params.rbi b/rbi/orb/models/subscription_create_params.rbi index d96d6dc0..07fe40ce 100644 --- a/rbi/orb/models/subscription_create_params.rbi +++ b/rbi/orb/models/subscription_create_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionCreateParams, Orb::Internal::AnyHash) + end # Additional adjustments to be added to the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) @@ -404,7 +407,13 @@ module Orb end class AddAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment, + Orb::Internal::AnyHash + ) + end # The definition of a new adjustment to create and add to the subscription. sig do @@ -501,7 +510,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -555,7 +570,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -609,7 +630,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -663,7 +690,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -725,7 +758,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -791,7 +830,13 @@ module Orb end class AddPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice, + Orb::Internal::AnyHash + ) + end # The definition of a new allocation price to create and add to the subscription. sig do @@ -1029,7 +1074,13 @@ module Orb end class AllocationPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice, + Orb::Internal::AnyHash + ) + end # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } @@ -1148,7 +1199,13 @@ module Orb end class Discount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Discount, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -1283,7 +1340,13 @@ module Orb end class Unit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -1565,7 +1628,12 @@ module Orb class UnitConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, + Orb::Internal::AnyHash + ) + end # Rate per unit of usage sig { returns(String) } @@ -1585,7 +1653,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1666,7 +1739,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1747,7 +1825,13 @@ module Orb end class Package < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Package, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -2029,7 +2113,12 @@ module Orb class PackageConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, + Orb::Internal::AnyHash + ) + end # A currency amount to rate usage by sig { returns(String) } @@ -2065,7 +2154,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2146,7 +2240,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2227,7 +2326,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -2509,7 +2614,12 @@ module Orb class MatrixConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -2566,7 +2676,12 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -2609,7 +2724,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2690,7 +2810,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2771,7 +2896,13 @@ module Orb end class Tiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -3053,7 +3184,12 @@ module Orb class TieredConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, + Orb::Internal::AnyHash + ) + end # Tiers for rating based on total usage quantities into the specified tier sig do @@ -3094,7 +3230,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -3141,7 +3282,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3222,7 +3368,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3303,7 +3454,13 @@ module Orb end class TieredBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -3585,7 +3742,12 @@ module Orb class TieredBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -3628,7 +3790,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -3683,7 +3850,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3764,7 +3936,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3845,7 +4022,13 @@ module Orb end class Bps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -4072,7 +4255,12 @@ module Orb class BpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, + Orb::Internal::AnyHash + ) + end # Basis point take rate per event sig { returns(Float) } @@ -4161,7 +4349,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4242,7 +4435,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4323,7 +4521,13 @@ module Orb end class BulkBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -4550,7 +4754,12 @@ module Orb class BulkBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -4593,7 +4802,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -4695,7 +4909,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4776,7 +4995,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4857,7 +5081,13 @@ module Orb end class Bulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -5084,7 +5314,12 @@ module Orb class BulkConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, + Orb::Internal::AnyHash + ) + end # Bulk tiers for rating based on total usage volume sig do @@ -5125,7 +5360,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } @@ -5216,7 +5456,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5297,7 +5542,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5378,7 +5628,13 @@ module Orb end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -5646,7 +5902,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5727,7 +5988,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5808,7 +6074,13 @@ module Orb end class TieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6076,7 +6348,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6157,7 +6434,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6238,7 +6520,13 @@ module Orb end class TieredWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6506,7 +6794,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6587,7 +6880,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6668,7 +6966,13 @@ module Orb end class UnitWithPercent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6936,7 +7240,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7017,7 +7326,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7098,7 +7412,13 @@ module Orb end class PackageWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7366,7 +7686,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7447,7 +7772,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7528,7 +7858,13 @@ module Orb end class TieredWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7796,7 +8132,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7877,7 +8218,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7958,7 +8304,13 @@ module Orb end class UnitWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8226,7 +8578,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8307,7 +8664,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8388,7 +8750,13 @@ module Orb end class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8656,7 +9024,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8737,7 +9110,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8818,7 +9196,13 @@ module Orb end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -9088,7 +9472,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9169,7 +9558,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9250,7 +9644,13 @@ module Orb end class BulkWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -9518,7 +9918,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9599,7 +10004,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9680,7 +10090,13 @@ module Orb end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -9950,7 +10366,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10031,7 +10452,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10112,7 +10538,13 @@ module Orb end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10382,7 +10814,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10463,7 +10900,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10544,7 +10986,13 @@ module Orb end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10812,7 +11260,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10893,7 +11346,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10974,7 +11432,13 @@ module Orb end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -11242,7 +11706,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11323,7 +11792,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11404,7 +11878,13 @@ module Orb end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -11674,7 +12154,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11755,7 +12240,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11836,7 +12326,13 @@ module Orb end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -12104,7 +12600,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12185,7 +12686,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12266,7 +12772,13 @@ module Orb end class GroupedTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -12534,7 +13046,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12615,7 +13132,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12706,7 +13228,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -12799,7 +13327,13 @@ module Orb end class RemoveAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end # The id of the adjustment to remove on the subscription. sig { returns(String) } @@ -12818,7 +13352,13 @@ module Orb end class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::RemovePrice, + Orb::Internal::AnyHash + ) + end # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } @@ -12855,7 +13395,13 @@ module Orb end class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end # The definition of a new adjustment to create and add to the subscription. sig do @@ -12930,7 +13476,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12984,7 +13536,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13038,7 +13596,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13092,7 +13656,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13154,7 +13724,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13220,7 +13796,13 @@ module Orb end class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice, + Orb::Internal::AnyHash + ) + end # The id of the price on the plan to replace in the subscription. sig { returns(String) } @@ -13446,7 +14028,13 @@ module Orb end class AllocationPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice, + Orb::Internal::AnyHash + ) + end # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } @@ -13565,7 +14153,13 @@ module Orb end class Discount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Discount, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -13700,7 +14294,13 @@ module Orb end class Unit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -13982,7 +14582,12 @@ module Orb class UnitConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, + Orb::Internal::AnyHash + ) + end # Rate per unit of usage sig { returns(String) } @@ -14002,7 +14607,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14083,7 +14693,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14164,7 +14779,13 @@ module Orb end class Package < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -14446,7 +15067,12 @@ module Orb class PackageConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, + Orb::Internal::AnyHash + ) + end # A currency amount to rate usage by sig { returns(String) } @@ -14482,7 +15108,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14563,7 +15194,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14644,7 +15280,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -14926,7 +15568,12 @@ module Orb class MatrixConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -14983,7 +15630,12 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -15026,7 +15678,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15107,7 +15764,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15188,7 +15850,13 @@ module Orb end class Tiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -15470,7 +16138,12 @@ module Orb class TieredConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, + Orb::Internal::AnyHash + ) + end # Tiers for rating based on total usage quantities into the specified tier sig do @@ -15511,7 +16184,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -15558,7 +16236,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15639,7 +16322,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15720,7 +16408,13 @@ module Orb end class TieredBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -16002,7 +16696,12 @@ module Orb class TieredBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -16045,7 +16744,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -16100,7 +16804,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16181,7 +16890,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16262,7 +16976,13 @@ module Orb end class Bps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -16489,7 +17209,12 @@ module Orb class BpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, + Orb::Internal::AnyHash + ) + end # Basis point take rate per event sig { returns(Float) } @@ -16578,7 +17303,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16659,7 +17389,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16740,7 +17475,13 @@ module Orb end class BulkBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -16967,7 +17708,12 @@ module Orb class BulkBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -17010,7 +17756,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -17112,7 +17863,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17193,7 +17949,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17274,7 +18035,13 @@ module Orb end class Bulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -17501,7 +18268,12 @@ module Orb class BulkConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, + Orb::Internal::AnyHash + ) + end # Bulk tiers for rating based on total usage volume sig do @@ -17542,7 +18314,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } @@ -17633,7 +18410,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17714,7 +18496,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17795,7 +18582,13 @@ module Orb end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -18063,7 +18856,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18144,7 +18942,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18225,7 +19028,13 @@ module Orb end class TieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -18493,7 +19302,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18574,7 +19388,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18655,7 +19474,13 @@ module Orb end class TieredWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -18923,7 +19748,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19004,7 +19834,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19085,7 +19920,13 @@ module Orb end class UnitWithPercent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -19353,7 +20194,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19434,7 +20280,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19515,7 +20366,13 @@ module Orb end class PackageWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -19783,7 +20640,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19864,7 +20726,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19945,7 +20812,13 @@ module Orb end class TieredWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -20213,7 +21086,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20294,7 +21172,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20375,7 +21258,13 @@ module Orb end class UnitWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -20643,7 +21532,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20724,7 +21618,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20805,7 +21704,13 @@ module Orb end class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -21073,7 +21978,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21154,7 +22064,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21235,7 +22150,13 @@ module Orb end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -21505,7 +22426,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21586,7 +22512,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21667,7 +22598,13 @@ module Orb end class BulkWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -21935,7 +22872,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22016,7 +22958,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22097,7 +23044,13 @@ module Orb end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -22367,7 +23320,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22448,7 +23406,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22529,7 +23492,13 @@ module Orb end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -22799,7 +23768,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22880,7 +23854,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22961,7 +23940,13 @@ module Orb end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -23229,7 +24214,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23310,7 +24300,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23391,7 +24386,13 @@ module Orb end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -23659,7 +24660,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23740,7 +24746,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23821,7 +24832,13 @@ module Orb end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -24091,7 +25108,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24172,7 +25194,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24253,7 +25280,13 @@ module Orb end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -24521,7 +25554,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24602,7 +25640,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24683,7 +25726,13 @@ module Orb end class GroupedTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -24951,7 +26000,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -25032,7 +26086,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } diff --git a/rbi/orb/models/subscription_create_response.rbi b/rbi/orb/models/subscription_create_response.rbi index 3cb64820..e571b36c 100644 --- a/rbi/orb/models/subscription_create_response.rbi +++ b/rbi/orb/models/subscription_create_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::SubscriptionCreateResponse, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -470,7 +473,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -564,7 +573,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -641,7 +656,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -718,7 +739,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -795,7 +822,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -880,7 +913,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -969,7 +1008,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1038,7 +1083,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1105,7 +1156,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1174,7 +1231,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1254,7 +1317,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1294,7 +1363,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1357,7 +1432,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1420,7 +1501,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1436,7 +1523,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1682,7 +1775,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1714,7 +1813,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1781,7 +1886,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1796,7 +1907,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_fetch_costs_params.rbi b/rbi/orb/models/subscription_fetch_costs_params.rbi index 621cd966..ae48506f 100644 --- a/rbi/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/orb/models/subscription_fetch_costs_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionFetchCostsParams, Orb::Internal::AnyHash) + end # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } diff --git a/rbi/orb/models/subscription_fetch_costs_response.rbi b/rbi/orb/models/subscription_fetch_costs_response.rbi index 330d930d..3d9c8dc1 100644 --- a/rbi/orb/models/subscription_fetch_costs_response.rbi +++ b/rbi/orb/models/subscription_fetch_costs_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionFetchCostsResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionFetchCostsResponse, + Orb::Internal::AnyHash + ) + end sig do returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) @@ -28,7 +34,13 @@ module Orb end class Data < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionFetchCostsResponse::Data, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -94,7 +106,13 @@ module Orb end class PerPriceCost < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost, + Orb::Internal::AnyHash + ) + end # The price object sig do diff --git a/rbi/orb/models/subscription_fetch_params.rbi b/rbi/orb/models/subscription_fetch_params.rbi index 6ce26845..292c03e8 100644 --- a/rbi/orb/models/subscription_fetch_params.rbi +++ b/rbi/orb/models/subscription_fetch_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionFetchParams, Orb::Internal::AnyHash) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/subscription_fetch_schedule_params.rbi b/rbi/orb/models/subscription_fetch_schedule_params.rbi index ae6f4948..79b8a6e2 100644 --- a/rbi/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/orb/models/subscription_fetch_schedule_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionFetchScheduleParams, Orb::Internal::AnyHash) + end # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. diff --git a/rbi/orb/models/subscription_fetch_schedule_response.rbi b/rbi/orb/models/subscription_fetch_schedule_response.rbi index 7265aca8..afe3e699 100644 --- a/rbi/orb/models/subscription_fetch_schedule_response.rbi +++ b/rbi/orb/models/subscription_fetch_schedule_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionFetchScheduleResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionFetchScheduleResponse, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :created_at @@ -49,7 +55,13 @@ module Orb end class Plan < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionFetchScheduleResponse::Plan, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(String)) } attr_accessor :id diff --git a/rbi/orb/models/subscription_fetch_usage_params.rbi b/rbi/orb/models/subscription_fetch_usage_params.rbi index 85b95926..5ed3f150 100644 --- a/rbi/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/orb/models/subscription_fetch_usage_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionFetchUsageParams, Orb::Internal::AnyHash) + end # When specified in conjunction with `group_by`, this parameter filters usage to a # single billable metric. Note that both `group_by` and `billable_metric_id` must diff --git a/rbi/orb/models/subscription_list_params.rbi b/rbi/orb/models/subscription_list_params.rbi index de7237b2..00f88590 100644 --- a/rbi/orb/models/subscription_list_params.rbi +++ b/rbi/orb/models/subscription_list_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionListParams, Orb::Internal::AnyHash) + end sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt diff --git a/rbi/orb/models/subscription_price_intervals_params.rbi b/rbi/orb/models/subscription_price_intervals_params.rbi index e9248c5f..5035413a 100644 --- a/rbi/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/orb/models/subscription_price_intervals_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionPriceIntervalsParams, Orb::Internal::AnyHash) + end # A list of price intervals to add to the subscription. sig do @@ -133,7 +136,13 @@ module Orb end class Add < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add, + Orb::Internal::AnyHash + ) + end # The start date of the price interval. This is the date that the price will start # billing on the subscription. @@ -469,7 +478,13 @@ module Orb end class AllocationPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice, + Orb::Internal::AnyHash + ) + end # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } @@ -600,7 +615,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(Float) } @@ -631,7 +652,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :discount_type @@ -664,7 +691,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :discount_type @@ -727,7 +760,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } @@ -794,7 +833,13 @@ module Orb end class Unit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -1064,7 +1109,12 @@ module Orb class UnitConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, + Orb::Internal::AnyHash + ) + end # Rate per unit of usage sig { returns(String) } @@ -1084,7 +1134,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1165,7 +1220,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1246,7 +1306,13 @@ module Orb end class Package < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -1516,7 +1582,12 @@ module Orb class PackageConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, + Orb::Internal::AnyHash + ) + end # A currency amount to rate usage by sig { returns(String) } @@ -1552,7 +1623,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1633,7 +1709,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1714,7 +1795,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -1984,7 +2071,12 @@ module Orb class MatrixConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -2041,7 +2133,12 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -2084,7 +2181,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2165,7 +2267,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2246,7 +2353,13 @@ module Orb end class MatrixWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -2516,7 +2629,12 @@ module Orb class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + Orb::Internal::AnyHash + ) + end # Allocation to be used to calculate the price sig { returns(Float) } @@ -2581,7 +2699,12 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -2624,7 +2747,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2705,7 +2833,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2786,7 +2919,13 @@ module Orb end class Tiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -3056,7 +3195,12 @@ module Orb class TieredConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, + Orb::Internal::AnyHash + ) + end # Tiers for rating based on total usage quantities into the specified tier sig do @@ -3097,7 +3241,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -3144,7 +3293,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3225,7 +3379,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3306,7 +3465,13 @@ module Orb end class TieredBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -3576,7 +3741,12 @@ module Orb class TieredBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -3619,7 +3789,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -3674,7 +3849,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3755,7 +3935,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3836,7 +4021,13 @@ module Orb end class Bps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -4051,7 +4242,12 @@ module Orb class BpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, + Orb::Internal::AnyHash + ) + end # Basis point take rate per event sig { returns(Float) } @@ -4140,7 +4336,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4221,7 +4422,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4302,7 +4508,13 @@ module Orb end class BulkBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -4517,7 +4729,12 @@ module Orb class BulkBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -4560,7 +4777,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -4662,7 +4884,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4743,7 +4970,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4824,7 +5056,13 @@ module Orb end class Bulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -5039,7 +5277,12 @@ module Orb class BulkConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, + Orb::Internal::AnyHash + ) + end # Bulk tiers for rating based on total usage volume sig do @@ -5080,7 +5323,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } @@ -5171,7 +5419,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5252,7 +5505,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5333,7 +5591,13 @@ module Orb end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -5589,7 +5853,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5670,7 +5939,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5751,7 +6025,13 @@ module Orb end class TieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6007,7 +6287,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6088,7 +6373,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6169,7 +6459,13 @@ module Orb end class GroupedTiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6425,7 +6721,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6506,7 +6807,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6587,7 +6893,13 @@ module Orb end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6843,7 +7155,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6924,7 +7241,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7005,7 +7327,13 @@ module Orb end class TieredWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7261,7 +7589,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7342,7 +7675,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7423,7 +7761,13 @@ module Orb end class PackageWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7679,7 +8023,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7760,7 +8109,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7841,7 +8195,13 @@ module Orb end class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8098,7 +8458,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8179,7 +8544,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8260,7 +8630,13 @@ module Orb end class UnitWithPercent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8516,7 +8892,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8597,7 +8978,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8678,7 +9064,13 @@ module Orb end class TieredWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8934,7 +9326,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9015,7 +9412,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9096,7 +9498,13 @@ module Orb end class UnitWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -9352,7 +9760,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9433,7 +9846,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9514,7 +9932,13 @@ module Orb end class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -9770,7 +10194,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9851,7 +10280,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9932,7 +10366,13 @@ module Orb end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10190,7 +10630,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10271,7 +10716,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10352,7 +10802,13 @@ module Orb end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10610,7 +11066,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10691,7 +11152,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10772,7 +11238,13 @@ module Orb end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -11028,7 +11500,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11109,7 +11586,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11190,7 +11672,13 @@ module Orb end class BulkWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -11446,7 +11934,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11527,7 +12020,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11608,7 +12106,13 @@ module Orb end class GroupedTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -11864,7 +12368,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11945,7 +12454,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12026,7 +12540,13 @@ module Orb end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -12284,7 +12804,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12365,7 +12890,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12446,7 +12976,13 @@ module Orb end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -12704,7 +13240,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12785,7 +13326,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12866,7 +13412,13 @@ module Orb end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -13122,7 +13674,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -13203,7 +13760,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -13296,7 +13858,13 @@ module Orb end class AddAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment, + Orb::Internal::AnyHash + ) + end # The definition of a new adjustment to create and add to the subscription. sig do @@ -13397,7 +13965,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13451,7 +14025,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13505,7 +14085,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13559,7 +14145,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13621,7 +14213,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13733,7 +14331,13 @@ module Orb end class Edit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Edit, + Orb::Internal::AnyHash + ) + end # The id of the price interval to edit. sig { returns(String) } @@ -13893,7 +14497,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } @@ -13944,7 +14554,13 @@ module Orb end class EditAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::EditAdjustment, + Orb::Internal::AnyHash + ) + end # The id of the adjustment interval to edit. sig { returns(String) } diff --git a/rbi/orb/models/subscription_price_intervals_response.rbi b/rbi/orb/models/subscription_price_intervals_response.rbi index ef025683..0457df6b 100644 --- a/rbi/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/orb/models/subscription_price_intervals_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -491,7 +497,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -585,7 +597,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -662,7 +680,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -739,7 +763,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -816,7 +846,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -901,7 +937,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -990,7 +1032,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1059,7 +1107,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1126,7 +1180,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1195,7 +1255,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1275,7 +1341,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1315,7 +1387,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1378,7 +1456,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1441,7 +1525,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1457,7 +1547,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1703,7 +1799,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1735,7 +1837,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1805,7 +1913,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1820,7 +1934,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/orb/models/subscription_schedule_plan_change_params.rbi index ceea9925..5790ed1c 100644 --- a/rbi/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/orb/models/subscription_schedule_plan_change_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -472,7 +478,13 @@ module Orb end class AddAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment, + Orb::Internal::AnyHash + ) + end # The definition of a new adjustment to create and add to the subscription. sig do @@ -569,7 +581,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -623,7 +641,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -677,7 +701,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -731,7 +761,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -793,7 +829,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -859,7 +901,13 @@ module Orb end class AddPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice, + Orb::Internal::AnyHash + ) + end # The definition of a new allocation price to create and add to the subscription. sig do @@ -1103,7 +1151,13 @@ module Orb end class AllocationPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, + Orb::Internal::AnyHash + ) + end # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } @@ -1222,7 +1276,13 @@ module Orb end class Discount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -1357,7 +1417,13 @@ module Orb end class Unit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -1639,7 +1705,12 @@ module Orb class UnitConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, + Orb::Internal::AnyHash + ) + end # Rate per unit of usage sig { returns(String) } @@ -1659,7 +1730,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1740,7 +1816,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -1821,7 +1902,13 @@ module Orb end class Package < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -2103,7 +2190,12 @@ module Orb class PackageConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, + Orb::Internal::AnyHash + ) + end # A currency amount to rate usage by sig { returns(String) } @@ -2139,7 +2231,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2220,7 +2317,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2301,7 +2403,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -2583,7 +2691,12 @@ module Orb class MatrixConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -2640,7 +2753,12 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -2683,7 +2801,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2764,7 +2887,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -2845,7 +2973,13 @@ module Orb end class Tiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -3127,7 +3261,12 @@ module Orb class TieredConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, + Orb::Internal::AnyHash + ) + end # Tiers for rating based on total usage quantities into the specified tier sig do @@ -3168,7 +3307,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -3215,7 +3359,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3296,7 +3445,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3377,7 +3531,13 @@ module Orb end class TieredBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -3659,7 +3819,12 @@ module Orb class TieredBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -3702,7 +3867,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -3757,7 +3927,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3838,7 +4013,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -3919,7 +4099,13 @@ module Orb end class Bps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -4146,7 +4332,12 @@ module Orb class BpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, + Orb::Internal::AnyHash + ) + end # Basis point take rate per event sig { returns(Float) } @@ -4235,7 +4426,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4316,7 +4512,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4397,7 +4598,13 @@ module Orb end class BulkBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -4624,7 +4831,12 @@ module Orb class BulkBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -4667,7 +4879,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -4769,7 +4986,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4850,7 +5072,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -4931,7 +5158,13 @@ module Orb end class Bulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -5158,7 +5391,12 @@ module Orb class BulkConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, + Orb::Internal::AnyHash + ) + end # Bulk tiers for rating based on total usage volume sig do @@ -5199,7 +5437,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } @@ -5290,7 +5533,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5371,7 +5619,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5452,7 +5705,13 @@ module Orb end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -5720,7 +5979,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5801,7 +6065,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -5882,7 +6151,13 @@ module Orb end class TieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6150,7 +6425,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6231,7 +6511,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6312,7 +6597,13 @@ module Orb end class TieredWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -6580,7 +6871,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6661,7 +6957,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -6742,7 +7043,13 @@ module Orb end class UnitWithPercent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7010,7 +7317,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7091,7 +7403,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7172,7 +7489,13 @@ module Orb end class PackageWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7440,7 +7763,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7521,7 +7849,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7602,7 +7935,13 @@ module Orb end class TieredWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -7870,7 +8209,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -7951,7 +8295,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8032,7 +8381,13 @@ module Orb end class UnitWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8300,7 +8655,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8381,7 +8741,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8462,7 +8827,13 @@ module Orb end class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -8730,7 +9101,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8811,7 +9187,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -8892,7 +9273,13 @@ module Orb end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -9162,7 +9549,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9243,7 +9635,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9324,7 +9721,13 @@ module Orb end class BulkWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -9592,7 +9995,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9673,7 +10081,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -9754,7 +10167,13 @@ module Orb end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10024,7 +10443,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10105,7 +10529,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10186,7 +10615,13 @@ module Orb end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10456,7 +10891,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10537,7 +10977,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10618,7 +11063,13 @@ module Orb end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -10886,7 +11337,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -10967,7 +11423,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11048,7 +11509,13 @@ module Orb end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -11316,7 +11783,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11397,7 +11869,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11478,7 +11955,13 @@ module Orb end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -11748,7 +12231,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11829,7 +12317,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -11910,7 +12403,13 @@ module Orb end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -12178,7 +12677,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12259,7 +12763,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12340,7 +12849,13 @@ module Orb end class GroupedTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -12608,7 +13123,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12689,7 +13209,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -12824,7 +13349,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -12881,7 +13412,13 @@ module Orb end class RemoveAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end # The id of the adjustment to remove on the subscription. sig { returns(String) } @@ -12900,7 +13437,13 @@ module Orb end class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::RemovePrice, + Orb::Internal::AnyHash + ) + end # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } @@ -12937,7 +13480,13 @@ module Orb end class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end # The definition of a new adjustment to create and add to the subscription. sig do @@ -13012,7 +13561,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13066,7 +13621,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13120,7 +13681,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13174,7 +13741,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13236,7 +13809,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(Symbol) } attr_accessor :adjustment_type @@ -13302,7 +13881,13 @@ module Orb end class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice, + Orb::Internal::AnyHash + ) + end # The id of the price on the plan to replace in the subscription. sig { returns(String) } @@ -13530,7 +14115,13 @@ module Orb end class AllocationPrice < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, + Orb::Internal::AnyHash + ) + end # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } @@ -13649,7 +14240,13 @@ module Orb end class Discount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -13784,7 +14381,13 @@ module Orb end class Unit < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -14066,7 +14669,12 @@ module Orb class UnitConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, + Orb::Internal::AnyHash + ) + end # Rate per unit of usage sig { returns(String) } @@ -14086,7 +14694,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14167,7 +14780,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14248,7 +14866,13 @@ module Orb end class Package < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -14530,7 +15154,12 @@ module Orb class PackageConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, + Orb::Internal::AnyHash + ) + end # A currency amount to rate usage by sig { returns(String) } @@ -14566,7 +15195,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14647,7 +15281,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -14728,7 +15367,13 @@ module Orb end class Matrix < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -15010,7 +15655,12 @@ module Orb class MatrixConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, + Orb::Internal::AnyHash + ) + end # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } @@ -15067,7 +15717,12 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an @@ -15110,7 +15765,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15191,7 +15851,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15272,7 +15937,13 @@ module Orb end class Tiered < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -15554,7 +16225,12 @@ module Orb class TieredConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, + Orb::Internal::AnyHash + ) + end # Tiers for rating based on total usage quantities into the specified tier sig do @@ -15595,7 +16271,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier, + Orb::Internal::AnyHash + ) + end # Exclusive tier starting value sig { returns(Float) } @@ -15642,7 +16323,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15723,7 +16409,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -15804,7 +16495,13 @@ module Orb end class TieredBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -16086,7 +16783,12 @@ module Orb class TieredBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers @@ -16129,7 +16831,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Per-event basis point rate sig { returns(Float) } @@ -16184,7 +16891,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16265,7 +16977,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16346,7 +17063,13 @@ module Orb end class Bps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -16573,7 +17296,12 @@ module Orb class BpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, + Orb::Internal::AnyHash + ) + end # Basis point take rate per event sig { returns(Float) } @@ -16662,7 +17390,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16743,7 +17476,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -16824,7 +17562,13 @@ module Orb end class BulkBps < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -17051,7 +17795,12 @@ module Orb class BulkBpsConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + Orb::Internal::AnyHash + ) + end # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume @@ -17094,7 +17843,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier, + Orb::Internal::AnyHash + ) + end # Basis points to rate on sig { returns(Float) } @@ -17196,7 +17950,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17277,7 +18036,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17358,7 +18122,13 @@ module Orb end class Bulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -17585,7 +18355,12 @@ module Orb class BulkConfig < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, + Orb::Internal::AnyHash + ) + end # Bulk tiers for rating based on total usage volume sig do @@ -17626,7 +18401,12 @@ module Orb class Tier < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier, + Orb::Internal::AnyHash + ) + end # Amount per unit sig { returns(String) } @@ -17717,7 +18497,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17798,7 +18583,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -17879,7 +18669,13 @@ module Orb end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -18147,7 +18943,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18228,7 +19029,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18309,7 +19115,13 @@ module Orb end class TieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -18577,7 +19389,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18658,7 +19475,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -18739,7 +19561,13 @@ module Orb end class TieredWithMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -19007,7 +19835,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19088,7 +19921,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19169,7 +20007,13 @@ module Orb end class UnitWithPercent < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -19437,7 +20281,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19518,7 +20367,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19599,7 +20453,13 @@ module Orb end class PackageWithAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -19867,7 +20727,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -19948,7 +20813,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20029,7 +20899,13 @@ module Orb end class TieredWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -20297,7 +21173,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20378,7 +21259,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20459,7 +21345,13 @@ module Orb end class UnitWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -20727,7 +21619,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20808,7 +21705,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -20889,7 +21791,13 @@ module Orb end class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -21157,7 +22065,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21238,7 +22151,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21319,7 +22237,13 @@ module Orb end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -21589,7 +22513,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21670,7 +22599,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -21751,7 +22685,13 @@ module Orb end class BulkWithProration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, + Orb::Internal::AnyHash + ) + end sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -22019,7 +22959,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22100,7 +23045,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22181,7 +23131,13 @@ module Orb end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -22451,7 +23407,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22532,7 +23493,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22613,7 +23579,13 @@ module Orb end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -22883,7 +23855,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -22964,7 +23941,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23045,7 +24027,13 @@ module Orb end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -23313,7 +24301,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23394,7 +24387,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23475,7 +24473,13 @@ module Orb end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -23743,7 +24747,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23824,7 +24833,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -23905,7 +24919,13 @@ module Orb end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -24175,7 +25195,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24256,7 +25281,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24337,7 +25367,13 @@ module Orb end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -24605,7 +25641,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24686,7 +25727,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -24767,7 +25813,13 @@ module Orb end class GroupedTieredPackage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage, + Orb::Internal::AnyHash + ) + end # The cadence to bill for this price on. sig do @@ -25035,7 +26087,12 @@ module Orb class BillingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } @@ -25116,7 +26173,12 @@ module Orb class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, + Orb::Internal::AnyHash + ) + end # The duration of the billing period. sig { returns(Integer) } diff --git a/rbi/orb/models/subscription_schedule_plan_change_response.rbi b/rbi/orb/models/subscription_schedule_plan_change_response.rbi index 611892b1..2cea2afb 100644 --- a/rbi/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/orb/models/subscription_schedule_plan_change_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -491,7 +497,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -585,7 +597,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -662,7 +680,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -739,7 +763,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -816,7 +846,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -901,7 +937,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -990,7 +1032,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1059,7 +1107,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1126,7 +1180,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1195,7 +1255,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1275,7 +1341,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1315,7 +1387,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1378,7 +1456,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1441,7 +1525,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1457,7 +1547,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1703,7 +1799,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1735,7 +1837,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1805,7 +1913,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1820,7 +1934,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_trigger_phase_params.rbi b/rbi/orb/models/subscription_trigger_phase_params.rbi index 3b916c9b..1ff4bc03 100644 --- a/rbi/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/orb/models/subscription_trigger_phase_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionTriggerPhaseParams, Orb::Internal::AnyHash) + end # If false, this request will fail if it would void an issued invoice or create a # credit note. Consider using this as a safety mechanism if you do not expect diff --git a/rbi/orb/models/subscription_trigger_phase_response.rbi b/rbi/orb/models/subscription_trigger_phase_response.rbi index 51e54db0..0cc01442 100644 --- a/rbi/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/orb/models/subscription_trigger_phase_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -487,7 +493,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -581,7 +593,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -658,7 +676,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -735,7 +759,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -812,7 +842,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -897,7 +933,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -986,7 +1028,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1055,7 +1103,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1122,7 +1176,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1191,7 +1251,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1271,7 +1337,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1311,7 +1383,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1374,7 +1452,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1437,7 +1521,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1453,7 +1543,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1699,7 +1795,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1731,7 +1833,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1798,7 +1906,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1813,7 +1927,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/orb/models/subscription_unschedule_cancellation_params.rbi index f2b03232..6df8f37c 100644 --- a/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/orb/models/subscription_unschedule_cancellation_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUnscheduleCancellationParams, + Orb::Internal::AnyHash + ) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/orb/models/subscription_unschedule_cancellation_response.rbi index 71838ef8..c2e858b3 100644 --- a/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/orb/models/subscription_unschedule_cancellation_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -493,7 +499,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -587,7 +599,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -664,7 +682,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -741,7 +765,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -818,7 +848,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -903,7 +939,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -992,7 +1034,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1061,7 +1109,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1128,7 +1182,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1197,7 +1257,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1277,7 +1343,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1317,7 +1389,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1380,7 +1458,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1443,7 +1527,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1459,7 +1549,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1705,7 +1801,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1737,7 +1839,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1807,7 +1915,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1822,7 +1936,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi index 252b8e3b..e2c8f03b 100644 --- a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +++ b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, + Orb::Internal::AnyHash + ) + end # Price for which the updates should be cleared. Must be a fixed fee. sig { returns(String) } diff --git a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi index 430e8ba3..9f7bfcc3 100644 --- a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +++ b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -493,7 +499,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -587,7 +599,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -664,7 +682,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -741,7 +765,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -818,7 +848,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -903,7 +939,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -992,7 +1034,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1061,7 +1109,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1128,7 +1182,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1197,7 +1257,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1277,7 +1343,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1317,7 +1389,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1380,7 +1458,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1443,7 +1527,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1459,7 +1549,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1705,7 +1801,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1737,7 +1839,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1807,7 +1915,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1822,7 +1936,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi b/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi index 2e928553..d230c6dd 100644 --- a/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +++ b/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUnschedulePendingPlanChangesParams, + Orb::Internal::AnyHash + ) + end sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi b/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi index f351cf0c..4c99ec34 100644 --- a/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +++ b/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -493,7 +499,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -587,7 +599,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -664,7 +682,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -741,7 +765,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -818,7 +848,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -903,7 +939,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -992,7 +1034,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1061,7 +1109,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1128,7 +1182,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1197,7 +1257,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1277,7 +1343,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1317,7 +1389,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1380,7 +1458,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1443,7 +1527,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1459,7 +1549,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1705,7 +1801,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1737,7 +1839,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1807,7 +1915,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1822,7 +1936,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi b/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi index 97360390..3fa20950 100644 --- a/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +++ b/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi @@ -6,7 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUpdateFixedFeeQuantityParams, + Orb::Internal::AnyHash + ) + end # Price for which the quantity should be updated. Must be a fixed fee. sig { returns(String) } diff --git a/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi b/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi index 148a4865..0af95bc2 100644 --- a/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +++ b/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -493,7 +499,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -587,7 +599,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -664,7 +682,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -741,7 +765,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -818,7 +848,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -903,7 +939,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -992,7 +1034,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1061,7 +1109,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1128,7 +1182,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1197,7 +1257,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1277,7 +1343,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1317,7 +1389,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1380,7 +1458,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1443,7 +1527,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1459,7 +1549,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1705,7 +1801,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1737,7 +1839,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1807,7 +1915,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1822,7 +1936,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_update_params.rbi b/rbi/orb/models/subscription_update_params.rbi index 0e2e0d40..7d0c8848 100644 --- a/rbi/orb/models/subscription_update_params.rbi +++ b/rbi/orb/models/subscription_update_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionUpdateParams, Orb::Internal::AnyHash) + end # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to diff --git a/rbi/orb/models/subscription_update_trial_params.rbi b/rbi/orb/models/subscription_update_trial_params.rbi index abfd2dd8..910197e6 100644 --- a/rbi/orb/models/subscription_update_trial_params.rbi +++ b/rbi/orb/models/subscription_update_trial_params.rbi @@ -6,7 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::SubscriptionUpdateTrialParams, Orb::Internal::AnyHash) + end # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. diff --git a/rbi/orb/models/subscription_update_trial_response.rbi b/rbi/orb/models/subscription_update_trial_response.rbi index 598dcfe5..c1c6e1ed 100644 --- a/rbi/orb/models/subscription_update_trial_response.rbi +++ b/rbi/orb/models/subscription_update_trial_response.rbi @@ -3,7 +3,13 @@ module Orb module Models class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -486,7 +492,13 @@ module Orb end class AdjustmentInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -580,7 +592,13 @@ module Orb end class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -657,7 +675,13 @@ module Orb end class AmountDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -734,7 +758,13 @@ module Orb end class PercentageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -811,7 +841,13 @@ module Orb end class Minimum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -896,7 +932,13 @@ module Orb end class Maximum < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -985,7 +1027,13 @@ module Orb end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + Orb::Internal::AnyHash + ) + end # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month @@ -1054,7 +1102,13 @@ module Orb end class Amount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, + Orb::Internal::AnyHash + ) + end # Only available if discount_type is `amount`. sig { returns(String) } @@ -1121,7 +1175,13 @@ module Orb end class Percentage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1190,7 +1250,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage, + Orb::Internal::AnyHash + ) + end # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } @@ -1270,7 +1336,13 @@ module Orb end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1310,7 +1382,13 @@ module Orb end class MaximumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } @@ -1373,7 +1451,13 @@ module Orb end class MinimumInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval, + Orb::Internal::AnyHash + ) + end # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } @@ -1436,7 +1520,13 @@ module Orb end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1452,7 +1542,13 @@ module Orb end class PriceInterval < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -1698,7 +1794,13 @@ module Orb end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Internal::AnyHash + ) + end sig { returns(Time) } attr_accessor :effective_date @@ -1730,7 +1832,13 @@ module Orb end class RedeemedCoupon < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :coupon_id @@ -1797,7 +1905,13 @@ module Orb end class TrialInfo < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, + Orb::Internal::AnyHash + ) + end sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1812,7 +1926,13 @@ module Orb end class ChangedResources < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources, + Orb::Internal::AnyHash + ) + end # The credit notes that were created as part of this operation. sig { returns(T::Array[Orb::CreditNote]) } diff --git a/rbi/orb/models/subscription_usage.rbi b/rbi/orb/models/subscription_usage.rbi index e5b6d897..7232a7ca 100644 --- a/rbi/orb/models/subscription_usage.rbi +++ b/rbi/orb/models/subscription_usage.rbi @@ -14,7 +14,13 @@ module Orb end class UngroupedSubscriptionUsage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -48,7 +54,13 @@ module Orb end class Data < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -114,7 +126,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -132,7 +150,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage, + Orb::Internal::AnyHash + ) + end sig { returns(Float) } attr_accessor :quantity @@ -199,7 +223,13 @@ module Orb end class GroupedSubscriptionUsage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::GroupedSubscriptionUsage, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -245,7 +275,13 @@ module Orb end class Data < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data, + Orb::Internal::AnyHash + ) + end sig do returns( @@ -330,7 +366,13 @@ module Orb end class BillableMetric < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :id @@ -348,7 +390,13 @@ module Orb end class MetricGroup < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, + Orb::Internal::AnyHash + ) + end sig { returns(String) } attr_accessor :property_key @@ -372,7 +420,13 @@ module Orb end class Usage < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage, + Orb::Internal::AnyHash + ) + end sig { returns(Float) } attr_accessor :quantity diff --git a/rbi/orb/models/subscriptions.rbi b/rbi/orb/models/subscriptions.rbi index 0d387956..c3e29536 100644 --- a/rbi/orb/models/subscriptions.rbi +++ b/rbi/orb/models/subscriptions.rbi @@ -3,7 +3,8 @@ module Orb module Models class SubscriptionsAPI < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::SubscriptionsAPI, Orb::Internal::AnyHash) } sig { returns(T::Array[Orb::Subscription]) } attr_accessor :data diff --git a/rbi/orb/models/top_level_ping_params.rbi b/rbi/orb/models/top_level_ping_params.rbi index f8744946..bb42fd5f 100644 --- a/rbi/orb/models/top_level_ping_params.rbi +++ b/rbi/orb/models/top_level_ping_params.rbi @@ -6,7 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::TopLevelPingParams, Orb::Internal::AnyHash) } sig do params(request_options: Orb::RequestOptions::OrHash).returns( diff --git a/rbi/orb/models/top_level_ping_response.rbi b/rbi/orb/models/top_level_ping_response.rbi index 54fb70b3..871db85d 100644 --- a/rbi/orb/models/top_level_ping_response.rbi +++ b/rbi/orb/models/top_level_ping_response.rbi @@ -3,7 +3,10 @@ module Orb module Models class TopLevelPingResponse < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Orb::Models::TopLevelPingResponse, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :response diff --git a/rbi/orb/models/trial_discount.rbi b/rbi/orb/models/trial_discount.rbi index a7906256..9c72274a 100644 --- a/rbi/orb/models/trial_discount.rbi +++ b/rbi/orb/models/trial_discount.rbi @@ -3,7 +3,8 @@ module Orb module Models class TrialDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::TrialDiscount, Orb::Internal::AnyHash) } # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. diff --git a/rbi/orb/models/usage_discount.rbi b/rbi/orb/models/usage_discount.rbi index 26a8cac0..5d5b049c 100644 --- a/rbi/orb/models/usage_discount.rbi +++ b/rbi/orb/models/usage_discount.rbi @@ -3,7 +3,8 @@ module Orb module Models class UsageDiscount < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Orb::UsageDiscount, Orb::Internal::AnyHash) } # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. diff --git a/rbi/orb/request_options.rbi b/rbi/orb/request_options.rbi index ce4922c6..07387312 100644 --- a/rbi/orb/request_options.rbi +++ b/rbi/orb/request_options.rbi @@ -7,7 +7,7 @@ module Orb # When making a request, you can pass an actual {RequestOptions} instance, or # simply pass a Hash with symbol keys matching the attributes on this class. class RequestOptions < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + OrHash = T.type_alias { T.any(Orb::RequestOptions, Orb::Internal::AnyHash) } # @api private sig { params(opts: Orb::RequestOptions::OrHash).void } diff --git a/sig/orb/internal.rbs b/sig/orb/internal.rbs index 4ebb487b..b29c69f7 100644 --- a/sig/orb/internal.rbs +++ b/sig/orb/internal.rbs @@ -1,5 +1,7 @@ module Orb module Internal + extend Orb::Internal::Util::SorbetRuntimeSupport + OMIT: Object end end diff --git a/sig/orb/internal/transport/base_client.rbs b/sig/orb/internal/transport/base_client.rbs index 1de9a2f3..168e7340 100644 --- a/sig/orb/internal/transport/base_client.rbs +++ b/sig/orb/internal/transport/base_client.rbs @@ -2,6 +2,8 @@ module Orb module Internal module Transport class BaseClient + extend Orb::Internal::Util::SorbetRuntimeSupport + type request_components = { method: Symbol, @@ -20,7 +22,6 @@ module Orb model: Orb::Internal::Type::Converter::input?, options: Orb::request_opts? } - type request_input = { method: Symbol, @@ -55,6 +56,20 @@ module Orb stream: Enumerable[String]? ) -> void + attr_reader base_url: URI::Generic + + attr_reader timeout: Float + + attr_reader max_retries: Integer + + attr_reader initial_retry_delay: Float + + attr_reader max_retry_delay: Float + + attr_reader headers: ::Hash[String, String] + + attr_reader idempotency_header: String? + # @api private attr_reader requester: Orb::Internal::Transport::PooledNetRequester diff --git a/sig/orb/internal/transport/pooled_net_requester.rbs b/sig/orb/internal/transport/pooled_net_requester.rbs index 67ec8296..b0d97f8a 100644 --- a/sig/orb/internal/transport/pooled_net_requester.rbs +++ b/sig/orb/internal/transport/pooled_net_requester.rbs @@ -2,6 +2,8 @@ module Orb module Internal module Transport class PooledNetRequester + extend Orb::Internal::Util::SorbetRuntimeSupport + type request = { method: Symbol, diff --git a/sig/orb/internal/type/base_model.rbs b/sig/orb/internal/type/base_model.rbs index a1e4a8ad..2b12a20e 100644 --- a/sig/orb/internal/type/base_model.rbs +++ b/sig/orb/internal/type/base_model.rbs @@ -3,10 +3,13 @@ module Orb module Type class BaseModel extend Orb::Internal::Type::Converter + extend Orb::Internal::Util::SorbetRuntimeSupport type known_field = { mode: (:coerce | :dump)?, required: bool, nilable: bool } + def self.inherited: (self child) -> void + def self.known_fields: -> ::Hash[Symbol, (Orb::Internal::Type::BaseModel::known_field & { type_fn: (^-> Orb::Internal::Type::Converter::input) })] @@ -65,23 +68,26 @@ module Orb state: Orb::Internal::Type::Converter::dump_state ) -> (::Hash[top, top] | top) + def self.recursively_to_h: ( + Orb::Internal::Type::BaseModel model, + convert: bool + ) -> ::Hash[Symbol, top] + def []: (Symbol key) -> top? def to_h: -> ::Hash[Symbol, top] alias to_hash to_h - def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top] + def deep_to_h: -> ::Hash[Symbol, top] - def self.walk: ( - Orb::Internal::Type::BaseModel model - ) -> ::Hash[Symbol, top] + def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top] def to_json: (*top a) -> String def to_yaml: (*top a) -> String - def initialize: (?::Hash[Symbol, top] | self data) -> void + def initialize: (?::Hash[Symbol, top] | instance data) -> void def self.inspect: (?depth: Integer) -> String diff --git a/sig/orb/internal/type/base_page.rbs b/sig/orb/internal/type/base_page.rbs index aab4f3d7..4bdfb5fa 100644 --- a/sig/orb/internal/type/base_page.rbs +++ b/sig/orb/internal/type/base_page.rbs @@ -4,7 +4,7 @@ module Orb module BasePage[Elem] def next_page?: -> bool - def next_page: -> self + def next_page: -> instance def auto_paging_each: { (Elem arg0) -> void } -> void diff --git a/sig/orb/internal/type/converter.rbs b/sig/orb/internal/type/converter.rbs index 018efc59..452f419c 100644 --- a/sig/orb/internal/type/converter.rbs +++ b/sig/orb/internal/type/converter.rbs @@ -2,6 +2,8 @@ module Orb module Internal module Type module Converter + extend Orb::Internal::Util::SorbetRuntimeSupport + type input = Orb::Internal::Type::Converter | Class type coerce_state = diff --git a/sig/orb/internal/type/enum.rbs b/sig/orb/internal/type/enum.rbs index 9917e708..e1d7fcb1 100644 --- a/sig/orb/internal/type/enum.rbs +++ b/sig/orb/internal/type/enum.rbs @@ -3,6 +3,7 @@ module Orb module Type module Enum include Orb::Internal::Type::Converter + include Orb::Internal::Util::SorbetRuntimeSupport def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] diff --git a/sig/orb/internal/type/union.rbs b/sig/orb/internal/type/union.rbs index 040cfc8e..81cf0a5c 100644 --- a/sig/orb/internal/type/union.rbs +++ b/sig/orb/internal/type/union.rbs @@ -3,6 +3,7 @@ module Orb module Type module Union include Orb::Internal::Type::Converter + include Orb::Internal::Util::SorbetRuntimeSupport private def self.known_variants: -> ::Array[[Symbol?, (^-> Orb::Internal::Type::Converter::input)]] diff --git a/sig/orb/internal/util.rbs b/sig/orb/internal/util.rbs index 5d5a621d..bdfa4fbb 100644 --- a/sig/orb/internal/util.rbs +++ b/sig/orb/internal/util.rbs @@ -1,6 +1,8 @@ module Orb module Internal module Util + extend Orb::Internal::Util::SorbetRuntimeSupport + def self?.monotonic_secs: -> Float def self?.arch: -> String @@ -155,6 +157,17 @@ module Orb def self?.decode_sse: ( Enumerable[String] lines ) -> Enumerable[Orb::Internal::Util::server_sent_event] + + module SorbetRuntimeSupport + class MissingSorbetRuntimeError < ::RuntimeError + end + + private def sorbet_runtime_constants: -> ::Hash[Symbol, top] + + def const_missing: (Symbol name) -> void + + def define_sorbet_constant!: (Symbol name) { -> top } -> void + end end end end diff --git a/test/orb/client_test.rb b/test/orb/client_test.rb index 5cdabd6a..16c53837 100644 --- a/test/orb/client_test.rb +++ b/test/orb/client_test.rb @@ -3,14 +3,9 @@ require_relative "test_helper" class OrbTest < Minitest::Test + extend Minitest::Serial include WebMock::API - class << self - def test_order = :random - - def run_one_method(...) = Minitest::Runnable.run_one_method(...) - end - def before_all super WebMock.enable! diff --git a/test/orb/internal/sorbet_runtime_support_test.rb b/test/orb/internal/sorbet_runtime_support_test.rb new file mode 100644 index 00000000..d84f8022 --- /dev/null +++ b/test/orb/internal/sorbet_runtime_support_test.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +require_relative "../test_helper" + +class Orb::Test::SorbetRuntimeSupportTest < Minitest::Test + i_suck_and_my_tests_are_order_dependent! + + module E + extend Orb::Internal::Type::Enum + + define_sorbet_constant!(:TaggedSymbol) { 1 } + end + + module U + extend Orb::Internal::Type::Union + + define_sorbet_constant!(:Variants) { 2 } + end + + class M < Orb::Internal::Type::BaseModel + define_sorbet_constant!(:OrHash) { 3 } + end + + def test_nil_aliases + err = Orb::Internal::Util::SorbetRuntimeSupport::MissingSorbetRuntimeError + + assert_raises(err) { Orb::Internal::AnyHash } + assert_raises(err) { Orb::Internal::Type::Converter::Input } + assert_raises(err) { Orb::Internal::Type::Converter::CoerceState } + assert_raises(err) { Orb::Internal::Type::Converter::DumpState } + assert_raises(err) { Orb::Internal::Type::BaseModel::KnownField } + assert_raises(err) { Orb::Internal::Util::ParsedUri } + assert_raises(err) { Orb::Internal::Util::ServerSentEvent } + assert_raises(err) { Orb::Internal::Transport::BaseClient::RequestComponents } + assert_raises(err) { Orb::Internal::Transport::BaseClient::RequestInput } + assert_raises(err) { Orb::Internal::Transport::PooledNetRequester::Request } + assert_raises(err) { E::TaggedSymbol } + assert_raises(err) { U::Variants } + assert_raises(err) { M::OrHash } + end + + def test_stubbed_aliases + Kernel.instance_eval { const_set(:T, nil) } + + assert_equal(1, E::TaggedSymbol) + assert_equal(2, U::Variants) + assert_equal(3, M::OrHash) + end +end diff --git a/test/orb/test_helper.rb b/test/orb/test_helper.rb index 47d42e2b..870a2911 100644 --- a/test/orb/test_helper.rb +++ b/test/orb/test_helper.rb @@ -52,6 +52,12 @@ def initialize end end +module Minitest::Serial + def test_order = :random + + def run_one_method(...) = Minitest::Runnable.run_one_method(...) +end + class Minitest::Test include Minitest::Hooks