diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7c31fce28..aa8487597 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.21" + ".": "0.1.0-alpha.22" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 983dd6311..b5c83ac18 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-983a38b280126eee3cd2a12eb7847bc36551f24cf7fdcdffe20e564e2c0d21c4.yml -openapi_spec_hash: 273aa48b03116314693f8870c4c71f9b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-99d09de90656238ac57bf6711950f043967548c1c4e2ad31b606dd51e0daa3e9.yml +openapi_spec_hash: 597d3aed886356d053b7c571cab6380b config_hash: 1619155422217276e2489ae10ce63a25 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2359c7df4..7de45210f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.1.0-alpha.22 (2025-05-12) + +Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.21...v0.1.0-alpha.22) + +### Features + +* **api:** api update ([e9058dd](https://github.com/Increase/increase-ruby/commit/e9058dd6b8bf03cca193810a0973ffb0cd242b51)) +* support sorbet aliases at the runtime ([38e39cf](https://github.com/Increase/increase-ruby/commit/38e39cfce387746d743d13133b2d1e17c3b5fa86)) + ## 0.1.0-alpha.21 (2025-05-09) Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.20...v0.1.0-alpha.21) diff --git a/Gemfile.lock b/Gemfile.lock index 1ce0868bc..975bcfc4c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (0.1.0.pre.alpha.21) + increase (0.1.0.pre.alpha.22) connection_pool GEM diff --git a/README.md b/README.md index feb113cdf..cf16a5245 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 "increase", "~> 0.1.0.pre.alpha.21" +gem "increase", "~> 0.1.0.pre.alpha.22" ``` diff --git a/lib/increase/internal.rb b/lib/increase/internal.rb index 68d965595..1f0b8df5f 100644 --- a/lib/increase/internal.rb +++ b/lib/increase/internal.rb @@ -2,10 +2,16 @@ module Increase module Internal + extend Increase::Internal::Util::SorbetRuntimeSupport + OMIT = Object.new.tap do _1.define_singleton_method(:inspect) { "#<#{Increase::Internal}::OMIT>" } end .freeze + + define_sorbet_constant!(:AnyHash) do + T.type_alias { T::Hash[Symbol, T.anything] } + end end end diff --git a/lib/increase/internal/transport/base_client.rb b/lib/increase/internal/transport/base_client.rb index 96202fc2e..3c8099c13 100644 --- a/lib/increase/internal/transport/base_client.rb +++ b/lib/increase/internal/transport/base_client.rb @@ -7,6 +7,8 @@ module Transport # # @abstract class BaseClient + extend Increase::Internal::Util::SorbetRuntimeSupport + # from whatwg fetch spec MAX_REDIRECTS = 20 @@ -477,6 +479,51 @@ def inspect "#<#{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[Increase::Internal::Type::BasePage[Increase::Internal::Type::BaseModel]]), + stream: T.nilable(T::Class[T.anything]), + model: T.nilable(Increase::Internal::Type::Converter::Input), + options: T.nilable(Increase::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/increase/internal/transport/pooled_net_requester.rb b/lib/increase/internal/transport/pooled_net_requester.rb index bcc31e3b6..ae137fc0e 100644 --- a/lib/increase/internal/transport/pooled_net_requester.rb +++ b/lib/increase/internal/transport/pooled_net_requester.rb @@ -5,6 +5,8 @@ module Internal module Transport # @api private class PooledNetRequester + extend Increase::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/increase/internal/type/array_of.rb b/lib/increase/internal/type/array_of.rb index 345fafbdf..95b930f34 100644 --- a/lib/increase/internal/type/array_of.rb +++ b/lib/increase/internal/type/array_of.rb @@ -29,7 +29,7 @@ class ArrayOf # # @option spec [Boolean] :"nil?" # - # @return [Increase::Internal::Type::ArrayOf] + # @return [self] def self.[](...) = new(...) # @api public diff --git a/lib/increase/internal/type/base_model.rb b/lib/increase/internal/type/base_model.rb index df08f29c9..65e6c18ad 100644 --- a/lib/increase/internal/type/base_model.rb +++ b/lib/increase/internal/type/base_model.rb @@ -6,6 +6,7 @@ module Type # @abstract class BaseModel extend Increase::Internal::Type::Converter + extend Increase::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 < Increase::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}}] @@ -206,7 +213,7 @@ class << self # # @option state [Integer] :branched # - # @return [Increase::Internal::Type::BaseModel, Object] + # @return [self, Object] def coerce(value, state:) exactness = state.fetch(:exactness) @@ -265,7 +272,7 @@ def coerce(value, state:) # @api private # - # @param value [Increase::Internal::Type::BaseModel, Object] + # @param value [self, Object] # # @param state [Hash{Symbol=>Object}] . # @@ -431,6 +438,10 @@ def to_s = self.class.walk(@data).to_s # # @return [String] def inspect = "#<#{self.class}:0x#{object_id.to_s(16)} #{self}>" + + 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/increase/internal/type/converter.rb b/lib/increase/internal/type/converter.rb index c087a4efa..7dd0e4873 100644 --- a/lib/increase/internal/type/converter.rb +++ b/lib/increase/internal/type/converter.rb @@ -5,6 +5,8 @@ module Internal module Type # @api private module Converter + extend Increase::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(Increase::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/increase/internal/type/enum.rb b/lib/increase/internal/type/enum.rb index e4d1f446b..c7ac186f6 100644 --- a/lib/increase/internal/type/enum.rb +++ b/lib/increase/internal/type/enum.rb @@ -17,6 +17,7 @@ module Type # values safely. module Enum include Increase::Internal::Type::Converter + include Increase::Internal::Util::SorbetRuntimeSupport # All of the valid Symbol values for this enum. # diff --git a/lib/increase/internal/type/hash_of.rb b/lib/increase/internal/type/hash_of.rb index 7b482a157..7223c8df4 100644 --- a/lib/increase/internal/type/hash_of.rb +++ b/lib/increase/internal/type/hash_of.rb @@ -29,7 +29,7 @@ class HashOf # # @option spec [Boolean] :"nil?" # - # @return [Increase::Internal::Type::HashOf] + # @return [self] def self.[](...) = new(...) # @api public diff --git a/lib/increase/internal/type/union.rb b/lib/increase/internal/type/union.rb index be2a9ab0b..7e0464912 100644 --- a/lib/increase/internal/type/union.rb +++ b/lib/increase/internal/type/union.rb @@ -6,6 +6,7 @@ module Type # @api private module Union include Increase::Internal::Type::Converter + include Increase::Internal::Util::SorbetRuntimeSupport # @api private # diff --git a/lib/increase/internal/util.rb b/lib/increase/internal/util.rb index c04d6acc1..d1ae02194 100644 --- a/lib/increase/internal/util.rb +++ b/lib/increase/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 Increase::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/increase/models.rb b/lib/increase/models.rb index 9bf1b4dc9..54b778103 100644 --- a/lib/increase/models.rb +++ b/lib/increase/models.rb @@ -1,6 +1,33 @@ # frozen_string_literal: true module Increase + [Increase::Internal::Type::BaseModel, *Increase::Internal::Type::BaseModel.subclasses].each do |cls| + cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, Increase::Internal::AnyHash) } } + end + + [ + *Increase::Internal::Type::Enum.included_modules, + *Increase::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 + Account = Increase::Models::Account AccountBalanceParams = Increase::Models::AccountBalanceParams diff --git a/lib/increase/models/simulations/program_create_params.rb b/lib/increase/models/simulations/program_create_params.rb index 3bd5e0104..54e86e4f4 100644 --- a/lib/increase/models/simulations/program_create_params.rb +++ b/lib/increase/models/simulations/program_create_params.rb @@ -14,9 +14,17 @@ class ProgramCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :name, String - # @!method initialize(name:, request_options: {}) + # @!attribute reserve_account_id + # The identifier of the Account the Program should be added to is for. + # + # @return [String, nil] + optional :reserve_account_id, String + + # @!method initialize(name:, reserve_account_id: nil, request_options: {}) # @param name [String] The name of the program being added. # + # @param reserve_account_id [String] The identifier of the Account the Program should be added to is for. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/increase/request_options.rb b/lib/increase/request_options.rb index 31c109e45..a43c7d09a 100644 --- a/lib/increase/request_options.rb +++ b/lib/increase/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(Increase::RequestOptions, Increase::Internal::AnyHash) } + end end end diff --git a/lib/increase/resources/simulations/programs.rb b/lib/increase/resources/simulations/programs.rb index b749db1f3..6a93ecfc9 100644 --- a/lib/increase/resources/simulations/programs.rb +++ b/lib/increase/resources/simulations/programs.rb @@ -9,10 +9,12 @@ class Programs # operates more than one program, `program_id` is a required field when creating # accounts. # - # @overload create(name:, request_options: {}) + # @overload create(name:, reserve_account_id: nil, request_options: {}) # # @param name [String] The name of the program being added. # + # @param reserve_account_id [String] The identifier of the Account the Program should be added to is for. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Increase::Program] diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 3d915bebc..dd27ba10a 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "0.1.0.pre.alpha.21" + VERSION = "0.1.0.pre.alpha.22" end diff --git a/rbi/increase/errors.rbi b/rbi/increase/errors.rbi index 3dd72be0f..47e40e62e 100644 --- a/rbi/increase/errors.rbi +++ b/rbi/increase/errors.rbi @@ -104,7 +104,7 @@ module Increase request: NilClass, response: NilClass, message: T.nilable(String) - ).returns(T.attached_class) + ).returns(T.self_type) end def self.for(url:, status:, body:, request:, response:, message: nil) end diff --git a/rbi/increase/internal.rbi b/rbi/increase/internal.rbi index 1929e1cf5..ec191d1a6 100644 --- a/rbi/increase/internal.rbi +++ b/rbi/increase/internal.rbi @@ -2,6 +2,8 @@ module Increase module Internal + extend Increase::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/increase/internal/transport/base_client.rbi b/rbi/increase/internal/transport/base_client.rbi index 49a74865f..f5047782b 100644 --- a/rbi/increase/internal/transport/base_client.rbi +++ b/rbi/increase/internal/transport/base_client.rbi @@ -5,9 +5,11 @@ module Increase module Transport # @api private class BaseClient + extend Increase::Internal::Util::SorbetRuntimeSupport + abstract! - RequestComponentsShape = + RequestComponents = T.type_alias do { method: Symbol, @@ -53,7 +55,7 @@ module Increase } end - RequestInputShape = + RequestInput = T.type_alias do { method: Symbol, @@ -74,8 +76,7 @@ module Increase # @api private sig do params( - req: - Increase::Internal::Transport::BaseClient::RequestComponentsShape + req: Increase::Internal::Transport::BaseClient::RequestComponents ).void end def validate!(req) @@ -94,13 +95,10 @@ module Increase # @api private sig do params( - request: - Increase::Internal::Transport::BaseClient::RequestInputShape, + request: Increase::Internal::Transport::BaseClient::RequestInput, status: Integer, response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) - ).returns( - Increase::Internal::Transport::BaseClient::RequestInputShape - ) + ).returns(Increase::Internal::Transport::BaseClient::RequestInput) end def follow_redirect(request, status:, response_headers:) end @@ -167,13 +165,10 @@ module Increase sig do overridable .params( - req: - Increase::Internal::Transport::BaseClient::RequestComponentsShape, + req: Increase::Internal::Transport::BaseClient::RequestComponents, opts: Increase::Internal::AnyHash ) - .returns( - Increase::Internal::Transport::BaseClient::RequestInputShape - ) + .returns(Increase::Internal::Transport::BaseClient::RequestInput) end private def build_request(req, opts) end @@ -191,8 +186,7 @@ module Increase # @api private sig do params( - request: - Increase::Internal::Transport::BaseClient::RequestInputShape, + request: Increase::Internal::Transport::BaseClient::RequestInput, redirect_count: Integer, retry_count: Integer, send_retry_header: T::Boolean diff --git a/rbi/increase/internal/transport/pooled_net_requester.rbi b/rbi/increase/internal/transport/pooled_net_requester.rbi index 734b721e5..89141b6f0 100644 --- a/rbi/increase/internal/transport/pooled_net_requester.rbi +++ b/rbi/increase/internal/transport/pooled_net_requester.rbi @@ -5,7 +5,9 @@ module Increase module Transport # @api private class PooledNetRequester - RequestShape = + extend Increase::Internal::Util::SorbetRuntimeSupport + + Request = T.type_alias do { method: Symbol, @@ -35,7 +37,7 @@ module Increase sig do params( request: - Increase::Internal::Transport::PooledNetRequester::RequestShape, + Increase::Internal::Transport::PooledNetRequester::Request, blk: T.proc.params(arg0: String).void ).returns([Net::HTTPGenericRequest, T.proc.void]) end @@ -57,8 +59,7 @@ module Increase # @api private sig do params( - request: - Increase::Internal::Transport::PooledNetRequester::RequestShape + request: Increase::Internal::Transport::PooledNetRequester::Request ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) end def execute(request) diff --git a/rbi/increase/internal/type/base_model.rbi b/rbi/increase/internal/type/base_model.rbi index b9dff14f7..dcaf5cd51 100644 --- a/rbi/increase/internal/type/base_model.rbi +++ b/rbi/increase/internal/type/base_model.rbi @@ -5,10 +5,11 @@ module Increase module Type class BaseModel extend Increase::Internal::Type::Converter + extend Increase::Internal::Util::SorbetRuntimeSupport abstract! - KnownFieldShape = + KnownField = T.type_alias do { mode: T.nilable(Symbol), @@ -18,19 +19,29 @@ module Increase end OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Internal::Type::BaseModel, + Increase::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( - Increase::Internal::Type::BaseModel::KnownFieldShape, + Increase::Internal::Type::BaseModel::KnownField, { type_fn: T.proc.returns(Increase::Internal::Type::Converter::Input) @@ -48,7 +59,7 @@ module Increase T::Hash[ Symbol, T.all( - Increase::Internal::Type::BaseModel::KnownFieldShape, + Increase::Internal::Type::BaseModel::KnownField, { type: Increase::Internal::Type::Converter::Input } ) ] diff --git a/rbi/increase/internal/type/base_page.rbi b/rbi/increase/internal/type/base_page.rbi index a90ea04aa..e6521378b 100644 --- a/rbi/increase/internal/type/base_page.rbi +++ b/rbi/increase/internal/type/base_page.rbi @@ -29,8 +29,7 @@ module Increase sig do params( client: Increase::Internal::Transport::BaseClient, - req: - Increase::Internal::Transport::BaseClient::RequestComponentsShape, + req: Increase::Internal::Transport::BaseClient::RequestComponents, headers: T.any(T::Hash[String, String], Net::HTTPHeader), page_data: T.anything ).void diff --git a/rbi/increase/internal/type/converter.rbi b/rbi/increase/internal/type/converter.rbi index b02f53f5d..7610b8dad 100644 --- a/rbi/increase/internal/type/converter.rbi +++ b/rbi/increase/internal/type/converter.rbi @@ -5,6 +5,8 @@ module Increase module Type # @api private module Converter + extend Increase::Internal::Util::SorbetRuntimeSupport + Input = T.type_alias do T.any(Increase::Internal::Type::Converter, T::Class[T.anything]) diff --git a/rbi/increase/internal/type/enum.rbi b/rbi/increase/internal/type/enum.rbi index 6137f9702..09db3360c 100644 --- a/rbi/increase/internal/type/enum.rbi +++ b/rbi/increase/internal/type/enum.rbi @@ -17,6 +17,7 @@ module Increase # values safely. module Enum include Increase::Internal::Type::Converter + include Increase::Internal::Util::SorbetRuntimeSupport # All of the valid Symbol values for this enum. sig do diff --git a/rbi/increase/internal/type/union.rbi b/rbi/increase/internal/type/union.rbi index e1e5201ca..4c873164d 100644 --- a/rbi/increase/internal/type/union.rbi +++ b/rbi/increase/internal/type/union.rbi @@ -6,6 +6,7 @@ module Increase # @api private module Union include Increase::Internal::Type::Converter + include Increase::Internal::Util::SorbetRuntimeSupport # @api private # diff --git a/rbi/increase/internal/util.rbi b/rbi/increase/internal/util.rbi index a8a5364f4..3d42fefcd 100644 --- a/rbi/increase/internal/util.rbi +++ b/rbi/increase/internal/util.rbi @@ -4,6 +4,8 @@ module Increase module Internal # @api private module Util + extend Increase::Internal::Util::SorbetRuntimeSupport + # @api private sig { returns(Float) } def self.monotonic_secs @@ -172,7 +174,7 @@ module Increase end end - ParsedUriShape = + ParsedUri = T.type_alias do { scheme: T.nilable(String), @@ -187,7 +189,7 @@ module Increase # @api private sig do params(url: T.any(URI::Generic, String)).returns( - Increase::Internal::Util::ParsedUriShape + Increase::Internal::Util::ParsedUri ) end def parse_uri(url) @@ -195,7 +197,7 @@ module Increase # @api private sig do - params(parsed: Increase::Internal::Util::ParsedUriShape).returns( + params(parsed: Increase::Internal::Util::ParsedUri).returns( URI::Generic ) end @@ -205,8 +207,8 @@ module Increase # @api private sig do params( - lhs: Increase::Internal::Util::ParsedUriShape, - rhs: Increase::Internal::Util::ParsedUriShape + lhs: Increase::Internal::Util::ParsedUri, + rhs: Increase::Internal::Util::ParsedUri ).returns(URI::Generic) end def join_parsed_uri(lhs, rhs) @@ -423,6 +425,27 @@ module Increase 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/increase/models/account.rbi b/rbi/increase/models/account.rbi index 1dad76c0b..5dd4d6fbe 100644 --- a/rbi/increase/models/account.rbi +++ b/rbi/increase/models/account.rbi @@ -3,7 +3,8 @@ module Increase module Models class Account < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Account, Increase::Internal::AnyHash) } # The Account identifier. sig { returns(String) } diff --git a/rbi/increase/models/account_balance_params.rbi b/rbi/increase/models/account_balance_params.rbi index a96963b5f..b893b5414 100644 --- a/rbi/increase/models/account_balance_params.rbi +++ b/rbi/increase/models/account_balance_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountBalanceParams, Increase::Internal::AnyHash) + end # The moment to query the balance at. If not set, returns the current balances. sig { returns(T.nilable(Time)) } diff --git a/rbi/increase/models/account_close_params.rbi b/rbi/increase/models/account_close_params.rbi index 6a01d9c9f..484c90ff4 100644 --- a/rbi/increase/models/account_close_params.rbi +++ b/rbi/increase/models/account_close_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountCloseParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/account_create_params.rbi b/rbi/increase/models/account_create_params.rbi index 38c2b7289..3bd55a19f 100644 --- a/rbi/increase/models/account_create_params.rbi +++ b/rbi/increase/models/account_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountCreateParams, Increase::Internal::AnyHash) + end # The name you choose for the Account. sig { returns(String) } diff --git a/rbi/increase/models/account_list_params.rbi b/rbi/increase/models/account_list_params.rbi index 4fbaff679..ee2777e32 100644 --- a/rbi/increase/models/account_list_params.rbi +++ b/rbi/increase/models/account_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountListParams, Increase::Internal::AnyHash) + end sig { returns(T.nilable(Increase::AccountListParams::CreatedAt)) } attr_reader :created_at @@ -124,7 +127,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -193,7 +201,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Accounts for those with the specified status. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. diff --git a/rbi/increase/models/account_number.rbi b/rbi/increase/models/account_number.rbi index 03851aafd..9258dc626 100644 --- a/rbi/increase/models/account_number.rbi +++ b/rbi/increase/models/account_number.rbi @@ -3,7 +3,10 @@ module Increase module Models class AccountNumber < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountNumber, Increase::Internal::AnyHash) + end # The Account Number identifier. sig { returns(String) } @@ -139,7 +142,12 @@ module Increase class InboundACH < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumber::InboundACH, + Increase::Internal::AnyHash + ) + end # Whether ACH debits are allowed against this Account Number. Note that they will # still be declined if this is `allowed` if the Account Number is not active. @@ -214,7 +222,12 @@ module Increase class InboundChecks < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumber::InboundChecks, + Increase::Internal::AnyHash + ) + end # How Increase should process checks with this account number printed on them. sig do diff --git a/rbi/increase/models/account_number_create_params.rbi b/rbi/increase/models/account_number_create_params.rbi index 42ac48668..2f5886e61 100644 --- a/rbi/increase/models/account_number_create_params.rbi +++ b/rbi/increase/models/account_number_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountNumberCreateParams, + Increase::Internal::AnyHash + ) + end # The Account the Account Number should belong to. sig { returns(String) } @@ -84,7 +90,12 @@ module Increase class InboundACH < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumberCreateParams::InboundACH, + Increase::Internal::AnyHash + ) + end # Whether ACH debits are allowed against this Account Number. Note that ACH debits # will be declined if this is `allowed` but the Account Number is not active. If @@ -165,7 +176,12 @@ module Increase class InboundChecks < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumberCreateParams::InboundChecks, + Increase::Internal::AnyHash + ) + end # How Increase should process checks with this account number printed on them. If # you do not specify this field, the default is `check_transfers_only`. diff --git a/rbi/increase/models/account_number_list_params.rbi b/rbi/increase/models/account_number_list_params.rbi index ced8f7552..bd2a2de28 100644 --- a/rbi/increase/models/account_number_list_params.rbi +++ b/rbi/increase/models/account_number_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountNumberListParams, Increase::Internal::AnyHash) + end # Filter Account Numbers to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -123,7 +126,12 @@ module Increase class ACHDebitStatus < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumberListParams::ACHDebitStatus, + Increase::Internal::AnyHash + ) + end # The ACH Debit status to retrieve Account Numbers for. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. @@ -216,7 +224,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumberListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -285,7 +298,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumberListParams::Status, + Increase::Internal::AnyHash + ) + end # The status to retrieve Account Numbers for. For GET requests, this should be # encoded as a comma-delimited string, such as `?in=one,two,three`. diff --git a/rbi/increase/models/account_number_retrieve_params.rbi b/rbi/increase/models/account_number_retrieve_params.rbi index 5d9bfbe20..0933469d5 100644 --- a/rbi/increase/models/account_number_retrieve_params.rbi +++ b/rbi/increase/models/account_number_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountNumberRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/account_number_update_params.rbi b/rbi/increase/models/account_number_update_params.rbi index fa312a720..23618f601 100644 --- a/rbi/increase/models/account_number_update_params.rbi +++ b/rbi/increase/models/account_number_update_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountNumberUpdateParams, + Increase::Internal::AnyHash + ) + end # Options related to how this Account Number handles inbound ACH transfers. sig do @@ -98,7 +104,12 @@ module Increase class InboundACH < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumberUpdateParams::InboundACH, + Increase::Internal::AnyHash + ) + end # Whether ACH debits are allowed against this Account Number. Note that ACH debits # will be declined if this is `allowed` but the Account Number is not active. @@ -186,7 +197,12 @@ module Increase class InboundChecks < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountNumberUpdateParams::InboundChecks, + Increase::Internal::AnyHash + ) + end # How Increase should process checks with this account number printed on them. sig do diff --git a/rbi/increase/models/account_retrieve_params.rbi b/rbi/increase/models/account_retrieve_params.rbi index 9ae964eba..aff2f2c4f 100644 --- a/rbi/increase/models/account_retrieve_params.rbi +++ b/rbi/increase/models/account_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/account_statement.rbi b/rbi/increase/models/account_statement.rbi index e0d4b0c67..3bc04645f 100644 --- a/rbi/increase/models/account_statement.rbi +++ b/rbi/increase/models/account_statement.rbi @@ -3,7 +3,10 @@ module Increase module Models class AccountStatement < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountStatement, Increase::Internal::AnyHash) + end # The Account Statement identifier. sig { returns(String) } diff --git a/rbi/increase/models/account_statement_list_params.rbi b/rbi/increase/models/account_statement_list_params.rbi index db6f3cba0..85adad6ed 100644 --- a/rbi/increase/models/account_statement_list_params.rbi +++ b/rbi/increase/models/account_statement_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountStatementListParams, + Increase::Internal::AnyHash + ) + end # Filter Account Statements to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -85,7 +91,12 @@ module Increase class StatementPeriodStart < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountStatementListParams::StatementPeriodStart, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/account_statement_retrieve_params.rbi b/rbi/increase/models/account_statement_retrieve_params.rbi index 1e98cab6b..e7ab1c825 100644 --- a/rbi/increase/models/account_statement_retrieve_params.rbi +++ b/rbi/increase/models/account_statement_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountStatementRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/account_transfer.rbi b/rbi/increase/models/account_transfer.rbi index 6ed0b2660..0ee9de461 100644 --- a/rbi/increase/models/account_transfer.rbi +++ b/rbi/increase/models/account_transfer.rbi @@ -3,7 +3,10 @@ module Increase module Models class AccountTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountTransfer, Increase::Internal::AnyHash) + end # The account transfer's identifier. sig { returns(String) } @@ -206,7 +209,12 @@ module Increase class Approval < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountTransfer::Approval, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -246,7 +254,12 @@ module Increase class Cancellation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountTransfer::Cancellation, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -286,7 +299,12 @@ module Increase class CreatedBy < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountTransfer::CreatedBy, + Increase::Internal::AnyHash + ) + end # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::AccountTransfer::CreatedBy::APIKey)) } @@ -379,7 +397,12 @@ module Increase class APIKey < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end # The description set for the API key when it was created. sig { returns(T.nilable(String)) } @@ -444,7 +467,12 @@ module Increase class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountTransfer::CreatedBy::OAuthApplication, + Increase::Internal::AnyHash + ) + end # The name of the OAuth Application. sig { returns(String) } @@ -465,7 +493,12 @@ module Increase class User < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountTransfer::CreatedBy::User, + Increase::Internal::AnyHash + ) + end # The email address of the User. sig { returns(String) } diff --git a/rbi/increase/models/account_transfer_approve_params.rbi b/rbi/increase/models/account_transfer_approve_params.rbi index d3f68deff..baf3e176c 100644 --- a/rbi/increase/models/account_transfer_approve_params.rbi +++ b/rbi/increase/models/account_transfer_approve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountTransferApproveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/account_transfer_cancel_params.rbi b/rbi/increase/models/account_transfer_cancel_params.rbi index e04d5dbea..550c089d0 100644 --- a/rbi/increase/models/account_transfer_cancel_params.rbi +++ b/rbi/increase/models/account_transfer_cancel_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountTransferCancelParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/account_transfer_create_params.rbi b/rbi/increase/models/account_transfer_create_params.rbi index b46630c69..663534d64 100644 --- a/rbi/increase/models/account_transfer_create_params.rbi +++ b/rbi/increase/models/account_transfer_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountTransferCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier for the account that will send the transfer. sig { returns(String) } diff --git a/rbi/increase/models/account_transfer_list_params.rbi b/rbi/increase/models/account_transfer_list_params.rbi index 28d822d85..47390b6ae 100644 --- a/rbi/increase/models/account_transfer_list_params.rbi +++ b/rbi/increase/models/account_transfer_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountTransferListParams, + Increase::Internal::AnyHash + ) + end # Filter Account Transfers to those that originated from the specified Account. sig { returns(T.nilable(String)) } @@ -95,7 +101,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::AccountTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/account_transfer_retrieve_params.rbi b/rbi/increase/models/account_transfer_retrieve_params.rbi index 074e35521..e0776a224 100644 --- a/rbi/increase/models/account_transfer_retrieve_params.rbi +++ b/rbi/increase/models/account_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::AccountTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/account_update_params.rbi b/rbi/increase/models/account_update_params.rbi index ee3a5483f..81cf5c0a8 100644 --- a/rbi/increase/models/account_update_params.rbi +++ b/rbi/increase/models/account_update_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::AccountUpdateParams, Increase::Internal::AnyHash) + end # The new name of the Account. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/ach_prenotification.rbi b/rbi/increase/models/ach_prenotification.rbi index 813e0c0eb..ad6cf20c6 100644 --- a/rbi/increase/models/ach_prenotification.rbi +++ b/rbi/increase/models/ach_prenotification.rbi @@ -3,7 +3,10 @@ module Increase module Models class ACHPrenotification < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ACHPrenotification, Increase::Internal::AnyHash) + end # The ACH Prenotification's identifier. sig { returns(String) } @@ -233,7 +236,12 @@ module Increase class NotificationsOfChange < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHPrenotification::NotificationsOfChange, + Increase::Internal::AnyHash + ) + end # The required type of change that is being signaled by the receiving financial # institution. @@ -455,7 +463,12 @@ module Increase class PrenotificationReturn < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHPrenotification::PrenotificationReturn, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Prenotification was returned. diff --git a/rbi/increase/models/ach_prenotification_create_params.rbi b/rbi/increase/models/ach_prenotification_create_params.rbi index c8b358aeb..efee750ca 100644 --- a/rbi/increase/models/ach_prenotification_create_params.rbi +++ b/rbi/increase/models/ach_prenotification_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ACHPrenotificationCreateParams, + Increase::Internal::AnyHash + ) + end # The Increase identifier for the account that will send the transfer. sig { returns(String) } diff --git a/rbi/increase/models/ach_prenotification_list_params.rbi b/rbi/increase/models/ach_prenotification_list_params.rbi index aea94a3d0..21f977c9c 100644 --- a/rbi/increase/models/ach_prenotification_list_params.rbi +++ b/rbi/increase/models/ach_prenotification_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ACHPrenotificationListParams, + Increase::Internal::AnyHash + ) + end sig do returns(T.nilable(Increase::ACHPrenotificationListParams::CreatedAt)) @@ -86,7 +92,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHPrenotificationListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/ach_prenotification_retrieve_params.rbi b/rbi/increase/models/ach_prenotification_retrieve_params.rbi index 229048d0f..ee76f961f 100644 --- a/rbi/increase/models/ach_prenotification_retrieve_params.rbi +++ b/rbi/increase/models/ach_prenotification_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ACHPrenotificationRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/ach_transfer.rbi b/rbi/increase/models/ach_transfer.rbi index 2287c149e..46af505a6 100644 --- a/rbi/increase/models/ach_transfer.rbi +++ b/rbi/increase/models/ach_transfer.rbi @@ -3,7 +3,10 @@ module Increase module Models class ACHTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ACHTransfer, Increase::Internal::AnyHash) + end # The ACH transfer's identifier. sig { returns(String) } @@ -450,7 +453,12 @@ module Increase class Acknowledgement < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Acknowledgement, + Increase::Internal::AnyHash + ) + end # When the Federal Reserve acknowledged the submitted file containing this # transfer. @@ -475,7 +483,9 @@ module Increase class Addenda < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::ACHTransfer::Addenda, Increase::Internal::AnyHash) + end # The type of the resource. We may add additional possible values for this enum # over time; your application should be able to handle such additions gracefully. @@ -597,7 +607,12 @@ module Increase class Freeform < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Addenda::Freeform, + Increase::Internal::AnyHash + ) + end # Each entry represents an addendum sent with the transfer. sig do @@ -633,7 +648,12 @@ module Increase class Entry < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Addenda::Freeform::Entry, + Increase::Internal::AnyHash + ) + end # The payment related information passed in the addendum. sig { returns(String) } @@ -658,7 +678,12 @@ module Increase class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice, + Increase::Internal::AnyHash + ) + end # ASC X12 RMR records for this specific transfer. sig do @@ -701,7 +726,12 @@ module Increase class Invoice < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice, + Increase::Internal::AnyHash + ) + end # The invoice number for this reference, determined in advance with the receiver. sig { returns(String) } @@ -737,7 +767,9 @@ module Increase class Approval < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::ACHTransfer::Approval, Increase::Internal::AnyHash) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -777,7 +809,12 @@ module Increase class Cancellation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Cancellation, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -817,7 +854,9 @@ module Increase class CreatedBy < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::ACHTransfer::CreatedBy, Increase::Internal::AnyHash) + end # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::ACHTransfer::CreatedBy::APIKey)) } @@ -905,7 +944,12 @@ module Increase class APIKey < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end # The description set for the API key when it was created. sig { returns(T.nilable(String)) } @@ -968,7 +1012,12 @@ module Increase class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::CreatedBy::OAuthApplication, + Increase::Internal::AnyHash + ) + end # The name of the OAuth Application. sig { returns(String) } @@ -989,7 +1038,12 @@ module Increase class User < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::CreatedBy::User, + Increase::Internal::AnyHash + ) + end # The email address of the User. sig { returns(String) } @@ -1114,7 +1168,12 @@ module Increase class InboundFundsHold < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::InboundFundsHold, + Increase::Internal::AnyHash + ) + end # The Inbound Funds Hold identifier. sig { returns(String) } @@ -1385,7 +1444,12 @@ module Increase class NotificationsOfChange < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::NotificationsOfChange, + Increase::Internal::AnyHash + ) + end # The required type of change that is being signaled by the receiving financial # institution. @@ -1607,7 +1671,12 @@ module Increase class PreferredEffectiveDate < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::PreferredEffectiveDate, + Increase::Internal::AnyHash + ) + end # A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to # use as the effective date when submitting this transfer. @@ -1704,7 +1773,9 @@ module Increase class Return < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::ACHTransfer::Return, Increase::Internal::AnyHash) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was created. @@ -2301,7 +2372,12 @@ module Increase class Settlement < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Settlement, + Increase::Internal::AnyHash + ) + end # When the funds for this transfer have settled at the destination bank at the # Federal Reserve. @@ -2433,7 +2509,12 @@ module Increase class Submission < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransfer::Submission, + Increase::Internal::AnyHash + ) + end # The ACH transfer's effective date as sent to the Federal Reserve. If a specific # date was configured using `preferred_effective_date`, this will match that diff --git a/rbi/increase/models/ach_transfer_approve_params.rbi b/rbi/increase/models/ach_transfer_approve_params.rbi index 7e92024a9..e55bf4f8a 100644 --- a/rbi/increase/models/ach_transfer_approve_params.rbi +++ b/rbi/increase/models/ach_transfer_approve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ACHTransferApproveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/ach_transfer_cancel_params.rbi b/rbi/increase/models/ach_transfer_cancel_params.rbi index 1311bb3b2..d09d6b282 100644 --- a/rbi/increase/models/ach_transfer_cancel_params.rbi +++ b/rbi/increase/models/ach_transfer_cancel_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ACHTransferCancelParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/ach_transfer_create_params.rbi b/rbi/increase/models/ach_transfer_create_params.rbi index 4b8bb43d5..bf8fdaf2c 100644 --- a/rbi/increase/models/ach_transfer_create_params.rbi +++ b/rbi/increase/models/ach_transfer_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ACHTransferCreateParams, Increase::Internal::AnyHash) + end # The Increase identifier for the account that will send the transfer. sig { returns(String) } @@ -326,7 +329,12 @@ module Increase class Addenda < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferCreateParams::Addenda, + Increase::Internal::AnyHash + ) + end # The type of addenda to pass with the transfer. sig do @@ -448,7 +456,12 @@ module Increase class Freeform < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferCreateParams::Addenda::Freeform, + Increase::Internal::AnyHash + ) + end # Each entry represents an addendum sent with the transfer. Please reach out to # [support@increase.com](mailto:support@increase.com) to send more than one @@ -494,7 +507,12 @@ module Increase class Entry < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferCreateParams::Addenda::Freeform::Entry, + Increase::Internal::AnyHash + ) + end # The payment related information passed in the addendum. sig { returns(String) } @@ -519,7 +537,12 @@ module Increase class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice, + Increase::Internal::AnyHash + ) + end # ASC X12 RMR records for this specific transfer. sig do @@ -562,7 +585,12 @@ module Increase class Invoice < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice, + Increase::Internal::AnyHash + ) + end # The invoice number for this reference, determined in advance with the receiver. sig { returns(String) } @@ -677,7 +705,12 @@ module Increase class PreferredEffectiveDate < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferCreateParams::PreferredEffectiveDate, + Increase::Internal::AnyHash + ) + end # A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to # use as the effective date when submitting this transfer. diff --git a/rbi/increase/models/ach_transfer_list_params.rbi b/rbi/increase/models/ach_transfer_list_params.rbi index 945e4411b..626db4157 100644 --- a/rbi/increase/models/ach_transfer_list_params.rbi +++ b/rbi/increase/models/ach_transfer_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ACHTransferListParams, Increase::Internal::AnyHash) + end # Filter ACH Transfers to those that originated from the specified Account. sig { returns(T.nilable(String)) } @@ -117,7 +120,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -186,7 +194,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ACHTransferListParams::Status, + Increase::Internal::AnyHash + ) + end # Return results whose value is in the provided list. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. diff --git a/rbi/increase/models/ach_transfer_retrieve_params.rbi b/rbi/increase/models/ach_transfer_retrieve_params.rbi index 42e6a08f0..e583f3050 100644 --- a/rbi/increase/models/ach_transfer_retrieve_params.rbi +++ b/rbi/increase/models/ach_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ACHTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/balance_lookup.rbi b/rbi/increase/models/balance_lookup.rbi index cf92337f8..340460673 100644 --- a/rbi/increase/models/balance_lookup.rbi +++ b/rbi/increase/models/balance_lookup.rbi @@ -3,7 +3,10 @@ module Increase module Models class BalanceLookup < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::BalanceLookup, Increase::Internal::AnyHash) + end # The identifier for the account for which the balance was queried. sig { returns(String) } diff --git a/rbi/increase/models/bookkeeping_account.rbi b/rbi/increase/models/bookkeeping_account.rbi index ae05efc8e..6f668619a 100644 --- a/rbi/increase/models/bookkeeping_account.rbi +++ b/rbi/increase/models/bookkeeping_account.rbi @@ -3,7 +3,10 @@ module Increase module Models class BookkeepingAccount < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::BookkeepingAccount, Increase::Internal::AnyHash) + end # The account identifier. sig { returns(String) } diff --git a/rbi/increase/models/bookkeeping_account_balance_params.rbi b/rbi/increase/models/bookkeeping_account_balance_params.rbi index ac4ee590c..8a99fb892 100644 --- a/rbi/increase/models/bookkeeping_account_balance_params.rbi +++ b/rbi/increase/models/bookkeeping_account_balance_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingAccountBalanceParams, + Increase::Internal::AnyHash + ) + end # The moment to query the balance at. If not set, returns the current balances. sig { returns(T.nilable(Time)) } diff --git a/rbi/increase/models/bookkeeping_account_create_params.rbi b/rbi/increase/models/bookkeeping_account_create_params.rbi index 6da62096a..4b683b7ca 100644 --- a/rbi/increase/models/bookkeeping_account_create_params.rbi +++ b/rbi/increase/models/bookkeeping_account_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingAccountCreateParams, + Increase::Internal::AnyHash + ) + end # The name you choose for the account. sig { returns(String) } diff --git a/rbi/increase/models/bookkeeping_account_list_params.rbi b/rbi/increase/models/bookkeeping_account_list_params.rbi index 283652321..fde24774b 100644 --- a/rbi/increase/models/bookkeeping_account_list_params.rbi +++ b/rbi/increase/models/bookkeeping_account_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingAccountListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/bookkeeping_account_update_params.rbi b/rbi/increase/models/bookkeeping_account_update_params.rbi index 1c7b8c07e..ee8642a7e 100644 --- a/rbi/increase/models/bookkeeping_account_update_params.rbi +++ b/rbi/increase/models/bookkeeping_account_update_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingAccountUpdateParams, + Increase::Internal::AnyHash + ) + end # The name you choose for the account. sig { returns(String) } diff --git a/rbi/increase/models/bookkeeping_balance_lookup.rbi b/rbi/increase/models/bookkeeping_balance_lookup.rbi index 6369aaf4d..93f41714d 100644 --- a/rbi/increase/models/bookkeeping_balance_lookup.rbi +++ b/rbi/increase/models/bookkeeping_balance_lookup.rbi @@ -3,7 +3,10 @@ module Increase module Models class BookkeepingBalanceLookup < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::BookkeepingBalanceLookup, Increase::Internal::AnyHash) + end # The Bookkeeping Account's current balance, representing the sum of all # Bookkeeping Entries on the Bookkeeping Account. diff --git a/rbi/increase/models/bookkeeping_entry.rbi b/rbi/increase/models/bookkeeping_entry.rbi index 42b8b67c6..304e284cd 100644 --- a/rbi/increase/models/bookkeeping_entry.rbi +++ b/rbi/increase/models/bookkeeping_entry.rbi @@ -3,7 +3,10 @@ module Increase module Models class BookkeepingEntry < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::BookkeepingEntry, Increase::Internal::AnyHash) + end # The entry identifier. sig { returns(String) } diff --git a/rbi/increase/models/bookkeeping_entry_list_params.rbi b/rbi/increase/models/bookkeeping_entry_list_params.rbi index e28d14f52..75d8191ef 100644 --- a/rbi/increase/models/bookkeeping_entry_list_params.rbi +++ b/rbi/increase/models/bookkeeping_entry_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingEntryListParams, + Increase::Internal::AnyHash + ) + end # The identifier for the Bookkeeping Account to filter by. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/bookkeeping_entry_retrieve_params.rbi b/rbi/increase/models/bookkeeping_entry_retrieve_params.rbi index a4d8f59a0..2a1c4e16a 100644 --- a/rbi/increase/models/bookkeeping_entry_retrieve_params.rbi +++ b/rbi/increase/models/bookkeeping_entry_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingEntryRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/bookkeeping_entry_set.rbi b/rbi/increase/models/bookkeeping_entry_set.rbi index 5763139f9..dadec6d10 100644 --- a/rbi/increase/models/bookkeeping_entry_set.rbi +++ b/rbi/increase/models/bookkeeping_entry_set.rbi @@ -3,7 +3,10 @@ module Increase module Models class BookkeepingEntrySet < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::BookkeepingEntrySet, Increase::Internal::AnyHash) + end # The entry set identifier. sig { returns(String) } @@ -90,7 +93,12 @@ module Increase class Entry < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::BookkeepingEntrySet::Entry, + Increase::Internal::AnyHash + ) + end # The entry identifier. sig { returns(String) } diff --git a/rbi/increase/models/bookkeeping_entry_set_create_params.rbi b/rbi/increase/models/bookkeeping_entry_set_create_params.rbi index 245f347a7..e3fd7540f 100644 --- a/rbi/increase/models/bookkeeping_entry_set_create_params.rbi +++ b/rbi/increase/models/bookkeeping_entry_set_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingEntrySetCreateParams, + Increase::Internal::AnyHash + ) + end # The bookkeeping entries. sig do @@ -65,7 +71,12 @@ module Increase class Entry < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::BookkeepingEntrySetCreateParams::Entry, + Increase::Internal::AnyHash + ) + end # The identifier for the Bookkeeping Account impacted by this entry. sig { returns(String) } diff --git a/rbi/increase/models/bookkeeping_entry_set_list_params.rbi b/rbi/increase/models/bookkeeping_entry_set_list_params.rbi index e0ced98d5..0ea27957f 100644 --- a/rbi/increase/models/bookkeeping_entry_set_list_params.rbi +++ b/rbi/increase/models/bookkeeping_entry_set_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingEntrySetListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi b/rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi index 0e9251a49..442fbfb5f 100644 --- a/rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi +++ b/rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::BookkeepingEntrySetRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/card.rbi b/rbi/increase/models/card.rbi index faea3cf9c..7c67f5c8c 100644 --- a/rbi/increase/models/card.rbi +++ b/rbi/increase/models/card.rbi @@ -3,7 +3,8 @@ module Increase module Models class Card < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Card, Increase::Internal::AnyHash) } # The card identifier. sig { returns(String) } @@ -156,7 +157,9 @@ module Increase class BillingAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Card::BillingAddress, Increase::Internal::AnyHash) + end # The city of the billing address. sig { returns(T.nilable(String)) } @@ -219,7 +222,9 @@ module Increase class DigitalWallet < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Card::DigitalWallet, Increase::Internal::AnyHash) + end # The digital card profile assigned to this digital card. Card profiles may also # be assigned at the program level. diff --git a/rbi/increase/models/card_create_params.rbi b/rbi/increase/models/card_create_params.rbi index 9d0ee9850..e3d839061 100644 --- a/rbi/increase/models/card_create_params.rbi +++ b/rbi/increase/models/card_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardCreateParams, Increase::Internal::AnyHash) + end # The Account the card should belong to. sig { returns(String) } @@ -100,7 +103,12 @@ module Increase class BillingAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardCreateParams::BillingAddress, + Increase::Internal::AnyHash + ) + end # The city of the billing address. sig { returns(String) } @@ -166,7 +174,12 @@ module Increase class DigitalWallet < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardCreateParams::DigitalWallet, + Increase::Internal::AnyHash + ) + end # The digital card profile assigned to this digital card. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/card_details.rbi b/rbi/increase/models/card_details.rbi index e3fc4f210..93246d12e 100644 --- a/rbi/increase/models/card_details.rbi +++ b/rbi/increase/models/card_details.rbi @@ -3,7 +3,10 @@ module Increase module Models class CardDetails < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardDetails, Increase::Internal::AnyHash) + end # The identifier for the Card for which sensitive details have been returned. sig { returns(String) } diff --git a/rbi/increase/models/card_details_params.rbi b/rbi/increase/models/card_details_params.rbi index 4f07f7acd..079e961b6 100644 --- a/rbi/increase/models/card_details_params.rbi +++ b/rbi/increase/models/card_details_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardDetailsParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/card_dispute.rbi b/rbi/increase/models/card_dispute.rbi index 8b7ad1eb3..44bec2e02 100644 --- a/rbi/increase/models/card_dispute.rbi +++ b/rbi/increase/models/card_dispute.rbi @@ -3,7 +3,10 @@ module Increase module Models class CardDispute < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardDispute, Increase::Internal::AnyHash) + end # The Card Dispute identifier. sig { returns(String) } @@ -158,7 +161,12 @@ module Increase class Acceptance < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardDispute::Acceptance, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Card Dispute was accepted. @@ -210,7 +218,9 @@ module Increase class Loss < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::CardDispute::Loss, Increase::Internal::AnyHash) + end # The identifier of the Card Dispute that was lost. sig { returns(String) } @@ -270,7 +280,9 @@ module Increase class Rejection < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::CardDispute::Rejection, Increase::Internal::AnyHash) + end # The identifier of the Card Dispute that was rejected. sig { returns(String) } @@ -375,7 +387,9 @@ module Increase class Win < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::CardDispute::Win, Increase::Internal::AnyHash) + end # The identifier of the Card Dispute that was won. sig { returns(String) } diff --git a/rbi/increase/models/card_dispute_create_params.rbi b/rbi/increase/models/card_dispute_create_params.rbi index 9eb4bcf64..3277c91a8 100644 --- a/rbi/increase/models/card_dispute_create_params.rbi +++ b/rbi/increase/models/card_dispute_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardDisputeCreateParams, Increase::Internal::AnyHash) + end # The Transaction you wish to dispute. This Transaction must have a `source_type` # of `card_settlement`. diff --git a/rbi/increase/models/card_dispute_list_params.rbi b/rbi/increase/models/card_dispute_list_params.rbi index 28a930631..43e29c840 100644 --- a/rbi/increase/models/card_dispute_list_params.rbi +++ b/rbi/increase/models/card_dispute_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardDisputeListParams, Increase::Internal::AnyHash) + end sig { returns(T.nilable(Increase::CardDisputeListParams::CreatedAt)) } attr_reader :created_at @@ -95,7 +98,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardDisputeListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -164,7 +172,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardDisputeListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Card Disputes for those with the specified status or statuses. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/card_dispute_retrieve_params.rbi b/rbi/increase/models/card_dispute_retrieve_params.rbi index 00882a95e..c7976504c 100644 --- a/rbi/increase/models/card_dispute_retrieve_params.rbi +++ b/rbi/increase/models/card_dispute_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CardDisputeRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/card_list_params.rbi b/rbi/increase/models/card_list_params.rbi index a42194d9a..63553e7e9 100644 --- a/rbi/increase/models/card_list_params.rbi +++ b/rbi/increase/models/card_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardListParams, Increase::Internal::AnyHash) + end # Filter Cards to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -102,7 +105,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -171,7 +179,9 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::CardListParams::Status, Increase::Internal::AnyHash) + end # Filter Cards by status. For GET requests, this should be encoded as a # comma-delimited string, such as `?in=one,two,three`. diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index fa9569aa4..b9bc96777 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -3,7 +3,10 @@ module Increase module Models class CardPayment < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardPayment, Increase::Internal::AnyHash) + end # The Card Payment identifier. sig { returns(String) } @@ -105,7 +108,9 @@ module Increase class Element < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::CardPayment::Element, Increase::Internal::AnyHash) + end # A Card Authentication object. This field will be present in the JSON response if # and only if `category` is equal to `card_authentication`. Card Authentications @@ -428,7 +433,12 @@ module Increase class CardAuthentication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthentication, + Increase::Internal::AnyHash + ) + end # The Card Authentication identifier. sig { returns(String) } @@ -708,7 +718,12 @@ module Increase class Challenge < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthentication::Challenge, + Increase::Internal::AnyHash + ) + end # Details about the challenge verification attempts, if any happened. sig do @@ -792,7 +807,12 @@ module Increase class Attempt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time of the Card # Authentication Challenge Attempt. @@ -1152,7 +1172,12 @@ module Increase class CardAuthorization < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization, + Increase::Internal::AnyHash + ) + end # The Card Authorization identifier. sig { returns(String) } @@ -1649,7 +1674,12 @@ module Increase class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization::NetworkDetails, + Increase::Internal::AnyHash + ) + end # The payment network used to process this card authorization. sig do @@ -1746,7 +1776,12 @@ module Increase class Visa < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) + end # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -2089,7 +2124,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -2242,7 +2282,12 @@ module Increase class Verification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization::Verification, + Increase::Internal::AnyHash + ) + end # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -2312,7 +2357,12 @@ module Increase class CardVerificationCode < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode, + Increase::Internal::AnyHash + ) + end # The result of verifying the Card Verification Code. sig do @@ -2395,7 +2445,12 @@ module Increase class CardholderAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress, + Increase::Internal::AnyHash + ) + end # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } @@ -2535,7 +2590,12 @@ module Increase class CardAuthorizationExpiration < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorizationExpiration, + Increase::Internal::AnyHash + ) + end # The Card Authorization Expiration identifier. sig { returns(String) } @@ -2762,7 +2822,12 @@ module Increase class CardDecline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline, + Increase::Internal::AnyHash + ) + end # The Card Decline identifier. sig { returns(String) } @@ -3263,7 +3328,12 @@ module Increase class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline::NetworkDetails, + Increase::Internal::AnyHash + ) + end # The payment network used to process this card authorization. sig do @@ -3360,7 +3430,12 @@ module Increase class Visa < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) + end # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -3703,7 +3778,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -4042,7 +4122,12 @@ module Increase class Verification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline::Verification, + Increase::Internal::AnyHash + ) + end # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -4112,7 +4197,12 @@ module Increase class CardVerificationCode < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline::Verification::CardVerificationCode, + Increase::Internal::AnyHash + ) + end # The result of verifying the Card Verification Code. sig do @@ -4195,7 +4285,12 @@ module Increase class CardholderAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress, + Increase::Internal::AnyHash + ) + end # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } @@ -4335,7 +4430,12 @@ module Increase class CardFuelConfirmation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardFuelConfirmation, + Increase::Internal::AnyHash + ) + end # The Card Fuel Confirmation identifier. sig { returns(String) } @@ -4562,7 +4662,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardFuelConfirmation::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -4649,7 +4754,12 @@ module Increase class CardIncrement < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardIncrement, + Increase::Internal::AnyHash + ) + end # The Card Increment identifier. sig { returns(String) } @@ -4965,7 +5075,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardIncrement::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -5052,7 +5167,12 @@ module Increase class CardRefund < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund, + Increase::Internal::AnyHash + ) + end # The Card Refund identifier. sig { returns(String) } @@ -5331,7 +5451,12 @@ module Increase class Cashback < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund::Cashback, + Increase::Internal::AnyHash + ) + end # The cashback amount given as a string containing a decimal number. The amount is # a positive number if it will be credited to you (e.g., settlements) and a @@ -5514,7 +5639,12 @@ module Increase class Interchange < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund::Interchange, + Increase::Internal::AnyHash + ) + end # The interchange amount given as a string containing a decimal number in major # units (so e.g., "3.14" for $3.14). The amount is a positive number if it is @@ -5642,7 +5772,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -5693,7 +5828,12 @@ module Increase class PurchaseDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund::PurchaseDetails, + Increase::Internal::AnyHash + ) + end # Fields specific to car rentals. sig do @@ -5878,7 +6018,12 @@ module Increase class CarRental < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund::PurchaseDetails::CarRental, + Increase::Internal::AnyHash + ) + end # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } @@ -6174,7 +6319,12 @@ module Increase class Lodging < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund::PurchaseDetails::Lodging, + Increase::Internal::AnyHash + ) + end # Date the customer checked in. sig { returns(T.nilable(Date)) } @@ -6534,7 +6684,12 @@ module Increase class Travel < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel, + Increase::Internal::AnyHash + ) + end # Ancillary purchases in addition to the airfare. sig do @@ -6729,7 +6884,10 @@ module Increase class Ancillary < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary, + Increase::Internal::AnyHash + ) end # If this purchase has a connection or relationship to another purchase, such as a @@ -6873,7 +7031,10 @@ module Increase class Service < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service, + Increase::Internal::AnyHash + ) end # Category of the ancillary service. @@ -7267,7 +7428,10 @@ module Increase class TripLeg < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg, + Increase::Internal::AnyHash + ) end # Carrier code (e.g., United Airlines, Jet Blue, etc.). @@ -7426,7 +7590,12 @@ module Increase class CardReversal < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardReversal, + Increase::Internal::AnyHash + ) + end # The Card Reversal identifier. sig { returns(String) } @@ -7752,7 +7921,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardReversal::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -7891,7 +8065,12 @@ module Increase class CardSettlement < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement, + Increase::Internal::AnyHash + ) + end # The Card Settlement identifier. sig { returns(String) } @@ -8193,7 +8372,12 @@ module Increase class Cashback < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement::Cashback, + Increase::Internal::AnyHash + ) + end # The cashback amount given as a string containing a decimal number. The amount is # a positive number if it will be credited to you (e.g., settlements) and a @@ -8376,7 +8560,12 @@ module Increase class Interchange < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement::Interchange, + Increase::Internal::AnyHash + ) + end # The interchange amount given as a string containing a decimal number in major # units (so e.g., "3.14" for $3.14). The amount is a positive number if it is @@ -8504,7 +8693,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -8555,7 +8749,12 @@ module Increase class PurchaseDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement::PurchaseDetails, + Increase::Internal::AnyHash + ) + end # Fields specific to car rentals. sig do @@ -8740,7 +8939,12 @@ module Increase class CarRental < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement::PurchaseDetails::CarRental, + Increase::Internal::AnyHash + ) + end # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } @@ -9036,7 +9240,12 @@ module Increase class Lodging < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging, + Increase::Internal::AnyHash + ) + end # Date the customer checked in. sig { returns(T.nilable(Date)) } @@ -9396,7 +9605,12 @@ module Increase class Travel < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel, + Increase::Internal::AnyHash + ) + end # Ancillary purchases in addition to the airfare. sig do @@ -9591,7 +9805,10 @@ module Increase class Ancillary < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary, + Increase::Internal::AnyHash + ) end # If this purchase has a connection or relationship to another purchase, such as a @@ -9735,7 +9952,10 @@ module Increase class Service < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service, + Increase::Internal::AnyHash + ) end # Category of the ancillary service. @@ -10129,7 +10349,10 @@ module Increase class TripLeg < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg, + Increase::Internal::AnyHash + ) end # Carrier code (e.g., United Airlines, Jet Blue, etc.). @@ -10291,7 +10514,12 @@ module Increase class CardValidation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation, + Increase::Internal::AnyHash + ) + end # The Card Validation identifier. sig { returns(String) } @@ -10671,7 +10899,12 @@ module Increase class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation::NetworkDetails, + Increase::Internal::AnyHash + ) + end # The payment network used to process this card authorization. sig do @@ -10768,7 +11001,12 @@ module Increase class Visa < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) + end # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -11111,7 +11349,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -11197,7 +11440,12 @@ module Increase class Verification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation::Verification, + Increase::Internal::AnyHash + ) + end # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -11267,7 +11515,12 @@ module Increase class CardVerificationCode < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation::Verification::CardVerificationCode, + Increase::Internal::AnyHash + ) + end # The result of verifying the Card Verification Code. sig do @@ -11350,7 +11603,12 @@ module Increase class CardholderAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress, + Increase::Internal::AnyHash + ) + end # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } @@ -11588,7 +11846,9 @@ module Increase class State < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::CardPayment::State, Increase::Internal::AnyHash) + end # The total authorized amount in the minor unit of the transaction's currency. For # dollars, for example, this is cents. diff --git a/rbi/increase/models/card_payment_list_params.rbi b/rbi/increase/models/card_payment_list_params.rbi index 3dad71658..7127ca804 100644 --- a/rbi/increase/models/card_payment_list_params.rbi +++ b/rbi/increase/models/card_payment_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardPaymentListParams, Increase::Internal::AnyHash) + end # Filter Card Payments to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -89,7 +92,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPaymentListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/card_payment_retrieve_params.rbi b/rbi/increase/models/card_payment_retrieve_params.rbi index 208a5eb19..44532ba22 100644 --- a/rbi/increase/models/card_payment_retrieve_params.rbi +++ b/rbi/increase/models/card_payment_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CardPaymentRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/card_purchase_supplement.rbi b/rbi/increase/models/card_purchase_supplement.rbi index 76d7daec8..f1a2c2c39 100644 --- a/rbi/increase/models/card_purchase_supplement.rbi +++ b/rbi/increase/models/card_purchase_supplement.rbi @@ -3,7 +3,10 @@ module Increase module Models class CardPurchaseSupplement < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardPurchaseSupplement, Increase::Internal::AnyHash) + end # The Card Purchase Supplement identifier. sig { returns(String) } @@ -89,7 +92,12 @@ module Increase class Invoice < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPurchaseSupplement::Invoice, + Increase::Internal::AnyHash + ) + end # Discount given to cardholder. sig { returns(T.nilable(Integer)) } @@ -372,7 +380,12 @@ module Increase class LineItem < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPurchaseSupplement::LineItem, + Increase::Internal::AnyHash + ) + end # The Card Purchase Supplement Line Item identifier. sig { returns(String) } diff --git a/rbi/increase/models/card_purchase_supplement_list_params.rbi b/rbi/increase/models/card_purchase_supplement_list_params.rbi index 29c19a6d9..36912a9e0 100644 --- a/rbi/increase/models/card_purchase_supplement_list_params.rbi +++ b/rbi/increase/models/card_purchase_supplement_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CardPurchaseSupplementListParams, + Increase::Internal::AnyHash + ) + end # Filter Card Purchase Supplements to ones belonging to the specified Card # Payment. @@ -86,7 +92,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardPurchaseSupplementListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/card_purchase_supplement_retrieve_params.rbi b/rbi/increase/models/card_purchase_supplement_retrieve_params.rbi index 952932a78..e5a52b8ce 100644 --- a/rbi/increase/models/card_purchase_supplement_retrieve_params.rbi +++ b/rbi/increase/models/card_purchase_supplement_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CardPurchaseSupplementRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/card_retrieve_params.rbi b/rbi/increase/models/card_retrieve_params.rbi index f2981fa4b..5a541b0b4 100644 --- a/rbi/increase/models/card_retrieve_params.rbi +++ b/rbi/increase/models/card_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/card_update_params.rbi b/rbi/increase/models/card_update_params.rbi index cfdc94c02..8bf82ac40 100644 --- a/rbi/increase/models/card_update_params.rbi +++ b/rbi/increase/models/card_update_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CardUpdateParams, Increase::Internal::AnyHash) + end # The card's updated billing address. sig { returns(T.nilable(Increase::CardUpdateParams::BillingAddress)) } @@ -99,7 +102,12 @@ module Increase class BillingAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardUpdateParams::BillingAddress, + Increase::Internal::AnyHash + ) + end # The city of the billing address. sig { returns(String) } @@ -165,7 +173,12 @@ module Increase class DigitalWallet < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CardUpdateParams::DigitalWallet, + Increase::Internal::AnyHash + ) + end # The digital card profile assigned to this digital card. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/check_deposit.rbi b/rbi/increase/models/check_deposit.rbi index e225a0cd2..73cfb4547 100644 --- a/rbi/increase/models/check_deposit.rbi +++ b/rbi/increase/models/check_deposit.rbi @@ -3,7 +3,10 @@ module Increase module Models class CheckDeposit < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CheckDeposit, Increase::Internal::AnyHash) + end # The deposit's identifier. sig { returns(String) } @@ -240,7 +243,12 @@ module Increase class DepositAcceptance < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckDeposit::DepositAcceptance, + Increase::Internal::AnyHash + ) + end # The account number printed on the check. sig { returns(String) } @@ -398,7 +406,12 @@ module Increase class DepositRejection < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckDeposit::DepositRejection, + Increase::Internal::AnyHash + ) + end # The rejected amount in the minor unit of check's currency. For dollars, for # example, this is cents. @@ -649,7 +662,12 @@ module Increase class DepositReturn < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckDeposit::DepositReturn, + Increase::Internal::AnyHash + ) + end # The returned amount in USD cents. sig { returns(Integer) } @@ -1006,7 +1024,12 @@ module Increase class DepositSubmission < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckDeposit::DepositSubmission, + Increase::Internal::AnyHash + ) + end # The ID for the File containing the check back image that was submitted to the # Check21 network. @@ -1058,7 +1081,12 @@ module Increase class InboundFundsHold < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckDeposit::InboundFundsHold, + Increase::Internal::AnyHash + ) + end # The Inbound Funds Hold identifier. sig { returns(String) } diff --git a/rbi/increase/models/check_deposit_create_params.rbi b/rbi/increase/models/check_deposit_create_params.rbi index db720e8a8..78ad0ea50 100644 --- a/rbi/increase/models/check_deposit_create_params.rbi +++ b/rbi/increase/models/check_deposit_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CheckDepositCreateParams, Increase::Internal::AnyHash) + end # The identifier for the Account to deposit the check in. sig { returns(String) } diff --git a/rbi/increase/models/check_deposit_list_params.rbi b/rbi/increase/models/check_deposit_list_params.rbi index 96e7bfde1..7d18b658d 100644 --- a/rbi/increase/models/check_deposit_list_params.rbi +++ b/rbi/increase/models/check_deposit_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CheckDepositListParams, Increase::Internal::AnyHash) + end # Filter Check Deposits to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -95,7 +98,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckDepositListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/check_deposit_retrieve_params.rbi b/rbi/increase/models/check_deposit_retrieve_params.rbi index 4612757a3..786b09b1c 100644 --- a/rbi/increase/models/check_deposit_retrieve_params.rbi +++ b/rbi/increase/models/check_deposit_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CheckDepositRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/check_transfer.rbi b/rbi/increase/models/check_transfer.rbi index 3412e4742..8e70c8837 100644 --- a/rbi/increase/models/check_transfer.rbi +++ b/rbi/increase/models/check_transfer.rbi @@ -3,7 +3,10 @@ module Increase module Models class CheckTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CheckTransfer, Increase::Internal::AnyHash) + end # The Check transfer's identifier. sig { returns(String) } @@ -306,7 +309,12 @@ module Increase class Approval < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::Approval, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -346,7 +354,12 @@ module Increase class Cancellation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::Cancellation, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -386,7 +399,12 @@ module Increase class CreatedBy < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::CreatedBy, + Increase::Internal::AnyHash + ) + end # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::CheckTransfer::CreatedBy::APIKey)) } @@ -477,7 +495,12 @@ module Increase class APIKey < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end # The description set for the API key when it was created. sig { returns(T.nilable(String)) } @@ -542,7 +565,12 @@ module Increase class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::CreatedBy::OAuthApplication, + Increase::Internal::AnyHash + ) + end # The name of the OAuth Application. sig { returns(String) } @@ -563,7 +591,12 @@ module Increase class User < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::CreatedBy::User, + Increase::Internal::AnyHash + ) + end # The email address of the User. sig { returns(String) } @@ -654,7 +687,9 @@ module Increase class Mailing < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::CheckTransfer::Mailing, Increase::Internal::AnyHash) + end # The ID of the file corresponding to an image of the check that was mailed, if # available. @@ -706,7 +741,12 @@ module Increase class PhysicalCheck < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::PhysicalCheck, + Increase::Internal::AnyHash + ) + end # The ID of the file for the check attachment. sig { returns(T.nilable(String)) } @@ -853,7 +893,12 @@ module Increase class MailingAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::PhysicalCheck::MailingAddress, + Increase::Internal::AnyHash + ) + end # The city of the check's destination. sig { returns(T.nilable(String)) } @@ -924,7 +969,12 @@ module Increase class ReturnAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::PhysicalCheck::ReturnAddress, + Increase::Internal::AnyHash + ) + end # The city of the check's destination. sig { returns(T.nilable(String)) } @@ -1033,7 +1083,12 @@ module Increase class TrackingUpdate < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::PhysicalCheck::TrackingUpdate, + Increase::Internal::AnyHash + ) + end # The type of tracking event. sig do @@ -1204,7 +1259,12 @@ module Increase class StopPaymentRequest < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::StopPaymentRequest, + Increase::Internal::AnyHash + ) + end # The reason why this transfer was stopped. sig do @@ -1350,7 +1410,12 @@ module Increase class Submission < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::Submission, + Increase::Internal::AnyHash + ) + end # Per USPS requirements, Increase will standardize the address to USPS standards # and check it against the USPS National Change of Address (NCOA) database before @@ -1475,7 +1540,12 @@ module Increase class SubmittedAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::Submission::SubmittedAddress, + Increase::Internal::AnyHash + ) + end # The submitted address city. sig { returns(String) } @@ -1548,7 +1618,12 @@ module Increase class ThirdParty < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransfer::ThirdParty, + Increase::Internal::AnyHash + ) + end # The name that you will print on the check. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/check_transfer_approve_params.rbi b/rbi/increase/models/check_transfer_approve_params.rbi index 50e424608..e2425b0ce 100644 --- a/rbi/increase/models/check_transfer_approve_params.rbi +++ b/rbi/increase/models/check_transfer_approve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CheckTransferApproveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/check_transfer_cancel_params.rbi b/rbi/increase/models/check_transfer_cancel_params.rbi index d6815512f..125afe569 100644 --- a/rbi/increase/models/check_transfer_cancel_params.rbi +++ b/rbi/increase/models/check_transfer_cancel_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CheckTransferCancelParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/check_transfer_create_params.rbi b/rbi/increase/models/check_transfer_create_params.rbi index 7813a8af5..7bde20fd1 100644 --- a/rbi/increase/models/check_transfer_create_params.rbi +++ b/rbi/increase/models/check_transfer_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CheckTransferCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier for the account that will send the transfer. sig { returns(String) } @@ -178,7 +184,12 @@ module Increase class PhysicalCheck < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransferCreateParams::PhysicalCheck, + Increase::Internal::AnyHash + ) + end # Details for where Increase will mail the check. sig do @@ -333,7 +344,12 @@ module Increase class MailingAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress, + Increase::Internal::AnyHash + ) + end # The city component of the check's destination address. sig { returns(String) } @@ -399,7 +415,12 @@ module Increase class ReturnAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress, + Increase::Internal::AnyHash + ) + end # The city of the return address. sig { returns(String) } @@ -515,7 +536,12 @@ module Increase class ThirdParty < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransferCreateParams::ThirdParty, + Increase::Internal::AnyHash + ) + end # The pay-to name you will print on the check. If provided, this is used for # [Positive Pay](/documentation/positive-pay). If this is omitted, Increase will diff --git a/rbi/increase/models/check_transfer_list_params.rbi b/rbi/increase/models/check_transfer_list_params.rbi index bfbee7e2b..ebc8a7d07 100644 --- a/rbi/increase/models/check_transfer_list_params.rbi +++ b/rbi/increase/models/check_transfer_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::CheckTransferListParams, Increase::Internal::AnyHash) + end # Filter Check Transfers to those that originated from the specified Account. sig { returns(T.nilable(String)) } @@ -106,7 +109,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -175,7 +183,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::CheckTransferListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Check Transfers to those that have the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/check_transfer_retrieve_params.rbi b/rbi/increase/models/check_transfer_retrieve_params.rbi index 542a082ad..45e799ca0 100644 --- a/rbi/increase/models/check_transfer_retrieve_params.rbi +++ b/rbi/increase/models/check_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CheckTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/check_transfer_stop_payment_params.rbi b/rbi/increase/models/check_transfer_stop_payment_params.rbi index 27ab3341c..4a032dcbd 100644 --- a/rbi/increase/models/check_transfer_stop_payment_params.rbi +++ b/rbi/increase/models/check_transfer_stop_payment_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::CheckTransferStopPaymentParams, + Increase::Internal::AnyHash + ) + end # The reason why this transfer should be stopped. sig do diff --git a/rbi/increase/models/declined_transaction.rbi b/rbi/increase/models/declined_transaction.rbi index 1a61f5998..17cc616f1 100644 --- a/rbi/increase/models/declined_transaction.rbi +++ b/rbi/increase/models/declined_transaction.rbi @@ -3,7 +3,10 @@ module Increase module Models class DeclinedTransaction < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::DeclinedTransaction, Increase::Internal::AnyHash) + end # The Declined Transaction identifier. sig { returns(String) } @@ -212,7 +215,12 @@ module Increase class Source < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source, + Increase::Internal::AnyHash + ) + end # An ACH Decline object. This field will be present in the JSON response if and # only if `category` is equal to `ach_decline`. @@ -433,7 +441,12 @@ module Increase class ACHDecline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::ACHDecline, + Increase::Internal::AnyHash + ) + end # The ACH Decline's identifier. sig { returns(String) } @@ -741,7 +754,12 @@ module Increase class CardDecline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline, + Increase::Internal::AnyHash + ) + end # The Card Decline identifier. sig { returns(String) } @@ -1246,7 +1264,12 @@ module Increase class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline::NetworkDetails, + Increase::Internal::AnyHash + ) + end # The payment network used to process this card authorization. sig do @@ -1343,7 +1366,12 @@ module Increase class Visa < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) + end # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -1686,7 +1714,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -2025,7 +2058,12 @@ module Increase class Verification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline::Verification, + Increase::Internal::AnyHash + ) + end # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -2095,7 +2133,12 @@ module Increase class CardVerificationCode < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode, + Increase::Internal::AnyHash + ) + end # The result of verifying the Card Verification Code. sig do @@ -2178,7 +2221,12 @@ module Increase class CardholderAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress, + Increase::Internal::AnyHash + ) + end # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } @@ -2389,7 +2437,12 @@ module Increase class CheckDecline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CheckDecline, + Increase::Internal::AnyHash + ) + end # The declined amount in USD cents. sig { returns(Integer) } @@ -2626,7 +2679,12 @@ module Increase class CheckDepositRejection < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CheckDepositRejection, + Increase::Internal::AnyHash + ) + end # The rejected amount in the minor unit of check's currency. For dollars, for # example, this is cents. @@ -2884,7 +2942,12 @@ module Increase class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline, + Increase::Internal::AnyHash + ) + end # The declined amount in the minor unit of the destination account currency. For # dollars, for example, this is cents. @@ -3141,7 +3204,12 @@ module Increase class WireDecline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::WireDecline, + Increase::Internal::AnyHash + ) + end # The identifier of the Inbound Wire Transfer that was declined. sig { returns(String) } diff --git a/rbi/increase/models/declined_transaction_list_params.rbi b/rbi/increase/models/declined_transaction_list_params.rbi index 59235a168..1048f5ced 100644 --- a/rbi/increase/models/declined_transaction_list_params.rbi +++ b/rbi/increase/models/declined_transaction_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DeclinedTransactionListParams, + Increase::Internal::AnyHash + ) + end # Filter Declined Transactions to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -107,7 +113,12 @@ module Increase class Category < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransactionListParams::Category, + Increase::Internal::AnyHash + ) + end # Return results whose value is in the provided list. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. @@ -235,7 +246,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DeclinedTransactionListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/declined_transaction_retrieve_params.rbi b/rbi/increase/models/declined_transaction_retrieve_params.rbi index 1e9073965..0a08f1a46 100644 --- a/rbi/increase/models/declined_transaction_retrieve_params.rbi +++ b/rbi/increase/models/declined_transaction_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DeclinedTransactionRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/digital_card_profile.rbi b/rbi/increase/models/digital_card_profile.rbi index b481ee86f..69d0c8ba1 100644 --- a/rbi/increase/models/digital_card_profile.rbi +++ b/rbi/increase/models/digital_card_profile.rbi @@ -3,7 +3,10 @@ module Increase module Models class DigitalCardProfile < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::DigitalCardProfile, Increase::Internal::AnyHash) + end # The Card Profile identifier. sig { returns(String) } @@ -185,7 +188,12 @@ module Increase class TextColor < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalCardProfile::TextColor, + Increase::Internal::AnyHash + ) + end # The value of the blue channel in the RGB color. sig { returns(Integer) } diff --git a/rbi/increase/models/digital_card_profile_archive_params.rbi b/rbi/increase/models/digital_card_profile_archive_params.rbi index 737373aca..17281e975 100644 --- a/rbi/increase/models/digital_card_profile_archive_params.rbi +++ b/rbi/increase/models/digital_card_profile_archive_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DigitalCardProfileArchiveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/digital_card_profile_clone_params.rbi b/rbi/increase/models/digital_card_profile_clone_params.rbi index 0c030d047..06d308c0b 100644 --- a/rbi/increase/models/digital_card_profile_clone_params.rbi +++ b/rbi/increase/models/digital_card_profile_clone_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DigitalCardProfileCloneParams, + Increase::Internal::AnyHash + ) + end # The identifier of the File containing the card's icon image. sig { returns(T.nilable(String)) } @@ -136,7 +142,12 @@ module Increase class TextColor < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalCardProfileCloneParams::TextColor, + Increase::Internal::AnyHash + ) + end # The value of the blue channel in the RGB color. sig { returns(Integer) } diff --git a/rbi/increase/models/digital_card_profile_create_params.rbi b/rbi/increase/models/digital_card_profile_create_params.rbi index 984f49a91..b3ec4d3ec 100644 --- a/rbi/increase/models/digital_card_profile_create_params.rbi +++ b/rbi/increase/models/digital_card_profile_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DigitalCardProfileCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the File containing the card's icon image. sig { returns(String) } @@ -122,7 +128,12 @@ module Increase class TextColor < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalCardProfileCreateParams::TextColor, + Increase::Internal::AnyHash + ) + end # The value of the blue channel in the RGB color. sig { returns(Integer) } diff --git a/rbi/increase/models/digital_card_profile_list_params.rbi b/rbi/increase/models/digital_card_profile_list_params.rbi index 215a65e40..3471c28d8 100644 --- a/rbi/increase/models/digital_card_profile_list_params.rbi +++ b/rbi/increase/models/digital_card_profile_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DigitalCardProfileListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -84,7 +90,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalCardProfileListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Digital Card Profiles for those with the specified digital wallet status # or statuses. For GET requests, this should be encoded as a comma-delimited diff --git a/rbi/increase/models/digital_card_profile_retrieve_params.rbi b/rbi/increase/models/digital_card_profile_retrieve_params.rbi index 01ff79af0..7dd704134 100644 --- a/rbi/increase/models/digital_card_profile_retrieve_params.rbi +++ b/rbi/increase/models/digital_card_profile_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DigitalCardProfileRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/digital_wallet_token.rbi b/rbi/increase/models/digital_wallet_token.rbi index 1ad28ab20..f702b2bcd 100644 --- a/rbi/increase/models/digital_wallet_token.rbi +++ b/rbi/increase/models/digital_wallet_token.rbi @@ -3,7 +3,10 @@ module Increase module Models class DigitalWalletToken < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::DigitalWalletToken, Increase::Internal::AnyHash) + end # The Digital Wallet Token identifier. sig { returns(String) } @@ -117,7 +120,12 @@ module Increase class Cardholder < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalWalletToken::Cardholder, + Increase::Internal::AnyHash + ) + end # Name of the cardholder, for example "John Smith". sig { returns(T.nilable(String)) } @@ -138,7 +146,12 @@ module Increase class Device < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalWalletToken::Device, + Increase::Internal::AnyHash + ) + end # Device type. sig do @@ -396,7 +409,12 @@ module Increase class Update < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalWalletToken::Update, + Increase::Internal::AnyHash + ) + end # The status the update changed this Digital Wallet Token to. sig do diff --git a/rbi/increase/models/digital_wallet_token_list_params.rbi b/rbi/increase/models/digital_wallet_token_list_params.rbi index ee853c25a..fcd768fb0 100644 --- a/rbi/increase/models/digital_wallet_token_list_params.rbi +++ b/rbi/increase/models/digital_wallet_token_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DigitalWalletTokenListParams, + Increase::Internal::AnyHash + ) + end # Filter Digital Wallet Tokens to ones belonging to the specified Card. sig { returns(T.nilable(String)) } @@ -80,7 +86,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DigitalWalletTokenListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/digital_wallet_token_retrieve_params.rbi b/rbi/increase/models/digital_wallet_token_retrieve_params.rbi index f2a6f0666..d386a701d 100644 --- a/rbi/increase/models/digital_wallet_token_retrieve_params.rbi +++ b/rbi/increase/models/digital_wallet_token_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::DigitalWalletTokenRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/document.rbi b/rbi/increase/models/document.rbi index e8bed564e..42d58b329 100644 --- a/rbi/increase/models/document.rbi +++ b/rbi/increase/models/document.rbi @@ -3,7 +3,8 @@ module Increase module Models class Document < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Document, Increase::Internal::AnyHash) } # The Document identifier. sig { returns(String) } diff --git a/rbi/increase/models/document_list_params.rbi b/rbi/increase/models/document_list_params.rbi index d05daef7c..ebd7373b5 100644 --- a/rbi/increase/models/document_list_params.rbi +++ b/rbi/increase/models/document_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::DocumentListParams, Increase::Internal::AnyHash) + end sig { returns(T.nilable(Increase::DocumentListParams::Category)) } attr_reader :category @@ -87,7 +90,12 @@ module Increase class Category < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DocumentListParams::Category, + Increase::Internal::AnyHash + ) + end # Filter Documents for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -181,7 +189,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::DocumentListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/document_retrieve_params.rbi b/rbi/increase/models/document_retrieve_params.rbi index f4a169006..690e24b08 100644 --- a/rbi/increase/models/document_retrieve_params.rbi +++ b/rbi/increase/models/document_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::DocumentRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/entity.rbi b/rbi/increase/models/entity.rbi index 944ae7490..810f7db2c 100644 --- a/rbi/increase/models/entity.rbi +++ b/rbi/increase/models/entity.rbi @@ -3,7 +3,8 @@ module Increase module Models class Entity < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Entity, Increase::Internal::AnyHash) } # The entity's identifier. sig { returns(String) } @@ -210,7 +211,9 @@ module Increase class Corporation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Entity::Corporation, Increase::Internal::AnyHash) + end # The corporation's address. sig { returns(Increase::Entity::Corporation::Address) } @@ -304,7 +307,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Corporation::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -369,7 +377,12 @@ module Increase class BeneficialOwner < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Corporation::BeneficialOwner, + Increase::Internal::AnyHash + ) + end # The identifier of this beneficial owner. sig { returns(String) } @@ -440,7 +453,12 @@ module Increase class Individual < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Corporation::BeneficialOwner::Individual, + Increase::Internal::AnyHash + ) + end # The person's address. sig do @@ -522,7 +540,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Corporation::BeneficialOwner::Individual::Address, + Increase::Internal::AnyHash + ) + end # The city, district, town, or village of the address. sig { returns(T.nilable(String)) } @@ -595,7 +618,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Corporation::BeneficialOwner::Individual::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -742,7 +770,12 @@ module Increase class GovernmentAuthority < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::GovernmentAuthority, + Increase::Internal::AnyHash + ) + end # The government authority's address. sig { returns(Increase::Entity::GovernmentAuthority::Address) } @@ -833,7 +866,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::GovernmentAuthority::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -898,7 +936,12 @@ module Increase class AuthorizedPerson < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::GovernmentAuthority::AuthorizedPerson, + Increase::Internal::AnyHash + ) + end # The identifier of this authorized person. sig { returns(String) } @@ -959,7 +1002,9 @@ module Increase class Joint < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Entity::Joint, Increase::Internal::AnyHash) + end # The two individuals that share control of the entity. sig { returns(T::Array[Increase::Entity::Joint::Individual]) } @@ -997,7 +1042,12 @@ module Increase class Individual < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Joint::Individual, + Increase::Internal::AnyHash + ) + end # The person's address. sig { returns(Increase::Entity::Joint::Individual::Address) } @@ -1067,7 +1117,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Joint::Individual::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -1132,7 +1187,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Joint::Individual::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -1240,7 +1300,9 @@ module Increase class NaturalPerson < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Entity::NaturalPerson, Increase::Internal::AnyHash) + end # The person's address. sig { returns(Increase::Entity::NaturalPerson::Address) } @@ -1309,7 +1371,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::NaturalPerson::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -1374,7 +1441,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::NaturalPerson::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -1540,7 +1612,12 @@ module Increase class ThirdPartyVerification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::ThirdPartyVerification, + Increase::Internal::AnyHash + ) + end # The reference identifier for the third party verification. sig { returns(String) } @@ -1620,7 +1697,9 @@ module Increase class Trust < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Entity::Trust, Increase::Internal::AnyHash) + end # The trust's address. sig { returns(Increase::Entity::Trust::Address) } @@ -1718,7 +1797,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -1808,7 +1892,12 @@ module Increase class Grantor < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Grantor, + Increase::Internal::AnyHash + ) + end # The person's address. sig { returns(Increase::Entity::Trust::Grantor::Address) } @@ -1879,7 +1968,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Grantor::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -1944,7 +2038,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Grantor::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -2051,7 +2150,12 @@ module Increase class Trustee < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Trustee, + Increase::Internal::AnyHash + ) + end # The individual trustee of the trust. Will be present if the trustee's # `structure` is equal to `individual`. @@ -2105,7 +2209,12 @@ module Increase class Individual < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Trustee::Individual, + Increase::Internal::AnyHash + ) + end # The person's address. sig do @@ -2186,7 +2295,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Trustee::Individual::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -2251,7 +2365,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Entity::Trust::Trustee::Individual::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do diff --git a/rbi/increase/models/entity_archive_beneficial_owner_params.rbi b/rbi/increase/models/entity_archive_beneficial_owner_params.rbi index 55b9353d2..193b638c4 100644 --- a/rbi/increase/models/entity_archive_beneficial_owner_params.rbi +++ b/rbi/increase/models/entity_archive_beneficial_owner_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EntityArchiveBeneficialOwnerParams, + Increase::Internal::AnyHash + ) + end # The identifying details of anyone controlling or owning 25% or more of the # corporation. diff --git a/rbi/increase/models/entity_archive_params.rbi b/rbi/increase/models/entity_archive_params.rbi index f643ebf52..f1819e50a 100644 --- a/rbi/increase/models/entity_archive_params.rbi +++ b/rbi/increase/models/entity_archive_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EntityArchiveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/entity_confirm_params.rbi b/rbi/increase/models/entity_confirm_params.rbi index 95f46b0d4..459c5a65b 100644 --- a/rbi/increase/models/entity_confirm_params.rbi +++ b/rbi/increase/models/entity_confirm_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EntityConfirmParams, Increase::Internal::AnyHash) + end # When your user confirmed the Entity's details. If not provided, the current time # will be used. diff --git a/rbi/increase/models/entity_create_beneficial_owner_params.rbi b/rbi/increase/models/entity_create_beneficial_owner_params.rbi index b8cc740fe..aad1739d6 100644 --- a/rbi/increase/models/entity_create_beneficial_owner_params.rbi +++ b/rbi/increase/models/entity_create_beneficial_owner_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams, + Increase::Internal::AnyHash + ) + end # The identifying details of anyone controlling or owning 25% or more of the # corporation. @@ -52,7 +58,12 @@ module Increase class BeneficialOwner < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner, + Increase::Internal::AnyHash + ) + end # Personal details for the beneficial owner. sig do @@ -132,7 +143,12 @@ module Increase class Individual < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual, + Increase::Internal::AnyHash + ) + end # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -233,7 +249,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address, + Increase::Internal::AnyHash + ) + end # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } @@ -321,7 +342,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -504,7 +530,12 @@ module Increase class DriversLicense < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense, + Increase::Internal::AnyHash + ) + end # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } @@ -563,7 +594,12 @@ module Increase class Other < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other, + Increase::Internal::AnyHash + ) + end # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -637,7 +673,12 @@ module Increase class Passport < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport, + Increase::Internal::AnyHash + ) + end # The country that issued the passport. sig { returns(String) } diff --git a/rbi/increase/models/entity_create_params.rbi b/rbi/increase/models/entity_create_params.rbi index db9c4441e..958668bc6 100644 --- a/rbi/increase/models/entity_create_params.rbi +++ b/rbi/increase/models/entity_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EntityCreateParams, Increase::Internal::AnyHash) + end # The type of Entity to create. sig { returns(Increase::EntityCreateParams::Structure::OrSymbol) } @@ -231,7 +234,12 @@ module Increase class Corporation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Corporation, + Increase::Internal::AnyHash + ) + end # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. @@ -378,7 +386,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Corporation::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -447,7 +460,12 @@ module Increase class BeneficialOwner < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Corporation::BeneficialOwner, + Increase::Internal::AnyHash + ) + end # Personal details for the beneficial owner. sig do @@ -525,7 +543,12 @@ module Increase class Individual < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual, + Increase::Internal::AnyHash + ) + end # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -626,7 +649,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address, + Increase::Internal::AnyHash + ) + end # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } @@ -714,7 +742,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -898,7 +931,10 @@ module Increase class DriversLicense < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::DriversLicense, + Increase::Internal::AnyHash + ) end # The driver's license's expiration date in YYYY-MM-DD format. @@ -959,7 +995,10 @@ module Increase class Other < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Other, + Increase::Internal::AnyHash + ) end # The two-character ISO 3166-1 code representing the country that issued the @@ -1035,7 +1074,10 @@ module Increase class Passport < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Passport, + Increase::Internal::AnyHash + ) end # The country that issued the passport. @@ -1168,7 +1210,12 @@ module Increase class GovernmentAuthority < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::GovernmentAuthority, + Increase::Internal::AnyHash + ) + end # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. @@ -1274,7 +1321,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::GovernmentAuthority::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -1343,7 +1395,12 @@ module Increase class AuthorizedPerson < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::GovernmentAuthority::AuthorizedPerson, + Increase::Internal::AnyHash + ) + end # The person's legal name. sig { returns(String) } @@ -1395,7 +1452,12 @@ module Increase class Joint < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Joint, + Increase::Internal::AnyHash + ) + end # The two individuals that share control of the entity. sig do @@ -1441,7 +1503,12 @@ module Increase class Individual < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Joint::Individual, + Increase::Internal::AnyHash + ) + end # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -1539,7 +1606,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Joint::Individual::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -1608,7 +1680,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Joint::Individual::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -1791,7 +1868,12 @@ module Increase class DriversLicense < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Joint::Individual::Identification::DriversLicense, + Increase::Internal::AnyHash + ) + end # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } @@ -1850,7 +1932,12 @@ module Increase class Other < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Joint::Individual::Identification::Other, + Increase::Internal::AnyHash + ) + end # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -1924,7 +2011,12 @@ module Increase class Passport < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Joint::Individual::Identification::Passport, + Increase::Internal::AnyHash + ) + end # The country that issued the passport. sig { returns(String) } @@ -1971,7 +2063,12 @@ module Increase class NaturalPerson < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::NaturalPerson, + Increase::Internal::AnyHash + ) + end # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -2068,7 +2165,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::NaturalPerson::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -2137,7 +2239,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::NaturalPerson::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -2320,7 +2427,12 @@ module Increase class DriversLicense < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::NaturalPerson::Identification::DriversLicense, + Increase::Internal::AnyHash + ) + end # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } @@ -2379,7 +2491,12 @@ module Increase class Other < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::NaturalPerson::Identification::Other, + Increase::Internal::AnyHash + ) + end # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -2453,7 +2570,12 @@ module Increase class Passport < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::NaturalPerson::Identification::Passport, + Increase::Internal::AnyHash + ) + end # The country that issued the passport. sig { returns(String) } @@ -2499,7 +2621,12 @@ module Increase class SupplementalDocument < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::SupplementalDocument, + Increase::Internal::AnyHash + ) + end # The identifier of the File containing the document. sig { returns(String) } @@ -2519,7 +2646,12 @@ module Increase class ThirdPartyVerification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::ThirdPartyVerification, + Increase::Internal::AnyHash + ) + end # The reference identifier for the third party verification. sig { returns(String) } @@ -2603,7 +2735,12 @@ module Increase class Trust < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust, + Increase::Internal::AnyHash + ) + end # The trust's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. @@ -2724,7 +2861,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -2830,7 +2972,12 @@ module Increase class Trustee < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Trustee, + Increase::Internal::AnyHash + ) + end # The structure of the trustee. sig do @@ -2922,7 +3069,12 @@ module Increase class Individual < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Trustee::Individual, + Increase::Internal::AnyHash + ) + end # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -3024,7 +3176,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Trustee::Individual::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -3093,7 +3250,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Trustee::Individual::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -3277,7 +3439,10 @@ module Increase class DriversLicense < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::DriversLicense, + Increase::Internal::AnyHash + ) end # The driver's license's expiration date in YYYY-MM-DD format. @@ -3338,7 +3503,10 @@ module Increase class Other < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::Other, + Increase::Internal::AnyHash + ) end # The two-character ISO 3166-1 code representing the country that issued the @@ -3414,7 +3582,10 @@ module Increase class Passport < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::Passport, + Increase::Internal::AnyHash + ) end # The country that issued the passport. @@ -3462,7 +3633,12 @@ module Increase class Grantor < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Grantor, + Increase::Internal::AnyHash + ) + end # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -3558,7 +3734,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Grantor::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } @@ -3627,7 +3808,12 @@ module Increase class Identification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Grantor::Identification, + Increase::Internal::AnyHash + ) + end # A method that can be used to verify the individual's identity. sig do @@ -3810,7 +3996,12 @@ module Increase class DriversLicense < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Grantor::Identification::DriversLicense, + Increase::Internal::AnyHash + ) + end # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } @@ -3869,7 +4060,12 @@ module Increase class Other < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Grantor::Identification::Other, + Increase::Internal::AnyHash + ) + end # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -3943,7 +4139,12 @@ module Increase class Passport < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityCreateParams::Trust::Grantor::Identification::Passport, + Increase::Internal::AnyHash + ) + end # The country that issued the passport. sig { returns(String) } diff --git a/rbi/increase/models/entity_list_params.rbi b/rbi/increase/models/entity_list_params.rbi index 3805c1a93..ad5e31946 100644 --- a/rbi/increase/models/entity_list_params.rbi +++ b/rbi/increase/models/entity_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EntityListParams, Increase::Internal::AnyHash) + end sig { returns(T.nilable(Increase::EntityListParams::CreatedAt)) } attr_reader :created_at @@ -91,7 +94,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -160,7 +168,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Entities for those with the specified status or statuses. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/entity_retrieve_params.rbi b/rbi/increase/models/entity_retrieve_params.rbi index 2361a0cc4..d31161e38 100644 --- a/rbi/increase/models/entity_retrieve_params.rbi +++ b/rbi/increase/models/entity_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EntityRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/entity_supplemental_document.rbi b/rbi/increase/models/entity_supplemental_document.rbi index c8ac1d451..838a66b56 100644 --- a/rbi/increase/models/entity_supplemental_document.rbi +++ b/rbi/increase/models/entity_supplemental_document.rbi @@ -3,7 +3,13 @@ module Increase module Models class EntitySupplementalDocument < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EntitySupplementalDocument, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the # Supplemental Document was created. diff --git a/rbi/increase/models/entity_update_address_params.rbi b/rbi/increase/models/entity_update_address_params.rbi index 864cc330d..dbf7dc77c 100644 --- a/rbi/increase/models/entity_update_address_params.rbi +++ b/rbi/increase/models/entity_update_address_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateAddressParams, + Increase::Internal::AnyHash + ) + end # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. @@ -47,7 +53,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityUpdateAddressParams::Address, + Increase::Internal::AnyHash + ) + end # The city of the address. sig { returns(String) } diff --git a/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi b/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi index 93e6d661e..579889713 100644 --- a/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi +++ b/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateBeneficialOwnerAddressParams, + Increase::Internal::AnyHash + ) + end # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -62,7 +68,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EntityUpdateBeneficialOwnerAddressParams::Address, + Increase::Internal::AnyHash + ) + end # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } diff --git a/rbi/increase/models/entity_update_industry_code_params.rbi b/rbi/increase/models/entity_update_industry_code_params.rbi index 0a828daf6..2aaa60d49 100644 --- a/rbi/increase/models/entity_update_industry_code_params.rbi +++ b/rbi/increase/models/entity_update_industry_code_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateIndustryCodeParams, + Increase::Internal::AnyHash + ) + end # The North American Industry Classification System (NAICS) code for the # corporation's primary line of business. This is a number, like `5132` for diff --git a/rbi/increase/models/event.rbi b/rbi/increase/models/event.rbi index 7b39a4b9d..4bb135c39 100644 --- a/rbi/increase/models/event.rbi +++ b/rbi/increase/models/event.rbi @@ -3,7 +3,8 @@ module Increase module Models class Event < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Event, Increase::Internal::AnyHash) } # The Event identifier. sig { returns(String) } diff --git a/rbi/increase/models/event_list_params.rbi b/rbi/increase/models/event_list_params.rbi index ab6a26c1d..f5c0809f3 100644 --- a/rbi/increase/models/event_list_params.rbi +++ b/rbi/increase/models/event_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EventListParams, Increase::Internal::AnyHash) + end # Filter Events to those belonging to the object with the provided identifier. sig { returns(T.nilable(String)) } @@ -85,7 +88,12 @@ module Increase class Category < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EventListParams::Category, + Increase::Internal::AnyHash + ) + end # Filter Events for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -750,7 +758,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::EventListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/event_retrieve_params.rbi b/rbi/increase/models/event_retrieve_params.rbi index 04583895f..f1807b1ba 100644 --- a/rbi/increase/models/event_retrieve_params.rbi +++ b/rbi/increase/models/event_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EventRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/event_subscription.rbi b/rbi/increase/models/event_subscription.rbi index 1938d15a2..9f7bb0ab3 100644 --- a/rbi/increase/models/event_subscription.rbi +++ b/rbi/increase/models/event_subscription.rbi @@ -3,7 +3,10 @@ module Increase module Models class EventSubscription < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::EventSubscription, Increase::Internal::AnyHash) + end # The event subscription identifier. sig { returns(String) } diff --git a/rbi/increase/models/event_subscription_create_params.rbi b/rbi/increase/models/event_subscription_create_params.rbi index 25b84cec0..b7098ad15 100644 --- a/rbi/increase/models/event_subscription_create_params.rbi +++ b/rbi/increase/models/event_subscription_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EventSubscriptionCreateParams, + Increase::Internal::AnyHash + ) + end # The URL you'd like us to send webhooks to. sig { returns(String) } diff --git a/rbi/increase/models/event_subscription_list_params.rbi b/rbi/increase/models/event_subscription_list_params.rbi index b5e7bfea4..82dd7a03d 100644 --- a/rbi/increase/models/event_subscription_list_params.rbi +++ b/rbi/increase/models/event_subscription_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EventSubscriptionListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/event_subscription_retrieve_params.rbi b/rbi/increase/models/event_subscription_retrieve_params.rbi index b2ebe5fdb..f8109998b 100644 --- a/rbi/increase/models/event_subscription_retrieve_params.rbi +++ b/rbi/increase/models/event_subscription_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EventSubscriptionRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/event_subscription_update_params.rbi b/rbi/increase/models/event_subscription_update_params.rbi index 0efc2d70c..515fde724 100644 --- a/rbi/increase/models/event_subscription_update_params.rbi +++ b/rbi/increase/models/event_subscription_update_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::EventSubscriptionUpdateParams, + Increase::Internal::AnyHash + ) + end # The status to update the Event Subscription with. sig do diff --git a/rbi/increase/models/export.rbi b/rbi/increase/models/export.rbi index b631eab9c..a370c91f5 100644 --- a/rbi/increase/models/export.rbi +++ b/rbi/increase/models/export.rbi @@ -3,7 +3,8 @@ module Increase module Models class Export < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Export, Increase::Internal::AnyHash) } # The Export identifier. sig { returns(String) } diff --git a/rbi/increase/models/export_create_params.rbi b/rbi/increase/models/export_create_params.rbi index 5eb478e11..51f4b9066 100644 --- a/rbi/increase/models/export_create_params.rbi +++ b/rbi/increase/models/export_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ExportCreateParams, Increase::Internal::AnyHash) + end # The type of Export to create. sig { returns(Increase::ExportCreateParams::Category::OrSymbol) } @@ -201,7 +204,12 @@ module Increase class AccountStatementOfx < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::AccountStatementOfx, + Increase::Internal::AnyHash + ) + end # The Account to create a statement for. sig { returns(String) } @@ -256,7 +264,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::AccountStatementOfx::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -332,7 +345,12 @@ module Increase class BalanceCsv < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::BalanceCsv, + Increase::Internal::AnyHash + ) + end # Filter exported Transactions to the specified Account. sig { returns(T.nilable(String)) } @@ -398,7 +416,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::BalanceCsv::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -474,7 +497,12 @@ module Increase class BookkeepingAccountBalanceCsv < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::BookkeepingAccountBalanceCsv, + Increase::Internal::AnyHash + ) + end # Filter exported Transactions to the specified Bookkeeping Account. sig { returns(T.nilable(String)) } @@ -532,7 +560,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::BookkeepingAccountBalanceCsv::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -608,7 +641,12 @@ module Increase class EntityCsv < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::EntityCsv, + Increase::Internal::AnyHash + ) + end # Entity statuses to filter by. sig do @@ -645,7 +683,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::EntityCsv::Status, + Increase::Internal::AnyHash + ) + end # Entity statuses to filter by. For GET requests, this should be encoded as a # comma-delimited string, such as `?in=one,two,three`. @@ -735,7 +778,12 @@ module Increase class TransactionCsv < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::TransactionCsv, + Increase::Internal::AnyHash + ) + end # Filter exported Transactions to the specified Account. sig { returns(T.nilable(String)) } @@ -802,7 +850,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportCreateParams::TransactionCsv::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/export_list_params.rbi b/rbi/increase/models/export_list_params.rbi index 87f372810..2dae97f77 100644 --- a/rbi/increase/models/export_list_params.rbi +++ b/rbi/increase/models/export_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ExportListParams, Increase::Internal::AnyHash) + end sig { returns(T.nilable(Increase::ExportListParams::Category)) } attr_reader :category @@ -102,7 +105,12 @@ module Increase class Category < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportListParams::Category, + Increase::Internal::AnyHash + ) + end # Filter Exports for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -216,7 +224,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -285,7 +298,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExportListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Exports for those with the specified status or statuses. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/export_retrieve_params.rbi b/rbi/increase/models/export_retrieve_params.rbi index c6ecface4..3dbc2d3d3 100644 --- a/rbi/increase/models/export_retrieve_params.rbi +++ b/rbi/increase/models/export_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ExportRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/external_account.rbi b/rbi/increase/models/external_account.rbi index f3440b3bb..8da88c588 100644 --- a/rbi/increase/models/external_account.rbi +++ b/rbi/increase/models/external_account.rbi @@ -3,7 +3,10 @@ module Increase module Models class ExternalAccount < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ExternalAccount, Increase::Internal::AnyHash) + end # The External Account's identifier. sig { returns(String) } diff --git a/rbi/increase/models/external_account_create_params.rbi b/rbi/increase/models/external_account_create_params.rbi index d5abbb5c7..900e27f5e 100644 --- a/rbi/increase/models/external_account_create_params.rbi +++ b/rbi/increase/models/external_account_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ExternalAccountCreateParams, + Increase::Internal::AnyHash + ) + end # The account number for the destination account. sig { returns(String) } diff --git a/rbi/increase/models/external_account_list_params.rbi b/rbi/increase/models/external_account_list_params.rbi index a129cb40f..88a6308e1 100644 --- a/rbi/increase/models/external_account_list_params.rbi +++ b/rbi/increase/models/external_account_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ExternalAccountListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -93,7 +99,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::ExternalAccountListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter External Accounts for those with the specified status or statuses. For # GET requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/external_account_retrieve_params.rbi b/rbi/increase/models/external_account_retrieve_params.rbi index 46fbd7336..b005c8f67 100644 --- a/rbi/increase/models/external_account_retrieve_params.rbi +++ b/rbi/increase/models/external_account_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ExternalAccountRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/external_account_update_params.rbi b/rbi/increase/models/external_account_update_params.rbi index cd4815c3b..de25ebbb2 100644 --- a/rbi/increase/models/external_account_update_params.rbi +++ b/rbi/increase/models/external_account_update_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::ExternalAccountUpdateParams, + Increase::Internal::AnyHash + ) + end # The type of entity that owns the External Account. sig do diff --git a/rbi/increase/models/file.rbi b/rbi/increase/models/file.rbi index 73455bf3e..f7dc62f18 100644 --- a/rbi/increase/models/file.rbi +++ b/rbi/increase/models/file.rbi @@ -3,7 +3,8 @@ module Increase module Models class File < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::File, Increase::Internal::AnyHash) } # The File's identifier. sig { returns(String) } diff --git a/rbi/increase/models/file_create_params.rbi b/rbi/increase/models/file_create_params.rbi index dd0e8e24f..4eaac5b30 100644 --- a/rbi/increase/models/file_create_params.rbi +++ b/rbi/increase/models/file_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::FileCreateParams, Increase::Internal::AnyHash) + end # The file contents. This should follow the specifications of # [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file diff --git a/rbi/increase/models/file_link.rbi b/rbi/increase/models/file_link.rbi index 8c2e127f7..65c85b1b7 100644 --- a/rbi/increase/models/file_link.rbi +++ b/rbi/increase/models/file_link.rbi @@ -3,7 +3,8 @@ module Increase module Models class FileLink < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::FileLink, Increase::Internal::AnyHash) } # The File Link identifier. sig { returns(String) } diff --git a/rbi/increase/models/file_link_create_params.rbi b/rbi/increase/models/file_link_create_params.rbi index c9d358eef..8db27ca5b 100644 --- a/rbi/increase/models/file_link_create_params.rbi +++ b/rbi/increase/models/file_link_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::FileLinkCreateParams, Increase::Internal::AnyHash) + end # The File to create a File Link for. sig { returns(String) } diff --git a/rbi/increase/models/file_list_params.rbi b/rbi/increase/models/file_list_params.rbi index a9de1564a..f90787b30 100644 --- a/rbi/increase/models/file_list_params.rbi +++ b/rbi/increase/models/file_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::FileListParams, Increase::Internal::AnyHash) + end sig { returns(T.nilable(Increase::FileListParams::CreatedAt)) } attr_reader :created_at @@ -91,7 +94,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::FileListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -160,7 +168,12 @@ module Increase class Purpose < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::FileListParams::Purpose, + Increase::Internal::AnyHash + ) + end # Filter Files for those with the specified purpose or purposes. For GET requests, # this should be encoded as a comma-delimited string, such as `?in=one,two,three`. diff --git a/rbi/increase/models/file_retrieve_params.rbi b/rbi/increase/models/file_retrieve_params.rbi index 5584a216d..83b26fcda 100644 --- a/rbi/increase/models/file_retrieve_params.rbi +++ b/rbi/increase/models/file_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::FileRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/group.rbi b/rbi/increase/models/group.rbi index 739ba08b2..35fb05475 100644 --- a/rbi/increase/models/group.rbi +++ b/rbi/increase/models/group.rbi @@ -3,7 +3,8 @@ module Increase module Models class Group < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Group, Increase::Internal::AnyHash) } # The Group identifier. sig { returns(String) } diff --git a/rbi/increase/models/group_retrieve_params.rbi b/rbi/increase/models/group_retrieve_params.rbi index 6e6b208c2..954c54938 100644 --- a/rbi/increase/models/group_retrieve_params.rbi +++ b/rbi/increase/models/group_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::GroupRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_ach_transfer.rbi b/rbi/increase/models/inbound_ach_transfer.rbi index ee035a05e..255f03d35 100644 --- a/rbi/increase/models/inbound_ach_transfer.rbi +++ b/rbi/increase/models/inbound_ach_transfer.rbi @@ -3,7 +3,10 @@ module Increase module Models class InboundACHTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::InboundACHTransfer, Increase::Internal::AnyHash) + end # The inbound ACH transfer's identifier. sig { returns(String) } @@ -337,7 +340,12 @@ module Increase class Acceptance < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::Acceptance, + Increase::Internal::AnyHash + ) + end # The time at which the transfer was accepted. sig { returns(Time) } @@ -368,7 +376,12 @@ module Increase class Addenda < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::Addenda, + Increase::Internal::AnyHash + ) + end # The type of addendum. sig do @@ -449,7 +462,12 @@ module Increase class Freeform < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::Addenda::Freeform, + Increase::Internal::AnyHash + ) + end # Each entry represents an addendum received from the originator. sig do @@ -489,7 +507,12 @@ module Increase class Entry < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::Addenda::Freeform::Entry, + Increase::Internal::AnyHash + ) + end # The payment related information passed in the addendum. sig { returns(String) } @@ -515,7 +538,12 @@ module Increase class Decline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::Decline, + Increase::Internal::AnyHash + ) + end # The time at which the transfer was declined. sig { returns(Time) } @@ -770,7 +798,12 @@ module Increase class InternationalAddenda < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::InternationalAddenda, + Increase::Internal::AnyHash + ) + end # The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 # country code of the destination country. @@ -1476,7 +1509,12 @@ module Increase class NotificationOfChange < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::NotificationOfChange, + Increase::Internal::AnyHash + ) + end # The new account number provided in the notification of change. sig { returns(T.nilable(String)) } @@ -1682,7 +1720,12 @@ module Increase class TransferReturn < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransfer::TransferReturn, + Increase::Internal::AnyHash + ) + end # The reason for the transfer return. sig do diff --git a/rbi/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi b/rbi/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi index f7808c8e8..68a304a63 100644 --- a/rbi/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi +++ b/rbi/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundACHTransferCreateNotificationOfChangeParams, + Increase::Internal::AnyHash + ) + end # The updated account number to send in the notification of change. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/inbound_ach_transfer_decline_params.rbi b/rbi/increase/models/inbound_ach_transfer_decline_params.rbi index 06b5644a5..2bcb25112 100644 --- a/rbi/increase/models/inbound_ach_transfer_decline_params.rbi +++ b/rbi/increase/models/inbound_ach_transfer_decline_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundACHTransferDeclineParams, + Increase::Internal::AnyHash + ) + end # The reason why this transfer will be returned. If this parameter is unset, the # return codes will be `payment_stopped` for debits and diff --git a/rbi/increase/models/inbound_ach_transfer_list_params.rbi b/rbi/increase/models/inbound_ach_transfer_list_params.rbi index 713a097c7..6efe46b35 100644 --- a/rbi/increase/models/inbound_ach_transfer_list_params.rbi +++ b/rbi/increase/models/inbound_ach_transfer_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundACHTransferListParams, + Increase::Internal::AnyHash + ) + end # Filter Inbound ACH Transfers to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -104,7 +110,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -173,7 +184,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundACHTransferListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Inbound ACH Transfers to those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/inbound_ach_transfer_retrieve_params.rbi b/rbi/increase/models/inbound_ach_transfer_retrieve_params.rbi index 2455c0060..fd60b4cec 100644 --- a/rbi/increase/models/inbound_ach_transfer_retrieve_params.rbi +++ b/rbi/increase/models/inbound_ach_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundACHTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_ach_transfer_transfer_return_params.rbi b/rbi/increase/models/inbound_ach_transfer_transfer_return_params.rbi index 2f79909a3..a5153c6ad 100644 --- a/rbi/increase/models/inbound_ach_transfer_transfer_return_params.rbi +++ b/rbi/increase/models/inbound_ach_transfer_transfer_return_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundACHTransferTransferReturnParams, + Increase::Internal::AnyHash + ) + end # The reason why this transfer will be returned. The most usual return codes are # `payment_stopped` for debits and `credit_entry_refused_by_receiver` for credits. diff --git a/rbi/increase/models/inbound_check_deposit.rbi b/rbi/increase/models/inbound_check_deposit.rbi index 505766b03..fa67cb5fb 100644 --- a/rbi/increase/models/inbound_check_deposit.rbi +++ b/rbi/increase/models/inbound_check_deposit.rbi @@ -3,7 +3,10 @@ module Increase module Models class InboundCheckDeposit < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::InboundCheckDeposit, Increase::Internal::AnyHash) + end # The deposit's identifier. sig { returns(String) } @@ -229,7 +232,12 @@ module Increase class Adjustment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundCheckDeposit::Adjustment, + Increase::Internal::AnyHash + ) + end # The time at which the return adjustment was received. sig { returns(Time) } @@ -374,7 +382,12 @@ module Increase class DepositReturn < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundCheckDeposit::DepositReturn, + Increase::Internal::AnyHash + ) + end # The reason the deposit was returned. sig do diff --git a/rbi/increase/models/inbound_check_deposit_decline_params.rbi b/rbi/increase/models/inbound_check_deposit_decline_params.rbi index 09579d048..9a447d487 100644 --- a/rbi/increase/models/inbound_check_deposit_decline_params.rbi +++ b/rbi/increase/models/inbound_check_deposit_decline_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundCheckDepositDeclineParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_check_deposit_list_params.rbi b/rbi/increase/models/inbound_check_deposit_list_params.rbi index 3a7fb92b2..018965f8b 100644 --- a/rbi/increase/models/inbound_check_deposit_list_params.rbi +++ b/rbi/increase/models/inbound_check_deposit_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundCheckDepositListParams, + Increase::Internal::AnyHash + ) + end # Filter Inbound Check Deposits to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -94,7 +100,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundCheckDepositListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/inbound_check_deposit_retrieve_params.rbi b/rbi/increase/models/inbound_check_deposit_retrieve_params.rbi index 998464359..72e3a8697 100644 --- a/rbi/increase/models/inbound_check_deposit_retrieve_params.rbi +++ b/rbi/increase/models/inbound_check_deposit_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundCheckDepositRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_check_deposit_return_params.rbi b/rbi/increase/models/inbound_check_deposit_return_params.rbi index 18590d590..7fc2fae78 100644 --- a/rbi/increase/models/inbound_check_deposit_return_params.rbi +++ b/rbi/increase/models/inbound_check_deposit_return_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundCheckDepositReturnParams, + Increase::Internal::AnyHash + ) + end # The reason to return the Inbound Check Deposit. sig do diff --git a/rbi/increase/models/inbound_mail_item.rbi b/rbi/increase/models/inbound_mail_item.rbi index 131f1fa65..2a35d8bf3 100644 --- a/rbi/increase/models/inbound_mail_item.rbi +++ b/rbi/increase/models/inbound_mail_item.rbi @@ -3,7 +3,10 @@ module Increase module Models class InboundMailItem < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::InboundMailItem, Increase::Internal::AnyHash) + end # The Inbound Mail Item identifier. sig { returns(String) } diff --git a/rbi/increase/models/inbound_mail_item_list_params.rbi b/rbi/increase/models/inbound_mail_item_list_params.rbi index c9f935f2f..4a95019d6 100644 --- a/rbi/increase/models/inbound_mail_item_list_params.rbi +++ b/rbi/increase/models/inbound_mail_item_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundMailItemListParams, + Increase::Internal::AnyHash + ) + end sig { returns(T.nilable(Increase::InboundMailItemListParams::CreatedAt)) } attr_reader :created_at @@ -78,7 +84,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundMailItemListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/inbound_mail_item_retrieve_params.rbi b/rbi/increase/models/inbound_mail_item_retrieve_params.rbi index b901219a9..0e52a9a28 100644 --- a/rbi/increase/models/inbound_mail_item_retrieve_params.rbi +++ b/rbi/increase/models/inbound_mail_item_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundMailItemRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_real_time_payments_transfer.rbi b/rbi/increase/models/inbound_real_time_payments_transfer.rbi index ae0c49fe3..cdf95c49f 100644 --- a/rbi/increase/models/inbound_real_time_payments_transfer.rbi +++ b/rbi/increase/models/inbound_real_time_payments_transfer.rbi @@ -3,7 +3,13 @@ module Increase module Models class InboundRealTimePaymentsTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundRealTimePaymentsTransfer, + Increase::Internal::AnyHash + ) + end # The inbound Real-Time Payments transfer's identifier. sig { returns(String) } @@ -207,7 +213,12 @@ module Increase class Confirmation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundRealTimePaymentsTransfer::Confirmation, + Increase::Internal::AnyHash + ) + end # The time at which the transfer was confirmed. sig { returns(Time) } @@ -302,7 +313,12 @@ module Increase class Decline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundRealTimePaymentsTransfer::Decline, + Increase::Internal::AnyHash + ) + end # The time at which the transfer was declined. sig { returns(Time) } diff --git a/rbi/increase/models/inbound_real_time_payments_transfer_list_params.rbi b/rbi/increase/models/inbound_real_time_payments_transfer_list_params.rbi index 8d47e4c67..1864cf89d 100644 --- a/rbi/increase/models/inbound_real_time_payments_transfer_list_params.rbi +++ b/rbi/increase/models/inbound_real_time_payments_transfer_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundRealTimePaymentsTransferListParams, + Increase::Internal::AnyHash + ) + end # Filter Inbound Real-Time Payments Transfers to those belonging to the specified # Account. @@ -102,7 +108,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundRealTimePaymentsTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi b/rbi/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi index 2c1ddcf12..ece98b243 100644 --- a/rbi/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi +++ b/rbi/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundRealTimePaymentsTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_wire_drawdown_request.rbi b/rbi/increase/models/inbound_wire_drawdown_request.rbi index 12671a590..53683137b 100644 --- a/rbi/increase/models/inbound_wire_drawdown_request.rbi +++ b/rbi/increase/models/inbound_wire_drawdown_request.rbi @@ -3,7 +3,13 @@ module Increase module Models class InboundWireDrawdownRequest < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundWireDrawdownRequest, + Increase::Internal::AnyHash + ) + end # The Wire drawdown request identifier. sig { returns(String) } diff --git a/rbi/increase/models/inbound_wire_drawdown_request_list_params.rbi b/rbi/increase/models/inbound_wire_drawdown_request_list_params.rbi index e73ef85e8..4ba7184f0 100644 --- a/rbi/increase/models/inbound_wire_drawdown_request_list_params.rbi +++ b/rbi/increase/models/inbound_wire_drawdown_request_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundWireDrawdownRequestListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi b/rbi/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi index 7038b4346..7817b9403 100644 --- a/rbi/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi +++ b/rbi/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundWireDrawdownRequestRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_wire_transfer.rbi b/rbi/increase/models/inbound_wire_transfer.rbi index 0339dcf45..aa12ebbc9 100644 --- a/rbi/increase/models/inbound_wire_transfer.rbi +++ b/rbi/increase/models/inbound_wire_transfer.rbi @@ -3,7 +3,10 @@ module Increase module Models class InboundWireTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::InboundWireTransfer, Increase::Internal::AnyHash) + end # The inbound wire transfer's identifier. sig { returns(String) } @@ -253,7 +256,12 @@ module Increase class Reversal < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundWireTransfer::Reversal, + Increase::Internal::AnyHash + ) + end # The reason for the reversal. sig do diff --git a/rbi/increase/models/inbound_wire_transfer_list_params.rbi b/rbi/increase/models/inbound_wire_transfer_list_params.rbi index 7889095d2..facdd8579 100644 --- a/rbi/increase/models/inbound_wire_transfer_list_params.rbi +++ b/rbi/increase/models/inbound_wire_transfer_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundWireTransferListParams, + Increase::Internal::AnyHash + ) + end # Filter Inbound Wire Transfers to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -107,7 +113,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundWireTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -176,7 +187,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::InboundWireTransferListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Inbound Wire Transfers to those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/inbound_wire_transfer_retrieve_params.rbi b/rbi/increase/models/inbound_wire_transfer_retrieve_params.rbi index c2d7681e5..9a2e2065a 100644 --- a/rbi/increase/models/inbound_wire_transfer_retrieve_params.rbi +++ b/rbi/increase/models/inbound_wire_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundWireTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi b/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi index af7480d53..6c8ad294f 100644 --- a/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi +++ b/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::InboundWireTransferReverseParams, + Increase::Internal::AnyHash + ) + end # Reason for the reversal. sig do diff --git a/rbi/increase/models/intrafi_account_enrollment.rbi b/rbi/increase/models/intrafi_account_enrollment.rbi index 83236f7c2..131b9b468 100644 --- a/rbi/increase/models/intrafi_account_enrollment.rbi +++ b/rbi/increase/models/intrafi_account_enrollment.rbi @@ -3,7 +3,10 @@ module Increase module Models class IntrafiAccountEnrollment < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::IntrafiAccountEnrollment, Increase::Internal::AnyHash) + end # The identifier of this enrollment at IntraFi. sig { returns(String) } diff --git a/rbi/increase/models/intrafi_account_enrollment_create_params.rbi b/rbi/increase/models/intrafi_account_enrollment_create_params.rbi index 4443dde62..ad8da6900 100644 --- a/rbi/increase/models/intrafi_account_enrollment_create_params.rbi +++ b/rbi/increase/models/intrafi_account_enrollment_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiAccountEnrollmentCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier for the account to be added to IntraFi. sig { returns(String) } diff --git a/rbi/increase/models/intrafi_account_enrollment_list_params.rbi b/rbi/increase/models/intrafi_account_enrollment_list_params.rbi index 83955a132..1576a6dc2 100644 --- a/rbi/increase/models/intrafi_account_enrollment_list_params.rbi +++ b/rbi/increase/models/intrafi_account_enrollment_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiAccountEnrollmentListParams, + Increase::Internal::AnyHash + ) + end # Filter IntraFi Account Enrollments to the one belonging to an account. sig { returns(T.nilable(String)) } @@ -97,7 +103,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::IntrafiAccountEnrollmentListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter IntraFi Account Enrollments for those with the specified status or # statuses. For GET requests, this should be encoded as a comma-delimited string, diff --git a/rbi/increase/models/intrafi_account_enrollment_retrieve_params.rbi b/rbi/increase/models/intrafi_account_enrollment_retrieve_params.rbi index aa8fcc9ca..17e52251c 100644 --- a/rbi/increase/models/intrafi_account_enrollment_retrieve_params.rbi +++ b/rbi/increase/models/intrafi_account_enrollment_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiAccountEnrollmentRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/intrafi_account_enrollment_unenroll_params.rbi b/rbi/increase/models/intrafi_account_enrollment_unenroll_params.rbi index 5335bc629..621378efe 100644 --- a/rbi/increase/models/intrafi_account_enrollment_unenroll_params.rbi +++ b/rbi/increase/models/intrafi_account_enrollment_unenroll_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiAccountEnrollmentUnenrollParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/intrafi_balance.rbi b/rbi/increase/models/intrafi_balance.rbi index a3400fe32..617b5169d 100644 --- a/rbi/increase/models/intrafi_balance.rbi +++ b/rbi/increase/models/intrafi_balance.rbi @@ -3,7 +3,10 @@ module Increase module Models class IntrafiBalance < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::IntrafiBalance, Increase::Internal::AnyHash) + end # The identifier of this balance. sig { returns(String) } @@ -83,7 +86,12 @@ module Increase class Balance < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::IntrafiBalance::Balance, + Increase::Internal::AnyHash + ) + end # The identifier of this balance. sig { returns(String) } @@ -162,7 +170,12 @@ module Increase class BankLocation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::IntrafiBalance::Balance::BankLocation, + Increase::Internal::AnyHash + ) + end # The bank's city. sig { returns(String) } diff --git a/rbi/increase/models/intrafi_balance_intrafi_balance_params.rbi b/rbi/increase/models/intrafi_balance_intrafi_balance_params.rbi index 822ef0b38..61b7985ea 100644 --- a/rbi/increase/models/intrafi_balance_intrafi_balance_params.rbi +++ b/rbi/increase/models/intrafi_balance_intrafi_balance_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiBalanceIntrafiBalanceParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/intrafi_exclusion.rbi b/rbi/increase/models/intrafi_exclusion.rbi index b7f67f7d2..12b8d3705 100644 --- a/rbi/increase/models/intrafi_exclusion.rbi +++ b/rbi/increase/models/intrafi_exclusion.rbi @@ -3,7 +3,10 @@ module Increase module Models class IntrafiExclusion < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::IntrafiExclusion, Increase::Internal::AnyHash) + end # The identifier of this exclusion request. sig { returns(String) } diff --git a/rbi/increase/models/intrafi_exclusion_archive_params.rbi b/rbi/increase/models/intrafi_exclusion_archive_params.rbi index 215fa9e7b..a08def803 100644 --- a/rbi/increase/models/intrafi_exclusion_archive_params.rbi +++ b/rbi/increase/models/intrafi_exclusion_archive_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiExclusionArchiveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/intrafi_exclusion_create_params.rbi b/rbi/increase/models/intrafi_exclusion_create_params.rbi index a1d18bd04..017ce8f4d 100644 --- a/rbi/increase/models/intrafi_exclusion_create_params.rbi +++ b/rbi/increase/models/intrafi_exclusion_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiExclusionCreateParams, + Increase::Internal::AnyHash + ) + end # The name of the financial institution to be excluded. sig { returns(String) } diff --git a/rbi/increase/models/intrafi_exclusion_list_params.rbi b/rbi/increase/models/intrafi_exclusion_list_params.rbi index 9f6ff5654..4b79d7ceb 100644 --- a/rbi/increase/models/intrafi_exclusion_list_params.rbi +++ b/rbi/increase/models/intrafi_exclusion_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiExclusionListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/intrafi_exclusion_retrieve_params.rbi b/rbi/increase/models/intrafi_exclusion_retrieve_params.rbi index 028d0d31e..6fce82074 100644 --- a/rbi/increase/models/intrafi_exclusion_retrieve_params.rbi +++ b/rbi/increase/models/intrafi_exclusion_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::IntrafiExclusionRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/lockbox.rbi b/rbi/increase/models/lockbox.rbi index 97459dfb3..b4863bd0a 100644 --- a/rbi/increase/models/lockbox.rbi +++ b/rbi/increase/models/lockbox.rbi @@ -3,7 +3,8 @@ module Increase module Models class Lockbox < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Lockbox, Increase::Internal::AnyHash) } # The Lockbox identifier. sig { returns(String) } @@ -111,7 +112,9 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Lockbox::Address, Increase::Internal::AnyHash) + end # The city of the address. sig { returns(String) } diff --git a/rbi/increase/models/lockbox_create_params.rbi b/rbi/increase/models/lockbox_create_params.rbi index 6b9f45cbb..33938be18 100644 --- a/rbi/increase/models/lockbox_create_params.rbi +++ b/rbi/increase/models/lockbox_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::LockboxCreateParams, Increase::Internal::AnyHash) + end # The Account checks sent to this Lockbox should be deposited into. sig { returns(String) } diff --git a/rbi/increase/models/lockbox_list_params.rbi b/rbi/increase/models/lockbox_list_params.rbi index be71ea8a0..f9fb63c43 100644 --- a/rbi/increase/models/lockbox_list_params.rbi +++ b/rbi/increase/models/lockbox_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::LockboxListParams, Increase::Internal::AnyHash) + end # Filter Lockboxes to those associated with the provided Account. sig { returns(T.nilable(String)) } @@ -93,7 +96,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::LockboxListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/lockbox_retrieve_params.rbi b/rbi/increase/models/lockbox_retrieve_params.rbi index b87a3c854..98f350915 100644 --- a/rbi/increase/models/lockbox_retrieve_params.rbi +++ b/rbi/increase/models/lockbox_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::LockboxRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/lockbox_update_params.rbi b/rbi/increase/models/lockbox_update_params.rbi index 76352d4ea..4bc569f28 100644 --- a/rbi/increase/models/lockbox_update_params.rbi +++ b/rbi/increase/models/lockbox_update_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::LockboxUpdateParams, Increase::Internal::AnyHash) + end # The description you choose for the Lockbox. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/oauth_application.rbi b/rbi/increase/models/oauth_application.rbi index 1df64b7fa..ca2721cb9 100644 --- a/rbi/increase/models/oauth_application.rbi +++ b/rbi/increase/models/oauth_application.rbi @@ -3,7 +3,10 @@ module Increase module Models class OAuthApplication < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::OAuthApplication, Increase::Internal::AnyHash) + end # The OAuth Application's identifier. sig { returns(String) } diff --git a/rbi/increase/models/oauth_application_list_params.rbi b/rbi/increase/models/oauth_application_list_params.rbi index b8ecf9cda..ad3c6b838 100644 --- a/rbi/increase/models/oauth_application_list_params.rbi +++ b/rbi/increase/models/oauth_application_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::OAuthApplicationListParams, + Increase::Internal::AnyHash + ) + end sig do returns(T.nilable(Increase::OAuthApplicationListParams::CreatedAt)) @@ -82,7 +88,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::OAuthApplicationListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -151,7 +162,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::OAuthApplicationListParams::Status, + Increase::Internal::AnyHash + ) + end # Return results whose value is in the provided list. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. diff --git a/rbi/increase/models/oauth_application_retrieve_params.rbi b/rbi/increase/models/oauth_application_retrieve_params.rbi index e241848b6..d52131e53 100644 --- a/rbi/increase/models/oauth_application_retrieve_params.rbi +++ b/rbi/increase/models/oauth_application_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::OAuthApplicationRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/oauth_connection.rbi b/rbi/increase/models/oauth_connection.rbi index 3570c2466..22b7a4f20 100644 --- a/rbi/increase/models/oauth_connection.rbi +++ b/rbi/increase/models/oauth_connection.rbi @@ -3,7 +3,10 @@ module Increase module Models class OAuthConnection < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::OAuthConnection, Increase::Internal::AnyHash) + end # The OAuth Connection's identifier. sig { returns(String) } diff --git a/rbi/increase/models/oauth_connection_list_params.rbi b/rbi/increase/models/oauth_connection_list_params.rbi index 00fea70dc..08cc756ad 100644 --- a/rbi/increase/models/oauth_connection_list_params.rbi +++ b/rbi/increase/models/oauth_connection_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::OAuthConnectionListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -78,7 +84,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::OAuthConnectionListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter to OAuth Connections by their status. By default, return only the # `active` ones. For GET requests, this should be encoded as a comma-delimited diff --git a/rbi/increase/models/oauth_connection_retrieve_params.rbi b/rbi/increase/models/oauth_connection_retrieve_params.rbi index 3315b8bb9..fbfe2f758 100644 --- a/rbi/increase/models/oauth_connection_retrieve_params.rbi +++ b/rbi/increase/models/oauth_connection_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::OAuthConnectionRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/oauth_token.rbi b/rbi/increase/models/oauth_token.rbi index 727130911..fe907418a 100644 --- a/rbi/increase/models/oauth_token.rbi +++ b/rbi/increase/models/oauth_token.rbi @@ -3,7 +3,10 @@ module Increase module Models class OAuthToken < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::OAuthToken, Increase::Internal::AnyHash) + end # You may use this token in place of an API key to make OAuth requests on a user's # behalf. diff --git a/rbi/increase/models/oauth_token_create_params.rbi b/rbi/increase/models/oauth_token_create_params.rbi index 9b5ffda4c..df50e2b4d 100644 --- a/rbi/increase/models/oauth_token_create_params.rbi +++ b/rbi/increase/models/oauth_token_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::OAuthTokenCreateParams, Increase::Internal::AnyHash) + end # The credential you request in exchange for the code. In Production, this is # always `authorization_code`. In Sandbox, you can pass either enum value. diff --git a/rbi/increase/models/pending_transaction.rbi b/rbi/increase/models/pending_transaction.rbi index d03708841..43a21a0ef 100644 --- a/rbi/increase/models/pending_transaction.rbi +++ b/rbi/increase/models/pending_transaction.rbi @@ -3,7 +3,10 @@ module Increase module Models class PendingTransaction < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::PendingTransaction, Increase::Internal::AnyHash) + end # The Pending Transaction identifier. sig { returns(String) } @@ -226,7 +229,12 @@ module Increase class Source < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source, + Increase::Internal::AnyHash + ) + end # An Account Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_instruction`. @@ -603,7 +611,12 @@ module Increase class AccountTransferInstruction < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::AccountTransferInstruction, + Increase::Internal::AnyHash + ) + end # The pending amount in the minor unit of the transaction's currency. For dollars, # for example, this is cents. @@ -728,7 +741,12 @@ module Increase class ACHTransferInstruction < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::ACHTransferInstruction, + Increase::Internal::AnyHash + ) + end # The pending amount in USD cents. sig { returns(Integer) } @@ -760,7 +778,12 @@ module Increase class CardAuthorization < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization, + Increase::Internal::AnyHash + ) + end # The Card Authorization identifier. sig { returns(String) } @@ -1257,7 +1280,12 @@ module Increase class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization::NetworkDetails, + Increase::Internal::AnyHash + ) + end # The payment network used to process this card authorization. sig do @@ -1354,7 +1382,12 @@ module Increase class Visa < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) + end # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -1697,7 +1730,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -1850,7 +1888,12 @@ module Increase class Verification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization::Verification, + Increase::Internal::AnyHash + ) + end # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -1920,7 +1963,12 @@ module Increase class CardVerificationCode < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode, + Increase::Internal::AnyHash + ) + end # The result of verifying the Card Verification Code. sig do @@ -2003,7 +2051,12 @@ module Increase class CardholderAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress, + Increase::Internal::AnyHash + ) + end # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } @@ -2242,7 +2295,12 @@ module Increase class CheckDepositInstruction < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CheckDepositInstruction, + Increase::Internal::AnyHash + ) + end # The pending amount in USD cents. sig { returns(Integer) } @@ -2385,7 +2443,12 @@ module Increase class CheckTransferInstruction < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CheckTransferInstruction, + Increase::Internal::AnyHash + ) + end # The transfer amount in USD cents. sig { returns(Integer) } @@ -2508,7 +2571,12 @@ module Increase class InboundFundsHold < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::InboundFundsHold, + Increase::Internal::AnyHash + ) + end # The Inbound Funds Hold identifier. sig { returns(String) } @@ -2778,7 +2846,12 @@ module Increase class InboundWireTransferReversal < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::InboundWireTransferReversal, + Increase::Internal::AnyHash + ) + end # The ID of the Inbound Wire Transfer that is being reversed. sig { returns(String) } @@ -2804,7 +2877,12 @@ module Increase class RealTimePaymentsTransferInstruction < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction, + Increase::Internal::AnyHash + ) + end # The transfer amount in USD cents. sig { returns(Integer) } @@ -2839,7 +2917,12 @@ module Increase class SwiftTransferInstruction < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::SwiftTransferInstruction, + Increase::Internal::AnyHash + ) + end # The identifier of the Swift Transfer that led to this Pending Transaction. sig { returns(String) } @@ -2861,7 +2944,12 @@ module Increase class WireTransferInstruction < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransaction::Source::WireTransferInstruction, + Increase::Internal::AnyHash + ) + end # The account number for the destination account. sig { returns(String) } diff --git a/rbi/increase/models/pending_transaction_list_params.rbi b/rbi/increase/models/pending_transaction_list_params.rbi index 0f1025f66..cd8c064a0 100644 --- a/rbi/increase/models/pending_transaction_list_params.rbi +++ b/rbi/increase/models/pending_transaction_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PendingTransactionListParams, + Increase::Internal::AnyHash + ) + end # Filter pending transactions to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -119,7 +125,12 @@ module Increase class Category < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransactionListParams::Category, + Increase::Internal::AnyHash + ) + end # Return results whose value is in the provided list. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. @@ -275,7 +286,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransactionListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -344,7 +360,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PendingTransactionListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Pending Transactions for those with the specified status. By default only # Pending Transactions in with status `pending` will be returned. For GET diff --git a/rbi/increase/models/pending_transaction_retrieve_params.rbi b/rbi/increase/models/pending_transaction_retrieve_params.rbi index 402add09a..19ab842e1 100644 --- a/rbi/increase/models/pending_transaction_retrieve_params.rbi +++ b/rbi/increase/models/pending_transaction_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PendingTransactionRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/physical_card.rbi b/rbi/increase/models/physical_card.rbi index 341b07f48..75eecbe74 100644 --- a/rbi/increase/models/physical_card.rbi +++ b/rbi/increase/models/physical_card.rbi @@ -3,7 +3,10 @@ module Increase module Models class PhysicalCard < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::PhysicalCard, Increase::Internal::AnyHash) + end # The physical card identifier. sig { returns(String) } @@ -117,7 +120,12 @@ module Increase class Cardholder < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCard::Cardholder, + Increase::Internal::AnyHash + ) + end # The cardholder's first name. sig { returns(String) } @@ -148,7 +156,9 @@ module Increase class Shipment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::PhysicalCard::Shipment, Increase::Internal::AnyHash) + end # The location to where the card's packing label is addressed. sig { returns(Increase::PhysicalCard::Shipment::Address) } @@ -218,7 +228,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCard::Shipment::Address, + Increase::Internal::AnyHash + ) + end # The city of the shipping address. sig { returns(String) } @@ -402,7 +417,12 @@ module Increase class Tracking < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCard::Shipment::Tracking, + Increase::Internal::AnyHash + ) + end # The tracking number. sig { returns(String) } @@ -476,7 +496,12 @@ module Increase class Update < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCard::Shipment::Tracking::Update, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time when the # carrier expects the card to be delivered. diff --git a/rbi/increase/models/physical_card_create_params.rbi b/rbi/increase/models/physical_card_create_params.rbi index aaee6cb52..a404c63e8 100644 --- a/rbi/increase/models/physical_card_create_params.rbi +++ b/rbi/increase/models/physical_card_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::PhysicalCardCreateParams, Increase::Internal::AnyHash) + end # The underlying card representing this physical card. sig { returns(String) } @@ -81,7 +84,12 @@ module Increase class Cardholder < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCardCreateParams::Cardholder, + Increase::Internal::AnyHash + ) + end # The cardholder's first name. sig { returns(String) } @@ -112,7 +120,12 @@ module Increase class Shipment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCardCreateParams::Shipment, + Increase::Internal::AnyHash + ) + end # The address to where the card should be shipped. sig { returns(Increase::PhysicalCardCreateParams::Shipment::Address) } @@ -165,7 +178,12 @@ module Increase class Address < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCardCreateParams::Shipment::Address, + Increase::Internal::AnyHash + ) + end # The city of the shipping address. sig { returns(String) } diff --git a/rbi/increase/models/physical_card_list_params.rbi b/rbi/increase/models/physical_card_list_params.rbi index 1b0a5bd23..31b1ba304 100644 --- a/rbi/increase/models/physical_card_list_params.rbi +++ b/rbi/increase/models/physical_card_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::PhysicalCardListParams, Increase::Internal::AnyHash) + end # Filter Physical Cards to ones belonging to the specified Card. sig { returns(T.nilable(String)) } @@ -95,7 +98,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCardListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/physical_card_profile.rbi b/rbi/increase/models/physical_card_profile.rbi index acd6ad9b2..378652c52 100644 --- a/rbi/increase/models/physical_card_profile.rbi +++ b/rbi/increase/models/physical_card_profile.rbi @@ -3,7 +3,10 @@ module Increase module Models class PhysicalCardProfile < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::PhysicalCardProfile, Increase::Internal::AnyHash) + end # The Card Profile identifier. sig { returns(String) } diff --git a/rbi/increase/models/physical_card_profile_archive_params.rbi b/rbi/increase/models/physical_card_profile_archive_params.rbi index 20e882971..5e28d389a 100644 --- a/rbi/increase/models/physical_card_profile_archive_params.rbi +++ b/rbi/increase/models/physical_card_profile_archive_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PhysicalCardProfileArchiveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/physical_card_profile_clone_params.rbi b/rbi/increase/models/physical_card_profile_clone_params.rbi index ce93c2169..0a4552d95 100644 --- a/rbi/increase/models/physical_card_profile_clone_params.rbi +++ b/rbi/increase/models/physical_card_profile_clone_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PhysicalCardProfileCloneParams, + Increase::Internal::AnyHash + ) + end # The identifier of the File containing the physical card's carrier image. sig { returns(T.nilable(String)) } @@ -95,7 +101,12 @@ module Increase class FrontText < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCardProfileCloneParams::FrontText, + Increase::Internal::AnyHash + ) + end # The first line of text on the front of the card. sig { returns(String) } diff --git a/rbi/increase/models/physical_card_profile_create_params.rbi b/rbi/increase/models/physical_card_profile_create_params.rbi index bdbf1f874..2f9388a6d 100644 --- a/rbi/increase/models/physical_card_profile_create_params.rbi +++ b/rbi/increase/models/physical_card_profile_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PhysicalCardProfileCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the File containing the physical card's carrier image. sig { returns(String) } @@ -91,7 +97,12 @@ module Increase class FrontText < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCardProfileCreateParams::FrontText, + Increase::Internal::AnyHash + ) + end # The first line of text on the front of the card. sig { returns(String) } diff --git a/rbi/increase/models/physical_card_profile_list_params.rbi b/rbi/increase/models/physical_card_profile_list_params.rbi index b19d72525..a65e701f2 100644 --- a/rbi/increase/models/physical_card_profile_list_params.rbi +++ b/rbi/increase/models/physical_card_profile_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PhysicalCardProfileListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -86,7 +92,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::PhysicalCardProfileListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Physical Card Profiles for those with the specified statuses. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/physical_card_profile_retrieve_params.rbi b/rbi/increase/models/physical_card_profile_retrieve_params.rbi index 2103a60b8..42c5bc525 100644 --- a/rbi/increase/models/physical_card_profile_retrieve_params.rbi +++ b/rbi/increase/models/physical_card_profile_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PhysicalCardProfileRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/physical_card_retrieve_params.rbi b/rbi/increase/models/physical_card_retrieve_params.rbi index 4a51bb8d0..6e643f20d 100644 --- a/rbi/increase/models/physical_card_retrieve_params.rbi +++ b/rbi/increase/models/physical_card_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::PhysicalCardRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/physical_card_update_params.rbi b/rbi/increase/models/physical_card_update_params.rbi index 9f112d412..610d94175 100644 --- a/rbi/increase/models/physical_card_update_params.rbi +++ b/rbi/increase/models/physical_card_update_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::PhysicalCardUpdateParams, Increase::Internal::AnyHash) + end # The status to update the Physical Card to. sig { returns(Increase::PhysicalCardUpdateParams::Status::OrSymbol) } diff --git a/rbi/increase/models/program.rbi b/rbi/increase/models/program.rbi index 99dbd2e8c..2594a5b36 100644 --- a/rbi/increase/models/program.rbi +++ b/rbi/increase/models/program.rbi @@ -3,7 +3,8 @@ module Increase module Models class Program < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias { T.any(Increase::Program, Increase::Internal::AnyHash) } # The Program identifier. sig { returns(String) } diff --git a/rbi/increase/models/program_list_params.rbi b/rbi/increase/models/program_list_params.rbi index 9de9b88bb..1040af57d 100644 --- a/rbi/increase/models/program_list_params.rbi +++ b/rbi/increase/models/program_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ProgramListParams, Increase::Internal::AnyHash) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/program_retrieve_params.rbi b/rbi/increase/models/program_retrieve_params.rbi index d2d70f0a4..bfe895ece 100644 --- a/rbi/increase/models/program_retrieve_params.rbi +++ b/rbi/increase/models/program_retrieve_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::ProgramRetrieveParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/real_time_decision.rbi b/rbi/increase/models/real_time_decision.rbi index 6c0103a1d..0e34cfcc4 100644 --- a/rbi/increase/models/real_time_decision.rbi +++ b/rbi/increase/models/real_time_decision.rbi @@ -3,7 +3,10 @@ module Increase module Models class RealTimeDecision < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::RealTimeDecision, Increase::Internal::AnyHash) + end # The Real-Time Decision identifier. sig { returns(String) } @@ -192,7 +195,12 @@ module Increase class CardAuthentication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthentication, + Increase::Internal::AnyHash + ) + end # The identifier of the Account the card belongs to. sig { returns(String) } @@ -306,7 +314,12 @@ module Increase class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthenticationChallenge, + Increase::Internal::AnyHash + ) + end # The identifier of the Account the card belongs to. sig { returns(String) } @@ -421,7 +434,12 @@ module Increase class CardAuthorization < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization, + Increase::Internal::AnyHash + ) + end # The identifier of the Account the authorization will debit. sig { returns(String) } @@ -824,7 +842,12 @@ module Increase class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::NetworkDetails, + Increase::Internal::AnyHash + ) + end # The payment network used to process this card authorization. sig do @@ -921,7 +944,12 @@ module Increase class Visa < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) + end # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -1264,7 +1292,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A life-cycle identifier used across e.g., an authorization and a reversal. # Expected to be unique per acquirer within a window of time. For some card @@ -1386,7 +1419,12 @@ module Increase class RequestDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::RequestDetails, + Increase::Internal::AnyHash + ) + end # The type of this request (e.g., an initial authorization or an incremental # authorization). @@ -1501,7 +1539,12 @@ module Increase class IncrementalAuthorization < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::RequestDetails::IncrementalAuthorization, + Increase::Internal::AnyHash + ) + end # The card payment for this authorization and increment. sig { returns(String) } @@ -1543,7 +1586,12 @@ module Increase class Verification < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::Verification, + Increase::Internal::AnyHash + ) + end # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -1613,7 +1661,12 @@ module Increase class CardVerificationCode < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode, + Increase::Internal::AnyHash + ) + end # The result of verifying the Card Verification Code. sig do @@ -1696,7 +1749,12 @@ module Increase class CardholderAddress < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress, + Increase::Internal::AnyHash + ) + end # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } @@ -1888,7 +1946,12 @@ module Increase class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::DigitalWalletAuthentication, + Increase::Internal::AnyHash + ) + end # The identifier of the Card that is being tokenized. sig { returns(String) } @@ -2121,7 +2184,12 @@ module Increase class DigitalWalletToken < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::DigitalWalletToken, + Increase::Internal::AnyHash + ) + end # The identifier of the Card that is being tokenized. sig { returns(String) } @@ -2255,7 +2323,12 @@ module Increase class Device < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecision::DigitalWalletToken::Device, + Increase::Internal::AnyHash + ) + end # ID assigned to the device by the digital wallet provider. sig { returns(T.nilable(String)) } diff --git a/rbi/increase/models/real_time_decision_action_params.rbi b/rbi/increase/models/real_time_decision_action_params.rbi index bd24ac0ad..a0642c26a 100644 --- a/rbi/increase/models/real_time_decision_action_params.rbi +++ b/rbi/increase/models/real_time_decision_action_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams, + Increase::Internal::AnyHash + ) + end # If the Real-Time Decision relates to a 3DS card authentication attempt, this # object contains your response to the authentication. @@ -154,7 +160,12 @@ module Increase class CardAuthentication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::CardAuthentication, + Increase::Internal::AnyHash + ) + end # Whether the card authentication attempt should be approved or declined. sig do @@ -237,7 +248,12 @@ module Increase class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge, + Increase::Internal::AnyHash + ) + end # Whether the card authentication challenge was successfully delivered to the # cardholder. @@ -316,7 +332,12 @@ module Increase class CardAuthorization < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::CardAuthorization, + Increase::Internal::AnyHash + ) + end # Whether the card authorization should be approved or declined. sig do @@ -485,7 +506,12 @@ module Increase class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::DigitalWalletAuthentication, + Increase::Internal::AnyHash + ) + end # Whether your application was able to deliver the one-time passcode. sig do @@ -582,7 +608,12 @@ module Increase class Success < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::DigitalWalletAuthentication::Success, + Increase::Internal::AnyHash + ) + end # The email address that was used to verify the cardholder via one-time passcode. sig { returns(T.nilable(String)) } @@ -617,7 +648,12 @@ module Increase class DigitalWalletToken < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::DigitalWalletToken, + Increase::Internal::AnyHash + ) + end # If your application approves the provisioning attempt, this contains metadata # about the digital wallet token that will be generated. @@ -692,7 +728,12 @@ module Increase class Approval < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::DigitalWalletToken::Approval, + Increase::Internal::AnyHash + ) + end # An email address that can be used to verify the cardholder via one-time # passcode. @@ -730,7 +771,12 @@ module Increase class Decline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimeDecisionActionParams::DigitalWalletToken::Decline, + Increase::Internal::AnyHash + ) + end # Why the tokenization attempt was declined. This is for logging purposes only and # is not displayed to the end-user. diff --git a/rbi/increase/models/real_time_decision_retrieve_params.rbi b/rbi/increase/models/real_time_decision_retrieve_params.rbi index e21a8473e..6a52a1b2b 100644 --- a/rbi/increase/models/real_time_decision_retrieve_params.rbi +++ b/rbi/increase/models/real_time_decision_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::RealTimeDecisionRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/real_time_payments_transfer.rbi b/rbi/increase/models/real_time_payments_transfer.rbi index ddf04c71b..204b17937 100644 --- a/rbi/increase/models/real_time_payments_transfer.rbi +++ b/rbi/increase/models/real_time_payments_transfer.rbi @@ -3,7 +3,10 @@ module Increase module Models class RealTimePaymentsTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::RealTimePaymentsTransfer, Increase::Internal::AnyHash) + end # The Real-Time Payments Transfer's identifier. sig { returns(String) } @@ -331,7 +334,12 @@ module Increase class Acknowledgement < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::Acknowledgement, + Increase::Internal::AnyHash + ) + end # When the transfer was acknowledged. sig { returns(Time) } @@ -353,7 +361,12 @@ module Increase class Approval < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::Approval, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -393,7 +406,12 @@ module Increase class Cancellation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::Cancellation, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -433,7 +451,12 @@ module Increase class CreatedBy < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::CreatedBy, + Increase::Internal::AnyHash + ) + end # If present, details about the API key that created the transfer. sig do @@ -553,7 +576,12 @@ module Increase class APIKey < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end # The description set for the API key when it was created. sig { returns(T.nilable(String)) } @@ -621,7 +649,12 @@ module Increase class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication, + Increase::Internal::AnyHash + ) + end # The name of the OAuth Application. sig { returns(String) } @@ -642,7 +675,12 @@ module Increase class User < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::CreatedBy::User, + Increase::Internal::AnyHash + ) + end # The email address of the User. sig { returns(String) } @@ -726,7 +764,12 @@ module Increase class Rejection < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::Rejection, + Increase::Internal::AnyHash + ) + end # Additional information about the rejection provided by the recipient bank when # the `reject_reason_code` is `NARRATIVE`. @@ -1033,7 +1076,12 @@ module Increase class Submission < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::Submission, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was submitted to The Clearing House. diff --git a/rbi/increase/models/real_time_payments_transfer_create_params.rbi b/rbi/increase/models/real_time_payments_transfer_create_params.rbi index db93b40c1..e5f3a78d6 100644 --- a/rbi/increase/models/real_time_payments_transfer_create_params.rbi +++ b/rbi/increase/models/real_time_payments_transfer_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::RealTimePaymentsTransferCreateParams, + Increase::Internal::AnyHash + ) + end # The transfer amount in USD cents. For Real-Time Payments transfers, must be # positive. diff --git a/rbi/increase/models/real_time_payments_transfer_list_params.rbi b/rbi/increase/models/real_time_payments_transfer_list_params.rbi index df15c9c4a..fad5d7025 100644 --- a/rbi/increase/models/real_time_payments_transfer_list_params.rbi +++ b/rbi/increase/models/real_time_payments_transfer_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::RealTimePaymentsTransferListParams, + Increase::Internal::AnyHash + ) + end # Filter Real-Time Payments Transfers to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -129,7 +135,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -198,7 +209,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::RealTimePaymentsTransferListParams::Status, + Increase::Internal::AnyHash + ) + end # Return results whose value is in the provided list. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. diff --git a/rbi/increase/models/real_time_payments_transfer_retrieve_params.rbi b/rbi/increase/models/real_time_payments_transfer_retrieve_params.rbi index c1e71049e..8ed59cffc 100644 --- a/rbi/increase/models/real_time_payments_transfer_retrieve_params.rbi +++ b/rbi/increase/models/real_time_payments_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::RealTimePaymentsTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/routing_number_list_params.rbi b/rbi/increase/models/routing_number_list_params.rbi index 3051eb1a7..81c41cbb8 100644 --- a/rbi/increase/models/routing_number_list_params.rbi +++ b/rbi/increase/models/routing_number_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::RoutingNumberListParams, Increase::Internal::AnyHash) + end # Filter financial institutions by routing number. sig { returns(String) } diff --git a/rbi/increase/models/routing_number_list_response.rbi b/rbi/increase/models/routing_number_list_response.rbi index eade22ea4..feccd43a8 100644 --- a/rbi/increase/models/routing_number_list_response.rbi +++ b/rbi/increase/models/routing_number_list_response.rbi @@ -3,7 +3,13 @@ module Increase module Models class RoutingNumberListResponse < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::Models::RoutingNumberListResponse, + Increase::Internal::AnyHash + ) + end # This routing number's support for ACH Transfers. sig do diff --git a/rbi/increase/models/simulations/account_statement_create_params.rbi b/rbi/increase/models/simulations/account_statement_create_params.rbi index b8d020217..c11bf5eaa 100644 --- a/rbi/increase/models/simulations/account_statement_create_params.rbi +++ b/rbi/increase/models/simulations/account_statement_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::AccountStatementCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Account the statement is for. sig { returns(String) } diff --git a/rbi/increase/models/simulations/account_transfer_complete_params.rbi b/rbi/increase/models/simulations/account_transfer_complete_params.rbi index 4cfb1fdfd..f439e8012 100644 --- a/rbi/increase/models/simulations/account_transfer_complete_params.rbi +++ b/rbi/increase/models/simulations/account_transfer_complete_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::AccountTransferCompleteParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/ach_transfer_acknowledge_params.rbi b/rbi/increase/models/simulations/ach_transfer_acknowledge_params.rbi index edbcdf8f7..e8ba6b3fa 100644 --- a/rbi/increase/models/simulations/ach_transfer_acknowledge_params.rbi +++ b/rbi/increase/models/simulations/ach_transfer_acknowledge_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::ACHTransferAcknowledgeParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi b/rbi/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi index d3cfac5cf..86cb00483 100644 --- a/rbi/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi +++ b/rbi/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::ACHTransferCreateNotificationOfChangeParams, + Increase::Internal::AnyHash + ) + end # The reason for the notification of change. sig do diff --git a/rbi/increase/models/simulations/ach_transfer_return_params.rbi b/rbi/increase/models/simulations/ach_transfer_return_params.rbi index 9ff4c8d7a..2975b7d51 100644 --- a/rbi/increase/models/simulations/ach_transfer_return_params.rbi +++ b/rbi/increase/models/simulations/ach_transfer_return_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::ACHTransferReturnParams, + Increase::Internal::AnyHash + ) + end # The reason why the Federal Reserve or destination bank returned this transfer. # Defaults to `no_account`. diff --git a/rbi/increase/models/simulations/ach_transfer_settle_params.rbi b/rbi/increase/models/simulations/ach_transfer_settle_params.rbi index 284597b5a..0a8df71d3 100644 --- a/rbi/increase/models/simulations/ach_transfer_settle_params.rbi +++ b/rbi/increase/models/simulations/ach_transfer_settle_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::ACHTransferSettleParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/ach_transfer_submit_params.rbi b/rbi/increase/models/simulations/ach_transfer_submit_params.rbi index 9b5b6080e..b85948a9a 100644 --- a/rbi/increase/models/simulations/ach_transfer_submit_params.rbi +++ b/rbi/increase/models/simulations/ach_transfer_submit_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::ACHTransferSubmitParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/card_authorization_create_params.rbi b/rbi/increase/models/simulations/card_authorization_create_params.rbi index 018eb2375..cd40b675f 100644 --- a/rbi/increase/models/simulations/card_authorization_create_params.rbi +++ b/rbi/increase/models/simulations/card_authorization_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardAuthorizationCreateParams, + Increase::Internal::AnyHash + ) + end # The authorization amount in cents. sig { returns(Integer) } @@ -465,7 +470,12 @@ module Increase class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails, + Increase::Internal::AnyHash + ) + end # Fields specific to the Visa network. sig do @@ -509,7 +519,12 @@ module Increase class Visa < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) + end # The reason code for the stand-in processing. sig do diff --git a/rbi/increase/models/simulations/card_authorization_create_response.rbi b/rbi/increase/models/simulations/card_authorization_create_response.rbi index 8805784a3..c4395aeec 100644 --- a/rbi/increase/models/simulations/card_authorization_create_response.rbi +++ b/rbi/increase/models/simulations/card_authorization_create_response.rbi @@ -5,7 +5,12 @@ module Increase module Simulations class CardAuthorizationCreateResponse < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Models::Simulations::CardAuthorizationCreateResponse, + Increase::Internal::AnyHash + ) + end # If the authorization attempt fails, this will contain the resulting # [Declined Transaction](#declined-transactions) object. The Declined diff --git a/rbi/increase/models/simulations/card_authorization_expiration_create_params.rbi b/rbi/increase/models/simulations/card_authorization_expiration_create_params.rbi index cad81d32b..de2716387 100644 --- a/rbi/increase/models/simulations/card_authorization_expiration_create_params.rbi +++ b/rbi/increase/models/simulations/card_authorization_expiration_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardAuthorizationExpirationCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Card Payment to expire. sig { returns(String) } diff --git a/rbi/increase/models/simulations/card_dispute_action_params.rbi b/rbi/increase/models/simulations/card_dispute_action_params.rbi index 44b38bdaa..1bb1fca38 100644 --- a/rbi/increase/models/simulations/card_dispute_action_params.rbi +++ b/rbi/increase/models/simulations/card_dispute_action_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardDisputeActionParams, + Increase::Internal::AnyHash + ) + end # The status to move the dispute to. sig do diff --git a/rbi/increase/models/simulations/card_fuel_confirmation_create_params.rbi b/rbi/increase/models/simulations/card_fuel_confirmation_create_params.rbi index 364187cfb..4590a59ac 100644 --- a/rbi/increase/models/simulations/card_fuel_confirmation_create_params.rbi +++ b/rbi/increase/models/simulations/card_fuel_confirmation_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardFuelConfirmationCreateParams, + Increase::Internal::AnyHash + ) + end # The amount of the fuel_confirmation in minor units in the card authorization's # currency. diff --git a/rbi/increase/models/simulations/card_increment_create_params.rbi b/rbi/increase/models/simulations/card_increment_create_params.rbi index 56c8a3103..86e3c4b61 100644 --- a/rbi/increase/models/simulations/card_increment_create_params.rbi +++ b/rbi/increase/models/simulations/card_increment_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardIncrementCreateParams, + Increase::Internal::AnyHash + ) + end # The amount of the increment in minor units in the card authorization's currency. sig { returns(Integer) } diff --git a/rbi/increase/models/simulations/card_refund_create_params.rbi b/rbi/increase/models/simulations/card_refund_create_params.rbi index 0c4e73899..66f6daa3e 100644 --- a/rbi/increase/models/simulations/card_refund_create_params.rbi +++ b/rbi/increase/models/simulations/card_refund_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardRefundCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier for the Transaction to refund. The Transaction's source must have # a category of card_settlement. diff --git a/rbi/increase/models/simulations/card_reversal_create_params.rbi b/rbi/increase/models/simulations/card_reversal_create_params.rbi index 739690652..cafb15cc5 100644 --- a/rbi/increase/models/simulations/card_reversal_create_params.rbi +++ b/rbi/increase/models/simulations/card_reversal_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardReversalCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Card Payment to create a reversal on. sig { returns(String) } diff --git a/rbi/increase/models/simulations/card_settlement_create_params.rbi b/rbi/increase/models/simulations/card_settlement_create_params.rbi index 85a95724e..c58722826 100644 --- a/rbi/increase/models/simulations/card_settlement_create_params.rbi +++ b/rbi/increase/models/simulations/card_settlement_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CardSettlementCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Card to create a settlement on. sig { returns(String) } diff --git a/rbi/increase/models/simulations/check_deposit_reject_params.rbi b/rbi/increase/models/simulations/check_deposit_reject_params.rbi index 3a7b04789..6e23728c7 100644 --- a/rbi/increase/models/simulations/check_deposit_reject_params.rbi +++ b/rbi/increase/models/simulations/check_deposit_reject_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CheckDepositRejectParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/check_deposit_return_params.rbi b/rbi/increase/models/simulations/check_deposit_return_params.rbi index a2a84ff94..dd9dff9ab 100644 --- a/rbi/increase/models/simulations/check_deposit_return_params.rbi +++ b/rbi/increase/models/simulations/check_deposit_return_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CheckDepositReturnParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/check_deposit_submit_params.rbi b/rbi/increase/models/simulations/check_deposit_submit_params.rbi index f31d7e9df..e8bdc7214 100644 --- a/rbi/increase/models/simulations/check_deposit_submit_params.rbi +++ b/rbi/increase/models/simulations/check_deposit_submit_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CheckDepositSubmitParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/check_transfer_mail_params.rbi b/rbi/increase/models/simulations/check_transfer_mail_params.rbi index 337c83572..c8f3aa702 100644 --- a/rbi/increase/models/simulations/check_transfer_mail_params.rbi +++ b/rbi/increase/models/simulations/check_transfer_mail_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::CheckTransferMailParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/digital_wallet_token_request_create_params.rbi b/rbi/increase/models/simulations/digital_wallet_token_request_create_params.rbi index 23a61e8d8..50fb1ff79 100644 --- a/rbi/increase/models/simulations/digital_wallet_token_request_create_params.rbi +++ b/rbi/increase/models/simulations/digital_wallet_token_request_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::DigitalWalletTokenRequestCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Card to be authorized. sig { returns(String) } diff --git a/rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi b/rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi index 11973930c..e565c8918 100644 --- a/rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi +++ b/rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi @@ -5,7 +5,12 @@ module Increase module Simulations class DigitalWalletTokenRequestCreateResponse < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse, + Increase::Internal::AnyHash + ) + end # If the simulated tokenization attempt was declined, this field contains details # as to why. diff --git a/rbi/increase/models/simulations/document_create_params.rbi b/rbi/increase/models/simulations/document_create_params.rbi index 99c0d6278..e8e4cdb86 100644 --- a/rbi/increase/models/simulations/document_create_params.rbi +++ b/rbi/increase/models/simulations/document_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::DocumentCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Account the tax document is for. sig { returns(String) } diff --git a/rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi b/rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi index 275d487e9..311aeb4d7 100644 --- a/rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi +++ b/rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InboundACHTransferCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Account Number the inbound ACH Transfer is for. sig { returns(String) } diff --git a/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi b/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi index d949b366c..4a1c9ffd5 100644 --- a/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi +++ b/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InboundCheckDepositCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Account Number the Inbound Check Deposit will be against. sig { returns(String) } diff --git a/rbi/increase/models/simulations/inbound_funds_hold_release_params.rbi b/rbi/increase/models/simulations/inbound_funds_hold_release_params.rbi index edc5e05ac..7cbc48a7a 100644 --- a/rbi/increase/models/simulations/inbound_funds_hold_release_params.rbi +++ b/rbi/increase/models/simulations/inbound_funds_hold_release_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InboundFundsHoldReleaseParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/inbound_funds_hold_release_response.rbi b/rbi/increase/models/simulations/inbound_funds_hold_release_response.rbi index 9926f0692..75e5f634d 100644 --- a/rbi/increase/models/simulations/inbound_funds_hold_release_response.rbi +++ b/rbi/increase/models/simulations/inbound_funds_hold_release_response.rbi @@ -5,7 +5,12 @@ module Increase module Simulations class InboundFundsHoldReleaseResponse < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Models::Simulations::InboundFundsHoldReleaseResponse, + Increase::Internal::AnyHash + ) + end # The Inbound Funds Hold identifier. sig { returns(String) } diff --git a/rbi/increase/models/simulations/inbound_mail_item_create_params.rbi b/rbi/increase/models/simulations/inbound_mail_item_create_params.rbi index 1a38a6a23..44b59bfeb 100644 --- a/rbi/increase/models/simulations/inbound_mail_item_create_params.rbi +++ b/rbi/increase/models/simulations/inbound_mail_item_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InboundMailItemCreateParams, + Increase::Internal::AnyHash + ) + end # The amount of the check to be simulated, in cents. sig { returns(Integer) } diff --git a/rbi/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi b/rbi/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi index 870f240f5..6d84220e8 100644 --- a/rbi/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi +++ b/rbi/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InboundRealTimePaymentsTransferCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Account Number the inbound Real-Time Payments Transfer is # for. diff --git a/rbi/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi b/rbi/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi index 6f3c11ada..da572f3bd 100644 --- a/rbi/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi +++ b/rbi/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InboundWireDrawdownRequestCreateParams, + Increase::Internal::AnyHash + ) + end # The amount being requested in cents. sig { returns(Integer) } diff --git a/rbi/increase/models/simulations/inbound_wire_transfer_create_params.rbi b/rbi/increase/models/simulations/inbound_wire_transfer_create_params.rbi index 94bd599c7..3e0f3746f 100644 --- a/rbi/increase/models/simulations/inbound_wire_transfer_create_params.rbi +++ b/rbi/increase/models/simulations/inbound_wire_transfer_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InboundWireTransferCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Account Number the inbound Wire Transfer is for. sig { returns(String) } diff --git a/rbi/increase/models/simulations/interest_payment_create_params.rbi b/rbi/increase/models/simulations/interest_payment_create_params.rbi index 658832e2a..0f8ec984d 100644 --- a/rbi/increase/models/simulations/interest_payment_create_params.rbi +++ b/rbi/increase/models/simulations/interest_payment_create_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::InterestPaymentCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Account the Interest Payment should be paid to is for. sig { returns(String) } diff --git a/rbi/increase/models/simulations/physical_card_advance_shipment_params.rbi b/rbi/increase/models/simulations/physical_card_advance_shipment_params.rbi index c4bf8fc6e..ffe3e936c 100644 --- a/rbi/increase/models/simulations/physical_card_advance_shipment_params.rbi +++ b/rbi/increase/models/simulations/physical_card_advance_shipment_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::PhysicalCardAdvanceShipmentParams, + Increase::Internal::AnyHash + ) + end # The shipment status to move the Physical Card to. sig do diff --git a/rbi/increase/models/simulations/program_create_params.rbi b/rbi/increase/models/simulations/program_create_params.rbi index 97994b949..e75d91c09 100644 --- a/rbi/increase/models/simulations/program_create_params.rbi +++ b/rbi/increase/models/simulations/program_create_params.rbi @@ -8,28 +8,47 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::ProgramCreateParams, + Increase::Internal::AnyHash + ) + end # The name of the program being added. sig { returns(String) } attr_accessor :name + # The identifier of the Account the Program should be added to is for. + sig { returns(T.nilable(String)) } + attr_reader :reserve_account_id + + sig { params(reserve_account_id: String).void } + attr_writer :reserve_account_id + sig do params( name: String, + reserve_account_id: String, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( # The name of the program being added. name:, + # The identifier of the Account the Program should be added to is for. + reserve_account_id: nil, request_options: {} ) end sig do override.returns( - { name: String, request_options: Increase::RequestOptions } + { + name: String, + reserve_account_id: String, + request_options: Increase::RequestOptions + } ) end def to_hash diff --git a/rbi/increase/models/simulations/real_time_payments_transfer_complete_params.rbi b/rbi/increase/models/simulations/real_time_payments_transfer_complete_params.rbi index b6e83ef63..85277e812 100644 --- a/rbi/increase/models/simulations/real_time_payments_transfer_complete_params.rbi +++ b/rbi/increase/models/simulations/real_time_payments_transfer_complete_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::RealTimePaymentsTransferCompleteParams, + Increase::Internal::AnyHash + ) + end # If set, the simulation will reject the transfer. sig do @@ -56,7 +61,12 @@ module Increase class Rejection < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::RealTimePaymentsTransferCompleteParams::Rejection, + Increase::Internal::AnyHash + ) + end # The reason code that the simulated rejection will have. sig do diff --git a/rbi/increase/models/simulations/wire_transfer_reverse_params.rbi b/rbi/increase/models/simulations/wire_transfer_reverse_params.rbi index 8381b76f5..790dfa518 100644 --- a/rbi/increase/models/simulations/wire_transfer_reverse_params.rbi +++ b/rbi/increase/models/simulations/wire_transfer_reverse_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::WireTransferReverseParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/simulations/wire_transfer_submit_params.rbi b/rbi/increase/models/simulations/wire_transfer_submit_params.rbi index 193fbad52..a478875a4 100644 --- a/rbi/increase/models/simulations/wire_transfer_submit_params.rbi +++ b/rbi/increase/models/simulations/wire_transfer_submit_params.rbi @@ -8,7 +8,12 @@ module Increase include Increase::Internal::Type::RequestParameters OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Simulations::WireTransferSubmitParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/supplemental_document_create_params.rbi b/rbi/increase/models/supplemental_document_create_params.rbi index 45ef3a215..21acbbd45 100644 --- a/rbi/increase/models/supplemental_document_create_params.rbi +++ b/rbi/increase/models/supplemental_document_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::SupplementalDocumentCreateParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Entity to associate with the supplemental document. sig { returns(String) } diff --git a/rbi/increase/models/supplemental_document_list_params.rbi b/rbi/increase/models/supplemental_document_list_params.rbi index 8a16b86d1..403ccea99 100644 --- a/rbi/increase/models/supplemental_document_list_params.rbi +++ b/rbi/increase/models/supplemental_document_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::SupplementalDocumentListParams, + Increase::Internal::AnyHash + ) + end # The identifier of the Entity to list supplemental documents for. sig { returns(String) } diff --git a/rbi/increase/models/transaction.rbi b/rbi/increase/models/transaction.rbi index 5787f72aa..e7a22ae2a 100644 --- a/rbi/increase/models/transaction.rbi +++ b/rbi/increase/models/transaction.rbi @@ -3,7 +3,10 @@ module Increase module Models class Transaction < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::Transaction, Increase::Internal::AnyHash) + end # The Transaction identifier. sig { returns(String) } @@ -197,7 +200,9 @@ module Increase class Source < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::Transaction::Source, Increase::Internal::AnyHash) + end # An Account Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_intention`. Two @@ -1142,7 +1147,12 @@ module Increase class AccountTransferIntention < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::AccountTransferIntention, + Increase::Internal::AnyHash + ) + end # The pending amount in the minor unit of the transaction's currency. For dollars, # for example, this is cents. @@ -1293,7 +1303,12 @@ module Increase class ACHTransferIntention < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::ACHTransferIntention, + Increase::Internal::AnyHash + ) + end # The account number for the destination account. sig { returns(String) } @@ -1363,7 +1378,12 @@ module Increase class ACHTransferRejection < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::ACHTransferRejection, + Increase::Internal::AnyHash + ) + end # The identifier of the ACH Transfer that led to this Transaction. sig { returns(String) } @@ -1387,7 +1407,12 @@ module Increase class ACHTransferReturn < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::ACHTransferReturn, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was created. @@ -1994,7 +2019,12 @@ module Increase class CardDisputeAcceptance < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardDisputeAcceptance, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Card Dispute was accepted. @@ -2047,7 +2077,12 @@ module Increase class CardDisputeLoss < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardDisputeLoss, + Increase::Internal::AnyHash + ) + end # The identifier of the Card Dispute that was lost. sig { returns(String) } @@ -2108,7 +2143,12 @@ module Increase class CardRefund < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund, + Increase::Internal::AnyHash + ) + end # The Card Refund identifier. sig { returns(String) } @@ -2387,7 +2427,12 @@ module Increase class Cashback < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund::Cashback, + Increase::Internal::AnyHash + ) + end # The cashback amount given as a string containing a decimal number. The amount is # a positive number if it will be credited to you (e.g., settlements) and a @@ -2570,7 +2615,12 @@ module Increase class Interchange < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund::Interchange, + Increase::Internal::AnyHash + ) + end # The interchange amount given as a string containing a decimal number in major # units (so e.g., "3.14" for $3.14). The amount is a positive number if it is @@ -2698,7 +2748,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -2749,7 +2804,12 @@ module Increase class PurchaseDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund::PurchaseDetails, + Increase::Internal::AnyHash + ) + end # Fields specific to car rentals. sig do @@ -2934,7 +2994,12 @@ module Increase class CarRental < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund::PurchaseDetails::CarRental, + Increase::Internal::AnyHash + ) + end # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } @@ -3230,7 +3295,12 @@ module Increase class Lodging < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund::PurchaseDetails::Lodging, + Increase::Internal::AnyHash + ) + end # Date the customer checked in. sig { returns(T.nilable(Date)) } @@ -3590,7 +3660,12 @@ module Increase class Travel < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRefund::PurchaseDetails::Travel, + Increase::Internal::AnyHash + ) + end # Ancillary purchases in addition to the airfare. sig do @@ -3785,7 +3860,10 @@ module Increase class Ancillary < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary, + Increase::Internal::AnyHash + ) end # If this purchase has a connection or relationship to another purchase, such as a @@ -3929,7 +4007,10 @@ module Increase class Service < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service, + Increase::Internal::AnyHash + ) end # Category of the ancillary service. @@ -4323,7 +4404,10 @@ module Increase class TripLeg < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg, + Increase::Internal::AnyHash + ) end # Carrier code (e.g., United Airlines, Jet Blue, etc.). @@ -4482,7 +4566,12 @@ module Increase class CardRevenuePayment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardRevenuePayment, + Increase::Internal::AnyHash + ) + end # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. @@ -4624,7 +4713,12 @@ module Increase class CardSettlement < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement, + Increase::Internal::AnyHash + ) + end # The Card Settlement identifier. sig { returns(String) } @@ -4924,7 +5018,12 @@ module Increase class Cashback < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement::Cashback, + Increase::Internal::AnyHash + ) + end # The cashback amount given as a string containing a decimal number. The amount is # a positive number if it will be credited to you (e.g., settlements) and a @@ -5107,7 +5206,12 @@ module Increase class Interchange < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement::Interchange, + Increase::Internal::AnyHash + ) + end # The interchange amount given as a string containing a decimal number in major # units (so e.g., "3.14" for $3.14). The amount is a positive number if it is @@ -5235,7 +5339,12 @@ module Increase class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement::NetworkIdentifiers, + Increase::Internal::AnyHash + ) + end # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -5286,7 +5395,12 @@ module Increase class PurchaseDetails < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement::PurchaseDetails, + Increase::Internal::AnyHash + ) + end # Fields specific to car rentals. sig do @@ -5471,7 +5585,12 @@ module Increase class CarRental < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement::PurchaseDetails::CarRental, + Increase::Internal::AnyHash + ) + end # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } @@ -5767,7 +5886,12 @@ module Increase class Lodging < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement::PurchaseDetails::Lodging, + Increase::Internal::AnyHash + ) + end # Date the customer checked in. sig { returns(T.nilable(Date)) } @@ -6127,7 +6251,12 @@ module Increase class Travel < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CardSettlement::PurchaseDetails::Travel, + Increase::Internal::AnyHash + ) + end # Ancillary purchases in addition to the airfare. sig do @@ -6322,7 +6451,10 @@ module Increase class Ancillary < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary, + Increase::Internal::AnyHash + ) end # If this purchase has a connection or relationship to another purchase, such as a @@ -6466,7 +6598,10 @@ module Increase class Service < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service, + Increase::Internal::AnyHash + ) end # Category of the ancillary service. @@ -6860,7 +6995,10 @@ module Increase class TripLeg < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg, + Increase::Internal::AnyHash + ) end # Carrier code (e.g., United Airlines, Jet Blue, etc.). @@ -7022,7 +7160,12 @@ module Increase class CashbackPayment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CashbackPayment, + Increase::Internal::AnyHash + ) + end # The card on which the cashback was accrued. sig { returns(T.nilable(String)) } @@ -7392,7 +7535,12 @@ module Increase class CheckDepositAcceptance < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CheckDepositAcceptance, + Increase::Internal::AnyHash + ) + end # The account number printed on the check. sig { returns(String) } @@ -7556,7 +7704,12 @@ module Increase class CheckDepositReturn < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CheckDepositReturn, + Increase::Internal::AnyHash + ) + end # The returned amount in USD cents. sig { returns(Integer) } @@ -7926,7 +8079,12 @@ module Increase class CheckTransferDeposit < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::CheckTransferDeposit, + Increase::Internal::AnyHash + ) + end # The identifier of the API File object containing an image of the back of the # deposited check. @@ -8065,7 +8223,12 @@ module Increase class FeePayment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::FeePayment, + Increase::Internal::AnyHash + ) + end # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. @@ -8199,7 +8362,12 @@ module Increase class InboundACHTransfer < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundACHTransfer, + Increase::Internal::AnyHash + ) + end # Additional information sent from the originator. sig do @@ -8346,7 +8514,12 @@ module Increase class Addenda < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundACHTransfer::Addenda, + Increase::Internal::AnyHash + ) + end # The type of addendum. sig do @@ -8443,7 +8616,12 @@ module Increase class Freeform < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundACHTransfer::Addenda::Freeform, + Increase::Internal::AnyHash + ) + end # Each entry represents an addendum received from the originator. sig do @@ -8486,7 +8664,10 @@ module Increase class Entry < Increase::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(T.self_type, Increase::Internal::AnyHash) + T.any( + Increase::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry, + Increase::Internal::AnyHash + ) end # The payment related information passed in the addendum. @@ -8516,7 +8697,12 @@ module Increase class InboundACHTransferReturnIntention < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundACHTransferReturnIntention, + Increase::Internal::AnyHash + ) + end # The ID of the Inbound ACH Transfer that is being returned. sig { returns(String) } @@ -8543,7 +8729,12 @@ module Increase class InboundCheckAdjustment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundCheckAdjustment, + Increase::Internal::AnyHash + ) + end # The ID of the transaction that was adjusted. sig { returns(String) } @@ -8651,7 +8842,12 @@ module Increase class InboundCheckDepositReturnIntention < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundCheckDepositReturnIntention, + Increase::Internal::AnyHash + ) + end # The ID of the Inbound Check Deposit that is being returned. sig { returns(String) } @@ -8694,7 +8890,12 @@ module Increase class InboundRealTimePaymentsTransferConfirmation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation, + Increase::Internal::AnyHash + ) + end # The amount in the minor unit of the transfer's currency. For dollars, for # example, this is cents. @@ -8870,7 +9071,12 @@ module Increase class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundRealTimePaymentsTransferDecline, + Increase::Internal::AnyHash + ) + end # The declined amount in the minor unit of the destination account currency. For # dollars, for example, this is cents. @@ -9127,7 +9333,12 @@ module Increase class InboundWireReversal < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundWireReversal, + Increase::Internal::AnyHash + ) + end # The amount that was reversed in USD cents. sig { returns(Integer) } @@ -9302,7 +9513,12 @@ module Increase class InboundWireTransfer < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundWireTransfer, + Increase::Internal::AnyHash + ) + end # The amount in USD cents. sig { returns(Integer) } @@ -9486,7 +9702,12 @@ module Increase class InboundWireTransferReversal < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InboundWireTransferReversal, + Increase::Internal::AnyHash + ) + end # The ID of the Inbound Wire Transfer that is being reversed. sig { returns(String) } @@ -9513,7 +9734,12 @@ module Increase class InterestPayment < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InterestPayment, + Increase::Internal::AnyHash + ) + end # The account on which the interest was accrued. sig { returns(String) } @@ -9656,7 +9882,12 @@ module Increase class InternalSource < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::InternalSource, + Increase::Internal::AnyHash + ) + end # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. @@ -9920,7 +10151,12 @@ module Increase class RealTimePaymentsTransferAcknowledgement < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement, + Increase::Internal::AnyHash + ) + end # The transfer amount in USD cents. sig { returns(Integer) } @@ -9987,7 +10223,12 @@ module Increase class SampleFunds < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::SampleFunds, + Increase::Internal::AnyHash + ) + end # Where the sample funds came from. sig { returns(String) } @@ -10010,7 +10251,12 @@ module Increase class SwiftTransferIntention < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::SwiftTransferIntention, + Increase::Internal::AnyHash + ) + end # The identifier of the Swift Transfer that led to this Transaction. sig { returns(String) } @@ -10033,7 +10279,12 @@ module Increase class WireTransferIntention < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::Transaction::Source::WireTransferIntention, + Increase::Internal::AnyHash + ) + end # The destination account number. sig { returns(String) } diff --git a/rbi/increase/models/transaction_list_params.rbi b/rbi/increase/models/transaction_list_params.rbi index 95a4f5c22..ee85b16af 100644 --- a/rbi/increase/models/transaction_list_params.rbi +++ b/rbi/increase/models/transaction_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::TransactionListParams, Increase::Internal::AnyHash) + end # Filter Transactions for those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -102,7 +105,12 @@ module Increase class Category < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::TransactionListParams::Category, + Increase::Internal::AnyHash + ) + end # Return results whose value is in the provided list. For GET requests, this # should be encoded as a comma-delimited string, such as `?in=one,two,three`. @@ -382,7 +390,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::TransactionListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/transaction_retrieve_params.rbi b/rbi/increase/models/transaction_retrieve_params.rbi index 1af6c00e7..d6c34ced4 100644 --- a/rbi/increase/models/transaction_retrieve_params.rbi +++ b/rbi/increase/models/transaction_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::TransactionRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/wire_drawdown_request.rbi b/rbi/increase/models/wire_drawdown_request.rbi index 6c1d7e9fc..0cff72bc9 100644 --- a/rbi/increase/models/wire_drawdown_request.rbi +++ b/rbi/increase/models/wire_drawdown_request.rbi @@ -3,7 +3,10 @@ module Increase module Models class WireDrawdownRequest < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::WireDrawdownRequest, Increase::Internal::AnyHash) + end # The Wire drawdown request identifier. sig { returns(String) } @@ -259,7 +262,12 @@ module Increase class Submission < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireDrawdownRequest::Submission, + Increase::Internal::AnyHash + ) + end # The input message accountability data (IMAD) uniquely identifying the submission # with Fedwire. diff --git a/rbi/increase/models/wire_drawdown_request_create_params.rbi b/rbi/increase/models/wire_drawdown_request_create_params.rbi index 5f4ca4ee1..4bb93a2c4 100644 --- a/rbi/increase/models/wire_drawdown_request_create_params.rbi +++ b/rbi/increase/models/wire_drawdown_request_create_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::WireDrawdownRequestCreateParams, + Increase::Internal::AnyHash + ) + end # The Account Number to which the recipient should send funds. sig { returns(String) } diff --git a/rbi/increase/models/wire_drawdown_request_list_params.rbi b/rbi/increase/models/wire_drawdown_request_list_params.rbi index d00252df5..0ee88d137 100644 --- a/rbi/increase/models/wire_drawdown_request_list_params.rbi +++ b/rbi/increase/models/wire_drawdown_request_list_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::WireDrawdownRequestListParams, + Increase::Internal::AnyHash + ) + end # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -86,7 +92,12 @@ module Increase class Status < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireDrawdownRequestListParams::Status, + Increase::Internal::AnyHash + ) + end # Filter Wire Drawdown Requests for those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as diff --git a/rbi/increase/models/wire_drawdown_request_retrieve_params.rbi b/rbi/increase/models/wire_drawdown_request_retrieve_params.rbi index e1e673635..ce66a70a0 100644 --- a/rbi/increase/models/wire_drawdown_request_retrieve_params.rbi +++ b/rbi/increase/models/wire_drawdown_request_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::WireDrawdownRequestRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/wire_transfer.rbi b/rbi/increase/models/wire_transfer.rbi index 4998544cb..a39f912ae 100644 --- a/rbi/increase/models/wire_transfer.rbi +++ b/rbi/increase/models/wire_transfer.rbi @@ -3,7 +3,10 @@ module Increase module Models class WireTransfer < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::WireTransfer, Increase::Internal::AnyHash) + end # The wire transfer's identifier. sig { returns(String) } @@ -315,7 +318,9 @@ module Increase class Approval < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::WireTransfer::Approval, Increase::Internal::AnyHash) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -355,7 +360,12 @@ module Increase class Cancellation < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireTransfer::Cancellation, + Increase::Internal::AnyHash + ) + end # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -395,7 +405,12 @@ module Increase class CreatedBy < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireTransfer::CreatedBy, + Increase::Internal::AnyHash + ) + end # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::WireTransfer::CreatedBy::APIKey)) } @@ -486,7 +501,12 @@ module Increase class APIKey < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end # The description set for the API key when it was created. sig { returns(T.nilable(String)) } @@ -551,7 +571,12 @@ module Increase class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireTransfer::CreatedBy::OAuthApplication, + Increase::Internal::AnyHash + ) + end # The name of the OAuth Application. sig { returns(String) } @@ -572,7 +597,12 @@ module Increase class User < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireTransfer::CreatedBy::User, + Increase::Internal::AnyHash + ) + end # The email address of the User. sig { returns(String) } @@ -649,7 +679,9 @@ module Increase class Reversal < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any(Increase::WireTransfer::Reversal, Increase::Internal::AnyHash) + end # The amount that was reversed in USD cents. sig { returns(Integer) } @@ -879,7 +911,12 @@ module Increase class Submission < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireTransfer::Submission, + Increase::Internal::AnyHash + ) + end # The accountability data for the submission. sig { returns(String) } diff --git a/rbi/increase/models/wire_transfer_approve_params.rbi b/rbi/increase/models/wire_transfer_approve_params.rbi index 665146dd1..b3af7bfae 100644 --- a/rbi/increase/models/wire_transfer_approve_params.rbi +++ b/rbi/increase/models/wire_transfer_approve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::WireTransferApproveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/wire_transfer_cancel_params.rbi b/rbi/increase/models/wire_transfer_cancel_params.rbi index 853e44462..4d7e96ab6 100644 --- a/rbi/increase/models/wire_transfer_cancel_params.rbi +++ b/rbi/increase/models/wire_transfer_cancel_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::WireTransferCancelParams, Increase::Internal::AnyHash) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/models/wire_transfer_create_params.rbi b/rbi/increase/models/wire_transfer_create_params.rbi index dd9f585d3..17471c0c6 100644 --- a/rbi/increase/models/wire_transfer_create_params.rbi +++ b/rbi/increase/models/wire_transfer_create_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::WireTransferCreateParams, Increase::Internal::AnyHash) + end # The identifier for the account that will send the transfer. sig { returns(String) } diff --git a/rbi/increase/models/wire_transfer_list_params.rbi b/rbi/increase/models/wire_transfer_list_params.rbi index cdb55776e..ebe5f51f0 100644 --- a/rbi/increase/models/wire_transfer_list_params.rbi +++ b/rbi/increase/models/wire_transfer_list_params.rbi @@ -6,7 +6,10 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::WireTransferListParams, Increase::Internal::AnyHash) + end # Filter Wire Transfers to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -106,7 +109,12 @@ module Increase class CreatedAt < Increase::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + T.type_alias do + T.any( + Increase::WireTransferListParams::CreatedAt, + Increase::Internal::AnyHash + ) + end # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. diff --git a/rbi/increase/models/wire_transfer_retrieve_params.rbi b/rbi/increase/models/wire_transfer_retrieve_params.rbi index d9778ae9f..227c20727 100644 --- a/rbi/increase/models/wire_transfer_retrieve_params.rbi +++ b/rbi/increase/models/wire_transfer_retrieve_params.rbi @@ -6,7 +6,13 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any( + Increase::WireTransferRetrieveParams, + Increase::Internal::AnyHash + ) + end sig do params(request_options: Increase::RequestOptions::OrHash).returns( diff --git a/rbi/increase/request_options.rbi b/rbi/increase/request_options.rbi index 3d9c05c1d..3259a476a 100644 --- a/rbi/increase/request_options.rbi +++ b/rbi/increase/request_options.rbi @@ -7,7 +7,10 @@ module Increase # 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 < Increase::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + OrHash = + T.type_alias do + T.any(Increase::RequestOptions, Increase::Internal::AnyHash) + end # @api private sig { params(opts: Increase::RequestOptions::OrHash).void } diff --git a/rbi/increase/resources/simulations/programs.rbi b/rbi/increase/resources/simulations/programs.rbi index 6fe46cc0b..f7d640e8b 100644 --- a/rbi/increase/resources/simulations/programs.rbi +++ b/rbi/increase/resources/simulations/programs.rbi @@ -11,12 +11,15 @@ module Increase sig do params( name: String, + reserve_account_id: String, request_options: Increase::RequestOptions::OrHash ).returns(Increase::Program) end def create( # The name of the program being added. name:, + # The identifier of the Account the Program should be added to is for. + reserve_account_id: nil, request_options: {} ) end diff --git a/sig/increase/internal.rbs b/sig/increase/internal.rbs index 871f40835..bc54d08f5 100644 --- a/sig/increase/internal.rbs +++ b/sig/increase/internal.rbs @@ -1,5 +1,7 @@ module Increase module Internal + extend Increase::Internal::Util::SorbetRuntimeSupport + OMIT: Object end end diff --git a/sig/increase/internal/transport/base_client.rbs b/sig/increase/internal/transport/base_client.rbs index ef890770b..e285abac6 100644 --- a/sig/increase/internal/transport/base_client.rbs +++ b/sig/increase/internal/transport/base_client.rbs @@ -2,6 +2,8 @@ module Increase module Internal module Transport class BaseClient + extend Increase::Internal::Util::SorbetRuntimeSupport + type request_components = { method: Symbol, @@ -20,7 +22,6 @@ module Increase model: Increase::Internal::Type::Converter::input?, options: Increase::request_opts? } - type request_input = { method: Symbol, diff --git a/sig/increase/internal/transport/pooled_net_requester.rbs b/sig/increase/internal/transport/pooled_net_requester.rbs index b504fb383..26b6bb6ed 100644 --- a/sig/increase/internal/transport/pooled_net_requester.rbs +++ b/sig/increase/internal/transport/pooled_net_requester.rbs @@ -2,6 +2,8 @@ module Increase module Internal module Transport class PooledNetRequester + extend Increase::Internal::Util::SorbetRuntimeSupport + type request = { method: Symbol, diff --git a/sig/increase/internal/type/array_of.rbs b/sig/increase/internal/type/array_of.rbs index 7e41c01f1..f73fc2453 100644 --- a/sig/increase/internal/type/array_of.rbs +++ b/sig/increase/internal/type/array_of.rbs @@ -9,7 +9,7 @@ module Increase | ^-> Increase::Internal::Type::Converter::input | Increase::Internal::Type::Converter::input type_info, ?::Hash[Symbol, top] spec - ) -> instance + ) -> self def ===: (top other) -> bool diff --git a/sig/increase/internal/type/base_model.rbs b/sig/increase/internal/type/base_model.rbs index ba45d394b..cb08e4e90 100644 --- a/sig/increase/internal/type/base_model.rbs +++ b/sig/increase/internal/type/base_model.rbs @@ -3,10 +3,13 @@ module Increase module Type class BaseModel extend Increase::Internal::Type::Converter + extend Increase::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, (Increase::Internal::Type::BaseModel::known_field & { type_fn: (^-> Increase::Internal::Type::Converter::input) })] @@ -58,10 +61,10 @@ module Increase def self.coerce: ( Increase::Internal::Type::BaseModel | ::Hash[top, top] | top value, state: Increase::Internal::Type::Converter::coerce_state - ) -> (instance | top) + ) -> (self | top) def self.dump: ( - instance | top value, + self | top value, state: Increase::Internal::Type::Converter::dump_state ) -> (::Hash[top, top] | top) diff --git a/sig/increase/internal/type/converter.rbs b/sig/increase/internal/type/converter.rbs index 9d3581664..00f462ae8 100644 --- a/sig/increase/internal/type/converter.rbs +++ b/sig/increase/internal/type/converter.rbs @@ -2,6 +2,8 @@ module Increase module Internal module Type module Converter + extend Increase::Internal::Util::SorbetRuntimeSupport + type input = Increase::Internal::Type::Converter | Class type coerce_state = diff --git a/sig/increase/internal/type/enum.rbs b/sig/increase/internal/type/enum.rbs index 6dbd0cd36..6acd8ddc8 100644 --- a/sig/increase/internal/type/enum.rbs +++ b/sig/increase/internal/type/enum.rbs @@ -3,6 +3,7 @@ module Increase module Type module Enum include Increase::Internal::Type::Converter + include Increase::Internal::Util::SorbetRuntimeSupport def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] diff --git a/sig/increase/internal/type/hash_of.rbs b/sig/increase/internal/type/hash_of.rbs index 870585e14..2e97559c3 100644 --- a/sig/increase/internal/type/hash_of.rbs +++ b/sig/increase/internal/type/hash_of.rbs @@ -9,7 +9,7 @@ module Increase | ^-> Increase::Internal::Type::Converter::input | Increase::Internal::Type::Converter::input type_info, ?::Hash[Symbol, top] spec - ) -> instance + ) -> self def ===: (top other) -> bool diff --git a/sig/increase/internal/type/union.rbs b/sig/increase/internal/type/union.rbs index ce537ae83..73c295a5b 100644 --- a/sig/increase/internal/type/union.rbs +++ b/sig/increase/internal/type/union.rbs @@ -3,6 +3,7 @@ module Increase module Type module Union include Increase::Internal::Type::Converter + include Increase::Internal::Util::SorbetRuntimeSupport private def self.known_variants: -> ::Array[[Symbol?, (^-> Increase::Internal::Type::Converter::input)]] diff --git a/sig/increase/internal/util.rbs b/sig/increase/internal/util.rbs index e9ff3963f..6f79420d7 100644 --- a/sig/increase/internal/util.rbs +++ b/sig/increase/internal/util.rbs @@ -1,6 +1,8 @@ module Increase module Internal module Util + extend Increase::Internal::Util::SorbetRuntimeSupport + def self?.monotonic_secs: -> Float def self?.arch: -> String @@ -155,6 +157,17 @@ module Increase def self?.decode_sse: ( Enumerable[String] lines ) -> Enumerable[Increase::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/sig/increase/models/simulations/program_create_params.rbs b/sig/increase/models/simulations/program_create_params.rbs index 483aa2d92..a011f3836 100644 --- a/sig/increase/models/simulations/program_create_params.rbs +++ b/sig/increase/models/simulations/program_create_params.rbs @@ -2,7 +2,8 @@ module Increase module Models module Simulations type program_create_params = - { name: String } & Increase::Internal::Type::request_parameters + { name: String, reserve_account_id: String } + & Increase::Internal::Type::request_parameters class ProgramCreateParams < Increase::Internal::Type::BaseModel extend Increase::Internal::Type::RequestParameters::Converter @@ -10,8 +11,13 @@ module Increase attr_accessor name: String + attr_reader reserve_account_id: String? + + def reserve_account_id=: (String) -> String + def initialize: ( name: String, + ?reserve_account_id: String, ?request_options: Increase::request_opts ) -> void end diff --git a/sig/increase/resources/simulations/programs.rbs b/sig/increase/resources/simulations/programs.rbs index 4ab5dd299..eb34240f0 100644 --- a/sig/increase/resources/simulations/programs.rbs +++ b/sig/increase/resources/simulations/programs.rbs @@ -4,6 +4,7 @@ module Increase class Programs def create: ( name: String, + ?reserve_account_id: String, ?request_options: Increase::request_opts ) -> Increase::Program diff --git a/test/increase/client_test.rb b/test/increase/client_test.rb index 8cc95edb6..98d5efa77 100644 --- a/test/increase/client_test.rb +++ b/test/increase/client_test.rb @@ -3,14 +3,9 @@ require_relative "test_helper" class IncreaseTest < 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/increase/internal/sorbet_runtime_support_test.rb b/test/increase/internal/sorbet_runtime_support_test.rb new file mode 100644 index 000000000..73c980739 --- /dev/null +++ b/test/increase/internal/sorbet_runtime_support_test.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +require_relative "../test_helper" + +class Increase::Test::SorbetRuntimeSupportTest < Minitest::Test + i_suck_and_my_tests_are_order_dependent! + + module E + extend Increase::Internal::Type::Enum + + define_sorbet_constant!(:TaggedSymbol) { 1 } + end + + module U + extend Increase::Internal::Type::Union + + define_sorbet_constant!(:Variants) { 2 } + end + + class M < Increase::Internal::Type::BaseModel + define_sorbet_constant!(:OrHash) { 3 } + end + + def test_nil_aliases + err = Increase::Internal::Util::SorbetRuntimeSupport::MissingSorbetRuntimeError + + assert_raises(err) { Increase::Internal::AnyHash } + assert_raises(err) { Increase::Internal::Type::Converter::Input } + assert_raises(err) { Increase::Internal::Type::Converter::CoerceState } + assert_raises(err) { Increase::Internal::Type::Converter::DumpState } + assert_raises(err) { Increase::Internal::Type::BaseModel::KnownField } + assert_raises(err) { Increase::Internal::Util::ParsedUri } + assert_raises(err) { Increase::Internal::Util::ServerSentEvent } + assert_raises(err) { Increase::Internal::Transport::BaseClient::RequestComponents } + assert_raises(err) { Increase::Internal::Transport::BaseClient::RequestInput } + assert_raises(err) { Increase::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/increase/test_helper.rb b/test/increase/test_helper.rb index 0aa6e3144..b5756beaa 100644 --- a/test/increase/test_helper.rb +++ b/test/increase/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