diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f14b480a..aaf968a1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.2" + ".": "0.1.0-alpha.3" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff1185b..be53ba48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## 0.1.0-alpha.3 (2025-04-03) + +Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.2...v0.1.0-alpha.3) + +### ⚠ BREAKING CHANGES + +* bump min supported ruby version to 3.1 (oldest non-EOL) ([#10](https://github.com/Increase/increase-ruby/issues/10)) +* remove top level type aliases to relocated classes ([#9](https://github.com/Increase/increase-ruby/issues/9)) + +### Features + +* bump min supported ruby version to 3.1 (oldest non-EOL) ([#10](https://github.com/Increase/increase-ruby/issues/10)) ([6bdbf40](https://github.com/Increase/increase-ruby/commit/6bdbf40be7f88549fdac9c50958a876b8bc21319)) +* remove top level type aliases to relocated classes ([#9](https://github.com/Increase/increase-ruby/issues/9)) ([21e1d7f](https://github.com/Increase/increase-ruby/commit/21e1d7f50eeca18069b3f32cb7f1872dfc3ca8f6)) + + +### Bug Fixes + +* pre-release version string should match ruby, not semver conventions ([#12](https://github.com/Increase/increase-ruby/issues/12)) ([fda09d8](https://github.com/Increase/increase-ruby/commit/fda09d8fb2b491f9b893c340ea20d2f1d3f3e21c)) + + +### Chores + +* demonstrate how to make undocumented requests in README ([#11](https://github.com/Increase/increase-ruby/issues/11)) ([3a4e543](https://github.com/Increase/increase-ruby/commit/3a4e543eeb9b6b72559e4c7193a54f27fe006f49)) +* **internal:** version bump ([#6](https://github.com/Increase/increase-ruby/issues/6)) ([99ee517](https://github.com/Increase/increase-ruby/commit/99ee5170448bca36d7773f7a443c27a4028da439)) +* move private classes into internal module ([#8](https://github.com/Increase/increase-ruby/issues/8)) ([13f35d4](https://github.com/Increase/increase-ruby/commit/13f35d46ee4677f7f034afd91c6a911ec71e1ae7)) + ## 0.1.0-alpha.2 (2025-04-02) Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) diff --git a/Gemfile.lock b/Gemfile.lock index 7245c442..0fad48ec 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (0.1.0.pre.alpha.2) + increase (0.1.0.pre.alpha.3) connection_pool GEM diff --git a/README.md b/README.md index d4d37fab..0a74130e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Increase Ruby API library -The Increase Ruby library provides convenient access to the Increase REST API from any Ruby 3.0.0+ application. +The Increase Ruby library provides convenient access to the Increase REST API from any Ruby 3.1.0+ application. ## Documentation @@ -13,7 +13,7 @@ The underlying REST API documentation can be found on [increase.com](https://inc To use this gem, install via Bundler by adding the following to your application's `Gemfile`: ```ruby -gem "increase", "~> 0.1.0.pre.alpha.1" +gem "increase", "~> 0.1.0.pre.alpha.2" ``` To fetch an initial copy of the gem: @@ -134,7 +134,9 @@ increase.accounts.create( ) ``` -## Sorbet Support +## LSP Support + +### Sorbet **This library emits an intentional warning under the [`tapioca` toolchain](https://github.com/Shopify/tapioca)**. This is normal, and does not impact functionality. @@ -158,6 +160,31 @@ increase.accounts.create(**model) ## Advanced +### Making custom/undocumented requests + +This library is typed for convenient access to the documented API. + +If you need to access undocumented endpoints, params, or response properties, the library can still be used. + +#### Undocumented request params + +If you want to explicitly send an extra param, you can do so with the `extra_query`, `extra_body`, and `extra_headers` under the `request_options:` parameter when making a requests as seen in examples above. + +#### Undocumented endpoints + +To make requests to undocumented endpoints, you can make requests using `client.request`. Options on the client will be respected (such as retries) when making this request. + +```ruby +response = + client.request( + method: :post, + path: '/undocumented/endpoint', + query: {"dog": "woof"}, + headers: {"useful-header": "interesting-value"}, + body: {"he": "llo"}, + ) +``` + ### Concurrency & Connection Pooling The `Increase::Client` instances are thread-safe, and should be re-used across multiple threads. By default, each `Client` have their own HTTP connection pool, with a maximum number of connections equal to thread count. @@ -176,4 +203,4 @@ This package considers improvements to the (non-runtime) `*.rbi` and `*.rbs` typ ## Requirements -Ruby 3.0.0 or higher. +Ruby 3.1.0 or higher. diff --git a/lib/increase.rb b/lib/increase.rb index 7cf0e212..04569a17 100644 --- a/lib/increase.rb +++ b/lib/increase.rb @@ -36,24 +36,24 @@ # Package files. require_relative "increase/version" -require_relative "increase/util" -require_relative "increase/type/converter" -require_relative "increase/type/unknown" -require_relative "increase/type/boolean_model" -require_relative "increase/type/enum" -require_relative "increase/type/union" -require_relative "increase/type/array_of" -require_relative "increase/type/hash_of" -require_relative "increase/type/base_model" -require_relative "increase/type/base_page" -require_relative "increase/type/request_parameters" -require_relative "increase/type" +require_relative "increase/internal/util" +require_relative "increase/internal/type/converter" +require_relative "increase/internal/type/unknown" +require_relative "increase/internal/type/boolean_model" +require_relative "increase/internal/type/enum" +require_relative "increase/internal/type/union" +require_relative "increase/internal/type/array_of" +require_relative "increase/internal/type/hash_of" +require_relative "increase/internal/type/base_model" +require_relative "increase/internal/type/base_page" +require_relative "increase/internal/type/request_parameters" +require_relative "increase/internal" require_relative "increase/request_options" require_relative "increase/errors" -require_relative "increase/transport/base_client" -require_relative "increase/transport/pooled_net_requester" +require_relative "increase/internal/transport/base_client" +require_relative "increase/internal/transport/pooled_net_requester" require_relative "increase/client" -require_relative "increase/page" +require_relative "increase/internal/page" require_relative "increase/models/account" require_relative "increase/models/account_balance_params" require_relative "increase/models/account_close_params" diff --git a/lib/increase/client.rb b/lib/increase/client.rb index 2605c4c0..bf4e0ecd 100644 --- a/lib/increase/client.rb +++ b/lib/increase/client.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Increase - class Client < Increase::Transport::BaseClient + class Client < Increase::Internal::Transport::BaseClient # Default max number of retries to attempt after a failed retryable request. DEFAULT_MAX_RETRIES = 2 diff --git a/lib/increase/errors.rb b/lib/increase/errors.rb index 9c8f3818..1af0b3e6 100644 --- a/lib/increase/errors.rb +++ b/lib/increase/errors.rb @@ -101,7 +101,7 @@ class APIStatusError < Increase::Errors::APIError # # @return [Increase::Errors::APIStatusError] def self.for(url:, status:, body:, request:, response:, message: nil) - key = Increase::Util.dig(body, :type) + key = Increase::Internal::Util.dig(body, :type) kwargs = { url: url, status: status, @@ -256,54 +256,4 @@ class InternalServerError < Increase::Errors::APIStatusError TYPE = "internal_server_error" end end - - Error = Increase::Errors::Error - - ConversionError = Increase::Errors::ConversionError - - APIError = Increase::Errors::APIError - - APIStatusError = Increase::Errors::APIStatusError - - APIConnectionError = Increase::Errors::APIConnectionError - - APITimeoutError = Increase::Errors::APITimeoutError - - BadRequestError = Increase::Errors::BadRequestError - - AuthenticationError = Increase::Errors::AuthenticationError - - PermissionDeniedError = Increase::Errors::PermissionDeniedError - - NotFoundError = Increase::Errors::NotFoundError - - ConflictError = Increase::Errors::ConflictError - - UnprocessableEntityError = Increase::Errors::UnprocessableEntityError - - RateLimitError = Increase::Errors::RateLimitError - - InvalidParametersError = Increase::Errors::InvalidParametersError - - MalformedRequestError = Increase::Errors::MalformedRequestError - - InvalidAPIKeyError = Increase::Errors::InvalidAPIKeyError - - EnvironmentMismatchError = Increase::Errors::EnvironmentMismatchError - - InsufficientPermissionsError = Increase::Errors::InsufficientPermissionsError - - PrivateFeatureError = Increase::Errors::PrivateFeatureError - - APIMethodNotFoundError = Increase::Errors::APIMethodNotFoundError - - ObjectNotFoundError = Increase::Errors::ObjectNotFoundError - - IdempotencyKeyAlreadyUsedError = Increase::Errors::IdempotencyKeyAlreadyUsedError - - InvalidOperationError = Increase::Errors::InvalidOperationError - - RateLimitedError = Increase::Errors::RateLimitedError - - InternalServerError = Increase::Errors::InternalServerError end diff --git a/lib/increase/internal.rb b/lib/increase/internal.rb new file mode 100644 index 00000000..4fe8019a --- /dev/null +++ b/lib/increase/internal.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +module Increase + # @api private + module Internal + OMIT = Object.new.freeze + end +end diff --git a/lib/increase/internal/page.rb b/lib/increase/internal/page.rb new file mode 100644 index 00000000..29d6c070 --- /dev/null +++ b/lib/increase/internal/page.rb @@ -0,0 +1,82 @@ +# frozen_string_literal: true + +module Increase + module Internal + # @example + # if page.has_next? + # page = page.next_page + # end + # + # @example + # page.auto_paging_each do |account| + # puts(account) + # end + class Page + include Increase::Internal::Type::BasePage + + # @return [Array, nil] + attr_accessor :data + + # @return [String, nil] + attr_accessor :next_cursor + + # @api private + # + # @param client [Increase::Internal::Transport::BaseClient] + # @param req [Hash{Symbol=>Object}] + # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param page_data [Hash{Symbol=>Object}] + def initialize(client:, req:, headers:, page_data:) + super + model = req.fetch(:model) + + case page_data + in {data: Array | nil => data} + @data = data&.map { Increase::Internal::Type::Converter.coerce(model, _1) } + else + end + + case page_data + in {next_cursor: String | nil => next_cursor} + @next_cursor = next_cursor + else + end + end + + # @return [Boolean] + def next_page? + !next_cursor.nil? + end + + # @raise [Increase::HTTP::Error] + # @return [Increase::Internal::Page] + def next_page + unless next_page? + message = "No more pages available. Please check #next_page? before calling ##{__method__}" + raise RuntimeError.new(message) + end + + req = Increase::Internal::Util.deep_merge(@req, {query: {cursor: next_cursor}}) + @client.request(req) + end + + # @param blk [Proc] + def auto_paging_each(&blk) + unless block_given? + raise ArgumentError.new("A block must be given to ##{__method__}") + end + page = self + loop do + page.data&.each { blk.call(_1) } + break unless page.next_page? + page = page.next_page + end + end + + # @return [String] + def inspect + "#<#{self.class}:0x#{object_id.to_s(16)} data=#{data.inspect} next_cursor=#{next_cursor.inspect}>" + end + end + end +end diff --git a/lib/increase/internal/transport/base_client.rb b/lib/increase/internal/transport/base_client.rb new file mode 100644 index 00000000..1bb3028f --- /dev/null +++ b/lib/increase/internal/transport/base_client.rb @@ -0,0 +1,473 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Transport + # @api private + # + # @abstract + class BaseClient + # from whatwg fetch spec + MAX_REDIRECTS = 20 + + # rubocop:disable Style/MutableConstant + PLATFORM_HEADERS = + { + "x-stainless-arch" => Increase::Internal::Util.arch, + "x-stainless-lang" => "ruby", + "x-stainless-os" => Increase::Internal::Util.os, + "x-stainless-package-version" => Increase::VERSION, + "x-stainless-runtime" => ::RUBY_ENGINE, + "x-stainless-runtime-version" => ::RUBY_ENGINE_VERSION + } + # rubocop:enable Style/MutableConstant + + class << self + # @api private + # + # @param req [Hash{Symbol=>Object}] + # + # @raise [ArgumentError] + def validate!(req) + keys = [:method, :path, :query, :headers, :body, :unwrap, :page, :stream, :model, :options] + case req + in Hash + req.each_key do |k| + unless keys.include?(k) + raise ArgumentError.new("Request `req` keys must be one of #{keys}, got #{k.inspect}") + end + end + else + raise ArgumentError.new("Request `req` must be a Hash or RequestOptions, got #{req.inspect}") + end + end + + # @api private + # + # @param status [Integer] + # @param headers [Hash{String=>String}, Net::HTTPHeader] + # + # @return [Boolean] + def should_retry?(status, headers:) + coerced = Increase::Internal::Util.coerce_boolean(headers["x-should-retry"]) + case [coerced, status] + in [true | false, _] + coerced + in [_, 408 | 409 | 429 | (500..)] + # retry on: + # 408: timeouts + # 409: locks + # 429: rate limits + # 500+: unknown errors + true + else + false + end + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @option request [Object] :body + # + # @option request [Integer] :max_retries + # + # @option request [Float] :timeout + # + # @param status [Integer] + # + # @param response_headers [Hash{String=>String}, Net::HTTPHeader] + # + # @return [Hash{Symbol=>Object}] + def follow_redirect(request, status:, response_headers:) + method, url, headers = request.fetch_values(:method, :url, :headers) + location = + Kernel.then do + URI.join(url, response_headers["location"]) + rescue ArgumentError + message = "Server responded with status #{status} but no valid location header." + raise Increase::Errors::APIConnectionError.new(url: url, message: message) + end + + request = {**request, url: location} + + case [url.scheme, location.scheme] + in ["https", "http"] + message = "Tried to redirect to a insecure URL" + raise Increase::Errors::APIConnectionError.new(url: url, message: message) + else + nil + end + + # from whatwg fetch spec + case [status, method] + in [301 | 302, :post] | [303, _] + drop = %w[content-encoding content-language content-length content-location content-type] + request = { + **request, + method: method == :head ? :head : :get, + headers: headers.except(*drop), + body: nil + } + else + end + + # from undici + if Increase::Internal::Util.uri_origin(url) != Increase::Internal::Util.uri_origin(location) + drop = %w[authorization cookie host proxy-authorization] + request = {**request, headers: request.fetch(:headers).except(*drop)} + end + + request + end + + # @api private + # + # @param status [Integer, Increase::Errors::APIConnectionError] + # @param stream [Enumerable, nil] + def reap_connection!(status, stream:) + case status + in (..199) | (300..499) + stream&.each { next } + in Increase::Errors::APIConnectionError | (500..) + Increase::Internal::Util.close_fused!(stream) + else + end + end + end + + # @api private + # @return [Increase::Internal::Transport::PooledNetRequester] + attr_accessor :requester + + # @api private + # + # @param base_url [String] + # @param timeout [Float] + # @param max_retries [Integer] + # @param initial_retry_delay [Float] + # @param max_retry_delay [Float] + # @param headers [Hash{String=>String, Integer, Array, nil}] + # @param idempotency_header [String, nil] + def initialize( + base_url:, + timeout: 0.0, + max_retries: 0, + initial_retry_delay: 0.0, + max_retry_delay: 0.0, + headers: {}, + idempotency_header: nil + ) + @requester = Increase::Internal::Transport::PooledNetRequester.new + @headers = Increase::Internal::Util.normalized_headers( + self.class::PLATFORM_HEADERS, + { + "accept" => "application/json", + "content-type" => "application/json" + }, + headers + ) + @base_url = Increase::Internal::Util.parse_uri(base_url) + @idempotency_header = idempotency_header&.to_s&.downcase + @max_retries = max_retries + @timeout = timeout + @initial_retry_delay = initial_retry_delay + @max_retry_delay = max_retry_delay + end + + # @api private + # + # @return [Hash{String=>String}] + private def auth_headers = {} + + # @api private + # + # @return [String] + private def generate_idempotency_key = "stainless-ruby-retry-#{SecureRandom.uuid}" + + # @api private + # + # @param req [Hash{Symbol=>Object}] . + # + # @option req [Symbol] :method + # + # @option req [String, Array] :path + # + # @option req [Hash{String=>Array, String, nil}, nil] :query + # + # @option req [Hash{String=>String, Integer, Array, nil}, nil] :headers + # + # @option req [Object, nil] :body + # + # @option req [Symbol, nil] :unwrap + # + # @option req [Class, nil] :page + # + # @option req [Class, nil] :stream + # + # @option req [Increase::Internal::Type::Converter, Class, nil] :model + # + # @param opts [Hash{Symbol=>Object}] . + # + # @option opts [String, nil] :idempotency_key + # + # @option opts [Hash{String=>Array, String, nil}, nil] :extra_query + # + # @option opts [Hash{String=>String, nil}, nil] :extra_headers + # + # @option opts [Object, nil] :extra_body + # + # @option opts [Integer, nil] :max_retries + # + # @option opts [Float, nil] :timeout + # + # @return [Hash{Symbol=>Object}] + private def build_request(req, opts) + method, uninterpolated_path = req.fetch_values(:method, :path) + + path = Increase::Internal::Util.interpolate_path(uninterpolated_path) + + query = Increase::Internal::Util.deep_merge(req[:query].to_h, opts[:extra_query].to_h) + + headers = Increase::Internal::Util.normalized_headers( + @headers, + auth_headers, + req[:headers].to_h, + opts[:extra_headers].to_h + ) + + if @idempotency_header && + !headers.key?(@idempotency_header) && + !Net::HTTP::IDEMPOTENT_METHODS_.include?(method.to_s.upcase) + headers[@idempotency_header] = opts.fetch(:idempotency_key) { generate_idempotency_key } + end + + unless headers.key?("x-stainless-retry-count") + headers["x-stainless-retry-count"] = "0" + end + + timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..)) + unless headers.key?("x-stainless-timeout") || timeout.zero? + headers["x-stainless-timeout"] = timeout.to_s + end + + headers.reject! { |_, v| v.to_s.empty? } + + body = + case method + in :get | :head | :options | :trace + nil + else + Increase::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) + end + + headers, encoded = Increase::Internal::Util.encode_content(headers, body) + { + method: method, + url: Increase::Internal::Util.join_parsed_uri(@base_url, {**req, path: path, query: query}), + headers: headers, + body: encoded, + max_retries: opts.fetch(:max_retries, @max_retries), + timeout: timeout + } + end + + # @api private + # + # @param headers [Hash{String=>String}] + # @param retry_count [Integer] + # + # @return [Float] + private def retry_delay(headers, retry_count:) + # Non-standard extension + span = Float(headers["retry-after-ms"], exception: false)&.then { _1 / 1000 } + return span if span + + retry_header = headers["retry-after"] + return span if (span = Float(retry_header, exception: false)) + + span = retry_header&.then do + Time.httpdate(_1) - Time.now + rescue ArgumentError + nil + end + return span if span + + scale = retry_count**2 + jitter = 1 - (0.25 * rand) + (@initial_retry_delay * scale * jitter).clamp(0, @max_retry_delay) + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @option request [Object] :body + # + # @option request [Integer] :max_retries + # + # @option request [Float] :timeout + # + # @param redirect_count [Integer] + # + # @param retry_count [Integer] + # + # @param send_retry_header [Boolean] + # + # @raise [Increase::Errors::APIError] + # @return [Array(Integer, Net::HTTPResponse, Enumerable)] + private def send_request(request, redirect_count:, retry_count:, send_retry_header:) + url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout) + input = {**request.except(:timeout), deadline: Increase::Internal::Util.monotonic_secs + timeout} + + if send_retry_header + headers["x-stainless-retry-count"] = retry_count.to_s + end + + begin + status, response, stream = @requester.execute(input) + rescue Increase::Errors::APIConnectionError => e + status = e + end + + case status + in ..299 + [status, response, stream] + in 300..399 if redirect_count >= self.class::MAX_REDIRECTS + self.class.reap_connection!(status, stream: stream) + + message = "Failed to complete the request within #{self.class::MAX_REDIRECTS} redirects." + raise Increase::Errors::APIConnectionError.new(url: url, message: message) + in 300..399 + self.class.reap_connection!(status, stream: stream) + + request = self.class.follow_redirect(request, status: status, response_headers: response) + send_request( + request, + redirect_count: redirect_count + 1, + retry_count: retry_count, + send_retry_header: send_retry_header + ) + in Increase::Errors::APIConnectionError if retry_count >= max_retries + raise status + in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: response) + decoded = Kernel.then do + Increase::Internal::Util.decode_content(response, stream: stream, suppress_error: true) + ensure + self.class.reap_connection!(status, stream: stream) + end + + raise Increase::Errors::APIStatusError.for( + url: url, + status: status, + body: decoded, + request: nil, + response: response + ) + in (400..) | Increase::Errors::APIConnectionError + self.class.reap_connection!(status, stream: stream) + + delay = retry_delay(response, retry_count: retry_count) + sleep(delay) + + send_request( + request, + redirect_count: redirect_count, + retry_count: retry_count + 1, + send_retry_header: send_retry_header + ) + end + end + + # Execute the request specified by `req`. This is the method that all resource + # methods call into. + # + # @overload request(method, path, query: {}, headers: {}, body: nil, unwrap: nil, page: nil, stream: nil, model: Increase::Internal::Type::Unknown, options: {}) + # + # @param method [Symbol] + # + # @param path [String, Array] + # + # @param query [Hash{String=>Array, String, nil}, nil] + # + # @param headers [Hash{String=>String, Integer, Array, nil}, nil] + # + # @param body [Object, nil] + # + # @param unwrap [Symbol, nil] + # + # @param page [Class, nil] + # + # @param stream [Class, nil] + # + # @param model [Increase::Internal::Type::Converter, Class, nil] + # + # @param options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] . + # + # @option options [String, nil] :idempotency_key + # + # @option options [Hash{String=>Array, String, nil}, nil] :extra_query + # + # @option options [Hash{String=>String, nil}, nil] :extra_headers + # + # @option options [Object, nil] :extra_body + # + # @option options [Integer, nil] :max_retries + # + # @option options [Float, nil] :timeout + # + # @raise [Increase::Errors::APIError] + # @return [Object] + def request(req) + self.class.validate!(req) + model = req.fetch(:model) { Increase::Internal::Type::Unknown } + opts = req[:options].to_h + Increase::RequestOptions.validate!(opts) + request = build_request(req.except(:options), opts) + url = request.fetch(:url) + + # Don't send the current retry count in the headers if the caller modified the header defaults. + send_retry_header = request.fetch(:headers)["x-stainless-retry-count"] == "0" + status, response, stream = send_request( + request, + redirect_count: 0, + retry_count: 0, + send_retry_header: send_retry_header + ) + + decoded = Increase::Internal::Util.decode_content(response, stream: stream) + case req + in { stream: Class => st } + st.new(model: model, url: url, status: status, response: response, stream: decoded) + in { page: Class => page } + page.new(client: self, req: req, headers: response, page_data: decoded) + else + unwrapped = Increase::Internal::Util.dig(decoded, req[:unwrap]) + Increase::Internal::Type::Converter.coerce(model, unwrapped) + end + end + + # @return [String] + def inspect + # rubocop:disable Layout/LineLength + base_url = Increase::Internal::Util.unparse_uri(@base_url) + "#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{base_url} max_retries=#{@max_retries} timeout=#{@timeout}>" + # rubocop:enable Layout/LineLength + 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 new file mode 100644 index 00000000..5401e970 --- /dev/null +++ b/lib/increase/internal/transport/pooled_net_requester.rb @@ -0,0 +1,184 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Transport + # @api private + class PooledNetRequester + # from the golang stdlib + # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 + KEEP_ALIVE_TIMEOUT = 30 + + class << self + # @api private + # + # @param url [URI::Generic] + # + # @return [Net::HTTP] + def connect(url) + port = + case [url.port, url.scheme] + in [Integer, _] + url.port + in [nil, "http" | "ws"] + Net::HTTP.http_default_port + in [nil, "https" | "wss"] + Net::HTTP.https_default_port + end + + Net::HTTP.new(url.host, port).tap do + _1.use_ssl = %w[https wss].include?(url.scheme) + _1.max_retries = 0 + end + end + + # @api private + # + # @param conn [Net::HTTP] + # @param deadline [Float] + def calibrate_socket_timeout(conn, deadline) + timeout = deadline - Increase::Internal::Util.monotonic_secs + conn.open_timeout = conn.read_timeout = conn.write_timeout = conn.continue_timeout = timeout + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @param blk [Proc] + # + # @yieldparam [String] + # @return [Net::HTTPGenericRequest] + def build_request(request, &blk) + method, url, headers, body = request.fetch_values(:method, :url, :headers, :body) + req = Net::HTTPGenericRequest.new( + method.to_s.upcase, + !body.nil?, + method != :head, + url.to_s + ) + + headers.each { req[_1] = _2 } + + case body + in nil + nil + in String + req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"] + req.body_stream = Increase::Internal::Util::ReadIOAdapter.new(body, &blk) + in StringIO + req["content-length"] ||= body.size.to_s unless req["transfer-encoding"] + req.body_stream = Increase::Internal::Util::ReadIOAdapter.new(body, &blk) + in IO | Enumerator + req["transfer-encoding"] ||= "chunked" unless req["content-length"] + req.body_stream = Increase::Internal::Util::ReadIOAdapter.new(body, &blk) + end + + req + end + end + + # @api private + # + # @param url [URI::Generic] + # @param deadline [Float] + # @param blk [Proc] + # + # @raise [Timeout::Error] + # @yieldparam [Net::HTTP] + private def with_pool(url, deadline:, &blk) + origin = Increase::Internal::Util.uri_origin(url) + timeout = deadline - Increase::Internal::Util.monotonic_secs + pool = + @mutex.synchronize do + @pools[origin] ||= ConnectionPool.new(size: @size) do + self.class.connect(url) + end + end + + pool.with(timeout: timeout, &blk) + end + + # @api private + # + # @param request [Hash{Symbol=>Object}] . + # + # @option request [Symbol] :method + # + # @option request [URI::Generic] :url + # + # @option request [Hash{String=>String}] :headers + # + # @option request [Object] :body + # + # @option request [Float] :deadline + # + # @return [Array(Integer, Net::HTTPResponse, Enumerable)] + def execute(request) + url, deadline = request.fetch_values(:url, :deadline) + + eof = false + finished = false + enum = Enumerator.new do |y| + with_pool(url, deadline: deadline) do |conn| + next if finished + + req = self.class.build_request(request) do + self.class.calibrate_socket_timeout(conn, deadline) + end + + self.class.calibrate_socket_timeout(conn, deadline) + unless conn.started? + conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT + conn.start + end + + self.class.calibrate_socket_timeout(conn, deadline) + conn.request(req) do |rsp| + y << [conn, req, rsp] + break if finished + + rsp.read_body do |bytes| + y << bytes + break if finished + + self.class.calibrate_socket_timeout(conn, deadline) + end + eof = true + end + end + rescue Timeout::Error + raise Increase::Errors::APITimeoutError + end + + conn, _, response = enum.next + body = Increase::Internal::Util.fused_enum(enum, external: true) do + finished = true + tap do + enum.next + rescue StopIteration + nil + end + conn.finish if !eof && conn&.started? + end + [Integer(response.code), response, (response.body = body)] + end + + # @api private + # + # @param size [Integer] + def initialize(size: Etc.nprocessors) + @mutex = Mutex.new + @size = size + @pools = {} + end + end + end + end +end diff --git a/lib/increase/internal/type/array_of.rb b/lib/increase/internal/type/array_of.rb new file mode 100644 index 00000000..eb2db89b --- /dev/null +++ b/lib/increase/internal/type/array_of.rb @@ -0,0 +1,122 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @api private + # + # @abstract + # + # Array of items of a given type. + class ArrayOf + include Increase::Internal::Type::Converter + + # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def self.[](type_info, spec = {}) = new(type_info, spec) + + # @param other [Object] + # + # @return [Boolean] + def ===(other) = other.is_a?(Array) && other.all?(item_type) + + # @param other [Object] + # + # @return [Boolean] + def ==(other) + # rubocop:disable Layout/LineLength + other.is_a?(Increase::Internal::Type::ArrayOf) && other.nilable? == nilable? && other.item_type == item_type + # rubocop:enable Layout/LineLength + end + + # @api private + # + # @param value [Enumerable, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Array, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + + unless value.is_a?(Array) + exactness[:no] += 1 + return value + end + + target = item_type + exactness[:yes] += 1 + value + .map do |item| + case [nilable?, item] + in [true, nil] + exactness[:yes] += 1 + nil + else + Increase::Internal::Type::Converter.coerce(target, item, state: state) + end + end + end + + # @api private + # + # @param value [Enumerable, Object] + # + # @return [Array, Object] + def dump(value) + target = item_type + if value.is_a?(Array) + value.map do + Increase::Internal::Type::Converter.dump(target, _1) + end + else + super + end + end + + # @api private + # + # @return [Increase::Internal::Type::Converter, Class] + protected def item_type = @item_type_fn.call + + # @api private + # + # @return [Boolean] + protected def nilable? = @nilable + + # @api private + # + # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def initialize(type_info, spec = {}) + @item_type_fn = Increase::Internal::Type::Converter.type_info(type_info || spec) + @nilable = spec[:nil?] + end + end + end + end +end diff --git a/lib/increase/internal/type/base_model.rb b/lib/increase/internal/type/base_model.rb new file mode 100644 index 00000000..cedae18f --- /dev/null +++ b/lib/increase/internal/type/base_model.rb @@ -0,0 +1,376 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @abstract + # + # @example + # # `account` is a `Increase::Models::Account` + # account => { + # id: id, + # bank: bank, + # closed_at: closed_at + # } + class BaseModel + extend Increase::Internal::Type::Converter + + class << self + # @api private + # + # Assumes superclass fields are totally defined before fields are accessed / + # defined on subclasses. + # + # @return [Hash{Symbol=>Hash{Symbol=>Object}}] + def known_fields + @known_fields ||= (self < Increase::Internal::Type::BaseModel ? superclass.known_fields.dup : {}) + end + + # @api private + # + # @return [Hash{Symbol=>Hash{Symbol=>Object}}] + def fields + known_fields.transform_values do |field| + {**field.except(:type_fn), type: field.fetch(:type_fn).call} + end + end + + # @api private + # + # @param name_sym [Symbol] + # + # @param required [Boolean] + # + # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + private def add_field(name_sym, required:, type_info:, spec:) + type_fn, info = + case type_info + in Proc | Increase::Internal::Type::Converter | Class + [Increase::Internal::Type::Converter.type_info({**spec, union: type_info}), spec] + in Hash + [Increase::Internal::Type::Converter.type_info(type_info), type_info] + end + + setter = "#{name_sym}=" + api_name = info.fetch(:api_name, name_sym) + nilable = info[:nil?] + const = if required && !nilable + info.fetch( + :const, + Increase::Internal::OMIT + ) + else + Increase::Internal::OMIT + end + + [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym) + + known_fields[name_sym] = + { + mode: @mode, + api_name: api_name, + required: required, + nilable: nilable, + const: const, + type_fn: type_fn + } + + define_method(setter) { @data.store(name_sym, _1) } + + define_method(name_sym) do + target = type_fn.call + value = @data.fetch(name_sym) { const == Increase::Internal::OMIT ? nil : const } + state = {strictness: :strong, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + if (nilable || !required) && value.nil? + nil + else + Increase::Internal::Type::Converter.coerce( + target, + value, + state: state + ) + end + rescue StandardError + cls = self.class.name.split("::").last + # rubocop:disable Layout/LineLength + message = "Failed to parse #{cls}.#{__method__} from #{value.class} to #{target.inspect}. To get the unparsed API response, use #{cls}[:#{__method__}]." + # rubocop:enable Layout/LineLength + raise Increase::Errors::ConversionError.new(message) + end + end + + # @api private + # + # @param name_sym [Symbol] + # + # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def required(name_sym, type_info, spec = {}) + add_field(name_sym, required: true, type_info: type_info, spec: spec) + end + + # @api private + # + # @param name_sym [Symbol] + # + # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def optional(name_sym, type_info, spec = {}) + add_field(name_sym, required: false, type_info: type_info, spec: spec) + end + + # @api private + # + # `request_only` attributes not excluded from `.#coerce` when receiving responses + # even if well behaved servers should not send them + # + # @param blk [Proc] + private def request_only(&blk) + @mode = :dump + blk.call + ensure + @mode = nil + end + + # @api private + # + # `response_only` attributes are omitted from `.#dump` when making requests + # + # @param blk [Proc] + private def response_only(&blk) + @mode = :coerce + blk.call + ensure + @mode = nil + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) = other.is_a?(Class) && other <= Increase::Internal::Type::BaseModel && other.fields == fields + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) = self.class == other.class && @data == other.to_h + + class << self + # @api private + # + # @param value [Increase::Internal::Type::BaseModel, Hash{Object=>Object}, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Increase::Internal::Type::BaseModel, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + + if value.is_a?(self.class) + exactness[:yes] += 1 + return value + end + + unless (val = Increase::Internal::Util.coerce_hash(value)).is_a?(Hash) + exactness[:no] += 1 + return value + end + exactness[:yes] += 1 + + keys = val.keys.to_set + instance = new + data = instance.to_h + + # rubocop:disable Metrics/BlockLength + fields.each do |name, field| + mode, required, target = field.fetch_values(:mode, :required, :type) + api_name, nilable, const = field.fetch_values(:api_name, :nilable, :const) + + unless val.key?(api_name) + if required && mode != :dump && const == Increase::Internal::OMIT + exactness[nilable ? :maybe : :no] += 1 + else + exactness[:yes] += 1 + end + next + end + + item = val.fetch(api_name) + keys.delete(api_name) + + converted = + if item.nil? && (nilable || !required) + exactness[nilable ? :yes : :maybe] += 1 + nil + else + coerced = Increase::Internal::Type::Converter.coerce(target, item, state: state) + case target + in Increase::Internal::Type::Converter | Symbol + coerced + else + item + end + end + data.store(name, converted) + end + # rubocop:enable Metrics/BlockLength + + keys.each { data.store(_1, val.fetch(_1)) } + instance + end + + # @api private + # + # @param value [Increase::Internal::Type::BaseModel, Object] + # + # @return [Hash{Object=>Object}, Object] + def dump(value) + unless (coerced = Increase::Internal::Util.coerce_hash(value)).is_a?(Hash) + return super + end + + acc = {} + + coerced.each do |key, val| + name = key.is_a?(String) ? key.to_sym : key + case (field = known_fields[name]) + in nil + acc.store(name, super(val)) + else + mode, api_name, type_fn = field.fetch_values(:mode, :api_name, :type_fn) + case mode + in :coerce + next + else + target = type_fn.call + acc.store(api_name, Increase::Internal::Type::Converter.dump(target, val)) + end + end + end + + known_fields.each_value do |field| + mode, api_name, const = field.fetch_values(:mode, :api_name, :const) + next if mode == :coerce || acc.key?(api_name) || const == Increase::Internal::OMIT + acc.store(api_name, const) + end + + acc + end + end + + # Returns the raw value associated with the given key, if found. Otherwise, nil is + # returned. + # + # It is valid to lookup keys that are not in the API spec, for example to access + # undocumented features. This method does not parse response data into + # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. + # + # @param key [Symbol] + # + # @return [Object, nil] + def [](key) + unless key.instance_of?(Symbol) + raise ArgumentError.new("Expected symbol key for lookup, got #{key.inspect}") + end + + @data[key] + end + + # Returns a Hash of the data underlying this object. O(1) + # + # Keys are Symbols and values are the raw values from the response. The return + # value indicates which values were ever set on the object. i.e. there will be a + # key in this hash if they ever were, even if the set value was nil. + # + # This method is not recursive. The returned value is shared by the object, so it + # should not be mutated. + # + # @return [Hash{Symbol=>Object}] + def to_h = @data + + alias_method :to_hash, :to_h + + # @param keys [Array, nil] + # + # @return [Hash{Symbol=>Object}] + def deconstruct_keys(keys) + (keys || self.class.known_fields.keys) + .filter_map do |k| + unless self.class.known_fields.key?(k) + next + end + + [k, public_send(k)] + end + .to_h + end + + # @param a [Object] + # + # @return [String] + def to_json(*a) = self.class.dump(self).to_json(*a) + + # @param a [Object] + # + # @return [String] + def to_yaml(*a) = self.class.dump(self).to_yaml(*a) + + # Create a new instance of a model. + # + # @param data [Hash{Symbol=>Object}, Increase::Internal::Type::BaseModel] + def initialize(data = {}) + case Increase::Internal::Util.coerce_hash(data) + in Hash => coerced + @data = coerced + else + raise ArgumentError.new("Expected a #{Hash} or #{Increase::Internal::Type::BaseModel}, got #{data.inspect}") + end + end + + # @return [String] + def inspect + rows = self.class.known_fields.keys.map do + "#{_1}=#{@data.key?(_1) ? public_send(_1) : ''}" + rescue Increase::ConversionError + "#{_1}=#{@data.fetch(_1)}" + end + "#<#{self.class.name}:0x#{object_id.to_s(16)} #{rows.join(' ')}>" + end + end + end + end +end diff --git a/lib/increase/internal/type/base_page.rb b/lib/increase/internal/type/base_page.rb new file mode 100644 index 00000000..149158b5 --- /dev/null +++ b/lib/increase/internal/type/base_page.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # This module provides a base implementation for paginated responses in the SDK. + module BasePage + # rubocop:disable Lint/UnusedMethodArgument + + # @return [Boolean] + def next_page? = (raise NotImplementedError) + + # @raise [Increase::Errors::APIError] + # @return [Increase::Internal::Type::BasePage] + def next_page = (raise NotImplementedError) + + # @param blk [Proc] + # + # @return [void] + def auto_paging_each(&blk) = (raise NotImplementedError) + + # @return [Enumerable] + def to_enum = super(:auto_paging_each) + + alias_method :enum_for, :to_enum + + # @api private + # + # @param client [Increase::Internal::Transport::BaseClient] + # @param req [Hash{Symbol=>Object}] + # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param page_data [Object] + def initialize(client:, req:, headers:, page_data:) + @client = client + @req = req + super() + end + + # rubocop:enable Lint/UnusedMethodArgument + end + end + end +end diff --git a/lib/increase/internal/type/boolean_model.rb b/lib/increase/internal/type/boolean_model.rb new file mode 100644 index 00000000..bce2ef7b --- /dev/null +++ b/lib/increase/internal/type/boolean_model.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @api private + # + # @abstract + # + # Ruby has no Boolean class; this is something for models to refer to. + class BooleanModel + extend Increase::Internal::Type::Converter + + # @param other [Object] + # + # @return [Boolean] + def self.===(other) = other == true || other == false + + # @param other [Object] + # + # @return [Boolean] + def self.==(other) = other.is_a?(Class) && other <= Increase::Internal::Type::BooleanModel + + class << self + # @api private + # + # @param value [Boolean, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Boolean, Object] + def coerce(value, state:) + state.fetch(:exactness)[value == true || value == false ? :yes : :no] += 1 + value + end + + # @!parse + # # @api private + # # + # # @param value [Boolean, Object] + # # + # # @return [Boolean, Object] + # def dump(value) = super + end + end + end + end +end diff --git a/lib/increase/internal/type/converter.rb b/lib/increase/internal/type/converter.rb new file mode 100644 index 00000000..a9c08802 --- /dev/null +++ b/lib/increase/internal/type/converter.rb @@ -0,0 +1,219 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # rubocop:disable Metrics/ModuleLength + # @api private + module Converter + # rubocop:disable Lint/UnusedMethodArgument + + # @api private + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce(value, state:) = (raise NotImplementedError) + + # @api private + # + # @param value [Object] + # + # @return [Object] + def dump(value) + case value + in Array + value.map { Increase::Internal::Type::Unknown.dump(_1) } + in Hash + value.transform_values { Increase::Internal::Type::Unknown.dump(_1) } + in Increase::Internal::Type::BaseModel + value.class.dump(value) + else + value + end + end + + # rubocop:enable Lint/UnusedMethodArgument + + class << self + # @api private + # + # @param spec [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + # + # @return [Proc] + def type_info(spec) + case spec + in Proc + spec + in Hash + type_info(spec.slice(:const, :enum, :union).first&.last) + in true | false + -> { Increase::Internal::Type::BooleanModel } + in Increase::Internal::Type::Converter | Class | Symbol + -> { spec } + in NilClass | Integer | Float + -> { spec.class } + end + end + + # @api private + # + # Based on `target`, transform `value` into `target`, to the extent possible: + # + # 1. if the given `value` conforms to `target` already, return the given `value` + # 2. if it's possible and safe to convert the given `value` to `target`, then the + # converted value + # 3. otherwise, the given `value` unaltered + # + # The coercion process is subject to improvement between minor release versions. + # See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode + # + # @param target [Increase::Internal::Type::Converter, Class] + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] The `strictness` is one of `true`, `false`, or `:strong`. This informs the + # coercion strategy when we have to decide between multiple possible conversion + # targets: + # + # - `true`: the conversion must be exact, with minimum coercion. + # - `false`: the conversion can be approximate, with some coercion. + # - `:strong`: the conversion must be exact, with no coercion, and raise an error + # if not possible. + # + # The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For + # any given conversion attempt, the exactness will be updated based on how closely + # the value recursively matches the target type: + # + # - `yes`: the value can be converted to the target type with minimum coercion. + # - `maybe`: the value can be converted to the target type with some reasonable + # coercion. + # - `no`: the value cannot be converted to the target type. + # + # See implementation below for more details. + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce( + target, + value, + state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + ) + # rubocop:disable Lint/SuppressedException + # rubocop:disable Metrics/BlockNesting + strictness, exactness = state.fetch_values(:strictness, :exactness) + + case target + in Increase::Internal::Type::Converter + return target.coerce(value, state: state) + in Class + if value.is_a?(target) + exactness[:yes] += 1 + return value + end + + case target + in -> { _1 <= NilClass } + exactness[value.nil? ? :yes : :maybe] += 1 + return nil + in -> { _1 <= Integer } + if value.is_a?(Integer) + exactness[:yes] += 1 + return value + elsif strictness == :strong + message = "no implicit conversion of #{value.class} into #{target.inspect}" + raise TypeError.new(message) + else + Kernel.then do + return Integer(value).tap { exactness[:maybe] += 1 } + rescue ArgumentError, TypeError + end + end + in -> { _1 <= Float } + if value.is_a?(Numeric) + exactness[:yes] += 1 + return Float(value) + elsif strictness == :strong + message = "no implicit conversion of #{value.class} into #{target.inspect}" + raise TypeError.new(message) + else + Kernel.then do + return Float(value).tap { exactness[:maybe] += 1 } + rescue ArgumentError, TypeError + end + end + in -> { _1 <= String } + case value + in String | Symbol | Numeric + exactness[value.is_a?(Numeric) ? :maybe : :yes] += 1 + return value.to_s + else + if strictness == :strong + message = "no implicit conversion of #{value.class} into #{target.inspect}" + raise TypeError.new(message) + end + end + in -> { _1 <= Date || _1 <= Time } + Kernel.then do + return target.parse(value).tap { exactness[:yes] += 1 } + rescue ArgumentError, TypeError => e + raise e if strictness == :strong + end + in -> { _1 <= IO } if value.is_a?(String) + exactness[:yes] += 1 + return StringIO.new(value.b) + else + end + in Symbol + if (value.is_a?(Symbol) || value.is_a?(String)) && value.to_sym == target + exactness[:yes] += 1 + return target + elsif strictness == :strong + message = "cannot convert non-matching #{value.class} into #{target.inspect}" + raise ArgumentError.new(message) + end + else + end + + exactness[:no] += 1 + value + # rubocop:enable Metrics/BlockNesting + # rubocop:enable Lint/SuppressedException + end + + # @api private + # + # @param target [Increase::Internal::Type::Converter, Class] + # @param value [Object] + # + # @return [Object] + def dump(target, value) + target.is_a?(Increase::Internal::Type::Converter) ? target.dump(value) : Increase::Internal::Type::Unknown.dump(value) + end + end + end + # rubocop:enable Metrics/ModuleLength + end + end +end diff --git a/lib/increase/internal/type/enum.rb b/lib/increase/internal/type/enum.rb new file mode 100644 index 00000000..4c0f84b9 --- /dev/null +++ b/lib/increase/internal/type/enum.rb @@ -0,0 +1,82 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @api private + # + # A value from among a specified list of options. OpenAPI enum values map to Ruby + # values in the SDK as follows: + # + # 1. boolean => true | false + # 2. integer => Integer + # 3. float => Float + # 4. string => Symbol + # + # We can therefore convert string values to Symbols, but can't convert other + # values safely. + module Enum + include Increase::Internal::Type::Converter + + # All of the valid Symbol values for this enum. + # + # @return [Array] + def values = (@values ||= constants.map { const_get(_1) }) + + # @api private + # + # Guard against thread safety issues by instantiating `@values`. + private def finalize! = values + + # @param other [Object] + # + # @return [Boolean] + def ===(other) = values.include?(other) + + # @param other [Object] + # + # @return [Boolean] + def ==(other) + other.is_a?(Module) && other.singleton_class <= Increase::Internal::Type::Enum && other.values.to_set == values.to_set + end + + # @api private + # + # Unlike with primitives, `Enum` additionally validates that the value is a member + # of the enum. + # + # @param value [String, Symbol, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Symbol, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + val = value.is_a?(String) ? value.to_sym : value + + if values.include?(val) + exactness[:yes] += 1 + val + else + exactness[values.first&.class == val.class ? :maybe : :no] += 1 + value + end + end + + # @!parse + # # @api private + # # + # # @param value [Symbol, Object] + # # + # # @return [Symbol, Object] + # def dump(value) = super + end + end + end +end diff --git a/lib/increase/internal/type/hash_of.rb b/lib/increase/internal/type/hash_of.rb new file mode 100644 index 00000000..d1643679 --- /dev/null +++ b/lib/increase/internal/type/hash_of.rb @@ -0,0 +1,142 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @api private + # + # @abstract + # + # Hash of items of a given type. + class HashOf + include Increase::Internal::Type::Converter + + # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def self.[](type_info, spec = {}) = new(type_info, spec) + + # @param other [Object] + # + # @return [Boolean] + def ===(other) + type = item_type + case other + in Hash + other.all? do |key, val| + case [key, val] + in [Symbol | String, ^type] + true + else + false + end + end + else + false + end + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) + # rubocop:disable Layout/LineLength + other.is_a?(Increase::Internal::Type::HashOf) && other.nilable? == nilable? && other.item_type == item_type + # rubocop:enable Layout/LineLength + end + + # @api private + # + # @param value [Hash{Object=>Object}, Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Hash{Symbol=>Object}, Object] + def coerce(value, state:) + exactness = state.fetch(:exactness) + + unless value.is_a?(Hash) + exactness[:no] += 1 + return value + end + + target = item_type + exactness[:yes] += 1 + value + .to_h do |key, val| + k = key.is_a?(String) ? key.to_sym : key + v = + case [nilable?, val] + in [true, nil] + exactness[:yes] += 1 + nil + else + Increase::Internal::Type::Converter.coerce(target, val, state: state) + end + + exactness[:no] += 1 unless k.is_a?(Symbol) + [k, v] + end + end + + # @api private + # + # @param value [Hash{Object=>Object}, Object] + # + # @return [Hash{Symbol=>Object}, Object] + def dump(value) + target = item_type + if value.is_a?(Hash) + value.transform_values do + Increase::Internal::Type::Converter.dump(target, _1) + end + else + super + end + end + + # @api private + # + # @return [Increase::Internal::Type::Converter, Class] + protected def item_type = @item_type_fn.call + + # @api private + # + # @return [Boolean] + protected def nilable? = @nilable + + # @api private + # + # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def initialize(type_info, spec = {}) + @item_type_fn = Increase::Internal::Type::Converter.type_info(type_info || spec) + @nilable = spec[:nil?] + end + end + end + end +end diff --git a/lib/increase/internal/type/request_parameters.rb b/lib/increase/internal/type/request_parameters.rb new file mode 100644 index 00000000..3b660fd8 --- /dev/null +++ b/lib/increase/internal/type/request_parameters.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @api private + module RequestParameters + # @!parse + # # Options to specify HTTP behaviour for this request. + # # @return [Increase::RequestOptions, Hash{Symbol=>Object}] + # attr_accessor :request_options + + # @param mod [Module] + def self.included(mod) + return unless mod <= Increase::Internal::Type::BaseModel + + mod.extend(Increase::Internal::Type::RequestParameters::Converter) + mod.optional(:request_options, Increase::RequestOptions) + end + + # @api private + module Converter + # @api private + # + # @param params [Object] + # + # @return [Array(Object, Hash{Symbol=>Object})] + def dump_request(params) + case (dumped = dump(params)) + in Hash + [dumped.except(:request_options), dumped[:request_options]] + else + [dumped, nil] + end + end + end + end + end + end +end diff --git a/lib/increase/internal/type/union.rb b/lib/increase/internal/type/union.rb new file mode 100644 index 00000000..fc9ff06c --- /dev/null +++ b/lib/increase/internal/type/union.rb @@ -0,0 +1,187 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @api private + module Union + include Increase::Internal::Type::Converter + + # @api private + # + # All of the specified variant info for this union. + # + # @return [Array] + private def known_variants = (@known_variants ||= []) + + # @api private + # + # @return [Array] + protected def derefed_variants + @known_variants.map { |key, variant_fn| [key, variant_fn.call] } + end + + # All of the specified variants for this union. + # + # @return [Array] + def variants = derefed_variants.map(&:last) + + # @api private + # + # @param property [Symbol] + private def discriminator(property) + case property + in Symbol + @discriminator = property + end + end + + # @api private + # + # @param key [Symbol, Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}, Proc, Increase::Internal::Type::Converter, Class] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + private def variant(key, spec = nil) + variant_info = + case key + in Symbol + [key, Increase::Internal::Type::Converter.type_info(spec)] + in Proc | Increase::Internal::Type::Converter | Class | Hash + [nil, Increase::Internal::Type::Converter.type_info(key)] + end + + known_variants << variant_info + end + + # @api private + # + # @param value [Object] + # + # @return [Increase::Internal::Type::Converter, Class, nil] + private def resolve_variant(value) + case [@discriminator, value] + in [_, Increase::Internal::Type::BaseModel] + value.class + in [Symbol, Hash] + key = value.fetch(@discriminator) do + value.fetch(@discriminator.to_s, Increase::Internal::OMIT) + end + + return nil if key == Increase::Internal::OMIT + + key = key.to_sym if key.is_a?(String) + known_variants.find { |k,| k == key }&.last&.call + else + nil + end + end + + # rubocop:disable Style/HashEachMethods + # rubocop:disable Style/CaseEquality + + # @param other [Object] + # + # @return [Boolean] + def ===(other) + known_variants.any? do |_, variant_fn| + variant_fn.call === other + end + end + + # @param other [Object] + # + # @return [Boolean] + def ==(other) + # rubocop:disable Layout/LineLength + other.is_a?(Module) && other.singleton_class <= Increase::Internal::Type::Union && other.derefed_variants == derefed_variants + # rubocop:enable Layout/LineLength + end + + # @api private + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce(value, state:) + if (target = resolve_variant(value)) + return Increase::Internal::Type::Converter.coerce(target, value, state: state) + end + + strictness = state.fetch(:strictness) + exactness = state.fetch(:exactness) + state[:strictness] = strictness == :strong ? true : strictness + + alternatives = [] + known_variants.each do |_, variant_fn| + target = variant_fn.call + exact = state[:exactness] = {yes: 0, no: 0, maybe: 0} + state[:branched] += 1 + + coerced = Increase::Internal::Type::Converter.coerce(target, value, state: state) + yes, no, maybe = exact.values + if (no + maybe).zero? || (!strictness && yes.positive?) + exact.each { exactness[_1] += _2 } + state[:exactness] = exactness + return coerced + elsif maybe.positive? + alternatives << [[-yes, -maybe, no], exact, coerced] + end + end + + case alternatives.sort_by(&:first) + in [] + exactness[:no] += 1 + if strictness == :strong + message = "no possible conversion of #{value.class} into a variant of #{target.inspect}" + raise ArgumentError.new(message) + end + value + in [[_, exact, coerced], *] + exact.each { exactness[_1] += _2 } + coerced + end + .tap { state[:exactness] = exactness } + ensure + state[:strictness] = strictness + end + + # @api private + # + # @param value [Object] + # + # @return [Object] + def dump(value) + if (target = resolve_variant(value)) + return Increase::Internal::Type::Converter.dump(target, value) + end + + known_variants.each do + target = _2.call + return Increase::Internal::Type::Converter.dump(target, value) if target === value + end + + super + end + + # rubocop:enable Style/CaseEquality + # rubocop:enable Style/HashEachMethods + end + end + end +end diff --git a/lib/increase/internal/type/unknown.rb b/lib/increase/internal/type/unknown.rb new file mode 100644 index 00000000..27b5e33b --- /dev/null +++ b/lib/increase/internal/type/unknown.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +module Increase + module Internal + module Type + # @api private + # + # @abstract + # + # When we don't know what to expect for the value. + class Unknown + extend Increase::Internal::Type::Converter + + # rubocop:disable Lint/UnusedMethodArgument + + # @param other [Object] + # + # @return [Boolean] + def self.===(other) = true + + # @param other [Object] + # + # @return [Boolean] + def self.==(other) = other.is_a?(Class) && other <= Increase::Internal::Type::Unknown + + class << self + # @api private + # + # @param value [Object] + # + # @param state [Hash{Symbol=>Object}] . + # + # @option state [Boolean, :strong] :strictness + # + # @option state [Hash{Symbol=>Object}] :exactness + # + # @option state [Integer] :branched + # + # @return [Object] + def coerce(value, state:) + state.fetch(:exactness)[:yes] += 1 + value + end + + # @!parse + # # @api private + # # + # # @param value [Object] + # # + # # @return [Object] + # def dump(value) = super + end + + # rubocop:enable Lint/UnusedMethodArgument + end + end + end +end diff --git a/lib/increase/internal/util.rb b/lib/increase/internal/util.rb new file mode 100644 index 00000000..5ce4f571 --- /dev/null +++ b/lib/increase/internal/util.rb @@ -0,0 +1,717 @@ +# frozen_string_literal: true + +module Increase + module Internal + # rubocop:disable Metrics/ModuleLength + + # @api private + module Util + # @api private + # + # @return [Float] + def self.monotonic_secs = Process.clock_gettime(Process::CLOCK_MONOTONIC) + + class << self + # @api private + # + # @return [String] + def arch + case (arch = RbConfig::CONFIG["arch"])&.downcase + in nil + "unknown" + in /aarch64|arm64/ + "arm64" + in /x86_64/ + "x64" + in /arm/ + "arm" + else + "other:#{arch}" + end + end + + # @api private + # + # @return [String] + def os + case (host = RbConfig::CONFIG["host_os"])&.downcase + in nil + "Unknown" + in /linux/ + "Linux" + in /darwin/ + "MacOS" + in /freebsd/ + "FreeBSD" + in /openbsd/ + "OpenBSD" + in /mswin|mingw|cygwin|ucrt/ + "Windows" + else + "Other:#{host}" + end + end + end + + class << self + # @api private + # + # @param input [Object] + # + # @return [Boolean] + def primitive?(input) + case input + in true | false | Integer | Float | Symbol | String + true + else + false + end + end + + # @api private + # + # @param input [Object] + # + # @return [Boolean, Object] + def coerce_boolean(input) + case input.is_a?(String) ? input.downcase : input + in Numeric + input.nonzero? + in "true" + true + in "false" + false + else + input + end + end + + # @api private + # + # @param input [Object] + # + # @raise [ArgumentError] + # @return [Boolean, nil] + def coerce_boolean!(input) + case coerce_boolean(input) + in true | false | nil => coerced + coerced + else + raise ArgumentError.new("Unable to coerce #{input.inspect} into boolean value") + end + end + + # @api private + # + # @param input [Object] + # + # @return [Integer, Object] + def coerce_integer(input) + case input + in true + 1 + in false + 0 + else + Integer(input, exception: false) || input + end + end + + # @api private + # + # @param input [Object] + # + # @return [Float, Object] + def coerce_float(input) + case input + in true + 1.0 + in false + 0.0 + else + Float(input, exception: false) || input + end + end + + # @api private + # + # @param input [Object] + # + # @return [Hash{Object=>Object}, Object] + def coerce_hash(input) + case input + in NilClass | Array | Set | Enumerator + input + else + input.respond_to?(:to_h) ? input.to_h : input + end + end + end + + class << self + # @api private + # + # @param lhs [Object] + # @param rhs [Object] + # @param concat [Boolean] + # + # @return [Object] + private def deep_merge_lr(lhs, rhs, concat: false) + case [lhs, rhs, concat] + in [Hash, Hash, _] + rhs_cleaned = rhs.reject { _2 == Increase::Internal::OMIT } + lhs + .reject { |key, _| rhs[key] == Increase::Internal::OMIT } + .merge(rhs_cleaned) do |_, old_val, new_val| + deep_merge_lr(old_val, new_val, concat: concat) + end + in [Array, Array, true] + lhs.concat(rhs) + else + rhs + end + end + + # @api private + # + # Recursively merge one hash with another. If the values at a given key are not + # both hashes, just take the new value. + # + # @param values [Array] + # + # @param sentinel [Object, nil] the value to return if no values are provided. + # + # @param concat [Boolean] whether to merge sequences by concatenation. + # + # @return [Object] + def deep_merge(*values, sentinel: nil, concat: false) + case values + in [value, *values] + values.reduce(value) do |acc, val| + deep_merge_lr(acc, val, concat: concat) + end + else + sentinel + end + end + + # @api private + # + # @param data [Hash{Symbol=>Object}, Array, Object] + # @param pick [Symbol, Integer, Array, nil] + # @param sentinel [Object, nil] + # @param blk [Proc, nil] + # + # @return [Object, nil] + def dig(data, pick, sentinel = nil, &blk) + case [data, pick, blk] + in [_, nil, nil] + data + in [Hash, Symbol, _] | [Array, Integer, _] + blk.nil? ? data.fetch(pick, sentinel) : data.fetch(pick, &blk) + in [Hash | Array, Array, _] + pick.reduce(data) do |acc, key| + case acc + in Hash if acc.key?(key) + acc.fetch(key) + in Array if key.is_a?(Integer) && key < acc.length + acc[key] + else + return blk.nil? ? sentinel : blk.call + end + end + in _ + blk.nil? ? sentinel : blk.call + end + end + end + + class << self + # @api private + # + # @param uri [URI::Generic] + # + # @return [String] + def uri_origin(uri) + "#{uri.scheme}://#{uri.host}#{uri.port == uri.default_port ? '' : ":#{uri.port}"}" + end + + # @api private + # + # @param path [String, Array] + # + # @return [String] + def interpolate_path(path) + case path + in String + path + in [] + "" + in [String => p, *interpolations] + encoded = interpolations.map { ERB::Util.url_encode(_1) } + format(p, *encoded) + end + end + end + + class << self + # @api private + # + # @param query [String, nil] + # + # @return [Hash{String=>Array}] + def decode_query(query) + CGI.parse(query.to_s) + end + + # @api private + # + # @param query [Hash{String=>Array, String, nil}, nil] + # + # @return [String, nil] + def encode_query(query) + query.to_h.empty? ? nil : URI.encode_www_form(query) + end + end + + class << self + # @api private + # + # @param url [URI::Generic, String] + # + # @return [Hash{Symbol=>String, Integer, nil}] + def parse_uri(url) + parsed = URI::Generic.component.zip(URI.split(url)).to_h + {**parsed, query: decode_query(parsed.fetch(:query))} + end + + # @api private + # + # @param parsed [Hash{Symbol=>String, Integer, nil}] . + # + # @option parsed [String, nil] :scheme + # + # @option parsed [String, nil] :host + # + # @option parsed [Integer, nil] :port + # + # @option parsed [String, nil] :path + # + # @option parsed [Hash{String=>Array}] :query + # + # @return [URI::Generic] + def unparse_uri(parsed) + URI::Generic.build(**parsed, query: encode_query(parsed.fetch(:query))) + end + + # @api private + # + # @param lhs [Hash{Symbol=>String, Integer, nil}] . + # + # @option lhs [String, nil] :scheme + # + # @option lhs [String, nil] :host + # + # @option lhs [Integer, nil] :port + # + # @option lhs [String, nil] :path + # + # @option lhs [Hash{String=>Array}] :query + # + # @param rhs [Hash{Symbol=>String, Integer, nil}] . + # + # @option rhs [String, nil] :scheme + # + # @option rhs [String, nil] :host + # + # @option rhs [Integer, nil] :port + # + # @option rhs [String, nil] :path + # + # @option rhs [Hash{String=>Array}] :query + # + # @return [URI::Generic] + def join_parsed_uri(lhs, rhs) + base_path, base_query = lhs.fetch_values(:path, :query) + slashed = base_path.end_with?("/") ? base_path : "#{base_path}/" + + parsed_path, parsed_query = parse_uri(rhs.fetch(:path)).fetch_values(:path, :query) + override = URI::Generic.build(**rhs.slice(:scheme, :host, :port), path: parsed_path) + + joined = URI.join(URI::Generic.build(lhs.except(:path, :query)), slashed, override) + query = deep_merge( + joined.path == base_path ? base_query : {}, + parsed_query, + rhs[:query].to_h, + concat: true + ) + + joined.query = encode_query(query) + joined + end + end + + class << self + # @api private + # + # @param headers [Hash{String=>String, Integer, Array, nil}] + # + # @return [Hash{String=>String}] + def normalized_headers(*headers) + {}.merge(*headers.compact).to_h do |key, val| + value = + case val + in Array + val.map { _1.to_s.strip }.join(", ") + else + val&.to_s&.strip + end + [key.downcase, value] + end + end + end + + # @api private + # + # An adapter that satisfies the IO interface required by `::IO.copy_stream` + class ReadIOAdapter + # @api private + # + # @param max_len [Integer, nil] + # + # @return [String] + private def read_enum(max_len) + case max_len + in nil + @stream.to_a.join + in Integer + @buf << @stream.next while @buf.length < max_len + @buf.slice!(..max_len) + end + rescue StopIteration + @stream = nil + @buf.slice!(0..) + end + + # @api private + # + # @param max_len [Integer, nil] + # @param out_string [String, nil] + # + # @return [String, nil] + def read(max_len = nil, out_string = nil) + case @stream + in nil + nil + in IO | StringIO + @stream.read(max_len, out_string) + in Enumerator + read = read_enum(max_len) + case out_string + in String + out_string.replace(read) + in nil + read + end + end + .tap(&@blk) + end + + # @api private + # + # @param stream [String, IO, StringIO, Enumerable] + # @param blk [Proc] + # + # @yieldparam [String] + def initialize(stream, &blk) + @stream = stream.is_a?(String) ? StringIO.new(stream) : stream + @buf = String.new.b + @blk = blk + end + end + + class << self + # @param blk [Proc] + # + # @yieldparam [Enumerator::Yielder] + # @return [Enumerable] + def writable_enum(&blk) + Enumerator.new do |y| + y.define_singleton_method(:write) do + self << _1.clone + _1.bytesize + end + + blk.call(y) + end + end + end + + class << self + # @api private + # + # @param y [Enumerator::Yielder] + # @param boundary [String] + # @param key [Symbol, String] + # @param val [Object] + private def write_multipart_chunk(y, boundary:, key:, val:) + y << "--#{boundary}\r\n" + y << "Content-Disposition: form-data" + unless key.nil? + name = ERB::Util.url_encode(key.to_s) + y << "; name=\"#{name}\"" + end + if val.is_a?(IO) + filename = ERB::Util.url_encode(File.basename(val.to_path)) + y << "; filename=\"#{filename}\"" + end + y << "\r\n" + case val + in IO + y << "Content-Type: application/octet-stream\r\n\r\n" + IO.copy_stream(val, y) + in StringIO + y << "Content-Type: application/octet-stream\r\n\r\n" + y << val.string + in String + y << "Content-Type: application/octet-stream\r\n\r\n" + y << val.to_s + in true | false | Integer | Float | Symbol + y << "Content-Type: text/plain\r\n\r\n" + y << val.to_s + else + y << "Content-Type: application/json\r\n\r\n" + y << JSON.fast_generate(val) + end + y << "\r\n" + end + + # @api private + # + # @param body [Object] + # + # @return [Array(String, Enumerable)] + private def encode_multipart_streaming(body) + boundary = SecureRandom.urlsafe_base64(60) + + strio = writable_enum do |y| + case body + in Hash + body.each do |key, val| + case val + in Array if val.all? { primitive?(_1) } + val.each do |v| + write_multipart_chunk(y, boundary: boundary, key: key, val: v) + end + else + write_multipart_chunk(y, boundary: boundary, key: key, val: val) + end + end + else + write_multipart_chunk(y, boundary: boundary, key: nil, val: body) + end + y << "--#{boundary}--\r\n" + end + + [boundary, strio] + end + + # @api private + # + # @param headers [Hash{String=>String}] + # @param body [Object] + # + # @return [Object] + def encode_content(headers, body) + content_type = headers["content-type"] + case [content_type, body] + in [%r{^application/(?:vnd\.api\+)?json}, Hash | Array] + [headers, JSON.fast_generate(body)] + in [%r{^application/(?:x-)?jsonl}, Enumerable] + [headers, body.lazy.map { JSON.fast_generate(_1) }] + in [%r{^multipart/form-data}, Hash | IO | StringIO] + boundary, strio = encode_multipart_streaming(body) + headers = {**headers, "content-type" => "#{content_type}; boundary=#{boundary}"} + [headers, strio] + in [_, StringIO] + [headers, body.string] + else + [headers, body] + end + end + + # @api private + # + # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param stream [Enumerable] + # @param suppress_error [Boolean] + # + # @raise [JSON::ParserError] + # @return [Object] + def decode_content(headers, stream:, suppress_error: false) + case headers["content-type"] + in %r{^application/(?:vnd\.api\+)?json} + json = stream.to_a.join + begin + JSON.parse(json, symbolize_names: true) + rescue JSON::ParserError => e + raise e unless suppress_error + json + end + in %r{^application/(?:x-)?jsonl} + lines = decode_lines(stream) + chain_fused(lines) do |y| + lines.each { y << JSON.parse(_1, symbolize_names: true) } + end + in %r{^text/event-stream} + lines = decode_lines(stream) + decode_sse(lines) + in %r{^text/} + stream.to_a.join + else + # TODO: parsing other response types + StringIO.new(stream.to_a.join) + end + end + end + + class << self + # @api private + # + # https://doc.rust-lang.org/std/iter/trait.FusedIterator.html + # + # @param enum [Enumerable] + # @param external [Boolean] + # @param close [Proc] + # + # @return [Enumerable] + def fused_enum(enum, external: false, &close) + fused = false + iter = Enumerator.new do |y| + next if fused + + fused = true + if external + loop { y << enum.next } + else + enum.each(&y) + end + ensure + close&.call + close = nil + end + + iter.define_singleton_method(:rewind) do + fused = true + self + end + iter + end + + # @api private + # + # @param enum [Enumerable, nil] + def close_fused!(enum) + return unless enum.is_a?(Enumerator) + + # rubocop:disable Lint/UnreachableLoop + enum.rewind.each { break } + # rubocop:enable Lint/UnreachableLoop + end + + # @api private + # + # @param enum [Enumerable, nil] + # @param blk [Proc] + # + # @yieldparam [Enumerator::Yielder] + # @return [Enumerable] + def chain_fused(enum, &blk) + iter = Enumerator.new { blk.call(_1) } + fused_enum(iter) { close_fused!(enum) } + end + end + + class << self + # @api private + # + # @param enum [Enumerable] + # + # @return [Enumerable] + def decode_lines(enum) + re = /(\r\n|\r|\n)/ + buffer = String.new.b + cr_seen = nil + + chain_fused(enum) do |y| + enum.each do |row| + offset = buffer.bytesize + buffer << row + while (match = re.match(buffer, cr_seen&.to_i || offset)) + case [match.captures.first, cr_seen] + in ["\r", nil] + cr_seen = match.end(1) + next + in ["\r" | "\r\n", Integer] + y << buffer.slice!(..(cr_seen.pred)) + else + y << buffer.slice!(..(match.end(1).pred)) + end + offset = 0 + cr_seen = nil + end + end + + y << buffer.slice!(..(cr_seen.pred)) unless cr_seen.nil? + y << buffer unless buffer.empty? + end + end + + # @api private + # + # https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream + # + # @param lines [Enumerable] + # + # @return [Hash{Symbol=>Object}] + def decode_sse(lines) + # rubocop:disable Metrics/BlockLength + chain_fused(lines) do |y| + blank = {event: nil, data: nil, id: nil, retry: nil} + current = {} + + lines.each do |line| + case line.sub(/\R$/, "") + in "" + next if current.empty? + y << {**blank, **current} + current = {} + in /^:/ + next + in /^([^:]+):\s?(.*)$/ + field, value = Regexp.last_match.captures + case field + in "event" + current.merge!(event: value) + in "data" + (current[:data] ||= String.new.b) << (value << "\n") + in "id" unless value.include?("\0") + current.merge!(id: value) + in "retry" if /^\d+$/ =~ value + current.merge!(retry: Integer(value)) + else + end + else + end + end + # rubocop:enable Metrics/BlockLength + + y << {**blank, **current} unless current.empty? + end + end + end + end + + # rubocop:enable Metrics/ModuleLength + end +end diff --git a/lib/increase/models/account.rb b/lib/increase/models/account.rb index 00b6cfb1..c4867003 100644 --- a/lib/increase/models/account.rb +++ b/lib/increase/models/account.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Accounts#create - class Account < Increase::BaseModel + class Account < Increase::Internal::Type::BaseModel # @!attribute id # The Account identifier. # @@ -147,13 +147,13 @@ class Account < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The bank the Account is with. # # @see Increase::Models::Account#bank module Bank - extend Increase::Enum + extend Increase::Internal::Type::Enum # Core Bank CORE_BANK = :core_bank @@ -176,7 +176,7 @@ module Bank # # @see Increase::Models::Account#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -207,7 +207,7 @@ module Currency # # @see Increase::Models::Account#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Closed Accounts on which no new activity can occur. CLOSED = :closed @@ -227,7 +227,7 @@ module Status # # @see Increase::Models::Account#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT = :account diff --git a/lib/increase/models/account_balance_params.rb b/lib/increase/models/account_balance_params.rb index 593cb033..32344463 100644 --- a/lib/increase/models/account_balance_params.rb +++ b/lib/increase/models/account_balance_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Accounts#balance - class AccountBalanceParams < Increase::BaseModel + class AccountBalanceParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] at_time # The moment to query the balance at. If not set, returns the current balances. @@ -24,7 +24,7 @@ class AccountBalanceParams < Increase::BaseModel # # # def initialize(at_time: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_close_params.rb b/lib/increase/models/account_close_params.rb index c0096b46..502e3de0 100644 --- a/lib/increase/models/account_close_params.rb +++ b/lib/increase/models/account_close_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Accounts#close - class AccountCloseParams < Increase::BaseModel + class AccountCloseParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_create_params.rb b/lib/increase/models/account_create_params.rb index a1cc528c..4dbdea10 100644 --- a/lib/increase/models/account_create_params.rb +++ b/lib/increase/models/account_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Accounts#create - class AccountCreateParams < Increase::BaseModel + class AccountCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute name # The name you choose for the Account. @@ -55,7 +55,7 @@ class AccountCreateParams < Increase::BaseModel # # # def initialize(name:, entity_id: nil, informational_entity_id: nil, program_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_list_params.rb b/lib/increase/models/account_list_params.rb index d3defd7c..d4743e38 100644 --- a/lib/increase/models/account_list_params.rb +++ b/lib/increase/models/account_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Accounts#list - class AccountListParams < Increase::BaseModel + class AccountListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -116,9 +116,9 @@ class AccountListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -171,17 +171,17 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::AccountListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::AccountListParams::Status::In] }, api_name: :in # @!parse @@ -193,10 +193,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Closed Accounts on which no new activity can occur. CLOSED = :closed diff --git a/lib/increase/models/account_number.rb b/lib/increase/models/account_number.rb index d40e0e46..d15a8757 100644 --- a/lib/increase/models/account_number.rb +++ b/lib/increase/models/account_number.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::AccountNumbers#create - class AccountNumber < Increase::BaseModel + class AccountNumber < Increase::Internal::Type::BaseModel # @!attribute id # The Account Number identifier. # @@ -111,10 +111,10 @@ class AccountNumber < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::AccountNumber#inbound_ach - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel # @!attribute debit_status # 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. @@ -129,14 +129,14 @@ class InboundACH < Increase::BaseModel # # # def initialize(debit_status:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # 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. # # @see Increase::Models::AccountNumber::InboundACH#debit_status module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED = :allowed @@ -153,7 +153,7 @@ module DebitStatus end # @see Increase::Models::AccountNumber#inbound_checks - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel # @!attribute status # How Increase should process checks with this account number printed on them. # @@ -168,13 +168,13 @@ class InboundChecks < Increase::BaseModel # # # def initialize(status:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # How Increase should process checks with this account number printed on them. # # @see Increase::Models::AccountNumber::InboundChecks#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Checks with this Account Number will be processed even if they are not associated with a Check Transfer. ALLOWED = :allowed @@ -194,7 +194,7 @@ module Status # # @see Increase::Models::AccountNumber#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is active. ACTIVE = :active @@ -217,7 +217,7 @@ module Status # # @see Increase::Models::AccountNumber#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT_NUMBER = :account_number diff --git a/lib/increase/models/account_number_create_params.rb b/lib/increase/models/account_number_create_params.rb index fe164da9..586aa719 100644 --- a/lib/increase/models/account_number_create_params.rb +++ b/lib/increase/models/account_number_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::AccountNumbers#create - class AccountNumberCreateParams < Increase::BaseModel + class AccountNumberCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The Account the Account Number should belong to. @@ -50,9 +50,9 @@ class AccountNumberCreateParams < Increase::BaseModel # # # def initialize(account_id:, name:, inbound_ach: nil, inbound_checks: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel # @!attribute debit_status # 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 @@ -68,7 +68,7 @@ class InboundACH < Increase::BaseModel # # # def initialize(debit_status:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # 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 @@ -76,7 +76,7 @@ class InboundACH < Increase::BaseModel # # @see Increase::Models::AccountNumberCreateParams::InboundACH#debit_status module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED = :allowed @@ -92,7 +92,7 @@ module DebitStatus end end - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel # @!attribute status # 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`. @@ -108,14 +108,14 @@ class InboundChecks < Increase::BaseModel # # # def initialize(status:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # 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`. # # @see Increase::Models::AccountNumberCreateParams::InboundChecks#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Checks with this Account Number will be processed even if they are not associated with a Check Transfer. ALLOWED = :allowed diff --git a/lib/increase/models/account_number_list_params.rb b/lib/increase/models/account_number_list_params.rb index 0b7f9048..d9646e09 100644 --- a/lib/increase/models/account_number_list_params.rb +++ b/lib/increase/models/account_number_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::AccountNumbers#list - class AccountNumberListParams < Increase::BaseModel + class AccountNumberListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Account Numbers to those belonging to the specified Account. @@ -103,16 +103,16 @@ class AccountNumberListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class ACHDebitStatus < Increase::BaseModel + class ACHDebitStatus < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::AccountNumberListParams::ACHDebitStatus::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::AccountNumberListParams::ACHDebitStatus::In] }, api_name: :in # @!parse @@ -124,10 +124,10 @@ class ACHDebitStatus < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED = :allowed @@ -143,7 +143,7 @@ module In end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -196,17 +196,17 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::AccountNumberListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::AccountNumberListParams::Status::In] }, api_name: :in # @!parse @@ -218,10 +218,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is active. ACTIVE = :active diff --git a/lib/increase/models/account_number_retrieve_params.rb b/lib/increase/models/account_number_retrieve_params.rb index e8938403..eaa3cb2e 100644 --- a/lib/increase/models/account_number_retrieve_params.rb +++ b/lib/increase/models/account_number_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::AccountNumbers#retrieve - class AccountNumberRetrieveParams < Increase::BaseModel + class AccountNumberRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_number_update_params.rb b/lib/increase/models/account_number_update_params.rb index d0e202b8..cc85ed10 100644 --- a/lib/increase/models/account_number_update_params.rb +++ b/lib/increase/models/account_number_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::AccountNumbers#update - class AccountNumberUpdateParams < Increase::BaseModel + class AccountNumberUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] inbound_ach # Options related to how this Account Number handles inbound ACH transfers. @@ -58,9 +58,9 @@ class AccountNumberUpdateParams < Increase::BaseModel # # # def initialize(inbound_ach: nil, inbound_checks: nil, name: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel # @!attribute [r] debit_status # 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. @@ -79,14 +79,14 @@ class InboundACH < Increase::BaseModel # # # def initialize(debit_status: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # 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. # # @see Increase::Models::AccountNumberUpdateParams::InboundACH#debit_status module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED = :allowed @@ -102,7 +102,7 @@ module DebitStatus end end - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel # @!attribute status # How Increase should process checks with this account number printed on them. # @@ -117,13 +117,13 @@ class InboundChecks < Increase::BaseModel # # # def initialize(status:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # How Increase should process checks with this account number printed on them. # # @see Increase::Models::AccountNumberUpdateParams::InboundChecks#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Checks with this Account Number will be processed even if they are not associated with a Check Transfer. ALLOWED = :allowed @@ -141,7 +141,7 @@ module Status # This indicates if transfers can be made to the Account Number. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is active. ACTIVE = :active diff --git a/lib/increase/models/account_retrieve_params.rb b/lib/increase/models/account_retrieve_params.rb index 6fed421f..88bc4e4f 100644 --- a/lib/increase/models/account_retrieve_params.rb +++ b/lib/increase/models/account_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Accounts#retrieve - class AccountRetrieveParams < Increase::BaseModel + class AccountRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_statement.rb b/lib/increase/models/account_statement.rb index 74ca5dbb..8a3d857f 100644 --- a/lib/increase/models/account_statement.rb +++ b/lib/increase/models/account_statement.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::AccountStatements#retrieve - class AccountStatement < Increase::BaseModel + class AccountStatement < Increase::Internal::Type::BaseModel # @!attribute id # The Account Statement identifier. # @@ -92,14 +92,14 @@ class AccountStatement < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `account_statement`. # # @see Increase::Models::AccountStatement#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT_STATEMENT = :account_statement diff --git a/lib/increase/models/account_statement_list_params.rb b/lib/increase/models/account_statement_list_params.rb index 6f66e698..65498385 100644 --- a/lib/increase/models/account_statement_list_params.rb +++ b/lib/increase/models/account_statement_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::AccountStatements#list - class AccountStatementListParams < Increase::BaseModel + class AccountStatementListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Account Statements to those belonging to the specified Account. @@ -58,9 +58,9 @@ class AccountStatementListParams < Increase::BaseModel # # # def initialize(account_id: nil, cursor: nil, limit: nil, statement_period_start: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class StatementPeriodStart < Increase::BaseModel + class StatementPeriodStart < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -113,7 +113,7 @@ class StatementPeriodStart < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_statement_retrieve_params.rb b/lib/increase/models/account_statement_retrieve_params.rb index d88e0d04..30a6be55 100644 --- a/lib/increase/models/account_statement_retrieve_params.rb +++ b/lib/increase/models/account_statement_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::AccountStatements#retrieve - class AccountStatementRetrieveParams < Increase::BaseModel + class AccountStatementRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_transfer.rb b/lib/increase/models/account_transfer.rb index c348b27c..4462155a 100644 --- a/lib/increase/models/account_transfer.rb +++ b/lib/increase/models/account_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::AccountTransfers#create - class AccountTransfer < Increase::BaseModel + class AccountTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The account transfer's identifier. # @@ -161,10 +161,10 @@ class AccountTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::AccountTransfer#approval - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # @!attribute approved_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -188,11 +188,11 @@ class Approval < Increase::BaseModel # # # def initialize(approved_at:, approved_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::AccountTransfer#cancellation - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # @!attribute canceled_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -216,11 +216,11 @@ class Cancellation < Increase::BaseModel # # # def initialize(canceled_at:, canceled_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::AccountTransfer#created_by - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # @!attribute api_key # If present, details about the API key that created the transfer. # @@ -257,10 +257,10 @@ class CreatedBy < Increase::BaseModel # # # def initialize(api_key:, category:, oauth_application:, user:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::AccountTransfer::CreatedBy#api_key - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # @!attribute description # The description set for the API key when it was created. # @@ -274,14 +274,14 @@ class APIKey < Increase::BaseModel # # # def initialize(description:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The type of object that created this transfer. # # @see Increase::Models::AccountTransfer::CreatedBy#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY = :api_key @@ -300,7 +300,7 @@ module Category end # @see Increase::Models::AccountTransfer::CreatedBy#oauth_application - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name # The name of the OAuth Application. # @@ -314,11 +314,11 @@ class OAuthApplication < Increase::BaseModel # # # def initialize(name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::AccountTransfer::CreatedBy#user - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # @!attribute email # The email address of the User. # @@ -332,7 +332,7 @@ class User < Increase::BaseModel # # # def initialize(email:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -341,7 +341,7 @@ class User < Increase::BaseModel # # @see Increase::Models::AccountTransfer#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -372,7 +372,7 @@ module Currency # # @see Increase::Models::AccountTransfer#network module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT = :account @@ -387,7 +387,7 @@ module Network # # @see Increase::Models::AccountTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL = :pending_approval @@ -410,7 +410,7 @@ module Status # # @see Increase::Models::AccountTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT_TRANSFER = :account_transfer diff --git a/lib/increase/models/account_transfer_approve_params.rb b/lib/increase/models/account_transfer_approve_params.rb index ab8a0d3b..9736d831 100644 --- a/lib/increase/models/account_transfer_approve_params.rb +++ b/lib/increase/models/account_transfer_approve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::AccountTransfers#approve - class AccountTransferApproveParams < Increase::BaseModel + class AccountTransferApproveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_transfer_cancel_params.rb b/lib/increase/models/account_transfer_cancel_params.rb index 634d7c76..2ff19273 100644 --- a/lib/increase/models/account_transfer_cancel_params.rb +++ b/lib/increase/models/account_transfer_cancel_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::AccountTransfers#cancel - class AccountTransferCancelParams < Increase::BaseModel + class AccountTransferCancelParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_transfer_create_params.rb b/lib/increase/models/account_transfer_create_params.rb index 3779b616..3a4ac32c 100644 --- a/lib/increase/models/account_transfer_create_params.rb +++ b/lib/increase/models/account_transfer_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::AccountTransfers#create - class AccountTransferCreateParams < Increase::BaseModel + class AccountTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier for the account that will send the transfer. @@ -37,7 +37,7 @@ class AccountTransferCreateParams < Increase::BaseModel # Whether the transfer requires explicit approval via the dashboard or API. # # @return [Boolean, nil] - optional :require_approval, Increase::BooleanModel + optional :require_approval, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -63,7 +63,7 @@ class AccountTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_transfer_list_params.rb b/lib/increase/models/account_transfer_list_params.rb index cf136a53..4710f9b4 100644 --- a/lib/increase/models/account_transfer_list_params.rb +++ b/lib/increase/models/account_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::AccountTransfers#list - class AccountTransferListParams < Increase::BaseModel + class AccountTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Account Transfers to those that originated from the specified Account. @@ -71,9 +71,9 @@ class AccountTransferListParams < Increase::BaseModel # # # def initialize(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -126,7 +126,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_transfer_retrieve_params.rb b/lib/increase/models/account_transfer_retrieve_params.rb index fb9f0fbd..a22a2709 100644 --- a/lib/increase/models/account_transfer_retrieve_params.rb +++ b/lib/increase/models/account_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::AccountTransfers#retrieve - class AccountTransferRetrieveParams < Increase::BaseModel + class AccountTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/account_update_params.rb b/lib/increase/models/account_update_params.rb index 9e4fb47c..889e1308 100644 --- a/lib/increase/models/account_update_params.rb +++ b/lib/increase/models/account_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Accounts#update - class AccountUpdateParams < Increase::BaseModel + class AccountUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] name # The new name of the Account. @@ -24,7 +24,7 @@ class AccountUpdateParams < Increase::BaseModel # # # def initialize(name: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/ach_prenotification.rb b/lib/increase/models/ach_prenotification.rb index f3454e04..42c74248 100644 --- a/lib/increase/models/ach_prenotification.rb +++ b/lib/increase/models/ach_prenotification.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::ACHPrenotifications#create - class ACHPrenotification < Increase::BaseModel + class ACHPrenotification < Increase::Internal::Type::BaseModel # @!attribute id # The ACH Prenotification's identifier. # @@ -81,7 +81,7 @@ class ACHPrenotification < Increase::BaseModel # # @return [Array] required :notifications_of_change, - -> { Increase::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange] } # @!attribute prenotification_return # If your prenotification is returned, this will contain details of the return. @@ -153,13 +153,13 @@ class ACHPrenotification < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # If the notification is for a future credit or debit. # # @see Increase::Models::ACHPrenotification#credit_debit_indicator module CreditDebitIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Prenotification is for an anticipated credit. CREDIT = :credit @@ -174,7 +174,7 @@ module CreditDebitIndicator # def self.values; end end - class NotificationsOfChange < Increase::BaseModel + class NotificationsOfChange < Increase::Internal::Type::BaseModel # @!attribute change_code # The required type of change that is being signaled by the receiving financial # institution. @@ -207,14 +207,14 @@ class NotificationsOfChange < Increase::BaseModel # # # def initialize(change_code:, corrected_data:, created_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The required type of change that is being signaled by the receiving financial # institution. # # @see Increase::Models::ACHPrenotification::NotificationsOfChange#change_code module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number was incorrect. INCORRECT_ACCOUNT_NUMBER = :incorrect_account_number @@ -288,7 +288,7 @@ module ChangeCode end # @see Increase::Models::ACHPrenotification#prenotification_return - class PrenotificationReturn < Increase::BaseModel + class PrenotificationReturn < Increase::Internal::Type::BaseModel # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Prenotification was returned. @@ -311,13 +311,13 @@ class PrenotificationReturn < Increase::BaseModel # # # def initialize(created_at:, return_reason_code:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Why the Prenotification was returned. # # @see Increase::Models::ACHPrenotification::PrenotificationReturn#return_reason_code module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND = :insufficient_fund @@ -544,7 +544,7 @@ module ReturnReasonCode # # @see Increase::Models::ACHPrenotification#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Prenotification is pending submission. PENDING_SUBMITTING = :pending_submitting @@ -570,7 +570,7 @@ module Status # # @see Increase::Models::ACHPrenotification#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH_PRENOTIFICATION = :ach_prenotification diff --git a/lib/increase/models/ach_prenotification_create_params.rb b/lib/increase/models/ach_prenotification_create_params.rb index be64f5ca..3fb7c5b7 100644 --- a/lib/increase/models/ach_prenotification_create_params.rb +++ b/lib/increase/models/ach_prenotification_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ACHPrenotifications#create - class ACHPrenotificationCreateParams < Increase::BaseModel + class ACHPrenotificationCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The Increase identifier for the account that will send the transfer. @@ -167,11 +167,11 @@ class ACHPrenotificationCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether the Prenotification is for a future debit or credit. module CreditDebitIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Prenotification is for an anticipated credit. CREDIT = :credit @@ -188,7 +188,7 @@ module CreditDebitIndicator # The Standard Entry Class (SEC) code to use for the ACH Prenotification. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT = :corporate_credit_or_debit diff --git a/lib/increase/models/ach_prenotification_list_params.rb b/lib/increase/models/ach_prenotification_list_params.rb index 1504db98..d448f715 100644 --- a/lib/increase/models/ach_prenotification_list_params.rb +++ b/lib/increase/models/ach_prenotification_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ACHPrenotifications#list - class ACHPrenotificationListParams < Increase::BaseModel + class ACHPrenotificationListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -60,9 +60,9 @@ class ACHPrenotificationListParams < Increase::BaseModel # # # def initialize(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -115,7 +115,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/ach_prenotification_retrieve_params.rb b/lib/increase/models/ach_prenotification_retrieve_params.rb index 939916ad..4881a485 100644 --- a/lib/increase/models/ach_prenotification_retrieve_params.rb +++ b/lib/increase/models/ach_prenotification_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::ACHPrenotifications#retrieve - class ACHPrenotificationRetrieveParams < Increase::BaseModel + class ACHPrenotificationRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/ach_transfer.rb b/lib/increase/models/ach_transfer.rb index 33702acb..07ac1235 100644 --- a/lib/increase/models/ach_transfer.rb +++ b/lib/increase/models/ach_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::ACHTransfers#create - class ACHTransfer < Increase::BaseModel + class ACHTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The ACH transfer's identifier. # @@ -161,7 +161,7 @@ class ACHTransfer < Increase::BaseModel # # @return [Array] required :notifications_of_change, - -> { Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange] } # @!attribute pending_transaction_id # The ID for the pending transaction representing the transfer. A pending @@ -322,10 +322,10 @@ class ACHTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::ACHTransfer#acknowledgement - class Acknowledgement < Increase::BaseModel + class Acknowledgement < Increase::Internal::Type::BaseModel # @!attribute acknowledged_at # When the Federal Reserve acknowledged the submitted file containing this # transfer. @@ -342,11 +342,11 @@ class Acknowledgement < Increase::BaseModel # # # def initialize(acknowledged_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::ACHTransfer#addenda - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # @!attribute category # 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. @@ -378,14 +378,14 @@ class Addenda < Increase::BaseModel # # # def initialize(category:, freeform:, payment_order_remittance_advice:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # 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. # # @see Increase::Models::ACHTransfer::Addenda#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured `payment_related_information` passed through with the transfer. FREEFORM = :freeform @@ -404,12 +404,13 @@ module Category end # @see Increase::Models::ACHTransfer::Addenda#freeform - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # @!attribute entries # Each entry represents an addendum sent with the transfer. # # @return [Array] - required :entries, -> { Increase::ArrayOf[Increase::Models::ACHTransfer::Addenda::Freeform::Entry] } + required :entries, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::Addenda::Freeform::Entry] } # @!parse # # Unstructured `payment_related_information` passed through with the transfer. @@ -418,9 +419,9 @@ class Freeform < Increase::BaseModel # # # def initialize(entries:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # @!attribute payment_related_information # The payment related information passed in the addendum. # @@ -432,18 +433,18 @@ class Entry < Increase::BaseModel # # # def initialize(payment_related_information:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end # @see Increase::Models::ACHTransfer::Addenda#payment_order_remittance_advice - class PaymentOrderRemittanceAdvice < Increase::BaseModel + class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel # @!attribute invoices # ASC X12 RMR records for this specific transfer. # # @return [Array] required :invoices, - -> { Increase::ArrayOf[Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice] } # @!parse # # Structured ASC X12 820 remittance advice records. Please reach out to @@ -453,9 +454,9 @@ class PaymentOrderRemittanceAdvice < Increase::BaseModel # # # def initialize(invoices:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel # @!attribute invoice_number # The invoice number for this reference, determined in advance with the receiver. # @@ -475,13 +476,13 @@ class Invoice < Increase::BaseModel # # # def initialize(invoice_number:, paid_amount:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end # @see Increase::Models::ACHTransfer#approval - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # @!attribute approved_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -505,11 +506,11 @@ class Approval < Increase::BaseModel # # # def initialize(approved_at:, approved_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::ACHTransfer#cancellation - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # @!attribute canceled_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -533,11 +534,11 @@ class Cancellation < Increase::BaseModel # # # def initialize(canceled_at:, canceled_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::ACHTransfer#created_by - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # @!attribute api_key # If present, details about the API key that created the transfer. # @@ -572,10 +573,10 @@ class CreatedBy < Increase::BaseModel # # # def initialize(api_key:, category:, oauth_application:, user:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::ACHTransfer::CreatedBy#api_key - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # @!attribute description # The description set for the API key when it was created. # @@ -589,14 +590,14 @@ class APIKey < Increase::BaseModel # # # def initialize(description:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The type of object that created this transfer. # # @see Increase::Models::ACHTransfer::CreatedBy#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY = :api_key @@ -615,7 +616,7 @@ module Category end # @see Increase::Models::ACHTransfer::CreatedBy#oauth_application - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name # The name of the OAuth Application. # @@ -629,11 +630,11 @@ class OAuthApplication < Increase::BaseModel # # # def initialize(name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::ACHTransfer::CreatedBy#user - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # @!attribute email # The email address of the User. # @@ -647,7 +648,7 @@ class User < Increase::BaseModel # # # def initialize(email:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -656,7 +657,7 @@ class User < Increase::BaseModel # # @see Increase::Models::ACHTransfer#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -688,7 +689,7 @@ module Currency # # @see Increase::Models::ACHTransfer#destination_account_holder module DestinationAccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS = :business @@ -710,7 +711,7 @@ module DestinationAccountHolder # # @see Increase::Models::ACHTransfer#funding module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING = :checking @@ -726,7 +727,7 @@ module Funding end # @see Increase::Models::ACHTransfer#inbound_funds_hold - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel # @!attribute id # The Inbound Funds Hold identifier. # @@ -823,14 +824,14 @@ class InboundFundsHold < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. # # @see Increase::Models::ACHTransfer::InboundFundsHold#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -861,7 +862,7 @@ module Currency # # @see Increase::Models::ACHTransfer::InboundFundsHold#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD = :held @@ -881,7 +882,7 @@ module Status # # @see Increase::Models::ACHTransfer::InboundFundsHold#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD = :inbound_funds_hold @@ -897,7 +898,7 @@ module Type # # @see Increase::Models::ACHTransfer#network module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH = :ach @@ -908,7 +909,7 @@ module Network # def self.values; end end - class NotificationsOfChange < Increase::BaseModel + class NotificationsOfChange < Increase::Internal::Type::BaseModel # @!attribute change_code # The required type of change that is being signaled by the receiving financial # institution. @@ -940,14 +941,14 @@ class NotificationsOfChange < Increase::BaseModel # # # def initialize(change_code:, corrected_data:, created_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The required type of change that is being signaled by the receiving financial # institution. # # @see Increase::Models::ACHTransfer::NotificationsOfChange#change_code module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number was incorrect. INCORRECT_ACCOUNT_NUMBER = :incorrect_account_number @@ -1021,7 +1022,7 @@ module ChangeCode end # @see Increase::Models::ACHTransfer#preferred_effective_date - class PreferredEffectiveDate < Increase::BaseModel + class PreferredEffectiveDate < Increase::Internal::Type::BaseModel # @!attribute date # A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to # use as the effective date when submitting this transfer. @@ -1048,13 +1049,13 @@ class PreferredEffectiveDate < Increase::BaseModel # # # def initialize(date:, settlement_schedule:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A schedule by which Increase will choose an effective date for the transfer. # # @see Increase::Models::ACHTransfer::PreferredEffectiveDate#settlement_schedule module SettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The chosen effective date will be the same as the ACH processing date on which the transfer is submitted. # This is necessary, but not sufficient for the transfer to be settled same-day: @@ -1074,7 +1075,7 @@ module SettlementSchedule end # @see Increase::Models::ACHTransfer#return_ - class Return < Increase::BaseModel + class Return < Increase::Internal::Type::BaseModel # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was created. @@ -1138,14 +1139,14 @@ class Return < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Why the ACH Transfer was returned. This reason code is sent by the receiving # bank back to Increase. # # @see Increase::Models::ACHTransfer::Return#return_reason_code module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND = :insufficient_fund @@ -1369,7 +1370,7 @@ module ReturnReasonCode end # @see Increase::Models::ACHTransfer#settlement - class Settlement < Increase::BaseModel + class Settlement < Increase::Internal::Type::BaseModel # @!attribute settled_at # When the funds for this transfer have settled at the destination bank at the # Federal Reserve. @@ -1385,14 +1386,14 @@ class Settlement < Increase::BaseModel # # # def initialize(settled_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The Standard Entry Class (SEC) code to use for the transfer. # # @see Increase::Models::ACHTransfer#standard_entry_class_code module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT = :corporate_credit_or_debit @@ -1417,7 +1418,7 @@ module StandardEntryClassCode # # @see Increase::Models::ACHTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL = :pending_approval @@ -1454,7 +1455,7 @@ module Status end # @see Increase::Models::ACHTransfer#submission - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # @!attribute effective_date # 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 @@ -1522,7 +1523,7 @@ class Submission < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The settlement schedule the transfer is expected to follow. This expectation # takes into account the `effective_date`, `submitted_at`, and the amount of the @@ -1530,7 +1531,7 @@ class Submission < Increase::BaseModel # # @see Increase::Models::ACHTransfer::Submission#expected_settlement_schedule module ExpectedSettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is expected to settle same-day. SAME_DAY = :same_day @@ -1551,7 +1552,7 @@ module ExpectedSettlementSchedule # # @see Increase::Models::ACHTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH_TRANSFER = :ach_transfer diff --git a/lib/increase/models/ach_transfer_approve_params.rb b/lib/increase/models/ach_transfer_approve_params.rb index e50bfe7a..3c4e814f 100644 --- a/lib/increase/models/ach_transfer_approve_params.rb +++ b/lib/increase/models/ach_transfer_approve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::ACHTransfers#approve - class ACHTransferApproveParams < Increase::BaseModel + class ACHTransferApproveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/ach_transfer_cancel_params.rb b/lib/increase/models/ach_transfer_cancel_params.rb index 96a8dfdd..b26812d6 100644 --- a/lib/increase/models/ach_transfer_cancel_params.rb +++ b/lib/increase/models/ach_transfer_cancel_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::ACHTransfers#cancel - class ACHTransferCancelParams < Increase::BaseModel + class ACHTransferCancelParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/ach_transfer_create_params.rb b/lib/increase/models/ach_transfer_create_params.rb index ab3806ea..02e9c1b1 100644 --- a/lib/increase/models/ach_transfer_create_params.rb +++ b/lib/increase/models/ach_transfer_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ACHTransfers#create - class ACHTransferCreateParams < Increase::BaseModel + class ACHTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The Increase identifier for the account that will send the transfer. @@ -170,7 +170,7 @@ class ACHTransferCreateParams < Increase::BaseModel # Whether the transfer requires explicit approval via the dashboard or API. # # @return [Boolean, nil] - optional :require_approval, Increase::BooleanModel + optional :require_approval, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -256,9 +256,9 @@ class ACHTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # @!attribute category # The type of addenda to pass with the transfer. # @@ -297,13 +297,13 @@ class Addenda < Increase::BaseModel # # # def initialize(category:, freeform: nil, payment_order_remittance_advice: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of addenda to pass with the transfer. # # @see Increase::Models::ACHTransferCreateParams::Addenda#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured `payment_related_information` passed through with the transfer. FREEFORM = :freeform @@ -319,7 +319,7 @@ module Category end # @see Increase::Models::ACHTransferCreateParams::Addenda#freeform - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # @!attribute entries # 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 @@ -327,7 +327,7 @@ class Freeform < Increase::BaseModel # # @return [Array] required :entries, - -> { Increase::ArrayOf[Increase::Models::ACHTransferCreateParams::Addenda::Freeform::Entry] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransferCreateParams::Addenda::Freeform::Entry] } # @!parse # # Unstructured `payment_related_information` passed through with the transfer. @@ -336,9 +336,9 @@ class Freeform < Increase::BaseModel # # # def initialize(entries:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # @!attribute payment_related_information # The payment related information passed in the addendum. # @@ -350,18 +350,18 @@ class Entry < Increase::BaseModel # # # def initialize(payment_related_information:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end # @see Increase::Models::ACHTransferCreateParams::Addenda#payment_order_remittance_advice - class PaymentOrderRemittanceAdvice < Increase::BaseModel + class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel # @!attribute invoices # ASC X12 RMR records for this specific transfer. # # @return [Array] required :invoices, - -> { Increase::ArrayOf[Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice] } # @!parse # # Structured ASC X12 820 remittance advice records. Please reach out to @@ -371,9 +371,9 @@ class PaymentOrderRemittanceAdvice < Increase::BaseModel # # # def initialize(invoices:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel # @!attribute invoice_number # The invoice number for this reference, determined in advance with the receiver. # @@ -393,7 +393,7 @@ class Invoice < Increase::BaseModel # # # def initialize(invoice_number:, paid_amount:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end @@ -401,7 +401,7 @@ class Invoice < Increase::BaseModel # The type of entity that owns the account to which the ACH Transfer is being # sent. module DestinationAccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS = :business @@ -421,7 +421,7 @@ module DestinationAccountHolder # The type of the account to which the transfer will be sent. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING = :checking @@ -436,7 +436,7 @@ module Funding # def self.values; end end - class PreferredEffectiveDate < Increase::BaseModel + class PreferredEffectiveDate < Increase::Internal::Type::BaseModel # @!attribute [r] date # A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to # use as the effective date when submitting this transfer. @@ -470,13 +470,13 @@ class PreferredEffectiveDate < Increase::BaseModel # # # def initialize(date: nil, settlement_schedule: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A schedule by which Increase will choose an effective date for the transfer. # # @see Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate#settlement_schedule module SettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The chosen effective date will be the same as the ACH processing date on which the transfer is submitted. This is necessary, but not sufficient for the transfer to be settled same-day: it must also be submitted before the last same-day cutoff and be less than or equal to $1,000.000.00. SAME_DAY = :same_day @@ -494,7 +494,7 @@ module SettlementSchedule # The Standard Entry Class (SEC) code to use for the transfer. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT = :corporate_credit_or_debit @@ -517,7 +517,7 @@ module StandardEntryClassCode # The timing of the transaction. module TransactionTiming - extend Increase::Enum + extend Increase::Internal::Type::Enum # A Transaction will be created immediately. SYNCHRONOUS = :synchronous diff --git a/lib/increase/models/ach_transfer_list_params.rb b/lib/increase/models/ach_transfer_list_params.rb index a51332bf..e206666d 100644 --- a/lib/increase/models/ach_transfer_list_params.rb +++ b/lib/increase/models/ach_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ACHTransfers#list - class ACHTransferListParams < Increase::BaseModel + class ACHTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter ACH Transfers to those that originated from the specified Account. @@ -104,9 +104,9 @@ class ACHTransferListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -159,17 +159,17 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::ACHTransferListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::ACHTransferListParams::Status::In] }, api_name: :in # @!parse @@ -181,10 +181,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL = :pending_approval diff --git a/lib/increase/models/ach_transfer_retrieve_params.rb b/lib/increase/models/ach_transfer_retrieve_params.rb index fc105ba0..f8d0b284 100644 --- a/lib/increase/models/ach_transfer_retrieve_params.rb +++ b/lib/increase/models/ach_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::ACHTransfers#retrieve - class ACHTransferRetrieveParams < Increase::BaseModel + class ACHTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/balance_lookup.rb b/lib/increase/models/balance_lookup.rb index 635146c0..995371cf 100644 --- a/lib/increase/models/balance_lookup.rb +++ b/lib/increase/models/balance_lookup.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Accounts#balance - class BalanceLookup < Increase::BaseModel + class BalanceLookup < Increase::Internal::Type::BaseModel # @!attribute account_id # The identifier for the account for which the balance was queried. # @@ -42,14 +42,14 @@ class BalanceLookup < Increase::BaseModel # # # def initialize(account_id:, available_balance:, current_balance:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `balance_lookup`. # # @see Increase::Models::BalanceLookup#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BALANCE_LOOKUP = :balance_lookup diff --git a/lib/increase/models/bookkeeping_account.rb b/lib/increase/models/bookkeeping_account.rb index d14b2b3e..5e6f8c7e 100644 --- a/lib/increase/models/bookkeeping_account.rb +++ b/lib/increase/models/bookkeeping_account.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::BookkeepingAccounts#create - class BookkeepingAccount < Increase::BaseModel + class BookkeepingAccount < Increase::Internal::Type::BaseModel # @!attribute id # The account identifier. # @@ -66,13 +66,13 @@ class BookkeepingAccount < Increase::BaseModel # # # def initialize(id:, account_id:, compliance_category:, entity_id:, idempotency_key:, name:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The compliance category of the account. # # @see Increase::Models::BookkeepingAccount#compliance_category module ComplianceCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # A cash in an commingled Increase Account. COMMINGLED_CASH = :commingled_cash @@ -92,7 +92,7 @@ module ComplianceCategory # # @see Increase::Models::BookkeepingAccount#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_ACCOUNT = :bookkeeping_account diff --git a/lib/increase/models/bookkeeping_account_balance_params.rb b/lib/increase/models/bookkeeping_account_balance_params.rb index bcd22062..decf0faf 100644 --- a/lib/increase/models/bookkeeping_account_balance_params.rb +++ b/lib/increase/models/bookkeeping_account_balance_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::BookkeepingAccounts#balance - class BookkeepingAccountBalanceParams < Increase::BaseModel + class BookkeepingAccountBalanceParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] at_time # The moment to query the balance at. If not set, returns the current balances. @@ -24,7 +24,7 @@ class BookkeepingAccountBalanceParams < Increase::BaseModel # # # def initialize(at_time: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/bookkeeping_account_create_params.rb b/lib/increase/models/bookkeeping_account_create_params.rb index 9dc32471..6823ef55 100644 --- a/lib/increase/models/bookkeeping_account_create_params.rb +++ b/lib/increase/models/bookkeeping_account_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::BookkeepingAccounts#create - class BookkeepingAccountCreateParams < Increase::BaseModel + class BookkeepingAccountCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute name # The name you choose for the account. @@ -54,11 +54,11 @@ class BookkeepingAccountCreateParams < Increase::BaseModel # # # def initialize(name:, account_id: nil, compliance_category: nil, entity_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The account compliance category. module ComplianceCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # A cash in an commingled Increase Account. COMMINGLED_CASH = :commingled_cash diff --git a/lib/increase/models/bookkeeping_account_list_params.rb b/lib/increase/models/bookkeeping_account_list_params.rb index 6e91ba0e..e23a22cd 100644 --- a/lib/increase/models/bookkeeping_account_list_params.rb +++ b/lib/increase/models/bookkeeping_account_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::BookkeepingAccounts#list - class BookkeepingAccountListParams < Increase::BaseModel + class BookkeepingAccountListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -50,7 +50,7 @@ class BookkeepingAccountListParams < Increase::BaseModel # # # def initialize(cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/bookkeeping_account_update_params.rb b/lib/increase/models/bookkeeping_account_update_params.rb index bc05558d..85c7f1ba 100644 --- a/lib/increase/models/bookkeeping_account_update_params.rb +++ b/lib/increase/models/bookkeeping_account_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::BookkeepingAccounts#update - class BookkeepingAccountUpdateParams < Increase::BaseModel + class BookkeepingAccountUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute name # The name you choose for the account. @@ -20,7 +20,7 @@ class BookkeepingAccountUpdateParams < Increase::BaseModel # # # def initialize(name:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/bookkeeping_balance_lookup.rb b/lib/increase/models/bookkeeping_balance_lookup.rb index 05309eeb..3bb10c34 100644 --- a/lib/increase/models/bookkeeping_balance_lookup.rb +++ b/lib/increase/models/bookkeeping_balance_lookup.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::BookkeepingAccounts#balance - class BookkeepingBalanceLookup < Increase::BaseModel + class BookkeepingBalanceLookup < Increase::Internal::Type::BaseModel # @!attribute balance # The Bookkeeping Account's current balance, representing the sum of all # Bookkeeping Entries on the Bookkeeping Account. @@ -34,14 +34,14 @@ class BookkeepingBalanceLookup < Increase::BaseModel # # # def initialize(balance:, bookkeeping_account_id:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `bookkeeping_balance_lookup`. # # @see Increase::Models::BookkeepingBalanceLookup#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_BALANCE_LOOKUP = :bookkeeping_balance_lookup diff --git a/lib/increase/models/bookkeeping_entry.rb b/lib/increase/models/bookkeeping_entry.rb index 2bf29ee6..9c0e84c5 100644 --- a/lib/increase/models/bookkeeping_entry.rb +++ b/lib/increase/models/bookkeeping_entry.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::BookkeepingEntries#retrieve - class BookkeepingEntry < Increase::BaseModel + class BookkeepingEntry < Increase::Internal::Type::BaseModel # @!attribute id # The entry identifier. # @@ -56,14 +56,14 @@ class BookkeepingEntry < Increase::BaseModel # # # def initialize(id:, account_id:, amount:, created_at:, entry_set_id:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `bookkeeping_entry`. # # @see Increase::Models::BookkeepingEntry#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_ENTRY = :bookkeeping_entry diff --git a/lib/increase/models/bookkeeping_entry_list_params.rb b/lib/increase/models/bookkeeping_entry_list_params.rb index 24036cf2..6cabc91b 100644 --- a/lib/increase/models/bookkeeping_entry_list_params.rb +++ b/lib/increase/models/bookkeeping_entry_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::BookkeepingEntries#list - class BookkeepingEntryListParams < Increase::BaseModel + class BookkeepingEntryListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # The identifier for the Bookkeeping Account to filter by. @@ -47,7 +47,7 @@ class BookkeepingEntryListParams < Increase::BaseModel # # # def initialize(account_id: nil, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/bookkeeping_entry_retrieve_params.rb b/lib/increase/models/bookkeeping_entry_retrieve_params.rb index 04b2adaf..398db547 100644 --- a/lib/increase/models/bookkeeping_entry_retrieve_params.rb +++ b/lib/increase/models/bookkeeping_entry_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::BookkeepingEntries#retrieve - class BookkeepingEntryRetrieveParams < Increase::BaseModel + class BookkeepingEntryRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/bookkeeping_entry_set.rb b/lib/increase/models/bookkeeping_entry_set.rb index 7d40973e..41cd99f1 100644 --- a/lib/increase/models/bookkeeping_entry_set.rb +++ b/lib/increase/models/bookkeeping_entry_set.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::BookkeepingEntrySets#create - class BookkeepingEntrySet < Increase::BaseModel + class BookkeepingEntrySet < Increase::Internal::Type::BaseModel # @!attribute id # The entry set identifier. # @@ -26,7 +26,7 @@ class BookkeepingEntrySet < Increase::BaseModel # The entries. # # @return [Array] - required :entries, -> { Increase::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry] } + required :entries, -> { Increase::Internal::Type::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry] } # @!attribute idempotency_key # The idempotency key you chose for this object. This value is unique across @@ -65,9 +65,9 @@ class BookkeepingEntrySet < Increase::BaseModel # # # def initialize(id:, created_at:, date:, entries:, idempotency_key:, transaction_id:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # @!attribute id # The entry identifier. # @@ -93,7 +93,7 @@ class Entry < Increase::BaseModel # # # def initialize(id:, account_id:, amount:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -101,7 +101,7 @@ class Entry < Increase::BaseModel # # @see Increase::Models::BookkeepingEntrySet#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_ENTRY_SET = :bookkeeping_entry_set diff --git a/lib/increase/models/bookkeeping_entry_set_create_params.rb b/lib/increase/models/bookkeeping_entry_set_create_params.rb index d43ce3a9..0cd4117d 100644 --- a/lib/increase/models/bookkeeping_entry_set_create_params.rb +++ b/lib/increase/models/bookkeeping_entry_set_create_params.rb @@ -3,16 +3,17 @@ module Increase module Models # @see Increase::Resources::BookkeepingEntrySets#create - class BookkeepingEntrySetCreateParams < Increase::BaseModel + class BookkeepingEntrySetCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute entries # The bookkeeping entries. # # @return [Array] - required :entries, -> { Increase::ArrayOf[Increase::Models::BookkeepingEntrySetCreateParams::Entry] } + required :entries, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::BookkeepingEntrySetCreateParams::Entry] } # @!attribute [r] date # The date of the transaction. Optional if `transaction_id` is provided, in which @@ -43,9 +44,9 @@ class BookkeepingEntrySetCreateParams < Increase::BaseModel # # # def initialize(entries:, date: nil, transaction_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # @!attribute account_id # The identifier for the Bookkeeping Account impacted by this entry. # @@ -66,7 +67,7 @@ class Entry < Increase::BaseModel # # # def initialize(account_id:, amount:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/bookkeeping_entry_set_list_params.rb b/lib/increase/models/bookkeeping_entry_set_list_params.rb index ffea10fc..d6ff34f9 100644 --- a/lib/increase/models/bookkeeping_entry_set_list_params.rb +++ b/lib/increase/models/bookkeeping_entry_set_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::BookkeepingEntrySets#list - class BookkeepingEntrySetListParams < Increase::BaseModel + class BookkeepingEntrySetListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -61,7 +61,7 @@ class BookkeepingEntrySetListParams < Increase::BaseModel # # # def initialize(cursor: nil, idempotency_key: nil, limit: nil, transaction_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb b/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb index 1758c200..0c81d2b7 100644 --- a/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb +++ b/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::BookkeepingEntrySets#retrieve - class BookkeepingEntrySetRetrieveParams < Increase::BaseModel + class BookkeepingEntrySetRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card.rb b/lib/increase/models/card.rb index 3fb85e56..b8bc428c 100644 --- a/lib/increase/models/card.rb +++ b/lib/increase/models/card.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Cards#create - class Card < Increase::BaseModel + class Card < Increase::Internal::Type::BaseModel # @!attribute id # The card identifier. # @@ -127,10 +127,10 @@ class Card < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Card#billing_address - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel # @!attribute city # The city of the billing address. # @@ -172,11 +172,11 @@ class BillingAddress < Increase::BaseModel # # # def initialize(city:, line1:, line2:, postal_code:, state:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Card#digital_wallet - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel # @!attribute digital_card_profile_id # The digital card profile assigned to this digital card. Card profiles may also # be assigned at the program level. @@ -209,14 +209,14 @@ class DigitalWallet < Increase::BaseModel # # # def initialize(digital_card_profile_id:, email:, phone:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # This indicates if payments can be made with the card. # # @see Increase::Models::Card#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is active. ACTIVE = :active @@ -239,7 +239,7 @@ module Status # # @see Increase::Models::Card#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD = :card diff --git a/lib/increase/models/card_create_params.rb b/lib/increase/models/card_create_params.rb index 6c04e113..5e2d6044 100644 --- a/lib/increase/models/card_create_params.rb +++ b/lib/increase/models/card_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Cards#create - class CardCreateParams < Increase::BaseModel + class CardCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The Account the card should belong to. @@ -79,9 +79,9 @@ class CardCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel # @!attribute city # The city of the billing address. # @@ -127,10 +127,10 @@ class BillingAddress < Increase::BaseModel # # # def initialize(city:, line1:, postal_code:, state:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel # @!attribute [r] digital_card_profile_id # The digital card profile assigned to this digital card. # @@ -176,7 +176,7 @@ class DigitalWallet < Increase::BaseModel # # # def initialize(digital_card_profile_id: nil, email: nil, phone: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_details.rb b/lib/increase/models/card_details.rb index f4b63b99..c85a2102 100644 --- a/lib/increase/models/card_details.rb +++ b/lib/increase/models/card_details.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Cards#details - class CardDetails < Increase::BaseModel + class CardDetails < Increase::Internal::Type::BaseModel # @!attribute card_id # The identifier for the Card for which sensitive details have been returned. # @@ -55,14 +55,14 @@ class CardDetails < Increase::BaseModel # # # def initialize(card_id:, expiration_month:, expiration_year:, primary_account_number:, type:, verification_code:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `card_details`. # # @see Increase::Models::CardDetails#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_DETAILS = :card_details diff --git a/lib/increase/models/card_details_params.rb b/lib/increase/models/card_details_params.rb index f85201ec..9c5bca99 100644 --- a/lib/increase/models/card_details_params.rb +++ b/lib/increase/models/card_details_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Cards#details - class CardDetailsParams < Increase::BaseModel + class CardDetailsParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_dispute.rb b/lib/increase/models/card_dispute.rb index fa18fbab..f20fbf19 100644 --- a/lib/increase/models/card_dispute.rb +++ b/lib/increase/models/card_dispute.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::CardDisputes#create - class CardDispute < Increase::BaseModel + class CardDispute < Increase::Internal::Type::BaseModel # @!attribute id # The Card Dispute identifier. # @@ -119,10 +119,10 @@ class CardDispute < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardDispute#acceptance - class Acceptance < Increase::BaseModel + class Acceptance < Increase::Internal::Type::BaseModel # @!attribute accepted_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Card Dispute was accepted. @@ -153,11 +153,11 @@ class Acceptance < Increase::BaseModel # # # def initialize(accepted_at:, card_dispute_id:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CardDispute#loss - class Loss < Increase::BaseModel + class Loss < Increase::Internal::Type::BaseModel # @!attribute card_dispute_id # The identifier of the Card Dispute that was lost. # @@ -195,11 +195,11 @@ class Loss < Increase::BaseModel # # # def initialize(card_dispute_id:, explanation:, lost_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CardDispute#rejection - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel # @!attribute card_dispute_id # The identifier of the Card Dispute that was rejected. # @@ -229,14 +229,14 @@ class Rejection < Increase::BaseModel # # # def initialize(card_dispute_id:, explanation:, rejected_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The results of the Dispute investigation. # # @see Increase::Models::CardDispute#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Dispute is pending review. PENDING_REVIEWING = :pending_reviewing @@ -268,7 +268,7 @@ module Status # # @see Increase::Models::CardDispute#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_DISPUTE = :card_dispute @@ -280,7 +280,7 @@ module Type end # @see Increase::Models::CardDispute#win - class Win < Increase::BaseModel + class Win < Increase::Internal::Type::BaseModel # @!attribute card_dispute_id # The identifier of the Card Dispute that was won. # @@ -303,7 +303,7 @@ class Win < Increase::BaseModel # # # def initialize(card_dispute_id:, won_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_dispute_create_params.rb b/lib/increase/models/card_dispute_create_params.rb index 8a94d1c0..cb08e5d4 100644 --- a/lib/increase/models/card_dispute_create_params.rb +++ b/lib/increase/models/card_dispute_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CardDisputes#create - class CardDisputeCreateParams < Increase::BaseModel + class CardDisputeCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute disputed_transaction_id # The Transaction you wish to dispute. This Transaction must have a `source_type` @@ -42,7 +42,7 @@ class CardDisputeCreateParams < Increase::BaseModel # # # def initialize(disputed_transaction_id:, explanation:, amount: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_dispute_list_params.rb b/lib/increase/models/card_dispute_list_params.rb index 71d33ea0..7c5c2bc5 100644 --- a/lib/increase/models/card_dispute_list_params.rb +++ b/lib/increase/models/card_dispute_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CardDisputes#list - class CardDisputeListParams < Increase::BaseModel + class CardDisputeListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -70,9 +70,9 @@ class CardDisputeListParams < Increase::BaseModel # # # def initialize(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -125,10 +125,10 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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 @@ -136,7 +136,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::CardDisputeListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::CardDisputeListParams::Status::In] }, api_name: :in # @!parse @@ -148,10 +148,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Dispute is pending review. PENDING_REVIEWING = :pending_reviewing diff --git a/lib/increase/models/card_dispute_retrieve_params.rb b/lib/increase/models/card_dispute_retrieve_params.rb index 50c05d7b..6aa0b612 100644 --- a/lib/increase/models/card_dispute_retrieve_params.rb +++ b/lib/increase/models/card_dispute_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::CardDisputes#retrieve - class CardDisputeRetrieveParams < Increase::BaseModel + class CardDisputeRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_list_params.rb b/lib/increase/models/card_list_params.rb index 19f4e7ec..8b856fdf 100644 --- a/lib/increase/models/card_list_params.rb +++ b/lib/increase/models/card_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Cards#list - class CardListParams < Increase::BaseModel + class CardListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Cards to ones belonging to the specified Account. @@ -92,9 +92,9 @@ class CardListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -147,16 +147,18 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Cards by status. For GET requests, this should be encoded as a # comma-delimited string, such as `?in=one,two,three`. # # @return [Array, nil] - optional :in_, -> { Increase::ArrayOf[enum: Increase::Models::CardListParams::Status::In] }, api_name: :in + optional :in_, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::CardListParams::Status::In] }, + api_name: :in # @!parse # # @return [Array] @@ -167,10 +169,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is active. ACTIVE = :active diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index b25bd5fd..d1914d9a 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::CardPayments#retrieve - class CardPayment < Increase::BaseModel + class CardPayment < Increase::Internal::Type::BaseModel # @!attribute id # The Card Payment identifier. # @@ -39,7 +39,7 @@ class CardPayment < Increase::BaseModel # The interactions related to this card payment. # # @return [Array] - required :elements, -> { Increase::ArrayOf[Increase::Models::CardPayment::Element] } + required :elements, -> { Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element] } # @!attribute physical_card_id # The Physical Card identifier for this payment. @@ -89,9 +89,9 @@ class CardPayment < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Element < Increase::BaseModel + class Element < Increase::Internal::Type::BaseModel # @!attribute card_authentication # 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 @@ -204,7 +204,7 @@ class Element < Increase::BaseModel # contain an empty object, otherwise it will contain null. # # @return [Object, nil] - required :other, Increase::Unknown, nil?: true + required :other, Increase::Internal::Type::Unknown, nil?: true # @!parse # # @param card_authentication [Increase::Models::CardPayment::Element::CardAuthentication, nil] @@ -240,10 +240,10 @@ class Element < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element#card_authentication - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel # @!attribute id # The Card Authentication identifier. # @@ -406,13 +406,13 @@ class CardAuthentication < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The category of the card authentication attempt. # # @see Increase::Models::CardPayment::Element::CardAuthentication#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The authentication attempt is for a payment. PAYMENT_AUTHENTICATION = :payment_authentication @@ -428,13 +428,13 @@ module Category end # @see Increase::Models::CardPayment::Element::CardAuthentication#challenge - class Challenge < Increase::BaseModel + class Challenge < Increase::Internal::Type::BaseModel # @!attribute attempts # Details about the challenge verification attempts, if any happened. # # @return [Array] required :attempts, - -> { Increase::ArrayOf[Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt] } # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Card @@ -474,9 +474,9 @@ class Challenge < Increase::BaseModel # # # def initialize(attempts:, created_at:, one_time_code:, verification_method:, verification_value:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Attempt < Increase::BaseModel + class Attempt < Increase::Internal::Type::BaseModel # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time of the Card # Authentication Challenge Attempt. @@ -497,13 +497,13 @@ class Attempt < Increase::BaseModel # # # def initialize(created_at:, outcome:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The outcome of the Card Authentication Challenge Attempt. # # @see Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt#outcome module Outcome - extend Increase::Enum + extend Increase::Internal::Type::Enum # The attempt was successful. SUCCESSFUL = :successful @@ -523,7 +523,7 @@ module Outcome # # @see Increase::Models::CardPayment::Element::CardAuthentication::Challenge#verification_method module VerificationMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # The one-time code was sent via text message. TEXT_MESSAGE = :text_message @@ -546,7 +546,7 @@ module VerificationMethod # # @see Increase::Models::CardPayment::Element::CardAuthentication#deny_reason module DenyReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The group was locked. GROUP_LOCKED = :group_locked @@ -577,7 +577,7 @@ module DenyReason # # @see Increase::Models::CardPayment::Element::CardAuthentication#device_channel module DeviceChannel - extend Increase::Enum + extend Increase::Internal::Type::Enum # The authentication attempt was made from an app. APP = :app @@ -599,7 +599,7 @@ module DeviceChannel # # @see Increase::Models::CardPayment::Element::CardAuthentication#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The authentication attempt was denied. DENIED = :denied @@ -640,7 +640,7 @@ module Status # # @see Increase::Models::CardPayment::Element::CardAuthentication#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHENTICATION = :card_authentication @@ -653,7 +653,7 @@ module Type end # @see Increase::Models::CardPayment::Element#card_authorization - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # @!attribute id # The Card Authorization identifier. # @@ -902,14 +902,14 @@ class CardAuthorization < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. # # @see Increase::Models::CardPayment::Element::CardAuthorization#actioner module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER = :user @@ -932,7 +932,7 @@ module Actioner # # @see Increase::Models::CardPayment::Element::CardAuthorization#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -964,7 +964,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardAuthorization#direction module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT = :settlement @@ -980,7 +980,7 @@ module Direction end # @see Increase::Models::CardPayment::Element::CardAuthorization#network_details - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute category # The payment network used to process this card authorization. # @@ -1004,13 +1004,13 @@ class NetworkDetails < Increase::BaseModel # # # def initialize(category:, visa:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The payment network used to process this card authorization. # # @see Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -1023,7 +1023,7 @@ module Category end # @see Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails#visa - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # @!attribute electronic_commerce_indicator # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -1061,7 +1061,7 @@ class Visa < Increase::BaseModel # # # def initialize(electronic_commerce_indicator:, point_of_service_entry_mode:, stand_in_processing_reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -1069,7 +1069,7 @@ class Visa < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa#electronic_commerce_indicator module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER = :mail_phone_order @@ -1108,7 +1108,7 @@ module ElectronicCommerceIndicator # # @see Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa#point_of_service_entry_mode module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN = :unknown @@ -1152,7 +1152,7 @@ module PointOfServiceEntryMode # # @see Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa#stand_in_processing_reason module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR = :issuer_error @@ -1187,7 +1187,7 @@ module StandInProcessingReason end # @see Increase::Models::CardPayment::Element::CardAuthorization#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -1219,7 +1219,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The processing category describes the intent behind the authorization, such as @@ -1227,7 +1227,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardAuthorization#processing_category module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING = :account_funding @@ -1259,7 +1259,7 @@ module ProcessingCategory # # @see Increase::Models::CardPayment::Element::CardAuthorization#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHORIZATION = :card_authorization @@ -1271,7 +1271,7 @@ module Type end # @see Increase::Models::CardPayment::Element::CardAuthorization#verification - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # @!attribute card_verification_code # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -1296,10 +1296,10 @@ class Verification < Increase::BaseModel # # # def initialize(card_verification_code:, cardholder_address:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardAuthorization::Verification#card_verification_code - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # @!attribute result # The result of verifying the Card Verification Code. # @@ -1315,13 +1315,13 @@ class CardVerificationCode < Increase::BaseModel # # # def initialize(result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The result of verifying the Card Verification Code. # # @see Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED = :not_checked @@ -1341,7 +1341,7 @@ module Result end # @see Increase::Models::CardPayment::Element::CardAuthorization::Verification#cardholder_address - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # @!attribute actual_line1 # Line 1 of the address on file for the cardholder. # @@ -1386,13 +1386,13 @@ class CardholderAddress < Increase::BaseModel # # # def initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The address verification result returned to the card network. # # @see Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardholderAddress#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED = :not_checked @@ -1423,7 +1423,7 @@ module Result end # @see Increase::Models::CardPayment::Element#card_authorization_expiration - class CardAuthorizationExpiration < Increase::BaseModel + class CardAuthorizationExpiration < Increase::Internal::Type::BaseModel # @!attribute id # The Card Authorization Expiration identifier. # @@ -1480,14 +1480,14 @@ class CardAuthorizationExpiration < Increase::BaseModel # # # def initialize(id:, card_authorization_id:, currency:, expired_amount:, network:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's # currency. # # @see Increase::Models::CardPayment::Element::CardAuthorizationExpiration#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1518,7 +1518,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardAuthorizationExpiration#network module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -1535,7 +1535,7 @@ module Network # # @see Increase::Models::CardPayment::Element::CardAuthorizationExpiration#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHORIZATION_EXPIRATION = :card_authorization_expiration @@ -1548,7 +1548,7 @@ module Type end # @see Increase::Models::CardPayment::Element#card_decline - class CardDecline < Increase::BaseModel + class CardDecline < Increase::Internal::Type::BaseModel # @!attribute id # The Card Decline identifier. # @@ -1795,14 +1795,14 @@ class CardDecline < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. # # @see Increase::Models::CardPayment::Element::CardDecline#actioner module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER = :user @@ -1825,7 +1825,7 @@ module Actioner # # @see Increase::Models::CardPayment::Element::CardDecline#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1857,7 +1857,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardDecline#direction module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT = :settlement @@ -1873,7 +1873,7 @@ module Direction end # @see Increase::Models::CardPayment::Element::CardDecline#network_details - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute category # The payment network used to process this card authorization. # @@ -1897,13 +1897,13 @@ class NetworkDetails < Increase::BaseModel # # # def initialize(category:, visa:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The payment network used to process this card authorization. # # @see Increase::Models::CardPayment::Element::CardDecline::NetworkDetails#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -1916,7 +1916,7 @@ module Category end # @see Increase::Models::CardPayment::Element::CardDecline::NetworkDetails#visa - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # @!attribute electronic_commerce_indicator # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -1954,7 +1954,7 @@ class Visa < Increase::BaseModel # # # def initialize(electronic_commerce_indicator:, point_of_service_entry_mode:, stand_in_processing_reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -1962,7 +1962,7 @@ class Visa < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa#electronic_commerce_indicator module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER = :mail_phone_order @@ -2001,7 +2001,7 @@ module ElectronicCommerceIndicator # # @see Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa#point_of_service_entry_mode module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN = :unknown @@ -2045,7 +2045,7 @@ module PointOfServiceEntryMode # # @see Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa#stand_in_processing_reason module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR = :issuer_error @@ -2080,7 +2080,7 @@ module StandInProcessingReason end # @see Increase::Models::CardPayment::Element::CardDecline#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -2112,7 +2112,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The processing category describes the intent behind the authorization, such as @@ -2120,7 +2120,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardDecline#processing_category module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING = :account_funding @@ -2152,7 +2152,7 @@ module ProcessingCategory # # @see Increase::Models::CardPayment::Element::CardDecline#real_time_decision_reason module RealTimeDecisionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. INSUFFICIENT_FUNDS = :insufficient_funds @@ -2183,7 +2183,7 @@ module RealTimeDecisionReason # # @see Increase::Models::CardPayment::Element::CardDecline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account has been closed. ACCOUNT_CLOSED = :account_closed @@ -2244,7 +2244,7 @@ module Reason end # @see Increase::Models::CardPayment::Element::CardDecline#verification - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # @!attribute card_verification_code # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -2269,10 +2269,10 @@ class Verification < Increase::BaseModel # # # def initialize(card_verification_code:, cardholder_address:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardDecline::Verification#card_verification_code - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # @!attribute result # The result of verifying the Card Verification Code. # @@ -2288,13 +2288,13 @@ class CardVerificationCode < Increase::BaseModel # # # def initialize(result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The result of verifying the Card Verification Code. # # @see Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED = :not_checked @@ -2314,7 +2314,7 @@ module Result end # @see Increase::Models::CardPayment::Element::CardDecline::Verification#cardholder_address - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # @!attribute actual_line1 # Line 1 of the address on file for the cardholder. # @@ -2359,13 +2359,13 @@ class CardholderAddress < Increase::BaseModel # # # def initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The address verification result returned to the card network. # # @see Increase::Models::CardPayment::Element::CardDecline::Verification::CardholderAddress#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED = :not_checked @@ -2396,7 +2396,7 @@ module Result end # @see Increase::Models::CardPayment::Element#card_fuel_confirmation - class CardFuelConfirmation < Increase::BaseModel + class CardFuelConfirmation < Increase::Internal::Type::BaseModel # @!attribute id # The Card Fuel Confirmation identifier. # @@ -2479,14 +2479,14 @@ class CardFuelConfirmation < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the increment's # currency. # # @see Increase::Models::CardPayment::Element::CardFuelConfirmation#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -2517,7 +2517,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardFuelConfirmation#network module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -2530,7 +2530,7 @@ module Network end # @see Increase::Models::CardPayment::Element::CardFuelConfirmation#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -2562,7 +2562,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -2570,7 +2570,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardFuelConfirmation#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_FUEL_CONFIRMATION = :card_fuel_confirmation @@ -2583,7 +2583,7 @@ module Type end # @see Increase::Models::CardPayment::Element#card_increment - class CardIncrement < Increase::BaseModel + class CardIncrement < Increase::Internal::Type::BaseModel # @!attribute id # The Card Increment identifier. # @@ -2700,14 +2700,14 @@ class CardIncrement < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. # # @see Increase::Models::CardPayment::Element::CardIncrement#actioner module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER = :user @@ -2730,7 +2730,7 @@ module Actioner # # @see Increase::Models::CardPayment::Element::CardIncrement#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -2761,7 +2761,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardIncrement#network module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -2774,7 +2774,7 @@ module Network end # @see Increase::Models::CardPayment::Element::CardIncrement#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -2806,7 +2806,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -2814,7 +2814,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardIncrement#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_INCREMENT = :card_increment @@ -2827,7 +2827,7 @@ module Type end # @see Increase::Models::CardPayment::Element#card_refund - class CardRefund < Increase::BaseModel + class CardRefund < Increase::Internal::Type::BaseModel # @!attribute id # The Card Refund identifier. # @@ -3004,10 +3004,10 @@ class CardRefund < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardRefund#cashback - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # @!attribute amount # 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 @@ -3031,13 +3031,13 @@ class Cashback < Increase::BaseModel # # # def initialize(amount:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. # # @see Increase::Models::CardPayment::Element::CardRefund::Cashback#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -3070,7 +3070,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardRefund#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -3098,7 +3098,7 @@ module Currency end # @see Increase::Models::CardPayment::Element::CardRefund#interchange - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # @!attribute amount # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a @@ -3129,14 +3129,14 @@ class Interchange < Increase::BaseModel # # # def initialize(amount:, code:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. # # @see Increase::Models::CardPayment::Element::CardRefund::Interchange#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -3165,7 +3165,7 @@ module Currency end # @see Increase::Models::CardPayment::Element::CardRefund#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute acquirer_business_id # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -3195,11 +3195,11 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(acquirer_business_id:, acquirer_reference_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CardPayment::Element::CardRefund#purchase_details - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # @!attribute car_rental # Fields specific to car rentals. # @@ -3301,10 +3301,10 @@ class PurchaseDetails < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails#car_rental - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # @!attribute car_class_code # Code indicating the vehicle's class. # @@ -3455,13 +3455,13 @@ class CarRental < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (gas, late fee, etc.) being billed. # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::CarRental#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -3493,7 +3493,7 @@ module ExtraCharges # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::CarRental#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -3510,7 +3510,7 @@ module NoShowIndicator end # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails#lodging - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # @!attribute check_in_date # Date the customer checked in. # @@ -3660,13 +3660,13 @@ class Lodging < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (phone, late check-out, etc.) being billed. # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -3701,7 +3701,7 @@ module ExtraCharges # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -3721,7 +3721,7 @@ module NoShowIndicator # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails#purchase_identifier_format module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT = :free_text @@ -3746,7 +3746,7 @@ module PurchaseIdentifierFormat end # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails#travel - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # @!attribute ancillary # Ancillary purchases in addition to the airfare. # @@ -3826,7 +3826,7 @@ class Travel < Increase::BaseModel # # @return [Array, nil] required :trip_legs, - -> { Increase::ArrayOf[Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg] }, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg] }, nil?: true # @!parse @@ -3863,10 +3863,10 @@ class Travel < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel#ancillary - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # @!attribute connected_ticket_document_number # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the @@ -3894,7 +3894,7 @@ class Ancillary < Increase::BaseModel # # @return [Array] required :services, - -> { Increase::ArrayOf[Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -3922,13 +3922,13 @@ class Ancillary < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates the reason for a credit to the cardholder. # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -3951,7 +3951,7 @@ module CreditReasonIndicator # def self.values; end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # @!attribute category # Category of the ancillary service. # @@ -3972,13 +3972,13 @@ class Service < Increase::BaseModel # # # def initialize(category:, sub_category:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Category of the ancillary service. # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -4065,7 +4065,7 @@ module Category # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -4098,7 +4098,7 @@ module CreditReasonIndicator # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel#restricted_ticket_indicator module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS = :no_restrictions @@ -4117,7 +4117,7 @@ module RestrictedTicketIndicator # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel#ticket_change_indicator module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -4135,7 +4135,7 @@ module TicketChangeIndicator # def self.values; end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # @!attribute carrier_code # Carrier code (e.g., United Airlines, Jet Blue, etc.). # @@ -4194,13 +4194,13 @@ class TripLeg < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates whether a stopover is allowed on this ticket. # # @see Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg#stop_over_code module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -4226,7 +4226,7 @@ module StopOverCode # # @see Increase::Models::CardPayment::Element::CardRefund#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_REFUND = :card_refund @@ -4239,7 +4239,7 @@ module Type end # @see Increase::Models::CardPayment::Element#card_reversal - class CardReversal < Increase::BaseModel + class CardReversal < Increase::Internal::Type::BaseModel # @!attribute id # The Card Reversal identifier. # @@ -4407,14 +4407,14 @@ class CardReversal < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's # currency. # # @see Increase::Models::CardPayment::Element::CardReversal#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4445,7 +4445,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardReversal#network module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -4458,7 +4458,7 @@ module Network end # @see Increase::Models::CardPayment::Element::CardReversal#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -4490,14 +4490,14 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # Why this reversal was initiated. # # @see Increase::Models::CardPayment::Element::CardReversal#reversal_reason module ReversalReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Reversal was initiated at the customer's request. REVERSED_BY_CUSTOMER = :reversed_by_customer @@ -4523,7 +4523,7 @@ module ReversalReason # # @see Increase::Models::CardPayment::Element::CardReversal#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_REVERSAL = :card_reversal @@ -4536,7 +4536,7 @@ module Type end # @see Increase::Models::CardPayment::Element#card_settlement - class CardSettlement < Increase::BaseModel + class CardSettlement < Increase::Internal::Type::BaseModel # @!attribute id # The Card Settlement identifier. # @@ -4732,10 +4732,10 @@ class CardSettlement < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardSettlement#cashback - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # @!attribute amount # 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 @@ -4760,13 +4760,13 @@ class Cashback < Increase::BaseModel # # # def initialize(amount:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. # # @see Increase::Models::CardPayment::Element::CardSettlement::Cashback#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4799,7 +4799,7 @@ module Currency # # @see Increase::Models::CardPayment::Element::CardSettlement#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4827,7 +4827,7 @@ module Currency end # @see Increase::Models::CardPayment::Element::CardSettlement#interchange - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # @!attribute amount # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a @@ -4859,14 +4859,14 @@ class Interchange < Increase::BaseModel # # # def initialize(amount:, code:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. # # @see Increase::Models::CardPayment::Element::CardSettlement::Interchange#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4895,7 +4895,7 @@ module Currency end # @see Increase::Models::CardPayment::Element::CardSettlement#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute acquirer_business_id # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -4925,11 +4925,11 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(acquirer_business_id:, acquirer_reference_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CardPayment::Element::CardSettlement#purchase_details - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # @!attribute car_rental # Fields specific to car rentals. # @@ -5031,10 +5031,10 @@ class PurchaseDetails < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails#car_rental - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # @!attribute car_class_code # Code indicating the vehicle's class. # @@ -5185,13 +5185,13 @@ class CarRental < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (gas, late fee, etc.) being billed. # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::CarRental#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -5223,7 +5223,7 @@ module ExtraCharges # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::CarRental#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -5240,7 +5240,7 @@ module NoShowIndicator end # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails#lodging - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # @!attribute check_in_date # Date the customer checked in. # @@ -5390,13 +5390,13 @@ class Lodging < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (phone, late check-out, etc.) being billed. # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -5431,7 +5431,7 @@ module ExtraCharges # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -5451,7 +5451,7 @@ module NoShowIndicator # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails#purchase_identifier_format module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT = :free_text @@ -5476,7 +5476,7 @@ module PurchaseIdentifierFormat end # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails#travel - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # @!attribute ancillary # Ancillary purchases in addition to the airfare. # @@ -5556,7 +5556,7 @@ class Travel < Increase::BaseModel # # @return [Array, nil] required :trip_legs, - -> { Increase::ArrayOf[Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg] }, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg] }, nil?: true # @!parse @@ -5593,10 +5593,10 @@ class Travel < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel#ancillary - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # @!attribute connected_ticket_document_number # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the @@ -5624,7 +5624,7 @@ class Ancillary < Increase::BaseModel # # @return [Array] required :services, - -> { Increase::ArrayOf[Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -5652,13 +5652,13 @@ class Ancillary < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates the reason for a credit to the cardholder. # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -5681,7 +5681,7 @@ module CreditReasonIndicator # def self.values; end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # @!attribute category # Category of the ancillary service. # @@ -5702,13 +5702,13 @@ class Service < Increase::BaseModel # # # def initialize(category:, sub_category:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Category of the ancillary service. # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -5795,7 +5795,7 @@ module Category # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -5828,7 +5828,7 @@ module CreditReasonIndicator # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel#restricted_ticket_indicator module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS = :no_restrictions @@ -5847,7 +5847,7 @@ module RestrictedTicketIndicator # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel#ticket_change_indicator module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -5865,7 +5865,7 @@ module TicketChangeIndicator # def self.values; end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # @!attribute carrier_code # Carrier code (e.g., United Airlines, Jet Blue, etc.). # @@ -5924,13 +5924,13 @@ class TripLeg < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates whether a stopover is allowed on this ticket. # # @see Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg#stop_over_code module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -5956,7 +5956,7 @@ module StopOverCode # # @see Increase::Models::CardPayment::Element::CardSettlement#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_SETTLEMENT = :card_settlement @@ -5969,7 +5969,7 @@ module Type end # @see Increase::Models::CardPayment::Element#card_validation - class CardValidation < Increase::BaseModel + class CardValidation < Increase::Internal::Type::BaseModel # @!attribute id # The Card Validation identifier. # @@ -6155,14 +6155,14 @@ class CardValidation < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. # # @see Increase::Models::CardPayment::Element::CardValidation#actioner module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER = :user @@ -6185,7 +6185,7 @@ module Actioner # # @see Increase::Models::CardPayment::Element::CardValidation#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -6213,7 +6213,7 @@ module Currency end # @see Increase::Models::CardPayment::Element::CardValidation#network_details - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute category # The payment network used to process this card authorization. # @@ -6237,13 +6237,13 @@ class NetworkDetails < Increase::BaseModel # # # def initialize(category:, visa:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The payment network used to process this card authorization. # # @see Increase::Models::CardPayment::Element::CardValidation::NetworkDetails#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -6256,7 +6256,7 @@ module Category end # @see Increase::Models::CardPayment::Element::CardValidation::NetworkDetails#visa - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # @!attribute electronic_commerce_indicator # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -6294,7 +6294,7 @@ class Visa < Increase::BaseModel # # # def initialize(electronic_commerce_indicator:, point_of_service_entry_mode:, stand_in_processing_reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -6302,7 +6302,7 @@ class Visa < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa#electronic_commerce_indicator module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER = :mail_phone_order @@ -6341,7 +6341,7 @@ module ElectronicCommerceIndicator # # @see Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa#point_of_service_entry_mode module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN = :unknown @@ -6385,7 +6385,7 @@ module PointOfServiceEntryMode # # @see Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa#stand_in_processing_reason module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR = :issuer_error @@ -6420,7 +6420,7 @@ module StandInProcessingReason end # @see Increase::Models::CardPayment::Element::CardValidation#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -6452,7 +6452,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -6460,7 +6460,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::CardPayment::Element::CardValidation#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_VALIDATION = :card_validation @@ -6472,7 +6472,7 @@ module Type end # @see Increase::Models::CardPayment::Element::CardValidation#verification - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # @!attribute card_verification_code # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -6497,10 +6497,10 @@ class Verification < Increase::BaseModel # # # def initialize(card_verification_code:, cardholder_address:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPayment::Element::CardValidation::Verification#card_verification_code - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # @!attribute result # The result of verifying the Card Verification Code. # @@ -6516,13 +6516,13 @@ class CardVerificationCode < Increase::BaseModel # # # def initialize(result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The result of verifying the Card Verification Code. # # @see Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED = :not_checked @@ -6542,7 +6542,7 @@ module Result end # @see Increase::Models::CardPayment::Element::CardValidation::Verification#cardholder_address - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # @!attribute actual_line1 # Line 1 of the address on file for the cardholder. # @@ -6587,13 +6587,13 @@ class CardholderAddress < Increase::BaseModel # # # def initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The address verification result returned to the card network. # # @see Increase::Models::CardPayment::Element::CardValidation::Verification::CardholderAddress#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED = :not_checked @@ -6628,7 +6628,7 @@ module Result # # @see Increase::Models::CardPayment::Element#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Card Authorization: details will be under the `card_authorization` object. CARD_AUTHORIZATION = :card_authorization @@ -6672,7 +6672,7 @@ module Category end # @see Increase::Models::CardPayment#state - class State < Increase::BaseModel + class State < Increase::Internal::Type::BaseModel # @!attribute authorized_amount # The total authorized amount in the minor unit of the transaction's currency. For # dollars, for example, this is cents. @@ -6719,7 +6719,7 @@ class State < Increase::BaseModel # # # def initialize(authorized_amount:, fuel_confirmed_amount:, incremented_amount:, reversed_amount:, settled_amount:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -6727,7 +6727,7 @@ class State < Increase::BaseModel # # @see Increase::Models::CardPayment#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_PAYMENT = :card_payment diff --git a/lib/increase/models/card_payment_list_params.rb b/lib/increase/models/card_payment_list_params.rb index d60ae825..54c306a4 100644 --- a/lib/increase/models/card_payment_list_params.rb +++ b/lib/increase/models/card_payment_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CardPayments#list - class CardPaymentListParams < Increase::BaseModel + class CardPaymentListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Card Payments to ones belonging to the specified Account. @@ -68,9 +68,9 @@ class CardPaymentListParams < Increase::BaseModel # # # def initialize(account_id: nil, card_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -123,7 +123,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_payment_retrieve_params.rb b/lib/increase/models/card_payment_retrieve_params.rb index 5b2afc21..1a6b72dd 100644 --- a/lib/increase/models/card_payment_retrieve_params.rb +++ b/lib/increase/models/card_payment_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::CardPayments#retrieve - class CardPaymentRetrieveParams < Increase::BaseModel + class CardPaymentRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_purchase_supplement.rb b/lib/increase/models/card_purchase_supplement.rb index 97eeae68..569a7a6d 100644 --- a/lib/increase/models/card_purchase_supplement.rb +++ b/lib/increase/models/card_purchase_supplement.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::CardPurchaseSupplements#retrieve - class CardPurchaseSupplement < Increase::BaseModel + class CardPurchaseSupplement < Increase::Internal::Type::BaseModel # @!attribute id # The Card Purchase Supplement identifier. # @@ -27,7 +27,7 @@ class CardPurchaseSupplement < Increase::BaseModel # # @return [Array, nil] required :line_items, - -> { Increase::ArrayOf[Increase::Models::CardPurchaseSupplement::LineItem] }, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::CardPurchaseSupplement::LineItem] }, nil?: true # @!attribute transaction_id @@ -56,10 +56,10 @@ class CardPurchaseSupplement < Increase::BaseModel # # # def initialize(id:, card_payment_id:, invoice:, line_items:, transaction_id:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CardPurchaseSupplement#invoice - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel # @!attribute discount_amount # Discount given to cardholder. # @@ -204,13 +204,13 @@ class Invoice < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates how the merchant applied the discount. # # @see Increase::Models::CardPurchaseSupplement::Invoice#discount_treatment_code module DiscountTreatmentCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # No invoice level discount provided NO_INVOICE_LEVEL_DISCOUNT_PROVIDED = :no_invoice_level_discount_provided @@ -232,7 +232,7 @@ module DiscountTreatmentCode # # @see Increase::Models::CardPurchaseSupplement::Invoice#tax_treatments module TaxTreatments - extend Increase::Enum + extend Increase::Internal::Type::Enum # No tax applies NO_TAX_APPLIES = :no_tax_applies @@ -257,7 +257,7 @@ module TaxTreatments end end - class LineItem < Increase::BaseModel + class LineItem < Increase::Internal::Type::BaseModel # @!attribute id # The Card Purchase Supplement Line Item identifier. # @@ -408,13 +408,13 @@ class LineItem < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates the type of line item. # # @see Increase::Models::CardPurchaseSupplement::LineItem#detail_indicator module DetailIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Normal NORMAL = :normal @@ -436,7 +436,7 @@ module DetailIndicator # # @see Increase::Models::CardPurchaseSupplement::LineItem#discount_treatment_code module DiscountTreatmentCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # No line item level discount provided NO_LINE_ITEM_LEVEL_DISCOUNT_PROVIDED = :no_line_item_level_discount_provided @@ -460,7 +460,7 @@ module DiscountTreatmentCode # # @see Increase::Models::CardPurchaseSupplement#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_PURCHASE_SUPPLEMENT = :card_purchase_supplement diff --git a/lib/increase/models/card_purchase_supplement_list_params.rb b/lib/increase/models/card_purchase_supplement_list_params.rb index 28366f13..741806f7 100644 --- a/lib/increase/models/card_purchase_supplement_list_params.rb +++ b/lib/increase/models/card_purchase_supplement_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CardPurchaseSupplements#list - class CardPurchaseSupplementListParams < Increase::BaseModel + class CardPurchaseSupplementListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] card_payment_id # Filter Card Purchase Supplements to ones belonging to the specified Card @@ -58,9 +58,9 @@ class CardPurchaseSupplementListParams < Increase::BaseModel # # # def initialize(card_payment_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -113,7 +113,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_purchase_supplement_retrieve_params.rb b/lib/increase/models/card_purchase_supplement_retrieve_params.rb index 0760ffcf..11db06cc 100644 --- a/lib/increase/models/card_purchase_supplement_retrieve_params.rb +++ b/lib/increase/models/card_purchase_supplement_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::CardPurchaseSupplements#retrieve - class CardPurchaseSupplementRetrieveParams < Increase::BaseModel + class CardPurchaseSupplementRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_retrieve_params.rb b/lib/increase/models/card_retrieve_params.rb index c30e3c68..52cad2c1 100644 --- a/lib/increase/models/card_retrieve_params.rb +++ b/lib/increase/models/card_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Cards#retrieve - class CardRetrieveParams < Increase::BaseModel + class CardRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/card_update_params.rb b/lib/increase/models/card_update_params.rb index b90138bd..da2c7fc9 100644 --- a/lib/increase/models/card_update_params.rb +++ b/lib/increase/models/card_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Cards#update - class CardUpdateParams < Increase::BaseModel + class CardUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] billing_address # The card's updated billing address. @@ -81,9 +81,9 @@ class CardUpdateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel # @!attribute city # The city of the billing address. # @@ -129,10 +129,10 @@ class BillingAddress < Increase::BaseModel # # # def initialize(city:, line1:, postal_code:, state:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel # @!attribute [r] digital_card_profile_id # The digital card profile assigned to this digital card. # @@ -176,12 +176,12 @@ class DigitalWallet < Increase::BaseModel # # # def initialize(digital_card_profile_id: nil, email: nil, phone: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The status to update the Card with. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is active. ACTIVE = :active diff --git a/lib/increase/models/check_deposit.rb b/lib/increase/models/check_deposit.rb index 78cb9c29..a482e04e 100644 --- a/lib/increase/models/check_deposit.rb +++ b/lib/increase/models/check_deposit.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::CheckDeposits#create - class CheckDeposit < Increase::BaseModel + class CheckDeposit < Increase::Internal::Type::BaseModel # @!attribute id # The deposit's identifier. # @@ -169,10 +169,10 @@ class CheckDeposit < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CheckDeposit#deposit_acceptance - class DepositAcceptance < Increase::BaseModel + class DepositAcceptance < Increase::Internal::Type::BaseModel # @!attribute account_number # The account number printed on the check. # @@ -244,14 +244,14 @@ class DepositAcceptance < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. # # @see Increase::Models::CheckDeposit::DepositAcceptance#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -280,7 +280,7 @@ module Currency end # @see Increase::Models::CheckDeposit#deposit_rejection - class DepositRejection < Increase::BaseModel + class DepositRejection < Increase::Internal::Type::BaseModel # @!attribute amount # The rejected amount in the minor unit of check's currency. For dollars, for # example, this is cents. @@ -333,14 +333,14 @@ class DepositRejection < Increase::BaseModel # # # def initialize(amount:, check_deposit_id:, currency:, declined_transaction_id:, reason:, rejected_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's # currency. # # @see Increase::Models::CheckDeposit::DepositRejection#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -371,7 +371,7 @@ module Currency # # @see Increase::Models::CheckDeposit::DepositRejection#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check's image is incomplete. INCOMPLETE_IMAGE = :incomplete_image @@ -415,7 +415,7 @@ module Reason end # @see Increase::Models::CheckDeposit#deposit_return - class DepositReturn < Increase::BaseModel + class DepositReturn < Increase::Internal::Type::BaseModel # @!attribute amount # The returned amount in USD cents. # @@ -469,14 +469,14 @@ class DepositReturn < Increase::BaseModel # # # def initialize(amount:, check_deposit_id:, currency:, return_reason:, returned_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. # # @see Increase::Models::CheckDeposit::DepositReturn#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -508,7 +508,7 @@ module Currency # # @see Increase::Models::CheckDeposit::DepositReturn#return_reason module ReturnReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check doesn't allow ACH conversion. ACH_CONVERSION_NOT_SUPPORTED = :ach_conversion_not_supported @@ -597,7 +597,7 @@ module ReturnReason end # @see Increase::Models::CheckDeposit#deposit_submission - class DepositSubmission < Increase::BaseModel + class DepositSubmission < Increase::Internal::Type::BaseModel # @!attribute back_file_id # The ID for the File containing the check back image that was submitted to the # Check21 network. @@ -630,11 +630,11 @@ class DepositSubmission < Increase::BaseModel # # # def initialize(back_file_id:, front_file_id:, submitted_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckDeposit#inbound_funds_hold - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel # @!attribute id # The Inbound Funds Hold identifier. # @@ -731,14 +731,14 @@ class InboundFundsHold < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. # # @see Increase::Models::CheckDeposit::InboundFundsHold#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -769,7 +769,7 @@ module Currency # # @see Increase::Models::CheckDeposit::InboundFundsHold#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD = :held @@ -789,7 +789,7 @@ module Status # # @see Increase::Models::CheckDeposit::InboundFundsHold#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD = :inbound_funds_hold @@ -805,7 +805,7 @@ module Type # # @see Increase::Models::CheckDeposit#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Check Deposit is pending review. PENDING = :pending @@ -831,7 +831,7 @@ module Status # # @see Increase::Models::CheckDeposit#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_DEPOSIT = :check_deposit diff --git a/lib/increase/models/check_deposit_create_params.rb b/lib/increase/models/check_deposit_create_params.rb index cf1fd3d2..9e490eee 100644 --- a/lib/increase/models/check_deposit_create_params.rb +++ b/lib/increase/models/check_deposit_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CheckDeposits#create - class CheckDepositCreateParams < Increase::BaseModel + class CheckDepositCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier for the Account to deposit the check in. @@ -52,7 +52,7 @@ class CheckDepositCreateParams < Increase::BaseModel # # # def initialize(account_id:, amount:, back_image_file_id:, front_image_file_id:, description: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/check_deposit_list_params.rb b/lib/increase/models/check_deposit_list_params.rb index 9f73ddcf..28be6d50 100644 --- a/lib/increase/models/check_deposit_list_params.rb +++ b/lib/increase/models/check_deposit_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CheckDeposits#list - class CheckDepositListParams < Increase::BaseModel + class CheckDepositListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Check Deposits to those belonging to the specified Account. @@ -71,9 +71,9 @@ class CheckDepositListParams < Increase::BaseModel # # # def initialize(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -126,7 +126,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/check_deposit_retrieve_params.rb b/lib/increase/models/check_deposit_retrieve_params.rb index b9044a68..91700e68 100644 --- a/lib/increase/models/check_deposit_retrieve_params.rb +++ b/lib/increase/models/check_deposit_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::CheckDeposits#retrieve - class CheckDepositRetrieveParams < Increase::BaseModel + class CheckDepositRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/check_transfer.rb b/lib/increase/models/check_transfer.rb index 409a98a2..c4b9c239 100644 --- a/lib/increase/models/check_transfer.rb +++ b/lib/increase/models/check_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::CheckTransfers#create - class CheckTransfer < Increase::BaseModel + class CheckTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The Check transfer's identifier. # @@ -215,10 +215,10 @@ class CheckTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CheckTransfer#approval - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # @!attribute approved_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -242,11 +242,11 @@ class Approval < Increase::BaseModel # # # def initialize(approved_at:, approved_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckTransfer#cancellation - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # @!attribute canceled_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -270,11 +270,11 @@ class Cancellation < Increase::BaseModel # # # def initialize(canceled_at:, canceled_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckTransfer#created_by - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # @!attribute api_key # If present, details about the API key that created the transfer. # @@ -311,10 +311,10 @@ class CreatedBy < Increase::BaseModel # # # def initialize(api_key:, category:, oauth_application:, user:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CheckTransfer::CreatedBy#api_key - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # @!attribute description # The description set for the API key when it was created. # @@ -328,14 +328,14 @@ class APIKey < Increase::BaseModel # # # def initialize(description:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The type of object that created this transfer. # # @see Increase::Models::CheckTransfer::CreatedBy#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY = :api_key @@ -354,7 +354,7 @@ module Category end # @see Increase::Models::CheckTransfer::CreatedBy#oauth_application - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name # The name of the OAuth Application. # @@ -368,11 +368,11 @@ class OAuthApplication < Increase::BaseModel # # # def initialize(name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckTransfer::CreatedBy#user - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # @!attribute email # The email address of the User. # @@ -386,7 +386,7 @@ class User < Increase::BaseModel # # # def initialize(email:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -395,7 +395,7 @@ class User < Increase::BaseModel # # @see Increase::Models::CheckTransfer#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -426,7 +426,7 @@ module Currency # # @see Increase::Models::CheckTransfer#fulfillment_method module FulfillmentMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase will print and mail a physical check. PHYSICAL_CHECK = :physical_check @@ -442,7 +442,7 @@ module FulfillmentMethod end # @see Increase::Models::CheckTransfer#mailing - class Mailing < Increase::BaseModel + class Mailing < Increase::Internal::Type::BaseModel # @!attribute image_id # The ID of the file corresponding to an image of the check that was mailed, if # available. @@ -473,11 +473,11 @@ class Mailing < Increase::BaseModel # # # def initialize(image_id:, mailed_at:, tracking_number:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckTransfer#physical_check - class PhysicalCheck < Increase::BaseModel + class PhysicalCheck < Increase::Internal::Type::BaseModel # @!attribute mailing_address # Details for where Increase will mail the check. # @@ -528,7 +528,7 @@ class PhysicalCheck < Increase::BaseModel # # @return [Array] required :tracking_updates, - -> { Increase::ArrayOf[Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate] } # @!parse # # Details relating to the physical check that Increase will print and mail. Will @@ -557,10 +557,10 @@ class PhysicalCheck < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CheckTransfer::PhysicalCheck#mailing_address - class MailingAddress < Increase::BaseModel + class MailingAddress < Increase::Internal::Type::BaseModel # @!attribute city # The city of the check's destination. # @@ -609,11 +609,11 @@ class MailingAddress < Increase::BaseModel # # # def initialize(city:, line1:, line2:, name:, postal_code:, state:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckTransfer::PhysicalCheck#return_address - class ReturnAddress < Increase::BaseModel + class ReturnAddress < Increase::Internal::Type::BaseModel # @!attribute city # The city of the check's destination. # @@ -662,14 +662,14 @@ class ReturnAddress < Increase::BaseModel # # # def initialize(city:, line1:, line2:, name:, postal_code:, state:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The shipping method for the check. # # @see Increase::Models::CheckTransfer::PhysicalCheck#shipping_method module ShippingMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # USPS First Class USPS_FIRST_CLASS = :usps_first_class @@ -684,7 +684,7 @@ module ShippingMethod # def self.values; end end - class TrackingUpdate < Increase::BaseModel + class TrackingUpdate < Increase::Internal::Type::BaseModel # @!attribute category # The type of tracking event. # @@ -711,13 +711,13 @@ class TrackingUpdate < Increase::BaseModel # # # def initialize(category:, created_at:, postal_code:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of tracking event. # # @see Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check is in transit. IN_TRANSIT = :in_transit @@ -744,7 +744,7 @@ module Category # # @see Increase::Models::CheckTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is awaiting approval. PENDING_APPROVAL = :pending_approval @@ -784,7 +784,7 @@ module Status end # @see Increase::Models::CheckTransfer#stop_payment_request - class StopPaymentRequest < Increase::BaseModel + class StopPaymentRequest < Increase::Internal::Type::BaseModel # @!attribute reason # The reason why this transfer was stopped. # @@ -821,13 +821,13 @@ class StopPaymentRequest < Increase::BaseModel # # # def initialize(reason:, requested_at:, transfer_id:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason why this transfer was stopped. # # @see Increase::Models::CheckTransfer::StopPaymentRequest#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check could not be delivered. MAIL_DELIVERY_FAILED = :mail_delivery_failed @@ -853,7 +853,7 @@ module Reason # # @see Increase::Models::CheckTransfer::StopPaymentRequest#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_TRANSFER_STOP_PAYMENT_REQUEST = :check_transfer_stop_payment_request @@ -866,7 +866,7 @@ module Type end # @see Increase::Models::CheckTransfer#submission - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # @!attribute submitted_at # When this check transfer was submitted to our check printer. # @@ -880,11 +880,11 @@ class Submission < Increase::BaseModel # # # def initialize(submitted_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckTransfer#third_party - class ThirdParty < Increase::BaseModel + class ThirdParty < Increase::Internal::Type::BaseModel # @!attribute check_number # The check number that you will print on the check. # @@ -906,7 +906,7 @@ class ThirdParty < Increase::BaseModel # # # def initialize(check_number:, recipient_name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -914,7 +914,7 @@ class ThirdParty < Increase::BaseModel # # @see Increase::Models::CheckTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_TRANSFER = :check_transfer diff --git a/lib/increase/models/check_transfer_approve_params.rb b/lib/increase/models/check_transfer_approve_params.rb index 8d9ae461..9ea79407 100644 --- a/lib/increase/models/check_transfer_approve_params.rb +++ b/lib/increase/models/check_transfer_approve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::CheckTransfers#approve - class CheckTransferApproveParams < Increase::BaseModel + class CheckTransferApproveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/check_transfer_cancel_params.rb b/lib/increase/models/check_transfer_cancel_params.rb index 4a61e846..3cd524f4 100644 --- a/lib/increase/models/check_transfer_cancel_params.rb +++ b/lib/increase/models/check_transfer_cancel_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::CheckTransfers#cancel - class CheckTransferCancelParams < Increase::BaseModel + class CheckTransferCancelParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/check_transfer_create_params.rb b/lib/increase/models/check_transfer_create_params.rb index 36e2cd11..fb61ab37 100644 --- a/lib/increase/models/check_transfer_create_params.rb +++ b/lib/increase/models/check_transfer_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CheckTransfers#create - class CheckTransferCreateParams < Increase::BaseModel + class CheckTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier for the account that will send the transfer. @@ -49,7 +49,7 @@ class CheckTransferCreateParams < Increase::BaseModel # Whether the transfer requires explicit approval via the dashboard or API. # # @return [Boolean, nil] - optional :require_approval, Increase::BooleanModel + optional :require_approval, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -91,11 +91,11 @@ class CheckTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether Increase will print and mail the check or if you will do it yourself. module FulfillmentMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase will print and mail a physical check. PHYSICAL_CHECK = :physical_check @@ -110,7 +110,7 @@ module FulfillmentMethod # def self.values; end end - class PhysicalCheck < Increase::BaseModel + class PhysicalCheck < Increase::Internal::Type::BaseModel # @!attribute mailing_address # Details for where Increase will mail the check. # @@ -201,10 +201,10 @@ class PhysicalCheck < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::CheckTransferCreateParams::PhysicalCheck#mailing_address - class MailingAddress < Increase::BaseModel + class MailingAddress < Increase::Internal::Type::BaseModel # @!attribute city # The city component of the check's destination address. # @@ -250,11 +250,11 @@ class MailingAddress < Increase::BaseModel # # # def initialize(city:, line1:, postal_code:, state:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::CheckTransferCreateParams::PhysicalCheck#return_address - class ReturnAddress < Increase::BaseModel + class ReturnAddress < Increase::Internal::Type::BaseModel # @!attribute city # The city of the return address. # @@ -309,11 +309,11 @@ class ReturnAddress < Increase::BaseModel # # # def initialize(city:, line1:, name:, postal_code:, state:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end - class ThirdParty < Increase::BaseModel + class ThirdParty < Increase::Internal::Type::BaseModel # @!attribute [r] check_number # The check number you will print on the check. This should not contain leading # zeroes. If this is omitted, Increase will generate a check number for you; you @@ -348,7 +348,7 @@ class ThirdParty < Increase::BaseModel # # # def initialize(check_number: nil, recipient_name: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/check_transfer_list_params.rb b/lib/increase/models/check_transfer_list_params.rb index 98fa084d..8a45022a 100644 --- a/lib/increase/models/check_transfer_list_params.rb +++ b/lib/increase/models/check_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CheckTransfers#list - class CheckTransferListParams < Increase::BaseModel + class CheckTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Check Transfers to those that originated from the specified Account. @@ -92,9 +92,9 @@ class CheckTransferListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -147,10 +147,10 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Check Transfers to those that have the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -158,7 +158,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::CheckTransferListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::CheckTransferListParams::Status::In] }, api_name: :in # @!parse @@ -170,10 +170,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is awaiting approval. PENDING_APPROVAL = :pending_approval diff --git a/lib/increase/models/check_transfer_retrieve_params.rb b/lib/increase/models/check_transfer_retrieve_params.rb index fa8fb131..83824902 100644 --- a/lib/increase/models/check_transfer_retrieve_params.rb +++ b/lib/increase/models/check_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::CheckTransfers#retrieve - class CheckTransferRetrieveParams < Increase::BaseModel + class CheckTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/check_transfer_stop_payment_params.rb b/lib/increase/models/check_transfer_stop_payment_params.rb index 3e7d6c1b..c2894cfe 100644 --- a/lib/increase/models/check_transfer_stop_payment_params.rb +++ b/lib/increase/models/check_transfer_stop_payment_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::CheckTransfers#stop_payment - class CheckTransferStopPaymentParams < Increase::BaseModel + class CheckTransferStopPaymentParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] reason # The reason why this transfer should be stopped. @@ -24,11 +24,11 @@ class CheckTransferStopPaymentParams < Increase::BaseModel # # # def initialize(reason: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason why this transfer should be stopped. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check could not be delivered. MAIL_DELIVERY_FAILED = :mail_delivery_failed diff --git a/lib/increase/models/declined_transaction.rb b/lib/increase/models/declined_transaction.rb index b2b64550..3bbf30a4 100644 --- a/lib/increase/models/declined_transaction.rb +++ b/lib/increase/models/declined_transaction.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::DeclinedTransactions#retrieve - class DeclinedTransaction < Increase::BaseModel + class DeclinedTransaction < Increase::Internal::Type::BaseModel # @!attribute id # The Declined Transaction identifier. # @@ -106,7 +106,7 @@ class DeclinedTransaction < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined # Transaction's currency. This will match the currency on the Declined @@ -114,7 +114,7 @@ class DeclinedTransaction < Increase::BaseModel # # @see Increase::Models::DeclinedTransaction#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -145,7 +145,7 @@ module Currency # # @see Increase::Models::DeclinedTransaction#route_type module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An Account Number. ACCOUNT_NUMBER = :account_number @@ -164,7 +164,7 @@ module RouteType end # @see Increase::Models::DeclinedTransaction#source - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel # @!attribute ach_decline # An ACH Decline object. This field will be present in the JSON response if and # only if `category` is equal to `ach_decline`. @@ -217,7 +217,7 @@ class Source < Increase::BaseModel # contain an empty object, otherwise it will contain null. # # @return [Object, nil] - required :other, Increase::Unknown, nil?: true + required :other, Increase::Internal::Type::Unknown, nil?: true # @!attribute wire_decline # A Wire Decline object. This field will be present in the JSON response if and @@ -256,10 +256,10 @@ class Source < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::DeclinedTransaction::Source#ach_decline - class ACHDecline < Increase::BaseModel + class ACHDecline < Increase::Internal::Type::BaseModel # @!attribute id # The ACH Decline's identifier. # @@ -368,13 +368,13 @@ class ACHDecline < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Why the ACH transfer was declined. # # @see Increase::Models::DeclinedTransaction::Source::ACHDecline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACH_ROUTE_CANCELED = :ach_route_canceled @@ -441,7 +441,7 @@ module Reason # # @see Increase::Models::DeclinedTransaction::Source::ACHDecline#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH_DECLINE = :ach_decline @@ -454,7 +454,7 @@ module Type end # @see Increase::Models::DeclinedTransaction::Source#card_decline - class CardDecline < Increase::BaseModel + class CardDecline < Increase::Internal::Type::BaseModel # @!attribute id # The Card Decline identifier. # @@ -702,14 +702,14 @@ class CardDecline < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. # # @see Increase::Models::DeclinedTransaction::Source::CardDecline#actioner module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER = :user @@ -732,7 +732,7 @@ module Actioner # # @see Increase::Models::DeclinedTransaction::Source::CardDecline#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -764,7 +764,7 @@ module Currency # # @see Increase::Models::DeclinedTransaction::Source::CardDecline#direction module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT = :settlement @@ -780,7 +780,7 @@ module Direction end # @see Increase::Models::DeclinedTransaction::Source::CardDecline#network_details - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute category # The payment network used to process this card authorization. # @@ -804,13 +804,13 @@ class NetworkDetails < Increase::BaseModel # # # def initialize(category:, visa:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The payment network used to process this card authorization. # # @see Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -823,7 +823,7 @@ module Category end # @see Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails#visa - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # @!attribute electronic_commerce_indicator # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -861,7 +861,7 @@ class Visa < Increase::BaseModel # # # def initialize(electronic_commerce_indicator:, point_of_service_entry_mode:, stand_in_processing_reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -869,7 +869,7 @@ class Visa < Increase::BaseModel # # @see Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa#electronic_commerce_indicator module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER = :mail_phone_order @@ -908,7 +908,7 @@ module ElectronicCommerceIndicator # # @see Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa#point_of_service_entry_mode module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN = :unknown @@ -952,7 +952,7 @@ module PointOfServiceEntryMode # # @see Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa#stand_in_processing_reason module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR = :issuer_error @@ -987,7 +987,7 @@ module StandInProcessingReason end # @see Increase::Models::DeclinedTransaction::Source::CardDecline#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -1019,7 +1019,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The processing category describes the intent behind the authorization, such as @@ -1027,7 +1027,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::DeclinedTransaction::Source::CardDecline#processing_category module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING = :account_funding @@ -1059,7 +1059,7 @@ module ProcessingCategory # # @see Increase::Models::DeclinedTransaction::Source::CardDecline#real_time_decision_reason module RealTimeDecisionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. INSUFFICIENT_FUNDS = :insufficient_funds @@ -1090,7 +1090,7 @@ module RealTimeDecisionReason # # @see Increase::Models::DeclinedTransaction::Source::CardDecline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account has been closed. ACCOUNT_CLOSED = :account_closed @@ -1151,7 +1151,7 @@ module Reason end # @see Increase::Models::DeclinedTransaction::Source::CardDecline#verification - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # @!attribute card_verification_code # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -1176,10 +1176,10 @@ class Verification < Increase::BaseModel # # # def initialize(card_verification_code:, cardholder_address:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::DeclinedTransaction::Source::CardDecline::Verification#card_verification_code - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # @!attribute result # The result of verifying the Card Verification Code. # @@ -1195,13 +1195,13 @@ class CardVerificationCode < Increase::BaseModel # # # def initialize(result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The result of verifying the Card Verification Code. # # @see Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED = :not_checked @@ -1221,7 +1221,7 @@ module Result end # @see Increase::Models::DeclinedTransaction::Source::CardDecline::Verification#cardholder_address - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # @!attribute actual_line1 # Line 1 of the address on file for the cardholder. # @@ -1266,13 +1266,13 @@ class CardholderAddress < Increase::BaseModel # # # def initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The address verification result returned to the card network. # # @see Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED = :not_checked @@ -1307,7 +1307,7 @@ module Result # # @see Increase::Models::DeclinedTransaction::Source#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Decline: details will be under the `ach_decline` object. ACH_DECLINE = :ach_decline @@ -1338,7 +1338,7 @@ module Category end # @see Increase::Models::DeclinedTransaction::Source#check_decline - class CheckDecline < Increase::BaseModel + class CheckDecline < Increase::Internal::Type::BaseModel # @!attribute amount # The declined amount in USD cents. # @@ -1410,13 +1410,13 @@ class CheckDecline < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Why the check was declined. # # @see Increase::Models::DeclinedTransaction::Source::CheckDecline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is disabled. ACH_ROUTE_DISABLED = :ach_route_disabled @@ -1478,7 +1478,7 @@ module Reason end # @see Increase::Models::DeclinedTransaction::Source#check_deposit_rejection - class CheckDepositRejection < Increase::BaseModel + class CheckDepositRejection < Increase::Internal::Type::BaseModel # @!attribute amount # The rejected amount in the minor unit of check's currency. For dollars, for # example, this is cents. @@ -1533,14 +1533,14 @@ class CheckDepositRejection < Increase::BaseModel # # # def initialize(amount:, check_deposit_id:, currency:, declined_transaction_id:, reason:, rejected_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's # currency. # # @see Increase::Models::DeclinedTransaction::Source::CheckDepositRejection#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1571,7 +1571,7 @@ module Currency # # @see Increase::Models::DeclinedTransaction::Source::CheckDepositRejection#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check's image is incomplete. INCOMPLETE_IMAGE = :incomplete_image @@ -1615,7 +1615,7 @@ module Reason end # @see Increase::Models::DeclinedTransaction::Source#inbound_real_time_payments_transfer_decline - class InboundRealTimePaymentsTransferDecline < Increase::BaseModel + class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel # @!attribute amount # The declined amount in the minor unit of the destination account currency. For # dollars, for example, this is cents. @@ -1713,7 +1713,7 @@ class InboundRealTimePaymentsTransferDecline < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined # transfer's currency. This will always be "USD" for a Real-Time Payments @@ -1721,7 +1721,7 @@ class InboundRealTimePaymentsTransferDecline < Increase::BaseModel # # @see Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1752,7 +1752,7 @@ module Currency # # @see Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED = :account_number_canceled @@ -1781,7 +1781,7 @@ module Reason end # @see Increase::Models::DeclinedTransaction::Source#wire_decline - class WireDecline < Increase::BaseModel + class WireDecline < Increase::Internal::Type::BaseModel # @!attribute inbound_wire_transfer_id # The identifier of the Inbound Wire Transfer that was declined. # @@ -1803,13 +1803,13 @@ class WireDecline < Increase::BaseModel # # # def initialize(inbound_wire_transfer_id:, reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Why the wire transfer was declined. # # @see Increase::Models::DeclinedTransaction::Source::WireDecline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED = :account_number_canceled @@ -1843,7 +1843,7 @@ module Reason # # @see Increase::Models::DeclinedTransaction#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DECLINED_TRANSACTION = :declined_transaction diff --git a/lib/increase/models/declined_transaction_list_params.rb b/lib/increase/models/declined_transaction_list_params.rb index ecfeee6d..a4a2efbd 100644 --- a/lib/increase/models/declined_transaction_list_params.rb +++ b/lib/increase/models/declined_transaction_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::DeclinedTransactions#list - class DeclinedTransactionListParams < Increase::BaseModel + class DeclinedTransactionListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Declined Transactions to ones belonging to the specified Account. @@ -89,16 +89,16 @@ class DeclinedTransactionListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::DeclinedTransactionListParams::Category::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::DeclinedTransactionListParams::Category::In] }, api_name: :in # @!parse @@ -110,10 +110,10 @@ class Category < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Decline: details will be under the `ach_decline` object. ACH_DECLINE = :ach_decline @@ -144,7 +144,7 @@ module In end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -197,7 +197,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/declined_transaction_retrieve_params.rb b/lib/increase/models/declined_transaction_retrieve_params.rb index a6ae043b..0fdbf7d1 100644 --- a/lib/increase/models/declined_transaction_retrieve_params.rb +++ b/lib/increase/models/declined_transaction_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::DeclinedTransactions#retrieve - class DeclinedTransactionRetrieveParams < Increase::BaseModel + class DeclinedTransactionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/digital_card_profile.rb b/lib/increase/models/digital_card_profile.rb index 1a6446ab..96afb4ed 100644 --- a/lib/increase/models/digital_card_profile.rb +++ b/lib/increase/models/digital_card_profile.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::DigitalCardProfiles#create - class DigitalCardProfile < Increase::BaseModel + class DigitalCardProfile < Increase::Internal::Type::BaseModel # @!attribute id # The Card Profile identifier. # @@ -132,13 +132,13 @@ class DigitalCardProfile < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status of the Card Profile. # # @see Increase::Models::DigitalCardProfile#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile is awaiting review from Increase and/or processing by card networks. PENDING = :pending @@ -160,7 +160,7 @@ module Status end # @see Increase::Models::DigitalCardProfile#text_color - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel # @!attribute blue # The value of the blue channel in the RGB color. # @@ -188,7 +188,7 @@ class TextColor < Increase::BaseModel # # # def initialize(blue:, green:, red:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -196,7 +196,7 @@ class TextColor < Increase::BaseModel # # @see Increase::Models::DigitalCardProfile#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DIGITAL_CARD_PROFILE = :digital_card_profile diff --git a/lib/increase/models/digital_card_profile_archive_params.rb b/lib/increase/models/digital_card_profile_archive_params.rb index 54bf79fe..738c4e52 100644 --- a/lib/increase/models/digital_card_profile_archive_params.rb +++ b/lib/increase/models/digital_card_profile_archive_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::DigitalCardProfiles#archive - class DigitalCardProfileArchiveParams < Increase::BaseModel + class DigitalCardProfileArchiveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/digital_card_profile_clone_params.rb b/lib/increase/models/digital_card_profile_clone_params.rb index 256cebe6..92f59857 100644 --- a/lib/increase/models/digital_card_profile_clone_params.rb +++ b/lib/increase/models/digital_card_profile_clone_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::DigitalCardProfiles#clone_ - class DigitalCardProfileCloneParams < Increase::BaseModel + class DigitalCardProfileCloneParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] app_icon_file_id # The identifier of the File containing the card's icon image. @@ -126,9 +126,9 @@ class DigitalCardProfileCloneParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel # @!attribute blue # The value of the blue channel in the RGB color. # @@ -156,7 +156,7 @@ class TextColor < Increase::BaseModel # # # def initialize(blue:, green:, red:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/digital_card_profile_create_params.rb b/lib/increase/models/digital_card_profile_create_params.rb index 0a3faea0..ec37141f 100644 --- a/lib/increase/models/digital_card_profile_create_params.rb +++ b/lib/increase/models/digital_card_profile_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::DigitalCardProfiles#create - class DigitalCardProfileCreateParams < Increase::BaseModel + class DigitalCardProfileCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute app_icon_file_id # The identifier of the File containing the card's icon image. @@ -106,9 +106,9 @@ class DigitalCardProfileCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel # @!attribute blue # The value of the blue channel in the RGB color. # @@ -136,7 +136,7 @@ class TextColor < Increase::BaseModel # # # def initialize(blue:, green:, red:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/digital_card_profile_list_params.rb b/lib/increase/models/digital_card_profile_list_params.rb index 86bd674e..7f18e437 100644 --- a/lib/increase/models/digital_card_profile_list_params.rb +++ b/lib/increase/models/digital_card_profile_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::DigitalCardProfiles#list - class DigitalCardProfileListParams < Increase::BaseModel + class DigitalCardProfileListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -60,9 +60,9 @@ class DigitalCardProfileListParams < Increase::BaseModel # # # def initialize(cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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 @@ -70,7 +70,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::DigitalCardProfileListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::DigitalCardProfileListParams::Status::In] }, api_name: :in # @!parse @@ -82,10 +82,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile is awaiting review from Increase and/or processing by card networks. PENDING = :pending diff --git a/lib/increase/models/digital_card_profile_retrieve_params.rb b/lib/increase/models/digital_card_profile_retrieve_params.rb index ff407799..943bfa48 100644 --- a/lib/increase/models/digital_card_profile_retrieve_params.rb +++ b/lib/increase/models/digital_card_profile_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::DigitalCardProfiles#retrieve - class DigitalCardProfileRetrieveParams < Increase::BaseModel + class DigitalCardProfileRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/digital_wallet_token.rb b/lib/increase/models/digital_wallet_token.rb index 3e2bc747..0b5b7f12 100644 --- a/lib/increase/models/digital_wallet_token.rb +++ b/lib/increase/models/digital_wallet_token.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::DigitalWalletTokens#retrieve - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel # @!attribute id # The Digital Wallet Token identifier. # @@ -58,7 +58,7 @@ class DigitalWalletToken < Increase::BaseModel # Updates to the Digital Wallet Token. # # @return [Array] - required :updates, -> { Increase::ArrayOf[Increase::Models::DigitalWalletToken::Update] } + required :updates, -> { Increase::Internal::Type::ArrayOf[Increase::Models::DigitalWalletToken::Update] } # @!parse # # A Digital Wallet Token is created when a user adds a Card to their Apple Pay or @@ -77,10 +77,10 @@ class DigitalWalletToken < Increase::BaseModel # # # def initialize(id:, card_id:, cardholder:, created_at:, device:, status:, token_requestor:, type:, updates:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::DigitalWalletToken#cardholder - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel # @!attribute name # Name of the cardholder, for example "John Smith". # @@ -94,11 +94,11 @@ class Cardholder < Increase::BaseModel # # # def initialize(name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::DigitalWalletToken#device - class Device < Increase::BaseModel + class Device < Increase::Internal::Type::BaseModel # @!attribute device_type # Device type. # @@ -133,13 +133,13 @@ class Device < Increase::BaseModel # # # def initialize(device_type:, identifier:, ip_address:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Device type. # # @see Increase::Models::DigitalWalletToken::Device#device_type module DeviceType - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN = :unknown @@ -180,7 +180,7 @@ module DeviceType # # @see Increase::Models::DigitalWalletToken#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The digital wallet token is active. ACTIVE = :active @@ -205,7 +205,7 @@ module Status # # @see Increase::Models::DigitalWalletToken#token_requestor module TokenRequestor - extend Increase::Enum + extend Increase::Internal::Type::Enum # Apple Pay APPLE_PAY = :apple_pay @@ -231,7 +231,7 @@ module TokenRequestor # # @see Increase::Models::DigitalWalletToken#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DIGITAL_WALLET_TOKEN = :digital_wallet_token @@ -242,7 +242,7 @@ module Type # def self.values; end end - class Update < Increase::BaseModel + class Update < Increase::Internal::Type::BaseModel # @!attribute status # The status the update changed this Digital Wallet Token to. # @@ -262,13 +262,13 @@ class Update < Increase::BaseModel # # # def initialize(status:, timestamp:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status the update changed this Digital Wallet Token to. # # @see Increase::Models::DigitalWalletToken::Update#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The digital wallet token is active. ACTIVE = :active diff --git a/lib/increase/models/digital_wallet_token_list_params.rb b/lib/increase/models/digital_wallet_token_list_params.rb index b2681f9b..25d5e485 100644 --- a/lib/increase/models/digital_wallet_token_list_params.rb +++ b/lib/increase/models/digital_wallet_token_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::DigitalWalletTokens#list - class DigitalWalletTokenListParams < Increase::BaseModel + class DigitalWalletTokenListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] card_id # Filter Digital Wallet Tokens to ones belonging to the specified Card. @@ -57,9 +57,9 @@ class DigitalWalletTokenListParams < Increase::BaseModel # # # def initialize(card_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -112,7 +112,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/digital_wallet_token_retrieve_params.rb b/lib/increase/models/digital_wallet_token_retrieve_params.rb index d5c2bbca..22354122 100644 --- a/lib/increase/models/digital_wallet_token_retrieve_params.rb +++ b/lib/increase/models/digital_wallet_token_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::DigitalWalletTokens#retrieve - class DigitalWalletTokenRetrieveParams < Increase::BaseModel + class DigitalWalletTokenRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/document.rb b/lib/increase/models/document.rb index e757c8ec..5a9957c0 100644 --- a/lib/increase/models/document.rb +++ b/lib/increase/models/document.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Documents#retrieve - class Document < Increase::BaseModel + class Document < Increase::Internal::Type::BaseModel # @!attribute id # The Document identifier. # @@ -55,13 +55,13 @@ class Document < Increase::BaseModel # # # def initialize(id:, category:, created_at:, entity_id:, file_id:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of document. # # @see Increase::Models::Document#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Internal Revenue Service Form 1099-INT. FORM_1099_INT = :form_1099_int @@ -87,7 +87,7 @@ module Category # # @see Increase::Models::Document#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DOCUMENT = :document diff --git a/lib/increase/models/document_list_params.rb b/lib/increase/models/document_list_params.rb index 9f2aad19..ced128a8 100644 --- a/lib/increase/models/document_list_params.rb +++ b/lib/increase/models/document_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Documents#list - class DocumentListParams < Increase::BaseModel + class DocumentListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] category # @@ -67,9 +67,9 @@ class DocumentListParams < Increase::BaseModel # # # def initialize(category: nil, created_at: nil, cursor: nil, entity_id: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Documents for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -77,7 +77,7 @@ class Category < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::DocumentListParams::Category::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::DocumentListParams::Category::In] }, api_name: :in # @!parse @@ -89,10 +89,10 @@ class Category < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Internal Revenue Service Form 1099-INT. FORM_1099_INT = :form_1099_int @@ -114,7 +114,7 @@ module In end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -167,7 +167,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/document_retrieve_params.rb b/lib/increase/models/document_retrieve_params.rb index b9e0d49d..9faf91ff 100644 --- a/lib/increase/models/document_retrieve_params.rb +++ b/lib/increase/models/document_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Documents#retrieve - class DocumentRetrieveParams < Increase::BaseModel + class DocumentRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity.rb b/lib/increase/models/entity.rb index 14a22b74..25ed497d 100644 --- a/lib/increase/models/entity.rb +++ b/lib/increase/models/entity.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Entities#create - class Entity < Increase::BaseModel + class Entity < Increase::Internal::Type::BaseModel # @!attribute id # The entity's identifier. # @@ -83,7 +83,8 @@ class Entity < Increase::BaseModel # the GET /entity_supplemental_documents list endpoint to retrieve them. # # @return [Array] - required :supplemental_documents, -> { Increase::ArrayOf[Increase::Models::EntitySupplementalDocument] } + required :supplemental_documents, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument] } # @!attribute third_party_verification # A reference to data stored in a third-party verification service. Your @@ -146,10 +147,10 @@ class Entity < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity#corporation - class Corporation < Increase::BaseModel + class Corporation < Increase::Internal::Type::BaseModel # @!attribute address # The corporation's address. # @@ -162,7 +163,7 @@ class Corporation < Increase::BaseModel # # @return [Array] required :beneficial_owners, - -> { Increase::ArrayOf[Increase::Models::Entity::Corporation::BeneficialOwner] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Entity::Corporation::BeneficialOwner] } # @!attribute incorporation_state # The two-letter United States Postal Service (USPS) abbreviation for the @@ -210,10 +211,10 @@ class Corporation < Increase::BaseModel # # # def initialize(address:, beneficial_owners:, incorporation_state:, industry_code:, name:, tax_identifier:, website:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Corporation#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -256,10 +257,10 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel # @!attribute beneficial_owner_id # The identifier of this beneficial owner. # @@ -292,10 +293,10 @@ class BeneficialOwner < Increase::BaseModel # # # def initialize(beneficial_owner_id:, company_title:, individual:, prong:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Corporation::BeneficialOwner#individual - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # @!attribute address # The person's address. # @@ -331,10 +332,10 @@ class Individual < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Corporation::BeneficialOwner::Individual#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city, district, town, or village of the address. # @@ -384,11 +385,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, country:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Entity::Corporation::BeneficialOwner::Individual#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -412,13 +413,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number_last4:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -448,7 +449,7 @@ module Method # # @see Increase::Models::Entity::Corporation::BeneficialOwner#prong module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum # A person with 25% or greater direct or indirect ownership of the entity. OWNERSHIP = :ownership @@ -466,7 +467,7 @@ module Prong end # @see Increase::Models::Entity#government_authority - class GovernmentAuthority < Increase::BaseModel + class GovernmentAuthority < Increase::Internal::Type::BaseModel # @!attribute address # The government authority's address. # @@ -478,7 +479,7 @@ class GovernmentAuthority < Increase::BaseModel # # @return [Array] required :authorized_persons, - -> { Increase::ArrayOf[Increase::Models::Entity::GovernmentAuthority::AuthorizedPerson] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Entity::GovernmentAuthority::AuthorizedPerson] } # @!attribute category # The category of the government authority. @@ -517,10 +518,10 @@ class GovernmentAuthority < Increase::BaseModel # # # def initialize(address:, authorized_persons:, category:, name:, tax_identifier:, website:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::GovernmentAuthority#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -563,10 +564,10 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class AuthorizedPerson < Increase::BaseModel + class AuthorizedPerson < Increase::Internal::Type::BaseModel # @!attribute authorized_person_id # The identifier of this authorized person. # @@ -585,14 +586,14 @@ class AuthorizedPerson < Increase::BaseModel # # # def initialize(authorized_person_id:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The category of the government authority. # # @see Increase::Models::Entity::GovernmentAuthority#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Public Entity is a Municipality. MUNICIPALITY = :municipality @@ -606,12 +607,13 @@ module Category end # @see Increase::Models::Entity#joint - class Joint < Increase::BaseModel + class Joint < Increase::Internal::Type::BaseModel # @!attribute individuals # The two individuals that share control of the entity. # # @return [Array] - required :individuals, -> { Increase::ArrayOf[Increase::Models::Entity::Joint::Individual] } + required :individuals, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Entity::Joint::Individual] } # @!attribute name # The entity's name. @@ -627,9 +629,9 @@ class Joint < Increase::BaseModel # # # def initialize(individuals:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # @!attribute address # The person's address. # @@ -662,10 +664,10 @@ class Individual < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Joint::Individual#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -708,11 +710,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Entity::Joint::Individual#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -736,13 +738,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number_last4:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::Entity::Joint::Individual::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -770,7 +772,7 @@ module Method end # @see Increase::Models::Entity#natural_person - class NaturalPerson < Increase::BaseModel + class NaturalPerson < Increase::Internal::Type::BaseModel # @!attribute address # The person's address. # @@ -806,10 +808,10 @@ class NaturalPerson < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::NaturalPerson#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -852,11 +854,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Entity::NaturalPerson#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -880,13 +882,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number_last4:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::Entity::NaturalPerson::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -916,7 +918,7 @@ module Method # # @see Increase::Models::Entity#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The entity is active. ACTIVE = :active @@ -938,7 +940,7 @@ module Status # # @see Increase::Models::Entity#structure module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # A corporation. CORPORATION = :corporation @@ -963,7 +965,7 @@ module Structure end # @see Increase::Models::Entity#third_party_verification - class ThirdPartyVerification < Increase::BaseModel + class ThirdPartyVerification < Increase::Internal::Type::BaseModel # @!attribute reference # The reference identifier for the third party verification. # @@ -985,13 +987,13 @@ class ThirdPartyVerification < Increase::BaseModel # # # def initialize(reference:, vendor:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The vendor that was used to perform the verification. # # @see Increase::Models::Entity::ThirdPartyVerification#vendor module Vendor - extend Increase::Enum + extend Increase::Internal::Type::Enum # Alloy. See https://alloy.com for more information. ALLOY = :alloy @@ -1008,7 +1010,7 @@ module Vendor end # @see Increase::Models::Entity#trust - class Trust < Increase::BaseModel + class Trust < Increase::Internal::Type::BaseModel # @!attribute address # The trust's address. # @@ -1056,7 +1058,7 @@ class Trust < Increase::BaseModel # The trustees of the trust. # # @return [Array] - required :trustees, -> { Increase::ArrayOf[Increase::Models::Entity::Trust::Trustee] } + required :trustees, -> { Increase::Internal::Type::ArrayOf[Increase::Models::Entity::Trust::Trustee] } # @!parse # # Details of the trust entity. Will be present if `structure` is equal to `trust`. @@ -1084,10 +1086,10 @@ class Trust < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Trust#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -1130,14 +1132,14 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # Whether the trust is `revocable` or `irrevocable`. # # @see Increase::Models::Entity::Trust#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trust is revocable by the grantor. REVOCABLE = :revocable @@ -1153,7 +1155,7 @@ module Category end # @see Increase::Models::Entity::Trust#grantor - class Grantor < Increase::BaseModel + class Grantor < Increase::Internal::Type::BaseModel # @!attribute address # The person's address. # @@ -1188,10 +1190,10 @@ class Grantor < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Trust::Grantor#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -1234,11 +1236,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Entity::Trust::Grantor#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -1262,13 +1264,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number_last4:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::Entity::Trust::Grantor::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -1294,7 +1296,7 @@ module Method end end - class Trustee < Increase::BaseModel + class Trustee < Increase::Internal::Type::BaseModel # @!attribute individual # The individual trustee of the trust. Will be present if the trustee's # `structure` is equal to `individual`. @@ -1314,10 +1316,10 @@ class Trustee < Increase::BaseModel # # # def initialize(individual:, structure:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Trust::Trustee#individual - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # @!attribute address # The person's address. # @@ -1353,10 +1355,10 @@ class Individual < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Entity::Trust::Trustee::Individual#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -1399,11 +1401,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, state:, zip:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Entity::Trust::Trustee::Individual#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -1427,13 +1429,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number_last4:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::Entity::Trust::Trustee::Individual::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -1463,7 +1465,7 @@ module Method # # @see Increase::Models::Entity::Trust::Trustee#structure module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trustee is an individual. INDIVIDUAL = :individual @@ -1482,7 +1484,7 @@ module Structure # # @see Increase::Models::Entity#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ENTITY = :entity diff --git a/lib/increase/models/entity_archive_beneficial_owner_params.rb b/lib/increase/models/entity_archive_beneficial_owner_params.rb index 96f26015..629c49af 100644 --- a/lib/increase/models/entity_archive_beneficial_owner_params.rb +++ b/lib/increase/models/entity_archive_beneficial_owner_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#archive_beneficial_owner - class EntityArchiveBeneficialOwnerParams < Increase::BaseModel + class EntityArchiveBeneficialOwnerParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute beneficial_owner_id # The identifying details of anyone controlling or owning 25% or more of the @@ -21,7 +21,7 @@ class EntityArchiveBeneficialOwnerParams < Increase::BaseModel # # # def initialize(beneficial_owner_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity_archive_params.rb b/lib/increase/models/entity_archive_params.rb index e6f4a742..6465227a 100644 --- a/lib/increase/models/entity_archive_params.rb +++ b/lib/increase/models/entity_archive_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Entities#archive - class EntityArchiveParams < Increase::BaseModel + class EntityArchiveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity_confirm_params.rb b/lib/increase/models/entity_confirm_params.rb index 29e58587..42ad6030 100644 --- a/lib/increase/models/entity_confirm_params.rb +++ b/lib/increase/models/entity_confirm_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#confirm - class EntityConfirmParams < Increase::BaseModel + class EntityConfirmParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] confirmed_at # When your user confirmed the Entity's details. If not provided, the current time @@ -25,7 +25,7 @@ class EntityConfirmParams < Increase::BaseModel # # # def initialize(confirmed_at: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity_create_beneficial_owner_params.rb b/lib/increase/models/entity_create_beneficial_owner_params.rb index a85d6693..f1a75a4b 100644 --- a/lib/increase/models/entity_create_beneficial_owner_params.rb +++ b/lib/increase/models/entity_create_beneficial_owner_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#create_beneficial_owner - class EntityCreateBeneficialOwnerParams < Increase::BaseModel + class EntityCreateBeneficialOwnerParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute beneficial_owner # The identifying details of anyone controlling or owning 25% or more of the @@ -21,9 +21,9 @@ class EntityCreateBeneficialOwnerParams < Increase::BaseModel # # # def initialize(beneficial_owner:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel # @!attribute individual # Personal details for the beneficial owner. # @@ -38,7 +38,7 @@ class BeneficialOwner < Increase::BaseModel # # @return [Array] required :prongs, - -> { Increase::ArrayOf[enum: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong] } + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong] } # @!attribute [r] company_title # This person's role or title within the entity. @@ -60,10 +60,10 @@ class BeneficialOwner < Increase::BaseModel # # # def initialize(individual:, prongs:, company_title: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner#individual - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # @!attribute address # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -98,7 +98,7 @@ class Individual < Increase::BaseModel # Number). # # @return [Boolean, nil] - optional :confirmed_no_us_tax_id, Increase::BooleanModel + optional :confirmed_no_us_tax_id, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -115,10 +115,10 @@ class Individual < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, confirmed_no_us_tax_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute country # The two-letter ISO 3166-1 alpha-2 code for the country of the address. # @@ -186,11 +186,11 @@ class Address < Increase::BaseModel # # # def initialize(country:, line1:, city: nil, line2: nil, state: nil, zip: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -253,13 +253,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -284,7 +284,7 @@ module Method end # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification#drivers_license - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # @!attribute expiration_date # The driver's license's expiration date in YYYY-MM-DD format. # @@ -324,11 +324,11 @@ class DriversLicense < Increase::BaseModel # # # def initialize(expiration_date:, file_id:, state:, back_file_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification#other - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # @!attribute country # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -381,11 +381,11 @@ class Other < Increase::BaseModel # # # def initialize(country:, description:, file_id:, back_file_id: nil, expiration_date: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification#passport - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # @!attribute country # The country that issued the passport. # @@ -414,13 +414,13 @@ class Passport < Increase::BaseModel # # # def initialize(country:, expiration_date:, file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum # A person with 25% or greater direct or indirect ownership of the entity. OWNERSHIP = :ownership diff --git a/lib/increase/models/entity_create_params.rb b/lib/increase/models/entity_create_params.rb index 51ec8914..a2c08964 100644 --- a/lib/increase/models/entity_create_params.rb +++ b/lib/increase/models/entity_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#create - class EntityCreateParams < Increase::BaseModel + class EntityCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute structure # The type of Entity to create. @@ -75,7 +75,7 @@ class EntityCreateParams < Increase::BaseModel # # @return [Array, nil] optional :supplemental_documents, - -> { Increase::ArrayOf[Increase::Models::EntityCreateParams::SupplementalDocument] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::EntityCreateParams::SupplementalDocument] } # @!parse # # @return [Array] @@ -131,11 +131,11 @@ class EntityCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of Entity to create. module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # A corporation. CORPORATION = :corporation @@ -159,7 +159,7 @@ module Structure # def self.values; end end - class Corporation < Increase::BaseModel + class Corporation < Increase::Internal::Type::BaseModel # @!attribute address # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. @@ -173,7 +173,7 @@ class Corporation < Increase::BaseModel # # @return [Array] required :beneficial_owners, - -> { Increase::ArrayOf[Increase::Models::EntityCreateParams::Corporation::BeneficialOwner] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::EntityCreateParams::Corporation::BeneficialOwner] } # @!attribute name # The legal name of the corporation. @@ -246,10 +246,10 @@ class Corporation < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::Corporation#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -297,10 +297,10 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel # @!attribute individual # Personal details for the beneficial owner. # @@ -315,7 +315,7 @@ class BeneficialOwner < Increase::BaseModel # # @return [Array] required :prongs, - -> { Increase::ArrayOf[enum: Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Prong] } + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Prong] } # @!attribute [r] company_title # This person's role or title within the entity. @@ -334,10 +334,10 @@ class BeneficialOwner < Increase::BaseModel # # # def initialize(individual:, prongs:, company_title: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner#individual - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # @!attribute address # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -372,7 +372,7 @@ class Individual < Increase::BaseModel # Number). # # @return [Boolean, nil] - optional :confirmed_no_us_tax_id, Increase::BooleanModel + optional :confirmed_no_us_tax_id, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -389,10 +389,10 @@ class Individual < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, confirmed_no_us_tax_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute country # The two-letter ISO 3166-1 alpha-2 code for the country of the address. # @@ -460,11 +460,11 @@ class Address < Increase::BaseModel # # # def initialize(country:, line1:, city: nil, line2: nil, state: nil, zip: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -527,13 +527,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -558,7 +558,7 @@ module Method end # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification#drivers_license - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # @!attribute expiration_date # The driver's license's expiration date in YYYY-MM-DD format. # @@ -598,11 +598,11 @@ class DriversLicense < Increase::BaseModel # # # def initialize(expiration_date:, file_id:, state:, back_file_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification#other - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # @!attribute country # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -655,11 +655,11 @@ class Other < Increase::BaseModel # # # def initialize(country:, description:, file_id:, back_file_id: nil, expiration_date: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification#passport - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # @!attribute country # The country that issued the passport. # @@ -688,13 +688,13 @@ class Passport < Increase::BaseModel # # # def initialize(country:, expiration_date:, file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum # A person with 25% or greater direct or indirect ownership of the entity. OWNERSHIP = :ownership @@ -711,7 +711,7 @@ module Prong end end - class GovernmentAuthority < Increase::BaseModel + class GovernmentAuthority < Increase::Internal::Type::BaseModel # @!attribute address # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. @@ -724,7 +724,7 @@ class GovernmentAuthority < Increase::BaseModel # # @return [Array] required :authorized_persons, - -> { Increase::ArrayOf[Increase::Models::EntityCreateParams::GovernmentAuthority::AuthorizedPerson] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::EntityCreateParams::GovernmentAuthority::AuthorizedPerson] } # @!attribute category # The category of the government authority. @@ -767,10 +767,10 @@ class GovernmentAuthority < Increase::BaseModel # # # def initialize(address:, authorized_persons:, category:, name:, tax_identifier:, website: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::GovernmentAuthority#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -818,10 +818,10 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class AuthorizedPerson < Increase::BaseModel + class AuthorizedPerson < Increase::Internal::Type::BaseModel # @!attribute name # The person's legal name. # @@ -833,14 +833,14 @@ class AuthorizedPerson < Increase::BaseModel # # # def initialize(name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The category of the government authority. # # @see Increase::Models::EntityCreateParams::GovernmentAuthority#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Public Entity is a Municipality. MUNICIPALITY = :municipality @@ -853,12 +853,13 @@ module Category end end - class Joint < Increase::BaseModel + class Joint < Increase::Internal::Type::BaseModel # @!attribute individuals # The two individuals that share control of the entity. # # @return [Array] - required :individuals, -> { Increase::ArrayOf[Increase::Models::EntityCreateParams::Joint::Individual] } + required :individuals, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::EntityCreateParams::Joint::Individual] } # @!attribute [r] name # The name of the joint entity. @@ -879,9 +880,9 @@ class Joint < Increase::BaseModel # # # def initialize(individuals:, name: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # @!attribute address # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -914,7 +915,7 @@ class Individual < Increase::BaseModel # Number). # # @return [Boolean, nil] - optional :confirmed_no_us_tax_id, Increase::BooleanModel + optional :confirmed_no_us_tax_id, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -929,10 +930,10 @@ class Individual < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, confirmed_no_us_tax_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::Joint::Individual#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -980,11 +981,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Joint::Individual#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -1046,13 +1047,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::EntityCreateParams::Joint::Individual::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -1077,7 +1078,7 @@ module Method end # @see Increase::Models::EntityCreateParams::Joint::Individual::Identification#drivers_license - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # @!attribute expiration_date # The driver's license's expiration date in YYYY-MM-DD format. # @@ -1117,11 +1118,11 @@ class DriversLicense < Increase::BaseModel # # # def initialize(expiration_date:, file_id:, state:, back_file_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Joint::Individual::Identification#other - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # @!attribute country # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -1174,11 +1175,11 @@ class Other < Increase::BaseModel # # # def initialize(country:, description:, file_id:, back_file_id: nil, expiration_date: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Joint::Individual::Identification#passport - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # @!attribute country # The country that issued the passport. # @@ -1207,13 +1208,13 @@ class Passport < Increase::BaseModel # # # def initialize(country:, expiration_date:, file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end end - class NaturalPerson < Increase::BaseModel + class NaturalPerson < Increase::Internal::Type::BaseModel # @!attribute address # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -1246,7 +1247,7 @@ class NaturalPerson < Increase::BaseModel # Number). # # @return [Boolean, nil] - optional :confirmed_no_us_tax_id, Increase::BooleanModel + optional :confirmed_no_us_tax_id, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -1266,10 +1267,10 @@ class NaturalPerson < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, confirmed_no_us_tax_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::NaturalPerson#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -1317,11 +1318,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::NaturalPerson#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -1382,13 +1383,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::EntityCreateParams::NaturalPerson::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -1413,7 +1414,7 @@ module Method end # @see Increase::Models::EntityCreateParams::NaturalPerson::Identification#drivers_license - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # @!attribute expiration_date # The driver's license's expiration date in YYYY-MM-DD format. # @@ -1453,11 +1454,11 @@ class DriversLicense < Increase::BaseModel # # # def initialize(expiration_date:, file_id:, state:, back_file_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::NaturalPerson::Identification#other - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # @!attribute country # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -1510,11 +1511,11 @@ class Other < Increase::BaseModel # # # def initialize(country:, description:, file_id:, back_file_id: nil, expiration_date: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::NaturalPerson::Identification#passport - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # @!attribute country # The country that issued the passport. # @@ -1543,12 +1544,12 @@ class Passport < Increase::BaseModel # # # def initialize(country:, expiration_date:, file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end - class SupplementalDocument < Increase::BaseModel + class SupplementalDocument < Increase::Internal::Type::BaseModel # @!attribute file_id # The identifier of the File containing the document. # @@ -1560,10 +1561,10 @@ class SupplementalDocument < Increase::BaseModel # # # def initialize(file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class ThirdPartyVerification < Increase::BaseModel + class ThirdPartyVerification < Increase::Internal::Type::BaseModel # @!attribute reference # The reference identifier for the third party verification. # @@ -1585,13 +1586,13 @@ class ThirdPartyVerification < Increase::BaseModel # # # def initialize(reference:, vendor:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The vendor that was used to perform the verification. # # @see Increase::Models::EntityCreateParams::ThirdPartyVerification#vendor module Vendor - extend Increase::Enum + extend Increase::Internal::Type::Enum # Alloy. See https://alloy.com for more information. ALLOY = :alloy @@ -1607,7 +1608,7 @@ module Vendor end end - class Trust < Increase::BaseModel + class Trust < Increase::Internal::Type::BaseModel # @!attribute address # The trust's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. @@ -1633,7 +1634,8 @@ class Trust < Increase::BaseModel # The trustees of the trust. # # @return [Array] - required :trustees, -> { Increase::ArrayOf[Increase::Models::EntityCreateParams::Trust::Trustee] } + required :trustees, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::EntityCreateParams::Trust::Trustee] } # @!attribute [r] formation_document_file_id # The identifier of the File containing the formation document of the trust. @@ -1704,10 +1706,10 @@ class Trust < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::Trust#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -1755,7 +1757,7 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # Whether the trust is `revocable` or `irrevocable`. Irrevocable trusts require @@ -1764,7 +1766,7 @@ class Address < Increase::BaseModel # # @see Increase::Models::EntityCreateParams::Trust#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trust is revocable by the grantor. REVOCABLE = :revocable @@ -1779,7 +1781,7 @@ module Category # def self.values; end end - class Trustee < Increase::BaseModel + class Trustee < Increase::Internal::Type::BaseModel # @!attribute structure # The structure of the trustee. # @@ -1803,13 +1805,13 @@ class Trustee < Increase::BaseModel # # # def initialize(structure:, individual: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The structure of the trustee. # # @see Increase::Models::EntityCreateParams::Trust::Trustee#structure module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trustee is an individual. INDIVIDUAL = :individual @@ -1822,7 +1824,7 @@ module Structure end # @see Increase::Models::EntityCreateParams::Trust::Trustee#individual - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # @!attribute address # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -1856,7 +1858,7 @@ class Individual < Increase::BaseModel # Number). # # @return [Boolean, nil] - optional :confirmed_no_us_tax_id, Increase::BooleanModel + optional :confirmed_no_us_tax_id, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -1874,10 +1876,10 @@ class Individual < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, confirmed_no_us_tax_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::Trust::Trustee::Individual#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -1925,11 +1927,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Trust::Trustee::Individual#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -1992,13 +1994,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -2023,7 +2025,7 @@ module Method end # @see Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification#drivers_license - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # @!attribute expiration_date # The driver's license's expiration date in YYYY-MM-DD format. # @@ -2063,11 +2065,11 @@ class DriversLicense < Increase::BaseModel # # # def initialize(expiration_date:, file_id:, state:, back_file_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification#other - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # @!attribute country # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -2120,11 +2122,11 @@ class Other < Increase::BaseModel # # # def initialize(country:, description:, file_id:, back_file_id: nil, expiration_date: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification#passport - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # @!attribute country # The country that issued the passport. # @@ -2153,14 +2155,14 @@ class Passport < Increase::BaseModel # # # def initialize(country:, expiration_date:, file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end end # @see Increase::Models::EntityCreateParams::Trust#grantor - class Grantor < Increase::BaseModel + class Grantor < Increase::Internal::Type::BaseModel # @!attribute address # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -2193,7 +2195,7 @@ class Grantor < Increase::BaseModel # Number). # # @return [Boolean, nil] - optional :confirmed_no_us_tax_id, Increase::BooleanModel + optional :confirmed_no_us_tax_id, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -2210,10 +2212,10 @@ class Grantor < Increase::BaseModel # # # def initialize(address:, date_of_birth:, identification:, name:, confirmed_no_us_tax_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::EntityCreateParams::Trust::Grantor#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -2261,11 +2263,11 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Trust::Grantor#identification - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # @!attribute method_ # A method that can be used to verify the individual's identity. # @@ -2326,13 +2328,13 @@ class Identification < Increase::BaseModel # # # def initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A method that can be used to verify the individual's identity. # # @see Increase::Models::EntityCreateParams::Trust::Grantor::Identification#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER = :social_security_number @@ -2357,7 +2359,7 @@ module Method end # @see Increase::Models::EntityCreateParams::Trust::Grantor::Identification#drivers_license - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # @!attribute expiration_date # The driver's license's expiration date in YYYY-MM-DD format. # @@ -2397,11 +2399,11 @@ class DriversLicense < Increase::BaseModel # # # def initialize(expiration_date:, file_id:, state:, back_file_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Trust::Grantor::Identification#other - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # @!attribute country # The two-character ISO 3166-1 code representing the country that issued the # document. @@ -2454,11 +2456,11 @@ class Other < Increase::BaseModel # # # def initialize(country:, description:, file_id:, back_file_id: nil, expiration_date: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::EntityCreateParams::Trust::Grantor::Identification#passport - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # @!attribute country # The country that issued the passport. # @@ -2487,7 +2489,7 @@ class Passport < Increase::BaseModel # # # def initialize(country:, expiration_date:, file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity_list_params.rb b/lib/increase/models/entity_list_params.rb index 23b90911..1f2b06ae 100644 --- a/lib/increase/models/entity_list_params.rb +++ b/lib/increase/models/entity_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#list - class EntityListParams < Increase::BaseModel + class EntityListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -70,9 +70,9 @@ class EntityListParams < Increase::BaseModel # # # def initialize(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -125,10 +125,10 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Entities for those with the specified status or statuses. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -136,7 +136,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::EntityListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::EntityListParams::Status::In] }, api_name: :in # @!parse @@ -148,10 +148,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The entity is active. ACTIVE = :active diff --git a/lib/increase/models/entity_retrieve_params.rb b/lib/increase/models/entity_retrieve_params.rb index 42383ce5..65c8cd7e 100644 --- a/lib/increase/models/entity_retrieve_params.rb +++ b/lib/increase/models/entity_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Entities#retrieve - class EntityRetrieveParams < Increase::BaseModel + class EntityRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity_supplemental_document.rb b/lib/increase/models/entity_supplemental_document.rb index 44489e9c..629f9b2a 100644 --- a/lib/increase/models/entity_supplemental_document.rb +++ b/lib/increase/models/entity_supplemental_document.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::SupplementalDocuments#create - class EntitySupplementalDocument < Increase::BaseModel + class EntitySupplementalDocument < Increase::Internal::Type::BaseModel # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the # Supplemental Document was created. @@ -50,14 +50,14 @@ class EntitySupplementalDocument < Increase::BaseModel # # # def initialize(created_at:, entity_id:, file_id:, idempotency_key:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `entity_supplemental_document`. # # @see Increase::Models::EntitySupplementalDocument#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ENTITY_SUPPLEMENTAL_DOCUMENT = :entity_supplemental_document diff --git a/lib/increase/models/entity_update_address_params.rb b/lib/increase/models/entity_update_address_params.rb index 23ab8aa9..d65ac522 100644 --- a/lib/increase/models/entity_update_address_params.rb +++ b/lib/increase/models/entity_update_address_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#update_address - class EntityUpdateAddressParams < Increase::BaseModel + class EntityUpdateAddressParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute address # The entity's physical address. Mail receiving locations like PO Boxes and PMB's @@ -21,9 +21,9 @@ class EntityUpdateAddressParams < Increase::BaseModel # # # def initialize(address:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -71,7 +71,7 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, state:, zip:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity_update_beneficial_owner_address_params.rb b/lib/increase/models/entity_update_beneficial_owner_address_params.rb index 098ff41e..25048b33 100644 --- a/lib/increase/models/entity_update_beneficial_owner_address_params.rb +++ b/lib/increase/models/entity_update_beneficial_owner_address_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#update_beneficial_owner_address - class EntityUpdateBeneficialOwnerAddressParams < Increase::BaseModel + class EntityUpdateBeneficialOwnerAddressParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute address # The individual's physical address. Mail receiving locations like PO Boxes and @@ -29,9 +29,9 @@ class EntityUpdateBeneficialOwnerAddressParams < Increase::BaseModel # # # def initialize(address:, beneficial_owner_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute country # The two-letter ISO 3166-1 alpha-2 code for the country of the address. # @@ -99,7 +99,7 @@ class Address < Increase::BaseModel # # # def initialize(country:, line1:, city: nil, line2: nil, state: nil, zip: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/entity_update_industry_code_params.rb b/lib/increase/models/entity_update_industry_code_params.rb index 15ffb22d..4a8834f3 100644 --- a/lib/increase/models/entity_update_industry_code_params.rb +++ b/lib/increase/models/entity_update_industry_code_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Entities#update_industry_code - class EntityUpdateIndustryCodeParams < Increase::BaseModel + class EntityUpdateIndustryCodeParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute industry_code # The North American Industry Classification System (NAICS) code for the @@ -23,7 +23,7 @@ class EntityUpdateIndustryCodeParams < Increase::BaseModel # # # def initialize(industry_code:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/event.rb b/lib/increase/models/event.rb index b50d97e1..cffc39bb 100644 --- a/lib/increase/models/event.rb +++ b/lib/increase/models/event.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Events#retrieve - class Event < Increase::BaseModel + class Event < Increase::Internal::Type::BaseModel # @!attribute id # The Event identifier. # @@ -57,14 +57,14 @@ class Event < Increase::BaseModel # # # def initialize(id:, associated_object_id:, associated_object_type:, category:, created_at:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The category of the Event. We may add additional possible values for this enum # over time; your application should be able to handle such additions gracefully. # # @see Increase::Models::Event#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED = :"account.created" @@ -344,7 +344,7 @@ module Category # # @see Increase::Models::Event#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EVENT = :event diff --git a/lib/increase/models/event_list_params.rb b/lib/increase/models/event_list_params.rb index d2123feb..bf0bffa3 100644 --- a/lib/increase/models/event_list_params.rb +++ b/lib/increase/models/event_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Events#list - class EventListParams < Increase::BaseModel + class EventListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] associated_object_id # Filter Events to those belonging to the object with the provided identifier. @@ -77,9 +77,9 @@ class EventListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Events for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -87,7 +87,7 @@ class Category < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::EventListParams::Category::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::EventListParams::Category::In] }, api_name: :in # @!parse @@ -99,10 +99,10 @@ class Category < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED = :"account.created" @@ -378,7 +378,7 @@ module In end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -431,7 +431,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/event_retrieve_params.rb b/lib/increase/models/event_retrieve_params.rb index 4b78efa9..c3a51a54 100644 --- a/lib/increase/models/event_retrieve_params.rb +++ b/lib/increase/models/event_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Events#retrieve - class EventRetrieveParams < Increase::BaseModel + class EventRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/event_subscription.rb b/lib/increase/models/event_subscription.rb index 259808c3..a6b9dce6 100644 --- a/lib/increase/models/event_subscription.rb +++ b/lib/increase/models/event_subscription.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::EventSubscriptions#create - class EventSubscription < Increase::BaseModel + class EventSubscription < Increase::Internal::Type::BaseModel # @!attribute id # The event subscription identifier. # @@ -90,14 +90,14 @@ class EventSubscription < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # If specified, this subscription will only receive webhooks for Events with the # specified `category`. # # @see Increase::Models::EventSubscription#selected_event_category module SelectedEventCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED = :"account.created" @@ -376,7 +376,7 @@ module SelectedEventCategory # # @see Increase::Models::EventSubscription#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The subscription is active and Events will be delivered normally. ACTIVE = :active @@ -402,7 +402,7 @@ module Status # # @see Increase::Models::EventSubscription#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EVENT_SUBSCRIPTION = :event_subscription diff --git a/lib/increase/models/event_subscription_create_params.rb b/lib/increase/models/event_subscription_create_params.rb index 7dd9f6d6..a8236d45 100644 --- a/lib/increase/models/event_subscription_create_params.rb +++ b/lib/increase/models/event_subscription_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::EventSubscriptions#create - class EventSubscriptionCreateParams < Increase::BaseModel + class EventSubscriptionCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute url # The URL you'd like us to send webhooks to. @@ -57,12 +57,12 @@ class EventSubscriptionCreateParams < Increase::BaseModel # # # def initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # If specified, this subscription will only receive webhooks for Events with the # specified `category`. module SelectedEventCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED = :"account.created" diff --git a/lib/increase/models/event_subscription_list_params.rb b/lib/increase/models/event_subscription_list_params.rb index 715d3e8b..4eea7eea 100644 --- a/lib/increase/models/event_subscription_list_params.rb +++ b/lib/increase/models/event_subscription_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::EventSubscriptions#list - class EventSubscriptionListParams < Increase::BaseModel + class EventSubscriptionListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -50,7 +50,7 @@ class EventSubscriptionListParams < Increase::BaseModel # # # def initialize(cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/event_subscription_retrieve_params.rb b/lib/increase/models/event_subscription_retrieve_params.rb index 558c3da0..c1e52caf 100644 --- a/lib/increase/models/event_subscription_retrieve_params.rb +++ b/lib/increase/models/event_subscription_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::EventSubscriptions#retrieve - class EventSubscriptionRetrieveParams < Increase::BaseModel + class EventSubscriptionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/event_subscription_update_params.rb b/lib/increase/models/event_subscription_update_params.rb index 3a1ad972..e32f81d7 100644 --- a/lib/increase/models/event_subscription_update_params.rb +++ b/lib/increase/models/event_subscription_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::EventSubscriptions#update - class EventSubscriptionUpdateParams < Increase::BaseModel + class EventSubscriptionUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] status # The status to update the Event Subscription with. @@ -24,11 +24,11 @@ class EventSubscriptionUpdateParams < Increase::BaseModel # # # def initialize(status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status to update the Event Subscription with. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The subscription is active and Events will be delivered normally. ACTIVE = :active diff --git a/lib/increase/models/export.rb b/lib/increase/models/export.rb index d7756e65..61c51dc5 100644 --- a/lib/increase/models/export.rb +++ b/lib/increase/models/export.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Exports#create - class Export < Increase::BaseModel + class Export < Increase::Internal::Type::BaseModel # @!attribute id # The Export identifier. # @@ -76,14 +76,14 @@ class Export < Increase::BaseModel # # # def initialize(id:, category:, created_at:, file_download_url:, file_id:, idempotency_key:, status:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The category of the Export. We may add additional possible values for this enum # over time; your application should be able to handle that gracefully. # # @see Increase::Models::Export#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. ACCOUNT_STATEMENT_OFX = :account_statement_ofx @@ -117,7 +117,7 @@ module Category # # @see Increase::Models::Export#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase is generating the export. PENDING = :pending @@ -140,7 +140,7 @@ module Status # # @see Increase::Models::Export#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EXPORT = :export diff --git a/lib/increase/models/export_create_params.rb b/lib/increase/models/export_create_params.rb index 3673b7d9..c2844962 100644 --- a/lib/increase/models/export_create_params.rb +++ b/lib/increase/models/export_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Exports#create - class ExportCreateParams < Increase::BaseModel + class ExportCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute category # The type of Export to create. @@ -73,7 +73,7 @@ class ExportCreateParams < Increase::BaseModel # Options for the created export. Required if `category` is equal to `vendor_csv`. # # @return [Object, nil] - optional :vendor_csv, Increase::Unknown + optional :vendor_csv, Increase::Internal::Type::Unknown # @!parse # # @return [Object] @@ -103,11 +103,11 @@ class ExportCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of Export to create. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. ACCOUNT_STATEMENT_OFX = :account_statement_ofx @@ -134,7 +134,7 @@ module Category # def self.values; end end - class AccountStatementOfx < Increase::BaseModel + class AccountStatementOfx < Increase::Internal::Type::BaseModel # @!attribute account_id # The Account to create a statement for. # @@ -160,10 +160,10 @@ class AccountStatementOfx < Increase::BaseModel # # # def initialize(account_id:, created_at: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::ExportCreateParams::AccountStatementOfx#created_at - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -218,11 +218,11 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end - class BalanceCsv < Increase::BaseModel + class BalanceCsv < Increase::Internal::Type::BaseModel # @!attribute [r] account_id # Filter exported Transactions to the specified Account. # @@ -263,10 +263,10 @@ class BalanceCsv < Increase::BaseModel # # # def initialize(account_id: nil, created_at: nil, program_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::ExportCreateParams::BalanceCsv#created_at - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -321,11 +321,11 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end - class BookkeepingAccountBalanceCsv < Increase::BaseModel + class BookkeepingAccountBalanceCsv < Increase::Internal::Type::BaseModel # @!attribute [r] bookkeeping_account_id # Filter exported Transactions to the specified Bookkeeping Account. # @@ -355,10 +355,10 @@ class BookkeepingAccountBalanceCsv < Increase::BaseModel # # # def initialize(bookkeeping_account_id: nil, created_at: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv#created_at - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -413,11 +413,11 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end - class EntityCsv < Increase::BaseModel + class EntityCsv < Increase::Internal::Type::BaseModel # @!attribute [r] status # Entity statuses to filter by. # @@ -435,17 +435,17 @@ class EntityCsv < Increase::BaseModel # # # def initialize(status: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::ExportCreateParams::EntityCsv#status - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute in_ # Entity statuses to filter by. For GET requests, this should be encoded as a # comma-delimited string, such as `?in=one,two,three`. # # @return [Array] required :in_, - -> { Increase::ArrayOf[enum: Increase::Models::ExportCreateParams::EntityCsv::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::ExportCreateParams::EntityCsv::Status::In] }, api_name: :in # @!parse @@ -455,10 +455,10 @@ class Status < Increase::BaseModel # # # def initialize(in_:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The entity is active. ACTIVE = :active @@ -478,7 +478,7 @@ module In end end - class TransactionCsv < Increase::BaseModel + class TransactionCsv < Increase::Internal::Type::BaseModel # @!attribute [r] account_id # Filter exported Transactions to the specified Account. # @@ -519,10 +519,10 @@ class TransactionCsv < Increase::BaseModel # # # def initialize(account_id: nil, created_at: nil, program_id: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::ExportCreateParams::TransactionCsv#created_at - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -577,7 +577,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/export_list_params.rb b/lib/increase/models/export_list_params.rb index e912d989..239ad77e 100644 --- a/lib/increase/models/export_list_params.rb +++ b/lib/increase/models/export_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Exports#list - class ExportListParams < Increase::BaseModel + class ExportListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] category # @@ -91,9 +91,9 @@ class ExportListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Exports for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -101,7 +101,7 @@ class Category < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::ExportListParams::Category::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::ExportListParams::Category::In] }, api_name: :in # @!parse @@ -113,10 +113,10 @@ class Category < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. ACCOUNT_STATEMENT_OFX = :account_statement_ofx @@ -147,7 +147,7 @@ module In end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -200,10 +200,10 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Exports for those with the specified status or statuses. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -211,7 +211,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::ExportListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::ExportListParams::Status::In] }, api_name: :in # @!parse @@ -223,10 +223,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase is generating the export. PENDING = :pending diff --git a/lib/increase/models/export_retrieve_params.rb b/lib/increase/models/export_retrieve_params.rb index e0b0d2cb..16f30c48 100644 --- a/lib/increase/models/export_retrieve_params.rb +++ b/lib/increase/models/export_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Exports#retrieve - class ExportRetrieveParams < Increase::BaseModel + class ExportRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/external_account.rb b/lib/increase/models/external_account.rb index 9aa33ce6..2dbfba97 100644 --- a/lib/increase/models/external_account.rb +++ b/lib/increase/models/external_account.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::ExternalAccounts#create - class ExternalAccount < Increase::BaseModel + class ExternalAccount < Increase::Internal::Type::BaseModel # @!attribute id # The External Account's identifier. # @@ -107,13 +107,13 @@ class ExternalAccount < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of entity that owns the External Account. # # @see Increase::Models::ExternalAccount#account_holder module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS = :business @@ -135,7 +135,7 @@ module AccountHolder # # @see Increase::Models::ExternalAccount#funding module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING = :checking @@ -157,7 +157,7 @@ module Funding # # @see Increase::Models::ExternalAccount#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is active. ACTIVE = :active @@ -177,7 +177,7 @@ module Status # # @see Increase::Models::ExternalAccount#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EXTERNAL_ACCOUNT = :external_account @@ -192,7 +192,7 @@ module Type # # @see Increase::Models::ExternalAccount#verification_status module VerificationStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account has not been verified. UNVERIFIED = :unverified diff --git a/lib/increase/models/external_account_create_params.rb b/lib/increase/models/external_account_create_params.rb index 356c29d3..1658c6fb 100644 --- a/lib/increase/models/external_account_create_params.rb +++ b/lib/increase/models/external_account_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ExternalAccounts#create - class ExternalAccountCreateParams < Increase::BaseModel + class ExternalAccountCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_number # The account number for the destination account. @@ -57,11 +57,11 @@ class ExternalAccountCreateParams < Increase::BaseModel # # # def initialize(account_number:, description:, routing_number:, account_holder: nil, funding: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of entity that owns the External Account. module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS = :business @@ -81,7 +81,7 @@ module AccountHolder # The type of the destination account. Defaults to `checking`. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING = :checking diff --git a/lib/increase/models/external_account_list_params.rb b/lib/increase/models/external_account_list_params.rb index 13d7cd45..d14ac515 100644 --- a/lib/increase/models/external_account_list_params.rb +++ b/lib/increase/models/external_account_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ExternalAccounts#list - class ExternalAccountListParams < Increase::BaseModel + class ExternalAccountListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -71,9 +71,9 @@ class ExternalAccountListParams < Increase::BaseModel # # # def initialize(cursor: nil, idempotency_key: nil, limit: nil, routing_number: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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 @@ -81,7 +81,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::ExternalAccountListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::ExternalAccountListParams::Status::In] }, api_name: :in # @!parse @@ -93,10 +93,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is active. ACTIVE = :active diff --git a/lib/increase/models/external_account_retrieve_params.rb b/lib/increase/models/external_account_retrieve_params.rb index ce7da893..5634ced7 100644 --- a/lib/increase/models/external_account_retrieve_params.rb +++ b/lib/increase/models/external_account_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::ExternalAccounts#retrieve - class ExternalAccountRetrieveParams < Increase::BaseModel + class ExternalAccountRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/external_account_update_params.rb b/lib/increase/models/external_account_update_params.rb index 6a58f656..f248ec03 100644 --- a/lib/increase/models/external_account_update_params.rb +++ b/lib/increase/models/external_account_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ExternalAccounts#update - class ExternalAccountUpdateParams < Increase::BaseModel + class ExternalAccountUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_holder # The type of entity that owns the External Account. @@ -57,11 +57,11 @@ class ExternalAccountUpdateParams < Increase::BaseModel # # # def initialize(account_holder: nil, description: nil, funding: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of entity that owns the External Account. module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS = :business @@ -78,7 +78,7 @@ module AccountHolder # The funding type of the External Account. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING = :checking @@ -98,7 +98,7 @@ module Funding # The status of the External Account. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is active. ACTIVE = :active diff --git a/lib/increase/models/file.rb b/lib/increase/models/file.rb index 85372a6a..5fd17803 100644 --- a/lib/increase/models/file.rb +++ b/lib/increase/models/file.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Files#create - class File < Increase::BaseModel + class File < Increase::Internal::Type::BaseModel # @!attribute id # The File's identifier. # @@ -81,13 +81,13 @@ class File < Increase::BaseModel # # # def initialize(id:, created_at:, description:, direction:, filename:, idempotency_key:, mime_type:, purpose:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether the File was generated by Increase or by you and sent to Increase. # # @see Increase::Models::File#direction module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # This File was sent by you to Increase. TO_INCREASE = :to_increase @@ -108,7 +108,7 @@ module Direction # # @see Increase::Models::File#purpose module Purpose - extend Increase::Enum + extend Increase::Internal::Type::Enum # An image of the front of a check, used for check deposits. CHECK_IMAGE_FRONT = :check_image_front @@ -197,7 +197,7 @@ module Purpose # # @see Increase::Models::File#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum FILE = :file diff --git a/lib/increase/models/file_create_params.rb b/lib/increase/models/file_create_params.rb index e19fc38f..319c8f0f 100644 --- a/lib/increase/models/file_create_params.rb +++ b/lib/increase/models/file_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Files#create - class FileCreateParams < Increase::BaseModel + class FileCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute file # The file contents. This should follow the specifications of @@ -40,11 +40,11 @@ class FileCreateParams < Increase::BaseModel # # # def initialize(file:, purpose:, description: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # What the File will be used for in Increase's systems. module Purpose - extend Increase::Enum + extend Increase::Internal::Type::Enum # An image of the front of a check, used for check deposits. CHECK_IMAGE_FRONT = :check_image_front diff --git a/lib/increase/models/file_link.rb b/lib/increase/models/file_link.rb index 01c45487..e79c2148 100644 --- a/lib/increase/models/file_link.rb +++ b/lib/increase/models/file_link.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::FileLinks#create - class FileLink < Increase::BaseModel + class FileLink < Increase::Internal::Type::BaseModel # @!attribute id # The File Link identifier. # @@ -66,14 +66,14 @@ class FileLink < Increase::BaseModel # # # def initialize(id:, created_at:, expires_at:, file_id:, idempotency_key:, type:, unauthenticated_url:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `file_link`. # # @see Increase::Models::FileLink#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum FILE_LINK = :file_link diff --git a/lib/increase/models/file_link_create_params.rb b/lib/increase/models/file_link_create_params.rb index 0211cc3a..97316508 100644 --- a/lib/increase/models/file_link_create_params.rb +++ b/lib/increase/models/file_link_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::FileLinks#create - class FileLinkCreateParams < Increase::BaseModel + class FileLinkCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute file_id # The File to create a File Link for. @@ -32,7 +32,7 @@ class FileLinkCreateParams < Increase::BaseModel # # # def initialize(file_id:, expires_at: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/file_list_params.rb b/lib/increase/models/file_list_params.rb index 1df6d430..e6edc586 100644 --- a/lib/increase/models/file_list_params.rb +++ b/lib/increase/models/file_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Files#list - class FileListParams < Increase::BaseModel + class FileListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -70,9 +70,9 @@ class FileListParams < Increase::BaseModel # # # def initialize(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, purpose: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -125,17 +125,17 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Purpose < Increase::BaseModel + class Purpose < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::FileListParams::Purpose::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::FileListParams::Purpose::In] }, api_name: :in # @!parse @@ -147,10 +147,10 @@ class Purpose < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # An image of the front of a check, used for check deposits. CHECK_IMAGE_FRONT = :check_image_front diff --git a/lib/increase/models/file_retrieve_params.rb b/lib/increase/models/file_retrieve_params.rb index 03136e0d..d5ac6467 100644 --- a/lib/increase/models/file_retrieve_params.rb +++ b/lib/increase/models/file_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Files#retrieve - class FileRetrieveParams < Increase::BaseModel + class FileRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/group.rb b/lib/increase/models/group.rb index 6c70efc9..f2428334 100644 --- a/lib/increase/models/group.rb +++ b/lib/increase/models/group.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Groups#retrieve - class Group < Increase::BaseModel + class Group < Increase::Internal::Type::BaseModel # @!attribute id # The Group identifier. # @@ -50,13 +50,13 @@ class Group < Increase::BaseModel # # # def initialize(id:, ach_debit_status:, activation_status:, created_at:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # If the Group is allowed to create ACH debits. # # @see Increase::Models::Group#ach_debit_status module ACHDebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Group cannot make ACH debits. DISABLED = :disabled @@ -75,7 +75,7 @@ module ACHDebitStatus # # @see Increase::Models::Group#activation_status module ActivationStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Group is not activated. UNACTIVATED = :unactivated @@ -95,7 +95,7 @@ module ActivationStatus # # @see Increase::Models::Group#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum GROUP = :group diff --git a/lib/increase/models/group_retrieve_params.rb b/lib/increase/models/group_retrieve_params.rb index 23acc8db..0c53c165 100644 --- a/lib/increase/models/group_retrieve_params.rb +++ b/lib/increase/models/group_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Groups#retrieve - class GroupRetrieveParams < Increase::BaseModel + class GroupRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_ach_transfer.rb b/lib/increase/models/inbound_ach_transfer.rb index 961ef947..a85f2fc5 100644 --- a/lib/increase/models/inbound_ach_transfer.rb +++ b/lib/increase/models/inbound_ach_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::InboundACHTransfers#retrieve - class InboundACHTransfer < Increase::BaseModel + class InboundACHTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The inbound ACH transfer's identifier. # @@ -246,10 +246,10 @@ class InboundACHTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::InboundACHTransfer#acceptance - class Acceptance < Increase::BaseModel + class Acceptance < Increase::Internal::Type::BaseModel # @!attribute accepted_at # The time at which the transfer was accepted. # @@ -270,11 +270,11 @@ class Acceptance < Increase::BaseModel # # # def initialize(accepted_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::InboundACHTransfer#addenda - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # @!attribute category # The type of addendum. # @@ -295,13 +295,13 @@ class Addenda < Increase::BaseModel # # # def initialize(category:, freeform:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of addendum. # # @see Increase::Models::InboundACHTransfer::Addenda#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured addendum. FREEFORM = :freeform @@ -314,13 +314,13 @@ module Category end # @see Increase::Models::InboundACHTransfer::Addenda#freeform - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # @!attribute entries # Each entry represents an addendum received from the originator. # # @return [Array] required :entries, - -> { Increase::ArrayOf[Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry] } # @!parse # # Unstructured `payment_related_information` passed through by the originator. @@ -329,9 +329,9 @@ class Freeform < Increase::BaseModel # # # def initialize(entries:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # @!attribute payment_related_information # The payment related information passed in the addendum. # @@ -343,13 +343,13 @@ class Entry < Increase::BaseModel # # # def initialize(payment_related_information:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end # @see Increase::Models::InboundACHTransfer#decline - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel # @!attribute declined_at # The time at which the transfer was declined. # @@ -377,13 +377,13 @@ class Decline < Increase::BaseModel # # # def initialize(declined_at:, declined_transaction_id:, reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason for the transfer decline. # # @see Increase::Models::InboundACHTransfer::Decline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACH_ROUTE_CANCELED = :ach_route_canceled @@ -450,7 +450,7 @@ module Reason # # @see Increase::Models::InboundACHTransfer#direction module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # Credit CREDIT = :credit @@ -469,7 +469,7 @@ module Direction # # @see Increase::Models::InboundACHTransfer#expected_settlement_schedule module ExpectedSettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is expected to settle same-day. SAME_DAY = :same_day @@ -485,7 +485,7 @@ module ExpectedSettlementSchedule end # @see Increase::Models::InboundACHTransfer#international_addenda - class InternationalAddenda < Increase::BaseModel + class InternationalAddenda < Increase::Internal::Type::BaseModel # @!attribute destination_country_code # The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 # country code of the destination country. @@ -786,13 +786,13 @@ class InternationalAddenda < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A description of how the foreign exchange rate was calculated. # # @see Increase::Models::InboundACHTransfer::InternationalAddenda#foreign_exchange_indicator module ForeignExchangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The originator chose an amount in their own currency. The settled amount in USD was converted using the exchange rate. FIXED_TO_VARIABLE = :fixed_to_variable @@ -815,7 +815,7 @@ module ForeignExchangeIndicator # # @see Increase::Models::InboundACHTransfer::InternationalAddenda#foreign_exchange_reference_indicator module ForeignExchangeReferenceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The ACH file contains a foreign exchange rate. FOREIGN_EXCHANGE_RATE = :foreign_exchange_rate @@ -837,7 +837,7 @@ module ForeignExchangeReferenceIndicator # # @see Increase::Models::InboundACHTransfer::InternationalAddenda#international_transaction_type_code module InternationalTransactionTypeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Sent as `ANN` in the Nacha file. ANNUITY = :annuity @@ -911,7 +911,7 @@ module InternationalTransactionTypeCode # # @see Increase::Models::InboundACHTransfer::InternationalAddenda#originating_depository_financial_institution_id_qualifier module OriginatingDepositoryFinancialInstitutionIDQualifier - extend Increase::Enum + extend Increase::Internal::Type::Enum # A domestic clearing system number. In the US, for example, this is the American Banking Association (ABA) routing number. NATIONAL_CLEARING_SYSTEM_NUMBER = :national_clearing_system_number @@ -934,7 +934,7 @@ module OriginatingDepositoryFinancialInstitutionIDQualifier # # @see Increase::Models::InboundACHTransfer::InternationalAddenda#receiving_depository_financial_institution_id_qualifier module ReceivingDepositoryFinancialInstitutionIDQualifier - extend Increase::Enum + extend Increase::Internal::Type::Enum # A domestic clearing system number. In the US, for example, this is the American Banking Association (ABA) routing number. NATIONAL_CLEARING_SYSTEM_NUMBER = :national_clearing_system_number @@ -954,7 +954,7 @@ module ReceivingDepositoryFinancialInstitutionIDQualifier end # @see Increase::Models::InboundACHTransfer#notification_of_change - class NotificationOfChange < Increase::BaseModel + class NotificationOfChange < Increase::Internal::Type::BaseModel # @!attribute updated_account_number # The new account number provided in the notification of change. # @@ -976,14 +976,14 @@ class NotificationOfChange < Increase::BaseModel # # # def initialize(updated_account_number:, updated_routing_number:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The Standard Entry Class (SEC) code of the transfer. # # @see Increase::Models::InboundACHTransfer#standard_entry_class_code module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT = :corporate_credit_or_debit @@ -1044,7 +1044,7 @@ module StandardEntryClassCode # # @see Increase::Models::InboundACHTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound ACH Transfer is awaiting action, will transition automatically if no action is taken. PENDING = :pending @@ -1066,7 +1066,7 @@ module Status end # @see Increase::Models::InboundACHTransfer#transfer_return - class TransferReturn < Increase::BaseModel + class TransferReturn < Increase::Internal::Type::BaseModel # @!attribute reason # The reason for the transfer return. # @@ -1094,13 +1094,13 @@ class TransferReturn < Increase::BaseModel # # # def initialize(reason:, returned_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason for the transfer return. # # @see Increase::Models::InboundACHTransfer::TransferReturn#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The customer's account has insufficient funds. This reason is only allowed for debits. The Nacha return code is R01. INSUFFICIENT_FUNDS = :insufficient_funds @@ -1147,7 +1147,7 @@ module Reason # # @see Increase::Models::InboundACHTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_ACH_TRANSFER = :inbound_ach_transfer diff --git a/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rb b/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rb index a8007db4..50af8cd7 100644 --- a/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rb +++ b/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundACHTransfers#create_notification_of_change - class InboundACHTransferCreateNotificationOfChangeParams < Increase::BaseModel + class InboundACHTransferCreateNotificationOfChangeParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] updated_account_number # The updated account number to send in the notification of change. @@ -35,7 +35,7 @@ class InboundACHTransferCreateNotificationOfChangeParams < Increase::BaseModel # # # def initialize(updated_account_number: nil, updated_routing_number: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_ach_transfer_decline_params.rb b/lib/increase/models/inbound_ach_transfer_decline_params.rb index 33401e0a..209f909d 100644 --- a/lib/increase/models/inbound_ach_transfer_decline_params.rb +++ b/lib/increase/models/inbound_ach_transfer_decline_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundACHTransfers#decline - class InboundACHTransferDeclineParams < Increase::BaseModel + class InboundACHTransferDeclineParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] reason # The reason why this transfer will be returned. If this parameter is unset, the @@ -26,13 +26,13 @@ class InboundACHTransferDeclineParams < Increase::BaseModel # # # def initialize(reason: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason why this transfer will be returned. If this parameter is unset, the # return codes will be `payment_stopped` for debits and # `credit_entry_refused_by_receiver` for credits. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The customer's account has insufficient funds. This reason is only allowed for debits. The Nacha return code is R01. INSUFFICIENT_FUNDS = :insufficient_funds diff --git a/lib/increase/models/inbound_ach_transfer_list_params.rb b/lib/increase/models/inbound_ach_transfer_list_params.rb index f034b414..23958f16 100644 --- a/lib/increase/models/inbound_ach_transfer_list_params.rb +++ b/lib/increase/models/inbound_ach_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundACHTransfers#list - class InboundACHTransferListParams < Increase::BaseModel + class InboundACHTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Inbound ACH Transfers to ones belonging to the specified Account. @@ -89,9 +89,9 @@ class InboundACHTransferListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -144,10 +144,10 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Inbound ACH Transfers to those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -155,7 +155,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::InboundACHTransferListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::InboundACHTransferListParams::Status::In] }, api_name: :in # @!parse @@ -167,10 +167,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound ACH Transfer is awaiting action, will transition automatically if no action is taken. PENDING = :pending diff --git a/lib/increase/models/inbound_ach_transfer_retrieve_params.rb b/lib/increase/models/inbound_ach_transfer_retrieve_params.rb index 383cb31c..5d5e3b12 100644 --- a/lib/increase/models/inbound_ach_transfer_retrieve_params.rb +++ b/lib/increase/models/inbound_ach_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::InboundACHTransfers#retrieve - class InboundACHTransferRetrieveParams < Increase::BaseModel + class InboundACHTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_ach_transfer_transfer_return_params.rb b/lib/increase/models/inbound_ach_transfer_transfer_return_params.rb index 3e1a4549..37f04297 100644 --- a/lib/increase/models/inbound_ach_transfer_transfer_return_params.rb +++ b/lib/increase/models/inbound_ach_transfer_transfer_return_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundACHTransfers#transfer_return - class InboundACHTransferTransferReturnParams < Increase::BaseModel + class InboundACHTransferTransferReturnParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute reason # The reason why this transfer will be returned. The most usual return codes are @@ -21,12 +21,12 @@ class InboundACHTransferTransferReturnParams < Increase::BaseModel # # # def initialize(reason:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # 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. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The customer's account has insufficient funds. This reason is only allowed for debits. The Nacha return code is R01. INSUFFICIENT_FUNDS = :insufficient_funds diff --git a/lib/increase/models/inbound_check_deposit.rb b/lib/increase/models/inbound_check_deposit.rb index 5e2f8b00..5b8d8b52 100644 --- a/lib/increase/models/inbound_check_deposit.rb +++ b/lib/increase/models/inbound_check_deposit.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::InboundCheckDeposits#retrieve - class InboundCheckDeposit < Increase::BaseModel + class InboundCheckDeposit < Increase::Internal::Type::BaseModel # @!attribute id # The deposit's identifier. # @@ -35,7 +35,8 @@ class InboundCheckDeposit < Increase::BaseModel # contain details of the adjustments. # # @return [Array] - required :adjustments, -> { Increase::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment] } + required :adjustments, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment] } # @!attribute amount # The deposited amount in USD cents. @@ -189,9 +190,9 @@ class InboundCheckDeposit < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Adjustment < Increase::BaseModel + class Adjustment < Increase::Internal::Type::BaseModel # @!attribute adjusted_at # The time at which the return adjustment was received. # @@ -224,13 +225,13 @@ class Adjustment < Increase::BaseModel # # # def initialize(adjusted_at:, amount:, reason:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason for the adjustment. # # @see Increase::Models::InboundCheckDeposit::Adjustment#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The return was initiated too late and the receiving institution has responded with a Late Return Claim. LATE_RETURN = :late_return @@ -256,7 +257,7 @@ module Reason # # @see Increase::Models::InboundCheckDeposit#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -284,7 +285,7 @@ module Currency end # @see Increase::Models::InboundCheckDeposit#deposit_return - class DepositReturn < Increase::BaseModel + class DepositReturn < Increase::Internal::Type::BaseModel # @!attribute reason # The reason the deposit was returned. # @@ -313,13 +314,13 @@ class DepositReturn < Increase::BaseModel # # # def initialize(reason:, returned_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason the deposit was returned. # # @see Increase::Models::InboundCheckDeposit::DepositReturn#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check was altered or fictitious. ALTERED_OR_FICTITIOUS = :altered_or_fictitious @@ -349,7 +350,7 @@ module Reason # # @see Increase::Models::InboundCheckDeposit#payee_name_analysis module PayeeNameAnalysis - extend Increase::Enum + extend Increase::Internal::Type::Enum # The details on the check match the recipient name of the check transfer. NAME_MATCHES = :name_matches @@ -371,7 +372,7 @@ module PayeeNameAnalysis # # @see Increase::Models::InboundCheckDeposit#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound Check Deposit is pending. PENDING = :pending @@ -400,7 +401,7 @@ module Status # # @see Increase::Models::InboundCheckDeposit#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_CHECK_DEPOSIT = :inbound_check_deposit diff --git a/lib/increase/models/inbound_check_deposit_decline_params.rb b/lib/increase/models/inbound_check_deposit_decline_params.rb index 41671d9a..9c6f744f 100644 --- a/lib/increase/models/inbound_check_deposit_decline_params.rb +++ b/lib/increase/models/inbound_check_deposit_decline_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::InboundCheckDeposits#decline - class InboundCheckDepositDeclineParams < Increase::BaseModel + class InboundCheckDepositDeclineParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_check_deposit_list_params.rb b/lib/increase/models/inbound_check_deposit_list_params.rb index eeffd3f3..d4b6c27d 100644 --- a/lib/increase/models/inbound_check_deposit_list_params.rb +++ b/lib/increase/models/inbound_check_deposit_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundCheckDeposits#list - class InboundCheckDepositListParams < Increase::BaseModel + class InboundCheckDepositListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Inbound Check Deposits to those belonging to the specified Account. @@ -69,9 +69,9 @@ class InboundCheckDepositListParams < Increase::BaseModel # # # def initialize(account_id: nil, check_transfer_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -124,7 +124,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_check_deposit_retrieve_params.rb b/lib/increase/models/inbound_check_deposit_retrieve_params.rb index 9d0f01d1..9407a42e 100644 --- a/lib/increase/models/inbound_check_deposit_retrieve_params.rb +++ b/lib/increase/models/inbound_check_deposit_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::InboundCheckDeposits#retrieve - class InboundCheckDepositRetrieveParams < Increase::BaseModel + class InboundCheckDepositRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_check_deposit_return_params.rb b/lib/increase/models/inbound_check_deposit_return_params.rb index 2b13267e..e186e5a9 100644 --- a/lib/increase/models/inbound_check_deposit_return_params.rb +++ b/lib/increase/models/inbound_check_deposit_return_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundCheckDeposits#return_ - class InboundCheckDepositReturnParams < Increase::BaseModel + class InboundCheckDepositReturnParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute reason # The reason to return the Inbound Check Deposit. @@ -20,11 +20,11 @@ class InboundCheckDepositReturnParams < Increase::BaseModel # # # def initialize(reason:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason to return the Inbound Check Deposit. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check was altered or fictitious. ALTERED_OR_FICTITIOUS = :altered_or_fictitious diff --git a/lib/increase/models/inbound_mail_item.rb b/lib/increase/models/inbound_mail_item.rb index bfb8e83e..a0509c3a 100644 --- a/lib/increase/models/inbound_mail_item.rb +++ b/lib/increase/models/inbound_mail_item.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::InboundMailItems#retrieve - class InboundMailItem < Increase::BaseModel + class InboundMailItem < Increase::Internal::Type::BaseModel # @!attribute id # The Inbound Mail Item identifier. # @@ -69,13 +69,13 @@ class InboundMailItem < Increase::BaseModel # # # def initialize(id:, created_at:, file_id:, lockbox_id:, recipient_name:, rejection_reason:, status:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # If the mail item has been rejected, why it was rejected. # # @see Increase::Models::InboundMailItem#rejection_reason module RejectionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The mail item does not match any lockbox. NO_MATCHING_LOCKBOX = :no_matching_lockbox @@ -97,7 +97,7 @@ module RejectionReason # # @see Increase::Models::InboundMailItem#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The mail item is pending processing. PENDING = :pending @@ -120,7 +120,7 @@ module Status # # @see Increase::Models::InboundMailItem#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_MAIL_ITEM = :inbound_mail_item diff --git a/lib/increase/models/inbound_mail_item_list_params.rb b/lib/increase/models/inbound_mail_item_list_params.rb index 03693946..c58b2946 100644 --- a/lib/increase/models/inbound_mail_item_list_params.rb +++ b/lib/increase/models/inbound_mail_item_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundMailItems#list - class InboundMailItemListParams < Increase::BaseModel + class InboundMailItemListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -57,9 +57,9 @@ class InboundMailItemListParams < Increase::BaseModel # # # def initialize(created_at: nil, cursor: nil, limit: nil, lockbox_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -112,7 +112,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_mail_item_retrieve_params.rb b/lib/increase/models/inbound_mail_item_retrieve_params.rb index 7af788ad..95526e49 100644 --- a/lib/increase/models/inbound_mail_item_retrieve_params.rb +++ b/lib/increase/models/inbound_mail_item_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::InboundMailItems#retrieve - class InboundMailItemRetrieveParams < Increase::BaseModel + class InboundMailItemRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_real_time_payments_transfer.rb b/lib/increase/models/inbound_real_time_payments_transfer.rb index cd2fa82e..1334c8d6 100755 --- a/lib/increase/models/inbound_real_time_payments_transfer.rb +++ b/lib/increase/models/inbound_real_time_payments_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::InboundRealTimePaymentsTransfers#retrieve - class InboundRealTimePaymentsTransfer < Increase::BaseModel + class InboundRealTimePaymentsTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The inbound Real-Time Payments transfer's identifier. # @@ -146,10 +146,10 @@ class InboundRealTimePaymentsTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::InboundRealTimePaymentsTransfer#confirmation - class Confirmation < Increase::BaseModel + class Confirmation < Increase::Internal::Type::BaseModel # @!attribute confirmed_at # The time at which the transfer was confirmed. # @@ -170,7 +170,7 @@ class Confirmation < Increase::BaseModel # # # def initialize(confirmed_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's @@ -178,7 +178,7 @@ class Confirmation < Increase::BaseModel # # @see Increase::Models::InboundRealTimePaymentsTransfer#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -206,7 +206,7 @@ module Currency end # @see Increase::Models::InboundRealTimePaymentsTransfer#decline - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel # @!attribute declined_at # The time at which the transfer was declined. # @@ -234,13 +234,13 @@ class Decline < Increase::BaseModel # # # def initialize(declined_at:, declined_transaction_id:, reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason for the transfer decline. # # @see Increase::Models::InboundRealTimePaymentsTransfer::Decline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED = :account_number_canceled @@ -272,7 +272,7 @@ module Reason # # @see Increase::Models::InboundRealTimePaymentsTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending confirmation. PENDING_CONFIRMING = :pending_confirming @@ -298,7 +298,7 @@ module Status # # @see Increase::Models::InboundRealTimePaymentsTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_REAL_TIME_PAYMENTS_TRANSFER = :inbound_real_time_payments_transfer diff --git a/lib/increase/models/inbound_real_time_payments_transfer_list_params.rb b/lib/increase/models/inbound_real_time_payments_transfer_list_params.rb index 204c22d1..09ea94c8 100644 --- a/lib/increase/models/inbound_real_time_payments_transfer_list_params.rb +++ b/lib/increase/models/inbound_real_time_payments_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundRealTimePaymentsTransfers#list - class InboundRealTimePaymentsTransferListParams < Increase::BaseModel + class InboundRealTimePaymentsTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Inbound Real-Time Payments Transfers to those belonging to the specified @@ -70,9 +70,9 @@ class InboundRealTimePaymentsTransferListParams < Increase::BaseModel # # # def initialize(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -125,7 +125,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rb b/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rb index 6f117bd0..93a7452f 100644 --- a/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rb +++ b/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::InboundRealTimePaymentsTransfers#retrieve - class InboundRealTimePaymentsTransferRetrieveParams < Increase::BaseModel + class InboundRealTimePaymentsTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_wire_drawdown_request.rb b/lib/increase/models/inbound_wire_drawdown_request.rb index da599254..ee0d1c96 100644 --- a/lib/increase/models/inbound_wire_drawdown_request.rb +++ b/lib/increase/models/inbound_wire_drawdown_request.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::InboundWireDrawdownRequests#retrieve - class InboundWireDrawdownRequest < Increase::BaseModel + class InboundWireDrawdownRequest < Increase::Internal::Type::BaseModel # @!attribute id # The Wire drawdown request identifier. # @@ -208,14 +208,14 @@ class InboundWireDrawdownRequest < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `inbound_wire_drawdown_request`. # # @see Increase::Models::InboundWireDrawdownRequest#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_WIRE_DRAWDOWN_REQUEST = :inbound_wire_drawdown_request diff --git a/lib/increase/models/inbound_wire_drawdown_request_list_params.rb b/lib/increase/models/inbound_wire_drawdown_request_list_params.rb index 1c3aca60..a6e95416 100644 --- a/lib/increase/models/inbound_wire_drawdown_request_list_params.rb +++ b/lib/increase/models/inbound_wire_drawdown_request_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundWireDrawdownRequests#list - class InboundWireDrawdownRequestListParams < Increase::BaseModel + class InboundWireDrawdownRequestListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -36,7 +36,7 @@ class InboundWireDrawdownRequestListParams < Increase::BaseModel # # # def initialize(cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rb b/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rb index 97bb0b84..1da3318e 100644 --- a/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rb +++ b/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::InboundWireDrawdownRequests#retrieve - class InboundWireDrawdownRequestRetrieveParams < Increase::BaseModel + class InboundWireDrawdownRequestRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/inbound_wire_transfer.rb b/lib/increase/models/inbound_wire_transfer.rb index ff9fc099..52d1b3f7 100644 --- a/lib/increase/models/inbound_wire_transfer.rb +++ b/lib/increase/models/inbound_wire_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::InboundWireTransfers#retrieve - class InboundWireTransfer < Increase::BaseModel + class InboundWireTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The inbound wire transfer's identifier. # @@ -220,13 +220,13 @@ class InboundWireTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status of the transfer. # # @see Increase::Models::InboundWireTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound Wire Transfer is awaiting action, will transition automatically if no action is taken. PENDING = :pending @@ -252,7 +252,7 @@ module Status # # @see Increase::Models::InboundWireTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_WIRE_TRANSFER = :inbound_wire_transfer diff --git a/lib/increase/models/inbound_wire_transfer_list_params.rb b/lib/increase/models/inbound_wire_transfer_list_params.rb index fab2f403..e4a4eae6 100644 --- a/lib/increase/models/inbound_wire_transfer_list_params.rb +++ b/lib/increase/models/inbound_wire_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::InboundWireTransfers#list - class InboundWireTransferListParams < Increase::BaseModel + class InboundWireTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Inbound Wire Transfers to ones belonging to the specified Account. @@ -89,9 +89,9 @@ class InboundWireTransferListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -144,10 +144,10 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Inbound Wire Transfers to those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -155,7 +155,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::InboundWireTransferListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::InboundWireTransferListParams::Status::In] }, api_name: :in # @!parse @@ -167,10 +167,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound Wire Transfer is awaiting action, will transition automatically if no action is taken. PENDING = :pending diff --git a/lib/increase/models/inbound_wire_transfer_retrieve_params.rb b/lib/increase/models/inbound_wire_transfer_retrieve_params.rb index 17cad2e7..a7e168fa 100644 --- a/lib/increase/models/inbound_wire_transfer_retrieve_params.rb +++ b/lib/increase/models/inbound_wire_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::InboundWireTransfers#retrieve - class InboundWireTransferRetrieveParams < Increase::BaseModel + class InboundWireTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_account_enrollment.rb b/lib/increase/models/intrafi_account_enrollment.rb index 66f14b0c..0d387b60 100644 --- a/lib/increase/models/intrafi_account_enrollment.rb +++ b/lib/increase/models/intrafi_account_enrollment.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::IntrafiAccountEnrollments#create - class IntrafiAccountEnrollment < Increase::BaseModel + class IntrafiAccountEnrollment < Increase::Internal::Type::BaseModel # @!attribute id # The identifier of this enrollment at IntraFi. # @@ -71,14 +71,14 @@ class IntrafiAccountEnrollment < Increase::BaseModel # # # def initialize(id:, account_id:, created_at:, idempotency_key:, intrafi_id:, status:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status of the account in the network. An account takes about one business # day to go from `pending_enrolling` to `enrolled`. # # @see Increase::Models::IntrafiAccountEnrollment#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account is being added to the IntraFi network. PENDING_ENROLLING = :pending_enrolling @@ -107,7 +107,7 @@ module Status # # @see Increase::Models::IntrafiAccountEnrollment#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INTRAFI_ACCOUNT_ENROLLMENT = :intrafi_account_enrollment diff --git a/lib/increase/models/intrafi_account_enrollment_create_params.rb b/lib/increase/models/intrafi_account_enrollment_create_params.rb index 3577f371..ea377c05 100644 --- a/lib/increase/models/intrafi_account_enrollment_create_params.rb +++ b/lib/increase/models/intrafi_account_enrollment_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::IntrafiAccountEnrollments#create - class IntrafiAccountEnrollmentCreateParams < Increase::BaseModel + class IntrafiAccountEnrollmentCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier for the account to be added to IntraFi. @@ -27,7 +27,7 @@ class IntrafiAccountEnrollmentCreateParams < Increase::BaseModel # # # def initialize(account_id:, email_address:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_account_enrollment_list_params.rb b/lib/increase/models/intrafi_account_enrollment_list_params.rb index 93b46b48..a5b57483 100644 --- a/lib/increase/models/intrafi_account_enrollment_list_params.rb +++ b/lib/increase/models/intrafi_account_enrollment_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::IntrafiAccountEnrollments#list - class IntrafiAccountEnrollmentListParams < Increase::BaseModel + class IntrafiAccountEnrollmentListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter IntraFi Account Enrollments to the one belonging to an account. @@ -71,9 +71,9 @@ class IntrafiAccountEnrollmentListParams < Increase::BaseModel # # # def initialize(account_id: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter IntraFi Account Enrollments for those with the specified status or # statuses. For GET requests, this should be encoded as a comma-delimited string, @@ -81,7 +81,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::IntrafiAccountEnrollmentListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::IntrafiAccountEnrollmentListParams::Status::In] }, api_name: :in # @!parse @@ -93,10 +93,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account is being added to the IntraFi network. PENDING_ENROLLING = :pending_enrolling diff --git a/lib/increase/models/intrafi_account_enrollment_retrieve_params.rb b/lib/increase/models/intrafi_account_enrollment_retrieve_params.rb index b21e2a6e..4817af39 100644 --- a/lib/increase/models/intrafi_account_enrollment_retrieve_params.rb +++ b/lib/increase/models/intrafi_account_enrollment_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::IntrafiAccountEnrollments#retrieve - class IntrafiAccountEnrollmentRetrieveParams < Increase::BaseModel + class IntrafiAccountEnrollmentRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_account_enrollment_unenroll_params.rb b/lib/increase/models/intrafi_account_enrollment_unenroll_params.rb index e31ab696..4f2664da 100644 --- a/lib/increase/models/intrafi_account_enrollment_unenroll_params.rb +++ b/lib/increase/models/intrafi_account_enrollment_unenroll_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::IntrafiAccountEnrollments#unenroll - class IntrafiAccountEnrollmentUnenrollParams < Increase::BaseModel + class IntrafiAccountEnrollmentUnenrollParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_balance.rb b/lib/increase/models/intrafi_balance.rb index 5329532d..694c20bc 100644 --- a/lib/increase/models/intrafi_balance.rb +++ b/lib/increase/models/intrafi_balance.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::IntrafiBalances#intrafi_balance - class IntrafiBalance < Increase::BaseModel + class IntrafiBalance < Increase::Internal::Type::BaseModel # @!attribute id # The identifier of this balance. # @@ -15,7 +15,7 @@ class IntrafiBalance < Increase::BaseModel # total balance across many participating banks in the network. # # @return [Array] - required :balances, -> { Increase::ArrayOf[Increase::Models::IntrafiBalance::Balance] } + required :balances, -> { Increase::Internal::Type::ArrayOf[Increase::Models::IntrafiBalance::Balance] } # @!attribute currency # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the account @@ -58,9 +58,9 @@ class IntrafiBalance < Increase::BaseModel # # # def initialize(id:, balances:, currency:, effective_date:, total_balance:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Balance < Increase::BaseModel + class Balance < Increase::Internal::Type::BaseModel # @!attribute id # The identifier of this balance. # @@ -102,10 +102,10 @@ class Balance < Increase::BaseModel # # # def initialize(id:, balance:, bank:, bank_location:, fdic_certificate_number:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::IntrafiBalance::Balance#bank_location - class BankLocation < Increase::BaseModel + class BankLocation < Increase::Internal::Type::BaseModel # @!attribute city # The bank's city. # @@ -126,7 +126,7 @@ class BankLocation < Increase::BaseModel # # # def initialize(city:, state:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -135,7 +135,7 @@ class BankLocation < Increase::BaseModel # # @see Increase::Models::IntrafiBalance#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -167,7 +167,7 @@ module Currency # # @see Increase::Models::IntrafiBalance#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INTRAFI_BALANCE = :intrafi_balance diff --git a/lib/increase/models/intrafi_balance_intrafi_balance_params.rb b/lib/increase/models/intrafi_balance_intrafi_balance_params.rb index 6e822efa..aeaf1d5f 100644 --- a/lib/increase/models/intrafi_balance_intrafi_balance_params.rb +++ b/lib/increase/models/intrafi_balance_intrafi_balance_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::IntrafiBalances#intrafi_balance - class IntrafiBalanceIntrafiBalanceParams < Increase::BaseModel + class IntrafiBalanceIntrafiBalanceParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_exclusion.rb b/lib/increase/models/intrafi_exclusion.rb index 7193f96e..f51154f3 100644 --- a/lib/increase/models/intrafi_exclusion.rb +++ b/lib/increase/models/intrafi_exclusion.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::IntrafiExclusions#create - class IntrafiExclusion < Increase::BaseModel + class IntrafiExclusion < Increase::Internal::Type::BaseModel # @!attribute id # The identifier of this exclusion request. # @@ -102,13 +102,13 @@ class IntrafiExclusion < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status of the exclusion request. # # @see Increase::Models::IntrafiExclusion#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The exclusion is being added to the IntraFi network. PENDING = :pending @@ -131,7 +131,7 @@ module Status # # @see Increase::Models::IntrafiExclusion#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INTRAFI_EXCLUSION = :intrafi_exclusion diff --git a/lib/increase/models/intrafi_exclusion_archive_params.rb b/lib/increase/models/intrafi_exclusion_archive_params.rb index 670ec95e..fe8a78f0 100644 --- a/lib/increase/models/intrafi_exclusion_archive_params.rb +++ b/lib/increase/models/intrafi_exclusion_archive_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::IntrafiExclusions#archive - class IntrafiExclusionArchiveParams < Increase::BaseModel + class IntrafiExclusionArchiveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_exclusion_create_params.rb b/lib/increase/models/intrafi_exclusion_create_params.rb index 5e6d2a21..fa079df0 100644 --- a/lib/increase/models/intrafi_exclusion_create_params.rb +++ b/lib/increase/models/intrafi_exclusion_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::IntrafiExclusions#create - class IntrafiExclusionCreateParams < Increase::BaseModel + class IntrafiExclusionCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute bank_name # The name of the financial institution to be excluded. @@ -27,7 +27,7 @@ class IntrafiExclusionCreateParams < Increase::BaseModel # # # def initialize(bank_name:, entity_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_exclusion_list_params.rb b/lib/increase/models/intrafi_exclusion_list_params.rb index 88b3f452..0ee3af08 100644 --- a/lib/increase/models/intrafi_exclusion_list_params.rb +++ b/lib/increase/models/intrafi_exclusion_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::IntrafiExclusions#list - class IntrafiExclusionListParams < Increase::BaseModel + class IntrafiExclusionListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -61,7 +61,7 @@ class IntrafiExclusionListParams < Increase::BaseModel # # # def initialize(cursor: nil, entity_id: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/intrafi_exclusion_retrieve_params.rb b/lib/increase/models/intrafi_exclusion_retrieve_params.rb index 5b4be87b..53145ada 100644 --- a/lib/increase/models/intrafi_exclusion_retrieve_params.rb +++ b/lib/increase/models/intrafi_exclusion_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::IntrafiExclusions#retrieve - class IntrafiExclusionRetrieveParams < Increase::BaseModel + class IntrafiExclusionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/lockbox.rb b/lib/increase/models/lockbox.rb index 3a24a174..e5d05f23 100644 --- a/lib/increase/models/lockbox.rb +++ b/lib/increase/models/lockbox.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Lockboxes#create - class Lockbox < Increase::BaseModel + class Lockbox < Increase::Internal::Type::BaseModel # @!attribute id # The Lockbox identifier. # @@ -92,10 +92,10 @@ class Lockbox < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Lockbox#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the address. # @@ -148,14 +148,14 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, postal_code:, recipient:, state:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # This indicates if mail can be sent to this address. # # @see Increase::Models::Lockbox#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # This Lockbox is active. Checks mailed to it will be deposited automatically. ACTIVE = :active @@ -175,7 +175,7 @@ module Status # # @see Increase::Models::Lockbox#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum LOCKBOX = :lockbox diff --git a/lib/increase/models/lockbox_create_params.rb b/lib/increase/models/lockbox_create_params.rb index 134e83e0..aebca9e3 100644 --- a/lib/increase/models/lockbox_create_params.rb +++ b/lib/increase/models/lockbox_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Lockboxes#create - class LockboxCreateParams < Increase::BaseModel + class LockboxCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The Account checks sent to this Lockbox should be deposited into. @@ -42,7 +42,7 @@ class LockboxCreateParams < Increase::BaseModel # # # def initialize(account_id:, description: nil, recipient_name: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/lockbox_list_params.rb b/lib/increase/models/lockbox_list_params.rb index 6a9e450a..1700fd7a 100644 --- a/lib/increase/models/lockbox_list_params.rb +++ b/lib/increase/models/lockbox_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Lockboxes#list - class LockboxListParams < Increase::BaseModel + class LockboxListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Lockboxes to those associated with the provided Account. @@ -71,9 +71,9 @@ class LockboxListParams < Increase::BaseModel # # # def initialize(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -126,7 +126,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/lockbox_retrieve_params.rb b/lib/increase/models/lockbox_retrieve_params.rb index 432337bb..ab82a8e8 100644 --- a/lib/increase/models/lockbox_retrieve_params.rb +++ b/lib/increase/models/lockbox_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Lockboxes#retrieve - class LockboxRetrieveParams < Increase::BaseModel + class LockboxRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/lockbox_update_params.rb b/lib/increase/models/lockbox_update_params.rb index 0f7cf35f..bb87ca21 100644 --- a/lib/increase/models/lockbox_update_params.rb +++ b/lib/increase/models/lockbox_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Lockboxes#update - class LockboxUpdateParams < Increase::BaseModel + class LockboxUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] description # The description you choose for the Lockbox. @@ -46,11 +46,11 @@ class LockboxUpdateParams < Increase::BaseModel # # # def initialize(description: nil, recipient_name: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # This indicates if checks can be sent to the Lockbox. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # This Lockbox is active. Checks mailed to it will be deposited automatically. ACTIVE = :active diff --git a/lib/increase/models/oauth_application.rb b/lib/increase/models/oauth_application.rb index c27f02d7..547b405c 100644 --- a/lib/increase/models/oauth_application.rb +++ b/lib/increase/models/oauth_application.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::OAuthApplications#retrieve - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute id # The OAuth Application's identifier. # @@ -66,13 +66,13 @@ class OAuthApplication < Increase::BaseModel # # # def initialize(id:, client_id:, created_at:, deleted_at:, name:, status:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether the application is active. # # @see Increase::Models::OAuthApplication#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The application is active and can be used by your users. ACTIVE = :active @@ -92,7 +92,7 @@ module Status # # @see Increase::Models::OAuthApplication#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum OAUTH_APPLICATION = :oauth_application diff --git a/lib/increase/models/oauth_application_list_params.rb b/lib/increase/models/oauth_application_list_params.rb index 07aebffd..7ac743d5 100644 --- a/lib/increase/models/oauth_application_list_params.rb +++ b/lib/increase/models/oauth_application_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::OAuthApplications#list - class OAuthApplicationListParams < Increase::BaseModel + class OAuthApplicationListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -56,9 +56,9 @@ class OAuthApplicationListParams < Increase::BaseModel # # # def initialize(created_at: nil, cursor: nil, limit: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -111,17 +111,17 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::OAuthApplicationListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::OAuthApplicationListParams::Status::In] }, api_name: :in # @!parse @@ -133,10 +133,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The application is active and can be used by your users. ACTIVE = :active diff --git a/lib/increase/models/oauth_application_retrieve_params.rb b/lib/increase/models/oauth_application_retrieve_params.rb index 9b963ab6..fec892fc 100644 --- a/lib/increase/models/oauth_application_retrieve_params.rb +++ b/lib/increase/models/oauth_application_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::OAuthApplications#retrieve - class OAuthApplicationRetrieveParams < Increase::BaseModel + class OAuthApplicationRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/oauth_connection.rb b/lib/increase/models/oauth_connection.rb index 8c8300da..e592c1b5 100644 --- a/lib/increase/models/oauth_connection.rb +++ b/lib/increase/models/oauth_connection.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::OAuthConnections#retrieve - class OAuthConnection < Increase::BaseModel + class OAuthConnection < Increase::Internal::Type::BaseModel # @!attribute id # The OAuth Connection's identifier. # @@ -64,13 +64,13 @@ class OAuthConnection < Increase::BaseModel # # # def initialize(id:, created_at:, deleted_at:, group_id:, oauth_application_id:, status:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether the connection is active. # # @see Increase::Models::OAuthConnection#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The OAuth connection is active. ACTIVE = :active @@ -90,7 +90,7 @@ module Status # # @see Increase::Models::OAuthConnection#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum OAUTH_CONNECTION = :oauth_connection diff --git a/lib/increase/models/oauth_connection_list_params.rb b/lib/increase/models/oauth_connection_list_params.rb index fbe3fbe7..6bffc9d5 100644 --- a/lib/increase/models/oauth_connection_list_params.rb +++ b/lib/increase/models/oauth_connection_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::OAuthConnections#list - class OAuthConnectionListParams < Increase::BaseModel + class OAuthConnectionListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -58,9 +58,9 @@ class OAuthConnectionListParams < Increase::BaseModel # # # def initialize(cursor: nil, limit: nil, oauth_application_id: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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 @@ -68,7 +68,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::OAuthConnectionListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::OAuthConnectionListParams::Status::In] }, api_name: :in # @!parse @@ -80,10 +80,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The OAuth connection is active. ACTIVE = :active diff --git a/lib/increase/models/oauth_connection_retrieve_params.rb b/lib/increase/models/oauth_connection_retrieve_params.rb index 41a2c0c3..46d6658d 100644 --- a/lib/increase/models/oauth_connection_retrieve_params.rb +++ b/lib/increase/models/oauth_connection_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::OAuthConnections#retrieve - class OAuthConnectionRetrieveParams < Increase::BaseModel + class OAuthConnectionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/oauth_token.rb b/lib/increase/models/oauth_token.rb index 1a5ca4df..a7dc5b28 100644 --- a/lib/increase/models/oauth_token.rb +++ b/lib/increase/models/oauth_token.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::OAuthTokens#create - class OAuthToken < Increase::BaseModel + class OAuthToken < Increase::Internal::Type::BaseModel # @!attribute access_token # You may use this token in place of an API key to make OAuth requests on a user's # behalf. @@ -35,13 +35,13 @@ class OAuthToken < Increase::BaseModel # # # def initialize(access_token:, token_type:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of OAuth token. # # @see Increase::Models::OAuthToken#token_type module TokenType - extend Increase::Enum + extend Increase::Internal::Type::Enum BEARER = :bearer @@ -57,7 +57,7 @@ module TokenType # # @see Increase::Models::OAuthToken#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum OAUTH_TOKEN = :oauth_token diff --git a/lib/increase/models/oauth_token_create_params.rb b/lib/increase/models/oauth_token_create_params.rb index 4a15a909..d0b0d366 100644 --- a/lib/increase/models/oauth_token_create_params.rb +++ b/lib/increase/models/oauth_token_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::OAuthTokens#create - class OAuthTokenCreateParams < Increase::BaseModel + class OAuthTokenCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute grant_type # The credential you request in exchange for the code. In Production, this is @@ -70,12 +70,12 @@ class OAuthTokenCreateParams < Increase::BaseModel # # # def initialize(grant_type:, client_id: nil, client_secret: nil, code: nil, production_token: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The credential you request in exchange for the code. In Production, this is # always `authorization_code`. In Sandbox, you can pass either enum value. module GrantType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An OAuth authorization code. AUTHORIZATION_CODE = :authorization_code diff --git a/lib/increase/models/pending_transaction.rb b/lib/increase/models/pending_transaction.rb index f9c42b6d..804189f0 100644 --- a/lib/increase/models/pending_transaction.rb +++ b/lib/increase/models/pending_transaction.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::PendingTransactions#retrieve - class PendingTransaction < Increase::BaseModel + class PendingTransaction < Increase::Internal::Type::BaseModel # @!attribute id # The Pending Transaction identifier. # @@ -123,7 +123,7 @@ class PendingTransaction < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending # Transaction's currency. This will match the currency on the Pending @@ -131,7 +131,7 @@ class PendingTransaction < Increase::BaseModel # # @see Increase::Models::PendingTransaction#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -162,7 +162,7 @@ module Currency # # @see Increase::Models::PendingTransaction#route_type module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An Account Number. ACCOUNT_NUMBER = :account_number @@ -181,7 +181,7 @@ module RouteType end # @see Increase::Models::PendingTransaction#source - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel # @!attribute account_transfer_instruction # 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`. @@ -263,7 +263,7 @@ class Source < Increase::BaseModel # contain an empty object, otherwise it will contain null. # # @return [Object, nil] - required :other, Increase::Unknown, nil?: true + required :other, Increase::Internal::Type::Unknown, nil?: true # @!attribute real_time_payments_transfer_instruction # A Real-Time Payments Transfer Instruction object. This field will be present in @@ -318,10 +318,10 @@ class Source < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::PendingTransaction::Source#account_transfer_instruction - class AccountTransferInstruction < Increase::BaseModel + class AccountTransferInstruction < Increase::Internal::Type::BaseModel # @!attribute amount # The pending amount in the minor unit of the transaction's currency. For dollars, # for example, this is cents. @@ -353,14 +353,14 @@ class AccountTransferInstruction < Increase::BaseModel # # # def initialize(amount:, currency:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination # account currency. # # @see Increase::Models::PendingTransaction::Source::AccountTransferInstruction#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -389,7 +389,7 @@ module Currency end # @see Increase::Models::PendingTransaction::Source#ach_transfer_instruction - class ACHTransferInstruction < Increase::BaseModel + class ACHTransferInstruction < Increase::Internal::Type::BaseModel # @!attribute amount # The pending amount in USD cents. # @@ -411,11 +411,11 @@ class ACHTransferInstruction < Increase::BaseModel # # # def initialize(amount:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::PendingTransaction::Source#card_authorization - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # @!attribute id # The Card Authorization identifier. # @@ -666,14 +666,14 @@ class CardAuthorization < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. # # @see Increase::Models::PendingTransaction::Source::CardAuthorization#actioner module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER = :user @@ -696,7 +696,7 @@ module Actioner # # @see Increase::Models::PendingTransaction::Source::CardAuthorization#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -728,7 +728,7 @@ module Currency # # @see Increase::Models::PendingTransaction::Source::CardAuthorization#direction module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT = :settlement @@ -744,7 +744,7 @@ module Direction end # @see Increase::Models::PendingTransaction::Source::CardAuthorization#network_details - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute category # The payment network used to process this card authorization. # @@ -768,13 +768,13 @@ class NetworkDetails < Increase::BaseModel # # # def initialize(category:, visa:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The payment network used to process this card authorization. # # @see Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -787,7 +787,7 @@ module Category end # @see Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails#visa - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # @!attribute electronic_commerce_indicator # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -825,7 +825,7 @@ class Visa < Increase::BaseModel # # # def initialize(electronic_commerce_indicator:, point_of_service_entry_mode:, stand_in_processing_reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -833,7 +833,7 @@ class Visa < Increase::BaseModel # # @see Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa#electronic_commerce_indicator module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER = :mail_phone_order @@ -872,7 +872,7 @@ module ElectronicCommerceIndicator # # @see Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa#point_of_service_entry_mode module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN = :unknown @@ -916,7 +916,7 @@ module PointOfServiceEntryMode # # @see Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa#stand_in_processing_reason module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR = :issuer_error @@ -951,7 +951,7 @@ module StandInProcessingReason end # @see Increase::Models::PendingTransaction::Source::CardAuthorization#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -983,7 +983,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The processing category describes the intent behind the authorization, such as @@ -991,7 +991,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::PendingTransaction::Source::CardAuthorization#processing_category module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING = :account_funding @@ -1023,7 +1023,7 @@ module ProcessingCategory # # @see Increase::Models::PendingTransaction::Source::CardAuthorization#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHORIZATION = :card_authorization @@ -1035,7 +1035,7 @@ module Type end # @see Increase::Models::PendingTransaction::Source::CardAuthorization#verification - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # @!attribute card_verification_code # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -1060,10 +1060,10 @@ class Verification < Increase::BaseModel # # # def initialize(card_verification_code:, cardholder_address:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::PendingTransaction::Source::CardAuthorization::Verification#card_verification_code - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # @!attribute result # The result of verifying the Card Verification Code. # @@ -1079,13 +1079,13 @@ class CardVerificationCode < Increase::BaseModel # # # def initialize(result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The result of verifying the Card Verification Code. # # @see Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED = :not_checked @@ -1105,7 +1105,7 @@ module Result end # @see Increase::Models::PendingTransaction::Source::CardAuthorization::Verification#cardholder_address - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # @!attribute actual_line1 # Line 1 of the address on file for the cardholder. # @@ -1150,13 +1150,13 @@ class CardholderAddress < Increase::BaseModel # # # def initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The address verification result returned to the card network. # # @see Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED = :not_checked @@ -1191,7 +1191,7 @@ module Result # # @see Increase::Models::PendingTransaction::Source#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. ACCOUNT_TRANSFER_INSTRUCTION = :account_transfer_instruction @@ -1231,7 +1231,7 @@ module Category end # @see Increase::Models::PendingTransaction::Source#check_deposit_instruction - class CheckDepositInstruction < Increase::BaseModel + class CheckDepositInstruction < Increase::Internal::Type::BaseModel # @!attribute amount # The pending amount in USD cents. # @@ -1278,14 +1278,14 @@ class CheckDepositInstruction < Increase::BaseModel # # # def initialize(amount:, back_image_file_id:, check_deposit_id:, currency:, front_image_file_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. # # @see Increase::Models::PendingTransaction::Source::CheckDepositInstruction#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1314,7 +1314,7 @@ module Currency end # @see Increase::Models::PendingTransaction::Source#check_transfer_instruction - class CheckTransferInstruction < Increase::BaseModel + class CheckTransferInstruction < Increase::Internal::Type::BaseModel # @!attribute amount # The transfer amount in USD cents. # @@ -1345,14 +1345,14 @@ class CheckTransferInstruction < Increase::BaseModel # # # def initialize(amount:, currency:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's # currency. # # @see Increase::Models::PendingTransaction::Source::CheckTransferInstruction#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1381,7 +1381,7 @@ module Currency end # @see Increase::Models::PendingTransaction::Source#inbound_funds_hold - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel # @!attribute id # The Inbound Funds Hold identifier. # @@ -1480,14 +1480,14 @@ class InboundFundsHold < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. # # @see Increase::Models::PendingTransaction::Source::InboundFundsHold#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1518,7 +1518,7 @@ module Currency # # @see Increase::Models::PendingTransaction::Source::InboundFundsHold#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD = :held @@ -1538,7 +1538,7 @@ module Status # # @see Increase::Models::PendingTransaction::Source::InboundFundsHold#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD = :inbound_funds_hold @@ -1551,7 +1551,7 @@ module Type end # @see Increase::Models::PendingTransaction::Source#inbound_wire_transfer_reversal - class InboundWireTransferReversal < Increase::BaseModel + class InboundWireTransferReversal < Increase::Internal::Type::BaseModel # @!attribute inbound_wire_transfer_id # The ID of the Inbound Wire Transfer that is being reversed. # @@ -1568,11 +1568,11 @@ class InboundWireTransferReversal < Increase::BaseModel # # # def initialize(inbound_wire_transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::PendingTransaction::Source#real_time_payments_transfer_instruction - class RealTimePaymentsTransferInstruction < Increase::BaseModel + class RealTimePaymentsTransferInstruction < Increase::Internal::Type::BaseModel # @!attribute amount # The transfer amount in USD cents. # @@ -1596,11 +1596,11 @@ class RealTimePaymentsTransferInstruction < Increase::BaseModel # # # def initialize(amount:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::PendingTransaction::Source#wire_transfer_instruction - class WireTransferInstruction < Increase::BaseModel + class WireTransferInstruction < Increase::Internal::Type::BaseModel # @!attribute account_number # The account number for the destination account. # @@ -1644,7 +1644,7 @@ class WireTransferInstruction < Increase::BaseModel # # # def initialize(account_number:, amount:, message_to_recipient:, routing_number:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -1653,7 +1653,7 @@ class WireTransferInstruction < Increase::BaseModel # # @see Increase::Models::PendingTransaction#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Pending Transaction is still awaiting confirmation. PENDING = :pending @@ -1673,7 +1673,7 @@ module Status # # @see Increase::Models::PendingTransaction#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PENDING_TRANSACTION = :pending_transaction diff --git a/lib/increase/models/pending_transaction_list_params.rb b/lib/increase/models/pending_transaction_list_params.rb index 0aa08b67..b5eb679d 100644 --- a/lib/increase/models/pending_transaction_list_params.rb +++ b/lib/increase/models/pending_transaction_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::PendingTransactions#list - class PendingTransactionListParams < Increase::BaseModel + class PendingTransactionListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter pending transactions to those belonging to the specified Account. @@ -100,16 +100,16 @@ class PendingTransactionListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::PendingTransactionListParams::Category::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::PendingTransactionListParams::Category::In] }, api_name: :in # @!parse @@ -121,10 +121,10 @@ class Category < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. ACCOUNT_TRANSFER_INSTRUCTION = :account_transfer_instruction @@ -164,7 +164,7 @@ module In end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -217,10 +217,10 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Pending Transactions for those with the specified status. By default only # Pending Transactions in with status `pending` will be returned. For GET @@ -229,7 +229,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::PendingTransactionListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::PendingTransactionListParams::Status::In] }, api_name: :in # @!parse @@ -241,10 +241,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Pending Transaction is still awaiting confirmation. PENDING = :pending diff --git a/lib/increase/models/pending_transaction_retrieve_params.rb b/lib/increase/models/pending_transaction_retrieve_params.rb index e20212ad..b1fc3a02 100644 --- a/lib/increase/models/pending_transaction_retrieve_params.rb +++ b/lib/increase/models/pending_transaction_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::PendingTransactions#retrieve - class PendingTransactionRetrieveParams < Increase::BaseModel + class PendingTransactionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/physical_card.rb b/lib/increase/models/physical_card.rb index 1f154d49..75dea5f2 100644 --- a/lib/increase/models/physical_card.rb +++ b/lib/increase/models/physical_card.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::PhysicalCards#create - class PhysicalCard < Increase::BaseModel + class PhysicalCard < Increase::Internal::Type::BaseModel # @!attribute id # The physical card identifier. # @@ -94,10 +94,10 @@ class PhysicalCard < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::PhysicalCard#cardholder - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel # @!attribute first_name # The cardholder's first name. # @@ -118,11 +118,11 @@ class Cardholder < Increase::BaseModel # # # def initialize(first_name:, last_name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::PhysicalCard#shipment - class Shipment < Increase::BaseModel + class Shipment < Increase::Internal::Type::BaseModel # @!attribute address # The location to where the card's packing label is addressed. # @@ -157,10 +157,10 @@ class Shipment < Increase::BaseModel # # # def initialize(address:, method_:, status:, tracking:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::PhysicalCard::Shipment#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the shipping address. # @@ -216,14 +216,14 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, line2:, line3:, name:, postal_code:, state:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The shipping method. # # @see Increase::Models::PhysicalCard::Shipment#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # USPS Post with tracking. USPS = :usps @@ -245,7 +245,7 @@ module Method # # @see Increase::Models::PhysicalCard::Shipment#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card has not yet been shipped. PENDING = :pending @@ -276,7 +276,7 @@ module Status end # @see Increase::Models::PhysicalCard::Shipment#tracking - class Tracking < Increase::BaseModel + class Tracking < Increase::Internal::Type::BaseModel # @!attribute number # The tracking number. # @@ -313,7 +313,7 @@ class Tracking < Increase::BaseModel # # # def initialize(number:, return_number:, return_reason:, shipped_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -321,7 +321,7 @@ class Tracking < Increase::BaseModel # # @see Increase::Models::PhysicalCard#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card is active. ACTIVE = :active @@ -344,7 +344,7 @@ module Status # # @see Increase::Models::PhysicalCard#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PHYSICAL_CARD = :physical_card diff --git a/lib/increase/models/physical_card_create_params.rb b/lib/increase/models/physical_card_create_params.rb index f4699bf1..906f750c 100644 --- a/lib/increase/models/physical_card_create_params.rb +++ b/lib/increase/models/physical_card_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::PhysicalCards#create - class PhysicalCardCreateParams < Increase::BaseModel + class PhysicalCardCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute card_id # The underlying card representing this physical card. @@ -46,9 +46,9 @@ class PhysicalCardCreateParams < Increase::BaseModel # # # def initialize(card_id:, cardholder:, shipment:, physical_card_profile_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel # @!attribute first_name # The cardholder's first name. # @@ -69,10 +69,10 @@ class Cardholder < Increase::BaseModel # # # def initialize(first_name:, last_name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Shipment < Increase::BaseModel + class Shipment < Increase::Internal::Type::BaseModel # @!attribute address # The address to where the card should be shipped. # @@ -95,10 +95,10 @@ class Shipment < Increase::BaseModel # # # def initialize(address:, method_:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::PhysicalCardCreateParams::Shipment#address - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # @!attribute city # The city of the shipping address. # @@ -173,14 +173,14 @@ class Address < Increase::BaseModel # # # def initialize(city:, line1:, name:, postal_code:, state:, line2: nil, line3: nil, phone_number: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The shipping method to use. # # @see Increase::Models::PhysicalCardCreateParams::Shipment#method_ module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # USPS Post with tracking. USPS = :usps diff --git a/lib/increase/models/physical_card_list_params.rb b/lib/increase/models/physical_card_list_params.rb index e9cd9abb..720c1cde 100644 --- a/lib/increase/models/physical_card_list_params.rb +++ b/lib/increase/models/physical_card_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::PhysicalCards#list - class PhysicalCardListParams < Increase::BaseModel + class PhysicalCardListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] card_id # Filter Physical Cards to ones belonging to the specified Card. @@ -71,9 +71,9 @@ class PhysicalCardListParams < Increase::BaseModel # # # def initialize(card_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -126,7 +126,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/physical_card_profile.rb b/lib/increase/models/physical_card_profile.rb index b83f3be7..f3695181 100644 --- a/lib/increase/models/physical_card_profile.rb +++ b/lib/increase/models/physical_card_profile.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::PhysicalCardProfiles#create - class PhysicalCardProfile < Increase::BaseModel + class PhysicalCardProfile < Increase::Internal::Type::BaseModel # @!attribute id # The Card Profile identifier. # @@ -66,7 +66,7 @@ class PhysicalCardProfile < Increase::BaseModel # group. # # @return [Boolean] - required :is_default, Increase::BooleanModel + required :is_default, Increase::Internal::Type::BooleanModel # @!attribute status # The status of the Physical Card Profile. @@ -117,13 +117,13 @@ class PhysicalCardProfile < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The creator of this Physical Card Profile. # # @see Increase::Models::PhysicalCardProfile#creator module Creator - extend Increase::Enum + extend Increase::Internal::Type::Enum # This Physical Card Profile was created by Increase. INCREASE = :increase @@ -142,7 +142,7 @@ module Creator # # @see Increase::Models::PhysicalCardProfile#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile has not yet been processed by Increase. PENDING_CREATING = :pending_creating @@ -174,7 +174,7 @@ module Status # # @see Increase::Models::PhysicalCardProfile#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PHYSICAL_CARD_PROFILE = :physical_card_profile diff --git a/lib/increase/models/physical_card_profile_archive_params.rb b/lib/increase/models/physical_card_profile_archive_params.rb index 8f7582a0..ee334ef2 100644 --- a/lib/increase/models/physical_card_profile_archive_params.rb +++ b/lib/increase/models/physical_card_profile_archive_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::PhysicalCardProfiles#archive - class PhysicalCardProfileArchiveParams < Increase::BaseModel + class PhysicalCardProfileArchiveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/physical_card_profile_clone_params.rb b/lib/increase/models/physical_card_profile_clone_params.rb index e71edc42..11904585 100644 --- a/lib/increase/models/physical_card_profile_clone_params.rb +++ b/lib/increase/models/physical_card_profile_clone_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::PhysicalCardProfiles#clone_ - class PhysicalCardProfileCloneParams < Increase::BaseModel + class PhysicalCardProfileCloneParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] carrier_image_file_id # The identifier of the File containing the physical card's carrier image. @@ -79,9 +79,9 @@ class PhysicalCardProfileCloneParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class FrontText < Increase::BaseModel + class FrontText < Increase::Internal::Type::BaseModel # @!attribute line1 # The first line of text on the front of the card. # @@ -109,7 +109,7 @@ class FrontText < Increase::BaseModel # # # def initialize(line1:, line2: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/physical_card_profile_create_params.rb b/lib/increase/models/physical_card_profile_create_params.rb index 12a45897..0b11777e 100644 --- a/lib/increase/models/physical_card_profile_create_params.rb +++ b/lib/increase/models/physical_card_profile_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::PhysicalCardProfiles#create - class PhysicalCardProfileCreateParams < Increase::BaseModel + class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute carrier_image_file_id # The identifier of the File containing the physical card's carrier image. @@ -41,7 +41,7 @@ class PhysicalCardProfileCreateParams < Increase::BaseModel # # # def initialize(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/physical_card_profile_list_params.rb b/lib/increase/models/physical_card_profile_list_params.rb index bef40ecc..53b0d3e4 100644 --- a/lib/increase/models/physical_card_profile_list_params.rb +++ b/lib/increase/models/physical_card_profile_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::PhysicalCardProfiles#list - class PhysicalCardProfileListParams < Increase::BaseModel + class PhysicalCardProfileListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -60,9 +60,9 @@ class PhysicalCardProfileListParams < Increase::BaseModel # # # def initialize(cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Physical Card Profiles for those with the specified statuses. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -70,7 +70,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::PhysicalCardProfileListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::PhysicalCardProfileListParams::Status::In] }, api_name: :in # @!parse @@ -82,10 +82,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile has not yet been processed by Increase. PENDING_CREATING = :pending_creating diff --git a/lib/increase/models/physical_card_profile_retrieve_params.rb b/lib/increase/models/physical_card_profile_retrieve_params.rb index 7ae42e23..caff38ad 100644 --- a/lib/increase/models/physical_card_profile_retrieve_params.rb +++ b/lib/increase/models/physical_card_profile_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::PhysicalCardProfiles#retrieve - class PhysicalCardProfileRetrieveParams < Increase::BaseModel + class PhysicalCardProfileRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/physical_card_retrieve_params.rb b/lib/increase/models/physical_card_retrieve_params.rb index 978e3a95..cbd65467 100644 --- a/lib/increase/models/physical_card_retrieve_params.rb +++ b/lib/increase/models/physical_card_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::PhysicalCards#retrieve - class PhysicalCardRetrieveParams < Increase::BaseModel + class PhysicalCardRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/physical_card_update_params.rb b/lib/increase/models/physical_card_update_params.rb index 937c780c..9f2c486a 100644 --- a/lib/increase/models/physical_card_update_params.rb +++ b/lib/increase/models/physical_card_update_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::PhysicalCards#update - class PhysicalCardUpdateParams < Increase::BaseModel + class PhysicalCardUpdateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute status # The status to update the Physical Card to. @@ -20,11 +20,11 @@ class PhysicalCardUpdateParams < Increase::BaseModel # # # def initialize(status:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status to update the Physical Card to. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card is active. ACTIVE = :active diff --git a/lib/increase/models/program.rb b/lib/increase/models/program.rb index 45f54e8b..b3dd9bd5 100644 --- a/lib/increase/models/program.rb +++ b/lib/increase/models/program.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Programs#retrieve - class Program < Increase::BaseModel + class Program < Increase::Internal::Type::BaseModel # @!attribute id # The Program identifier. # @@ -94,13 +94,13 @@ class Program < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The Bank the Program is with. # # @see Increase::Models::Program#bank module Bank - extend Increase::Enum + extend Increase::Internal::Type::Enum # Core Bank CORE_BANK = :core_bank @@ -123,7 +123,7 @@ module Bank # # @see Increase::Models::Program#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PROGRAM = :program diff --git a/lib/increase/models/program_list_params.rb b/lib/increase/models/program_list_params.rb index 4362914e..5f1e6d60 100644 --- a/lib/increase/models/program_list_params.rb +++ b/lib/increase/models/program_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Programs#list - class ProgramListParams < Increase::BaseModel + class ProgramListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -36,7 +36,7 @@ class ProgramListParams < Increase::BaseModel # # # def initialize(cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/program_retrieve_params.rb b/lib/increase/models/program_retrieve_params.rb index e22c69b5..58c12c28 100644 --- a/lib/increase/models/program_retrieve_params.rb +++ b/lib/increase/models/program_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Programs#retrieve - class ProgramRetrieveParams < Increase::BaseModel + class ProgramRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/proof_of_authorization_request.rb b/lib/increase/models/proof_of_authorization_request.rb index f6adaa2a..85f54015 100644 --- a/lib/increase/models/proof_of_authorization_request.rb +++ b/lib/increase/models/proof_of_authorization_request.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::ProofOfAuthorizationRequests#retrieve - class ProofOfAuthorizationRequest < Increase::BaseModel + class ProofOfAuthorizationRequest < Increase::Internal::Type::BaseModel # @!attribute id # The Proof of Authorization Request identifier. # @@ -15,7 +15,7 @@ class ProofOfAuthorizationRequest < Increase::BaseModel # # @return [Array] required :ach_transfers, - -> { Increase::ArrayOf[Increase::Models::ProofOfAuthorizationRequest::ACHTransfer] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::ProofOfAuthorizationRequest::ACHTransfer] } # @!attribute created_at # The time the Proof of Authorization Request was created. @@ -54,9 +54,9 @@ class ProofOfAuthorizationRequest < Increase::BaseModel # # # def initialize(id:, ach_transfers:, created_at:, due_on:, type:, updated_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class ACHTransfer < Increase::BaseModel + class ACHTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The ACH Transfer identifier. # @@ -68,7 +68,7 @@ class ACHTransfer < Increase::BaseModel # # # def initialize(id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -76,7 +76,7 @@ class ACHTransfer < Increase::BaseModel # # @see Increase::Models::ProofOfAuthorizationRequest#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PROOF_OF_AUTHORIZATION_REQUEST = :proof_of_authorization_request diff --git a/lib/increase/models/proof_of_authorization_request_list_params.rb b/lib/increase/models/proof_of_authorization_request_list_params.rb index 08c935d3..a62be9ca 100644 --- a/lib/increase/models/proof_of_authorization_request_list_params.rb +++ b/lib/increase/models/proof_of_authorization_request_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ProofOfAuthorizationRequests#list - class ProofOfAuthorizationRequestListParams < Increase::BaseModel + class ProofOfAuthorizationRequestListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] created_at # @@ -46,9 +46,9 @@ class ProofOfAuthorizationRequestListParams < Increase::BaseModel # # # def initialize(created_at: nil, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -101,7 +101,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/proof_of_authorization_request_retrieve_params.rb b/lib/increase/models/proof_of_authorization_request_retrieve_params.rb index 7a1f7acd..6bbfbf8d 100644 --- a/lib/increase/models/proof_of_authorization_request_retrieve_params.rb +++ b/lib/increase/models/proof_of_authorization_request_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::ProofOfAuthorizationRequests#retrieve - class ProofOfAuthorizationRequestRetrieveParams < Increase::BaseModel + class ProofOfAuthorizationRequestRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/proof_of_authorization_request_submission.rb b/lib/increase/models/proof_of_authorization_request_submission.rb index cd3fef98..409fcd51 100644 --- a/lib/increase/models/proof_of_authorization_request_submission.rb +++ b/lib/increase/models/proof_of_authorization_request_submission.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::ProofOfAuthorizationRequestSubmissions#create - class ProofOfAuthorizationRequestSubmission < Increase::BaseModel + class ProofOfAuthorizationRequestSubmission < Increase::Internal::Type::BaseModel # @!attribute id # The Proof of Authorization Request Submission identifier. # @@ -62,7 +62,7 @@ class ProofOfAuthorizationRequestSubmission < Increase::BaseModel # Whether the customer has been offboarded. # # @return [Boolean, nil] - required :customer_has_been_offboarded, Increase::BooleanModel, nil?: true + required :customer_has_been_offboarded, Increase::Internal::Type::BooleanModel, nil?: true # @!attribute idempotency_key # The idempotency key you chose for this object. This value is unique across @@ -101,19 +101,23 @@ class ProofOfAuthorizationRequestSubmission < Increase::BaseModel # Whether account ownership was validated via credential (for instance, Plaid). # # @return [Boolean, nil] - required :validated_account_ownership_via_credential, Increase::BooleanModel, nil?: true + required :validated_account_ownership_via_credential, Increase::Internal::Type::BooleanModel, nil?: true # @!attribute validated_account_ownership_with_account_statement # Whether account ownership was validated with an account statement. # # @return [Boolean, nil] - required :validated_account_ownership_with_account_statement, Increase::BooleanModel, nil?: true + required :validated_account_ownership_with_account_statement, + Increase::Internal::Type::BooleanModel, + nil?: true # @!attribute validated_account_ownership_with_microdeposit # Whether account ownership was validated with microdeposit. # # @return [Boolean, nil] - required :validated_account_ownership_with_microdeposit, Increase::BooleanModel, nil?: true + required :validated_account_ownership_with_microdeposit, + Increase::Internal::Type::BooleanModel, + nil?: true # @!parse # # Information submitted in response to a proof of authorization request. Per @@ -165,13 +169,13 @@ class ProofOfAuthorizationRequestSubmission < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Status of the proof of authorization request submission. # # @see Increase::Models::ProofOfAuthorizationRequestSubmission#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The proof of authorization request submission is pending review. PENDING_REVIEW = :pending_review @@ -200,7 +204,7 @@ module Status # # @see Increase::Models::ProofOfAuthorizationRequestSubmission#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PROOF_OF_AUTHORIZATION_REQUEST_SUBMISSION = :proof_of_authorization_request_submission diff --git a/lib/increase/models/proof_of_authorization_request_submission_create_params.rb b/lib/increase/models/proof_of_authorization_request_submission_create_params.rb index 34beecde..791b2313 100644 --- a/lib/increase/models/proof_of_authorization_request_submission_create_params.rb +++ b/lib/increase/models/proof_of_authorization_request_submission_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ProofOfAuthorizationRequestSubmissions#create - class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::BaseModel + class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute authorization_terms # Terms of authorization. @@ -36,7 +36,7 @@ class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::BaseModel # Whether the customer has been offboarded or suspended. # # @return [Boolean] - required :customer_has_been_offboarded, Increase::BooleanModel + required :customer_has_been_offboarded, Increase::Internal::Type::BooleanModel # @!attribute proof_of_authorization_request_id # ID of the proof of authorization request. @@ -48,19 +48,19 @@ class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::BaseModel # Whether the account ownership was validated via credential (e.g. Plaid). # # @return [Boolean] - required :validated_account_ownership_via_credential, Increase::BooleanModel + required :validated_account_ownership_via_credential, Increase::Internal::Type::BooleanModel # @!attribute validated_account_ownership_with_account_statement # Whether the account ownership was validated with an account statement. # # @return [Boolean] - required :validated_account_ownership_with_account_statement, Increase::BooleanModel + required :validated_account_ownership_with_account_statement, Increase::Internal::Type::BooleanModel # @!attribute validated_account_ownership_with_microdeposit # Whether the account ownership was validated with a microdeposit. # # @return [Boolean] - required :validated_account_ownership_with_microdeposit, Increase::BooleanModel + required :validated_account_ownership_with_microdeposit, Increase::Internal::Type::BooleanModel # @!attribute [r] additional_evidence_file_id # File containing additional evidence. @@ -126,7 +126,7 @@ class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/proof_of_authorization_request_submission_list_params.rb b/lib/increase/models/proof_of_authorization_request_submission_list_params.rb index 62392f4b..841a78fe 100644 --- a/lib/increase/models/proof_of_authorization_request_submission_list_params.rb +++ b/lib/increase/models/proof_of_authorization_request_submission_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::ProofOfAuthorizationRequestSubmissions#list - class ProofOfAuthorizationRequestSubmissionListParams < Increase::BaseModel + class ProofOfAuthorizationRequestSubmissionListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -70,7 +70,7 @@ class ProofOfAuthorizationRequestSubmissionListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rb b/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rb index 635e1623..7a81fb1c 100644 --- a/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rb +++ b/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::ProofOfAuthorizationRequestSubmissions#retrieve - class ProofOfAuthorizationRequestSubmissionRetrieveParams < Increase::BaseModel + class ProofOfAuthorizationRequestSubmissionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/real_time_decision.rb b/lib/increase/models/real_time_decision.rb index e227ef68..084db9e0 100644 --- a/lib/increase/models/real_time_decision.rb +++ b/lib/increase/models/real_time_decision.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::RealTimeDecisions#retrieve - class RealTimeDecision < Increase::BaseModel + class RealTimeDecision < Increase::Internal::Type::BaseModel # @!attribute id # The Real-Time Decision identifier. # @@ -112,10 +112,10 @@ class RealTimeDecision < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::RealTimeDecision#card_authentication - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel # @!attribute account_id # The identifier of the Account the card belongs to. # @@ -153,13 +153,13 @@ class CardAuthentication < Increase::BaseModel # # # def initialize(account_id:, card_id:, decision:, upcoming_card_payment_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether or not the authentication attempt was approved. # # @see Increase::Models::RealTimeDecision::CardAuthentication#decision module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authentication attempt without triggering a challenge. APPROVE = :approve @@ -179,7 +179,7 @@ module Decision end # @see Increase::Models::RealTimeDecision#card_authentication_challenge - class CardAuthenticationChallenge < Increase::BaseModel + class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel # @!attribute account_id # The identifier of the Account the card belongs to. # @@ -224,13 +224,13 @@ class CardAuthenticationChallenge < Increase::BaseModel # # # def initialize(account_id:, card_id:, card_payment_id:, one_time_code:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether or not the challenge was delivered to the cardholder. # # @see Increase::Models::RealTimeDecision::CardAuthenticationChallenge#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time code to the cardholder. SUCCESS = :success @@ -247,7 +247,7 @@ module Result end # @see Increase::Models::RealTimeDecision#card_authorization - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # @!attribute account_id # The identifier of the Account the authorization will debit. # @@ -477,13 +477,13 @@ class CardAuthorization < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether or not the authorization was approved. # # @see Increase::Models::RealTimeDecision::CardAuthorization#decision module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authorization. APPROVE = :approve @@ -503,7 +503,7 @@ module Decision # # @see Increase::Models::RealTimeDecision::CardAuthorization#direction module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT = :settlement @@ -519,7 +519,7 @@ module Direction end # @see Increase::Models::RealTimeDecision::CardAuthorization#network_details - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute category # The payment network used to process this card authorization. # @@ -543,13 +543,13 @@ class NetworkDetails < Increase::BaseModel # # # def initialize(category:, visa:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The payment network used to process this card authorization. # # @see Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA = :visa @@ -562,7 +562,7 @@ module Category end # @see Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails#visa - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # @!attribute electronic_commerce_indicator # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -600,7 +600,7 @@ class Visa < Increase::BaseModel # # # def initialize(electronic_commerce_indicator:, point_of_service_entry_mode:, stand_in_processing_reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order @@ -608,7 +608,7 @@ class Visa < Increase::BaseModel # # @see Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa#electronic_commerce_indicator module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER = :mail_phone_order @@ -647,7 +647,7 @@ module ElectronicCommerceIndicator # # @see Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa#point_of_service_entry_mode module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN = :unknown @@ -691,7 +691,7 @@ module PointOfServiceEntryMode # # @see Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa#stand_in_processing_reason module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR = :issuer_error @@ -726,7 +726,7 @@ module StandInProcessingReason end # @see Increase::Models::RealTimeDecision::CardAuthorization#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute retrieval_reference_number # 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 @@ -758,7 +758,7 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(retrieval_reference_number:, trace_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The processing category describes the intent behind the authorization, such as @@ -766,7 +766,7 @@ class NetworkIdentifiers < Increase::BaseModel # # @see Increase::Models::RealTimeDecision::CardAuthorization#processing_category module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING = :account_funding @@ -794,7 +794,7 @@ module ProcessingCategory end # @see Increase::Models::RealTimeDecision::CardAuthorization#request_details - class RequestDetails < Increase::BaseModel + class RequestDetails < Increase::Internal::Type::BaseModel # @!attribute category # The type of this request (e.g., an initial authorization or an incremental # authorization). @@ -815,7 +815,7 @@ class RequestDetails < Increase::BaseModel # Fields specific to the category `initial_authorization`. # # @return [Object, nil] - required :initial_authorization, Increase::Unknown, nil?: true + required :initial_authorization, Increase::Internal::Type::Unknown, nil?: true # @!parse # # Fields specific to the type of request, such as an incremental authorization. @@ -826,14 +826,14 @@ class RequestDetails < Increase::BaseModel # # # def initialize(category:, incremental_authorization:, initial_authorization:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of this request (e.g., an initial authorization or an incremental # authorization). # # @see Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular, standalone authorization. INITIAL_AUTHORIZATION = :initial_authorization @@ -849,7 +849,7 @@ module Category end # @see Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails#incremental_authorization - class IncrementalAuthorization < Increase::BaseModel + class IncrementalAuthorization < Increase::Internal::Type::BaseModel # @!attribute card_payment_id # The card payment for this authorization and increment. # @@ -871,12 +871,12 @@ class IncrementalAuthorization < Increase::BaseModel # # # def initialize(card_payment_id:, original_card_authorization_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end # @see Increase::Models::RealTimeDecision::CardAuthorization#verification - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # @!attribute card_verification_code # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. @@ -901,10 +901,10 @@ class Verification < Increase::BaseModel # # # def initialize(card_verification_code:, cardholder_address:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::RealTimeDecision::CardAuthorization::Verification#card_verification_code - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # @!attribute result # The result of verifying the Card Verification Code. # @@ -920,13 +920,13 @@ class CardVerificationCode < Increase::BaseModel # # # def initialize(result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The result of verifying the Card Verification Code. # # @see Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED = :not_checked @@ -946,7 +946,7 @@ module Result end # @see Increase::Models::RealTimeDecision::CardAuthorization::Verification#cardholder_address - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # @!attribute actual_line1 # Line 1 of the address on file for the cardholder. # @@ -991,13 +991,13 @@ class CardholderAddress < Increase::BaseModel # # # def initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The address verification result returned to the card network. # # @see Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED = :not_checked @@ -1031,7 +1031,7 @@ module Result # # @see Increase::Models::RealTimeDecision#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # A card is being authorized. CARD_AUTHORIZATION_REQUESTED = :card_authorization_requested @@ -1056,7 +1056,7 @@ module Category end # @see Increase::Models::RealTimeDecision#digital_wallet_authentication - class DigitalWalletAuthentication < Increase::BaseModel + class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel # @!attribute card_id # The identifier of the Card that is being tokenized. # @@ -1116,13 +1116,13 @@ class DigitalWalletAuthentication < Increase::BaseModel # # # def initialize(card_id:, channel:, digital_wallet:, email:, one_time_passcode:, phone:, result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The channel to send the card user their one-time passcode. # # @see Increase::Models::RealTimeDecision::DigitalWalletAuthentication#channel module Channel - extend Increase::Enum + extend Increase::Internal::Type::Enum # Send one-time passcodes over SMS. SMS = :sms @@ -1141,7 +1141,7 @@ module Channel # # @see Increase::Models::RealTimeDecision::DigitalWalletAuthentication#digital_wallet module DigitalWallet - extend Increase::Enum + extend Increase::Internal::Type::Enum # Apple Pay APPLE_PAY = :apple_pay @@ -1166,7 +1166,7 @@ module DigitalWallet # # @see Increase::Models::RealTimeDecision::DigitalWalletAuthentication#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time passcode to the cardholder. SUCCESS = :success @@ -1183,7 +1183,7 @@ module Result end # @see Increase::Models::RealTimeDecision#digital_wallet_token - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel # @!attribute card_id # The identifier of the Card that is being tokenized. # @@ -1231,14 +1231,14 @@ class DigitalWalletToken < Increase::BaseModel # # # def initialize(card_id:, card_profile_id:, decision:, device:, digital_wallet:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether or not the provisioning request was approved. This will be null until # the real time decision is responded to. # # @see Increase::Models::RealTimeDecision::DigitalWalletToken#decision module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the provisioning request. APPROVE = :approve @@ -1254,7 +1254,7 @@ module Decision end # @see Increase::Models::RealTimeDecision::DigitalWalletToken#device - class Device < Increase::BaseModel + class Device < Increase::Internal::Type::BaseModel # @!attribute identifier # ID assigned to the device by the digital wallet provider. # @@ -1268,14 +1268,14 @@ class Device < Increase::BaseModel # # # def initialize(identifier:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The digital wallet app being used. # # @see Increase::Models::RealTimeDecision::DigitalWalletToken#digital_wallet module DigitalWallet - extend Increase::Enum + extend Increase::Internal::Type::Enum # Apple Pay APPLE_PAY = :apple_pay @@ -1301,7 +1301,7 @@ module DigitalWallet # # @see Increase::Models::RealTimeDecision#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The decision is pending action via real-time webhook. PENDING = :pending @@ -1324,7 +1324,7 @@ module Status # # @see Increase::Models::RealTimeDecision#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum REAL_TIME_DECISION = :real_time_decision diff --git a/lib/increase/models/real_time_decision_action_params.rb b/lib/increase/models/real_time_decision_action_params.rb index e6f3a4d4..bd7cf7b9 100644 --- a/lib/increase/models/real_time_decision_action_params.rb +++ b/lib/increase/models/real_time_decision_action_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::RealTimeDecisions#action - class RealTimeDecisionActionParams < Increase::BaseModel + class RealTimeDecisionActionParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] card_authentication # If the Real-Time Decision relates to a 3DS card authentication attempt, this @@ -85,9 +85,9 @@ class RealTimeDecisionActionParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel # @!attribute decision # Whether the card authentication attempt should be approved or declined. # @@ -103,13 +103,13 @@ class CardAuthentication < Increase::BaseModel # # # def initialize(decision:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether the card authentication attempt should be approved or declined. # # @see Increase::Models::RealTimeDecisionActionParams::CardAuthentication#decision module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authentication attempt without triggering a challenge. APPROVE = :approve @@ -128,7 +128,7 @@ module Decision end end - class CardAuthenticationChallenge < Increase::BaseModel + class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel # @!attribute result # Whether the card authentication challenge was successfully delivered to the # cardholder. @@ -145,14 +145,14 @@ class CardAuthenticationChallenge < Increase::BaseModel # # # def initialize(result:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether the card authentication challenge was successfully delivered to the # cardholder. # # @see Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time code to the cardholder. SUCCESS = :success @@ -168,7 +168,7 @@ module Result end end - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # @!attribute decision # Whether the card authorization should be approved or declined. # @@ -197,13 +197,13 @@ class CardAuthorization < Increase::BaseModel # # # def initialize(decision:, decline_reason: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether the card authorization should be approved or declined. # # @see Increase::Models::RealTimeDecisionActionParams::CardAuthorization#decision module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authorization. APPROVE = :approve @@ -223,7 +223,7 @@ module Decision # # @see Increase::Models::RealTimeDecisionActionParams::CardAuthorization#decline_reason module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. INSUFFICIENT_FUNDS = :insufficient_funds @@ -251,7 +251,7 @@ module DeclineReason end end - class DigitalWalletAuthentication < Increase::BaseModel + class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel # @!attribute result # Whether your application was able to deliver the one-time passcode. # @@ -278,13 +278,13 @@ class DigitalWalletAuthentication < Increase::BaseModel # # # def initialize(result:, success: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Whether your application was able to deliver the one-time passcode. # # @see Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication#result module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time passcode to the cardholder. SUCCESS = :success @@ -300,7 +300,7 @@ module Result end # @see Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication#success - class Success < Increase::BaseModel + class Success < Increase::Internal::Type::BaseModel # @!attribute [r] email # The email address that was used to verify the cardholder via one-time passcode. # @@ -328,11 +328,11 @@ class Success < Increase::BaseModel # # # def initialize(email: nil, phone: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel # @!attribute [r] approval # If your application approves the provisioning attempt, this contains metadata # about the digital wallet token that will be generated. @@ -364,10 +364,10 @@ class DigitalWalletToken < Increase::BaseModel # # # def initialize(approval: nil, decline: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken#approval - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # @!attribute [r] email # An email address that can be used to verify the cardholder via one-time # passcode. @@ -399,11 +399,11 @@ class Approval < Increase::BaseModel # # # def initialize(email: nil, phone: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken#decline - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel # @!attribute [r] reason # Why the tokenization attempt was declined. This is for logging purposes only and # is not displayed to the end-user. @@ -423,7 +423,7 @@ class Decline < Increase::BaseModel # # # def initialize(reason: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/real_time_decision_retrieve_params.rb b/lib/increase/models/real_time_decision_retrieve_params.rb index fe676796..bdb324d5 100644 --- a/lib/increase/models/real_time_decision_retrieve_params.rb +++ b/lib/increase/models/real_time_decision_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::RealTimeDecisions#retrieve - class RealTimeDecisionRetrieveParams < Increase::BaseModel + class RealTimeDecisionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/real_time_payments_transfer.rb b/lib/increase/models/real_time_payments_transfer.rb index 82c0b193..57889fa2 100644 --- a/lib/increase/models/real_time_payments_transfer.rb +++ b/lib/increase/models/real_time_payments_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::RealTimePaymentsTransfers#create - class RealTimePaymentsTransfer < Increase::BaseModel + class RealTimePaymentsTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The Real-Time Payments Transfer's identifier. # @@ -233,10 +233,10 @@ class RealTimePaymentsTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::RealTimePaymentsTransfer#acknowledgement - class Acknowledgement < Increase::BaseModel + class Acknowledgement < Increase::Internal::Type::BaseModel # @!attribute acknowledged_at # When the transfer was acknowledged. # @@ -251,11 +251,11 @@ class Acknowledgement < Increase::BaseModel # # # def initialize(acknowledged_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::RealTimePaymentsTransfer#approval - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # @!attribute approved_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -279,11 +279,11 @@ class Approval < Increase::BaseModel # # # def initialize(approved_at:, approved_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::RealTimePaymentsTransfer#cancellation - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # @!attribute canceled_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -307,11 +307,11 @@ class Cancellation < Increase::BaseModel # # # def initialize(canceled_at:, canceled_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::RealTimePaymentsTransfer#created_by - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # @!attribute api_key # If present, details about the API key that created the transfer. # @@ -348,10 +348,10 @@ class CreatedBy < Increase::BaseModel # # # def initialize(api_key:, category:, oauth_application:, user:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#api_key - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # @!attribute description # The description set for the API key when it was created. # @@ -365,14 +365,14 @@ class APIKey < Increase::BaseModel # # # def initialize(description:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The type of object that created this transfer. # # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY = :api_key @@ -391,7 +391,7 @@ module Category end # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#oauth_application - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name # The name of the OAuth Application. # @@ -405,11 +405,11 @@ class OAuthApplication < Increase::BaseModel # # # def initialize(name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#user - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # @!attribute email # The email address of the User. # @@ -423,7 +423,7 @@ class User < Increase::BaseModel # # # def initialize(email:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -432,7 +432,7 @@ class User < Increase::BaseModel # # @see Increase::Models::RealTimePaymentsTransfer#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -460,7 +460,7 @@ module Currency end # @see Increase::Models::RealTimePaymentsTransfer#rejection - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel # @!attribute reject_reason_additional_information # Additional information about the rejection provided by the recipient bank when # the `reject_reason_code` is `NARRATIVE`. @@ -493,14 +493,14 @@ class Rejection < Increase::BaseModel # # # def initialize(reject_reason_additional_information:, reject_reason_code:, rejected_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason the transfer was rejected as provided by the recipient bank or the # Real-Time Payments network. # # @see Increase::Models::RealTimePaymentsTransfer::Rejection#reject_reason_code module RejectReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The destination account is closed. Corresponds to the Real-Time Payments reason code `AC04`. ACCOUNT_CLOSED = :account_closed @@ -577,7 +577,7 @@ module RejectReasonCode # # @see Increase::Models::RealTimePaymentsTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL = :pending_approval @@ -611,7 +611,7 @@ module Status end # @see Increase::Models::RealTimePaymentsTransfer#submission - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # @!attribute submitted_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was submitted to The Clearing House. @@ -634,7 +634,7 @@ class Submission < Increase::BaseModel # # # def initialize(submitted_at:, transaction_identification:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -642,7 +642,7 @@ class Submission < Increase::BaseModel # # @see Increase::Models::RealTimePaymentsTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum REAL_TIME_PAYMENTS_TRANSFER = :real_time_payments_transfer diff --git a/lib/increase/models/real_time_payments_transfer_create_params.rb b/lib/increase/models/real_time_payments_transfer_create_params.rb index 5ca3582d..e50e4a02 100644 --- a/lib/increase/models/real_time_payments_transfer_create_params.rb +++ b/lib/increase/models/real_time_payments_transfer_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::RealTimePaymentsTransfers#create - class RealTimePaymentsTransferCreateParams < Increase::BaseModel + class RealTimePaymentsTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute amount # The transfer amount in USD cents. For Real-Time Payments transfers, must be @@ -81,7 +81,7 @@ class RealTimePaymentsTransferCreateParams < Increase::BaseModel # Whether the transfer requires explicit approval via the dashboard or API. # # @return [Boolean, nil] - optional :require_approval, Increase::BooleanModel + optional :require_approval, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -141,7 +141,7 @@ class RealTimePaymentsTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/real_time_payments_transfer_list_params.rb b/lib/increase/models/real_time_payments_transfer_list_params.rb index b992b113..2fbba896 100644 --- a/lib/increase/models/real_time_payments_transfer_list_params.rb +++ b/lib/increase/models/real_time_payments_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::RealTimePaymentsTransfers#list - class RealTimePaymentsTransferListParams < Increase::BaseModel + class RealTimePaymentsTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Real-Time Payments Transfers to those belonging to the specified Account. @@ -105,9 +105,9 @@ class RealTimePaymentsTransferListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -160,17 +160,17 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::RealTimePaymentsTransferListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::RealTimePaymentsTransferListParams::Status::In] }, api_name: :in # @!parse @@ -182,10 +182,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL = :pending_approval diff --git a/lib/increase/models/real_time_payments_transfer_retrieve_params.rb b/lib/increase/models/real_time_payments_transfer_retrieve_params.rb index a45b870f..8dc38ada 100644 --- a/lib/increase/models/real_time_payments_transfer_retrieve_params.rb +++ b/lib/increase/models/real_time_payments_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::RealTimePaymentsTransfers#retrieve - class RealTimePaymentsTransferRetrieveParams < Increase::BaseModel + class RealTimePaymentsTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/routing_number_list_params.rb b/lib/increase/models/routing_number_list_params.rb index 7318ede3..b1ac2f55 100644 --- a/lib/increase/models/routing_number_list_params.rb +++ b/lib/increase/models/routing_number_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::RoutingNumbers#list - class RoutingNumberListParams < Increase::BaseModel + class RoutingNumberListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute routing_number # Filter financial institutions by routing number. @@ -43,7 +43,7 @@ class RoutingNumberListParams < Increase::BaseModel # # # def initialize(routing_number:, cursor: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/routing_number_list_response.rb b/lib/increase/models/routing_number_list_response.rb index c164be21..b91afb9a 100644 --- a/lib/increase/models/routing_number_list_response.rb +++ b/lib/increase/models/routing_number_list_response.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::RoutingNumbers#list - class RoutingNumberListResponse < Increase::BaseModel + class RoutingNumberListResponse < Increase::Internal::Type::BaseModel # @!attribute ach_transfers # This routing number's support for ACH Transfers. # @@ -54,13 +54,13 @@ class RoutingNumberListResponse < Increase::BaseModel # # # def initialize(ach_transfers:, name:, real_time_payments_transfers:, routing_number:, type:, wire_transfers:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # This routing number's support for ACH Transfers. # # @see Increase::Models::RoutingNumberListResponse#ach_transfers module ACHTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum # The routing number can receive this transfer type. SUPPORTED = :supported @@ -79,7 +79,7 @@ module ACHTransfers # # @see Increase::Models::RoutingNumberListResponse#real_time_payments_transfers module RealTimePaymentsTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum # The routing number can receive this transfer type. SUPPORTED = :supported @@ -99,7 +99,7 @@ module RealTimePaymentsTransfers # # @see Increase::Models::RoutingNumberListResponse#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ROUTING_NUMBER = :routing_number @@ -114,7 +114,7 @@ module Type # # @see Increase::Models::RoutingNumberListResponse#wire_transfers module WireTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum # The routing number can receive this transfer type. SUPPORTED = :supported diff --git a/lib/increase/models/simulations/account_statement_create_params.rb b/lib/increase/models/simulations/account_statement_create_params.rb index 8f4aaf02..2cb25a79 100644 --- a/lib/increase/models/simulations/account_statement_create_params.rb +++ b/lib/increase/models/simulations/account_statement_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::AccountStatements#create - class AccountStatementCreateParams < Increase::BaseModel + class AccountStatementCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier of the Account the statement is for. @@ -21,7 +21,7 @@ class AccountStatementCreateParams < Increase::BaseModel # # # def initialize(account_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/account_transfer_complete_params.rb b/lib/increase/models/simulations/account_transfer_complete_params.rb index 9412ea88..12cbe785 100644 --- a/lib/increase/models/simulations/account_transfer_complete_params.rb +++ b/lib/increase/models/simulations/account_transfer_complete_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::AccountTransfers#complete - class AccountTransferCompleteParams < Increase::BaseModel + class AccountTransferCompleteParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/ach_transfer_acknowledge_params.rb b/lib/increase/models/simulations/ach_transfer_acknowledge_params.rb index 3900f9ba..0897f510 100644 --- a/lib/increase/models/simulations/ach_transfer_acknowledge_params.rb +++ b/lib/increase/models/simulations/ach_transfer_acknowledge_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::ACHTransfers#acknowledge - class ACHTransferAcknowledgeParams < Increase::BaseModel + class ACHTransferAcknowledgeParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rb b/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rb index 47f79a00..c67a7635 100644 --- a/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rb +++ b/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::ACHTransfers#create_notification_of_change - class ACHTransferCreateNotificationOfChangeParams < Increase::BaseModel + class ACHTransferCreateNotificationOfChangeParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute change_code # The reason for the notification of change. @@ -29,11 +29,11 @@ class ACHTransferCreateNotificationOfChangeParams < Increase::BaseModel # # # def initialize(change_code:, corrected_data:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason for the notification of change. module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number was incorrect. INCORRECT_ACCOUNT_NUMBER = :incorrect_account_number diff --git a/lib/increase/models/simulations/ach_transfer_return_params.rb b/lib/increase/models/simulations/ach_transfer_return_params.rb index 1ca90316..d7434cfc 100644 --- a/lib/increase/models/simulations/ach_transfer_return_params.rb +++ b/lib/increase/models/simulations/ach_transfer_return_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::ACHTransfers#return_ - class ACHTransferReturnParams < Increase::BaseModel + class ACHTransferReturnParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] reason # The reason why the Federal Reserve or destination bank returned this transfer. @@ -26,12 +26,12 @@ class ACHTransferReturnParams < Increase::BaseModel # # # def initialize(reason: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason why the Federal Reserve or destination bank returned this transfer. # Defaults to `no_account`. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND = :insufficient_fund diff --git a/lib/increase/models/simulations/ach_transfer_settle_params.rb b/lib/increase/models/simulations/ach_transfer_settle_params.rb index 4951230f..94a7c3f0 100644 --- a/lib/increase/models/simulations/ach_transfer_settle_params.rb +++ b/lib/increase/models/simulations/ach_transfer_settle_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::ACHTransfers#settle - class ACHTransferSettleParams < Increase::BaseModel + class ACHTransferSettleParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/ach_transfer_submit_params.rb b/lib/increase/models/simulations/ach_transfer_submit_params.rb index 3a975f25..81f224d5 100644 --- a/lib/increase/models/simulations/ach_transfer_submit_params.rb +++ b/lib/increase/models/simulations/ach_transfer_submit_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::ACHTransfers#submit - class ACHTransferSubmitParams < Increase::BaseModel + class ACHTransferSubmitParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/card_authorization_create_params.rb b/lib/increase/models/simulations/card_authorization_create_params.rb index 9facafc8..daf8ab1e 100644 --- a/lib/increase/models/simulations/card_authorization_create_params.rb +++ b/lib/increase/models/simulations/card_authorization_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardAuthorizations#create - class CardAuthorizationCreateParams < Increase::BaseModel + class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute amount # The authorization amount in cents. @@ -231,12 +231,12 @@ class CardAuthorizationCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Forces a card decline with a specific reason. No real time decision will be # sent. module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account has been closed. ACCOUNT_CLOSED = :account_closed @@ -299,7 +299,7 @@ module DeclineReason # The direction describes the direction the funds will move, either from the # cardholder to the merchant or from the merchant to the cardholder. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT = :settlement @@ -314,7 +314,7 @@ module Direction # def self.values; end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute visa # Fields specific to the Visa network. # @@ -328,10 +328,10 @@ class NetworkDetails < Increase::BaseModel # # # def initialize(visa:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails#visa - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # @!attribute [r] stand_in_processing_reason # The reason code for the stand-in processing. # @@ -350,13 +350,13 @@ class Visa < Increase::BaseModel # # # def initialize(stand_in_processing_reason: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason code for the stand-in processing. # # @see Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa#stand_in_processing_reason module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR = :issuer_error diff --git a/lib/increase/models/simulations/card_authorization_create_response.rb b/lib/increase/models/simulations/card_authorization_create_response.rb index 89425ef7..3708f80b 100644 --- a/lib/increase/models/simulations/card_authorization_create_response.rb +++ b/lib/increase/models/simulations/card_authorization_create_response.rb @@ -4,7 +4,7 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardAuthorizations#create - class CardAuthorizationCreateResponse < Increase::BaseModel + class CardAuthorizationCreateResponse < Increase::Internal::Type::BaseModel # @!attribute declined_transaction # If the authorization attempt fails, this will contain the resulting # [Declined Transaction](#declined-transactions) object. The Declined @@ -37,14 +37,14 @@ class CardAuthorizationCreateResponse < Increase::BaseModel # # # def initialize(declined_transaction:, pending_transaction:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `inbound_card_authorization_simulation_result`. # # @see Increase::Models::Simulations::CardAuthorizationCreateResponse#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_CARD_AUTHORIZATION_SIMULATION_RESULT = :inbound_card_authorization_simulation_result diff --git a/lib/increase/models/simulations/card_authorization_expiration_create_params.rb b/lib/increase/models/simulations/card_authorization_expiration_create_params.rb index c77b6ab8..419ade85 100644 --- a/lib/increase/models/simulations/card_authorization_expiration_create_params.rb +++ b/lib/increase/models/simulations/card_authorization_expiration_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardAuthorizationExpirations#create - class CardAuthorizationExpirationCreateParams < Increase::BaseModel + class CardAuthorizationExpirationCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute card_payment_id # The identifier of the Card Payment to expire. @@ -21,7 +21,7 @@ class CardAuthorizationExpirationCreateParams < Increase::BaseModel # # # def initialize(card_payment_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/card_dispute_action_params.rb b/lib/increase/models/simulations/card_dispute_action_params.rb index 3bc12797..6a8890a2 100644 --- a/lib/increase/models/simulations/card_dispute_action_params.rb +++ b/lib/increase/models/simulations/card_dispute_action_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardDisputes#action - class CardDisputeActionParams < Increase::BaseModel + class CardDisputeActionParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute status # The status to move the dispute to. @@ -32,11 +32,11 @@ class CardDisputeActionParams < Increase::BaseModel # # # def initialize(status:, explanation: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The status to move the dispute to. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase has requested more information related to the Card Dispute from you. PENDING_USER_INFORMATION = :pending_user_information diff --git a/lib/increase/models/simulations/card_fuel_confirmation_create_params.rb b/lib/increase/models/simulations/card_fuel_confirmation_create_params.rb index 258e82c9..ca55d7c8 100644 --- a/lib/increase/models/simulations/card_fuel_confirmation_create_params.rb +++ b/lib/increase/models/simulations/card_fuel_confirmation_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardFuelConfirmations#create - class CardFuelConfirmationCreateParams < Increase::BaseModel + class CardFuelConfirmationCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute amount # The amount of the fuel_confirmation in minor units in the card authorization's @@ -29,7 +29,7 @@ class CardFuelConfirmationCreateParams < Increase::BaseModel # # # def initialize(amount:, card_payment_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/card_increment_create_params.rb b/lib/increase/models/simulations/card_increment_create_params.rb index 0f2561f8..25a63bfe 100644 --- a/lib/increase/models/simulations/card_increment_create_params.rb +++ b/lib/increase/models/simulations/card_increment_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardIncrements#create - class CardIncrementCreateParams < Increase::BaseModel + class CardIncrementCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute amount # The amount of the increment in minor units in the card authorization's currency. @@ -42,7 +42,7 @@ class CardIncrementCreateParams < Increase::BaseModel # # # def initialize(amount:, card_payment_id:, event_subscription_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/card_refund_create_params.rb b/lib/increase/models/simulations/card_refund_create_params.rb index ca568153..8b91c15e 100644 --- a/lib/increase/models/simulations/card_refund_create_params.rb +++ b/lib/increase/models/simulations/card_refund_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardRefunds#create - class CardRefundCreateParams < Increase::BaseModel + class CardRefundCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute transaction_id # The identifier for the Transaction to refund. The Transaction's source must have @@ -22,7 +22,7 @@ class CardRefundCreateParams < Increase::BaseModel # # # def initialize(transaction_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/card_reversal_create_params.rb b/lib/increase/models/simulations/card_reversal_create_params.rb index 9ceba900..67e9f96f 100644 --- a/lib/increase/models/simulations/card_reversal_create_params.rb +++ b/lib/increase/models/simulations/card_reversal_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardReversals#create - class CardReversalCreateParams < Increase::BaseModel + class CardReversalCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute card_payment_id # The identifier of the Card Payment to create a reversal on. @@ -33,7 +33,7 @@ class CardReversalCreateParams < Increase::BaseModel # # # def initialize(card_payment_id:, amount: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/card_settlement_create_params.rb b/lib/increase/models/simulations/card_settlement_create_params.rb index 79fed49f..109cd113 100644 --- a/lib/increase/models/simulations/card_settlement_create_params.rb +++ b/lib/increase/models/simulations/card_settlement_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CardSettlements#create - class CardSettlementCreateParams < Increase::BaseModel + class CardSettlementCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute card_id # The identifier of the Card to create a settlement on. @@ -41,7 +41,7 @@ class CardSettlementCreateParams < Increase::BaseModel # # # def initialize(card_id:, pending_transaction_id:, amount: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/check_deposit_reject_params.rb b/lib/increase/models/simulations/check_deposit_reject_params.rb index 4d210a1c..b22f45b3 100644 --- a/lib/increase/models/simulations/check_deposit_reject_params.rb +++ b/lib/increase/models/simulations/check_deposit_reject_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CheckDeposits#reject - class CheckDepositRejectParams < Increase::BaseModel + class CheckDepositRejectParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/check_deposit_return_params.rb b/lib/increase/models/simulations/check_deposit_return_params.rb index e9c07f54..3e212ad2 100644 --- a/lib/increase/models/simulations/check_deposit_return_params.rb +++ b/lib/increase/models/simulations/check_deposit_return_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CheckDeposits#return_ - class CheckDepositReturnParams < Increase::BaseModel + class CheckDepositReturnParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/check_deposit_submit_params.rb b/lib/increase/models/simulations/check_deposit_submit_params.rb index aa70f81f..9ced014d 100644 --- a/lib/increase/models/simulations/check_deposit_submit_params.rb +++ b/lib/increase/models/simulations/check_deposit_submit_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CheckDeposits#submit - class CheckDepositSubmitParams < Increase::BaseModel + class CheckDepositSubmitParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/check_transfer_mail_params.rb b/lib/increase/models/simulations/check_transfer_mail_params.rb index 670a64d5..a75f677b 100644 --- a/lib/increase/models/simulations/check_transfer_mail_params.rb +++ b/lib/increase/models/simulations/check_transfer_mail_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::CheckTransfers#mail - class CheckTransferMailParams < Increase::BaseModel + class CheckTransferMailParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/digital_wallet_token_request_create_params.rb b/lib/increase/models/simulations/digital_wallet_token_request_create_params.rb index 925dc04b..7a98e29c 100644 --- a/lib/increase/models/simulations/digital_wallet_token_request_create_params.rb +++ b/lib/increase/models/simulations/digital_wallet_token_request_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::DigitalWalletTokenRequests#create - class DigitalWalletTokenRequestCreateParams < Increase::BaseModel + class DigitalWalletTokenRequestCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute card_id # The identifier of the Card to be authorized. @@ -21,7 +21,7 @@ class DigitalWalletTokenRequestCreateParams < Increase::BaseModel # # # def initialize(card_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/digital_wallet_token_request_create_response.rb b/lib/increase/models/simulations/digital_wallet_token_request_create_response.rb index 2eda9f02..0e931368 100644 --- a/lib/increase/models/simulations/digital_wallet_token_request_create_response.rb +++ b/lib/increase/models/simulations/digital_wallet_token_request_create_response.rb @@ -4,7 +4,7 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::DigitalWalletTokenRequests#create - class DigitalWalletTokenRequestCreateResponse < Increase::BaseModel + class DigitalWalletTokenRequestCreateResponse < Increase::Internal::Type::BaseModel # @!attribute decline_reason # If the simulated tokenization attempt was declined, this field contains details # as to why. @@ -37,14 +37,14 @@ class DigitalWalletTokenRequestCreateResponse < Increase::BaseModel # # # def initialize(decline_reason:, digital_wallet_token_id:, type:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # If the simulated tokenization attempt was declined, this field contains details # as to why. # # @see Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse#decline_reason module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is not active. CARD_NOT_ACTIVE = :card_not_active @@ -70,7 +70,7 @@ module DeclineReason # # @see Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_DIGITAL_WALLET_TOKEN_REQUEST_SIMULATION_RESULT = :inbound_digital_wallet_token_request_simulation_result diff --git a/lib/increase/models/simulations/document_create_params.rb b/lib/increase/models/simulations/document_create_params.rb index bbe82a29..4638603b 100644 --- a/lib/increase/models/simulations/document_create_params.rb +++ b/lib/increase/models/simulations/document_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::Documents#create - class DocumentCreateParams < Increase::BaseModel + class DocumentCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier of the Account the tax document is for. @@ -21,7 +21,7 @@ class DocumentCreateParams < Increase::BaseModel # # # def initialize(account_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb b/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb index 3d2708a6..d1b66fdc 100644 --- a/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb +++ b/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundACHTransfers#create - class InboundACHTransferCreateParams < Increase::BaseModel + class InboundACHTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_number_id # The identifier of the Account Number the inbound ACH Transfer is for. @@ -147,11 +147,11 @@ class InboundACHTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The standard entry class code for the transfer. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT = :corporate_credit_or_debit diff --git a/lib/increase/models/simulations/inbound_check_deposit_create_params.rb b/lib/increase/models/simulations/inbound_check_deposit_create_params.rb index 76308582..ca0d07ab 100644 --- a/lib/increase/models/simulations/inbound_check_deposit_create_params.rb +++ b/lib/increase/models/simulations/inbound_check_deposit_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundCheckDeposits#create - class InboundCheckDepositCreateParams < Increase::BaseModel + class InboundCheckDepositCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_number_id # The identifier of the Account Number the Inbound Check Deposit will be against. @@ -35,7 +35,7 @@ class InboundCheckDepositCreateParams < Increase::BaseModel # # # def initialize(account_number_id:, amount:, check_number:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/inbound_funds_hold_release_params.rb b/lib/increase/models/simulations/inbound_funds_hold_release_params.rb index b1279257..48dee960 100644 --- a/lib/increase/models/simulations/inbound_funds_hold_release_params.rb +++ b/lib/increase/models/simulations/inbound_funds_hold_release_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundFundsHolds#release - class InboundFundsHoldReleaseParams < Increase::BaseModel + class InboundFundsHoldReleaseParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/inbound_funds_hold_release_response.rb b/lib/increase/models/simulations/inbound_funds_hold_release_response.rb index 59df940c..bf3471e9 100644 --- a/lib/increase/models/simulations/inbound_funds_hold_release_response.rb +++ b/lib/increase/models/simulations/inbound_funds_hold_release_response.rb @@ -4,7 +4,7 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundFundsHolds#release - class InboundFundsHoldReleaseResponse < Increase::BaseModel + class InboundFundsHoldReleaseResponse < Increase::Internal::Type::BaseModel # @!attribute id # The Inbound Funds Hold identifier. # @@ -101,14 +101,14 @@ class InboundFundsHoldReleaseResponse < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. # # @see Increase::Models::Simulations::InboundFundsHoldReleaseResponse#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -139,7 +139,7 @@ module Currency # # @see Increase::Models::Simulations::InboundFundsHoldReleaseResponse#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD = :held @@ -159,7 +159,7 @@ module Status # # @see Increase::Models::Simulations::InboundFundsHoldReleaseResponse#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD = :inbound_funds_hold diff --git a/lib/increase/models/simulations/inbound_mail_item_create_params.rb b/lib/increase/models/simulations/inbound_mail_item_create_params.rb index 45e46e61..007b1c47 100644 --- a/lib/increase/models/simulations/inbound_mail_item_create_params.rb +++ b/lib/increase/models/simulations/inbound_mail_item_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundMailItems#create - class InboundMailItemCreateParams < Increase::BaseModel + class InboundMailItemCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute amount # The amount of the check to be simulated, in cents. @@ -40,7 +40,7 @@ class InboundMailItemCreateParams < Increase::BaseModel # # # def initialize(amount:, lockbox_id:, contents_file_id: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rb b/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rb index bfbc396c..106ed0ef 100644 --- a/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rb +++ b/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundRealTimePaymentsTransfers#create - class InboundRealTimePaymentsTransferCreateParams < Increase::BaseModel + class InboundRealTimePaymentsTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_number_id # The identifier of the Account Number the inbound Real-Time Payments Transfer is @@ -96,7 +96,7 @@ class InboundRealTimePaymentsTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rb b/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rb index 293ea66f..6a759888 100644 --- a/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rb +++ b/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundWireDrawdownRequests#create - class InboundWireDrawdownRequestCreateParams < Increase::BaseModel + class InboundWireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute amount # The amount being requested in cents. @@ -233,7 +233,7 @@ class InboundWireDrawdownRequestCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/inbound_wire_transfer_create_params.rb b/lib/increase/models/simulations/inbound_wire_transfer_create_params.rb index e82c82c1..c3bb9815 100644 --- a/lib/increase/models/simulations/inbound_wire_transfer_create_params.rb +++ b/lib/increase/models/simulations/inbound_wire_transfer_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InboundWireTransfers#create - class InboundWireTransferCreateParams < Increase::BaseModel + class InboundWireTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_number_id # The identifier of the Account Number the inbound Wire Transfer is for. @@ -230,7 +230,7 @@ class InboundWireTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/interest_payment_create_params.rb b/lib/increase/models/simulations/interest_payment_create_params.rb index cc57b54e..6d905524 100644 --- a/lib/increase/models/simulations/interest_payment_create_params.rb +++ b/lib/increase/models/simulations/interest_payment_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::InterestPayments#create - class InterestPaymentCreateParams < Increase::BaseModel + class InterestPaymentCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier of the Account the Interest Payment should be paid to is for. @@ -71,7 +71,7 @@ class InterestPaymentCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/physical_card_advance_shipment_params.rb b/lib/increase/models/simulations/physical_card_advance_shipment_params.rb index 576ef4af..e4649fa0 100644 --- a/lib/increase/models/simulations/physical_card_advance_shipment_params.rb +++ b/lib/increase/models/simulations/physical_card_advance_shipment_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::PhysicalCards#advance_shipment - class PhysicalCardAdvanceShipmentParams < Increase::BaseModel + class PhysicalCardAdvanceShipmentParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute shipment_status # The shipment status to move the Physical Card to. @@ -22,11 +22,11 @@ class PhysicalCardAdvanceShipmentParams < Increase::BaseModel # # # def initialize(shipment_status:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The shipment status to move the Physical Card to. module ShipmentStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card has not yet been shipped. PENDING = :pending diff --git a/lib/increase/models/simulations/program_create_params.rb b/lib/increase/models/simulations/program_create_params.rb index 26094d1e..925f8a7c 100644 --- a/lib/increase/models/simulations/program_create_params.rb +++ b/lib/increase/models/simulations/program_create_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::Programs#create - class ProgramCreateParams < Increase::BaseModel + class ProgramCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute name # The name of the program being added. @@ -21,7 +21,7 @@ class ProgramCreateParams < Increase::BaseModel # # # def initialize(name:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rb b/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rb index 891e94e0..f4648090 100644 --- a/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rb +++ b/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rb @@ -4,10 +4,10 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::RealTimePaymentsTransfers#complete - class RealTimePaymentsTransferCompleteParams < Increase::BaseModel + class RealTimePaymentsTransferCompleteParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] rejection # If set, the simulation will reject the transfer. @@ -26,9 +26,9 @@ class RealTimePaymentsTransferCompleteParams < Increase::BaseModel # # # def initialize(rejection: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel # @!attribute reject_reason_code # The reason code that the simulated rejection will have. # @@ -43,13 +43,13 @@ class Rejection < Increase::BaseModel # # # def initialize(reject_reason_code:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason code that the simulated rejection will have. # # @see Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection#reject_reason_code module RejectReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The destination account is closed. Corresponds to the Real-Time Payments reason code `AC04`. ACCOUNT_CLOSED = :account_closed diff --git a/lib/increase/models/simulations/wire_transfer_reverse_params.rb b/lib/increase/models/simulations/wire_transfer_reverse_params.rb index 336a2738..a0bc09a1 100644 --- a/lib/increase/models/simulations/wire_transfer_reverse_params.rb +++ b/lib/increase/models/simulations/wire_transfer_reverse_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::WireTransfers#reverse - class WireTransferReverseParams < Increase::BaseModel + class WireTransferReverseParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/simulations/wire_transfer_submit_params.rb b/lib/increase/models/simulations/wire_transfer_submit_params.rb index e8e66b81..ec1cccf1 100644 --- a/lib/increase/models/simulations/wire_transfer_submit_params.rb +++ b/lib/increase/models/simulations/wire_transfer_submit_params.rb @@ -4,17 +4,17 @@ module Increase module Models module Simulations # @see Increase::Resources::Simulations::WireTransfers#submit - class WireTransferSubmitParams < Increase::BaseModel + class WireTransferSubmitParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/supplemental_document_create_params.rb b/lib/increase/models/supplemental_document_create_params.rb index 5413a395..51ef0565 100644 --- a/lib/increase/models/supplemental_document_create_params.rb +++ b/lib/increase/models/supplemental_document_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::SupplementalDocuments#create - class SupplementalDocumentCreateParams < Increase::BaseModel + class SupplementalDocumentCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute entity_id # The identifier of the Entity to associate with the supplemental document. @@ -27,7 +27,7 @@ class SupplementalDocumentCreateParams < Increase::BaseModel # # # def initialize(entity_id:, file_id:, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/supplemental_document_list_params.rb b/lib/increase/models/supplemental_document_list_params.rb index 99bd90e7..31d2e3d5 100644 --- a/lib/increase/models/supplemental_document_list_params.rb +++ b/lib/increase/models/supplemental_document_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::SupplementalDocuments#list - class SupplementalDocumentListParams < Increase::BaseModel + class SupplementalDocumentListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute entity_id # The identifier of the Entity to list supplemental documents for. @@ -57,7 +57,7 @@ class SupplementalDocumentListParams < Increase::BaseModel # # # def initialize(entity_id:, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index 862dd23d..09587cdd 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::Transactions#retrieve - class Transaction < Increase::BaseModel + class Transaction < Increase::Internal::Type::BaseModel # @!attribute id # The Transaction identifier. # @@ -106,7 +106,7 @@ class Transaction < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # Transaction's currency. This will match the currency on the Transaction's @@ -114,7 +114,7 @@ class Transaction < Increase::BaseModel # # @see Increase::Models::Transaction#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -145,7 +145,7 @@ module Currency # # @see Increase::Models::Transaction#route_type module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An Account Number. ACCOUNT_NUMBER = :account_number @@ -164,7 +164,7 @@ module RouteType end # @see Increase::Models::Transaction#source - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel # @!attribute account_transfer_intention # 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 @@ -442,7 +442,7 @@ class Source < Increase::BaseModel # contain an empty object, otherwise it will contain null. # # @return [Object, nil] - required :other, Increase::Unknown, nil?: true + required :other, Increase::Internal::Type::Unknown, nil?: true # @!attribute real_time_payments_transfer_acknowledgement # A Real-Time Payments Transfer Acknowledgement object. This field will be present @@ -547,10 +547,10 @@ class Source < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source#account_transfer_intention - class AccountTransferIntention < Increase::BaseModel + class AccountTransferIntention < Increase::Internal::Type::BaseModel # @!attribute amount # The pending amount in the minor unit of the transaction's currency. For dollars, # for example, this is cents. @@ -604,14 +604,14 @@ class AccountTransferIntention < Increase::BaseModel # # # def initialize(amount:, currency:, description:, destination_account_id:, source_account_id:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination # account currency. # # @see Increase::Models::Transaction::Source::AccountTransferIntention#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -640,7 +640,7 @@ module Currency end # @see Increase::Models::Transaction::Source#ach_transfer_intention - class ACHTransferIntention < Increase::BaseModel + class ACHTransferIntention < Increase::Internal::Type::BaseModel # @!attribute account_number # The account number for the destination account. # @@ -687,11 +687,11 @@ class ACHTransferIntention < Increase::BaseModel # # # def initialize(account_number:, amount:, routing_number:, statement_descriptor:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#ach_transfer_rejection - class ACHTransferRejection < Increase::BaseModel + class ACHTransferRejection < Increase::Internal::Type::BaseModel # @!attribute transfer_id # The identifier of the ACH Transfer that led to this Transaction. # @@ -708,11 +708,11 @@ class ACHTransferRejection < Increase::BaseModel # # # def initialize(transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#ach_transfer_return - class ACHTransferReturn < Increase::BaseModel + class ACHTransferReturn < Increase::Internal::Type::BaseModel # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was created. @@ -782,14 +782,14 @@ class ACHTransferReturn < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Why the ACH Transfer was returned. This reason code is sent by the receiving # bank back to Increase. # # @see Increase::Models::Transaction::Source::ACHTransferReturn#return_reason_code module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND = :insufficient_fund @@ -1013,7 +1013,7 @@ module ReturnReasonCode end # @see Increase::Models::Transaction::Source#card_dispute_acceptance - class CardDisputeAcceptance < Increase::BaseModel + class CardDisputeAcceptance < Increase::Internal::Type::BaseModel # @!attribute accepted_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Card Dispute was accepted. @@ -1045,11 +1045,11 @@ class CardDisputeAcceptance < Increase::BaseModel # # # def initialize(accepted_at:, card_dispute_id:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#card_dispute_loss - class CardDisputeLoss < Increase::BaseModel + class CardDisputeLoss < Increase::Internal::Type::BaseModel # @!attribute card_dispute_id # The identifier of the Card Dispute that was lost. # @@ -1088,11 +1088,11 @@ class CardDisputeLoss < Increase::BaseModel # # # def initialize(card_dispute_id:, explanation:, lost_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#card_refund - class CardRefund < Increase::BaseModel + class CardRefund < Increase::Internal::Type::BaseModel # @!attribute id # The Card Refund identifier. # @@ -1269,10 +1269,10 @@ class CardRefund < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source::CardRefund#cashback - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # @!attribute amount # 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 @@ -1296,13 +1296,13 @@ class Cashback < Increase::BaseModel # # # def initialize(amount:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. # # @see Increase::Models::Transaction::Source::CardRefund::Cashback#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1335,7 +1335,7 @@ module Currency # # @see Increase::Models::Transaction::Source::CardRefund#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1363,7 +1363,7 @@ module Currency end # @see Increase::Models::Transaction::Source::CardRefund#interchange - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # @!attribute amount # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a @@ -1394,14 +1394,14 @@ class Interchange < Increase::BaseModel # # # def initialize(amount:, code:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. # # @see Increase::Models::Transaction::Source::CardRefund::Interchange#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -1430,7 +1430,7 @@ module Currency end # @see Increase::Models::Transaction::Source::CardRefund#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute acquirer_business_id # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -1460,11 +1460,11 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(acquirer_business_id:, acquirer_reference_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source::CardRefund#purchase_details - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # @!attribute car_rental # Fields specific to car rentals. # @@ -1566,10 +1566,10 @@ class PurchaseDetails < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails#car_rental - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # @!attribute car_class_code # Code indicating the vehicle's class. # @@ -1720,13 +1720,13 @@ class CarRental < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (gas, late fee, etc.) being billed. # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -1758,7 +1758,7 @@ module ExtraCharges # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -1775,7 +1775,7 @@ module NoShowIndicator end # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails#lodging - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # @!attribute check_in_date # Date the customer checked in. # @@ -1925,13 +1925,13 @@ class Lodging < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (phone, late check-out, etc.) being billed. # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -1966,7 +1966,7 @@ module ExtraCharges # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -1986,7 +1986,7 @@ module NoShowIndicator # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails#purchase_identifier_format module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT = :free_text @@ -2011,7 +2011,7 @@ module PurchaseIdentifierFormat end # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails#travel - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # @!attribute ancillary # Ancillary purchases in addition to the airfare. # @@ -2091,7 +2091,7 @@ class Travel < Increase::BaseModel # # @return [Array, nil] required :trip_legs, - -> { Increase::ArrayOf[Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg] }, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg] }, nil?: true # @!parse @@ -2128,10 +2128,10 @@ class Travel < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel#ancillary - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # @!attribute connected_ticket_document_number # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the @@ -2159,7 +2159,7 @@ class Ancillary < Increase::BaseModel # # @return [Array] required :services, - -> { Increase::ArrayOf[Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -2187,13 +2187,13 @@ class Ancillary < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates the reason for a credit to the cardholder. # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -2216,7 +2216,7 @@ module CreditReasonIndicator # def self.values; end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # @!attribute category # Category of the ancillary service. # @@ -2237,13 +2237,13 @@ class Service < Increase::BaseModel # # # def initialize(category:, sub_category:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Category of the ancillary service. # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -2330,7 +2330,7 @@ module Category # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -2363,7 +2363,7 @@ module CreditReasonIndicator # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel#restricted_ticket_indicator module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS = :no_restrictions @@ -2382,7 +2382,7 @@ module RestrictedTicketIndicator # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel#ticket_change_indicator module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -2400,7 +2400,7 @@ module TicketChangeIndicator # def self.values; end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # @!attribute carrier_code # Carrier code (e.g., United Airlines, Jet Blue, etc.). # @@ -2459,13 +2459,13 @@ class TripLeg < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates whether a stopover is allowed on this ticket. # # @see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg#stop_over_code module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -2491,7 +2491,7 @@ module StopOverCode # # @see Increase::Models::Transaction::Source::CardRefund#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_REFUND = :card_refund @@ -2504,7 +2504,7 @@ module Type end # @see Increase::Models::Transaction::Source#card_revenue_payment - class CardRevenuePayment < Increase::BaseModel + class CardRevenuePayment < Increase::Internal::Type::BaseModel # @!attribute amount # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. @@ -2550,14 +2550,14 @@ class CardRevenuePayment < Increase::BaseModel # # # def initialize(amount:, currency:, period_end:, period_start:, transacted_on_account_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. # # @see Increase::Models::Transaction::Source::CardRevenuePayment#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -2586,7 +2586,7 @@ module Currency end # @see Increase::Models::Transaction::Source#card_settlement - class CardSettlement < Increase::BaseModel + class CardSettlement < Increase::Internal::Type::BaseModel # @!attribute id # The Card Settlement identifier. # @@ -2782,10 +2782,10 @@ class CardSettlement < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source::CardSettlement#cashback - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # @!attribute amount # 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 @@ -2809,13 +2809,13 @@ class Cashback < Increase::BaseModel # # # def initialize(amount:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. # # @see Increase::Models::Transaction::Source::CardSettlement::Cashback#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -2848,7 +2848,7 @@ module Currency # # @see Increase::Models::Transaction::Source::CardSettlement#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -2876,7 +2876,7 @@ module Currency end # @see Increase::Models::Transaction::Source::CardSettlement#interchange - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # @!attribute amount # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a @@ -2908,14 +2908,14 @@ class Interchange < Increase::BaseModel # # # def initialize(amount:, code:, currency:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. # # @see Increase::Models::Transaction::Source::CardSettlement::Interchange#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -2944,7 +2944,7 @@ module Currency end # @see Increase::Models::Transaction::Source::CardSettlement#network_identifiers - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute acquirer_business_id # A network assigned business ID that identifies the acquirer that processed this # transaction. @@ -2974,11 +2974,11 @@ class NetworkIdentifiers < Increase::BaseModel # # # def initialize(acquirer_business_id:, acquirer_reference_number:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source::CardSettlement#purchase_details - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # @!attribute car_rental # Fields specific to car rentals. # @@ -3080,10 +3080,10 @@ class PurchaseDetails < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails#car_rental - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # @!attribute car_class_code # Code indicating the vehicle's class. # @@ -3234,13 +3234,13 @@ class CarRental < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (gas, late fee, etc.) being billed. # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::CarRental#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -3272,7 +3272,7 @@ module ExtraCharges # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::CarRental#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -3289,7 +3289,7 @@ module NoShowIndicator end # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails#lodging - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # @!attribute check_in_date # Date the customer checked in. # @@ -3439,13 +3439,13 @@ class Lodging < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Additional charges (phone, late check-out, etc.) being billed. # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Lodging#extra_charges module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE = :no_extra_charge @@ -3480,7 +3480,7 @@ module ExtraCharges # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Lodging#no_show_indicator module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE = :not_applicable @@ -3500,7 +3500,7 @@ module NoShowIndicator # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails#purchase_identifier_format module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT = :free_text @@ -3525,7 +3525,7 @@ module PurchaseIdentifierFormat end # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails#travel - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # @!attribute ancillary # Ancillary purchases in addition to the airfare. # @@ -3605,7 +3605,7 @@ class Travel < Increase::BaseModel # # @return [Array, nil] required :trip_legs, - -> { Increase::ArrayOf[Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg] }, + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg] }, nil?: true # @!parse @@ -3642,10 +3642,10 @@ class Travel < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel#ancillary - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # @!attribute connected_ticket_document_number # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the @@ -3673,7 +3673,7 @@ class Ancillary < Increase::BaseModel # # @return [Array] required :services, - -> { Increase::ArrayOf[Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -3701,13 +3701,13 @@ class Ancillary < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates the reason for a credit to the cardholder. # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -3730,7 +3730,7 @@ module CreditReasonIndicator # def self.values; end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # @!attribute category # Category of the ancillary service. # @@ -3751,13 +3751,13 @@ class Service < Increase::BaseModel # # # def initialize(category:, sub_category:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Category of the ancillary service. # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -3844,7 +3844,7 @@ module Category # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel#credit_reason_indicator module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT = :no_credit @@ -3877,7 +3877,7 @@ module CreditReasonIndicator # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel#restricted_ticket_indicator module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS = :no_restrictions @@ -3896,7 +3896,7 @@ module RestrictedTicketIndicator # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel#ticket_change_indicator module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -3914,7 +3914,7 @@ module TicketChangeIndicator # def self.values; end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # @!attribute carrier_code # Carrier code (e.g., United Airlines, Jet Blue, etc.). # @@ -3973,13 +3973,13 @@ class TripLeg < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # Indicates whether a stopover is allowed on this ticket. # # @see Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg#stop_over_code module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE = :none @@ -4005,7 +4005,7 @@ module StopOverCode # # @see Increase::Models::Transaction::Source::CardSettlement#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_SETTLEMENT = :card_settlement @@ -4018,7 +4018,7 @@ module Type end # @see Increase::Models::Transaction::Source#cashback_payment - class CashbackPayment < Increase::BaseModel + class CashbackPayment < Increase::Internal::Type::BaseModel # @!attribute accrued_on_card_id # The card on which the cashback was accrued. # @@ -4065,14 +4065,14 @@ class CashbackPayment < Increase::BaseModel # # # def initialize(accrued_on_card_id:, amount:, currency:, period_end:, period_start:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. # # @see Increase::Models::Transaction::Source::CashbackPayment#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4105,7 +4105,7 @@ module Currency # # @see Increase::Models::Transaction::Source#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Intention: details will be under the `account_transfer_intention` object. ACCOUNT_TRANSFER_INTENTION = :account_transfer_intention @@ -4202,7 +4202,7 @@ module Category end # @see Increase::Models::Transaction::Source#check_deposit_acceptance - class CheckDepositAcceptance < Increase::BaseModel + class CheckDepositAcceptance < Increase::Internal::Type::BaseModel # @!attribute account_number # The account number printed on the check. # @@ -4277,14 +4277,14 @@ class CheckDepositAcceptance < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. # # @see Increase::Models::Transaction::Source::CheckDepositAcceptance#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4313,7 +4313,7 @@ module Currency end # @see Increase::Models::Transaction::Source#check_deposit_return - class CheckDepositReturn < Increase::BaseModel + class CheckDepositReturn < Increase::Internal::Type::BaseModel # @!attribute amount # The returned amount in USD cents. # @@ -4372,14 +4372,14 @@ class CheckDepositReturn < Increase::BaseModel # # # def initialize(amount:, check_deposit_id:, currency:, return_reason:, returned_at:, transaction_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. # # @see Increase::Models::Transaction::Source::CheckDepositReturn#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4411,7 +4411,7 @@ module Currency # # @see Increase::Models::Transaction::Source::CheckDepositReturn#return_reason module ReturnReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check doesn't allow ACH conversion. ACH_CONVERSION_NOT_SUPPORTED = :ach_conversion_not_supported @@ -4500,7 +4500,7 @@ module ReturnReason end # @see Increase::Models::Transaction::Source#check_transfer_deposit - class CheckTransferDeposit < Increase::BaseModel + class CheckTransferDeposit < Increase::Internal::Type::BaseModel # @!attribute back_image_file_id # The identifier of the API File object containing an image of the back of the # deposited check. @@ -4584,14 +4584,14 @@ class CheckTransferDeposit < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # A constant representing the object's type. For this resource it will always be # `check_transfer_deposit`. # # @see Increase::Models::Transaction::Source::CheckTransferDeposit#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_TRANSFER_DEPOSIT = :check_transfer_deposit @@ -4604,7 +4604,7 @@ module Type end # @see Increase::Models::Transaction::Source#fee_payment - class FeePayment < Increase::BaseModel + class FeePayment < Increase::Internal::Type::BaseModel # @!attribute amount # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. @@ -4643,14 +4643,14 @@ class FeePayment < Increase::BaseModel # # # def initialize(amount:, currency:, fee_period_start:, program_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. # # @see Increase::Models::Transaction::Source::FeePayment#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -4679,7 +4679,7 @@ module Currency end # @see Increase::Models::Transaction::Source#inbound_ach_transfer - class InboundACHTransfer < Increase::BaseModel + class InboundACHTransfer < Increase::Internal::Type::BaseModel # @!attribute addenda # Additional information sent from the originator. # @@ -4787,10 +4787,10 @@ class InboundACHTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::Transaction::Source::InboundACHTransfer#addenda - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # @!attribute category # The type of addendum. # @@ -4814,13 +4814,13 @@ class Addenda < Increase::BaseModel # # # def initialize(category:, freeform:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The type of addendum. # # @see Increase::Models::Transaction::Source::InboundACHTransfer::Addenda#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured addendum. FREEFORM = :freeform @@ -4833,13 +4833,13 @@ module Category end # @see Increase::Models::Transaction::Source::InboundACHTransfer::Addenda#freeform - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # @!attribute entries # Each entry represents an addendum received from the originator. # # @return [Array] required :entries, - -> { Increase::ArrayOf[Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry] } + -> { Increase::Internal::Type::ArrayOf[Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry] } # @!parse # # Unstructured `payment_related_information` passed through by the originator. @@ -4848,9 +4848,9 @@ class Freeform < Increase::BaseModel # # # def initialize(entries:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # @!attribute payment_related_information # The payment related information passed in the addendum. # @@ -4862,14 +4862,14 @@ class Entry < Increase::BaseModel # # # def initialize(payment_related_information:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end end # @see Increase::Models::Transaction::Source#inbound_ach_transfer_return_intention - class InboundACHTransferReturnIntention < Increase::BaseModel + class InboundACHTransferReturnIntention < Increase::Internal::Type::BaseModel # @!attribute inbound_ach_transfer_id # The ID of the Inbound ACH Transfer that is being returned. # @@ -4887,11 +4887,11 @@ class InboundACHTransferReturnIntention < Increase::BaseModel # # # def initialize(inbound_ach_transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#inbound_check_adjustment - class InboundCheckAdjustment < Increase::BaseModel + class InboundCheckAdjustment < Increase::Internal::Type::BaseModel # @!attribute adjusted_transaction_id # The ID of the transaction that was adjusted. # @@ -4922,13 +4922,13 @@ class InboundCheckAdjustment < Increase::BaseModel # # # def initialize(adjusted_transaction_id:, amount:, reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The reason for the adjustment. # # @see Increase::Models::Transaction::Source::InboundCheckAdjustment#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The return was initiated too late and the receiving institution has responded with a Late Return Claim. LATE_RETURN = :late_return @@ -4951,7 +4951,7 @@ module Reason end # @see Increase::Models::Transaction::Source#inbound_check_deposit_return_intention - class InboundCheckDepositReturnIntention < Increase::BaseModel + class InboundCheckDepositReturnIntention < Increase::Internal::Type::BaseModel # @!attribute inbound_check_deposit_id # The ID of the Inbound Check Deposit that is being returned. # @@ -4976,11 +4976,11 @@ class InboundCheckDepositReturnIntention < Increase::BaseModel # # # def initialize(inbound_check_deposit_id:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#inbound_real_time_payments_transfer_confirmation - class InboundRealTimePaymentsTransferConfirmation < Increase::BaseModel + class InboundRealTimePaymentsTransferConfirmation < Increase::Internal::Type::BaseModel # @!attribute amount # The amount in the minor unit of the transfer's currency. For dollars, for # example, this is cents. @@ -5070,14 +5070,14 @@ class InboundRealTimePaymentsTransferConfirmation < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's # currency. This will always be "USD" for a Real-Time Payments transfer. # # @see Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferConfirmation#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -5106,7 +5106,7 @@ module Currency end # @see Increase::Models::Transaction::Source#inbound_real_time_payments_transfer_decline - class InboundRealTimePaymentsTransferDecline < Increase::BaseModel + class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel # @!attribute amount # The declined amount in the minor unit of the destination account currency. For # dollars, for example, this is cents. @@ -5204,7 +5204,7 @@ class InboundRealTimePaymentsTransferDecline < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined # transfer's currency. This will always be "USD" for a Real-Time Payments @@ -5212,7 +5212,7 @@ class InboundRealTimePaymentsTransferDecline < Increase::BaseModel # # @see Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferDecline#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -5243,7 +5243,7 @@ module Currency # # @see Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferDecline#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED = :account_number_canceled @@ -5272,7 +5272,7 @@ module Reason end # @see Increase::Models::Transaction::Source#inbound_wire_reversal - class InboundWireReversal < Increase::BaseModel + class InboundWireReversal < Increase::Internal::Type::BaseModel # @!attribute amount # The amount that was reversed in USD cents. # @@ -5428,11 +5428,11 @@ class InboundWireReversal < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#inbound_wire_transfer - class InboundWireTransfer < Increase::BaseModel + class InboundWireTransfer < Increase::Internal::Type::BaseModel # @!attribute amount # The amount in USD cents. # @@ -5601,11 +5601,11 @@ class InboundWireTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#inbound_wire_transfer_reversal - class InboundWireTransferReversal < Increase::BaseModel + class InboundWireTransferReversal < Increase::Internal::Type::BaseModel # @!attribute inbound_wire_transfer_id # The ID of the Inbound Wire Transfer that is being reversed. # @@ -5623,11 +5623,11 @@ class InboundWireTransferReversal < Increase::BaseModel # # # def initialize(inbound_wire_transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#interest_payment - class InterestPayment < Increase::BaseModel + class InterestPayment < Increase::Internal::Type::BaseModel # @!attribute accrued_on_account_id # The account on which the interest was accrued. # @@ -5674,14 +5674,14 @@ class InterestPayment < Increase::BaseModel # # # def initialize(accrued_on_account_id:, amount:, currency:, period_end:, period_start:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. # # @see Increase::Models::Transaction::Source::InterestPayment#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -5710,7 +5710,7 @@ module Currency end # @see Increase::Models::Transaction::Source#internal_source - class InternalSource < Increase::BaseModel + class InternalSource < Increase::Internal::Type::BaseModel # @!attribute amount # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. @@ -5743,14 +5743,14 @@ class InternalSource < Increase::BaseModel # # # def initialize(amount:, currency:, reason:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. # # @see Increase::Models::Transaction::Source::InternalSource#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -5782,7 +5782,7 @@ module Currency # # @see Increase::Models::Transaction::Source::InternalSource#reason module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account closure ACCOUNT_CLOSURE = :account_closure @@ -5838,7 +5838,7 @@ module Reason end # @see Increase::Models::Transaction::Source#real_time_payments_transfer_acknowledgement - class RealTimePaymentsTransferAcknowledgement < Increase::BaseModel + class RealTimePaymentsTransferAcknowledgement < Increase::Internal::Type::BaseModel # @!attribute amount # The transfer amount in USD cents. # @@ -5893,11 +5893,11 @@ class RealTimePaymentsTransferAcknowledgement < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#sample_funds - class SampleFunds < Increase::BaseModel + class SampleFunds < Increase::Internal::Type::BaseModel # @!attribute originator # Where the sample funds came from. # @@ -5913,11 +5913,11 @@ class SampleFunds < Increase::BaseModel # # # def initialize(originator:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::Transaction::Source#wire_transfer_intention - class WireTransferIntention < Increase::BaseModel + class WireTransferIntention < Increase::Internal::Type::BaseModel # @!attribute account_number # The destination account number. # @@ -5961,7 +5961,7 @@ class WireTransferIntention < Increase::BaseModel # # # def initialize(account_number:, amount:, message_to_recipient:, routing_number:, transfer_id:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -5970,7 +5970,7 @@ class WireTransferIntention < Increase::BaseModel # # @see Increase::Models::Transaction#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TRANSACTION = :transaction diff --git a/lib/increase/models/transaction_list_params.rb b/lib/increase/models/transaction_list_params.rb index 2d3a89fa..111e7d69 100644 --- a/lib/increase/models/transaction_list_params.rb +++ b/lib/increase/models/transaction_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::Transactions#list - class TransactionListParams < Increase::BaseModel + class TransactionListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Transactions for those belonging to the specified Account. @@ -90,16 +90,16 @@ class TransactionListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # 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`. # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::TransactionListParams::Category::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::TransactionListParams::Category::In] }, api_name: :in # @!parse @@ -111,10 +111,10 @@ class Category < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Intention: details will be under the `account_transfer_intention` object. ACCOUNT_TRANSFER_INTENTION = :account_transfer_intention @@ -211,7 +211,7 @@ module In end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -264,7 +264,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/transaction_retrieve_params.rb b/lib/increase/models/transaction_retrieve_params.rb index 52b4dd4c..35caded4 100644 --- a/lib/increase/models/transaction_retrieve_params.rb +++ b/lib/increase/models/transaction_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::Transactions#retrieve - class TransactionRetrieveParams < Increase::BaseModel + class TransactionRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/wire_drawdown_request.rb b/lib/increase/models/wire_drawdown_request.rb index a477f1b3..77bb5478 100644 --- a/lib/increase/models/wire_drawdown_request.rb +++ b/lib/increase/models/wire_drawdown_request.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::WireDrawdownRequests#create - class WireDrawdownRequest < Increase::BaseModel + class WireDrawdownRequest < Increase::Internal::Type::BaseModel # @!attribute id # The Wire drawdown request identifier. # @@ -192,13 +192,13 @@ class WireDrawdownRequest < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # The lifecycle status of the drawdown request. # # @see Increase::Models::WireDrawdownRequest#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION = :pending_submission @@ -220,7 +220,7 @@ module Status end # @see Increase::Models::WireDrawdownRequest#submission - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # @!attribute input_message_accountability_data # The input message accountability data (IMAD) uniquely identifying the submission # with Fedwire. @@ -236,7 +236,7 @@ class Submission < Increase::BaseModel # # # def initialize(input_message_accountability_data:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -244,7 +244,7 @@ class Submission < Increase::BaseModel # # @see Increase::Models::WireDrawdownRequest#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum WIRE_DRAWDOWN_REQUEST = :wire_drawdown_request diff --git a/lib/increase/models/wire_drawdown_request_create_params.rb b/lib/increase/models/wire_drawdown_request_create_params.rb index 939dafc9..0108b4b0 100644 --- a/lib/increase/models/wire_drawdown_request_create_params.rb +++ b/lib/increase/models/wire_drawdown_request_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::WireDrawdownRequests#create - class WireDrawdownRequestCreateParams < Increase::BaseModel + class WireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_number_id # The Account Number to which the recipient should send funds. @@ -158,7 +158,7 @@ class WireDrawdownRequestCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/wire_drawdown_request_list_params.rb b/lib/increase/models/wire_drawdown_request_list_params.rb index 6a98abae..e86059bb 100644 --- a/lib/increase/models/wire_drawdown_request_list_params.rb +++ b/lib/increase/models/wire_drawdown_request_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::WireDrawdownRequests#list - class WireDrawdownRequestListParams < Increase::BaseModel + class WireDrawdownRequestListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] cursor # Return the page of entries after this one. @@ -60,9 +60,9 @@ class WireDrawdownRequestListParams < Increase::BaseModel # # # def initialize(cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # @!attribute [r] in_ # Filter Wire Drawdown Requests for those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -70,7 +70,7 @@ class Status < Increase::BaseModel # # @return [Array, nil] optional :in_, - -> { Increase::ArrayOf[enum: Increase::Models::WireDrawdownRequestListParams::Status::In] }, + -> { Increase::Internal::Type::ArrayOf[enum: Increase::Models::WireDrawdownRequestListParams::Status::In] }, api_name: :in # @!parse @@ -82,10 +82,10 @@ class Status < Increase::BaseModel # # # def initialize(in_: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION = :pending_submission diff --git a/lib/increase/models/wire_drawdown_request_retrieve_params.rb b/lib/increase/models/wire_drawdown_request_retrieve_params.rb index 4bf2ff7a..f28cf904 100644 --- a/lib/increase/models/wire_drawdown_request_retrieve_params.rb +++ b/lib/increase/models/wire_drawdown_request_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::WireDrawdownRequests#retrieve - class WireDrawdownRequestRetrieveParams < Increase::BaseModel + class WireDrawdownRequestRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/wire_transfer.rb b/lib/increase/models/wire_transfer.rb index 8134c814..061bea3f 100644 --- a/lib/increase/models/wire_transfer.rb +++ b/lib/increase/models/wire_transfer.rb @@ -3,7 +3,7 @@ module Increase module Models # @see Increase::Resources::WireTransfers#create - class WireTransfer < Increase::BaseModel + class WireTransfer < Increase::Internal::Type::BaseModel # @!attribute id # The wire transfer's identifier. # @@ -258,10 +258,10 @@ class WireTransfer < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::WireTransfer#approval - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # @!attribute approved_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. @@ -285,11 +285,11 @@ class Approval < Increase::BaseModel # # # def initialize(approved_at:, approved_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::WireTransfer#cancellation - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # @!attribute canceled_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. @@ -313,11 +313,11 @@ class Cancellation < Increase::BaseModel # # # def initialize(canceled_at:, canceled_by:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::WireTransfer#created_by - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # @!attribute api_key # If present, details about the API key that created the transfer. # @@ -354,10 +354,10 @@ class CreatedBy < Increase::BaseModel # # # def initialize(api_key:, category:, oauth_application:, user:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void # @see Increase::Models::WireTransfer::CreatedBy#api_key - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # @!attribute description # The description set for the API key when it was created. # @@ -371,14 +371,14 @@ class APIKey < Increase::BaseModel # # # def initialize(description:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The type of object that created this transfer. # # @see Increase::Models::WireTransfer::CreatedBy#category module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY = :api_key @@ -397,7 +397,7 @@ module Category end # @see Increase::Models::WireTransfer::CreatedBy#oauth_application - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name # The name of the OAuth Application. # @@ -411,11 +411,11 @@ class OAuthApplication < Increase::BaseModel # # # def initialize(name:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # @see Increase::Models::WireTransfer::CreatedBy#user - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # @!attribute email # The email address of the User. # @@ -429,7 +429,7 @@ class User < Increase::BaseModel # # # def initialize(email:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end @@ -438,7 +438,7 @@ class User < Increase::BaseModel # # @see Increase::Models::WireTransfer#currency module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD = :CAD @@ -469,7 +469,7 @@ module Currency # # @see Increase::Models::WireTransfer#network module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum WIRE = :wire @@ -481,7 +481,7 @@ module Network end # @see Increase::Models::WireTransfer#reversal - class Reversal < Increase::BaseModel + class Reversal < Increase::Internal::Type::BaseModel # @!attribute amount # The amount that was reversed in USD cents. # @@ -633,14 +633,14 @@ class Reversal < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # The lifecycle status of the transfer. # # @see Increase::Models::WireTransfer#status module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL = :pending_approval @@ -677,7 +677,7 @@ module Status end # @see Increase::Models::WireTransfer#submission - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # @!attribute input_message_accountability_data # The accountability data for the submission. # @@ -699,7 +699,7 @@ class Submission < Increase::BaseModel # # # def initialize(input_message_accountability_data:, submitted_at:, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end # A constant representing the object's type. For this resource it will always be @@ -707,7 +707,7 @@ class Submission < Increase::BaseModel # # @see Increase::Models::WireTransfer#type module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum WIRE_TRANSFER = :wire_transfer diff --git a/lib/increase/models/wire_transfer_approve_params.rb b/lib/increase/models/wire_transfer_approve_params.rb index 45c878bc..d11afa17 100644 --- a/lib/increase/models/wire_transfer_approve_params.rb +++ b/lib/increase/models/wire_transfer_approve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::WireTransfers#approve - class WireTransferApproveParams < Increase::BaseModel + class WireTransferApproveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/wire_transfer_cancel_params.rb b/lib/increase/models/wire_transfer_cancel_params.rb index 3c5b3288..4b81df63 100644 --- a/lib/increase/models/wire_transfer_cancel_params.rb +++ b/lib/increase/models/wire_transfer_cancel_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::WireTransfers#cancel - class WireTransferCancelParams < Increase::BaseModel + class WireTransferCancelParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/wire_transfer_create_params.rb b/lib/increase/models/wire_transfer_create_params.rb index cb89551c..7a899e65 100644 --- a/lib/increase/models/wire_transfer_create_params.rb +++ b/lib/increase/models/wire_transfer_create_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::WireTransfers#create - class WireTransferCreateParams < Increase::BaseModel + class WireTransferCreateParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute account_id # The identifier for the account that will send the transfer. @@ -131,7 +131,7 @@ class WireTransferCreateParams < Increase::BaseModel # Whether the transfer requires explicit approval via the dashboard or API. # # @return [Boolean, nil] - optional :require_approval, Increase::BooleanModel + optional :require_approval, Increase::Internal::Type::BooleanModel # @!parse # # @return [Boolean] @@ -200,7 +200,7 @@ class WireTransferCreateParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/wire_transfer_list_params.rb b/lib/increase/models/wire_transfer_list_params.rb index 2c67cc41..9cef2219 100644 --- a/lib/increase/models/wire_transfer_list_params.rb +++ b/lib/increase/models/wire_transfer_list_params.rb @@ -3,10 +3,10 @@ module Increase module Models # @see Increase::Resources::WireTransfers#list - class WireTransferListParams < Increase::BaseModel + class WireTransferListParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!attribute [r] account_id # Filter Wire Transfers to those belonging to the specified Account. @@ -93,9 +93,9 @@ class WireTransferListParams < Increase::BaseModel # super # end - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # @!attribute [r] after # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. @@ -148,7 +148,7 @@ class CreatedAt < Increase::BaseModel # # # def initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/models/wire_transfer_retrieve_params.rb b/lib/increase/models/wire_transfer_retrieve_params.rb index 88be340c..4f387d64 100644 --- a/lib/increase/models/wire_transfer_retrieve_params.rb +++ b/lib/increase/models/wire_transfer_retrieve_params.rb @@ -3,17 +3,17 @@ module Increase module Models # @see Increase::Resources::WireTransfers#retrieve - class WireTransferRetrieveParams < Increase::BaseModel + class WireTransferRetrieveParams < Increase::Internal::Type::BaseModel # @!parse - # extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + # extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # @!parse # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # # # def initialize(request_options: {}, **) = super - # def initialize: (Hash | Increase::BaseModel) -> void + # def initialize: (Hash | Increase::Internal::Type::BaseModel) -> void end end end diff --git a/lib/increase/page.rb b/lib/increase/page.rb deleted file mode 100644 index 3cf7dc4f..00000000 --- a/lib/increase/page.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -module Increase - # @example - # if page.has_next? - # page = page.next_page - # end - # - # @example - # page.auto_paging_each do |account| - # puts(account) - # end - # - # @example - # accounts = - # page - # .to_enum - # .lazy - # .select { _1.object_id.even? } - # .map(&:itself) - # .take(2) - # .to_a - # - # accounts => Array - class Page - include Increase::Type::BasePage - - # @return [Array, nil] - attr_accessor :data - - # @return [String, nil] - attr_accessor :next_cursor - - # @api private - # - # @param client [Increase::Transport::BaseClient] - # @param req [Hash{Symbol=>Object}] - # @param headers [Hash{String=>String}, Net::HTTPHeader] - # @param page_data [Hash{Symbol=>Object}] - def initialize(client:, req:, headers:, page_data:) - super - model = req.fetch(:model) - - case page_data - in {data: Array | nil => data} - @data = data&.map { Increase::Type::Converter.coerce(model, _1) } - else - end - - case page_data - in {next_cursor: String | nil => next_cursor} - @next_cursor = next_cursor - else - end - end - - # @return [Boolean] - def next_page? - !next_cursor.nil? - end - - # @raise [Increase::HTTP::Error] - # @return [Increase::Page] - def next_page - unless next_page? - message = "No more pages available. Please check #next_page? before calling ##{__method__}" - raise RuntimeError.new(message) - end - - req = Increase::Util.deep_merge(@req, {query: {cursor: next_cursor}}) - @client.request(req) - end - - # @param blk [Proc] - def auto_paging_each(&blk) - unless block_given? - raise ArgumentError.new("A block must be given to ##{__method__}") - end - page = self - loop do - page.data&.each { blk.call(_1) } - break unless page.next_page? - page = page.next_page - end - end - - # @return [String] - def inspect - "#<#{self.class}:0x#{object_id.to_s(16)} data=#{data.inspect} next_cursor=#{next_cursor.inspect}>" - end - end -end diff --git a/lib/increase/request_options.rb b/lib/increase/request_options.rb index a6f1b86a..2687d18a 100644 --- a/lib/increase/request_options.rb +++ b/lib/increase/request_options.rb @@ -6,7 +6,7 @@ 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::BaseModel + class RequestOptions < Increase::Internal::Type::BaseModel # @api private # # @param opts [Increase::RequestOptions, Hash{Symbol=>Object}] @@ -37,21 +37,21 @@ def self.validate!(opts) # `query` given at the client level. # # @return [Hash{String=>Array, String, nil}, nil] - optional :extra_query, Increase::HashOf[Increase::ArrayOf[String]] + optional :extra_query, Increase::Internal::Type::HashOf[Increase::Internal::Type::ArrayOf[String]] # @!attribute extra_headers # Extra headers to send with the request. These are `.merged`’d into any # `extra_headers` given at the client level. # # @return [Hash{String=>String, nil}, nil] - optional :extra_headers, Increase::HashOf[String, nil?: true] + optional :extra_headers, Increase::Internal::Type::HashOf[String, nil?: true] # @!attribute extra_body # Extra data to send with the request. These are deep merged into any data # generated as part of the normal request. # # @return [Object, nil] - optional :extra_body, Increase::HashOf[Increase::Unknown] + optional :extra_body, Increase::Internal::Type::HashOf[Increase::Internal::Type::Unknown] # @!attribute max_retries # Maximum number of retries to attempt after a failed initial request. diff --git a/lib/increase/resources/account_numbers.rb b/lib/increase/resources/account_numbers.rb index c137d262..088feb21 100644 --- a/lib/increase/resources/account_numbers.rb +++ b/lib/increase/resources/account_numbers.rb @@ -84,7 +84,7 @@ def update(account_number_id, params = {}) # @param status [Increase::Models::AccountNumberListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::AccountNumberListParams def list(params = {}) @@ -93,7 +93,7 @@ def list(params = {}) method: :get, path: "account_numbers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::AccountNumber, options: options ) diff --git a/lib/increase/resources/account_statements.rb b/lib/increase/resources/account_statements.rb index 5abf631a..4badaedc 100644 --- a/lib/increase/resources/account_statements.rb +++ b/lib/increase/resources/account_statements.rb @@ -32,7 +32,7 @@ def retrieve(account_statement_id, params = {}) # @param statement_period_start [Increase::Models::AccountStatementListParams::StatementPeriodStart] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::AccountStatementListParams def list(params = {}) @@ -41,7 +41,7 @@ def list(params = {}) method: :get, path: "account_statements", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::AccountStatement, options: options ) diff --git a/lib/increase/resources/account_transfers.rb b/lib/increase/resources/account_transfers.rb index 6fc12d93..e4e466e3 100644 --- a/lib/increase/resources/account_transfers.rb +++ b/lib/increase/resources/account_transfers.rb @@ -58,7 +58,7 @@ def retrieve(account_transfer_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::AccountTransferListParams def list(params = {}) @@ -67,7 +67,7 @@ def list(params = {}) method: :get, path: "account_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::AccountTransfer, options: options ) diff --git a/lib/increase/resources/accounts.rb b/lib/increase/resources/accounts.rb index cf975e4c..7819a295 100644 --- a/lib/increase/resources/accounts.rb +++ b/lib/increase/resources/accounts.rb @@ -82,7 +82,7 @@ def update(account_id, params = {}) # @param status [Increase::Models::AccountListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::AccountListParams def list(params = {}) @@ -91,7 +91,7 @@ def list(params = {}) method: :get, path: "accounts", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Account, options: options ) diff --git a/lib/increase/resources/ach_prenotifications.rb b/lib/increase/resources/ach_prenotifications.rb index 793548ca..7e9c013d 100644 --- a/lib/increase/resources/ach_prenotifications.rb +++ b/lib/increase/resources/ach_prenotifications.rb @@ -65,7 +65,7 @@ def retrieve(ach_prenotification_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::ACHPrenotificationListParams def list(params = {}) @@ -74,7 +74,7 @@ def list(params = {}) method: :get, path: "ach_prenotifications", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::ACHPrenotification, options: options ) diff --git a/lib/increase/resources/ach_transfers.rb b/lib/increase/resources/ach_transfers.rb index 4998f110..89005fda 100644 --- a/lib/increase/resources/ach_transfers.rb +++ b/lib/increase/resources/ach_transfers.rb @@ -74,7 +74,7 @@ def retrieve(ach_transfer_id, params = {}) # @param status [Increase::Models::ACHTransferListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::ACHTransferListParams def list(params = {}) @@ -83,7 +83,7 @@ def list(params = {}) method: :get, path: "ach_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::ACHTransfer, options: options ) diff --git a/lib/increase/resources/bookkeeping_accounts.rb b/lib/increase/resources/bookkeeping_accounts.rb index eb750745..1b519d3f 100644 --- a/lib/increase/resources/bookkeeping_accounts.rb +++ b/lib/increase/resources/bookkeeping_accounts.rb @@ -58,7 +58,7 @@ def update(bookkeeping_account_id, params) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::BookkeepingAccountListParams def list(params = {}) @@ -67,7 +67,7 @@ def list(params = {}) method: :get, path: "bookkeeping_accounts", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::BookkeepingAccount, options: options ) diff --git a/lib/increase/resources/bookkeeping_entries.rb b/lib/increase/resources/bookkeeping_entries.rb index 16004576..52bb2b68 100644 --- a/lib/increase/resources/bookkeeping_entries.rb +++ b/lib/increase/resources/bookkeeping_entries.rb @@ -31,7 +31,7 @@ def retrieve(bookkeeping_entry_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::BookkeepingEntryListParams def list(params = {}) @@ -40,7 +40,7 @@ def list(params = {}) method: :get, path: "bookkeeping_entries", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::BookkeepingEntry, options: options ) diff --git a/lib/increase/resources/bookkeeping_entry_sets.rb b/lib/increase/resources/bookkeeping_entry_sets.rb index 57db8b86..096b896f 100644 --- a/lib/increase/resources/bookkeeping_entry_sets.rb +++ b/lib/increase/resources/bookkeeping_entry_sets.rb @@ -55,7 +55,7 @@ def retrieve(bookkeeping_entry_set_id, params = {}) # @param transaction_id [String] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::BookkeepingEntrySetListParams def list(params = {}) @@ -64,7 +64,7 @@ def list(params = {}) method: :get, path: "bookkeeping_entry_sets", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::BookkeepingEntrySet, options: options ) diff --git a/lib/increase/resources/card_disputes.rb b/lib/increase/resources/card_disputes.rb index dd551494..e78b5145 100644 --- a/lib/increase/resources/card_disputes.rb +++ b/lib/increase/resources/card_disputes.rb @@ -56,7 +56,7 @@ def retrieve(card_dispute_id, params = {}) # @param status [Increase::Models::CardDisputeListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::CardDisputeListParams def list(params = {}) @@ -65,7 +65,7 @@ def list(params = {}) method: :get, path: "card_disputes", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::CardDispute, options: options ) diff --git a/lib/increase/resources/card_payments.rb b/lib/increase/resources/card_payments.rb index 5be8dc14..d55e1da1 100644 --- a/lib/increase/resources/card_payments.rb +++ b/lib/increase/resources/card_payments.rb @@ -33,7 +33,7 @@ def retrieve(card_payment_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::CardPaymentListParams def list(params = {}) @@ -42,7 +42,7 @@ def list(params = {}) method: :get, path: "card_payments", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::CardPayment, options: options ) diff --git a/lib/increase/resources/card_purchase_supplements.rb b/lib/increase/resources/card_purchase_supplements.rb index 0b3f9a3d..c4e45e94 100644 --- a/lib/increase/resources/card_purchase_supplements.rb +++ b/lib/increase/resources/card_purchase_supplements.rb @@ -32,7 +32,7 @@ def retrieve(card_purchase_supplement_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::CardPurchaseSupplementListParams def list(params = {}) @@ -41,7 +41,7 @@ def list(params = {}) method: :get, path: "card_purchase_supplements", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::CardPurchaseSupplement, options: options ) diff --git a/lib/increase/resources/cards.rb b/lib/increase/resources/cards.rb index b9c84c27..44159ef0 100644 --- a/lib/increase/resources/cards.rb +++ b/lib/increase/resources/cards.rb @@ -85,7 +85,7 @@ def update(card_id, params = {}) # @param status [Increase::Models::CardListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::CardListParams def list(params = {}) @@ -94,7 +94,7 @@ def list(params = {}) method: :get, path: "cards", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Card, options: options ) diff --git a/lib/increase/resources/check_deposits.rb b/lib/increase/resources/check_deposits.rb index 17f4426d..80baed7e 100644 --- a/lib/increase/resources/check_deposits.rb +++ b/lib/increase/resources/check_deposits.rb @@ -58,7 +58,7 @@ def retrieve(check_deposit_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::CheckDepositListParams def list(params = {}) @@ -67,7 +67,7 @@ def list(params = {}) method: :get, path: "check_deposits", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::CheckDeposit, options: options ) diff --git a/lib/increase/resources/check_transfers.rb b/lib/increase/resources/check_transfers.rb index fc8b032d..29f93b6d 100644 --- a/lib/increase/resources/check_transfers.rb +++ b/lib/increase/resources/check_transfers.rb @@ -61,7 +61,7 @@ def retrieve(check_transfer_id, params = {}) # @param status [Increase::Models::CheckTransferListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::CheckTransferListParams def list(params = {}) @@ -70,7 +70,7 @@ def list(params = {}) method: :get, path: "check_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::CheckTransfer, options: options ) diff --git a/lib/increase/resources/declined_transactions.rb b/lib/increase/resources/declined_transactions.rb index dec1d29f..d5d3a4b6 100644 --- a/lib/increase/resources/declined_transactions.rb +++ b/lib/increase/resources/declined_transactions.rb @@ -34,7 +34,7 @@ def retrieve(declined_transaction_id, params = {}) # @param route_id [String] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::DeclinedTransactionListParams def list(params = {}) @@ -43,7 +43,7 @@ def list(params = {}) method: :get, path: "declined_transactions", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::DeclinedTransaction, options: options ) diff --git a/lib/increase/resources/digital_card_profiles.rb b/lib/increase/resources/digital_card_profiles.rb index c3b4c608..abb925e9 100644 --- a/lib/increase/resources/digital_card_profiles.rb +++ b/lib/increase/resources/digital_card_profiles.rb @@ -61,7 +61,7 @@ def retrieve(digital_card_profile_id, params = {}) # @param status [Increase::Models::DigitalCardProfileListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::DigitalCardProfileListParams def list(params = {}) @@ -70,7 +70,7 @@ def list(params = {}) method: :get, path: "digital_card_profiles", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::DigitalCardProfile, options: options ) diff --git a/lib/increase/resources/digital_wallet_tokens.rb b/lib/increase/resources/digital_wallet_tokens.rb index 4690a127..393b944d 100644 --- a/lib/increase/resources/digital_wallet_tokens.rb +++ b/lib/increase/resources/digital_wallet_tokens.rb @@ -32,7 +32,7 @@ def retrieve(digital_wallet_token_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::DigitalWalletTokenListParams def list(params = {}) @@ -41,7 +41,7 @@ def list(params = {}) method: :get, path: "digital_wallet_tokens", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::DigitalWalletToken, options: options ) diff --git a/lib/increase/resources/documents.rb b/lib/increase/resources/documents.rb index c8147590..182bda68 100644 --- a/lib/increase/resources/documents.rb +++ b/lib/increase/resources/documents.rb @@ -33,7 +33,7 @@ def retrieve(document_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::DocumentListParams def list(params = {}) @@ -42,7 +42,7 @@ def list(params = {}) method: :get, path: "documents", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Document, options: options ) diff --git a/lib/increase/resources/entities.rb b/lib/increase/resources/entities.rb index 03a1f754..3a662603 100644 --- a/lib/increase/resources/entities.rb +++ b/lib/increase/resources/entities.rb @@ -62,7 +62,7 @@ def retrieve(entity_id, params = {}) # @param status [Increase::Models::EntityListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::EntityListParams def list(params = {}) @@ -71,7 +71,7 @@ def list(params = {}) method: :get, path: "entities", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Entity, options: options ) diff --git a/lib/increase/resources/event_subscriptions.rb b/lib/increase/resources/event_subscriptions.rb index 59189f8b..0af3e318 100644 --- a/lib/increase/resources/event_subscriptions.rb +++ b/lib/increase/resources/event_subscriptions.rb @@ -77,7 +77,7 @@ def update(event_subscription_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::EventSubscriptionListParams def list(params = {}) @@ -86,7 +86,7 @@ def list(params = {}) method: :get, path: "event_subscriptions", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::EventSubscription, options: options ) diff --git a/lib/increase/resources/events.rb b/lib/increase/resources/events.rb index 48fe4434..7db780c7 100644 --- a/lib/increase/resources/events.rb +++ b/lib/increase/resources/events.rb @@ -33,7 +33,7 @@ def retrieve(event_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::EventListParams def list(params = {}) @@ -42,7 +42,7 @@ def list(params = {}) method: :get, path: "events", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Event, options: options ) diff --git a/lib/increase/resources/exports.rb b/lib/increase/resources/exports.rb index 2cee22cb..05dd1500 100644 --- a/lib/increase/resources/exports.rb +++ b/lib/increase/resources/exports.rb @@ -61,7 +61,7 @@ def retrieve(export_id, params = {}) # @param status [Increase::Models::ExportListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::ExportListParams def list(params = {}) @@ -70,7 +70,7 @@ def list(params = {}) method: :get, path: "exports", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Export, options: options ) diff --git a/lib/increase/resources/external_accounts.rb b/lib/increase/resources/external_accounts.rb index 902bbeee..bd43295b 100644 --- a/lib/increase/resources/external_accounts.rb +++ b/lib/increase/resources/external_accounts.rb @@ -83,7 +83,7 @@ def update(external_account_id, params = {}) # @param status [Increase::Models::ExternalAccountListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::ExternalAccountListParams def list(params = {}) @@ -92,7 +92,7 @@ def list(params = {}) method: :get, path: "external_accounts", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::ExternalAccount, options: options ) diff --git a/lib/increase/resources/files.rb b/lib/increase/resources/files.rb index cf2deaad..38376a05 100644 --- a/lib/increase/resources/files.rb +++ b/lib/increase/resources/files.rb @@ -59,7 +59,7 @@ def retrieve(file_id, params = {}) # @param purpose [Increase::Models::FileListParams::Purpose] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::FileListParams def list(params = {}) @@ -68,7 +68,7 @@ def list(params = {}) method: :get, path: "files", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::File, options: options ) diff --git a/lib/increase/resources/inbound_ach_transfers.rb b/lib/increase/resources/inbound_ach_transfers.rb index 39ea1cc6..75e0466f 100644 --- a/lib/increase/resources/inbound_ach_transfers.rb +++ b/lib/increase/resources/inbound_ach_transfers.rb @@ -34,7 +34,7 @@ def retrieve(inbound_ach_transfer_id, params = {}) # @param status [Increase::Models::InboundACHTransferListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::InboundACHTransferListParams def list(params = {}) @@ -43,7 +43,7 @@ def list(params = {}) method: :get, path: "inbound_ach_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::InboundACHTransfer, options: options ) diff --git a/lib/increase/resources/inbound_check_deposits.rb b/lib/increase/resources/inbound_check_deposits.rb index 8cdb33d2..016e5dde 100644 --- a/lib/increase/resources/inbound_check_deposits.rb +++ b/lib/increase/resources/inbound_check_deposits.rb @@ -33,7 +33,7 @@ def retrieve(inbound_check_deposit_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::InboundCheckDepositListParams def list(params = {}) @@ -42,7 +42,7 @@ def list(params = {}) method: :get, path: "inbound_check_deposits", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::InboundCheckDeposit, options: options ) diff --git a/lib/increase/resources/inbound_mail_items.rb b/lib/increase/resources/inbound_mail_items.rb index 92009576..9206ec9e 100644 --- a/lib/increase/resources/inbound_mail_items.rb +++ b/lib/increase/resources/inbound_mail_items.rb @@ -32,7 +32,7 @@ def retrieve(inbound_mail_item_id, params = {}) # @param lockbox_id [String] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::InboundMailItemListParams def list(params = {}) @@ -41,7 +41,7 @@ def list(params = {}) method: :get, path: "inbound_mail_items", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::InboundMailItem, options: options ) diff --git a/lib/increase/resources/inbound_real_time_payments_transfers.rb b/lib/increase/resources/inbound_real_time_payments_transfers.rb index f714a6b1..ffc9b086 100755 --- a/lib/increase/resources/inbound_real_time_payments_transfers.rb +++ b/lib/increase/resources/inbound_real_time_payments_transfers.rb @@ -33,7 +33,7 @@ def retrieve(inbound_real_time_payments_transfer_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::InboundRealTimePaymentsTransferListParams def list(params = {}) @@ -42,7 +42,7 @@ def list(params = {}) method: :get, path: "inbound_real_time_payments_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::InboundRealTimePaymentsTransfer, options: options ) diff --git a/lib/increase/resources/inbound_wire_drawdown_requests.rb b/lib/increase/resources/inbound_wire_drawdown_requests.rb index 103afb0f..e73301aa 100644 --- a/lib/increase/resources/inbound_wire_drawdown_requests.rb +++ b/lib/increase/resources/inbound_wire_drawdown_requests.rb @@ -30,7 +30,7 @@ def retrieve(inbound_wire_drawdown_request_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::InboundWireDrawdownRequestListParams def list(params = {}) @@ -39,7 +39,7 @@ def list(params = {}) method: :get, path: "inbound_wire_drawdown_requests", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::InboundWireDrawdownRequest, options: options ) diff --git a/lib/increase/resources/inbound_wire_transfers.rb b/lib/increase/resources/inbound_wire_transfers.rb index 05897c39..917db339 100644 --- a/lib/increase/resources/inbound_wire_transfers.rb +++ b/lib/increase/resources/inbound_wire_transfers.rb @@ -34,7 +34,7 @@ def retrieve(inbound_wire_transfer_id, params = {}) # @param status [Increase::Models::InboundWireTransferListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::InboundWireTransferListParams def list(params = {}) @@ -43,7 +43,7 @@ def list(params = {}) method: :get, path: "inbound_wire_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::InboundWireTransfer, options: options ) diff --git a/lib/increase/resources/intrafi_account_enrollments.rb b/lib/increase/resources/intrafi_account_enrollments.rb index 5afa4762..8a1d156f 100644 --- a/lib/increase/resources/intrafi_account_enrollments.rb +++ b/lib/increase/resources/intrafi_account_enrollments.rb @@ -55,7 +55,7 @@ def retrieve(intrafi_account_enrollment_id, params = {}) # @param status [Increase::Models::IntrafiAccountEnrollmentListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::IntrafiAccountEnrollmentListParams def list(params = {}) @@ -64,7 +64,7 @@ def list(params = {}) method: :get, path: "intrafi_account_enrollments", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::IntrafiAccountEnrollment, options: options ) diff --git a/lib/increase/resources/intrafi_exclusions.rb b/lib/increase/resources/intrafi_exclusions.rb index c2b842af..6135be3b 100644 --- a/lib/increase/resources/intrafi_exclusions.rb +++ b/lib/increase/resources/intrafi_exclusions.rb @@ -54,7 +54,7 @@ def retrieve(intrafi_exclusion_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::IntrafiExclusionListParams def list(params = {}) @@ -63,7 +63,7 @@ def list(params = {}) method: :get, path: "intrafi_exclusions", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::IntrafiExclusion, options: options ) diff --git a/lib/increase/resources/lockboxes.rb b/lib/increase/resources/lockboxes.rb index 3083f1cb..0e139cf6 100644 --- a/lib/increase/resources/lockboxes.rb +++ b/lib/increase/resources/lockboxes.rb @@ -80,7 +80,7 @@ def update(lockbox_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::LockboxListParams def list(params = {}) @@ -89,7 +89,7 @@ def list(params = {}) method: :get, path: "lockboxes", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Lockbox, options: options ) diff --git a/lib/increase/resources/oauth_applications.rb b/lib/increase/resources/oauth_applications.rb index f4bc714c..7c43d596 100644 --- a/lib/increase/resources/oauth_applications.rb +++ b/lib/increase/resources/oauth_applications.rb @@ -32,7 +32,7 @@ def retrieve(oauth_application_id, params = {}) # @param status [Increase::Models::OAuthApplicationListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::OAuthApplicationListParams def list(params = {}) @@ -41,7 +41,7 @@ def list(params = {}) method: :get, path: "oauth_applications", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::OAuthApplication, options: options ) diff --git a/lib/increase/resources/oauth_connections.rb b/lib/increase/resources/oauth_connections.rb index 532d0da2..26c7675b 100644 --- a/lib/increase/resources/oauth_connections.rb +++ b/lib/increase/resources/oauth_connections.rb @@ -32,7 +32,7 @@ def retrieve(oauth_connection_id, params = {}) # @param status [Increase::Models::OAuthConnectionListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::OAuthConnectionListParams def list(params = {}) @@ -41,7 +41,7 @@ def list(params = {}) method: :get, path: "oauth_connections", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::OAuthConnection, options: options ) diff --git a/lib/increase/resources/pending_transactions.rb b/lib/increase/resources/pending_transactions.rb index 977c1704..0404be19 100644 --- a/lib/increase/resources/pending_transactions.rb +++ b/lib/increase/resources/pending_transactions.rb @@ -35,7 +35,7 @@ def retrieve(pending_transaction_id, params = {}) # @param status [Increase::Models::PendingTransactionListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::PendingTransactionListParams def list(params = {}) @@ -44,7 +44,7 @@ def list(params = {}) method: :get, path: "pending_transactions", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::PendingTransaction, options: options ) diff --git a/lib/increase/resources/physical_card_profiles.rb b/lib/increase/resources/physical_card_profiles.rb index ae0cc654..9c9fcf2c 100644 --- a/lib/increase/resources/physical_card_profiles.rb +++ b/lib/increase/resources/physical_card_profiles.rb @@ -56,7 +56,7 @@ def retrieve(physical_card_profile_id, params = {}) # @param status [Increase::Models::PhysicalCardProfileListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::PhysicalCardProfileListParams def list(params = {}) @@ -65,7 +65,7 @@ def list(params = {}) method: :get, path: "physical_card_profiles", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::PhysicalCardProfile, options: options ) diff --git a/lib/increase/resources/physical_cards.rb b/lib/increase/resources/physical_cards.rb index 5cce2ed7..eebbfb49 100644 --- a/lib/increase/resources/physical_cards.rb +++ b/lib/increase/resources/physical_cards.rb @@ -79,7 +79,7 @@ def update(physical_card_id, params) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::PhysicalCardListParams def list(params = {}) @@ -88,7 +88,7 @@ def list(params = {}) method: :get, path: "physical_cards", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::PhysicalCard, options: options ) diff --git a/lib/increase/resources/programs.rb b/lib/increase/resources/programs.rb index b4726660..63eb408c 100644 --- a/lib/increase/resources/programs.rb +++ b/lib/increase/resources/programs.rb @@ -30,7 +30,7 @@ def retrieve(program_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::ProgramListParams def list(params = {}) @@ -39,7 +39,7 @@ def list(params = {}) method: :get, path: "programs", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Program, options: options ) diff --git a/lib/increase/resources/proof_of_authorization_request_submissions.rb b/lib/increase/resources/proof_of_authorization_request_submissions.rb index 6931d64c..1a4e81bc 100644 --- a/lib/increase/resources/proof_of_authorization_request_submissions.rb +++ b/lib/increase/resources/proof_of_authorization_request_submissions.rb @@ -68,7 +68,7 @@ def retrieve(proof_of_authorization_request_submission_id, params = {}) # @param proof_of_authorization_request_id [String] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::ProofOfAuthorizationRequestSubmissionListParams def list(params = {}) @@ -77,7 +77,7 @@ def list(params = {}) method: :get, path: "proof_of_authorization_request_submissions", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::ProofOfAuthorizationRequestSubmission, options: options ) diff --git a/lib/increase/resources/proof_of_authorization_requests.rb b/lib/increase/resources/proof_of_authorization_requests.rb index 25228634..2755f8fc 100644 --- a/lib/increase/resources/proof_of_authorization_requests.rb +++ b/lib/increase/resources/proof_of_authorization_requests.rb @@ -31,7 +31,7 @@ def retrieve(proof_of_authorization_request_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::ProofOfAuthorizationRequestListParams def list(params = {}) @@ -40,7 +40,7 @@ def list(params = {}) method: :get, path: "proof_of_authorization_requests", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::ProofOfAuthorizationRequest, options: options ) diff --git a/lib/increase/resources/real_time_payments_transfers.rb b/lib/increase/resources/real_time_payments_transfers.rb index 396b1ca0..76561006 100644 --- a/lib/increase/resources/real_time_payments_transfers.rb +++ b/lib/increase/resources/real_time_payments_transfers.rb @@ -66,7 +66,7 @@ def retrieve(real_time_payments_transfer_id, params = {}) # @param status [Increase::Models::RealTimePaymentsTransferListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::RealTimePaymentsTransferListParams def list(params = {}) @@ -75,7 +75,7 @@ def list(params = {}) method: :get, path: "real_time_payments_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::RealTimePaymentsTransfer, options: options ) diff --git a/lib/increase/resources/routing_numbers.rb b/lib/increase/resources/routing_numbers.rb index ae5377cf..e8609422 100644 --- a/lib/increase/resources/routing_numbers.rb +++ b/lib/increase/resources/routing_numbers.rb @@ -15,7 +15,7 @@ class RoutingNumbers # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::RoutingNumberListParams def list(params) @@ -24,7 +24,7 @@ def list(params) method: :get, path: "routing_numbers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::RoutingNumberListResponse, options: options ) diff --git a/lib/increase/resources/supplemental_documents.rb b/lib/increase/resources/supplemental_documents.rb index c77e2de4..7aafc868 100644 --- a/lib/increase/resources/supplemental_documents.rb +++ b/lib/increase/resources/supplemental_documents.rb @@ -35,7 +35,7 @@ def create(params) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::SupplementalDocumentListParams def list(params) @@ -44,7 +44,7 @@ def list(params) method: :get, path: "entity_supplemental_documents", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::EntitySupplementalDocument, options: options ) diff --git a/lib/increase/resources/transactions.rb b/lib/increase/resources/transactions.rb index d3b82f81..03ac75f0 100644 --- a/lib/increase/resources/transactions.rb +++ b/lib/increase/resources/transactions.rb @@ -34,7 +34,7 @@ def retrieve(transaction_id, params = {}) # @param route_id [String] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::TransactionListParams def list(params = {}) @@ -43,7 +43,7 @@ def list(params = {}) method: :get, path: "transactions", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::Transaction, options: options ) diff --git a/lib/increase/resources/wire_drawdown_requests.rb b/lib/increase/resources/wire_drawdown_requests.rb index 3cf8ae44..578e571d 100644 --- a/lib/increase/resources/wire_drawdown_requests.rb +++ b/lib/increase/resources/wire_drawdown_requests.rb @@ -65,7 +65,7 @@ def retrieve(wire_drawdown_request_id, params = {}) # @param status [Increase::Models::WireDrawdownRequestListParams::Status] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::WireDrawdownRequestListParams def list(params = {}) @@ -74,7 +74,7 @@ def list(params = {}) method: :get, path: "wire_drawdown_requests", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::WireDrawdownRequest, options: options ) diff --git a/lib/increase/resources/wire_transfers.rb b/lib/increase/resources/wire_transfers.rb index 26d64fec..411fa3f6 100644 --- a/lib/increase/resources/wire_transfers.rb +++ b/lib/increase/resources/wire_transfers.rb @@ -70,7 +70,7 @@ def retrieve(wire_transfer_id, params = {}) # @param limit [Integer] # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Increase::Page] + # @return [Increase::Internal::Page] # # @see Increase::Models::WireTransferListParams def list(params = {}) @@ -79,7 +79,7 @@ def list(params = {}) method: :get, path: "wire_transfers", query: parsed, - page: Increase::Page, + page: Increase::Internal::Page, model: Increase::Models::WireTransfer, options: options ) diff --git a/lib/increase/transport/base_client.rb b/lib/increase/transport/base_client.rb deleted file mode 100644 index 23847ae3..00000000 --- a/lib/increase/transport/base_client.rb +++ /dev/null @@ -1,459 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Transport - # @api private - # - # @abstract - class BaseClient - # from whatwg fetch spec - MAX_REDIRECTS = 20 - - # rubocop:disable Style/MutableConstant - PLATFORM_HEADERS = - { - "x-stainless-arch" => Increase::Util.arch, - "x-stainless-lang" => "ruby", - "x-stainless-os" => Increase::Util.os, - "x-stainless-package-version" => Increase::VERSION, - "x-stainless-runtime" => ::RUBY_ENGINE, - "x-stainless-runtime-version" => ::RUBY_ENGINE_VERSION - } - # rubocop:enable Style/MutableConstant - - class << self - # @api private - # - # @param req [Hash{Symbol=>Object}] - # - # @raise [ArgumentError] - def validate!(req) - keys = [:method, :path, :query, :headers, :body, :unwrap, :page, :stream, :model, :options] - case req - in Hash - req.each_key do |k| - unless keys.include?(k) - raise ArgumentError.new("Request `req` keys must be one of #{keys}, got #{k.inspect}") - end - end - else - raise ArgumentError.new("Request `req` must be a Hash or RequestOptions, got #{req.inspect}") - end - end - - # @api private - # - # @param status [Integer] - # @param headers [Hash{String=>String}, Net::HTTPHeader] - # - # @return [Boolean] - def should_retry?(status, headers:) - coerced = Increase::Util.coerce_boolean(headers["x-should-retry"]) - case [coerced, status] - in [true | false, _] - coerced - in [_, 408 | 409 | 429 | (500..)] - # retry on: - # 408: timeouts - # 409: locks - # 429: rate limits - # 500+: unknown errors - true - else - false - end - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @option request [Object] :body - # - # @option request [Integer] :max_retries - # - # @option request [Float] :timeout - # - # @param status [Integer] - # - # @param response_headers [Hash{String=>String}, Net::HTTPHeader] - # - # @return [Hash{Symbol=>Object}] - def follow_redirect(request, status:, response_headers:) - method, url, headers = request.fetch_values(:method, :url, :headers) - location = - Kernel.then do - URI.join(url, response_headers["location"]) - rescue ArgumentError - message = "Server responded with status #{status} but no valid location header." - raise Increase::Errors::APIConnectionError.new(url: url, message: message) - end - - request = {**request, url: location} - - case [url.scheme, location.scheme] - in ["https", "http"] - message = "Tried to redirect to a insecure URL" - raise Increase::Errors::APIConnectionError.new(url: url, message: message) - else - nil - end - - # from whatwg fetch spec - case [status, method] - in [301 | 302, :post] | [303, _] - drop = %w[content-encoding content-language content-length content-location content-type] - request = { - **request, - method: method == :head ? :head : :get, - headers: headers.except(*drop), - body: nil - } - else - end - - # from undici - if Increase::Util.uri_origin(url) != Increase::Util.uri_origin(location) - drop = %w[authorization cookie host proxy-authorization] - request = {**request, headers: request.fetch(:headers).except(*drop)} - end - - request - end - - # @api private - # - # @param status [Integer, Increase::Errors::APIConnectionError] - # @param stream [Enumerable, nil] - def reap_connection!(status, stream:) - case status - in (..199) | (300..499) - stream&.each { next } - in Increase::Errors::APIConnectionError | (500..) - Increase::Util.close_fused!(stream) - else - end - end - end - - # @api private - # @return [Increase::Transport::PooledNetRequester] - attr_accessor :requester - - # @api private - # - # @param base_url [String] - # @param timeout [Float] - # @param max_retries [Integer] - # @param initial_retry_delay [Float] - # @param max_retry_delay [Float] - # @param headers [Hash{String=>String, Integer, Array, nil}] - # @param idempotency_header [String, nil] - def initialize( - base_url:, - timeout: 0.0, - max_retries: 0, - initial_retry_delay: 0.0, - max_retry_delay: 0.0, - headers: {}, - idempotency_header: nil - ) - @requester = Increase::Transport::PooledNetRequester.new - @headers = Increase::Util.normalized_headers( - self.class::PLATFORM_HEADERS, - { - "accept" => "application/json", - "content-type" => "application/json" - }, - headers - ) - @base_url = Increase::Util.parse_uri(base_url) - @idempotency_header = idempotency_header&.to_s&.downcase - @max_retries = max_retries - @timeout = timeout - @initial_retry_delay = initial_retry_delay - @max_retry_delay = max_retry_delay - end - - # @api private - # - # @return [Hash{String=>String}] - private def auth_headers = {} - - # @api private - # - # @return [String] - private def generate_idempotency_key = "stainless-ruby-retry-#{SecureRandom.uuid}" - - # @api private - # - # @param req [Hash{Symbol=>Object}] . - # - # @option req [Symbol] :method - # - # @option req [String, Array] :path - # - # @option req [Hash{String=>Array, String, nil}, nil] :query - # - # @option req [Hash{String=>String, Integer, Array, nil}, nil] :headers - # - # @option req [Object, nil] :body - # - # @option req [Symbol, nil] :unwrap - # - # @option req [Class, nil] :page - # - # @option req [Class, nil] :stream - # - # @option req [Increase::Type::Converter, Class, nil] :model - # - # @param opts [Hash{Symbol=>Object}] . - # - # @option opts [String, nil] :idempotency_key - # - # @option opts [Hash{String=>Array, String, nil}, nil] :extra_query - # - # @option opts [Hash{String=>String, nil}, nil] :extra_headers - # - # @option opts [Object, nil] :extra_body - # - # @option opts [Integer, nil] :max_retries - # - # @option opts [Float, nil] :timeout - # - # @return [Hash{Symbol=>Object}] - private def build_request(req, opts) - method, uninterpolated_path = req.fetch_values(:method, :path) - - path = Increase::Util.interpolate_path(uninterpolated_path) - - query = Increase::Util.deep_merge(req[:query].to_h, opts[:extra_query].to_h) - - headers = Increase::Util.normalized_headers( - @headers, - auth_headers, - req[:headers].to_h, - opts[:extra_headers].to_h - ) - - if @idempotency_header && - !headers.key?(@idempotency_header) && - !Net::HTTP::IDEMPOTENT_METHODS_.include?(method.to_s.upcase) - headers[@idempotency_header] = opts.fetch(:idempotency_key) { generate_idempotency_key } - end - - unless headers.key?("x-stainless-retry-count") - headers["x-stainless-retry-count"] = "0" - end - - timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..)) - unless headers.key?("x-stainless-timeout") || timeout.zero? - headers["x-stainless-timeout"] = timeout.to_s - end - - headers.reject! { |_, v| v.to_s.empty? } - - body = - case method - in :get | :head | :options | :trace - nil - else - Increase::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) - end - - headers, encoded = Increase::Util.encode_content(headers, body) - { - method: method, - url: Increase::Util.join_parsed_uri(@base_url, {**req, path: path, query: query}), - headers: headers, - body: encoded, - max_retries: opts.fetch(:max_retries, @max_retries), - timeout: timeout - } - end - - # @api private - # - # @param headers [Hash{String=>String}] - # @param retry_count [Integer] - # - # @return [Float] - private def retry_delay(headers, retry_count:) - # Non-standard extension - span = Float(headers["retry-after-ms"], exception: false)&.then { _1 / 1000 } - return span if span - - retry_header = headers["retry-after"] - return span if (span = Float(retry_header, exception: false)) - - span = retry_header&.then do - Time.httpdate(_1) - Time.now - rescue ArgumentError - nil - end - return span if span - - scale = retry_count**2 - jitter = 1 - (0.25 * rand) - (@initial_retry_delay * scale * jitter).clamp(0, @max_retry_delay) - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @option request [Object] :body - # - # @option request [Integer] :max_retries - # - # @option request [Float] :timeout - # - # @param redirect_count [Integer] - # - # @param retry_count [Integer] - # - # @param send_retry_header [Boolean] - # - # @raise [Increase::Errors::APIError] - # @return [Array(Integer, Net::HTTPResponse, Enumerable)] - private def send_request(request, redirect_count:, retry_count:, send_retry_header:) - url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout) - input = {**request.except(:timeout), deadline: Increase::Util.monotonic_secs + timeout} - - if send_retry_header - headers["x-stainless-retry-count"] = retry_count.to_s - end - - begin - status, response, stream = @requester.execute(input) - rescue Increase::APIConnectionError => e - status = e - end - - case status - in ..299 - [status, response, stream] - in 300..399 if redirect_count >= self.class::MAX_REDIRECTS - self.class.reap_connection!(status, stream: stream) - - message = "Failed to complete the request within #{self.class::MAX_REDIRECTS} redirects." - raise Increase::Errors::APIConnectionError.new(url: url, message: message) - in 300..399 - self.class.reap_connection!(status, stream: stream) - - request = self.class.follow_redirect(request, status: status, response_headers: response) - send_request( - request, - redirect_count: redirect_count + 1, - retry_count: retry_count, - send_retry_header: send_retry_header - ) - in Increase::APIConnectionError if retry_count >= max_retries - raise status - in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: response) - decoded = Kernel.then do - Increase::Util.decode_content(response, stream: stream, suppress_error: true) - ensure - self.class.reap_connection!(status, stream: stream) - end - - raise Increase::Errors::APIStatusError.for( - url: url, - status: status, - body: decoded, - request: nil, - response: response - ) - in (400..) | Increase::Errors::APIConnectionError - self.class.reap_connection!(status, stream: stream) - - delay = retry_delay(response, retry_count: retry_count) - sleep(delay) - - send_request( - request, - redirect_count: redirect_count, - retry_count: retry_count + 1, - send_retry_header: send_retry_header - ) - end - end - - # Execute the request specified by `req`. This is the method that all resource - # methods call into. - # - # @param req [Hash{Symbol=>Object}] . - # - # @option req [Symbol] :method - # - # @option req [String, Array] :path - # - # @option req [Hash{String=>Array, String, nil}, nil] :query - # - # @option req [Hash{String=>String, Integer, Array, nil}, nil] :headers - # - # @option req [Object, nil] :body - # - # @option req [Symbol, nil] :unwrap - # - # @option req [Class, nil] :page - # - # @option req [Class, nil] :stream - # - # @option req [Increase::Type::Converter, Class, nil] :model - # - # @option req [Increase::RequestOptions, Hash{Symbol=>Object}, nil] :options - # - # @raise [Increase::Errors::APIError] - # @return [Object] - def request(req) - self.class.validate!(req) - model = req.fetch(:model) { Increase::Unknown } - opts = req[:options].to_h - Increase::RequestOptions.validate!(opts) - request = build_request(req.except(:options), opts) - url = request.fetch(:url) - - # Don't send the current retry count in the headers if the caller modified the header defaults. - send_retry_header = request.fetch(:headers)["x-stainless-retry-count"] == "0" - status, response, stream = send_request( - request, - redirect_count: 0, - retry_count: 0, - send_retry_header: send_retry_header - ) - - decoded = Increase::Util.decode_content(response, stream: stream) - case req - in { stream: Class => st } - st.new(model: model, url: url, status: status, response: response, stream: decoded) - in { page: Class => page } - page.new(client: self, req: req, headers: response, page_data: decoded) - else - unwrapped = Increase::Util.dig(decoded, req[:unwrap]) - Increase::Type::Converter.coerce(model, unwrapped) - end - end - - # @return [String] - def inspect - # rubocop:disable Layout/LineLength - base_url = Increase::Util.unparse_uri(@base_url) - "#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{base_url} max_retries=#{@max_retries} timeout=#{@timeout}>" - # rubocop:enable Layout/LineLength - end - end - end -end diff --git a/lib/increase/transport/pooled_net_requester.rb b/lib/increase/transport/pooled_net_requester.rb deleted file mode 100644 index 962cc0b1..00000000 --- a/lib/increase/transport/pooled_net_requester.rb +++ /dev/null @@ -1,182 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Transport - # @api private - class PooledNetRequester - # from the golang stdlib - # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 - KEEP_ALIVE_TIMEOUT = 30 - - class << self - # @api private - # - # @param url [URI::Generic] - # - # @return [Net::HTTP] - def connect(url) - port = - case [url.port, url.scheme] - in [Integer, _] - url.port - in [nil, "http" | "ws"] - Net::HTTP.http_default_port - in [nil, "https" | "wss"] - Net::HTTP.https_default_port - end - - Net::HTTP.new(url.host, port).tap do - _1.use_ssl = %w[https wss].include?(url.scheme) - _1.max_retries = 0 - end - end - - # @api private - # - # @param conn [Net::HTTP] - # @param deadline [Float] - def calibrate_socket_timeout(conn, deadline) - timeout = deadline - Increase::Util.monotonic_secs - conn.open_timeout = conn.read_timeout = conn.write_timeout = conn.continue_timeout = timeout - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @param blk [Proc] - # - # @yieldparam [String] - # @return [Net::HTTPGenericRequest] - def build_request(request, &blk) - method, url, headers, body = request.fetch_values(:method, :url, :headers, :body) - req = Net::HTTPGenericRequest.new( - method.to_s.upcase, - !body.nil?, - method != :head, - url.to_s - ) - - headers.each { req[_1] = _2 } - - case body - in nil - nil - in String - req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"] - req.body_stream = Increase::Util::ReadIOAdapter.new(body, &blk) - in StringIO - req["content-length"] ||= body.size.to_s unless req["transfer-encoding"] - req.body_stream = Increase::Util::ReadIOAdapter.new(body, &blk) - in IO | Enumerator - req["transfer-encoding"] ||= "chunked" unless req["content-length"] - req.body_stream = Increase::Util::ReadIOAdapter.new(body, &blk) - end - - req - end - end - - # @api private - # - # @param url [URI::Generic] - # @param deadline [Float] - # @param blk [Proc] - # - # @raise [Timeout::Error] - # @yieldparam [Net::HTTP] - private def with_pool(url, deadline:, &blk) - origin = Increase::Util.uri_origin(url) - timeout = deadline - Increase::Util.monotonic_secs - pool = - @mutex.synchronize do - @pools[origin] ||= ConnectionPool.new(size: @size) do - self.class.connect(url) - end - end - - pool.with(timeout: timeout, &blk) - end - - # @api private - # - # @param request [Hash{Symbol=>Object}] . - # - # @option request [Symbol] :method - # - # @option request [URI::Generic] :url - # - # @option request [Hash{String=>String}] :headers - # - # @option request [Object] :body - # - # @option request [Float] :deadline - # - # @return [Array(Integer, Net::HTTPResponse, Enumerable)] - def execute(request) - url, deadline = request.fetch_values(:url, :deadline) - - eof = false - finished = false - enum = Enumerator.new do |y| - with_pool(url, deadline: deadline) do |conn| - next if finished - - req = self.class.build_request(request) do - self.class.calibrate_socket_timeout(conn, deadline) - end - - self.class.calibrate_socket_timeout(conn, deadline) - unless conn.started? - conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT - conn.start - end - - self.class.calibrate_socket_timeout(conn, deadline) - conn.request(req) do |rsp| - y << [conn, req, rsp] - break if finished - - rsp.read_body do |bytes| - y << bytes - break if finished - - self.class.calibrate_socket_timeout(conn, deadline) - end - eof = true - end - end - rescue Timeout::Error - raise Increase::Errors::APITimeoutError - end - - conn, _, response = enum.next - body = Increase::Util.fused_enum(enum, external: true) do - finished = true - tap do - enum.next - rescue StopIteration - nil - end - conn.finish if !eof && conn&.started? - end - [Integer(response.code), response, (response.body = body)] - end - - # @api private - # - # @param size [Integer] - def initialize(size: Etc.nprocessors) - @mutex = Mutex.new - @size = size - @pools = {} - end - end - end -end diff --git a/lib/increase/type.rb b/lib/increase/type.rb deleted file mode 100644 index bcf56b6b..00000000 --- a/lib/increase/type.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -module Increase - Unknown = Increase::Type::Unknown - - BooleanModel = Increase::Type::BooleanModel - - Enum = Increase::Type::Enum - - Union = Increase::Type::Union - - ArrayOf = Increase::Type::ArrayOf - - HashOf = Increase::Type::HashOf - - BaseModel = Increase::Type::BaseModel - - RequestParameters = Increase::Type::RequestParameters - - # This module contains various type declarations. - module Type - end -end diff --git a/lib/increase/type/array_of.rb b/lib/increase/type/array_of.rb deleted file mode 100644 index a57c20de..00000000 --- a/lib/increase/type/array_of.rb +++ /dev/null @@ -1,112 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @api private - # - # @abstract - # - # Array of items of a given type. - class ArrayOf - include Increase::Type::Converter - - # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - def self.[](type_info, spec = {}) = new(type_info, spec) - - # @param other [Object] - # - # @return [Boolean] - def ===(other) = other.is_a?(Array) && other.all?(item_type) - - # @param other [Object] - # - # @return [Boolean] - def ==(other) - other.is_a?(Increase::ArrayOf) && other.nilable? == nilable? && other.item_type == item_type - end - - # @api private - # - # @param value [Enumerable, Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Array, Object] - def coerce(value, state:) - exactness = state.fetch(:exactness) - - unless value.is_a?(Array) - exactness[:no] += 1 - return value - end - - target = item_type - exactness[:yes] += 1 - value - .map do |item| - case [nilable?, item] - in [true, nil] - exactness[:yes] += 1 - nil - else - Increase::Type::Converter.coerce(target, item, state: state) - end - end - end - - # @api private - # - # @param value [Enumerable, Object] - # - # @return [Array, Object] - def dump(value) - target = item_type - value.is_a?(Array) ? value.map { Increase::Type::Converter.dump(target, _1) } : super - end - - # @api private - # - # @return [Increase::Type::Converter, Class] - protected def item_type = @item_type_fn.call - - # @api private - # - # @return [Boolean] - protected def nilable? = @nilable - - # @api private - # - # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - def initialize(type_info, spec = {}) - @item_type_fn = Increase::Type::Converter.type_info(type_info || spec) - @nilable = spec[:nil?] - end - end - end -end diff --git a/lib/increase/type/base_model.rb b/lib/increase/type/base_model.rb deleted file mode 100644 index aeb08047..00000000 --- a/lib/increase/type/base_model.rb +++ /dev/null @@ -1,367 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @abstract - # - # @example - # # `account` is a `Increase::Models::Account` - # account => { - # id: id, - # bank: bank, - # closed_at: closed_at - # } - class BaseModel - extend Increase::Type::Converter - - class << self - # @api private - # - # Assumes superclass fields are totally defined before fields are accessed / - # defined on subclasses. - # - # @return [Hash{Symbol=>Hash{Symbol=>Object}}] - def known_fields - @known_fields ||= (self < Increase::BaseModel ? superclass.known_fields.dup : {}) - end - - # @api private - # - # @return [Hash{Symbol=>Hash{Symbol=>Object}}] - def fields - known_fields.transform_values do |field| - {**field.except(:type_fn), type: field.fetch(:type_fn).call} - end - end - - # @api private - # - # @param name_sym [Symbol] - # - # @param required [Boolean] - # - # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - private def add_field(name_sym, required:, type_info:, spec:) - type_fn, info = - case type_info - in Proc | Increase::Type::Converter | Class - [Increase::Type::Converter.type_info({**spec, union: type_info}), spec] - in Hash - [Increase::Type::Converter.type_info(type_info), type_info] - end - - setter = "#{name_sym}=" - api_name = info.fetch(:api_name, name_sym) - nilable = info[:nil?] - const = required && !nilable ? info.fetch(:const, Increase::Util::OMIT) : Increase::Util::OMIT - - [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym) - - known_fields[name_sym] = - { - mode: @mode, - api_name: api_name, - required: required, - nilable: nilable, - const: const, - type_fn: type_fn - } - - define_method(setter) { @data.store(name_sym, _1) } - - define_method(name_sym) do - target = type_fn.call - value = @data.fetch(name_sym) { const == Increase::Util::OMIT ? nil : const } - state = {strictness: :strong, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} - if (nilable || !required) && value.nil? - nil - else - Increase::Type::Converter.coerce( - target, - value, - state: state - ) - end - rescue StandardError - cls = self.class.name.split("::").last - # rubocop:disable Layout/LineLength - message = "Failed to parse #{cls}.#{__method__} from #{value.class} to #{target.inspect}. To get the unparsed API response, use #{cls}[:#{__method__}]." - # rubocop:enable Layout/LineLength - raise Increase::ConversionError.new(message) - end - end - - # @api private - # - # @param name_sym [Symbol] - # - # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - def required(name_sym, type_info, spec = {}) - add_field(name_sym, required: true, type_info: type_info, spec: spec) - end - - # @api private - # - # @param name_sym [Symbol] - # - # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - def optional(name_sym, type_info, spec = {}) - add_field(name_sym, required: false, type_info: type_info, spec: spec) - end - - # @api private - # - # `request_only` attributes not excluded from `.#coerce` when receiving responses - # even if well behaved servers should not send them - # - # @param blk [Proc] - private def request_only(&blk) - @mode = :dump - blk.call - ensure - @mode = nil - end - - # @api private - # - # `response_only` attributes are omitted from `.#dump` when making requests - # - # @param blk [Proc] - private def response_only(&blk) - @mode = :coerce - blk.call - ensure - @mode = nil - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) = other.is_a?(Class) && other <= Increase::BaseModel && other.fields == fields - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) = self.class == other.class && @data == other.to_h - - class << self - # @api private - # - # @param value [Increase::BaseModel, Hash{Object=>Object}, Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Increase::BaseModel, Object] - def coerce(value, state:) - exactness = state.fetch(:exactness) - - if value.is_a?(self.class) - exactness[:yes] += 1 - return value - end - - unless (val = Increase::Util.coerce_hash(value)).is_a?(Hash) - exactness[:no] += 1 - return value - end - exactness[:yes] += 1 - - keys = val.keys.to_set - instance = new - data = instance.to_h - - # rubocop:disable Metrics/BlockLength - fields.each do |name, field| - mode, required, target = field.fetch_values(:mode, :required, :type) - api_name, nilable, const = field.fetch_values(:api_name, :nilable, :const) - - unless val.key?(api_name) - if required && mode != :dump && const == Increase::Util::OMIT - exactness[nilable ? :maybe : :no] += 1 - else - exactness[:yes] += 1 - end - next - end - - item = val.fetch(api_name) - keys.delete(api_name) - - converted = - if item.nil? && (nilable || !required) - exactness[nilable ? :yes : :maybe] += 1 - nil - else - coerced = Increase::Type::Converter.coerce(target, item, state: state) - case target - in Increase::Type::Converter | Symbol - coerced - else - item - end - end - data.store(name, converted) - end - # rubocop:enable Metrics/BlockLength - - keys.each { data.store(_1, val.fetch(_1)) } - instance - end - - # @api private - # - # @param value [Increase::BaseModel, Object] - # - # @return [Hash{Object=>Object}, Object] - def dump(value) - unless (coerced = Increase::Util.coerce_hash(value)).is_a?(Hash) - return super - end - - acc = {} - - coerced.each do |key, val| - name = key.is_a?(String) ? key.to_sym : key - case (field = known_fields[name]) - in nil - acc.store(name, super(val)) - else - mode, api_name, type_fn = field.fetch_values(:mode, :api_name, :type_fn) - case mode - in :coerce - next - else - target = type_fn.call - acc.store(api_name, Increase::Type::Converter.dump(target, val)) - end - end - end - - known_fields.each_value do |field| - mode, api_name, const = field.fetch_values(:mode, :api_name, :const) - next if mode == :coerce || acc.key?(api_name) || const == Increase::Util::OMIT - acc.store(api_name, const) - end - - acc - end - end - - # Returns the raw value associated with the given key, if found. Otherwise, nil is - # returned. - # - # It is valid to lookup keys that are not in the API spec, for example to access - # undocumented features. This method does not parse response data into - # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. - # - # @param key [Symbol] - # - # @return [Object, nil] - def [](key) - unless key.instance_of?(Symbol) - raise ArgumentError.new("Expected symbol key for lookup, got #{key.inspect}") - end - - @data[key] - end - - # Returns a Hash of the data underlying this object. O(1) - # - # Keys are Symbols and values are the raw values from the response. The return - # value indicates which values were ever set on the object. i.e. there will be a - # key in this hash if they ever were, even if the set value was nil. - # - # This method is not recursive. The returned value is shared by the object, so it - # should not be mutated. - # - # @return [Hash{Symbol=>Object}] - def to_h = @data - - alias_method :to_hash, :to_h - - # @param keys [Array, nil] - # - # @return [Hash{Symbol=>Object}] - def deconstruct_keys(keys) - (keys || self.class.known_fields.keys) - .filter_map do |k| - unless self.class.known_fields.key?(k) - next - end - - [k, public_send(k)] - end - .to_h - end - - # @param a [Object] - # - # @return [String] - def to_json(*a) = self.class.dump(self).to_json(*a) - - # @param a [Object] - # - # @return [String] - def to_yaml(*a) = self.class.dump(self).to_yaml(*a) - - # Create a new instance of a model. - # - # @param data [Hash{Symbol=>Object}, Increase::BaseModel] - def initialize(data = {}) - case Increase::Util.coerce_hash(data) - in Hash => coerced - @data = coerced - else - raise ArgumentError.new("Expected a #{Hash} or #{Increase::BaseModel}, got #{data.inspect}") - end - end - - # @return [String] - def inspect - rows = self.class.known_fields.keys.map do - "#{_1}=#{@data.key?(_1) ? public_send(_1) : ''}" - rescue Increase::ConversionError - "#{_1}=#{@data.fetch(_1)}" - end - "#<#{self.class.name}:0x#{object_id.to_s(16)} #{rows.join(' ')}>" - end - end - end -end diff --git a/lib/increase/type/base_page.rb b/lib/increase/type/base_page.rb deleted file mode 100644 index a00fd650..00000000 --- a/lib/increase/type/base_page.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @example - # if page.has_next? - # page = page.next_page - # end - # - # @example - # page.auto_paging_each do |account| - # puts(account) - # end - # - # @example - # accounts = - # page - # .to_enum - # .lazy - # .select { _1.object_id.even? } - # .map(&:itself) - # .take(2) - # .to_a - # - # accounts => Array - module BasePage - # rubocop:disable Lint/UnusedMethodArgument - - # @return [Boolean] - def next_page? = (raise NotImplementedError) - - # @raise [Increase::Errors::APIError] - # @return [Increase::Type::BasePage] - def next_page = (raise NotImplementedError) - - # @param blk [Proc] - # - # @return [void] - def auto_paging_each(&blk) = (raise NotImplementedError) - - # @return [Enumerable] - def to_enum = super(:auto_paging_each) - - alias_method :enum_for, :to_enum - - # @api private - # - # @param client [Increase::Transport::BaseClient] - # @param req [Hash{Symbol=>Object}] - # @param headers [Hash{String=>String}, Net::HTTPHeader] - # @param page_data [Object] - def initialize(client:, req:, headers:, page_data:) - @client = client - @req = req - super() - end - - # rubocop:enable Lint/UnusedMethodArgument - end - end -end diff --git a/lib/increase/type/boolean_model.rb b/lib/increase/type/boolean_model.rb deleted file mode 100644 index 8dd46e25..00000000 --- a/lib/increase/type/boolean_model.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @api private - # - # @abstract - # - # Ruby has no Boolean class; this is something for models to refer to. - class BooleanModel - extend Increase::Type::Converter - - # @param other [Object] - # - # @return [Boolean] - def self.===(other) = other == true || other == false - - # @param other [Object] - # - # @return [Boolean] - def self.==(other) = other.is_a?(Class) && other <= Increase::BooleanModel - - class << self - # @api private - # - # @param value [Boolean, Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Boolean, Object] - def coerce(value, state:) - state.fetch(:exactness)[value == true || value == false ? :yes : :no] += 1 - value - end - - # @!parse - # # @api private - # # - # # @param value [Boolean, Object] - # # - # # @return [Boolean, Object] - # def dump(value) = super - end - end - end -end diff --git a/lib/increase/type/converter.rb b/lib/increase/type/converter.rb deleted file mode 100644 index f1756695..00000000 --- a/lib/increase/type/converter.rb +++ /dev/null @@ -1,217 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # rubocop:disable Metrics/ModuleLength - # @api private - module Converter - # rubocop:disable Lint/UnusedMethodArgument - - # @api private - # - # @param value [Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Object] - def coerce(value, state:) = (raise NotImplementedError) - - # @api private - # - # @param value [Object] - # - # @return [Object] - def dump(value) - case value - in Array - value.map { Increase::Unknown.dump(_1) } - in Hash - value.transform_values { Increase::Unknown.dump(_1) } - in Increase::BaseModel - value.class.dump(value) - else - value - end - end - - # rubocop:enable Lint/UnusedMethodArgument - - class << self - # @api private - # - # @param spec [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - # - # @return [Proc] - def type_info(spec) - case spec - in Proc - spec - in Hash - type_info(spec.slice(:const, :enum, :union).first&.last) - in true | false - -> { Increase::BooleanModel } - in Increase::Type::Converter | Class | Symbol - -> { spec } - in NilClass | Integer | Float - -> { spec.class } - end - end - - # @api private - # - # Based on `target`, transform `value` into `target`, to the extent possible: - # - # 1. if the given `value` conforms to `target` already, return the given `value` - # 2. if it's possible and safe to convert the given `value` to `target`, then the - # converted value - # 3. otherwise, the given `value` unaltered - # - # The coercion process is subject to improvement between minor release versions. - # See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode - # - # @param target [Increase::Type::Converter, Class] - # - # @param value [Object] - # - # @param state [Hash{Symbol=>Object}] The `strictness` is one of `true`, `false`, or `:strong`. This informs the - # coercion strategy when we have to decide between multiple possible conversion - # targets: - # - # - `true`: the conversion must be exact, with minimum coercion. - # - `false`: the conversion can be approximate, with some coercion. - # - `:strong`: the conversion must be exact, with no coercion, and raise an error - # if not possible. - # - # The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For - # any given conversion attempt, the exactness will be updated based on how closely - # the value recursively matches the target type: - # - # - `yes`: the value can be converted to the target type with minimum coercion. - # - `maybe`: the value can be converted to the target type with some reasonable - # coercion. - # - `no`: the value cannot be converted to the target type. - # - # See implementation below for more details. - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Object] - def coerce( - target, - value, - state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} - ) - # rubocop:disable Lint/SuppressedException - # rubocop:disable Metrics/BlockNesting - strictness, exactness = state.fetch_values(:strictness, :exactness) - - case target - in Increase::Type::Converter - return target.coerce(value, state: state) - in Class - if value.is_a?(target) - exactness[:yes] += 1 - return value - end - - case target - in -> { _1 <= NilClass } - exactness[value.nil? ? :yes : :maybe] += 1 - return nil - in -> { _1 <= Integer } - if value.is_a?(Integer) - exactness[:yes] += 1 - return value - elsif strictness == :strong - message = "no implicit conversion of #{value.class} into #{target.inspect}" - raise TypeError.new(message) - else - Kernel.then do - return Integer(value).tap { exactness[:maybe] += 1 } - rescue ArgumentError, TypeError - end - end - in -> { _1 <= Float } - if value.is_a?(Numeric) - exactness[:yes] += 1 - return Float(value) - elsif strictness == :strong - message = "no implicit conversion of #{value.class} into #{target.inspect}" - raise TypeError.new(message) - else - Kernel.then do - return Float(value).tap { exactness[:maybe] += 1 } - rescue ArgumentError, TypeError - end - end - in -> { _1 <= String } - case value - in String | Symbol | Numeric - exactness[value.is_a?(Numeric) ? :maybe : :yes] += 1 - return value.to_s - else - if strictness == :strong - message = "no implicit conversion of #{value.class} into #{target.inspect}" - raise TypeError.new(message) - end - end - in -> { _1 <= Date || _1 <= Time } - Kernel.then do - return target.parse(value).tap { exactness[:yes] += 1 } - rescue ArgumentError, TypeError => e - raise e if strictness == :strong - end - in -> { _1 <= IO } if value.is_a?(String) - exactness[:yes] += 1 - return StringIO.new(value.b) - else - end - in Symbol - if (value.is_a?(Symbol) || value.is_a?(String)) && value.to_sym == target - exactness[:yes] += 1 - return target - elsif strictness == :strong - message = "cannot convert non-matching #{value.class} into #{target.inspect}" - raise ArgumentError.new(message) - end - else - end - - exactness[:no] += 1 - value - # rubocop:enable Metrics/BlockNesting - # rubocop:enable Lint/SuppressedException - end - - # @api private - # - # @param target [Increase::Type::Converter, Class] - # @param value [Object] - # - # @return [Object] - def dump(target, value) - target.is_a?(Increase::Type::Converter) ? target.dump(value) : Increase::Unknown.dump(value) - end - end - end - # rubocop:enable Metrics/ModuleLength - end -end diff --git a/lib/increase/type/enum.rb b/lib/increase/type/enum.rb deleted file mode 100644 index dc276ad2..00000000 --- a/lib/increase/type/enum.rb +++ /dev/null @@ -1,80 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @api private - # - # A value from among a specified list of options. OpenAPI enum values map to Ruby - # values in the SDK as follows: - # - # 1. boolean => true | false - # 2. integer => Integer - # 3. float => Float - # 4. string => Symbol - # - # We can therefore convert string values to Symbols, but can't convert other - # values safely. - module Enum - include Increase::Type::Converter - - # All of the valid Symbol values for this enum. - # - # @return [Array] - def values = (@values ||= constants.map { const_get(_1) }) - - # @api private - # - # Guard against thread safety issues by instantiating `@values`. - private def finalize! = values - - # @param other [Object] - # - # @return [Boolean] - def ===(other) = values.include?(other) - - # @param other [Object] - # - # @return [Boolean] - def ==(other) - other.is_a?(Module) && other.singleton_class <= Increase::Enum && other.values.to_set == values.to_set - end - - # @api private - # - # Unlike with primitives, `Enum` additionally validates that the value is a member - # of the enum. - # - # @param value [String, Symbol, Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Symbol, Object] - def coerce(value, state:) - exactness = state.fetch(:exactness) - val = value.is_a?(String) ? value.to_sym : value - - if values.include?(val) - exactness[:yes] += 1 - val - else - exactness[values.first&.class == val.class ? :maybe : :no] += 1 - value - end - end - - # @!parse - # # @api private - # # - # # @param value [Symbol, Object] - # # - # # @return [Symbol, Object] - # def dump(value) = super - end - end -end diff --git a/lib/increase/type/hash_of.rb b/lib/increase/type/hash_of.rb deleted file mode 100644 index 207f1985..00000000 --- a/lib/increase/type/hash_of.rb +++ /dev/null @@ -1,138 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @api private - # - # @abstract - # - # Hash of items of a given type. - class HashOf - include Increase::Type::Converter - - # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - def self.[](type_info, spec = {}) = new(type_info, spec) - - # @param other [Object] - # - # @return [Boolean] - def ===(other) - type = item_type - case other - in Hash - other.all? do |key, val| - case [key, val] - in [Symbol | String, ^type] - true - else - false - end - end - else - false - end - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) - other.is_a?(Increase::HashOf) && other.nilable? == nilable? && other.item_type == item_type - end - - # @api private - # - # @param value [Hash{Object=>Object}, Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Hash{Symbol=>Object}, Object] - def coerce(value, state:) - exactness = state.fetch(:exactness) - - unless value.is_a?(Hash) - exactness[:no] += 1 - return value - end - - target = item_type - exactness[:yes] += 1 - value - .to_h do |key, val| - k = key.is_a?(String) ? key.to_sym : key - v = - case [nilable?, val] - in [true, nil] - exactness[:yes] += 1 - nil - else - Increase::Type::Converter.coerce(target, val, state: state) - end - - exactness[:no] += 1 unless k.is_a?(Symbol) - [k, v] - end - end - - # @api private - # - # @param value [Hash{Object=>Object}, Object] - # - # @return [Hash{Symbol=>Object}, Object] - def dump(value) - target = item_type - if value.is_a?(Hash) - value.transform_values do - Increase::Type::Converter.dump(target, _1) - end - else - super - end - end - - # @api private - # - # @return [Increase::Type::Converter, Class] - protected def item_type = @item_type_fn.call - - # @api private - # - # @return [Boolean] - protected def nilable? = @nilable - - # @api private - # - # @param type_info [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - def initialize(type_info, spec = {}) - @item_type_fn = Increase::Type::Converter.type_info(type_info || spec) - @nilable = spec[:nil?] - end - end - end -end diff --git a/lib/increase/type/request_parameters.rb b/lib/increase/type/request_parameters.rb deleted file mode 100644 index b21ff3f4..00000000 --- a/lib/increase/type/request_parameters.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @api private - module RequestParameters - # @!parse - # # Options to specify HTTP behaviour for this request. - # # @return [Increase::RequestOptions, Hash{Symbol=>Object}] - # attr_accessor :request_options - - # @param mod [Module] - def self.included(mod) - return unless mod <= Increase::BaseModel - - mod.extend(Increase::Type::RequestParameters::Converter) - mod.optional(:request_options, Increase::RequestOptions) - end - - # @api private - module Converter - # @api private - # - # @param params [Object] - # - # @return [Array(Object, Hash{Symbol=>Object})] - def dump_request(params) - case (dumped = dump(params)) - in Hash - [dumped.except(:request_options), dumped[:request_options]] - else - [dumped, nil] - end - end - end - end - end -end diff --git a/lib/increase/type/union.rb b/lib/increase/type/union.rb deleted file mode 100644 index 08909402..00000000 --- a/lib/increase/type/union.rb +++ /dev/null @@ -1,185 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @api private - module Union - include Increase::Type::Converter - - # @api private - # - # All of the specified variant info for this union. - # - # @return [Array] - private def known_variants = (@known_variants ||= []) - - # @api private - # - # @return [Array] - protected def derefed_variants - @known_variants.map { |key, variant_fn| [key, variant_fn.call] } - end - - # All of the specified variants for this union. - # - # @return [Array] - def variants = derefed_variants.map(&:last) - - # @api private - # - # @param property [Symbol] - private def discriminator(property) - case property - in Symbol - @discriminator = property - end - end - - # @api private - # - # @param key [Symbol, Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}, Proc, Increase::Type::Converter, Class] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - private def variant(key, spec = nil) - variant_info = - case key - in Symbol - [key, Increase::Type::Converter.type_info(spec)] - in Proc | Increase::Type::Converter | Class | Hash - [nil, Increase::Type::Converter.type_info(key)] - end - - known_variants << variant_info - end - - # @api private - # - # @param value [Object] - # - # @return [Increase::Type::Converter, Class, nil] - private def resolve_variant(value) - case [@discriminator, value] - in [_, Increase::BaseModel] - value.class - in [Symbol, Hash] - key = value.fetch(@discriminator) do - value.fetch(@discriminator.to_s, Increase::Util::OMIT) - end - - return nil if key == Increase::Util::OMIT - - key = key.to_sym if key.is_a?(String) - known_variants.find { |k,| k == key }&.last&.call - else - nil - end - end - - # rubocop:disable Style/HashEachMethods - # rubocop:disable Style/CaseEquality - - # @param other [Object] - # - # @return [Boolean] - def ===(other) - known_variants.any? do |_, variant_fn| - variant_fn.call === other - end - end - - # @param other [Object] - # - # @return [Boolean] - def ==(other) - # rubocop:disable Layout/LineLength - other.is_a?(Module) && other.singleton_class <= Increase::Union && other.derefed_variants == derefed_variants - # rubocop:enable Layout/LineLength - end - - # @api private - # - # @param value [Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Object] - def coerce(value, state:) - if (target = resolve_variant(value)) - return Increase::Type::Converter.coerce(target, value, state: state) - end - - strictness = state.fetch(:strictness) - exactness = state.fetch(:exactness) - state[:strictness] = strictness == :strong ? true : strictness - - alternatives = [] - known_variants.each do |_, variant_fn| - target = variant_fn.call - exact = state[:exactness] = {yes: 0, no: 0, maybe: 0} - state[:branched] += 1 - - coerced = Increase::Type::Converter.coerce(target, value, state: state) - yes, no, maybe = exact.values - if (no + maybe).zero? || (!strictness && yes.positive?) - exact.each { exactness[_1] += _2 } - state[:exactness] = exactness - return coerced - elsif maybe.positive? - alternatives << [[-yes, -maybe, no], exact, coerced] - end - end - - case alternatives.sort_by(&:first) - in [] - exactness[:no] += 1 - if strictness == :strong - message = "no possible conversion of #{value.class} into a variant of #{target.inspect}" - raise ArgumentError.new(message) - end - value - in [[_, exact, coerced], *] - exact.each { exactness[_1] += _2 } - coerced - end - .tap { state[:exactness] = exactness } - ensure - state[:strictness] = strictness - end - - # @api private - # - # @param value [Object] - # - # @return [Object] - def dump(value) - if (target = resolve_variant(value)) - return Increase::Type::Converter.dump(target, value) - end - - known_variants.each do - target = _2.call - return Increase::Type::Converter.dump(target, value) if target === value - end - - super - end - - # rubocop:enable Style/CaseEquality - # rubocop:enable Style/HashEachMethods - end - end -end diff --git a/lib/increase/type/unknown.rb b/lib/increase/type/unknown.rb deleted file mode 100644 index 946c668e..00000000 --- a/lib/increase/type/unknown.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -module Increase - module Type - # @api private - # - # @abstract - # - # When we don't know what to expect for the value. - class Unknown - extend Increase::Type::Converter - - # rubocop:disable Lint/UnusedMethodArgument - - # @param other [Object] - # - # @return [Boolean] - def self.===(other) = true - - # @param other [Object] - # - # @return [Boolean] - def self.==(other) = other.is_a?(Class) && other <= Increase::Unknown - - class << self - # @api private - # - # @param value [Object] - # - # @param state [Hash{Symbol=>Object}] . - # - # @option state [Boolean, :strong] :strictness - # - # @option state [Hash{Symbol=>Object}] :exactness - # - # @option state [Integer] :branched - # - # @return [Object] - def coerce(value, state:) - state.fetch(:exactness)[:yes] += 1 - value - end - - # @!parse - # # @api private - # # - # # @param value [Object] - # # - # # @return [Object] - # def dump(value) = super - end - - # rubocop:enable Lint/UnusedMethodArgument - end - end -end diff --git a/lib/increase/util.rb b/lib/increase/util.rb deleted file mode 100644 index 23d3841e..00000000 --- a/lib/increase/util.rb +++ /dev/null @@ -1,722 +0,0 @@ -# frozen_string_literal: true - -module Increase - # rubocop:disable Metrics/ModuleLength - - # @api private - module Util - # @api private - # - # @return [Float] - def self.monotonic_secs = Process.clock_gettime(Process::CLOCK_MONOTONIC) - - class << self - # @api private - # - # @return [String] - def arch - case (arch = RbConfig::CONFIG["arch"])&.downcase - in nil - "unknown" - in /aarch64|arm64/ - "arm64" - in /x86_64/ - "x64" - in /arm/ - "arm" - else - "other:#{arch}" - end - end - - # @api private - # - # @return [String] - def os - case (host = RbConfig::CONFIG["host_os"])&.downcase - in nil - "Unknown" - in /linux/ - "Linux" - in /darwin/ - "MacOS" - in /freebsd/ - "FreeBSD" - in /openbsd/ - "OpenBSD" - in /mswin|mingw|cygwin|ucrt/ - "Windows" - else - "Other:#{host}" - end - end - end - - class << self - # @api private - # - # @param input [Object] - # - # @return [Boolean] - def primitive?(input) - case input - in true | false | Integer | Float | Symbol | String - true - else - false - end - end - - # @api private - # - # @param input [Object] - # - # @return [Boolean, Object] - def coerce_boolean(input) - case input.is_a?(String) ? input.downcase : input - in Numeric - input.nonzero? - in "true" - true - in "false" - false - else - input - end - end - - # @api private - # - # @param input [Object] - # - # @raise [ArgumentError] - # @return [Boolean, nil] - def coerce_boolean!(input) - case coerce_boolean(input) - in true | false | nil => coerced - coerced - else - raise ArgumentError.new("Unable to coerce #{input.inspect} into boolean value") - end - end - - # @api private - # - # @param input [Object] - # - # @return [Integer, Object] - def coerce_integer(input) - case input - in true - 1 - in false - 0 - else - Integer(input, exception: false) || input - end - end - - # @api private - # - # @param input [Object] - # - # @return [Float, Object] - def coerce_float(input) - case input - in true - 1.0 - in false - 0.0 - else - Float(input, exception: false) || input - end - end - - # @api private - # - # @param input [Object] - # - # @return [Hash{Object=>Object}, Object] - def coerce_hash(input) - case input - in NilClass | Array | Set | Enumerator - input - else - input.respond_to?(:to_h) ? input.to_h : input - end - end - end - - # Use this to indicate that a value should be explicitly removed from a data - # structure when using `Increase::Util.deep_merge`. - # - # e.g. merging `{a: 1}` and `{a: OMIT}` should produce `{}`, where merging - # `{a: 1}` and `{}` would produce `{a: 1}`. - OMIT = Object.new.freeze - - class << self - # @api private - # - # @param lhs [Object] - # @param rhs [Object] - # @param concat [Boolean] - # - # @return [Object] - private def deep_merge_lr(lhs, rhs, concat: false) - case [lhs, rhs, concat] - in [Hash, Hash, _] - rhs_cleaned = rhs.reject { _2 == Increase::Util::OMIT } - lhs - .reject { |key, _| rhs[key] == Increase::Util::OMIT } - .merge(rhs_cleaned) do |_, old_val, new_val| - deep_merge_lr(old_val, new_val, concat: concat) - end - in [Array, Array, true] - lhs.concat(rhs) - else - rhs - end - end - - # @api private - # - # Recursively merge one hash with another. If the values at a given key are not - # both hashes, just take the new value. - # - # @param values [Array] - # - # @param sentinel [Object, nil] the value to return if no values are provided. - # - # @param concat [Boolean] whether to merge sequences by concatenation. - # - # @return [Object] - def deep_merge(*values, sentinel: nil, concat: false) - case values - in [value, *values] - values.reduce(value) do |acc, val| - deep_merge_lr(acc, val, concat: concat) - end - else - sentinel - end - end - - # @api private - # - # @param data [Hash{Symbol=>Object}, Array, Object] - # @param pick [Symbol, Integer, Array, nil] - # @param sentinel [Object, nil] - # @param blk [Proc, nil] - # - # @return [Object, nil] - def dig(data, pick, sentinel = nil, &blk) - case [data, pick, blk] - in [_, nil, nil] - data - in [Hash, Symbol, _] | [Array, Integer, _] - blk.nil? ? data.fetch(pick, sentinel) : data.fetch(pick, &blk) - in [Hash | Array, Array, _] - pick.reduce(data) do |acc, key| - case acc - in Hash if acc.key?(key) - acc.fetch(key) - in Array if key.is_a?(Integer) && key < acc.length - acc[key] - else - return blk.nil? ? sentinel : blk.call - end - end - in _ - blk.nil? ? sentinel : blk.call - end - end - end - - class << self - # @api private - # - # @param uri [URI::Generic] - # - # @return [String] - def uri_origin(uri) - "#{uri.scheme}://#{uri.host}#{uri.port == uri.default_port ? '' : ":#{uri.port}"}" - end - - # @api private - # - # @param path [String, Array] - # - # @return [String] - def interpolate_path(path) - case path - in String - path - in [] - "" - in [String => p, *interpolations] - encoded = interpolations.map { ERB::Util.url_encode(_1) } - format(p, *encoded) - end - end - end - - class << self - # @api private - # - # @param query [String, nil] - # - # @return [Hash{String=>Array}] - def decode_query(query) - CGI.parse(query.to_s) - end - - # @api private - # - # @param query [Hash{String=>Array, String, nil}, nil] - # - # @return [String, nil] - def encode_query(query) - query.to_h.empty? ? nil : URI.encode_www_form(query) - end - end - - class << self - # @api private - # - # @param url [URI::Generic, String] - # - # @return [Hash{Symbol=>String, Integer, nil}] - def parse_uri(url) - parsed = URI::Generic.component.zip(URI.split(url)).to_h - {**parsed, query: decode_query(parsed.fetch(:query))} - end - - # @api private - # - # @param parsed [Hash{Symbol=>String, Integer, nil}] . - # - # @option parsed [String, nil] :scheme - # - # @option parsed [String, nil] :host - # - # @option parsed [Integer, nil] :port - # - # @option parsed [String, nil] :path - # - # @option parsed [Hash{String=>Array}] :query - # - # @return [URI::Generic] - def unparse_uri(parsed) - URI::Generic.build(**parsed, query: encode_query(parsed.fetch(:query))) - end - - # @api private - # - # @param lhs [Hash{Symbol=>String, Integer, nil}] . - # - # @option lhs [String, nil] :scheme - # - # @option lhs [String, nil] :host - # - # @option lhs [Integer, nil] :port - # - # @option lhs [String, nil] :path - # - # @option lhs [Hash{String=>Array}] :query - # - # @param rhs [Hash{Symbol=>String, Integer, nil}] . - # - # @option rhs [String, nil] :scheme - # - # @option rhs [String, nil] :host - # - # @option rhs [Integer, nil] :port - # - # @option rhs [String, nil] :path - # - # @option rhs [Hash{String=>Array}] :query - # - # @return [URI::Generic] - def join_parsed_uri(lhs, rhs) - base_path, base_query = lhs.fetch_values(:path, :query) - slashed = base_path.end_with?("/") ? base_path : "#{base_path}/" - - parsed_path, parsed_query = parse_uri(rhs.fetch(:path)).fetch_values(:path, :query) - override = URI::Generic.build(**rhs.slice(:scheme, :host, :port), path: parsed_path) - - joined = URI.join(URI::Generic.build(lhs.except(:path, :query)), slashed, override) - query = deep_merge( - joined.path == base_path ? base_query : {}, - parsed_query, - rhs[:query].to_h, - concat: true - ) - - joined.query = encode_query(query) - joined - end - end - - class << self - # @api private - # - # @param headers [Hash{String=>String, Integer, Array, nil}] - # - # @return [Hash{String=>String}] - def normalized_headers(*headers) - {}.merge(*headers.compact).to_h do |key, val| - value = - case val - in Array - val.map { _1.to_s.strip }.join(", ") - else - val&.to_s&.strip - end - [key.downcase, value] - end - end - end - - # @api private - # - # An adapter that satisfies the IO interface required by `::IO.copy_stream` - class ReadIOAdapter - # @api private - # - # @param max_len [Integer, nil] - # - # @return [String] - private def read_enum(max_len) - case max_len - in nil - @stream.to_a.join - in Integer - @buf << @stream.next while @buf.length < max_len - @buf.slice!(..max_len) - end - rescue StopIteration - @stream = nil - @buf.slice!(0..) - end - - # @api private - # - # @param max_len [Integer, nil] - # @param out_string [String, nil] - # - # @return [String, nil] - def read(max_len = nil, out_string = nil) - case @stream - in nil - nil - in IO | StringIO - @stream.read(max_len, out_string) - in Enumerator - read = read_enum(max_len) - case out_string - in String - out_string.replace(read) - in nil - read - end - end - .tap(&@blk) - end - - # @api private - # - # @param stream [String, IO, StringIO, Enumerable] - # @param blk [Proc] - # - # @yieldparam [String] - def initialize(stream, &blk) - @stream = stream.is_a?(String) ? StringIO.new(stream) : stream - @buf = String.new.b - @blk = blk - end - end - - class << self - # @param blk [Proc] - # - # @yieldparam [Enumerator::Yielder] - # @return [Enumerable] - def writable_enum(&blk) - Enumerator.new do |y| - y.define_singleton_method(:write) do - self << _1.clone - _1.bytesize - end - - blk.call(y) - end - end - end - - class << self - # @api private - # - # @param y [Enumerator::Yielder] - # @param boundary [String] - # @param key [Symbol, String] - # @param val [Object] - private def write_multipart_chunk(y, boundary:, key:, val:) - y << "--#{boundary}\r\n" - y << "Content-Disposition: form-data" - unless key.nil? - name = ERB::Util.url_encode(key.to_s) - y << "; name=\"#{name}\"" - end - if val.is_a?(IO) - filename = ERB::Util.url_encode(File.basename(val.to_path)) - y << "; filename=\"#{filename}\"" - end - y << "\r\n" - case val - in IO - y << "Content-Type: application/octet-stream\r\n\r\n" - IO.copy_stream(val, y) - in StringIO - y << "Content-Type: application/octet-stream\r\n\r\n" - y << val.string - in String - y << "Content-Type: application/octet-stream\r\n\r\n" - y << val.to_s - in true | false | Integer | Float | Symbol - y << "Content-Type: text/plain\r\n\r\n" - y << val.to_s - else - y << "Content-Type: application/json\r\n\r\n" - y << JSON.fast_generate(val) - end - y << "\r\n" - end - - # @api private - # - # @param body [Object] - # - # @return [Array(String, Enumerable)] - private def encode_multipart_streaming(body) - boundary = SecureRandom.urlsafe_base64(60) - - strio = writable_enum do |y| - case body - in Hash - body.each do |key, val| - case val - in Array if val.all? { primitive?(_1) } - val.each do |v| - write_multipart_chunk(y, boundary: boundary, key: key, val: v) - end - else - write_multipart_chunk(y, boundary: boundary, key: key, val: val) - end - end - else - write_multipart_chunk(y, boundary: boundary, key: nil, val: body) - end - y << "--#{boundary}--\r\n" - end - - [boundary, strio] - end - - # @api private - # - # @param headers [Hash{String=>String}] - # @param body [Object] - # - # @return [Object] - def encode_content(headers, body) - content_type = headers["content-type"] - case [content_type, body] - in [%r{^application/(?:vnd\.api\+)?json}, Hash | Array] - [headers, JSON.fast_generate(body)] - in [%r{^application/(?:x-)?jsonl}, Enumerable] - [headers, body.lazy.map { JSON.fast_generate(_1) }] - in [%r{^multipart/form-data}, Hash | IO | StringIO] - boundary, strio = encode_multipart_streaming(body) - headers = {**headers, "content-type" => "#{content_type}; boundary=#{boundary}"} - [headers, strio] - in [_, StringIO] - [headers, body.string] - else - [headers, body] - end - end - - # @api private - # - # @param headers [Hash{String=>String}, Net::HTTPHeader] - # @param stream [Enumerable] - # @param suppress_error [Boolean] - # - # @raise [JSON::ParserError] - # @return [Object] - def decode_content(headers, stream:, suppress_error: false) - case headers["content-type"] - in %r{^application/(?:vnd\.api\+)?json} - json = stream.to_a.join - begin - JSON.parse(json, symbolize_names: true) - rescue JSON::ParserError => e - raise e unless suppress_error - json - end - in %r{^application/(?:x-)?jsonl} - lines = decode_lines(stream) - chain_fused(lines) do |y| - lines.each { y << JSON.parse(_1, symbolize_names: true) } - end - in %r{^text/event-stream} - lines = decode_lines(stream) - decode_sse(lines) - in %r{^text/} - stream.to_a.join - else - # TODO: parsing other response types - StringIO.new(stream.to_a.join) - end - end - end - - class << self - # @api private - # - # https://doc.rust-lang.org/std/iter/trait.FusedIterator.html - # - # @param enum [Enumerable] - # @param external [Boolean] - # @param close [Proc] - # - # @return [Enumerable] - def fused_enum(enum, external: false, &close) - fused = false - iter = Enumerator.new do |y| - next if fused - - fused = true - if external - loop { y << enum.next } - else - enum.each(&y) - end - ensure - close&.call - close = nil - end - - iter.define_singleton_method(:rewind) do - fused = true - self - end - iter - end - - # @api private - # - # @param enum [Enumerable, nil] - def close_fused!(enum) - return unless enum.is_a?(Enumerator) - - # rubocop:disable Lint/UnreachableLoop - enum.rewind.each { break } - # rubocop:enable Lint/UnreachableLoop - end - - # @api private - # - # @param enum [Enumerable, nil] - # @param blk [Proc] - # - # @yieldparam [Enumerator::Yielder] - # @return [Enumerable] - def chain_fused(enum, &blk) - iter = Enumerator.new { blk.call(_1) } - fused_enum(iter) { close_fused!(enum) } - end - end - - class << self - # @api private - # - # @param enum [Enumerable] - # - # @return [Enumerable] - def decode_lines(enum) - re = /(\r\n|\r|\n)/ - buffer = String.new.b - cr_seen = nil - - chain_fused(enum) do |y| - enum.each do |row| - offset = buffer.bytesize - buffer << row - while (match = re.match(buffer, cr_seen&.to_i || offset)) - case [match.captures.first, cr_seen] - in ["\r", nil] - cr_seen = match.end(1) - next - in ["\r" | "\r\n", Integer] - y << buffer.slice!(..(cr_seen.pred)) - else - y << buffer.slice!(..(match.end(1).pred)) - end - offset = 0 - cr_seen = nil - end - end - - y << buffer.slice!(..(cr_seen.pred)) unless cr_seen.nil? - y << buffer unless buffer.empty? - end - end - - # @api private - # - # https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream - # - # @param lines [Enumerable] - # - # @return [Hash{Symbol=>Object}] - def decode_sse(lines) - # rubocop:disable Metrics/BlockLength - chain_fused(lines) do |y| - blank = {event: nil, data: nil, id: nil, retry: nil} - current = {} - - lines.each do |line| - case line.sub(/\R$/, "") - in "" - next if current.empty? - y << {**blank, **current} - current = {} - in /^:/ - next - in /^([^:]+):\s?(.*)$/ - field, value = Regexp.last_match.captures - case field - in "event" - current.merge!(event: value) - in "data" - (current[:data] ||= String.new.b) << (value << "\n") - in "id" unless value.include?("\0") - current.merge!(id: value) - in "retry" if /^\d+$/ =~ value - current.merge!(retry: Integer(value)) - else - end - else - end - end - # rubocop:enable Metrics/BlockLength - - y << {**blank, **current} unless current.empty? - end - end - end - end - - # rubocop:enable Metrics/ModuleLength -end diff --git a/lib/increase/version.rb b/lib/increase/version.rb index bc937822..b48ca384 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-alpha.2" + VERSION = "0.1.0-alpha.3" end diff --git a/rbi/lib/increase/client.rbi b/rbi/lib/increase/client.rbi index 0bb29923..e077746a 100644 --- a/rbi/lib/increase/client.rbi +++ b/rbi/lib/increase/client.rbi @@ -1,7 +1,7 @@ # typed: strong module Increase - class Client < Increase::Transport::BaseClient + class Client < Increase::Internal::Transport::BaseClient DEFAULT_MAX_RETRIES = 2 DEFAULT_TIMEOUT_IN_SECONDS = T.let(60.0, Float) diff --git a/rbi/lib/increase/errors.rbi b/rbi/lib/increase/errors.rbi index 68569e31..18b7c7b7 100644 --- a/rbi/lib/increase/errors.rbi +++ b/rbi/lib/increase/errors.rbi @@ -187,54 +187,4 @@ module Increase TYPE = "internal_server_error" end end - - Error = Increase::Errors::Error - - ConversionError = Increase::Errors::ConversionError - - APIError = Increase::Errors::APIError - - APIStatusError = Increase::Errors::APIStatusError - - APIConnectionError = Increase::Errors::APIConnectionError - - APITimeoutError = Increase::Errors::APITimeoutError - - BadRequestError = Increase::Errors::BadRequestError - - AuthenticationError = Increase::Errors::AuthenticationError - - PermissionDeniedError = Increase::Errors::PermissionDeniedError - - NotFoundError = Increase::Errors::NotFoundError - - ConflictError = Increase::Errors::ConflictError - - UnprocessableEntityError = Increase::Errors::UnprocessableEntityError - - RateLimitError = Increase::Errors::RateLimitError - - InvalidParametersError = Increase::Errors::InvalidParametersError - - MalformedRequestError = Increase::Errors::MalformedRequestError - - InvalidAPIKeyError = Increase::Errors::InvalidAPIKeyError - - EnvironmentMismatchError = Increase::Errors::EnvironmentMismatchError - - InsufficientPermissionsError = Increase::Errors::InsufficientPermissionsError - - PrivateFeatureError = Increase::Errors::PrivateFeatureError - - APIMethodNotFoundError = Increase::Errors::APIMethodNotFoundError - - ObjectNotFoundError = Increase::Errors::ObjectNotFoundError - - IdempotencyKeyAlreadyUsedError = Increase::Errors::IdempotencyKeyAlreadyUsedError - - InvalidOperationError = Increase::Errors::InvalidOperationError - - RateLimitedError = Increase::Errors::RateLimitedError - - InternalServerError = Increase::Errors::InternalServerError end diff --git a/rbi/lib/increase/internal.rbi b/rbi/lib/increase/internal.rbi new file mode 100644 index 00000000..3cd310f3 --- /dev/null +++ b/rbi/lib/increase/internal.rbi @@ -0,0 +1,12 @@ +# typed: strong + +module Increase + # @api private + module Internal + # 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] } + + OMIT = T.let(T.anything, T.anything) + end +end diff --git a/rbi/lib/increase/internal/page.rbi b/rbi/lib/increase/internal/page.rbi new file mode 100644 index 00000000..7be81af9 --- /dev/null +++ b/rbi/lib/increase/internal/page.rbi @@ -0,0 +1,21 @@ +# typed: strong + +module Increase + module Internal + class Page + include Increase::Internal::Type::BasePage + + Elem = type_member + + sig { returns(T.nilable(T::Array[Elem])) } + attr_accessor :data + + sig { returns(T.nilable(String)) } + attr_accessor :next_cursor + + sig { returns(String) } + def inspect + end + end + end +end diff --git a/rbi/lib/increase/internal/transport/base_client.rbi b/rbi/lib/increase/internal/transport/base_client.rbi new file mode 100644 index 00000000..7c42a4d4 --- /dev/null +++ b/rbi/lib/increase/internal/transport/base_client.rbi @@ -0,0 +1,212 @@ +# typed: strong + +module Increase + module Internal + module Transport + # @api private + class BaseClient + abstract! + + RequestComponentsShape = + T.type_alias do + { + method: Symbol, + path: T.any(String, T::Array[String]), + query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), + headers: T.nilable( + T::Hash[String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + )] + ), + body: T.nilable(T.anything), + unwrap: T.nilable(Symbol), + page: T.nilable(T::Class[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(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + } + end + + RequestInputShape = + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + max_retries: Integer, + timeout: Float + } + end + + # from whatwg fetch spec + MAX_REDIRECTS = 20 + + PLATFORM_HEADERS = T::Hash[String, String] + + class << self + # @api private + sig { params(req: Increase::Internal::Transport::BaseClient::RequestComponentsShape).void } + def validate!(req) + end + + # @api private + sig do + params( + status: Integer, + headers: T.any( + T::Hash[String, String], + Net::HTTPHeader + ) + ).returns(T::Boolean) + end + def should_retry?(status, headers:) + end + + # @api private + sig do + params( + request: Increase::Internal::Transport::BaseClient::RequestInputShape, + status: Integer, + response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) + ) + .returns(Increase::Internal::Transport::BaseClient::RequestInputShape) + end + def follow_redirect(request, status:, response_headers:) + end + + # @api private + sig do + params( + status: T.any(Integer, Increase::Errors::APIConnectionError), + stream: T.nilable(T::Enumerable[String]) + ) + .void + end + def reap_connection!(status, stream:) + end + end + + # @api private + sig { returns(Increase::Internal::Transport::PooledNetRequester) } + attr_accessor :requester + + # @api private + sig do + params( + base_url: String, + timeout: Float, + max_retries: Integer, + initial_retry_delay: Float, + max_retry_delay: Float, + headers: T::Hash[String, + T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))], + idempotency_header: T.nilable(String) + ) + .returns(T.attached_class) + end + def self.new( + base_url:, + timeout: 0.0, + max_retries: 0, + initial_retry_delay: 0.0, + max_retry_delay: 0.0, + headers: {}, + idempotency_header: nil + ) + end + + # @api private + sig { overridable.returns(T::Hash[String, String]) } + private def auth_headers + end + + # @api private + sig { returns(String) } + private def generate_idempotency_key + end + + # @api private + sig do + overridable + .params( + req: Increase::Internal::Transport::BaseClient::RequestComponentsShape, + opts: Increase::Internal::AnyHash + ) + .returns(Increase::Internal::Transport::BaseClient::RequestInputShape) + end + private def build_request(req, opts) + end + + # @api private + sig { params(headers: T::Hash[String, String], retry_count: Integer).returns(Float) } + private def retry_delay(headers, retry_count:) + end + + # @api private + sig do + params( + request: Increase::Internal::Transport::BaseClient::RequestInputShape, + redirect_count: Integer, + retry_count: Integer, + send_retry_header: T::Boolean + ) + .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + end + private def send_request(request, redirect_count:, retry_count:, send_retry_header:) + end + + # Execute the request specified by `req`. This is the method that all resource + # methods call into. + # + # @overload request(method, path, query: {}, headers: {}, body: nil, unwrap: nil, page: nil, stream: nil, model: Increase::Internal::Type::Unknown, options: {}) + sig do + params( + method: Symbol, + path: T.any(String, T::Array[String]), + query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), + headers: T.nilable( + T::Hash[String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + )] + ), + body: T.nilable(T.anything), + unwrap: T.nilable(Symbol), + page: T.nilable(T::Class[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(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + ) + .returns(T.anything) + end + def request( + method, + path, + query: {}, + headers: {}, + body: nil, + unwrap: nil, + page: nil, + stream: nil, + model: Increase::Internal::Type::Unknown, + options: {} + ) + end + + sig { returns(String) } + def inspect + end + end + end + end +end diff --git a/rbi/lib/increase/internal/transport/pooled_net_requester.rbi b/rbi/lib/increase/internal/transport/pooled_net_requester.rbi new file mode 100644 index 00000000..f2f8afc8 --- /dev/null +++ b/rbi/lib/increase/internal/transport/pooled_net_requester.rbi @@ -0,0 +1,66 @@ +# typed: strong + +module Increase + module Internal + module Transport + # @api private + class PooledNetRequester + RequestShape = + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + deadline: Float + } + end + + # from the golang stdlib + # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 + KEEP_ALIVE_TIMEOUT = 30 + + class << self + # @api private + sig { params(url: URI::Generic).returns(Net::HTTP) } + def connect(url) + end + + # @api private + sig { params(conn: Net::HTTP, deadline: Float).void } + def calibrate_socket_timeout(conn, deadline) + end + + # @api private + sig do + params( + request: Increase::Internal::Transport::PooledNetRequester::RequestShape, + blk: T.proc.params(arg0: String).void + ) + .returns(Net::HTTPGenericRequest) + end + def build_request(request, &blk) + end + end + + # @api private + sig { params(url: URI::Generic, deadline: Float, blk: T.proc.params(arg0: Net::HTTP).void).void } + private def with_pool(url, deadline:, &blk) + end + + # @api private + sig do + params(request: Increase::Internal::Transport::PooledNetRequester::RequestShape) + .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + end + def execute(request) + end + + # @api private + sig { params(size: Integer).returns(T.attached_class) } + def self.new(size: Etc.nprocessors) + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/array_of.rbi b/rbi/lib/increase/internal/type/array_of.rbi new file mode 100644 index 00000000..a25babbc --- /dev/null +++ b/rbi/lib/increase/internal/type/array_of.rbi @@ -0,0 +1,88 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + # + # Array of items of a given type. + class ArrayOf + include Increase::Internal::Type::Converter + + abstract! + final! + + Elem = type_member(:out) + + sig(:final) do + params( + type_info: T.any( + Increase::Internal::AnyHash, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ), + spec: Increase::Internal::AnyHash + ) + .returns(T.attached_class) + end + def self.[](type_info, spec = {}) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def ===(other) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + sig(:final) do + override + .params(value: T.any( + T::Enumerable[Elem], + T.anything + ), + state: Increase::Internal::Type::Converter::State) + .returns(T.any(T::Array[T.anything], T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig(:final) do + override + .params(value: T.any(T::Enumerable[Elem], T.anything)) + .returns(T.any(T::Array[T.anything], T.anything)) + end + def dump(value) + end + + # @api private + sig(:final) { returns(Elem) } + protected def item_type + end + + # @api private + sig(:final) { returns(T::Boolean) } + protected def nilable? + end + + # @api private + sig(:final) do + params( + type_info: T.any( + Increase::Internal::AnyHash, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ), + spec: Increase::Internal::AnyHash + ) + .void + end + def initialize(type_info, spec = {}) + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/base_model.rbi b/rbi/lib/increase/internal/type/base_model.rbi new file mode 100644 index 00000000..9bb796f6 --- /dev/null +++ b/rbi/lib/increase/internal/type/base_model.rbi @@ -0,0 +1,212 @@ +# typed: strong + +module Increase + module Internal + module Type + class BaseModel + extend Increase::Internal::Type::Converter + + abstract! + + KnownFieldShape = T.type_alias do + {mode: T.nilable(Symbol), required: T::Boolean, nilable: T::Boolean} + end + + class << self + # @api private + # + # Assumes superclass fields are totally defined before fields are accessed / + # defined on subclasses. + sig do + returns( + T::Hash[ + Symbol, + T.all( + Increase::Internal::Type::BaseModel::KnownFieldShape, + {type_fn: T.proc.returns(Increase::Internal::Type::Converter::Input)} + ) + ] + ) + end + def known_fields + end + + # @api private + sig do + returns( + T::Hash[ + Symbol, + T.all( + Increase::Internal::Type::BaseModel::KnownFieldShape, + {type: Increase::Internal::Type::Converter::Input} + ) + ] + ) + end + def fields + end + + # @api private + sig do + params( + name_sym: Symbol, + required: T::Boolean, + type_info: T.any( + { + const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), + enum: T.nilable(T.proc.returns(Increase::Internal::Type::Converter::Input)), + union: T.nilable(T.proc.returns(Increase::Internal::Type::Converter::Input)), + api_name: Symbol, + nil?: T::Boolean + }, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ), + spec: Increase::Internal::AnyHash + ) + .void + end + private def add_field(name_sym, required:, type_info:, spec:) + end + + # @api private + sig do + params( + name_sym: Symbol, + type_info: T.any( + Increase::Internal::AnyHash, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ), + spec: Increase::Internal::AnyHash + ) + .void + end + def required(name_sym, type_info, spec = {}) + end + + # @api private + sig do + params( + name_sym: Symbol, + type_info: T.any( + Increase::Internal::AnyHash, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ), + spec: Increase::Internal::AnyHash + ) + .void + end + def optional(name_sym, type_info, spec = {}) + end + + # @api private + # + # `request_only` attributes not excluded from `.#coerce` when receiving responses + # even if well behaved servers should not send them + sig { params(blk: T.proc.void).void } + private def request_only(&blk) + end + + # @api private + # + # `response_only` attributes are omitted from `.#dump` when making requests + sig { params(blk: T.proc.void).void } + private def response_only(&blk) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + class << self + # @api private + sig do + override + .params( + value: T.any( + Increase::Internal::Type::BaseModel, + T::Hash[T.anything, T.anything], + T.anything + ), + state: Increase::Internal::Type::Converter::State + ) + .returns(T.any(T.attached_class, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig do + override + .params(value: T.any(T.attached_class, T.anything)) + .returns(T.any(T::Hash[T.anything, T.anything], T.anything)) + end + def dump(value) + end + end + + # Returns the raw value associated with the given key, if found. Otherwise, nil is + # returned. + # + # It is valid to lookup keys that are not in the API spec, for example to access + # undocumented features. This method does not parse response data into + # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. + sig { params(key: Symbol).returns(T.nilable(T.anything)) } + def [](key) + end + + # Returns a Hash of the data underlying this object. O(1) + # + # Keys are Symbols and values are the raw values from the response. The return + # value indicates which values were ever set on the object. i.e. there will be a + # key in this hash if they ever were, even if the set value was nil. + # + # This method is not recursive. The returned value is shared by the object, so it + # should not be mutated. + sig { overridable.returns(Increase::Internal::AnyHash) } + def to_h + end + + # Returns a Hash of the data underlying this object. O(1) + # + # Keys are Symbols and values are the raw values from the response. The return + # value indicates which values were ever set on the object. i.e. there will be a + # key in this hash if they ever were, even if the set value was nil. + # + # This method is not recursive. The returned value is shared by the object, so it + # should not be mutated. + sig { overridable.returns(Increase::Internal::AnyHash) } + def to_hash + end + + sig { params(keys: T.nilable(T::Array[Symbol])).returns(Increase::Internal::AnyHash) } + def deconstruct_keys(keys) + end + + sig { params(a: T.anything).returns(String) } + def to_json(*a) + end + + sig { params(a: T.anything).returns(String) } + def to_yaml(*a) + end + + # Create a new instance of a model. + sig { params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns(T.attached_class) } + def self.new(data = {}) + end + + sig { returns(String) } + def inspect + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/base_page.rbi b/rbi/lib/increase/internal/type/base_page.rbi new file mode 100644 index 00000000..7f5a371c --- /dev/null +++ b/rbi/lib/increase/internal/type/base_page.rbi @@ -0,0 +1,41 @@ +# typed: strong + +module Increase + module Internal + module Type + # This module provides a base implementation for paginated responses in the SDK. + module BasePage + Elem = type_member(:out) + + sig { overridable.returns(T::Boolean) } + def next_page? + end + + sig { overridable.returns(T.self_type) } + def next_page + end + + sig { overridable.params(blk: T.proc.params(arg0: Elem).void).void } + def auto_paging_each(&blk) + end + + sig { returns(T::Enumerable[Elem]) } + def to_enum + end + + # @api private + sig do + params( + client: Increase::Internal::Transport::BaseClient, + req: Increase::Internal::Transport::BaseClient::RequestComponentsShape, + headers: T.any(T::Hash[String, String], Net::HTTPHeader), + page_data: T.anything + ) + .void + end + def initialize(client:, req:, headers:, page_data:) + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/boolean_model.rbi b/rbi/lib/increase/internal/type/boolean_model.rbi new file mode 100644 index 00000000..5949621a --- /dev/null +++ b/rbi/lib/increase/internal/type/boolean_model.rbi @@ -0,0 +1,43 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + # + # Ruby has no Boolean class; this is something for models to refer to. + class BooleanModel + extend Increase::Internal::Type::Converter + + abstract! + final! + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.===(other) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.==(other) + end + + class << self + # @api private + sig(:final) do + override + .params(value: T.any(T::Boolean, T.anything), state: Increase::Internal::Type::Converter::State) + .returns(T.any(T::Boolean, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig(:final) do + override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) + end + def dump(value) + end + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/converter.rbi b/rbi/lib/increase/internal/type/converter.rbi new file mode 100644 index 00000000..3e7c25bb --- /dev/null +++ b/rbi/lib/increase/internal/type/converter.rbi @@ -0,0 +1,108 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + module Converter + Input = T.type_alias { T.any(Increase::Internal::Type::Converter, T::Class[T.anything]) } + + State = + T.type_alias do + { + strictness: T.any(T::Boolean, Symbol), + exactness: {yes: Integer, no: Integer, maybe: Integer}, + branched: Integer + } + end + + # @api private + sig do + overridable.params( + value: T.anything, + state: Increase::Internal::Type::Converter::State + ).returns(T.anything) + end + def coerce(value, state:) + end + + # @api private + sig { overridable.params(value: T.anything).returns(T.anything) } + def dump(value) + end + + class << self + # @api private + sig do + params( + spec: T.any( + { + const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), + enum: T.nilable(T.proc.returns(Increase::Internal::Type::Converter::Input)), + union: T.nilable(T.proc.returns(Increase::Internal::Type::Converter::Input)) + }, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ) + ) + .returns(T.proc.returns(T.anything)) + end + def self.type_info(spec) + end + + # @api private + # + # Based on `target`, transform `value` into `target`, to the extent possible: + # + # 1. if the given `value` conforms to `target` already, return the given `value` + # 2. if it's possible and safe to convert the given `value` to `target`, then the + # converted value + # 3. otherwise, the given `value` unaltered + # + # The coercion process is subject to improvement between minor release versions. + # See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode + sig do + params( + target: Increase::Internal::Type::Converter::Input, + value: T.anything, + state: Increase::Internal::Type::Converter::State + ) + .returns(T.anything) + end + def self.coerce( + target, + value, + # The `strictness` is one of `true`, `false`, or `:strong`. This informs the + # coercion strategy when we have to decide between multiple possible conversion + # targets: + # + # - `true`: the conversion must be exact, with minimum coercion. + # - `false`: the conversion can be approximate, with some coercion. + # - `:strong`: the conversion must be exact, with no coercion, and raise an error + # if not possible. + # + # The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For + # any given conversion attempt, the exactness will be updated based on how closely + # the value recursively matches the target type: + # + # - `yes`: the value can be converted to the target type with minimum coercion. + # - `maybe`: the value can be converted to the target type with some reasonable + # coercion. + # - `no`: the value cannot be converted to the target type. + # + # See implementation below for more details. + state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} + ) + end + + # @api private + sig do + params(target: Increase::Internal::Type::Converter::Input, value: T.anything).returns(T.anything) + end + def self.dump(target, value) + end + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/enum.rbi b/rbi/lib/increase/internal/type/enum.rbi new file mode 100644 index 00000000..f93c91d9 --- /dev/null +++ b/rbi/lib/increase/internal/type/enum.rbi @@ -0,0 +1,65 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + # + # A value from among a specified list of options. OpenAPI enum values map to Ruby + # values in the SDK as follows: + # + # 1. boolean => true | false + # 2. integer => Integer + # 3. float => Float + # 4. string => Symbol + # + # We can therefore convert string values to Symbols, but can't convert other + # values safely. + module Enum + include Increase::Internal::Type::Converter + + # All of the valid Symbol values for this enum. + sig { overridable.returns(T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)]) } + def values + end + + # @api private + # + # Guard against thread safety issues by instantiating `@values`. + sig { void } + private def finalize! + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ===(other) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + # + # Unlike with primitives, `Enum` additionally validates that the value is a member + # of the enum. + sig do + override + .params(value: T.any( + String, + Symbol, + T.anything + ), + state: Increase::Internal::Type::Converter::State) + .returns(T.any(Symbol, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def dump(value) + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/hash_of.rbi b/rbi/lib/increase/internal/type/hash_of.rbi new file mode 100644 index 00000000..8c492350 --- /dev/null +++ b/rbi/lib/increase/internal/type/hash_of.rbi @@ -0,0 +1,87 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + # + # Hash of items of a given type. + class HashOf + include Increase::Internal::Type::Converter + + abstract! + final! + + Elem = type_member(:out) + + sig(:final) do + params( + type_info: T.any( + Increase::Internal::AnyHash, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ), + spec: Increase::Internal::AnyHash + ) + .returns(T.attached_class) + end + def self.[](type_info, spec = {}) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def ===(other) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + sig(:final) do + override + .params( + value: T.any(T::Hash[T.anything, T.anything], T.anything), + state: Increase::Internal::Type::Converter::State + ) + .returns(T.any(Increase::Internal::AnyHash, T.anything)) + end + def coerce(value, state:) + end + + # @api private + sig(:final) do + override + .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) + .returns(T.any(Increase::Internal::AnyHash, T.anything)) + end + def dump(value) + end + + # @api private + sig(:final) { returns(Elem) } + protected def item_type + end + + # @api private + sig(:final) { returns(T::Boolean) } + protected def nilable? + end + + # @api private + sig(:final) do + params( + type_info: T.any( + Increase::Internal::AnyHash, + T.proc.returns(Increase::Internal::Type::Converter::Input), + Increase::Internal::Type::Converter::Input + ), + spec: Increase::Internal::AnyHash + ) + .void + end + def initialize(type_info, spec = {}) + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/request_parameters.rbi b/rbi/lib/increase/internal/type/request_parameters.rbi new file mode 100644 index 00000000..93140528 --- /dev/null +++ b/rbi/lib/increase/internal/type/request_parameters.rbi @@ -0,0 +1,22 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + module RequestParameters + # Options to specify HTTP behaviour for this request. + sig { returns(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) } + attr_accessor :request_options + + # @api private + module Converter + # @api private + sig { params(params: T.anything).returns([T.anything, Increase::Internal::AnyHash]) } + def dump_request(params) + end + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/union.rbi b/rbi/lib/increase/internal/type/union.rbi new file mode 100644 index 00000000..bc100a4e --- /dev/null +++ b/rbi/lib/increase/internal/type/union.rbi @@ -0,0 +1,75 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + module Union + include Increase::Internal::Type::Converter + + # @api private + # + # All of the specified variant info for this union. + sig do + returns(T::Array[[T.nilable(Symbol), T.proc.returns(Increase::Internal::Type::Converter::Input)]]) + end + private def known_variants + end + + # @api private + sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) } + protected def derefed_variants + end + + # All of the specified variants for this union. + sig { overridable.returns(T::Array[T.anything]) } + def variants + end + + # @api private + sig { params(property: Symbol).void } + private def discriminator(property) + end + + # @api private + sig do + params( + key: T.any(Symbol, Increase::Internal::AnyHash, T.proc.returns(T.anything), T.anything), + spec: T.any(Increase::Internal::AnyHash, T.proc.returns(T.anything), T.anything) + ) + .void + end + private def variant(key, spec = nil) + end + + # @api private + sig { params(value: T.anything).returns(T.nilable(T.anything)) } + private def resolve_variant(value) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ===(other) + end + + sig { params(other: T.anything).returns(T::Boolean) } + def ==(other) + end + + # @api private + sig do + override.params( + value: T.anything, + state: Increase::Internal::Type::Converter::State + ).returns(T.anything) + end + def coerce(value, state:) + end + + # @api private + sig { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end + end + end + end +end diff --git a/rbi/lib/increase/internal/type/unknown.rbi b/rbi/lib/increase/internal/type/unknown.rbi new file mode 100644 index 00000000..c1e947e2 --- /dev/null +++ b/rbi/lib/increase/internal/type/unknown.rbi @@ -0,0 +1,42 @@ +# typed: strong + +module Increase + module Internal + module Type + # @api private + # + # When we don't know what to expect for the value. + class Unknown + extend Increase::Internal::Type::Converter + + abstract! + final! + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.===(other) + end + + sig(:final) { params(other: T.anything).returns(T::Boolean) } + def self.==(other) + end + + class << self + # @api private + sig(:final) do + override.params( + value: T.anything, + state: Increase::Internal::Type::Converter::State + ).returns(T.anything) + end + def coerce(value, state:) + end + + # @api private + sig(:final) { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end + end + end + end + end +end diff --git a/rbi/lib/increase/internal/util.rbi b/rbi/lib/increase/internal/util.rbi new file mode 100644 index 00000000..755fb2b2 --- /dev/null +++ b/rbi/lib/increase/internal/util.rbi @@ -0,0 +1,280 @@ +# typed: strong + +module Increase + module Internal + # @api private + module Util + # @api private + sig { returns(Float) } + def self.monotonic_secs + end + + class << self + # @api private + sig { returns(String) } + def arch + end + + # @api private + sig { returns(String) } + def os + end + end + + class << self + # @api private + sig { params(input: T.anything).returns(T::Boolean) } + def primitive?(input) + end + + # @api private + sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } + def coerce_boolean(input) + end + + # @api private + sig { params(input: T.anything).returns(T.nilable(T::Boolean)) } + def coerce_boolean!(input) + end + + # @api private + sig { params(input: T.anything).returns(T.any(Integer, T.anything)) } + def coerce_integer(input) + end + + # @api private + sig { params(input: T.anything).returns(T.any(Float, T.anything)) } + def coerce_float(input) + end + + # @api private + sig { params(input: T.anything).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) } + def coerce_hash(input) + end + end + + class << self + # @api private + sig { params(lhs: T.anything, rhs: T.anything, concat: T::Boolean).returns(T.anything) } + private def deep_merge_lr(lhs, rhs, concat: false) + end + + # @api private + # + # Recursively merge one hash with another. If the values at a given key are not + # both hashes, just take the new value. + sig do + params(values: T::Array[T.anything], sentinel: T.nilable(T.anything), concat: T::Boolean) + .returns(T.anything) + end + def deep_merge( + *values, + # the value to return if no values are provided. + sentinel: nil, + # whether to merge sequences by concatenation. + concat: false + ) + end + + # @api private + sig do + params( + data: T.any(Increase::Internal::AnyHash, T::Array[T.anything], T.anything), + pick: T.nilable(T.any(Symbol, Integer, T::Array[T.any(Symbol, Integer)])), + sentinel: T.nilable(T.anything), + blk: T.nilable(T.proc.returns(T.anything)) + ) + .returns(T.nilable(T.anything)) + end + def dig(data, pick, sentinel = nil, &blk) + end + end + + class << self + # @api private + sig { params(uri: URI::Generic).returns(String) } + def uri_origin(uri) + end + + # @api private + sig { params(path: T.any(String, T::Array[String])).returns(String) } + def interpolate_path(path) + end + end + + class << self + # @api private + sig { params(query: T.nilable(String)).returns(T::Hash[String, T::Array[String]]) } + def decode_query(query) + end + + # @api private + sig do + params(query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) + .returns(T.nilable(String)) + end + def encode_query(query) + end + end + + ParsedUriShape = + T.type_alias do + { + scheme: T.nilable(String), + host: T.nilable(String), + port: T.nilable(Integer), + path: T.nilable(String), + query: T::Hash[String, T::Array[String]] + } + end + + class << self + # @api private + sig { params(url: T.any(URI::Generic, String)).returns(Increase::Internal::Util::ParsedUriShape) } + def parse_uri(url) + end + + # @api private + sig { params(parsed: Increase::Internal::Util::ParsedUriShape).returns(URI::Generic) } + def unparse_uri(parsed) + end + + # @api private + sig do + params(lhs: Increase::Internal::Util::ParsedUriShape, rhs: Increase::Internal::Util::ParsedUriShape) + .returns(URI::Generic) + end + def join_parsed_uri(lhs, rhs) + end + end + + class << self + # @api private + sig do + params( + headers: T::Hash[String, + T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))] + ) + .returns(T::Hash[String, String]) + end + def normalized_headers(*headers) + end + end + + # @api private + # + # An adapter that satisfies the IO interface required by `::IO.copy_stream` + class ReadIOAdapter + # @api private + sig { params(max_len: T.nilable(Integer)).returns(String) } + private def read_enum(max_len) + end + + # @api private + sig { params(max_len: T.nilable(Integer), out_string: T.nilable(String)).returns(T.nilable(String)) } + def read(max_len = nil, out_string = nil) + end + + # @api private + sig do + params( + stream: T.any(String, IO, StringIO, T::Enumerable[String]), + blk: T.proc.params(arg0: String).void + ) + .returns(T.attached_class) + end + def self.new(stream, &blk) + end + end + + class << self + sig { params(blk: T.proc.params(y: Enumerator::Yielder).void).returns(T::Enumerable[String]) } + def writable_enum(&blk) + end + end + + class << self + # @api private + sig do + params(y: Enumerator::Yielder, boundary: String, key: T.any(Symbol, String), val: T.anything).void + end + private def write_multipart_chunk(y, boundary:, key:, val:) + end + + # @api private + sig { params(body: T.anything).returns([String, T::Enumerable[String]]) } + private def encode_multipart_streaming(body) + end + + # @api private + sig { params(headers: T::Hash[String, String], body: T.anything).returns(T.anything) } + def encode_content(headers, body) + end + + # @api private + sig do + params( + headers: T.any(T::Hash[String, String], Net::HTTPHeader), + stream: T::Enumerable[String], + suppress_error: T::Boolean + ) + .returns(T.anything) + end + def decode_content(headers, stream:, suppress_error: false) + end + end + + class << self + # @api private + # + # https://doc.rust-lang.org/std/iter/trait.FusedIterator.html + sig do + params(enum: T::Enumerable[T.anything], external: T::Boolean, close: T.proc.void) + .returns(T::Enumerable[T.anything]) + end + def fused_enum(enum, external: false, &close) + end + + # @api private + sig { params(enum: T.nilable(T::Enumerable[T.anything])).void } + def close_fused!(enum) + end + + # @api private + sig do + params( + enum: T.nilable(T::Enumerable[T.anything]), + blk: T.proc.params(arg0: Enumerator::Yielder).void + ) + .returns(T::Enumerable[T.anything]) + end + def chain_fused(enum, &blk) + end + end + + ServerSentEvent = + T.type_alias do + { + event: T.nilable(String), + data: T.nilable(String), + id: T.nilable(String), + retry: T.nilable(Integer) + } + end + + class << self + # @api private + sig { params(enum: T::Enumerable[String]).returns(T::Enumerable[String]) } + def decode_lines(enum) + end + + # @api private + # + # https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream + sig { params(lines: T::Enumerable[String]).returns(Increase::Internal::Util::ServerSentEvent) } + def decode_sse(lines) + end + end + end + end +end diff --git a/rbi/lib/increase/models/account.rbi b/rbi/lib/increase/models/account.rbi index 5bc5d6d4..23906dc8 100644 --- a/rbi/lib/increase/models/account.rbi +++ b/rbi/lib/increase/models/account.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Account < Increase::BaseModel + class Account < Increase::Internal::Type::BaseModel # The Account identifier. sig { returns(String) } attr_accessor :id @@ -143,7 +143,7 @@ module Increase # The bank the Account is with. module Bank - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Account::Bank) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Account::Bank::TaggedSymbol) } @@ -165,7 +165,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Account # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Account::Currency) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Account::Currency::TaggedSymbol) } @@ -195,7 +195,7 @@ module Increase # The status of the Account. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Account::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Account::Status::TaggedSymbol) } @@ -214,7 +214,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `account`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Account::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Account::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/account_balance_params.rbi b/rbi/lib/increase/models/account_balance_params.rbi index 795833fe..e8720e21 100644 --- a/rbi/lib/increase/models/account_balance_params.rbi +++ b/rbi/lib/increase/models/account_balance_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountBalanceParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountBalanceParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The moment to query the balance at. If not set, returns the current balances. sig { returns(T.nilable(Time)) } @@ -14,7 +14,7 @@ module Increase attr_writer :at_time sig do - params(at_time: Time, request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + params(at_time: Time, request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) .returns(T.attached_class) end def self.new(at_time: nil, request_options: {}) diff --git a/rbi/lib/increase/models/account_close_params.rbi b/rbi/lib/increase/models/account_close_params.rbi index 38d5fec9..6114fd93 100644 --- a/rbi/lib/increase/models/account_close_params.rbi +++ b/rbi/lib/increase/models/account_close_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class AccountCloseParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountCloseParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/account_create_params.rbi b/rbi/lib/increase/models/account_create_params.rbi index 16007f23..5d3425fd 100644 --- a/rbi/lib/increase/models/account_create_params.rbi +++ b/rbi/lib/increase/models/account_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The name you choose for the Account. sig { returns(String) } @@ -39,7 +39,7 @@ module Increase entity_id: String, informational_entity_id: String, program_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/account_list_params.rbi b/rbi/lib/increase/models/account_list_params.rbi index 0840748e..f649b0d9 100644 --- a/rbi/lib/increase/models/account_list_params.rbi +++ b/rbi/lib/increase/models/account_list_params.rbi @@ -2,14 +2,14 @@ module Increase module Models - class AccountListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::AccountListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::AccountListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig { params(created_at: T.any(Increase::Models::AccountListParams::CreatedAt, Increase::Internal::AnyHash)).void } attr_writer :created_at # Return the page of entries after this one. @@ -61,20 +61,20 @@ module Increase sig { returns(T.nilable(Increase::Models::AccountListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::AccountListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::AccountListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( - created_at: T.any(Increase::Models::AccountListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::AccountListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, entity_id: String, idempotency_key: String, informational_entity_id: String, limit: Integer, program_id: String, - status: T.any(Increase::Models::AccountListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::AccountListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -110,7 +110,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -154,7 +154,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::AccountListParams::Status::In::OrSymbol])) } @@ -172,7 +172,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/account_number.rbi b/rbi/lib/increase/models/account_number.rbi index 308b1fe8..97ded2e2 100644 --- a/rbi/lib/increase/models/account_number.rbi +++ b/rbi/lib/increase/models/account_number.rbi @@ -2,7 +2,7 @@ module Increase module Models - class AccountNumber < Increase::BaseModel + class AccountNumber < Increase::Internal::Type::BaseModel # The Account Number identifier. sig { returns(String) } attr_accessor :id @@ -30,7 +30,7 @@ module Increase sig { returns(Increase::Models::AccountNumber::InboundACH) } attr_reader :inbound_ach - sig { params(inbound_ach: T.any(Increase::Models::AccountNumber::InboundACH, Increase::Util::AnyHash)).void } + sig { params(inbound_ach: T.any(Increase::Models::AccountNumber::InboundACH, Increase::Internal::AnyHash)).void } attr_writer :inbound_ach # Properties related to how this Account Number should handle inbound check @@ -38,7 +38,10 @@ module Increase sig { returns(Increase::Models::AccountNumber::InboundChecks) } attr_reader :inbound_checks - sig { params(inbound_checks: T.any(Increase::Models::AccountNumber::InboundChecks, Increase::Util::AnyHash)).void } + sig do + params(inbound_checks: T.any(Increase::Models::AccountNumber::InboundChecks, Increase::Internal::AnyHash)) + .void + end attr_writer :inbound_checks # The name you choose for the Account Number. @@ -70,8 +73,8 @@ module Increase account_number: String, created_at: Time, idempotency_key: T.nilable(String), - inbound_ach: T.any(Increase::Models::AccountNumber::InboundACH, Increase::Util::AnyHash), - inbound_checks: T.any(Increase::Models::AccountNumber::InboundChecks, Increase::Util::AnyHash), + inbound_ach: T.any(Increase::Models::AccountNumber::InboundACH, Increase::Internal::AnyHash), + inbound_checks: T.any(Increase::Models::AccountNumber::InboundChecks, Increase::Internal::AnyHash), name: String, routing_number: String, status: Increase::Models::AccountNumber::Status::OrSymbol, @@ -115,7 +118,7 @@ module Increase def to_hash end - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel # 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. sig { returns(Increase::Models::AccountNumber::InboundACH::DebitStatus::TaggedSymbol) } @@ -136,7 +139,7 @@ module Increase # 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. module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumber::InboundACH::DebitStatus) } OrSymbol = @@ -154,7 +157,7 @@ module Increase end end - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel # How Increase should process checks with this account number printed on them. sig { returns(Increase::Models::AccountNumber::InboundChecks::Status::TaggedSymbol) } attr_accessor :status @@ -171,7 +174,7 @@ module Increase # How Increase should process checks with this account number printed on them. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumber::InboundChecks::Status) } OrSymbol = @@ -192,7 +195,7 @@ module Increase # This indicates if payments can be made to the Account Number. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumber::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::AccountNumber::Status::TaggedSymbol) } @@ -214,7 +217,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `account_number`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumber::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::AccountNumber::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/account_number_create_params.rbi b/rbi/lib/increase/models/account_number_create_params.rbi index f36de9dd..1463997c 100644 --- a/rbi/lib/increase/models/account_number_create_params.rbi +++ b/rbi/lib/increase/models/account_number_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountNumberCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The Account the Account Number should belong to. sig { returns(String) } @@ -20,7 +20,7 @@ module Increase sig do params( - inbound_ach: T.any(Increase::Models::AccountNumberCreateParams::InboundACH, Increase::Util::AnyHash) + inbound_ach: T.any(Increase::Models::AccountNumberCreateParams::InboundACH, Increase::Internal::AnyHash) ) .void end @@ -33,7 +33,7 @@ module Increase sig do params( - inbound_checks: T.any(Increase::Models::AccountNumberCreateParams::InboundChecks, Increase::Util::AnyHash) + inbound_checks: T.any(Increase::Models::AccountNumberCreateParams::InboundChecks, Increase::Internal::AnyHash) ) .void end @@ -43,9 +43,9 @@ module Increase params( account_id: String, name: String, - inbound_ach: T.any(Increase::Models::AccountNumberCreateParams::InboundACH, Increase::Util::AnyHash), - inbound_checks: T.any(Increase::Models::AccountNumberCreateParams::InboundChecks, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + inbound_ach: T.any(Increase::Models::AccountNumberCreateParams::InboundACH, Increase::Internal::AnyHash), + inbound_checks: T.any(Increase::Models::AccountNumberCreateParams::InboundChecks, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -67,7 +67,7 @@ module Increase def to_hash end - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel # 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 # you do not specify this field, the default is `allowed`. @@ -93,7 +93,7 @@ module Increase # will be declined if this is `allowed` but the Account Number is not active. If # you do not specify this field, the default is `allowed`. module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumberCreateParams::InboundACH::DebitStatus) } @@ -117,7 +117,7 @@ module Increase end end - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel # 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`. sig { returns(Increase::Models::AccountNumberCreateParams::InboundChecks::Status::OrSymbol) } @@ -139,7 +139,7 @@ module Increase # 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`. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumberCreateParams::InboundChecks::Status) } diff --git a/rbi/lib/increase/models/account_number_list_params.rbi b/rbi/lib/increase/models/account_number_list_params.rbi index d405b081..81888519 100644 --- a/rbi/lib/increase/models/account_number_list_params.rbi +++ b/rbi/lib/increase/models/account_number_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountNumberListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Account Numbers to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -18,7 +18,7 @@ module Increase sig do params( - ach_debit_status: T.any(Increase::Models::AccountNumberListParams::ACHDebitStatus, Increase::Util::AnyHash) + ach_debit_status: T.any(Increase::Models::AccountNumberListParams::ACHDebitStatus, Increase::Internal::AnyHash) ) .void end @@ -28,7 +28,9 @@ module Increase attr_reader :created_at sig do - params(created_at: T.any(Increase::Models::AccountNumberListParams::CreatedAt, Increase::Util::AnyHash)) + params( + created_at: T.any(Increase::Models::AccountNumberListParams::CreatedAt, Increase::Internal::AnyHash) + ) .void end attr_writer :created_at @@ -61,19 +63,19 @@ module Increase sig { returns(T.nilable(Increase::Models::AccountNumberListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::AccountNumberListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::AccountNumberListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( account_id: String, - ach_debit_status: T.any(Increase::Models::AccountNumberListParams::ACHDebitStatus, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::AccountNumberListParams::CreatedAt, Increase::Util::AnyHash), + ach_debit_status: T.any(Increase::Models::AccountNumberListParams::ACHDebitStatus, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::AccountNumberListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::AccountNumberListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::AccountNumberListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -107,7 +109,7 @@ module Increase def to_hash end - class ACHDebitStatus < Increase::BaseModel + class ACHDebitStatus < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::AccountNumberListParams::ACHDebitStatus::In::OrSymbol])) } @@ -128,7 +130,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumberListParams::ACHDebitStatus::In) } @@ -147,7 +149,7 @@ module Increase end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -191,7 +193,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::AccountNumberListParams::Status::In::OrSymbol])) } @@ -212,7 +214,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumberListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/account_number_retrieve_params.rbi b/rbi/lib/increase/models/account_number_retrieve_params.rbi index 0de8a17c..99bcd88b 100644 --- a/rbi/lib/increase/models/account_number_retrieve_params.rbi +++ b/rbi/lib/increase/models/account_number_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class AccountNumberRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/account_number_update_params.rbi b/rbi/lib/increase/models/account_number_update_params.rbi index a4911f26..4dec7353 100644 --- a/rbi/lib/increase/models/account_number_update_params.rbi +++ b/rbi/lib/increase/models/account_number_update_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountNumberUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Options related to how this Account Number handles inbound ACH transfers. sig { returns(T.nilable(Increase::Models::AccountNumberUpdateParams::InboundACH)) } @@ -12,7 +12,7 @@ module Increase sig do params( - inbound_ach: T.any(Increase::Models::AccountNumberUpdateParams::InboundACH, Increase::Util::AnyHash) + inbound_ach: T.any(Increase::Models::AccountNumberUpdateParams::InboundACH, Increase::Internal::AnyHash) ) .void end @@ -25,7 +25,7 @@ module Increase sig do params( - inbound_checks: T.any(Increase::Models::AccountNumberUpdateParams::InboundChecks, Increase::Util::AnyHash) + inbound_checks: T.any(Increase::Models::AccountNumberUpdateParams::InboundChecks, Increase::Internal::AnyHash) ) .void end @@ -47,11 +47,11 @@ module Increase sig do params( - inbound_ach: T.any(Increase::Models::AccountNumberUpdateParams::InboundACH, Increase::Util::AnyHash), - inbound_checks: T.any(Increase::Models::AccountNumberUpdateParams::InboundChecks, Increase::Util::AnyHash), + inbound_ach: T.any(Increase::Models::AccountNumberUpdateParams::InboundACH, Increase::Internal::AnyHash), + inbound_checks: T.any(Increase::Models::AccountNumberUpdateParams::InboundChecks, Increase::Internal::AnyHash), name: String, status: Increase::Models::AccountNumberUpdateParams::Status::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -73,7 +73,7 @@ module Increase def to_hash end - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel # 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. sig { returns(T.nilable(Increase::Models::AccountNumberUpdateParams::InboundACH::DebitStatus::OrSymbol)) } @@ -100,7 +100,7 @@ module Increase # 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. module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumberUpdateParams::InboundACH::DebitStatus) } @@ -124,7 +124,7 @@ module Increase end end - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel # How Increase should process checks with this account number printed on them. sig { returns(Increase::Models::AccountNumberUpdateParams::InboundChecks::Status::OrSymbol) } attr_accessor :status @@ -144,7 +144,7 @@ module Increase # How Increase should process checks with this account number printed on them. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumberUpdateParams::InboundChecks::Status) } @@ -173,7 +173,7 @@ module Increase # This indicates if transfers can be made to the Account Number. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountNumberUpdateParams::Status) } OrSymbol = diff --git a/rbi/lib/increase/models/account_retrieve_params.rbi b/rbi/lib/increase/models/account_retrieve_params.rbi index 7f13d4e4..9377b20b 100644 --- a/rbi/lib/increase/models/account_retrieve_params.rbi +++ b/rbi/lib/increase/models/account_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class AccountRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/account_statement.rbi b/rbi/lib/increase/models/account_statement.rbi index 1fcbac94..e43efb2a 100644 --- a/rbi/lib/increase/models/account_statement.rbi +++ b/rbi/lib/increase/models/account_statement.rbi @@ -2,7 +2,7 @@ module Increase module Models - class AccountStatement < Increase::BaseModel + class AccountStatement < Increase::Internal::Type::BaseModel # The Account Statement identifier. sig { returns(String) } attr_accessor :id @@ -95,7 +95,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `account_statement`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountStatement::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::AccountStatement::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/account_statement_list_params.rbi b/rbi/lib/increase/models/account_statement_list_params.rbi index a6cc26cf..97166a93 100644 --- a/rbi/lib/increase/models/account_statement_list_params.rbi +++ b/rbi/lib/increase/models/account_statement_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountStatementListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountStatementListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Account Statements to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -33,7 +33,7 @@ module Increase sig do params( - statement_period_start: T.any(Increase::Models::AccountStatementListParams::StatementPeriodStart, Increase::Util::AnyHash) + statement_period_start: T.any(Increase::Models::AccountStatementListParams::StatementPeriodStart, Increase::Internal::AnyHash) ) .void end @@ -44,8 +44,8 @@ module Increase account_id: String, cursor: String, limit: Integer, - statement_period_start: T.any(Increase::Models::AccountStatementListParams::StatementPeriodStart, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + statement_period_start: T.any(Increase::Models::AccountStatementListParams::StatementPeriodStart, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -67,7 +67,7 @@ module Increase def to_hash end - class StatementPeriodStart < Increase::BaseModel + class StatementPeriodStart < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/account_statement_retrieve_params.rbi b/rbi/lib/increase/models/account_statement_retrieve_params.rbi index 116fba4f..7fe9b27b 100644 --- a/rbi/lib/increase/models/account_statement_retrieve_params.rbi +++ b/rbi/lib/increase/models/account_statement_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class AccountStatementRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountStatementRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/account_transfer.rbi b/rbi/lib/increase/models/account_transfer.rbi index 4be23479..9e982b11 100644 --- a/rbi/lib/increase/models/account_transfer.rbi +++ b/rbi/lib/increase/models/account_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class AccountTransfer < Increase::BaseModel + class AccountTransfer < Increase::Internal::Type::BaseModel # The account transfer's identifier. sig { returns(String) } attr_accessor :id @@ -22,7 +22,9 @@ module Increase attr_reader :approval sig do - params(approval: T.nilable(T.any(Increase::Models::AccountTransfer::Approval, Increase::Util::AnyHash))) + params( + approval: T.nilable(T.any(Increase::Models::AccountTransfer::Approval, Increase::Internal::AnyHash)) + ) .void end attr_writer :approval @@ -34,7 +36,7 @@ module Increase sig do params( - cancellation: T.nilable(T.any(Increase::Models::AccountTransfer::Cancellation, Increase::Util::AnyHash)) + cancellation: T.nilable(T.any(Increase::Models::AccountTransfer::Cancellation, Increase::Internal::AnyHash)) ) .void end @@ -51,7 +53,7 @@ module Increase sig do params( - created_by: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy, Increase::Util::AnyHash)) + created_by: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy, Increase::Internal::AnyHash)) ) .void end @@ -110,10 +112,10 @@ module Increase id: String, account_id: String, amount: Integer, - approval: T.nilable(T.any(Increase::Models::AccountTransfer::Approval, Increase::Util::AnyHash)), - cancellation: T.nilable(T.any(Increase::Models::AccountTransfer::Cancellation, Increase::Util::AnyHash)), + approval: T.nilable(T.any(Increase::Models::AccountTransfer::Approval, Increase::Internal::AnyHash)), + cancellation: T.nilable(T.any(Increase::Models::AccountTransfer::Cancellation, Increase::Internal::AnyHash)), created_at: Time, - created_by: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy, Increase::Util::AnyHash)), + created_by: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy, Increase::Internal::AnyHash)), currency: Increase::Models::AccountTransfer::Currency::OrSymbol, description: String, destination_account_id: String, @@ -175,7 +177,7 @@ module Increase def to_hash end - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. sig { returns(Time) } @@ -197,7 +199,7 @@ module Increase end end - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. sig { returns(Time) } @@ -219,14 +221,14 @@ module Increase end end - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::Models::AccountTransfer::CreatedBy::APIKey)) } attr_reader :api_key sig do params( - api_key: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)) + api_key: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)) ) .void end @@ -242,7 +244,9 @@ module Increase sig do params( - oauth_application: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)) + oauth_application: T.nilable( + T.any(Increase::Models::AccountTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash) + ) ) .void end @@ -254,7 +258,7 @@ module Increase sig do params( - user: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::User, Increase::Util::AnyHash)) + user: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::User, Increase::Internal::AnyHash)) ) .void end @@ -263,10 +267,12 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( - api_key: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)), + api_key: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)), category: Increase::Models::AccountTransfer::CreatedBy::Category::OrSymbol, - oauth_application: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)), - user: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::User, Increase::Util::AnyHash)) + oauth_application: T.nilable( + T.any(Increase::Models::AccountTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash) + ), + user: T.nilable(T.any(Increase::Models::AccountTransfer::CreatedBy::User, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -287,7 +293,7 @@ module Increase def to_hash end - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # The description set for the API key when it was created. sig { returns(T.nilable(String)) } attr_accessor :description @@ -304,7 +310,7 @@ module Increase # The type of object that created this transfer. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountTransfer::CreatedBy::Category) } OrSymbol = @@ -325,7 +331,7 @@ module Increase end end - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # The name of the OAuth Application. sig { returns(String) } attr_accessor :name @@ -340,7 +346,7 @@ module Increase end end - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # The email address of the User. sig { returns(String) } attr_accessor :email @@ -359,7 +365,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination # account currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountTransfer::Currency) } OrSymbol = @@ -390,7 +396,7 @@ module Increase # The transfer's network. module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountTransfer::Network) } OrSymbol = @@ -405,7 +411,7 @@ module Increase # The lifecycle status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountTransfer::Status) } OrSymbol = @@ -428,7 +434,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `account_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::AccountTransfer::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::AccountTransfer::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/account_transfer_approve_params.rbi b/rbi/lib/increase/models/account_transfer_approve_params.rbi index 2ee04c92..f685ddc2 100644 --- a/rbi/lib/increase/models/account_transfer_approve_params.rbi +++ b/rbi/lib/increase/models/account_transfer_approve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class AccountTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/account_transfer_cancel_params.rbi b/rbi/lib/increase/models/account_transfer_cancel_params.rbi index d1924fdb..f0dc095a 100644 --- a/rbi/lib/increase/models/account_transfer_cancel_params.rbi +++ b/rbi/lib/increase/models/account_transfer_cancel_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class AccountTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/account_transfer_create_params.rbi b/rbi/lib/increase/models/account_transfer_create_params.rbi index c5678b7a..fac2e5cb 100644 --- a/rbi/lib/increase/models/account_transfer_create_params.rbi +++ b/rbi/lib/increase/models/account_transfer_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier for the account that will send the transfer. sig { returns(String) } @@ -37,7 +37,7 @@ module Increase description: String, destination_account_id: String, require_approval: T::Boolean, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/account_transfer_list_params.rbi b/rbi/lib/increase/models/account_transfer_list_params.rbi index 597d3a59..e9091ac6 100644 --- a/rbi/lib/increase/models/account_transfer_list_params.rbi +++ b/rbi/lib/increase/models/account_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Account Transfers to those that originated from the specified Account. sig { returns(T.nilable(String)) } @@ -17,7 +17,9 @@ module Increase attr_reader :created_at sig do - params(created_at: T.any(Increase::Models::AccountTransferListParams::CreatedAt, Increase::Util::AnyHash)) + params( + created_at: T.any(Increase::Models::AccountTransferListParams::CreatedAt, Increase::Internal::AnyHash) + ) .void end attr_writer :created_at @@ -50,11 +52,11 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::AccountTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::AccountTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +86,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/account_transfer_retrieve_params.rbi b/rbi/lib/increase/models/account_transfer_retrieve_params.rbi index e857c310..824442ff 100644 --- a/rbi/lib/increase/models/account_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/account_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class AccountTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/account_update_params.rbi b/rbi/lib/increase/models/account_update_params.rbi index fac4863e..0d713cbf 100644 --- a/rbi/lib/increase/models/account_update_params.rbi +++ b/rbi/lib/increase/models/account_update_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class AccountUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The new name of the Account. sig { returns(T.nilable(String)) } @@ -14,7 +14,7 @@ module Increase attr_writer :name sig do - params(name: String, request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + params(name: String, request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) .returns(T.attached_class) end def self.new(name: nil, request_options: {}) diff --git a/rbi/lib/increase/models/ach_prenotification.rbi b/rbi/lib/increase/models/ach_prenotification.rbi index c46a36ba..3de8e99a 100644 --- a/rbi/lib/increase/models/ach_prenotification.rbi +++ b/rbi/lib/increase/models/ach_prenotification.rbi @@ -2,7 +2,7 @@ module Increase module Models - class ACHPrenotification < Increase::BaseModel + class ACHPrenotification < Increase::Internal::Type::BaseModel # The ACH Prenotification's identifier. sig { returns(String) } attr_accessor :id @@ -61,7 +61,7 @@ module Increase sig do params( - prenotification_return: T.nilable(T.any(Increase::Models::ACHPrenotification::PrenotificationReturn, Increase::Util::AnyHash)) + prenotification_return: T.nilable(T.any(Increase::Models::ACHPrenotification::PrenotificationReturn, Increase::Internal::AnyHash)) ) .void end @@ -95,8 +95,8 @@ module Increase credit_debit_indicator: T.nilable(Increase::Models::ACHPrenotification::CreditDebitIndicator::OrSymbol), effective_date: T.nilable(Time), idempotency_key: T.nilable(String), - notifications_of_change: T::Array[T.any(Increase::Models::ACHPrenotification::NotificationsOfChange, Increase::Util::AnyHash)], - prenotification_return: T.nilable(T.any(Increase::Models::ACHPrenotification::PrenotificationReturn, Increase::Util::AnyHash)), + notifications_of_change: T::Array[T.any(Increase::Models::ACHPrenotification::NotificationsOfChange, Increase::Internal::AnyHash)], + prenotification_return: T.nilable(T.any(Increase::Models::ACHPrenotification::PrenotificationReturn, Increase::Internal::AnyHash)), routing_number: String, status: Increase::Models::ACHPrenotification::Status::OrSymbol, type: Increase::Models::ACHPrenotification::Type::OrSymbol @@ -151,7 +151,7 @@ module Increase # If the notification is for a future credit or debit. module CreditDebitIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHPrenotification::CreditDebitIndicator) } OrSymbol = @@ -168,7 +168,7 @@ module Increase end end - class NotificationsOfChange < Increase::BaseModel + class NotificationsOfChange < Increase::Internal::Type::BaseModel # The required type of change that is being signaled by the receiving financial # institution. sig { returns(Increase::Models::ACHPrenotification::NotificationsOfChange::ChangeCode::TaggedSymbol) } @@ -214,7 +214,7 @@ module Increase # The required type of change that is being signaled by the receiving financial # institution. module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHPrenotification::NotificationsOfChange::ChangeCode) } @@ -369,7 +369,7 @@ module Increase end end - class PrenotificationReturn < Increase::BaseModel + class PrenotificationReturn < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Prenotification was returned. sig { returns(Time) } @@ -404,7 +404,7 @@ module Increase # Why the Prenotification was returned. module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHPrenotification::PrenotificationReturn::ReturnReasonCode) } @@ -920,7 +920,7 @@ module Increase # The lifecycle status of the ACH Prenotification. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHPrenotification::Status) } OrSymbol = @@ -948,7 +948,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `ach_prenotification`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHPrenotification::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/ach_prenotification_create_params.rbi b/rbi/lib/increase/models/ach_prenotification_create_params.rbi index 16878b03..fe419bd8 100644 --- a/rbi/lib/increase/models/ach_prenotification_create_params.rbi +++ b/rbi/lib/increase/models/ach_prenotification_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ACHPrenotificationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHPrenotificationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The Increase identifier for the account that will send the transfer. sig { returns(String) } @@ -116,7 +116,7 @@ module Increase individual_id: String, individual_name: String, standard_entry_class_code: Increase::Models::ACHPrenotificationCreateParams::StandardEntryClassCode::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -164,7 +164,7 @@ module Increase # Whether the Prenotification is for a future debit or credit. module CreditDebitIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHPrenotificationCreateParams::CreditDebitIndicator) } @@ -195,7 +195,7 @@ module Increase # The Standard Entry Class (SEC) code to use for the ACH Prenotification. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHPrenotificationCreateParams::StandardEntryClassCode) } diff --git a/rbi/lib/increase/models/ach_prenotification_list_params.rbi b/rbi/lib/increase/models/ach_prenotification_list_params.rbi index 48a6ba1d..d3a42891 100644 --- a/rbi/lib/increase/models/ach_prenotification_list_params.rbi +++ b/rbi/lib/increase/models/ach_prenotification_list_params.rbi @@ -2,16 +2,16 @@ module Increase module Models - class ACHPrenotificationListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHPrenotificationListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::ACHPrenotificationListParams::CreatedAt)) } attr_reader :created_at sig do params( - created_at: T.any(Increase::Models::ACHPrenotificationListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::ACHPrenotificationListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -44,11 +44,11 @@ module Increase sig do params( - created_at: T.any(Increase::Models::ACHPrenotificationListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ACHPrenotificationListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -70,7 +70,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/ach_prenotification_retrieve_params.rbi b/rbi/lib/increase/models/ach_prenotification_retrieve_params.rbi index b95decaf..26f08daa 100644 --- a/rbi/lib/increase/models/ach_prenotification_retrieve_params.rbi +++ b/rbi/lib/increase/models/ach_prenotification_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ACHPrenotificationRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHPrenotificationRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/ach_transfer.rbi b/rbi/lib/increase/models/ach_transfer.rbi index 5e4e3606..30bc703b 100644 --- a/rbi/lib/increase/models/ach_transfer.rbi +++ b/rbi/lib/increase/models/ach_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class ACHTransfer < Increase::BaseModel + class ACHTransfer < Increase::Internal::Type::BaseModel # The ACH transfer's identifier. sig { returns(String) } attr_accessor :id @@ -23,7 +23,7 @@ module Increase sig do params( - acknowledgement: T.nilable(T.any(Increase::Models::ACHTransfer::Acknowledgement, Increase::Util::AnyHash)) + acknowledgement: T.nilable(T.any(Increase::Models::ACHTransfer::Acknowledgement, Increase::Internal::AnyHash)) ) .void end @@ -33,7 +33,7 @@ module Increase sig { returns(T.nilable(Increase::Models::ACHTransfer::Addenda)) } attr_reader :addenda - sig { params(addenda: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda, Increase::Util::AnyHash))).void } + sig { params(addenda: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda, Increase::Internal::AnyHash))).void } attr_writer :addenda # The transfer amount in USD cents. A positive amount indicates a credit transfer @@ -47,7 +47,10 @@ module Increase sig { returns(T.nilable(Increase::Models::ACHTransfer::Approval)) } attr_reader :approval - sig { params(approval: T.nilable(T.any(Increase::Models::ACHTransfer::Approval, Increase::Util::AnyHash))).void } + sig do + params(approval: T.nilable(T.any(Increase::Models::ACHTransfer::Approval, Increase::Internal::AnyHash))) + .void + end attr_writer :approval # If your account requires approvals for transfers and the transfer was not @@ -57,7 +60,7 @@ module Increase sig do params( - cancellation: T.nilable(T.any(Increase::Models::ACHTransfer::Cancellation, Increase::Util::AnyHash)) + cancellation: T.nilable(T.any(Increase::Models::ACHTransfer::Cancellation, Increase::Internal::AnyHash)) ) .void end @@ -89,7 +92,9 @@ module Increase attr_reader :created_by sig do - params(created_by: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy, Increase::Util::AnyHash))) + params( + created_by: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy, Increase::Internal::AnyHash)) + ) .void end attr_writer :created_by @@ -125,7 +130,7 @@ module Increase sig do params( - inbound_funds_hold: T.nilable(T.any(Increase::Models::ACHTransfer::InboundFundsHold, Increase::Util::AnyHash)) + inbound_funds_hold: T.nilable(T.any(Increase::Models::ACHTransfer::InboundFundsHold, Increase::Internal::AnyHash)) ) .void end @@ -165,7 +170,7 @@ module Increase sig do params( - preferred_effective_date: T.any(Increase::Models::ACHTransfer::PreferredEffectiveDate, Increase::Util::AnyHash) + preferred_effective_date: T.any(Increase::Models::ACHTransfer::PreferredEffectiveDate, Increase::Internal::AnyHash) ) .void end @@ -175,7 +180,7 @@ module Increase sig { returns(T.nilable(Increase::Models::ACHTransfer::Return)) } attr_reader :return_ - sig { params(return_: T.nilable(T.any(Increase::Models::ACHTransfer::Return, Increase::Util::AnyHash))).void } + sig { params(return_: T.nilable(T.any(Increase::Models::ACHTransfer::Return, Increase::Internal::AnyHash))).void } attr_writer :return_ # The American Bankers' Association (ABA) Routing Transit Number (RTN). @@ -188,7 +193,9 @@ module Increase attr_reader :settlement sig do - params(settlement: T.nilable(T.any(Increase::Models::ACHTransfer::Settlement, Increase::Util::AnyHash))) + params( + settlement: T.nilable(T.any(Increase::Models::ACHTransfer::Settlement, Increase::Internal::AnyHash)) + ) .void end attr_writer :settlement @@ -214,7 +221,9 @@ module Increase attr_reader :submission sig do - params(submission: T.nilable(T.any(Increase::Models::ACHTransfer::Submission, Increase::Util::AnyHash))) + params( + submission: T.nilable(T.any(Increase::Models::ACHTransfer::Submission, Increase::Internal::AnyHash)) + ) .void end attr_writer :submission @@ -235,36 +244,36 @@ module Increase id: String, account_id: String, account_number: String, - acknowledgement: T.nilable(T.any(Increase::Models::ACHTransfer::Acknowledgement, Increase::Util::AnyHash)), - addenda: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda, Increase::Util::AnyHash)), + acknowledgement: T.nilable(T.any(Increase::Models::ACHTransfer::Acknowledgement, Increase::Internal::AnyHash)), + addenda: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda, Increase::Internal::AnyHash)), amount: Integer, - approval: T.nilable(T.any(Increase::Models::ACHTransfer::Approval, Increase::Util::AnyHash)), - cancellation: T.nilable(T.any(Increase::Models::ACHTransfer::Cancellation, Increase::Util::AnyHash)), + approval: T.nilable(T.any(Increase::Models::ACHTransfer::Approval, Increase::Internal::AnyHash)), + cancellation: T.nilable(T.any(Increase::Models::ACHTransfer::Cancellation, Increase::Internal::AnyHash)), company_descriptive_date: T.nilable(String), company_discretionary_data: T.nilable(String), company_entry_description: T.nilable(String), company_name: T.nilable(String), created_at: Time, - created_by: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy, Increase::Util::AnyHash)), + created_by: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy, Increase::Internal::AnyHash)), currency: Increase::Models::ACHTransfer::Currency::OrSymbol, destination_account_holder: Increase::Models::ACHTransfer::DestinationAccountHolder::OrSymbol, external_account_id: T.nilable(String), funding: Increase::Models::ACHTransfer::Funding::OrSymbol, idempotency_key: T.nilable(String), - inbound_funds_hold: T.nilable(T.any(Increase::Models::ACHTransfer::InboundFundsHold, Increase::Util::AnyHash)), + inbound_funds_hold: T.nilable(T.any(Increase::Models::ACHTransfer::InboundFundsHold, Increase::Internal::AnyHash)), individual_id: T.nilable(String), individual_name: T.nilable(String), network: Increase::Models::ACHTransfer::Network::OrSymbol, - notifications_of_change: T::Array[T.any(Increase::Models::ACHTransfer::NotificationsOfChange, Increase::Util::AnyHash)], + notifications_of_change: T::Array[T.any(Increase::Models::ACHTransfer::NotificationsOfChange, Increase::Internal::AnyHash)], pending_transaction_id: T.nilable(String), - preferred_effective_date: T.any(Increase::Models::ACHTransfer::PreferredEffectiveDate, Increase::Util::AnyHash), - return_: T.nilable(T.any(Increase::Models::ACHTransfer::Return, Increase::Util::AnyHash)), + preferred_effective_date: T.any(Increase::Models::ACHTransfer::PreferredEffectiveDate, Increase::Internal::AnyHash), + return_: T.nilable(T.any(Increase::Models::ACHTransfer::Return, Increase::Internal::AnyHash)), routing_number: String, - settlement: T.nilable(T.any(Increase::Models::ACHTransfer::Settlement, Increase::Util::AnyHash)), + settlement: T.nilable(T.any(Increase::Models::ACHTransfer::Settlement, Increase::Internal::AnyHash)), standard_entry_class_code: Increase::Models::ACHTransfer::StandardEntryClassCode::OrSymbol, statement_descriptor: String, status: Increase::Models::ACHTransfer::Status::OrSymbol, - submission: T.nilable(T.any(Increase::Models::ACHTransfer::Submission, Increase::Util::AnyHash)), + submission: T.nilable(T.any(Increase::Models::ACHTransfer::Submission, Increase::Internal::AnyHash)), transaction_id: T.nilable(String), type: Increase::Models::ACHTransfer::Type::OrSymbol ) @@ -354,7 +363,7 @@ module Increase def to_hash end - class Acknowledgement < Increase::BaseModel + class Acknowledgement < Increase::Internal::Type::BaseModel # When the Federal Reserve acknowledged the submitted file containing this # transfer. sig { returns(String) } @@ -372,7 +381,7 @@ module Increase end end - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # 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. sig { returns(Increase::Models::ACHTransfer::Addenda::Category::TaggedSymbol) } @@ -384,7 +393,7 @@ module Increase sig do params( - freeform: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda::Freeform, Increase::Util::AnyHash)) + freeform: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda::Freeform, Increase::Internal::AnyHash)) ) .void end @@ -398,7 +407,7 @@ module Increase sig do params( payment_order_remittance_advice: T.nilable( - T.any(Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice, Increase::Util::AnyHash) + T.any(Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice, Increase::Internal::AnyHash) ) ) .void @@ -409,9 +418,9 @@ module Increase sig do params( category: Increase::Models::ACHTransfer::Addenda::Category::OrSymbol, - freeform: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda::Freeform, Increase::Util::AnyHash)), + freeform: T.nilable(T.any(Increase::Models::ACHTransfer::Addenda::Freeform, Increase::Internal::AnyHash)), payment_order_remittance_advice: T.nilable( - T.any(Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice, Increase::Util::AnyHash) + T.any(Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice, Increase::Internal::AnyHash) ) ) .returns(T.attached_class) @@ -435,7 +444,7 @@ module Increase # 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. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Addenda::Category) } OrSymbol = @@ -456,7 +465,7 @@ module Increase end end - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # Each entry represents an addendum sent with the transfer. sig { returns(T::Array[Increase::Models::ACHTransfer::Addenda::Freeform::Entry]) } attr_accessor :entries @@ -464,7 +473,7 @@ module Increase # Unstructured `payment_related_information` passed through with the transfer. sig do params( - entries: T::Array[T.any(Increase::Models::ACHTransfer::Addenda::Freeform::Entry, Increase::Util::AnyHash)] + entries: T::Array[T.any(Increase::Models::ACHTransfer::Addenda::Freeform::Entry, Increase::Internal::AnyHash)] ) .returns(T.attached_class) end @@ -475,7 +484,7 @@ module Increase def to_hash end - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # The payment related information passed in the addendum. sig { returns(String) } attr_accessor :payment_related_information @@ -490,7 +499,7 @@ module Increase end end - class PaymentOrderRemittanceAdvice < Increase::BaseModel + class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel # ASC X12 RMR records for this specific transfer. sig { returns(T::Array[Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice]) } attr_accessor :invoices @@ -502,7 +511,7 @@ module Increase invoices: T::Array[ T.any( Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ] ) @@ -520,7 +529,7 @@ module Increase def to_hash end - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel # The invoice number for this reference, determined in advance with the receiver. sig { returns(String) } attr_accessor :invoice_number @@ -541,7 +550,7 @@ module Increase end end - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. sig { returns(Time) } @@ -563,7 +572,7 @@ module Increase end end - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. sig { returns(Time) } @@ -585,14 +594,14 @@ module Increase end end - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::Models::ACHTransfer::CreatedBy::APIKey)) } attr_reader :api_key sig do params( - api_key: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)) + api_key: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)) ) .void end @@ -608,7 +617,7 @@ module Increase sig do params( - oauth_application: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)) + oauth_application: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash)) ) .void end @@ -619,7 +628,9 @@ module Increase attr_reader :user sig do - params(user: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::User, Increase::Util::AnyHash))) + params( + user: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::User, Increase::Internal::AnyHash)) + ) .void end attr_writer :user @@ -627,10 +638,10 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( - api_key: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)), + api_key: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)), category: Increase::Models::ACHTransfer::CreatedBy::Category::OrSymbol, - oauth_application: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)), - user: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::User, Increase::Util::AnyHash)) + oauth_application: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash)), + user: T.nilable(T.any(Increase::Models::ACHTransfer::CreatedBy::User, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -651,7 +662,7 @@ module Increase def to_hash end - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # The description set for the API key when it was created. sig { returns(T.nilable(String)) } attr_accessor :description @@ -668,7 +679,7 @@ module Increase # The type of object that created this transfer. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::CreatedBy::Category) } OrSymbol = @@ -689,7 +700,7 @@ module Increase end end - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # The name of the OAuth Application. sig { returns(String) } attr_accessor :name @@ -704,7 +715,7 @@ module Increase end end - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # The email address of the User. sig { returns(String) } attr_accessor :email @@ -723,7 +734,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For ACH transfers this is always equal to `usd`. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Currency) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::ACHTransfer::Currency::TaggedSymbol) } @@ -754,7 +765,7 @@ module Increase # The type of entity that owns the account to which the ACH Transfer is being # sent. module DestinationAccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::DestinationAccountHolder) } OrSymbol = @@ -776,7 +787,7 @@ module Increase # The type of the account to which the transfer will be sent. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Funding) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::ACHTransfer::Funding::TaggedSymbol) } @@ -792,7 +803,7 @@ module Increase end end - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel # The Inbound Funds Hold identifier. sig { returns(String) } attr_accessor :id @@ -892,7 +903,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::InboundFundsHold::Currency) } OrSymbol = @@ -923,7 +934,7 @@ module Increase # The status of the hold. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::InboundFundsHold::Status) } OrSymbol = @@ -943,7 +954,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_funds_hold`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::InboundFundsHold::Type) } OrSymbol = @@ -960,7 +971,7 @@ module Increase # The transfer's network. module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Network) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::ACHTransfer::Network::TaggedSymbol) } @@ -972,7 +983,7 @@ module Increase end end - class NotificationsOfChange < Increase::BaseModel + class NotificationsOfChange < Increase::Internal::Type::BaseModel # The required type of change that is being signaled by the receiving financial # institution. sig { returns(Increase::Models::ACHTransfer::NotificationsOfChange::ChangeCode::TaggedSymbol) } @@ -1018,7 +1029,7 @@ module Increase # The required type of change that is being signaled by the receiving financial # institution. module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::NotificationsOfChange::ChangeCode) } @@ -1164,7 +1175,7 @@ module Increase end end - class PreferredEffectiveDate < Increase::BaseModel + class PreferredEffectiveDate < Increase::Internal::Type::BaseModel # A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to # use as the effective date when submitting this transfer. sig { returns(T.nilable(Date)) } @@ -1206,7 +1217,7 @@ module Increase # A schedule by which Increase will choose an effective date for the transfer. module SettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::PreferredEffectiveDate::SettlementSchedule) } @@ -1242,7 +1253,7 @@ module Increase end end - class Return < Increase::BaseModel + class Return < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was created. sig { returns(Time) } @@ -1313,7 +1324,7 @@ module Increase # Why the ACH Transfer was returned. This reason code is sent by the receiving # bank back to Increase. module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Return::ReturnReasonCode) } OrSymbol = @@ -1711,7 +1722,7 @@ module Increase end end - class Settlement < Increase::BaseModel + class Settlement < Increase::Internal::Type::BaseModel # When the funds for this transfer have settled at the destination bank at the # Federal Reserve. sig { returns(Time) } @@ -1730,7 +1741,7 @@ module Increase # The Standard Entry Class (SEC) code to use for the transfer. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::StandardEntryClassCode) } OrSymbol = @@ -1762,7 +1773,7 @@ module Increase # The lifecycle status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::ACHTransfer::Status::TaggedSymbol) } @@ -1800,7 +1811,7 @@ module Increase end end - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # 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 # value. Otherwise, it will be the date selected (following the specified @@ -1876,7 +1887,7 @@ module Increase # takes into account the `effective_date`, `submitted_at`, and the amount of the # transfer. module ExpectedSettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Submission::ExpectedSettlementSchedule) } @@ -1903,7 +1914,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `ach_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransfer::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::ACHTransfer::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/ach_transfer_approve_params.rbi b/rbi/lib/increase/models/ach_transfer_approve_params.rbi index 3cd1509f..4abfea5f 100644 --- a/rbi/lib/increase/models/ach_transfer_approve_params.rbi +++ b/rbi/lib/increase/models/ach_transfer_approve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ACHTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/ach_transfer_cancel_params.rbi b/rbi/lib/increase/models/ach_transfer_cancel_params.rbi index 60d451d1..2a83bf9d 100644 --- a/rbi/lib/increase/models/ach_transfer_cancel_params.rbi +++ b/rbi/lib/increase/models/ach_transfer_cancel_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ACHTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/ach_transfer_create_params.rbi b/rbi/lib/increase/models/ach_transfer_create_params.rbi index e1118d00..3afa9d6c 100644 --- a/rbi/lib/increase/models/ach_transfer_create_params.rbi +++ b/rbi/lib/increase/models/ach_transfer_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ACHTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The Increase identifier for the account that will send the transfer. sig { returns(String) } @@ -37,7 +37,10 @@ module Increase sig { returns(T.nilable(Increase::Models::ACHTransferCreateParams::Addenda)) } attr_reader :addenda - sig { params(addenda: T.any(Increase::Models::ACHTransferCreateParams::Addenda, Increase::Util::AnyHash)).void } + sig do + params(addenda: T.any(Increase::Models::ACHTransferCreateParams::Addenda, Increase::Internal::AnyHash)) + .void + end attr_writer :addenda # The description of the date of the transfer, usually in the format `YYMMDD`. @@ -124,7 +127,7 @@ module Increase sig do params( - preferred_effective_date: T.any(Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate, Increase::Util::AnyHash) + preferred_effective_date: T.any(Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate, Increase::Internal::AnyHash) ) .void end @@ -170,7 +173,7 @@ module Increase amount: Integer, statement_descriptor: String, account_number: String, - addenda: T.any(Increase::Models::ACHTransferCreateParams::Addenda, Increase::Util::AnyHash), + addenda: T.any(Increase::Models::ACHTransferCreateParams::Addenda, Increase::Internal::AnyHash), company_descriptive_date: String, company_discretionary_data: String, company_entry_description: String, @@ -180,12 +183,12 @@ module Increase funding: Increase::Models::ACHTransferCreateParams::Funding::OrSymbol, individual_id: String, individual_name: String, - preferred_effective_date: T.any(Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate, Increase::Util::AnyHash), + preferred_effective_date: T.any(Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate, Increase::Internal::AnyHash), require_approval: T::Boolean, routing_number: String, standard_entry_class_code: Increase::Models::ACHTransferCreateParams::StandardEntryClassCode::OrSymbol, transaction_timing: Increase::Models::ACHTransferCreateParams::TransactionTiming::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -243,7 +246,7 @@ module Increase def to_hash end - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # The type of addenda to pass with the transfer. sig { returns(Increase::Models::ACHTransferCreateParams::Addenda::Category::OrSymbol) } attr_accessor :category @@ -254,7 +257,7 @@ module Increase sig do params( - freeform: T.any(Increase::Models::ACHTransferCreateParams::Addenda::Freeform, Increase::Util::AnyHash) + freeform: T.any(Increase::Models::ACHTransferCreateParams::Addenda::Freeform, Increase::Internal::AnyHash) ) .void end @@ -269,7 +272,7 @@ module Increase params( payment_order_remittance_advice: T.any( Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -281,10 +284,10 @@ module Increase sig do params( category: Increase::Models::ACHTransferCreateParams::Addenda::Category::OrSymbol, - freeform: T.any(Increase::Models::ACHTransferCreateParams::Addenda::Freeform, Increase::Util::AnyHash), + freeform: T.any(Increase::Models::ACHTransferCreateParams::Addenda::Freeform, Increase::Internal::AnyHash), payment_order_remittance_advice: T.any( Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -307,7 +310,7 @@ module Increase # The type of addenda to pass with the transfer. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransferCreateParams::Addenda::Category) } @@ -329,7 +332,7 @@ module Increase end end - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # 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 # addendum. @@ -339,7 +342,7 @@ module Increase # Unstructured `payment_related_information` passed through with the transfer. sig do params( - entries: T::Array[T.any(Increase::Models::ACHTransferCreateParams::Addenda::Freeform::Entry, Increase::Util::AnyHash)] + entries: T::Array[T.any(Increase::Models::ACHTransferCreateParams::Addenda::Freeform::Entry, Increase::Internal::AnyHash)] ) .returns(T.attached_class) end @@ -350,7 +353,7 @@ module Increase def to_hash end - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # The payment related information passed in the addendum. sig { returns(String) } attr_accessor :payment_related_information @@ -365,7 +368,7 @@ module Increase end end - class PaymentOrderRemittanceAdvice < Increase::BaseModel + class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel # ASC X12 RMR records for this specific transfer. sig do returns( @@ -381,7 +384,7 @@ module Increase invoices: T::Array[ T.any( Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ] ) @@ -401,7 +404,7 @@ module Increase def to_hash end - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel # The invoice number for this reference, determined in advance with the receiver. sig { returns(String) } attr_accessor :invoice_number @@ -425,7 +428,7 @@ module Increase # The type of entity that owns the account to which the ACH Transfer is being # sent. module DestinationAccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransferCreateParams::DestinationAccountHolder) } @@ -454,7 +457,7 @@ module Increase # The type of the account to which the transfer will be sent. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransferCreateParams::Funding) } OrSymbol = @@ -471,7 +474,7 @@ module Increase end end - class PreferredEffectiveDate < Increase::BaseModel + class PreferredEffectiveDate < Increase::Internal::Type::BaseModel # A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to # use as the effective date when submitting this transfer. sig { returns(T.nilable(Date)) } @@ -524,7 +527,7 @@ module Increase # A schedule by which Increase will choose an effective date for the transfer. module SettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate::SettlementSchedule) } @@ -564,7 +567,7 @@ module Increase # The Standard Entry Class (SEC) code to use for the transfer. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransferCreateParams::StandardEntryClassCode) } @@ -608,7 +611,7 @@ module Increase # The timing of the transaction. module TransactionTiming - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransferCreateParams::TransactionTiming) } diff --git a/rbi/lib/increase/models/ach_transfer_list_params.rbi b/rbi/lib/increase/models/ach_transfer_list_params.rbi index 91182f31..027b909a 100644 --- a/rbi/lib/increase/models/ach_transfer_list_params.rbi +++ b/rbi/lib/increase/models/ach_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ACHTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter ACH Transfers to those that originated from the specified Account. sig { returns(T.nilable(String)) } @@ -16,7 +16,10 @@ module Increase sig { returns(T.nilable(Increase::Models::ACHTransferListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::ACHTransferListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig do + params(created_at: T.any(Increase::Models::ACHTransferListParams::CreatedAt, Increase::Internal::AnyHash)) + .void + end attr_writer :created_at # Return the page of entries after this one. @@ -54,19 +57,19 @@ module Increase sig { returns(T.nilable(Increase::Models::ACHTransferListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::ACHTransferListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::ACHTransferListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( account_id: String, - created_at: T.any(Increase::Models::ACHTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ACHTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, external_account_id: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::ACHTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::ACHTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -100,7 +103,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -144,7 +147,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::ACHTransferListParams::Status::In::OrSymbol])) } @@ -165,7 +168,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ACHTransferListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/ach_transfer_retrieve_params.rbi b/rbi/lib/increase/models/ach_transfer_retrieve_params.rbi index aee053d9..12a6a5d3 100644 --- a/rbi/lib/increase/models/ach_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/ach_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ACHTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/balance_lookup.rbi b/rbi/lib/increase/models/balance_lookup.rbi index 6e7fcf45..7860c293 100644 --- a/rbi/lib/increase/models/balance_lookup.rbi +++ b/rbi/lib/increase/models/balance_lookup.rbi @@ -2,7 +2,7 @@ module Increase module Models - class BalanceLookup < Increase::BaseModel + class BalanceLookup < Increase::Internal::Type::BaseModel # The identifier for the account for which the balance was queried. sig { returns(String) } attr_accessor :account_id @@ -53,7 +53,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `balance_lookup`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::BalanceLookup::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::BalanceLookup::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/bookkeeping_account.rbi b/rbi/lib/increase/models/bookkeeping_account.rbi index 2799275c..8198970f 100644 --- a/rbi/lib/increase/models/bookkeeping_account.rbi +++ b/rbi/lib/increase/models/bookkeeping_account.rbi @@ -2,7 +2,7 @@ module Increase module Models - class BookkeepingAccount < Increase::BaseModel + class BookkeepingAccount < Increase::Internal::Type::BaseModel # The account identifier. sig { returns(String) } attr_accessor :id @@ -71,7 +71,7 @@ module Increase # The compliance category of the account. module ComplianceCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::BookkeepingAccount::ComplianceCategory) } OrSymbol = @@ -93,7 +93,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `bookkeeping_account`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::BookkeepingAccount::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/bookkeeping_account_balance_params.rbi b/rbi/lib/increase/models/bookkeeping_account_balance_params.rbi index 7fcb6aab..be6c3baa 100644 --- a/rbi/lib/increase/models/bookkeeping_account_balance_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_account_balance_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class BookkeepingAccountBalanceParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountBalanceParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The moment to query the balance at. If not set, returns the current balances. sig { returns(T.nilable(Time)) } @@ -14,7 +14,7 @@ module Increase attr_writer :at_time sig do - params(at_time: Time, request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + params(at_time: Time, request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) .returns(T.attached_class) end def self.new(at_time: nil, request_options: {}) diff --git a/rbi/lib/increase/models/bookkeeping_account_create_params.rbi b/rbi/lib/increase/models/bookkeeping_account_create_params.rbi index 6ccf4f7c..69680388 100644 --- a/rbi/lib/increase/models/bookkeeping_account_create_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_account_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class BookkeepingAccountCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The name you choose for the account. sig { returns(String) } @@ -42,7 +42,7 @@ module Increase account_id: String, compliance_category: Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory::OrSymbol, entity_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -66,7 +66,7 @@ module Increase # The account compliance category. module ComplianceCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory) } diff --git a/rbi/lib/increase/models/bookkeeping_account_list_params.rbi b/rbi/lib/increase/models/bookkeeping_account_list_params.rbi index 601496ed..20df8d5d 100644 --- a/rbi/lib/increase/models/bookkeeping_account_list_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_account_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class BookkeepingAccountListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -36,7 +36,7 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/bookkeeping_account_update_params.rbi b/rbi/lib/increase/models/bookkeeping_account_update_params.rbi index fe8a8ee9..ce89e29c 100644 --- a/rbi/lib/increase/models/bookkeeping_account_update_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_account_update_params.rbi @@ -2,16 +2,16 @@ module Increase module Models - class BookkeepingAccountUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The name you choose for the account. sig { returns(String) } attr_accessor :name sig do - params(name: String, request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + params(name: String, request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) .returns(T.attached_class) end def self.new(name:, request_options: {}) diff --git a/rbi/lib/increase/models/bookkeeping_balance_lookup.rbi b/rbi/lib/increase/models/bookkeeping_balance_lookup.rbi index b65957f4..2a84fa3e 100644 --- a/rbi/lib/increase/models/bookkeeping_balance_lookup.rbi +++ b/rbi/lib/increase/models/bookkeeping_balance_lookup.rbi @@ -2,7 +2,7 @@ module Increase module Models - class BookkeepingBalanceLookup < Increase::BaseModel + class BookkeepingBalanceLookup < Increase::Internal::Type::BaseModel # The Bookkeeping Account's current balance, representing the sum of all # Bookkeeping Entries on the Bookkeeping Account. sig { returns(Integer) } @@ -46,7 +46,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `bookkeeping_balance_lookup`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::BookkeepingBalanceLookup::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/bookkeeping_entry.rbi b/rbi/lib/increase/models/bookkeeping_entry.rbi index f26c0487..1c754a2c 100644 --- a/rbi/lib/increase/models/bookkeeping_entry.rbi +++ b/rbi/lib/increase/models/bookkeeping_entry.rbi @@ -2,7 +2,7 @@ module Increase module Models - class BookkeepingEntry < Increase::BaseModel + class BookkeepingEntry < Increase::Internal::Type::BaseModel # The entry identifier. sig { returns(String) } attr_accessor :id @@ -65,7 +65,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `bookkeeping_entry`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::BookkeepingEntry::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::BookkeepingEntry::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/bookkeeping_entry_list_params.rbi b/rbi/lib/increase/models/bookkeeping_entry_list_params.rbi index c374402b..25be33b4 100644 --- a/rbi/lib/increase/models/bookkeeping_entry_list_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_entry_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class BookkeepingEntryListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntryListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier for the Bookkeeping Account to filter by. sig { returns(T.nilable(String)) } @@ -33,7 +33,7 @@ module Increase account_id: String, cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/bookkeeping_entry_retrieve_params.rbi b/rbi/lib/increase/models/bookkeeping_entry_retrieve_params.rbi index bbe83520..12fdd814 100644 --- a/rbi/lib/increase/models/bookkeeping_entry_retrieve_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_entry_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class BookkeepingEntryRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntryRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/bookkeeping_entry_set.rbi b/rbi/lib/increase/models/bookkeeping_entry_set.rbi index 7eb33909..fc6da7f2 100644 --- a/rbi/lib/increase/models/bookkeeping_entry_set.rbi +++ b/rbi/lib/increase/models/bookkeeping_entry_set.rbi @@ -2,7 +2,7 @@ module Increase module Models - class BookkeepingEntrySet < Increase::BaseModel + class BookkeepingEntrySet < Increase::Internal::Type::BaseModel # The entry set identifier. sig { returns(String) } attr_accessor :id @@ -43,7 +43,7 @@ module Increase id: String, created_at: Time, date: Time, - entries: T::Array[T.any(Increase::Models::BookkeepingEntrySet::Entry, Increase::Util::AnyHash)], + entries: T::Array[T.any(Increase::Models::BookkeepingEntrySet::Entry, Increase::Internal::AnyHash)], idempotency_key: T.nilable(String), transaction_id: T.nilable(String), type: Increase::Models::BookkeepingEntrySet::Type::OrSymbol @@ -70,7 +70,7 @@ module Increase def to_hash end - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # The entry identifier. sig { returns(String) } attr_accessor :id @@ -95,7 +95,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `bookkeeping_entry_set`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::BookkeepingEntrySet::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/bookkeeping_entry_set_create_params.rbi b/rbi/lib/increase/models/bookkeeping_entry_set_create_params.rbi index 706dd35a..68635eb8 100644 --- a/rbi/lib/increase/models/bookkeeping_entry_set_create_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_entry_set_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class BookkeepingEntrySetCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntrySetCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The bookkeeping entries. sig { returns(T::Array[Increase::Models::BookkeepingEntrySetCreateParams::Entry]) } @@ -27,10 +27,10 @@ module Increase sig do params( - entries: T::Array[T.any(Increase::Models::BookkeepingEntrySetCreateParams::Entry, Increase::Util::AnyHash)], + entries: T::Array[T.any(Increase::Models::BookkeepingEntrySetCreateParams::Entry, Increase::Internal::AnyHash)], date: Time, transaction_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -51,7 +51,7 @@ module Increase def to_hash end - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # The identifier for the Bookkeeping Account impacted by this entry. sig { returns(String) } attr_accessor :account_id diff --git a/rbi/lib/increase/models/bookkeeping_entry_set_list_params.rbi b/rbi/lib/increase/models/bookkeeping_entry_set_list_params.rbi index 56044c50..d0c535c0 100644 --- a/rbi/lib/increase/models/bookkeeping_entry_set_list_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_entry_set_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class BookkeepingEntrySetListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntrySetListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -44,7 +44,7 @@ module Increase idempotency_key: String, limit: Integer, transaction_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/bookkeeping_entry_set_retrieve_params.rbi b/rbi/lib/increase/models/bookkeeping_entry_set_retrieve_params.rbi index 4eebe4c7..b480cdb6 100644 --- a/rbi/lib/increase/models/bookkeeping_entry_set_retrieve_params.rbi +++ b/rbi/lib/increase/models/bookkeeping_entry_set_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class BookkeepingEntrySetRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntrySetRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/card.rbi b/rbi/lib/increase/models/card.rbi index d9f54015..afa6d043 100644 --- a/rbi/lib/increase/models/card.rbi +++ b/rbi/lib/increase/models/card.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Card < Increase::BaseModel + class Card < Increase::Internal::Type::BaseModel # The card identifier. sig { returns(String) } attr_accessor :id @@ -15,7 +15,7 @@ module Increase sig { returns(Increase::Models::Card::BillingAddress) } attr_reader :billing_address - sig { params(billing_address: T.any(Increase::Models::Card::BillingAddress, Increase::Util::AnyHash)).void } + sig { params(billing_address: T.any(Increase::Models::Card::BillingAddress, Increase::Internal::AnyHash)).void } attr_writer :billing_address # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which @@ -34,7 +34,9 @@ module Increase attr_reader :digital_wallet sig do - params(digital_wallet: T.nilable(T.any(Increase::Models::Card::DigitalWallet, Increase::Util::AnyHash))) + params( + digital_wallet: T.nilable(T.any(Increase::Models::Card::DigitalWallet, Increase::Internal::AnyHash)) + ) .void end attr_writer :digital_wallet @@ -78,10 +80,10 @@ module Increase params( id: String, account_id: String, - billing_address: T.any(Increase::Models::Card::BillingAddress, Increase::Util::AnyHash), + billing_address: T.any(Increase::Models::Card::BillingAddress, Increase::Internal::AnyHash), created_at: Time, description: T.nilable(String), - digital_wallet: T.nilable(T.any(Increase::Models::Card::DigitalWallet, Increase::Util::AnyHash)), + digital_wallet: T.nilable(T.any(Increase::Models::Card::DigitalWallet, Increase::Internal::AnyHash)), entity_id: T.nilable(String), expiration_month: Integer, expiration_year: Integer, @@ -132,7 +134,7 @@ module Increase def to_hash end - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel # The city of the billing address. sig { returns(T.nilable(String)) } attr_accessor :city @@ -183,7 +185,7 @@ module Increase end end - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel # The digital card profile assigned to this digital card. Card profiles may also # be assigned at the program level. sig { returns(T.nilable(String)) } @@ -227,7 +229,7 @@ module Increase # This indicates if payments can be made with the card. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Card::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Card::Status::TaggedSymbol) } @@ -249,7 +251,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Card::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Card::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/card_create_params.rbi b/rbi/lib/increase/models/card_create_params.rbi index d04d5a21..394c2aa7 100644 --- a/rbi/lib/increase/models/card_create_params.rbi +++ b/rbi/lib/increase/models/card_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CardCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The Account the card should belong to. sig { returns(String) } @@ -16,7 +16,7 @@ module Increase sig do params( - billing_address: T.any(Increase::Models::CardCreateParams::BillingAddress, Increase::Util::AnyHash) + billing_address: T.any(Increase::Models::CardCreateParams::BillingAddress, Increase::Internal::AnyHash) ) .void end @@ -38,7 +38,9 @@ module Increase attr_reader :digital_wallet sig do - params(digital_wallet: T.any(Increase::Models::CardCreateParams::DigitalWallet, Increase::Util::AnyHash)) + params( + digital_wallet: T.any(Increase::Models::CardCreateParams::DigitalWallet, Increase::Internal::AnyHash) + ) .void end attr_writer :digital_wallet @@ -54,11 +56,11 @@ module Increase sig do params( account_id: String, - billing_address: T.any(Increase::Models::CardCreateParams::BillingAddress, Increase::Util::AnyHash), + billing_address: T.any(Increase::Models::CardCreateParams::BillingAddress, Increase::Internal::AnyHash), description: String, - digital_wallet: T.any(Increase::Models::CardCreateParams::DigitalWallet, Increase::Util::AnyHash), + digital_wallet: T.any(Increase::Models::CardCreateParams::DigitalWallet, Increase::Internal::AnyHash), entity_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -88,7 +90,7 @@ module Increase def to_hash end - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel # The city of the billing address. sig { returns(String) } attr_accessor :city @@ -127,7 +129,7 @@ module Increase end end - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel # The digital card profile assigned to this digital card. sig { returns(T.nilable(String)) } attr_reader :digital_card_profile_id diff --git a/rbi/lib/increase/models/card_details.rbi b/rbi/lib/increase/models/card_details.rbi index 949e5376..824be3c2 100644 --- a/rbi/lib/increase/models/card_details.rbi +++ b/rbi/lib/increase/models/card_details.rbi @@ -2,7 +2,7 @@ module Increase module Models - class CardDetails < Increase::BaseModel + class CardDetails < Increase::Internal::Type::BaseModel # The identifier for the Card for which sensitive details have been returned. sig { returns(String) } attr_accessor :card_id @@ -71,7 +71,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_details`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardDetails::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CardDetails::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/card_details_params.rbi b/rbi/lib/increase/models/card_details_params.rbi index c07d37c2..b1722000 100644 --- a/rbi/lib/increase/models/card_details_params.rbi +++ b/rbi/lib/increase/models/card_details_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CardDetailsParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDetailsParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/card_dispute.rbi b/rbi/lib/increase/models/card_dispute.rbi index 7d6ff8b0..a1cef3f0 100644 --- a/rbi/lib/increase/models/card_dispute.rbi +++ b/rbi/lib/increase/models/card_dispute.rbi @@ -2,7 +2,7 @@ module Increase module Models - class CardDispute < Increase::BaseModel + class CardDispute < Increase::Internal::Type::BaseModel # The Card Dispute identifier. sig { returns(String) } attr_accessor :id @@ -13,7 +13,9 @@ module Increase attr_reader :acceptance sig do - params(acceptance: T.nilable(T.any(Increase::Models::CardDispute::Acceptance, Increase::Util::AnyHash))) + params( + acceptance: T.nilable(T.any(Increase::Models::CardDispute::Acceptance, Increase::Internal::AnyHash)) + ) .void end attr_writer :acceptance @@ -46,7 +48,7 @@ module Increase sig { returns(T.nilable(Increase::Models::CardDispute::Loss)) } attr_reader :loss - sig { params(loss: T.nilable(T.any(Increase::Models::CardDispute::Loss, Increase::Util::AnyHash))).void } + sig { params(loss: T.nilable(T.any(Increase::Models::CardDispute::Loss, Increase::Internal::AnyHash))).void } attr_writer :loss # If the Card Dispute's status is `rejected`, this will contain details of the @@ -54,7 +56,10 @@ module Increase sig { returns(T.nilable(Increase::Models::CardDispute::Rejection)) } attr_reader :rejection - sig { params(rejection: T.nilable(T.any(Increase::Models::CardDispute::Rejection, Increase::Util::AnyHash))).void } + sig do + params(rejection: T.nilable(T.any(Increase::Models::CardDispute::Rejection, Increase::Internal::AnyHash))) + .void + end attr_writer :rejection # The results of the Dispute investigation. @@ -71,7 +76,7 @@ module Increase sig { returns(T.nilable(Increase::Models::CardDispute::Win)) } attr_reader :win - sig { params(win: T.nilable(T.any(Increase::Models::CardDispute::Win, Increase::Util::AnyHash))).void } + sig { params(win: T.nilable(T.any(Increase::Models::CardDispute::Win, Increase::Internal::AnyHash))).void } attr_writer :win # If unauthorized activity occurs on a card, you can create a Card Dispute and @@ -79,17 +84,17 @@ module Increase sig do params( id: String, - acceptance: T.nilable(T.any(Increase::Models::CardDispute::Acceptance, Increase::Util::AnyHash)), + acceptance: T.nilable(T.any(Increase::Models::CardDispute::Acceptance, Increase::Internal::AnyHash)), amount: T.nilable(Integer), created_at: Time, disputed_transaction_id: String, explanation: String, idempotency_key: T.nilable(String), - loss: T.nilable(T.any(Increase::Models::CardDispute::Loss, Increase::Util::AnyHash)), - rejection: T.nilable(T.any(Increase::Models::CardDispute::Rejection, Increase::Util::AnyHash)), + loss: T.nilable(T.any(Increase::Models::CardDispute::Loss, Increase::Internal::AnyHash)), + rejection: T.nilable(T.any(Increase::Models::CardDispute::Rejection, Increase::Internal::AnyHash)), status: Increase::Models::CardDispute::Status::OrSymbol, type: Increase::Models::CardDispute::Type::OrSymbol, - win: T.nilable(T.any(Increase::Models::CardDispute::Win, Increase::Util::AnyHash)) + win: T.nilable(T.any(Increase::Models::CardDispute::Win, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -131,7 +136,7 @@ module Increase def to_hash end - class Acceptance < Increase::BaseModel + class Acceptance < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Card Dispute was accepted. sig { returns(Time) } @@ -159,7 +164,7 @@ module Increase end end - class Loss < Increase::BaseModel + class Loss < Increase::Internal::Type::BaseModel # The identifier of the Card Dispute that was lost. sig { returns(String) } attr_accessor :card_dispute_id @@ -201,7 +206,7 @@ module Increase end end - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel # The identifier of the Card Dispute that was rejected. sig { returns(String) } attr_accessor :card_dispute_id @@ -230,7 +235,7 @@ module Increase # The results of the Dispute investigation. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardDispute::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CardDispute::Status::TaggedSymbol) } @@ -262,7 +267,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_dispute`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardDispute::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CardDispute::Type::TaggedSymbol) } @@ -274,7 +279,7 @@ module Increase end end - class Win < Increase::BaseModel + class Win < Increase::Internal::Type::BaseModel # The identifier of the Card Dispute that was won. sig { returns(String) } attr_accessor :card_dispute_id diff --git a/rbi/lib/increase/models/card_dispute_create_params.rbi b/rbi/lib/increase/models/card_dispute_create_params.rbi index 24e14583..399314a8 100644 --- a/rbi/lib/increase/models/card_dispute_create_params.rbi +++ b/rbi/lib/increase/models/card_dispute_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CardDisputeCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The Transaction you wish to dispute. This Transaction must have a `source_type` # of `card_settlement`. @@ -30,7 +30,7 @@ module Increase disputed_transaction_id: String, explanation: String, amount: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/card_dispute_list_params.rbi b/rbi/lib/increase/models/card_dispute_list_params.rbi index 85363064..b056872a 100644 --- a/rbi/lib/increase/models/card_dispute_list_params.rbi +++ b/rbi/lib/increase/models/card_dispute_list_params.rbi @@ -2,14 +2,17 @@ module Increase module Models - class CardDisputeListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::CardDisputeListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::CardDisputeListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig do + params(created_at: T.any(Increase::Models::CardDisputeListParams::CreatedAt, Increase::Internal::AnyHash)) + .void + end attr_writer :created_at # Return the page of entries after this one. @@ -40,17 +43,17 @@ module Increase sig { returns(T.nilable(Increase::Models::CardDisputeListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::CardDisputeListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::CardDisputeListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( - created_at: T.any(Increase::Models::CardDisputeListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardDisputeListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::CardDisputeListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::CardDisputeListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -80,7 +83,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -124,7 +127,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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 # `?in=one,two,three`. @@ -146,7 +149,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardDisputeListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/card_dispute_retrieve_params.rbi b/rbi/lib/increase/models/card_dispute_retrieve_params.rbi index ccf8062d..b306c9d0 100644 --- a/rbi/lib/increase/models/card_dispute_retrieve_params.rbi +++ b/rbi/lib/increase/models/card_dispute_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CardDisputeRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/card_list_params.rbi b/rbi/lib/increase/models/card_list_params.rbi index fb48304e..f4878963 100644 --- a/rbi/lib/increase/models/card_list_params.rbi +++ b/rbi/lib/increase/models/card_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CardListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Cards to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -16,7 +16,7 @@ module Increase sig { returns(T.nilable(Increase::Models::CardListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::CardListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig { params(created_at: T.any(Increase::Models::CardListParams::CreatedAt, Increase::Internal::AnyHash)).void } attr_writer :created_at # Return the page of entries after this one. @@ -47,18 +47,18 @@ module Increase sig { returns(T.nilable(Increase::Models::CardListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::CardListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::CardListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( account_id: String, - created_at: T.any(Increase::Models::CardListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::CardListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::CardListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -90,7 +90,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -134,7 +134,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Cards by status. For GET requests, this should be encoded as a # comma-delimited string, such as `?in=one,two,three`. sig { returns(T.nilable(T::Array[Increase::Models::CardListParams::Status::In::OrSymbol])) } @@ -152,7 +152,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/card_payment.rbi b/rbi/lib/increase/models/card_payment.rbi index 29aa1349..fd8e7754 100644 --- a/rbi/lib/increase/models/card_payment.rbi +++ b/rbi/lib/increase/models/card_payment.rbi @@ -2,7 +2,7 @@ module Increase module Models - class CardPayment < Increase::BaseModel + class CardPayment < Increase::Internal::Type::BaseModel # The Card Payment identifier. sig { returns(String) } attr_accessor :id @@ -36,7 +36,7 @@ module Increase sig { returns(Increase::Models::CardPayment::State) } attr_reader :state - sig { params(state: T.any(Increase::Models::CardPayment::State, Increase::Util::AnyHash)).void } + sig { params(state: T.any(Increase::Models::CardPayment::State, Increase::Internal::AnyHash)).void } attr_writer :state # A constant representing the object's type. For this resource it will always be @@ -53,9 +53,9 @@ module Increase card_id: String, created_at: Time, digital_wallet_token_id: T.nilable(String), - elements: T::Array[T.any(Increase::Models::CardPayment::Element, Increase::Util::AnyHash)], + elements: T::Array[T.any(Increase::Models::CardPayment::Element, Increase::Internal::AnyHash)], physical_card_id: T.nilable(String), - state: T.any(Increase::Models::CardPayment::State, Increase::Util::AnyHash), + state: T.any(Increase::Models::CardPayment::State, Increase::Internal::AnyHash), type: Increase::Models::CardPayment::Type::OrSymbol ) .returns(T.attached_class) @@ -92,7 +92,7 @@ module Increase def to_hash end - class Element < Increase::BaseModel + class Element < Increase::Internal::Type::BaseModel # 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 # are attempts to authenticate a transaction or a card with 3DS. @@ -101,7 +101,7 @@ module Increase sig do params( - card_authentication: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthentication, Increase::Util::AnyHash)) + card_authentication: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthentication, Increase::Internal::AnyHash)) ) .void end @@ -116,7 +116,7 @@ module Increase sig do params( - card_authorization: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthorization, Increase::Util::AnyHash)) + card_authorization: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthorization, Increase::Internal::AnyHash)) ) .void end @@ -132,7 +132,7 @@ module Increase sig do params( card_authorization_expiration: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardAuthorizationExpiration, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardAuthorizationExpiration, Increase::Internal::AnyHash) ) ) .void @@ -146,7 +146,7 @@ module Increase sig do params( - card_decline: T.nilable(T.any(Increase::Models::CardPayment::Element::CardDecline, Increase::Util::AnyHash)) + card_decline: T.nilable(T.any(Increase::Models::CardPayment::Element::CardDecline, Increase::Internal::AnyHash)) ) .void end @@ -161,7 +161,9 @@ module Increase sig do params( - card_fuel_confirmation: T.nilable(T.any(Increase::Models::CardPayment::Element::CardFuelConfirmation, Increase::Util::AnyHash)) + card_fuel_confirmation: T.nilable( + T.any(Increase::Models::CardPayment::Element::CardFuelConfirmation, Increase::Internal::AnyHash) + ) ) .void end @@ -175,7 +177,7 @@ module Increase sig do params( - card_increment: T.nilable(T.any(Increase::Models::CardPayment::Element::CardIncrement, Increase::Util::AnyHash)) + card_increment: T.nilable(T.any(Increase::Models::CardPayment::Element::CardIncrement, Increase::Internal::AnyHash)) ) .void end @@ -191,7 +193,7 @@ module Increase sig do params( - card_refund: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund, Increase::Util::AnyHash)) + card_refund: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund, Increase::Internal::AnyHash)) ) .void end @@ -205,7 +207,7 @@ module Increase sig do params( - card_reversal: T.nilable(T.any(Increase::Models::CardPayment::Element::CardReversal, Increase::Util::AnyHash)) + card_reversal: T.nilable(T.any(Increase::Models::CardPayment::Element::CardReversal, Increase::Internal::AnyHash)) ) .void end @@ -221,7 +223,7 @@ module Increase sig do params( - card_settlement: T.nilable(T.any(Increase::Models::CardPayment::Element::CardSettlement, Increase::Util::AnyHash)) + card_settlement: T.nilable(T.any(Increase::Models::CardPayment::Element::CardSettlement, Increase::Internal::AnyHash)) ) .void end @@ -236,7 +238,7 @@ module Increase sig do params( - card_validation: T.nilable(T.any(Increase::Models::CardPayment::Element::CardValidation, Increase::Util::AnyHash)) + card_validation: T.nilable(T.any(Increase::Models::CardPayment::Element::CardValidation, Increase::Internal::AnyHash)) ) .void end @@ -259,18 +261,20 @@ module Increase sig do params( - card_authentication: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthentication, Increase::Util::AnyHash)), - card_authorization: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthorization, Increase::Util::AnyHash)), + card_authentication: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthentication, Increase::Internal::AnyHash)), + card_authorization: T.nilable(T.any(Increase::Models::CardPayment::Element::CardAuthorization, Increase::Internal::AnyHash)), card_authorization_expiration: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardAuthorizationExpiration, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardAuthorizationExpiration, Increase::Internal::AnyHash) + ), + card_decline: T.nilable(T.any(Increase::Models::CardPayment::Element::CardDecline, Increase::Internal::AnyHash)), + card_fuel_confirmation: T.nilable( + T.any(Increase::Models::CardPayment::Element::CardFuelConfirmation, Increase::Internal::AnyHash) ), - card_decline: T.nilable(T.any(Increase::Models::CardPayment::Element::CardDecline, Increase::Util::AnyHash)), - card_fuel_confirmation: T.nilable(T.any(Increase::Models::CardPayment::Element::CardFuelConfirmation, Increase::Util::AnyHash)), - card_increment: T.nilable(T.any(Increase::Models::CardPayment::Element::CardIncrement, Increase::Util::AnyHash)), - card_refund: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund, Increase::Util::AnyHash)), - card_reversal: T.nilable(T.any(Increase::Models::CardPayment::Element::CardReversal, Increase::Util::AnyHash)), - card_settlement: T.nilable(T.any(Increase::Models::CardPayment::Element::CardSettlement, Increase::Util::AnyHash)), - card_validation: T.nilable(T.any(Increase::Models::CardPayment::Element::CardValidation, Increase::Util::AnyHash)), + card_increment: T.nilable(T.any(Increase::Models::CardPayment::Element::CardIncrement, Increase::Internal::AnyHash)), + card_refund: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund, Increase::Internal::AnyHash)), + card_reversal: T.nilable(T.any(Increase::Models::CardPayment::Element::CardReversal, Increase::Internal::AnyHash)), + card_settlement: T.nilable(T.any(Increase::Models::CardPayment::Element::CardSettlement, Increase::Internal::AnyHash)), + card_validation: T.nilable(T.any(Increase::Models::CardPayment::Element::CardValidation, Increase::Internal::AnyHash)), category: Increase::Models::CardPayment::Element::Category::OrSymbol, created_at: Time, other: T.nilable(T.anything) @@ -317,7 +321,7 @@ module Increase def to_hash end - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel # The Card Authentication identifier. sig { returns(String) } attr_accessor :id @@ -341,7 +345,7 @@ module Increase sig do params( challenge: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardAuthentication::Challenge, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardAuthentication::Challenge, Increase::Internal::AnyHash) ) ) .void @@ -416,7 +420,7 @@ module Increase card_payment_id: String, category: T.nilable(Increase::Models::CardPayment::Element::CardAuthentication::Category::OrSymbol), challenge: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardAuthentication::Challenge, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardAuthentication::Challenge, Increase::Internal::AnyHash) ), created_at: Time, deny_reason: T.nilable(Increase::Models::CardPayment::Element::CardAuthentication::DenyReason::OrSymbol), @@ -483,7 +487,7 @@ module Increase # The category of the card authentication attempt. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Category) } @@ -512,7 +516,7 @@ module Increase end end - class Challenge < Increase::BaseModel + class Challenge < Increase::Internal::Type::BaseModel # Details about the challenge verification attempts, if any happened. sig { returns(T::Array[Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt]) } attr_accessor :attempts @@ -545,7 +549,7 @@ module Increase attempts: T::Array[ T.any( Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ], created_at: Time, @@ -573,7 +577,7 @@ module Increase def to_hash end - class Attempt < Increase::BaseModel + class Attempt < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time of the Card # Authentication Challenge Attempt. sig { returns(Time) } @@ -611,7 +615,7 @@ module Increase # The outcome of the Card Authentication Challenge Attempt. module Outcome - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt::Outcome) } @@ -651,7 +655,7 @@ module Increase # The method used to verify the Card Authentication Challenge. module VerificationMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod) } @@ -698,7 +702,7 @@ module Increase # The reason why this authentication attempt was denied, if it was. module DenyReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DenyReason) } @@ -760,7 +764,7 @@ module Increase # The device channel of the card authentication attempt. module DeviceChannel - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel) } @@ -798,7 +802,7 @@ module Increase # The status of the card authentication. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Status) } @@ -869,7 +873,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_authentication`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Type) } @@ -888,7 +892,7 @@ module Increase end end - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # The Card Authorization identifier. sig { returns(String) } attr_accessor :id @@ -964,7 +968,10 @@ module Increase sig do params( - network_details: T.any(Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails, Increase::Util::AnyHash) + network_details: T.any( + Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails, + Increase::Internal::AnyHash + ) ) .void end @@ -978,7 +985,7 @@ module Increase params( network_identifiers: T.any( Increase::Models::CardPayment::Element::CardAuthorization::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1034,7 +1041,10 @@ module Increase sig do params( - verification: T.any(Increase::Models::CardPayment::Element::CardAuthorization::Verification, Increase::Util::AnyHash) + verification: T.any( + Increase::Models::CardPayment::Element::CardAuthorization::Verification, + Increase::Internal::AnyHash + ) ) .void end @@ -1061,10 +1071,13 @@ module Increase merchant_descriptor: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_details: T.any(Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails, Increase::Util::AnyHash), + network_details: T.any( + Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails, + Increase::Internal::AnyHash + ), network_identifiers: T.any( Increase::Models::CardPayment::Element::CardAuthorization::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), network_risk_score: T.nilable(Integer), pending_transaction_id: T.nilable(String), @@ -1075,7 +1088,10 @@ module Increase real_time_decision_id: T.nilable(String), terminal_id: T.nilable(String), type: Increase::Models::CardPayment::Element::CardAuthorization::Type::OrSymbol, - verification: T.any(Increase::Models::CardPayment::Element::CardAuthorization::Verification, Increase::Util::AnyHash) + verification: T.any( + Increase::Models::CardPayment::Element::CardAuthorization::Verification, + Increase::Internal::AnyHash + ) ) .returns(T.attached_class) end @@ -1150,7 +1166,7 @@ module Increase # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorization::Actioner) } @@ -1179,7 +1195,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorization::Currency) } @@ -1215,7 +1231,7 @@ module Increase # The direction describes the direction the funds will move, either from the # cardholder to the merchant or from the merchant to the cardholder. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorization::Direction) } @@ -1238,7 +1254,7 @@ module Increase end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. sig { returns(Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Category::TaggedSymbol) } attr_accessor :category @@ -1252,7 +1268,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -1267,7 +1283,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -1290,7 +1306,7 @@ module Increase # The payment network used to process this card authorization. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Category) } @@ -1320,7 +1336,7 @@ module Increase end end - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. @@ -1400,7 +1416,7 @@ module Increase # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1486,7 +1502,7 @@ module Increase # The method used to enter the cardholder's primary account number and card # expiration date. module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1586,7 +1602,7 @@ module Increase # Only present when `actioner: network`. Describes why a card authorization was # approved or declined by Visa through stand-in processing. module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1664,7 +1680,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -1710,7 +1726,7 @@ module Increase # The processing category describes the intent behind the authorization, such as # whether it was used for bill payments or an automatic fuel dispenser. module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorization::ProcessingCategory) } @@ -1778,7 +1794,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_authorization`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorization::Type) } @@ -1793,7 +1809,7 @@ module Increase end end - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. sig { returns(Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode) } @@ -1803,7 +1819,7 @@ module Increase params( card_verification_code: T.any( Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1819,7 +1835,7 @@ module Increase params( cardholder_address: T.any( Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1831,11 +1847,11 @@ module Increase params( card_verification_code: T.any( Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), cardholder_address: T.any( Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -1855,7 +1871,7 @@ module Increase def to_hash end - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # The result of verifying the Card Verification Code. sig do returns( @@ -1888,7 +1904,7 @@ module Increase # The result of verifying the Card Verification Code. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1937,7 +1953,7 @@ module Increase end end - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } attr_accessor :actual_line1 @@ -2001,7 +2017,7 @@ module Increase # The address verification result returned to the card network. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2073,7 +2089,7 @@ module Increase end end - class CardAuthorizationExpiration < Increase::BaseModel + class CardAuthorizationExpiration < Increase::Internal::Type::BaseModel # The Card Authorization Expiration identifier. sig { returns(String) } attr_accessor :id @@ -2138,7 +2154,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorizationExpiration::Currency) } @@ -2187,7 +2203,7 @@ module Increase # The card network used to process this card authorization. module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorizationExpiration::Network) } @@ -2217,7 +2233,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_authorization_expiration`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardAuthorizationExpiration::Type) } @@ -2245,7 +2261,7 @@ module Increase end end - class CardDecline < Increase::BaseModel + class CardDecline < Increase::Internal::Type::BaseModel # The Card Decline identifier. sig { returns(String) } attr_accessor :id @@ -2320,7 +2336,7 @@ module Increase sig do params( - network_details: T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkDetails, Increase::Util::AnyHash) + network_details: T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkDetails, Increase::Internal::AnyHash) ) .void end @@ -2332,7 +2348,10 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardDecline::NetworkIdentifiers, + Increase::Internal::AnyHash + ) ) .void end @@ -2391,7 +2410,7 @@ module Increase sig do params( - verification: T.any(Increase::Models::CardPayment::Element::CardDecline::Verification, Increase::Util::AnyHash) + verification: T.any(Increase::Models::CardPayment::Element::CardDecline::Verification, Increase::Internal::AnyHash) ) .void end @@ -2416,8 +2435,11 @@ module Increase merchant_descriptor: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_details: T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkDetails, Increase::Util::AnyHash), - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkIdentifiers, Increase::Util::AnyHash), + network_details: T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkDetails, Increase::Internal::AnyHash), + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardDecline::NetworkIdentifiers, + Increase::Internal::AnyHash + ), network_risk_score: T.nilable(Integer), physical_card_id: T.nilable(String), presentment_amount: Integer, @@ -2427,7 +2449,7 @@ module Increase real_time_decision_reason: T.nilable(Increase::Models::CardPayment::Element::CardDecline::RealTimeDecisionReason::OrSymbol), reason: Increase::Models::CardPayment::Element::CardDecline::Reason::OrSymbol, terminal_id: T.nilable(String), - verification: T.any(Increase::Models::CardPayment::Element::CardDecline::Verification, Increase::Util::AnyHash) + verification: T.any(Increase::Models::CardPayment::Element::CardDecline::Verification, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -2502,7 +2524,7 @@ module Increase # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardDecline::Actioner) } @@ -2526,7 +2548,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination # account currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardDecline::Currency) } @@ -2559,7 +2581,7 @@ module Increase # The direction describes the direction the funds will move, either from the # cardholder to the merchant or from the merchant to the cardholder. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardDecline::Direction) } @@ -2578,7 +2600,7 @@ module Increase end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. sig { returns(Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Category::TaggedSymbol) } attr_accessor :category @@ -2590,7 +2612,10 @@ module Increase sig do params( visa: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa, Increase::Util::AnyHash) + T.any( + Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) ) ) .void @@ -2602,7 +2627,10 @@ module Increase params( category: Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Category::OrSymbol, visa: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa, Increase::Util::AnyHash) + T.any( + Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa, + Increase::Internal::AnyHash + ) ) ) .returns(T.attached_class) @@ -2624,7 +2652,7 @@ module Increase # The payment network used to process this card authorization. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Category) } @@ -2651,7 +2679,7 @@ module Increase end end - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. @@ -2731,7 +2759,7 @@ module Increase # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2817,7 +2845,7 @@ module Increase # The method used to enter the cardholder's primary account number and card # expiration date. module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2917,7 +2945,7 @@ module Increase # Only present when `actioner: network`. Describes why a card authorization was # approved or declined by Visa through stand-in processing. module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2995,7 +3023,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -3041,7 +3069,7 @@ module Increase # The processing category describes the intent behind the authorization, such as # whether it was used for bill payments or an automatic fuel dispenser. module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardDecline::ProcessingCategory) } @@ -3098,7 +3126,7 @@ module Increase # This is present if a specific decline reason was given in the real-time # decision. module RealTimeDecisionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardDecline::RealTimeDecisionReason) } @@ -3162,7 +3190,7 @@ module Increase # Why the transaction was declined. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardDecline::Reason) } @@ -3254,7 +3282,7 @@ module Increase end end - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. sig { returns(Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode) } @@ -3264,7 +3292,7 @@ module Increase params( card_verification_code: T.any( Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -3280,7 +3308,7 @@ module Increase params( cardholder_address: T.any( Increase::Models::CardPayment::Element::CardDecline::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -3292,11 +3320,11 @@ module Increase params( card_verification_code: T.any( Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), cardholder_address: T.any( Increase::Models::CardPayment::Element::CardDecline::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -3316,7 +3344,7 @@ module Increase def to_hash end - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # The result of verifying the Card Verification Code. sig do returns( @@ -3349,7 +3377,7 @@ module Increase # The result of verifying the Card Verification Code. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3398,7 +3426,7 @@ module Increase end end - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } attr_accessor :actual_line1 @@ -3462,7 +3490,7 @@ module Increase # The address verification result returned to the card network. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3532,7 +3560,7 @@ module Increase end end - class CardFuelConfirmation < Increase::BaseModel + class CardFuelConfirmation < Increase::Internal::Type::BaseModel # The Card Fuel Confirmation identifier. sig { returns(String) } attr_accessor :id @@ -3558,7 +3586,7 @@ module Increase params( network_identifiers: T.any( Increase::Models::CardPayment::Element::CardFuelConfirmation::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -3592,7 +3620,7 @@ module Increase network: Increase::Models::CardPayment::Element::CardFuelConfirmation::Network::OrSymbol, network_identifiers: T.any( Increase::Models::CardPayment::Element::CardFuelConfirmation::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), pending_transaction_id: T.nilable(String), type: Increase::Models::CardPayment::Element::CardFuelConfirmation::Type::OrSymbol, @@ -3633,7 +3661,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the increment's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardFuelConfirmation::Currency) } @@ -3674,7 +3702,7 @@ module Increase # The card network used to process this card authorization. module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardFuelConfirmation::Network) } @@ -3692,7 +3720,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -3738,7 +3766,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_fuel_confirmation`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardFuelConfirmation::Type) } @@ -3760,7 +3788,7 @@ module Increase end end - class CardIncrement < Increase::BaseModel + class CardIncrement < Increase::Internal::Type::BaseModel # The Card Increment identifier. sig { returns(String) } attr_accessor :id @@ -3794,7 +3822,10 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardIncrement::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardIncrement::NetworkIdentifiers, + Increase::Internal::AnyHash + ) ) .void end @@ -3835,7 +3866,10 @@ module Increase card_authorization_id: String, currency: Increase::Models::CardPayment::Element::CardIncrement::Currency::OrSymbol, network: Increase::Models::CardPayment::Element::CardIncrement::Network::OrSymbol, - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardIncrement::NetworkIdentifiers, Increase::Util::AnyHash), + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardIncrement::NetworkIdentifiers, + Increase::Internal::AnyHash + ), network_risk_score: T.nilable(Integer), pending_transaction_id: T.nilable(String), real_time_decision_id: T.nilable(String), @@ -3885,7 +3919,7 @@ module Increase # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardIncrement::Actioner) } @@ -3910,7 +3944,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the increment's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardIncrement::Currency) } @@ -3942,7 +3976,7 @@ module Increase # The card network used to process this card authorization. module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardIncrement::Network) } @@ -3957,7 +3991,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -4003,7 +4037,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_increment`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardIncrement::Type) } @@ -4019,7 +4053,7 @@ module Increase end end - class CardRefund < Increase::BaseModel + class CardRefund < Increase::Internal::Type::BaseModel # The Card Refund identifier. sig { returns(String) } attr_accessor :id @@ -4040,7 +4074,9 @@ module Increase sig do params( - cashback: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund::Cashback, Increase::Util::AnyHash)) + cashback: T.nilable( + T.any(Increase::Models::CardPayment::Element::CardRefund::Cashback, Increase::Internal::AnyHash) + ) ) .void end @@ -4057,7 +4093,9 @@ module Increase sig do params( - interchange: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund::Interchange, Increase::Util::AnyHash)) + interchange: T.nilable( + T.any(Increase::Models::CardPayment::Element::CardRefund::Interchange, Increase::Internal::AnyHash) + ) ) .void end @@ -4098,7 +4136,7 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardRefund::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any(Increase::Models::CardPayment::Element::CardRefund::NetworkIdentifiers, Increase::Internal::AnyHash) ) .void end @@ -4121,7 +4159,7 @@ module Increase sig do params( purchase_details: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails, Increase::Internal::AnyHash) ) ) .void @@ -4147,9 +4185,13 @@ module Increase id: String, amount: Integer, card_payment_id: String, - cashback: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund::Cashback, Increase::Util::AnyHash)), + cashback: T.nilable( + T.any(Increase::Models::CardPayment::Element::CardRefund::Cashback, Increase::Internal::AnyHash) + ), currency: Increase::Models::CardPayment::Element::CardRefund::Currency::OrSymbol, - interchange: T.nilable(T.any(Increase::Models::CardPayment::Element::CardRefund::Interchange, Increase::Util::AnyHash)), + interchange: T.nilable( + T.any(Increase::Models::CardPayment::Element::CardRefund::Interchange, Increase::Internal::AnyHash) + ), merchant_acceptor_id: String, merchant_category_code: String, merchant_city: String, @@ -4157,11 +4199,11 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardRefund::NetworkIdentifiers, Increase::Util::AnyHash), + network_identifiers: T.any(Increase::Models::CardPayment::Element::CardRefund::NetworkIdentifiers, Increase::Internal::AnyHash), presentment_amount: Integer, presentment_currency: String, purchase_details: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails, Increase::Internal::AnyHash) ), transaction_id: String, type: Increase::Models::CardPayment::Element::CardRefund::Type::OrSymbol @@ -4220,7 +4262,7 @@ module Increase def to_hash end - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # 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 # negative number if it will be debited (e.g., refunds). @@ -4257,7 +4299,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardRefund::Cashback::Currency) } @@ -4300,7 +4342,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's settlement currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardRefund::Currency) } @@ -4330,7 +4372,7 @@ module Increase end end - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a # negative number if it is debited (e.g., refunds). @@ -4374,7 +4416,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardRefund::Interchange::Currency) } @@ -4420,7 +4462,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # A network assigned business ID that identifies the acquirer that processed this # transaction. sig { returns(String) } @@ -4461,7 +4503,7 @@ module Increase end end - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # Fields specific to car rentals. sig { returns(T.nilable(Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::CarRental)) } attr_reader :car_rental @@ -4471,7 +4513,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4501,7 +4543,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4541,7 +4583,7 @@ module Increase travel: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4556,7 +4598,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), customer_reference_identifier: T.nilable(String), @@ -4565,7 +4607,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), national_tax_amount: T.nilable(Integer), @@ -4577,7 +4619,7 @@ module Increase travel: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4619,7 +4661,7 @@ module Increase def to_hash end - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } attr_accessor :car_class_code @@ -4782,7 +4824,7 @@ module Increase # Additional charges (gas, late fee, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -4852,7 +4894,7 @@ module Increase # An indicator that the cardholder is being billed for a reserved vehicle that was # not actually rented (that is, a "no-show" charge). module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -4894,7 +4936,7 @@ module Increase end end - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # Date the customer checked in. sig { returns(T.nilable(Date)) } attr_accessor :check_in_date @@ -5056,7 +5098,7 @@ module Increase # Additional charges (phone, late check-out, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging::ExtraCharges) } @@ -5131,7 +5173,7 @@ module Increase # Indicator that the cardholder is being billed for a reserved room that was not # actually used. module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5175,7 +5217,7 @@ module Increase # The format of the purchase identifier. module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5237,7 +5279,7 @@ module Increase end end - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # Ancillary purchases in addition to the airfare. sig { returns(T.nilable(Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary)) } attr_reader :ancillary @@ -5247,7 +5289,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -5327,7 +5369,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), computerized_reservation_system: T.nilable(String), @@ -5350,7 +5392,7 @@ module Increase T::Array[ T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ] ) @@ -5401,7 +5443,7 @@ module Increase def to_hash end - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the # ticket document number for the other purchase. @@ -5445,7 +5487,7 @@ module Increase services: T::Array[ T.any( Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ], ticket_document_number: T.nilable(String) @@ -5480,7 +5522,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5535,7 +5577,7 @@ module Increase end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # Category of the ancillary service. sig do returns( @@ -5578,7 +5620,7 @@ module Increase # Category of the ancillary service. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5777,7 +5819,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5848,7 +5890,7 @@ module Increase # Indicates whether this ticket is non-refundable. module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5891,7 +5933,7 @@ module Increase # Indicates why a ticket was changed. module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5939,7 +5981,7 @@ module Increase end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # Carrier code (e.g., United Airlines, Jet Blue, etc.). sig { returns(T.nilable(String)) } attr_accessor :carrier_code @@ -6013,7 +6055,7 @@ module Increase # Indicates whether a stopover is allowed on this ticket. module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -6067,7 +6109,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_refund`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardRefund::Type) } OrSymbol = @@ -6081,7 +6123,7 @@ module Increase end end - class CardReversal < Increase::BaseModel + class CardReversal < Increase::Internal::Type::BaseModel # The Card Reversal identifier. sig { returns(String) } attr_accessor :id @@ -6136,7 +6178,10 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardReversal::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardReversal::NetworkIdentifiers, + Increase::Internal::AnyHash + ) ) .void end @@ -6186,7 +6231,10 @@ module Increase merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), network: Increase::Models::CardPayment::Element::CardReversal::Network::OrSymbol, - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardReversal::NetworkIdentifiers, Increase::Util::AnyHash), + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardReversal::NetworkIdentifiers, + Increase::Internal::AnyHash + ), pending_transaction_id: T.nilable(String), reversal_amount: Integer, reversal_reason: T.nilable(Increase::Models::CardPayment::Element::CardReversal::ReversalReason::OrSymbol), @@ -6249,7 +6297,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardReversal::Currency) } @@ -6281,7 +6329,7 @@ module Increase # The card network used to process this card authorization. module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardReversal::Network) } @@ -6296,7 +6344,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -6341,7 +6389,7 @@ module Increase # Why this reversal was initiated. module ReversalReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardReversal::ReversalReason) } @@ -6387,7 +6435,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_reversal`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardReversal::Type) } OrSymbol = @@ -6402,7 +6450,7 @@ module Increase end end - class CardSettlement < Increase::BaseModel + class CardSettlement < Increase::Internal::Type::BaseModel # The Card Settlement identifier. sig { returns(String) } attr_accessor :id @@ -6429,7 +6477,7 @@ module Increase sig do params( cashback: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardSettlement::Cashback, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardSettlement::Cashback, Increase::Internal::AnyHash) ) ) .void @@ -6448,7 +6496,7 @@ module Increase sig do params( interchange: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardSettlement::Interchange, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardSettlement::Interchange, Increase::Internal::AnyHash) ) ) .void @@ -6490,7 +6538,10 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardSettlement::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardSettlement::NetworkIdentifiers, + Increase::Internal::AnyHash + ) ) .void end @@ -6517,7 +6568,10 @@ module Increase sig do params( purchase_details: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails, Increase::Util::AnyHash) + T.any( + Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails, + Increase::Internal::AnyHash + ) ) ) .void @@ -6545,11 +6599,11 @@ module Increase card_authorization: T.nilable(String), card_payment_id: String, cashback: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardSettlement::Cashback, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardSettlement::Cashback, Increase::Internal::AnyHash) ), currency: Increase::Models::CardPayment::Element::CardSettlement::Currency::OrSymbol, interchange: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardSettlement::Interchange, Increase::Util::AnyHash) + T.any(Increase::Models::CardPayment::Element::CardSettlement::Interchange, Increase::Internal::AnyHash) ), merchant_acceptor_id: String, merchant_category_code: String, @@ -6558,12 +6612,18 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardSettlement::NetworkIdentifiers, Increase::Util::AnyHash), + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardSettlement::NetworkIdentifiers, + Increase::Internal::AnyHash + ), pending_transaction_id: T.nilable(String), presentment_amount: Integer, presentment_currency: String, purchase_details: T.nilable( - T.any(Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails, Increase::Util::AnyHash) + T.any( + Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails, + Increase::Internal::AnyHash + ) ), transaction_id: String, type: Increase::Models::CardPayment::Element::CardSettlement::Type::OrSymbol @@ -6626,7 +6686,7 @@ module Increase def to_hash end - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # 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 # negative number if it will be debited (e.g., refunds). @@ -6663,7 +6723,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardSettlement::Cashback::Currency) } @@ -6714,7 +6774,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's settlement currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardSettlement::Currency) } @@ -6744,7 +6804,7 @@ module Increase end end - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a # negative number if it is debited (e.g., refunds). @@ -6788,7 +6848,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardSettlement::Interchange::Currency) } @@ -6836,7 +6896,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # A network assigned business ID that identifies the acquirer that processed this # transaction. sig { returns(String) } @@ -6877,7 +6937,7 @@ module Increase end end - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # Fields specific to car rentals. sig { returns(T.nilable(Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::CarRental)) } attr_reader :car_rental @@ -6887,7 +6947,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -6917,7 +6977,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -6957,7 +7017,7 @@ module Increase travel: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -6972,7 +7032,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), customer_reference_identifier: T.nilable(String), @@ -6981,7 +7041,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), national_tax_amount: T.nilable(Integer), @@ -6993,7 +7053,7 @@ module Increase travel: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -7035,7 +7095,7 @@ module Increase def to_hash end - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } attr_accessor :car_class_code @@ -7198,7 +7258,7 @@ module Increase # Additional charges (gas, late fee, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -7270,7 +7330,7 @@ module Increase # An indicator that the cardholder is being billed for a reserved vehicle that was # not actually rented (that is, a "no-show" charge). module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -7312,7 +7372,7 @@ module Increase end end - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # Date the customer checked in. sig { returns(T.nilable(Date)) } attr_accessor :check_in_date @@ -7474,7 +7534,7 @@ module Increase # Additional charges (phone, late check-out, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -7553,7 +7613,7 @@ module Increase # Indicator that the cardholder is being billed for a reserved room that was not # actually used. module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -7597,7 +7657,7 @@ module Increase # The format of the purchase identifier. module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -7659,7 +7719,7 @@ module Increase end end - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # Ancillary purchases in addition to the airfare. sig do returns( @@ -7673,7 +7733,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -7755,7 +7815,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), computerized_reservation_system: T.nilable(String), @@ -7778,7 +7838,7 @@ module Increase T::Array[ T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ] ) @@ -7831,7 +7891,7 @@ module Increase def to_hash end - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the # ticket document number for the other purchase. @@ -7875,7 +7935,7 @@ module Increase services: T::Array[ T.any( Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ], ticket_document_number: T.nilable(String) @@ -7910,7 +7970,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -7965,7 +8025,7 @@ module Increase end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # Category of the ancillary service. sig do returns( @@ -8008,7 +8068,7 @@ module Increase # Category of the ancillary service. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -8207,7 +8267,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -8278,7 +8338,7 @@ module Increase # Indicates whether this ticket is non-refundable. module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -8321,7 +8381,7 @@ module Increase # Indicates why a ticket was changed. module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -8369,7 +8429,7 @@ module Increase end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # Carrier code (e.g., United Airlines, Jet Blue, etc.). sig { returns(T.nilable(String)) } attr_accessor :carrier_code @@ -8443,7 +8503,7 @@ module Increase # Indicates whether a stopover is allowed on this ticket. module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -8497,7 +8557,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_settlement`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardSettlement::Type) } @@ -8513,7 +8573,7 @@ module Increase end end - class CardValidation < Increase::BaseModel + class CardValidation < Increase::Internal::Type::BaseModel # The Card Validation identifier. sig { returns(String) } attr_accessor :id @@ -8574,7 +8634,7 @@ module Increase sig do params( - network_details: T.any(Increase::Models::CardPayment::Element::CardValidation::NetworkDetails, Increase::Util::AnyHash) + network_details: T.any(Increase::Models::CardPayment::Element::CardValidation::NetworkDetails, Increase::Internal::AnyHash) ) .void end @@ -8586,7 +8646,10 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardValidation::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardValidation::NetworkIdentifiers, + Increase::Internal::AnyHash + ) ) .void end @@ -8623,7 +8686,7 @@ module Increase sig do params( - verification: T.any(Increase::Models::CardPayment::Element::CardValidation::Verification, Increase::Util::AnyHash) + verification: T.any(Increase::Models::CardPayment::Element::CardValidation::Verification, Increase::Internal::AnyHash) ) .void end @@ -8647,14 +8710,17 @@ module Increase merchant_descriptor: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_details: T.any(Increase::Models::CardPayment::Element::CardValidation::NetworkDetails, Increase::Util::AnyHash), - network_identifiers: T.any(Increase::Models::CardPayment::Element::CardValidation::NetworkIdentifiers, Increase::Util::AnyHash), + network_details: T.any(Increase::Models::CardPayment::Element::CardValidation::NetworkDetails, Increase::Internal::AnyHash), + network_identifiers: T.any( + Increase::Models::CardPayment::Element::CardValidation::NetworkIdentifiers, + Increase::Internal::AnyHash + ), network_risk_score: T.nilable(Integer), physical_card_id: T.nilable(String), real_time_decision_id: T.nilable(String), terminal_id: T.nilable(String), type: Increase::Models::CardPayment::Element::CardValidation::Type::OrSymbol, - verification: T.any(Increase::Models::CardPayment::Element::CardValidation::Verification, Increase::Util::AnyHash) + verification: T.any(Increase::Models::CardPayment::Element::CardValidation::Verification, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -8715,7 +8781,7 @@ module Increase # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardValidation::Actioner) } @@ -8740,7 +8806,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardValidation::Currency) } @@ -8770,7 +8836,7 @@ module Increase end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. sig { returns(Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Category::TaggedSymbol) } attr_accessor :category @@ -8784,7 +8850,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -8799,7 +8865,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -8822,7 +8888,7 @@ module Increase # The payment network used to process this card authorization. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Category) } @@ -8852,7 +8918,7 @@ module Increase end end - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. @@ -8932,7 +8998,7 @@ module Increase # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -9018,7 +9084,7 @@ module Increase # The method used to enter the cardholder's primary account number and card # expiration date. module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -9118,7 +9184,7 @@ module Increase # Only present when `actioner: network`. Describes why a card authorization was # approved or declined by Visa through stand-in processing. module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -9196,7 +9262,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -9242,7 +9308,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_validation`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::CardValidation::Type) } @@ -9257,7 +9323,7 @@ module Increase end end - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. sig { returns(Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode) } @@ -9267,7 +9333,7 @@ module Increase params( card_verification_code: T.any( Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -9283,7 +9349,7 @@ module Increase params( cardholder_address: T.any( Increase::Models::CardPayment::Element::CardValidation::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -9295,11 +9361,11 @@ module Increase params( card_verification_code: T.any( Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), cardholder_address: T.any( Increase::Models::CardPayment::Element::CardValidation::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -9319,7 +9385,7 @@ module Increase def to_hash end - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # The result of verifying the Card Verification Code. sig do returns( @@ -9352,7 +9418,7 @@ module Increase # The result of verifying the Card Verification Code. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -9401,7 +9467,7 @@ module Increase end end - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } attr_accessor :actual_line1 @@ -9465,7 +9531,7 @@ module Increase # The address verification result returned to the card network. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -9540,7 +9606,7 @@ module Increase # 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. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Element::Category) } OrSymbol = @@ -9589,7 +9655,7 @@ module Increase end end - class State < Increase::BaseModel + class State < Increase::Internal::Type::BaseModel # The total authorized amount in the minor unit of the transaction's currency. For # dollars, for example, this is cents. sig { returns(Integer) } @@ -9654,7 +9720,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_payment`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPayment::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CardPayment::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/card_payment_list_params.rbi b/rbi/lib/increase/models/card_payment_list_params.rbi index 6452630a..eae9c65b 100644 --- a/rbi/lib/increase/models/card_payment_list_params.rbi +++ b/rbi/lib/increase/models/card_payment_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CardPaymentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPaymentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Card Payments to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -23,7 +23,10 @@ module Increase sig { returns(T.nilable(Increase::Models::CardPaymentListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::CardPaymentListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig do + params(created_at: T.any(Increase::Models::CardPaymentListParams::CreatedAt, Increase::Internal::AnyHash)) + .void + end attr_writer :created_at # Return the page of entries after this one. @@ -45,10 +48,10 @@ module Increase params( account_id: String, card_id: String, - created_at: T.any(Increase::Models::CardPaymentListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardPaymentListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -78,7 +81,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/card_payment_retrieve_params.rbi b/rbi/lib/increase/models/card_payment_retrieve_params.rbi index ad79d39f..97322173 100644 --- a/rbi/lib/increase/models/card_payment_retrieve_params.rbi +++ b/rbi/lib/increase/models/card_payment_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CardPaymentRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPaymentRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/card_purchase_supplement.rbi b/rbi/lib/increase/models/card_purchase_supplement.rbi index 5a202b7e..36702862 100644 --- a/rbi/lib/increase/models/card_purchase_supplement.rbi +++ b/rbi/lib/increase/models/card_purchase_supplement.rbi @@ -2,7 +2,7 @@ module Increase module Models - class CardPurchaseSupplement < Increase::BaseModel + class CardPurchaseSupplement < Increase::Internal::Type::BaseModel # The Card Purchase Supplement identifier. sig { returns(String) } attr_accessor :id @@ -17,7 +17,7 @@ module Increase sig do params( - invoice: T.nilable(T.any(Increase::Models::CardPurchaseSupplement::Invoice, Increase::Util::AnyHash)) + invoice: T.nilable(T.any(Increase::Models::CardPurchaseSupplement::Invoice, Increase::Internal::AnyHash)) ) .void end @@ -42,8 +42,10 @@ module Increase params( id: String, card_payment_id: T.nilable(String), - invoice: T.nilable(T.any(Increase::Models::CardPurchaseSupplement::Invoice, Increase::Util::AnyHash)), - line_items: T.nilable(T::Array[T.any(Increase::Models::CardPurchaseSupplement::LineItem, Increase::Util::AnyHash)]), + invoice: T.nilable(T.any(Increase::Models::CardPurchaseSupplement::Invoice, Increase::Internal::AnyHash)), + line_items: T.nilable( + T::Array[T.any(Increase::Models::CardPurchaseSupplement::LineItem, Increase::Internal::AnyHash)] + ), transaction_id: String, type: Increase::Models::CardPurchaseSupplement::Type::OrSymbol ) @@ -68,7 +70,7 @@ module Increase def to_hash end - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel # Discount given to cardholder. sig { returns(T.nilable(Integer)) } attr_accessor :discount_amount @@ -205,7 +207,7 @@ module Increase # Indicates how the merchant applied the discount. module DiscountTreatmentCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPurchaseSupplement::Invoice::DiscountTreatmentCode) } @@ -249,7 +251,7 @@ module Increase # Indicates how the merchant applied taxes. module TaxTreatments - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPurchaseSupplement::Invoice::TaxTreatments) } @@ -294,7 +296,7 @@ module Increase end end - class LineItem < Increase::BaseModel + class LineItem < Increase::Internal::Type::BaseModel # The Card Purchase Supplement Line Item identifier. sig { returns(String) } attr_accessor :id @@ -441,7 +443,7 @@ module Increase # Indicates the type of line item. module DetailIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPurchaseSupplement::LineItem::DetailIndicator) } @@ -470,7 +472,7 @@ module Increase # Indicates how the merchant applied the discount for this specific line item. module DiscountTreatmentCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPurchaseSupplement::LineItem::DiscountTreatmentCode) } @@ -516,7 +518,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_purchase_supplement`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardPurchaseSupplement::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/card_purchase_supplement_list_params.rbi b/rbi/lib/increase/models/card_purchase_supplement_list_params.rbi index c0fd5b72..9124b55e 100644 --- a/rbi/lib/increase/models/card_purchase_supplement_list_params.rbi +++ b/rbi/lib/increase/models/card_purchase_supplement_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CardPurchaseSupplementListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPurchaseSupplementListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Card Purchase Supplements to ones belonging to the specified Card # Payment. @@ -19,7 +19,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::CardPurchaseSupplementListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::CardPurchaseSupplementListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -43,10 +43,10 @@ module Increase sig do params( card_payment_id: String, - created_at: T.any(Increase::Models::CardPurchaseSupplementListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardPurchaseSupplementListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -68,7 +68,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/card_purchase_supplement_retrieve_params.rbi b/rbi/lib/increase/models/card_purchase_supplement_retrieve_params.rbi index fc13f9b3..4ed88db5 100644 --- a/rbi/lib/increase/models/card_purchase_supplement_retrieve_params.rbi +++ b/rbi/lib/increase/models/card_purchase_supplement_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CardPurchaseSupplementRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPurchaseSupplementRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/card_retrieve_params.rbi b/rbi/lib/increase/models/card_retrieve_params.rbi index 2b2ee6c1..8a0da60a 100644 --- a/rbi/lib/increase/models/card_retrieve_params.rbi +++ b/rbi/lib/increase/models/card_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CardRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/card_update_params.rbi b/rbi/lib/increase/models/card_update_params.rbi index f69cc714..f68c495f 100644 --- a/rbi/lib/increase/models/card_update_params.rbi +++ b/rbi/lib/increase/models/card_update_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CardUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The card's updated billing address. sig { returns(T.nilable(Increase::Models::CardUpdateParams::BillingAddress)) } @@ -12,7 +12,7 @@ module Increase sig do params( - billing_address: T.any(Increase::Models::CardUpdateParams::BillingAddress, Increase::Util::AnyHash) + billing_address: T.any(Increase::Models::CardUpdateParams::BillingAddress, Increase::Internal::AnyHash) ) .void end @@ -32,7 +32,9 @@ module Increase attr_reader :digital_wallet sig do - params(digital_wallet: T.any(Increase::Models::CardUpdateParams::DigitalWallet, Increase::Util::AnyHash)) + params( + digital_wallet: T.any(Increase::Models::CardUpdateParams::DigitalWallet, Increase::Internal::AnyHash) + ) .void end attr_writer :digital_wallet @@ -54,12 +56,12 @@ module Increase sig do params( - billing_address: T.any(Increase::Models::CardUpdateParams::BillingAddress, Increase::Util::AnyHash), + billing_address: T.any(Increase::Models::CardUpdateParams::BillingAddress, Increase::Internal::AnyHash), description: String, - digital_wallet: T.any(Increase::Models::CardUpdateParams::DigitalWallet, Increase::Util::AnyHash), + digital_wallet: T.any(Increase::Models::CardUpdateParams::DigitalWallet, Increase::Internal::AnyHash), entity_id: String, status: Increase::Models::CardUpdateParams::Status::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -89,7 +91,7 @@ module Increase def to_hash end - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel # The city of the billing address. sig { returns(String) } attr_accessor :city @@ -128,7 +130,7 @@ module Increase end end - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel # The digital card profile assigned to this digital card. sig { returns(T.nilable(String)) } attr_reader :digital_card_profile_id @@ -168,7 +170,7 @@ module Increase # The status to update the Card with. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CardUpdateParams::Status) } OrSymbol = diff --git a/rbi/lib/increase/models/check_deposit.rbi b/rbi/lib/increase/models/check_deposit.rbi index 2158073b..be65ee0b 100644 --- a/rbi/lib/increase/models/check_deposit.rbi +++ b/rbi/lib/increase/models/check_deposit.rbi @@ -2,7 +2,7 @@ module Increase module Models - class CheckDeposit < Increase::BaseModel + class CheckDeposit < Increase::Internal::Type::BaseModel # The deposit's identifier. sig { returns(String) } attr_accessor :id @@ -31,7 +31,7 @@ module Increase sig do params( - deposit_acceptance: T.nilable(T.any(Increase::Models::CheckDeposit::DepositAcceptance, Increase::Util::AnyHash)) + deposit_acceptance: T.nilable(T.any(Increase::Models::CheckDeposit::DepositAcceptance, Increase::Internal::AnyHash)) ) .void end @@ -44,7 +44,7 @@ module Increase sig do params( - deposit_rejection: T.nilable(T.any(Increase::Models::CheckDeposit::DepositRejection, Increase::Util::AnyHash)) + deposit_rejection: T.nilable(T.any(Increase::Models::CheckDeposit::DepositRejection, Increase::Internal::AnyHash)) ) .void end @@ -57,7 +57,7 @@ module Increase sig do params( - deposit_return: T.nilable(T.any(Increase::Models::CheckDeposit::DepositReturn, Increase::Util::AnyHash)) + deposit_return: T.nilable(T.any(Increase::Models::CheckDeposit::DepositReturn, Increase::Internal::AnyHash)) ) .void end @@ -70,7 +70,7 @@ module Increase sig do params( - deposit_submission: T.nilable(T.any(Increase::Models::CheckDeposit::DepositSubmission, Increase::Util::AnyHash)) + deposit_submission: T.nilable(T.any(Increase::Models::CheckDeposit::DepositSubmission, Increase::Internal::AnyHash)) ) .void end @@ -97,7 +97,7 @@ module Increase sig do params( - inbound_funds_hold: T.nilable(T.any(Increase::Models::CheckDeposit::InboundFundsHold, Increase::Util::AnyHash)) + inbound_funds_hold: T.nilable(T.any(Increase::Models::CheckDeposit::InboundFundsHold, Increase::Internal::AnyHash)) ) .void end @@ -134,14 +134,14 @@ module Increase amount: Integer, back_image_file_id: T.nilable(String), created_at: Time, - deposit_acceptance: T.nilable(T.any(Increase::Models::CheckDeposit::DepositAcceptance, Increase::Util::AnyHash)), - deposit_rejection: T.nilable(T.any(Increase::Models::CheckDeposit::DepositRejection, Increase::Util::AnyHash)), - deposit_return: T.nilable(T.any(Increase::Models::CheckDeposit::DepositReturn, Increase::Util::AnyHash)), - deposit_submission: T.nilable(T.any(Increase::Models::CheckDeposit::DepositSubmission, Increase::Util::AnyHash)), + deposit_acceptance: T.nilable(T.any(Increase::Models::CheckDeposit::DepositAcceptance, Increase::Internal::AnyHash)), + deposit_rejection: T.nilable(T.any(Increase::Models::CheckDeposit::DepositRejection, Increase::Internal::AnyHash)), + deposit_return: T.nilable(T.any(Increase::Models::CheckDeposit::DepositReturn, Increase::Internal::AnyHash)), + deposit_submission: T.nilable(T.any(Increase::Models::CheckDeposit::DepositSubmission, Increase::Internal::AnyHash)), description: T.nilable(String), front_image_file_id: String, idempotency_key: T.nilable(String), - inbound_funds_hold: T.nilable(T.any(Increase::Models::CheckDeposit::InboundFundsHold, Increase::Util::AnyHash)), + inbound_funds_hold: T.nilable(T.any(Increase::Models::CheckDeposit::InboundFundsHold, Increase::Internal::AnyHash)), inbound_mail_item_id: T.nilable(String), lockbox_id: T.nilable(String), status: Increase::Models::CheckDeposit::Status::OrSymbol, @@ -200,7 +200,7 @@ module Increase def to_hash end - class DepositAcceptance < Increase::BaseModel + class DepositAcceptance < Increase::Internal::Type::BaseModel # The account number printed on the check. sig { returns(String) } attr_accessor :account_number @@ -278,7 +278,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::DepositAcceptance::Currency) } @@ -309,7 +309,7 @@ module Increase end end - class DepositRejection < Increase::BaseModel + class DepositRejection < Increase::Internal::Type::BaseModel # The rejected amount in the minor unit of check's currency. For dollars, for # example, this is cents. sig { returns(Integer) } @@ -372,7 +372,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::DepositRejection::Currency) } OrSymbol = @@ -403,7 +403,7 @@ module Increase # Why the check deposit was rejected. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::DepositRejection::Reason) } OrSymbol = @@ -463,7 +463,7 @@ module Increase end end - class DepositReturn < Increase::BaseModel + class DepositReturn < Increase::Internal::Type::BaseModel # The returned amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -527,7 +527,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::DepositReturn::Currency) } OrSymbol = @@ -559,7 +559,7 @@ module Increase # Why this check was returned by the bank holding the account it was drawn # against. module ReturnReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::DepositReturn::ReturnReason) } @@ -691,7 +691,7 @@ module Increase end end - class DepositSubmission < Increase::BaseModel + class DepositSubmission < Increase::Internal::Type::BaseModel # The ID for the File containing the check back image that was submitted to the # Check21 network. sig { returns(String) } @@ -721,7 +721,7 @@ module Increase end end - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel # The Inbound Funds Hold identifier. sig { returns(String) } attr_accessor :id @@ -821,7 +821,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::InboundFundsHold::Currency) } OrSymbol = @@ -852,7 +852,7 @@ module Increase # The status of the hold. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::InboundFundsHold::Status) } OrSymbol = @@ -872,7 +872,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_funds_hold`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::InboundFundsHold::Type) } OrSymbol = @@ -889,7 +889,7 @@ module Increase # The status of the Check Deposit. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CheckDeposit::Status::TaggedSymbol) } @@ -914,7 +914,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `check_deposit`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckDeposit::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CheckDeposit::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/check_deposit_create_params.rbi b/rbi/lib/increase/models/check_deposit_create_params.rbi index a9f99173..45ca7266 100644 --- a/rbi/lib/increase/models/check_deposit_create_params.rbi +++ b/rbi/lib/increase/models/check_deposit_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CheckDepositCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier for the Account to deposit the check in. sig { returns(String) } @@ -36,7 +36,7 @@ module Increase back_image_file_id: String, front_image_file_id: String, description: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/check_deposit_list_params.rbi b/rbi/lib/increase/models/check_deposit_list_params.rbi index 0a876314..77bc9c34 100644 --- a/rbi/lib/increase/models/check_deposit_list_params.rbi +++ b/rbi/lib/increase/models/check_deposit_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CheckDepositListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Check Deposits to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -17,7 +17,9 @@ module Increase attr_reader :created_at sig do - params(created_at: T.any(Increase::Models::CheckDepositListParams::CreatedAt, Increase::Util::AnyHash)) + params( + created_at: T.any(Increase::Models::CheckDepositListParams::CreatedAt, Increase::Internal::AnyHash) + ) .void end attr_writer :created_at @@ -50,11 +52,11 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::CheckDepositListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CheckDepositListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +86,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/check_deposit_retrieve_params.rbi b/rbi/lib/increase/models/check_deposit_retrieve_params.rbi index 217bf8e9..a9890921 100644 --- a/rbi/lib/increase/models/check_deposit_retrieve_params.rbi +++ b/rbi/lib/increase/models/check_deposit_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CheckDepositRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/check_transfer.rbi b/rbi/lib/increase/models/check_transfer.rbi index 5054cd40..3d0a880e 100644 --- a/rbi/lib/increase/models/check_transfer.rbi +++ b/rbi/lib/increase/models/check_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class CheckTransfer < Increase::BaseModel + class CheckTransfer < Increase::Internal::Type::BaseModel # The Check transfer's identifier. sig { returns(String) } attr_accessor :id @@ -24,7 +24,10 @@ module Increase sig { returns(T.nilable(Increase::Models::CheckTransfer::Approval)) } attr_reader :approval - sig { params(approval: T.nilable(T.any(Increase::Models::CheckTransfer::Approval, Increase::Util::AnyHash))).void } + sig do + params(approval: T.nilable(T.any(Increase::Models::CheckTransfer::Approval, Increase::Internal::AnyHash))) + .void + end attr_writer :approval # If the Check Transfer was successfully deposited, this will contain the @@ -39,7 +42,7 @@ module Increase sig do params( - cancellation: T.nilable(T.any(Increase::Models::CheckTransfer::Cancellation, Increase::Util::AnyHash)) + cancellation: T.nilable(T.any(Increase::Models::CheckTransfer::Cancellation, Increase::Internal::AnyHash)) ) .void end @@ -59,7 +62,9 @@ module Increase attr_reader :created_by sig do - params(created_by: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy, Increase::Util::AnyHash))) + params( + created_by: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy, Increase::Internal::AnyHash)) + ) .void end attr_writer :created_by @@ -84,7 +89,10 @@ module Increase sig { returns(T.nilable(Increase::Models::CheckTransfer::Mailing)) } attr_reader :mailing - sig { params(mailing: T.nilable(T.any(Increase::Models::CheckTransfer::Mailing, Increase::Util::AnyHash))).void } + sig do + params(mailing: T.nilable(T.any(Increase::Models::CheckTransfer::Mailing, Increase::Internal::AnyHash))) + .void + end attr_writer :mailing # The ID for the pending transaction representing the transfer. A pending @@ -101,7 +109,7 @@ module Increase sig do params( - physical_check: T.nilable(T.any(Increase::Models::CheckTransfer::PhysicalCheck, Increase::Util::AnyHash)) + physical_check: T.nilable(T.any(Increase::Models::CheckTransfer::PhysicalCheck, Increase::Internal::AnyHash)) ) .void end @@ -127,7 +135,7 @@ module Increase sig do params( - stop_payment_request: T.nilable(T.any(Increase::Models::CheckTransfer::StopPaymentRequest, Increase::Util::AnyHash)) + stop_payment_request: T.nilable(T.any(Increase::Models::CheckTransfer::StopPaymentRequest, Increase::Internal::AnyHash)) ) .void end @@ -138,7 +146,9 @@ module Increase attr_reader :submission sig do - params(submission: T.nilable(T.any(Increase::Models::CheckTransfer::Submission, Increase::Util::AnyHash))) + params( + submission: T.nilable(T.any(Increase::Models::CheckTransfer::Submission, Increase::Internal::AnyHash)) + ) .void end attr_writer :submission @@ -150,7 +160,7 @@ module Increase sig do params( - third_party: T.nilable(T.any(Increase::Models::CheckTransfer::ThirdParty, Increase::Util::AnyHash)) + third_party: T.nilable(T.any(Increase::Models::CheckTransfer::ThirdParty, Increase::Internal::AnyHash)) ) .void end @@ -169,24 +179,24 @@ module Increase account_id: String, account_number: String, amount: Integer, - approval: T.nilable(T.any(Increase::Models::CheckTransfer::Approval, Increase::Util::AnyHash)), + approval: T.nilable(T.any(Increase::Models::CheckTransfer::Approval, Increase::Internal::AnyHash)), approved_inbound_check_deposit_id: T.nilable(String), - cancellation: T.nilable(T.any(Increase::Models::CheckTransfer::Cancellation, Increase::Util::AnyHash)), + cancellation: T.nilable(T.any(Increase::Models::CheckTransfer::Cancellation, Increase::Internal::AnyHash)), check_number: String, created_at: Time, - created_by: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy, Increase::Util::AnyHash)), + created_by: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy, Increase::Internal::AnyHash)), currency: Increase::Models::CheckTransfer::Currency::OrSymbol, fulfillment_method: Increase::Models::CheckTransfer::FulfillmentMethod::OrSymbol, idempotency_key: T.nilable(String), - mailing: T.nilable(T.any(Increase::Models::CheckTransfer::Mailing, Increase::Util::AnyHash)), + mailing: T.nilable(T.any(Increase::Models::CheckTransfer::Mailing, Increase::Internal::AnyHash)), pending_transaction_id: T.nilable(String), - physical_check: T.nilable(T.any(Increase::Models::CheckTransfer::PhysicalCheck, Increase::Util::AnyHash)), + physical_check: T.nilable(T.any(Increase::Models::CheckTransfer::PhysicalCheck, Increase::Internal::AnyHash)), routing_number: String, source_account_number_id: T.nilable(String), status: Increase::Models::CheckTransfer::Status::OrSymbol, - stop_payment_request: T.nilable(T.any(Increase::Models::CheckTransfer::StopPaymentRequest, Increase::Util::AnyHash)), - submission: T.nilable(T.any(Increase::Models::CheckTransfer::Submission, Increase::Util::AnyHash)), - third_party: T.nilable(T.any(Increase::Models::CheckTransfer::ThirdParty, Increase::Util::AnyHash)), + stop_payment_request: T.nilable(T.any(Increase::Models::CheckTransfer::StopPaymentRequest, Increase::Internal::AnyHash)), + submission: T.nilable(T.any(Increase::Models::CheckTransfer::Submission, Increase::Internal::AnyHash)), + third_party: T.nilable(T.any(Increase::Models::CheckTransfer::ThirdParty, Increase::Internal::AnyHash)), type: Increase::Models::CheckTransfer::Type::OrSymbol ) .returns(T.attached_class) @@ -251,7 +261,7 @@ module Increase def to_hash end - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. sig { returns(Time) } @@ -273,7 +283,7 @@ module Increase end end - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. sig { returns(Time) } @@ -295,14 +305,14 @@ module Increase end end - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::Models::CheckTransfer::CreatedBy::APIKey)) } attr_reader :api_key sig do params( - api_key: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)) + api_key: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)) ) .void end @@ -318,7 +328,9 @@ module Increase sig do params( - oauth_application: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)) + oauth_application: T.nilable( + T.any(Increase::Models::CheckTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash) + ) ) .void end @@ -329,7 +341,9 @@ module Increase attr_reader :user sig do - params(user: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::User, Increase::Util::AnyHash))) + params( + user: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::User, Increase::Internal::AnyHash)) + ) .void end attr_writer :user @@ -337,10 +351,12 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( - api_key: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)), + api_key: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)), category: Increase::Models::CheckTransfer::CreatedBy::Category::OrSymbol, - oauth_application: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)), - user: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::User, Increase::Util::AnyHash)) + oauth_application: T.nilable( + T.any(Increase::Models::CheckTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash) + ), + user: T.nilable(T.any(Increase::Models::CheckTransfer::CreatedBy::User, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -361,7 +377,7 @@ module Increase def to_hash end - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # The description set for the API key when it was created. sig { returns(T.nilable(String)) } attr_accessor :description @@ -378,7 +394,7 @@ module Increase # The type of object that created this transfer. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::CreatedBy::Category) } OrSymbol = @@ -399,7 +415,7 @@ module Increase end end - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # The name of the OAuth Application. sig { returns(String) } attr_accessor :name @@ -414,7 +430,7 @@ module Increase end end - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # The email address of the User. sig { returns(String) } attr_accessor :email @@ -433,7 +449,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::Currency) } OrSymbol = @@ -464,7 +480,7 @@ module Increase # Whether Increase will print and mail the check or if you will do it yourself. module FulfillmentMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::FulfillmentMethod) } OrSymbol = @@ -481,7 +497,7 @@ module Increase end end - class Mailing < Increase::BaseModel + class Mailing < Increase::Internal::Type::BaseModel # The ID of the file corresponding to an image of the check that was mailed, if # available. sig { returns(T.nilable(String)) } @@ -512,14 +528,14 @@ module Increase end end - class PhysicalCheck < Increase::BaseModel + class PhysicalCheck < Increase::Internal::Type::BaseModel # Details for where Increase will mail the check. sig { returns(Increase::Models::CheckTransfer::PhysicalCheck::MailingAddress) } attr_reader :mailing_address sig do params( - mailing_address: T.any(Increase::Models::CheckTransfer::PhysicalCheck::MailingAddress, Increase::Util::AnyHash) + mailing_address: T.any(Increase::Models::CheckTransfer::PhysicalCheck::MailingAddress, Increase::Internal::AnyHash) ) .void end @@ -543,7 +559,9 @@ module Increase sig do params( - return_address: T.nilable(T.any(Increase::Models::CheckTransfer::PhysicalCheck::ReturnAddress, Increase::Util::AnyHash)) + return_address: T.nilable( + T.any(Increase::Models::CheckTransfer::PhysicalCheck::ReturnAddress, Increase::Internal::AnyHash) + ) ) .void end @@ -566,14 +584,16 @@ module Increase # be present if and only if `fulfillment_method` is equal to `physical_check`. sig do params( - mailing_address: T.any(Increase::Models::CheckTransfer::PhysicalCheck::MailingAddress, Increase::Util::AnyHash), + mailing_address: T.any(Increase::Models::CheckTransfer::PhysicalCheck::MailingAddress, Increase::Internal::AnyHash), memo: T.nilable(String), note: T.nilable(String), recipient_name: String, - return_address: T.nilable(T.any(Increase::Models::CheckTransfer::PhysicalCheck::ReturnAddress, Increase::Util::AnyHash)), + return_address: T.nilable( + T.any(Increase::Models::CheckTransfer::PhysicalCheck::ReturnAddress, Increase::Internal::AnyHash) + ), shipping_method: T.nilable(Increase::Models::CheckTransfer::PhysicalCheck::ShippingMethod::OrSymbol), signature_text: T.nilable(String), - tracking_updates: T::Array[T.any(Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate, Increase::Util::AnyHash)] + tracking_updates: T::Array[T.any(Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate, Increase::Internal::AnyHash)] ) .returns(T.attached_class) end @@ -607,7 +627,7 @@ module Increase def to_hash end - class MailingAddress < Increase::BaseModel + class MailingAddress < Increase::Internal::Type::BaseModel # The city of the check's destination. sig { returns(T.nilable(String)) } attr_accessor :city @@ -664,7 +684,7 @@ module Increase end end - class ReturnAddress < Increase::BaseModel + class ReturnAddress < Increase::Internal::Type::BaseModel # The city of the check's destination. sig { returns(T.nilable(String)) } attr_accessor :city @@ -723,7 +743,7 @@ module Increase # The shipping method for the check. module ShippingMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::PhysicalCheck::ShippingMethod) } @@ -743,7 +763,7 @@ module Increase end end - class TrackingUpdate < Increase::BaseModel + class TrackingUpdate < Increase::Internal::Type::BaseModel # The type of tracking event. sig { returns(Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate::Category::TaggedSymbol) } attr_accessor :category @@ -783,7 +803,7 @@ module Increase # The type of tracking event. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate::Category) } @@ -830,7 +850,7 @@ module Increase # The lifecycle status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CheckTransfer::Status::TaggedSymbol) } @@ -870,7 +890,7 @@ module Increase end end - class StopPaymentRequest < Increase::BaseModel + class StopPaymentRequest < Increase::Internal::Type::BaseModel # The reason why this transfer was stopped. sig { returns(Increase::Models::CheckTransfer::StopPaymentRequest::Reason::TaggedSymbol) } attr_accessor :reason @@ -918,7 +938,7 @@ module Increase # The reason why this transfer was stopped. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::StopPaymentRequest::Reason) } @@ -948,7 +968,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `check_transfer_stop_payment_request`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::StopPaymentRequest::Type) } OrSymbol = @@ -966,7 +986,7 @@ module Increase end end - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # When this check transfer was submitted to our check printer. sig { returns(Time) } attr_accessor :submitted_at @@ -981,7 +1001,7 @@ module Increase end end - class ThirdParty < Increase::BaseModel + class ThirdParty < Increase::Internal::Type::BaseModel # The check number that you will print on the check. sig { returns(T.nilable(String)) } attr_accessor :check_number @@ -1006,7 +1026,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `check_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransfer::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::CheckTransfer::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/check_transfer_approve_params.rbi b/rbi/lib/increase/models/check_transfer_approve_params.rbi index 252d64c7..e7e4d27c 100644 --- a/rbi/lib/increase/models/check_transfer_approve_params.rbi +++ b/rbi/lib/increase/models/check_transfer_approve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CheckTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/check_transfer_cancel_params.rbi b/rbi/lib/increase/models/check_transfer_cancel_params.rbi index d5feb3ca..cf76bfc5 100644 --- a/rbi/lib/increase/models/check_transfer_cancel_params.rbi +++ b/rbi/lib/increase/models/check_transfer_cancel_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CheckTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/check_transfer_create_params.rbi b/rbi/lib/increase/models/check_transfer_create_params.rbi index 75d1efe2..45e78c8e 100644 --- a/rbi/lib/increase/models/check_transfer_create_params.rbi +++ b/rbi/lib/increase/models/check_transfer_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CheckTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier for the account that will send the transfer. sig { returns(String) } @@ -31,7 +31,7 @@ module Increase sig do params( - physical_check: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck, Increase::Util::AnyHash) + physical_check: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck, Increase::Internal::AnyHash) ) .void end @@ -52,7 +52,7 @@ module Increase sig do params( - third_party: T.any(Increase::Models::CheckTransferCreateParams::ThirdParty, Increase::Util::AnyHash) + third_party: T.any(Increase::Models::CheckTransferCreateParams::ThirdParty, Increase::Internal::AnyHash) ) .void end @@ -64,10 +64,10 @@ module Increase amount: Integer, fulfillment_method: Increase::Models::CheckTransferCreateParams::FulfillmentMethod::OrSymbol, source_account_number_id: String, - physical_check: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck, Increase::Util::AnyHash), + physical_check: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck, Increase::Internal::AnyHash), require_approval: T::Boolean, - third_party: T.any(Increase::Models::CheckTransferCreateParams::ThirdParty, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + third_party: T.any(Increase::Models::CheckTransferCreateParams::ThirdParty, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -103,7 +103,7 @@ module Increase # Whether Increase will print and mail the check or if you will do it yourself. module FulfillmentMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransferCreateParams::FulfillmentMethod) } @@ -123,14 +123,17 @@ module Increase end end - class PhysicalCheck < Increase::BaseModel + class PhysicalCheck < Increase::Internal::Type::BaseModel # Details for where Increase will mail the check. sig { returns(Increase::Models::CheckTransferCreateParams::PhysicalCheck::MailingAddress) } attr_reader :mailing_address sig do params( - mailing_address: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck::MailingAddress, Increase::Util::AnyHash) + mailing_address: T.any( + Increase::Models::CheckTransferCreateParams::PhysicalCheck::MailingAddress, + Increase::Internal::AnyHash + ) ) .void end @@ -168,7 +171,10 @@ module Increase sig do params( - return_address: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck::ReturnAddress, Increase::Util::AnyHash) + return_address: T.any( + Increase::Models::CheckTransferCreateParams::PhysicalCheck::ReturnAddress, + Increase::Internal::AnyHash + ) ) .void end @@ -187,12 +193,18 @@ module Increase # included if any other `fulfillment_method` is provided. sig do params( - mailing_address: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck::MailingAddress, Increase::Util::AnyHash), + mailing_address: T.any( + Increase::Models::CheckTransferCreateParams::PhysicalCheck::MailingAddress, + Increase::Internal::AnyHash + ), memo: String, recipient_name: String, check_number: String, note: String, - return_address: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck::ReturnAddress, Increase::Util::AnyHash), + return_address: T.any( + Increase::Models::CheckTransferCreateParams::PhysicalCheck::ReturnAddress, + Increase::Internal::AnyHash + ), signature_text: String ) .returns(T.attached_class) @@ -225,7 +237,7 @@ module Increase def to_hash end - class MailingAddress < Increase::BaseModel + class MailingAddress < Increase::Internal::Type::BaseModel # The city component of the check's destination address. sig { returns(String) } attr_accessor :city @@ -264,7 +276,7 @@ module Increase end end - class ReturnAddress < Increase::BaseModel + class ReturnAddress < Increase::Internal::Type::BaseModel # The city of the return address. sig { returns(String) } attr_accessor :city @@ -325,7 +337,7 @@ module Increase end end - class ThirdParty < Increase::BaseModel + class ThirdParty < Increase::Internal::Type::BaseModel # The check number you will print on the check. This should not contain leading # zeroes. If this is omitted, Increase will generate a check number for you; you # should inspect the response and use that check number. diff --git a/rbi/lib/increase/models/check_transfer_list_params.rbi b/rbi/lib/increase/models/check_transfer_list_params.rbi index 99182e1a..3764a233 100644 --- a/rbi/lib/increase/models/check_transfer_list_params.rbi +++ b/rbi/lib/increase/models/check_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CheckTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Check Transfers to those that originated from the specified Account. sig { returns(T.nilable(String)) } @@ -17,7 +17,9 @@ module Increase attr_reader :created_at sig do - params(created_at: T.any(Increase::Models::CheckTransferListParams::CreatedAt, Increase::Util::AnyHash)) + params( + created_at: T.any(Increase::Models::CheckTransferListParams::CreatedAt, Increase::Internal::AnyHash) + ) .void end attr_writer :created_at @@ -50,18 +52,18 @@ module Increase sig { returns(T.nilable(Increase::Models::CheckTransferListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::CheckTransferListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::CheckTransferListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( account_id: String, - created_at: T.any(Increase::Models::CheckTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CheckTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::CheckTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::CheckTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -93,7 +95,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -137,7 +139,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Check Transfers to those that have the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -159,7 +161,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransferListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/check_transfer_retrieve_params.rbi b/rbi/lib/increase/models/check_transfer_retrieve_params.rbi index dde50ab7..26a27329 100644 --- a/rbi/lib/increase/models/check_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/check_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class CheckTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/check_transfer_stop_payment_params.rbi b/rbi/lib/increase/models/check_transfer_stop_payment_params.rbi index fd8fe31f..282aae49 100644 --- a/rbi/lib/increase/models/check_transfer_stop_payment_params.rbi +++ b/rbi/lib/increase/models/check_transfer_stop_payment_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class CheckTransferStopPaymentParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferStopPaymentParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The reason why this transfer should be stopped. sig { returns(T.nilable(Increase::Models::CheckTransferStopPaymentParams::Reason::OrSymbol)) } @@ -16,7 +16,7 @@ module Increase sig do params( reason: Increase::Models::CheckTransferStopPaymentParams::Reason::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -37,7 +37,7 @@ module Increase # The reason why this transfer should be stopped. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::CheckTransferStopPaymentParams::Reason) } OrSymbol = diff --git a/rbi/lib/increase/models/declined_transaction.rbi b/rbi/lib/increase/models/declined_transaction.rbi index cfc0e6f5..854248f1 100644 --- a/rbi/lib/increase/models/declined_transaction.rbi +++ b/rbi/lib/increase/models/declined_transaction.rbi @@ -2,7 +2,7 @@ module Increase module Models - class DeclinedTransaction < Increase::BaseModel + class DeclinedTransaction < Increase::Internal::Type::BaseModel # The Declined Transaction identifier. sig { returns(String) } attr_accessor :id @@ -48,7 +48,7 @@ module Increase sig { returns(Increase::Models::DeclinedTransaction::Source) } attr_reader :source - sig { params(source: T.any(Increase::Models::DeclinedTransaction::Source, Increase::Util::AnyHash)).void } + sig { params(source: T.any(Increase::Models::DeclinedTransaction::Source, Increase::Internal::AnyHash)).void } attr_writer :source # A constant representing the object's type. For this resource it will always be @@ -69,7 +69,7 @@ module Increase description: String, route_id: T.nilable(String), route_type: T.nilable(Increase::Models::DeclinedTransaction::RouteType::OrSymbol), - source: T.any(Increase::Models::DeclinedTransaction::Source, Increase::Util::AnyHash), + source: T.any(Increase::Models::DeclinedTransaction::Source, Increase::Internal::AnyHash), type: Increase::Models::DeclinedTransaction::Type::OrSymbol ) .returns(T.attached_class) @@ -112,7 +112,7 @@ module Increase # Transaction's currency. This will match the currency on the Declined # Transaction's Account. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Currency) } OrSymbol = @@ -143,7 +143,7 @@ module Increase # The type of the route this Declined Transaction came through. module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::RouteType) } OrSymbol = @@ -163,7 +163,7 @@ module Increase end end - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel # An ACH Decline object. This field will be present in the JSON response if and # only if `category` is equal to `ach_decline`. sig { returns(T.nilable(Increase::Models::DeclinedTransaction::Source::ACHDecline)) } @@ -171,7 +171,7 @@ module Increase sig do params( - ach_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::ACHDecline, Increase::Util::AnyHash)) + ach_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::ACHDecline, Increase::Internal::AnyHash)) ) .void end @@ -184,7 +184,7 @@ module Increase sig do params( - card_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CardDecline, Increase::Util::AnyHash)) + card_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CardDecline, Increase::Internal::AnyHash)) ) .void end @@ -202,7 +202,7 @@ module Increase sig do params( - check_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CheckDecline, Increase::Util::AnyHash)) + check_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CheckDecline, Increase::Internal::AnyHash)) ) .void end @@ -216,7 +216,7 @@ module Increase sig do params( check_deposit_rejection: T.nilable( - T.any(Increase::Models::DeclinedTransaction::Source::CheckDepositRejection, Increase::Util::AnyHash) + T.any(Increase::Models::DeclinedTransaction::Source::CheckDepositRejection, Increase::Internal::AnyHash) ) ) .void @@ -234,7 +234,7 @@ module Increase inbound_real_time_payments_transfer_decline: T.nilable( T.any( Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -254,7 +254,7 @@ module Increase sig do params( - wire_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::WireDecline, Increase::Util::AnyHash)) + wire_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::WireDecline, Increase::Internal::AnyHash)) ) .void end @@ -267,21 +267,21 @@ module Increase # as deprecated and will be removed in the future. sig do params( - ach_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::ACHDecline, Increase::Util::AnyHash)), - card_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CardDecline, Increase::Util::AnyHash)), + ach_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::ACHDecline, Increase::Internal::AnyHash)), + card_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CardDecline, Increase::Internal::AnyHash)), category: Increase::Models::DeclinedTransaction::Source::Category::OrSymbol, - check_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CheckDecline, Increase::Util::AnyHash)), + check_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::CheckDecline, Increase::Internal::AnyHash)), check_deposit_rejection: T.nilable( - T.any(Increase::Models::DeclinedTransaction::Source::CheckDepositRejection, Increase::Util::AnyHash) + T.any(Increase::Models::DeclinedTransaction::Source::CheckDepositRejection, Increase::Internal::AnyHash) ), inbound_real_time_payments_transfer_decline: T.nilable( T.any( Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), other: T.nilable(T.anything), - wire_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::WireDecline, Increase::Util::AnyHash)) + wire_decline: T.nilable(T.any(Increase::Models::DeclinedTransaction::Source::WireDecline, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -315,7 +315,7 @@ module Increase def to_hash end - class ACHDecline < Increase::BaseModel + class ACHDecline < Increase::Internal::Type::BaseModel # The ACH Decline's identifier. sig { returns(String) } attr_accessor :id @@ -424,7 +424,7 @@ module Increase # Why the ACH transfer was declined. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::ACHDecline::Reason) } @@ -542,7 +542,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `ach_decline`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::ACHDecline::Type) } @@ -558,7 +558,7 @@ module Increase end end - class CardDecline < Increase::BaseModel + class CardDecline < Increase::Internal::Type::BaseModel # The Card Decline identifier. sig { returns(String) } attr_accessor :id @@ -633,7 +633,10 @@ module Increase sig do params( - network_details: T.any(Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails, Increase::Util::AnyHash) + network_details: T.any( + Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails, + Increase::Internal::AnyHash + ) ) .void end @@ -647,7 +650,7 @@ module Increase params( network_identifiers: T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -709,7 +712,10 @@ module Increase sig do params( - verification: T.any(Increase::Models::DeclinedTransaction::Source::CardDecline::Verification, Increase::Util::AnyHash) + verification: T.any( + Increase::Models::DeclinedTransaction::Source::CardDecline::Verification, + Increase::Internal::AnyHash + ) ) .void end @@ -734,10 +740,13 @@ module Increase merchant_descriptor: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_details: T.any(Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails, Increase::Util::AnyHash), + network_details: T.any( + Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails, + Increase::Internal::AnyHash + ), network_identifiers: T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), network_risk_score: T.nilable(Integer), physical_card_id: T.nilable(String), @@ -748,7 +757,10 @@ module Increase real_time_decision_reason: T.nilable(Increase::Models::DeclinedTransaction::Source::CardDecline::RealTimeDecisionReason::OrSymbol), reason: Increase::Models::DeclinedTransaction::Source::CardDecline::Reason::OrSymbol, terminal_id: T.nilable(String), - verification: T.any(Increase::Models::DeclinedTransaction::Source::CardDecline::Verification, Increase::Util::AnyHash) + verification: T.any( + Increase::Models::DeclinedTransaction::Source::CardDecline::Verification, + Increase::Internal::AnyHash + ) ) .returns(T.attached_class) end @@ -825,7 +837,7 @@ module Increase # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Actioner) } @@ -854,7 +866,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination # account currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Currency) } @@ -890,7 +902,7 @@ module Increase # The direction describes the direction the funds will move, either from the # cardholder to the merchant or from the merchant to the cardholder. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Direction) } @@ -913,7 +925,7 @@ module Increase end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. sig do returns( @@ -931,7 +943,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -946,7 +958,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -969,7 +981,7 @@ module Increase # The payment network used to process this card authorization. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Category) } @@ -999,7 +1011,7 @@ module Increase end end - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. @@ -1079,7 +1091,7 @@ module Increase # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1165,7 +1177,7 @@ module Increase # The method used to enter the cardholder's primary account number and card # expiration date. module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1265,7 +1277,7 @@ module Increase # Only present when `actioner: network`. Describes why a card authorization was # approved or declined by Visa through stand-in processing. module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1343,7 +1355,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -1389,7 +1401,7 @@ module Increase # The processing category describes the intent behind the authorization, such as # whether it was used for bill payments or an automatic fuel dispenser. module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::ProcessingCategory) } @@ -1457,7 +1469,7 @@ module Increase # This is present if a specific decline reason was given in the real-time # decision. module RealTimeDecisionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::RealTimeDecisionReason) } @@ -1524,7 +1536,7 @@ module Increase # Why the transaction was declined. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Reason) } @@ -1634,7 +1646,7 @@ module Increase end end - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. sig { returns(Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode) } @@ -1644,7 +1656,7 @@ module Increase params( card_verification_code: T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1660,7 +1672,7 @@ module Increase params( cardholder_address: T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1672,11 +1684,11 @@ module Increase params( card_verification_code: T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), cardholder_address: T.any( Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -1696,7 +1708,7 @@ module Increase def to_hash end - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # The result of verifying the Card Verification Code. sig do returns( @@ -1729,7 +1741,7 @@ module Increase # The result of verifying the Card Verification Code. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1778,7 +1790,7 @@ module Increase end end - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } attr_accessor :actual_line1 @@ -1842,7 +1854,7 @@ module Increase # The address verification result returned to the card network. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1917,7 +1929,7 @@ module Increase # 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. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::Category) } OrSymbol = @@ -1957,7 +1969,7 @@ module Increase end end - class CheckDecline < Increase::BaseModel + class CheckDecline < Increase::Internal::Type::BaseModel # The declined amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -2034,7 +2046,7 @@ module Increase # Why the check was declined. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CheckDecline::Reason) } @@ -2148,7 +2160,7 @@ module Increase end end - class CheckDepositRejection < Increase::BaseModel + class CheckDepositRejection < Increase::Internal::Type::BaseModel # The rejected amount in the minor unit of check's currency. For dollars, for # example, this is cents. sig { returns(Integer) } @@ -2211,7 +2223,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CheckDepositRejection::Currency) } @@ -2260,7 +2272,7 @@ module Increase # Why the check deposit was rejected. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::CheckDepositRejection::Reason) } @@ -2361,7 +2373,7 @@ module Increase end end - class InboundRealTimePaymentsTransferDecline < Increase::BaseModel + class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel # The declined amount in the minor unit of the destination account currency. For # dollars, for example, this is cents. sig { returns(Integer) } @@ -2469,7 +2481,7 @@ module Increase # transfer's currency. This will always be "USD" for a Real-Time Payments # transfer. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2540,7 +2552,7 @@ module Increase # Why the transfer was declined. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2610,7 +2622,7 @@ module Increase end end - class WireDecline < Increase::BaseModel + class WireDecline < Increase::Internal::Type::BaseModel # The identifier of the Inbound Wire Transfer that was declined. sig { returns(String) } attr_accessor :inbound_wire_transfer_id @@ -2645,7 +2657,7 @@ module Increase # Why the wire transfer was declined. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Source::WireDecline::Reason) } @@ -2704,7 +2716,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `declined_transaction`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransaction::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/declined_transaction_list_params.rbi b/rbi/lib/increase/models/declined_transaction_list_params.rbi index d0593ec8..b11fdffd 100644 --- a/rbi/lib/increase/models/declined_transaction_list_params.rbi +++ b/rbi/lib/increase/models/declined_transaction_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class DeclinedTransactionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DeclinedTransactionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Declined Transactions to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -18,7 +18,7 @@ module Increase sig do params( - category: T.any(Increase::Models::DeclinedTransactionListParams::Category, Increase::Util::AnyHash) + category: T.any(Increase::Models::DeclinedTransactionListParams::Category, Increase::Internal::AnyHash) ) .void end @@ -29,7 +29,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::DeclinedTransactionListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::DeclinedTransactionListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -60,12 +60,12 @@ module Increase sig do params( account_id: String, - category: T.any(Increase::Models::DeclinedTransactionListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::DeclinedTransactionListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::DeclinedTransactionListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::DeclinedTransactionListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, route_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -97,7 +97,7 @@ module Increase def to_hash end - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::DeclinedTransactionListParams::Category::In::OrSymbol])) } @@ -118,7 +118,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DeclinedTransactionListParams::Category::In) } @@ -164,7 +164,7 @@ module Increase end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/declined_transaction_retrieve_params.rbi b/rbi/lib/increase/models/declined_transaction_retrieve_params.rbi index 1d5e9b42..da907951 100644 --- a/rbi/lib/increase/models/declined_transaction_retrieve_params.rbi +++ b/rbi/lib/increase/models/declined_transaction_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class DeclinedTransactionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DeclinedTransactionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/digital_card_profile.rbi b/rbi/lib/increase/models/digital_card_profile.rbi index 43089577..60630cdc 100644 --- a/rbi/lib/increase/models/digital_card_profile.rbi +++ b/rbi/lib/increase/models/digital_card_profile.rbi @@ -2,7 +2,7 @@ module Increase module Models - class DigitalCardProfile < Increase::BaseModel + class DigitalCardProfile < Increase::Internal::Type::BaseModel # The Card Profile identifier. sig { returns(String) } attr_accessor :id @@ -58,7 +58,10 @@ module Increase sig { returns(Increase::Models::DigitalCardProfile::TextColor) } attr_reader :text_color - sig { params(text_color: T.any(Increase::Models::DigitalCardProfile::TextColor, Increase::Util::AnyHash)).void } + sig do + params(text_color: T.any(Increase::Models::DigitalCardProfile::TextColor, Increase::Internal::AnyHash)) + .void + end attr_writer :text_color # A constant representing the object's type. For this resource it will always be @@ -83,7 +86,7 @@ module Increase idempotency_key: T.nilable(String), issuer_name: String, status: Increase::Models::DigitalCardProfile::Status::OrSymbol, - text_color: T.any(Increase::Models::DigitalCardProfile::TextColor, Increase::Util::AnyHash), + text_color: T.any(Increase::Models::DigitalCardProfile::TextColor, Increase::Internal::AnyHash), type: Increase::Models::DigitalCardProfile::Type::OrSymbol ) .returns(T.attached_class) @@ -132,7 +135,7 @@ module Increase # The status of the Card Profile. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalCardProfile::Status) } OrSymbol = @@ -155,7 +158,7 @@ module Increase end end - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel # The value of the blue channel in the RGB color. sig { returns(Integer) } attr_accessor :blue @@ -181,7 +184,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `digital_card_profile`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalCardProfile::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/digital_card_profile_archive_params.rbi b/rbi/lib/increase/models/digital_card_profile_archive_params.rbi index d23b14ab..09f89f60 100644 --- a/rbi/lib/increase/models/digital_card_profile_archive_params.rbi +++ b/rbi/lib/increase/models/digital_card_profile_archive_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class DigitalCardProfileArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/digital_card_profile_clone_params.rbi b/rbi/lib/increase/models/digital_card_profile_clone_params.rbi index 994271f4..5c35eb4b 100644 --- a/rbi/lib/increase/models/digital_card_profile_clone_params.rbi +++ b/rbi/lib/increase/models/digital_card_profile_clone_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class DigitalCardProfileCloneParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileCloneParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the File containing the card's icon image. sig { returns(T.nilable(String)) } @@ -68,7 +68,7 @@ module Increase sig do params( - text_color: T.any(Increase::Models::DigitalCardProfileCloneParams::TextColor, Increase::Util::AnyHash) + text_color: T.any(Increase::Models::DigitalCardProfileCloneParams::TextColor, Increase::Internal::AnyHash) ) .void end @@ -84,8 +84,8 @@ module Increase contact_website: String, description: String, issuer_name: String, - text_color: T.any(Increase::Models::DigitalCardProfileCloneParams::TextColor, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + text_color: T.any(Increase::Models::DigitalCardProfileCloneParams::TextColor, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -123,7 +123,7 @@ module Increase def to_hash end - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel # The value of the blue channel in the RGB color. sig { returns(Integer) } attr_accessor :blue diff --git a/rbi/lib/increase/models/digital_card_profile_create_params.rbi b/rbi/lib/increase/models/digital_card_profile_create_params.rbi index f3c8a954..d11a805e 100644 --- a/rbi/lib/increase/models/digital_card_profile_create_params.rbi +++ b/rbi/lib/increase/models/digital_card_profile_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class DigitalCardProfileCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the File containing the card's icon image. sig { returns(String) } @@ -53,7 +53,7 @@ module Increase sig do params( - text_color: T.any(Increase::Models::DigitalCardProfileCreateParams::TextColor, Increase::Util::AnyHash) + text_color: T.any(Increase::Models::DigitalCardProfileCreateParams::TextColor, Increase::Internal::AnyHash) ) .void end @@ -69,8 +69,8 @@ module Increase contact_email: String, contact_phone: String, contact_website: String, - text_color: T.any(Increase::Models::DigitalCardProfileCreateParams::TextColor, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + text_color: T.any(Increase::Models::DigitalCardProfileCreateParams::TextColor, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -108,7 +108,7 @@ module Increase def to_hash end - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel # The value of the blue channel in the RGB color. sig { returns(Integer) } attr_accessor :blue diff --git a/rbi/lib/increase/models/digital_card_profile_list_params.rbi b/rbi/lib/increase/models/digital_card_profile_list_params.rbi index 41841c83..33e27994 100644 --- a/rbi/lib/increase/models/digital_card_profile_list_params.rbi +++ b/rbi/lib/increase/models/digital_card_profile_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class DigitalCardProfileListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -34,7 +34,10 @@ module Increase sig { returns(T.nilable(Increase::Models::DigitalCardProfileListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::DigitalCardProfileListParams::Status, Increase::Util::AnyHash)).void } + sig do + params(status: T.any(Increase::Models::DigitalCardProfileListParams::Status, Increase::Internal::AnyHash)) + .void + end attr_writer :status sig do @@ -42,8 +45,8 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::DigitalCardProfileListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::DigitalCardProfileListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -65,7 +68,7 @@ module Increase def to_hash end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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 # string, such as `?in=one,two,three`. @@ -87,7 +90,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalCardProfileListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/digital_card_profile_retrieve_params.rbi b/rbi/lib/increase/models/digital_card_profile_retrieve_params.rbi index c0f72513..bc4a7ad8 100644 --- a/rbi/lib/increase/models/digital_card_profile_retrieve_params.rbi +++ b/rbi/lib/increase/models/digital_card_profile_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class DigitalCardProfileRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/digital_wallet_token.rbi b/rbi/lib/increase/models/digital_wallet_token.rbi index 0a2c1f58..292ee499 100644 --- a/rbi/lib/increase/models/digital_wallet_token.rbi +++ b/rbi/lib/increase/models/digital_wallet_token.rbi @@ -2,7 +2,7 @@ module Increase module Models - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel # The Digital Wallet Token identifier. sig { returns(String) } attr_accessor :id @@ -15,7 +15,10 @@ module Increase sig { returns(Increase::Models::DigitalWalletToken::Cardholder) } attr_reader :cardholder - sig { params(cardholder: T.any(Increase::Models::DigitalWalletToken::Cardholder, Increase::Util::AnyHash)).void } + sig do + params(cardholder: T.any(Increase::Models::DigitalWalletToken::Cardholder, Increase::Internal::AnyHash)) + .void + end attr_writer :cardholder # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which @@ -27,7 +30,7 @@ module Increase sig { returns(Increase::Models::DigitalWalletToken::Device) } attr_reader :device - sig { params(device: T.any(Increase::Models::DigitalWalletToken::Device, Increase::Util::AnyHash)).void } + sig { params(device: T.any(Increase::Models::DigitalWalletToken::Device, Increase::Internal::AnyHash)).void } attr_writer :device # This indicates if payments can be made with the Digital Wallet Token. @@ -54,13 +57,13 @@ module Increase params( id: String, card_id: String, - cardholder: T.any(Increase::Models::DigitalWalletToken::Cardholder, Increase::Util::AnyHash), + cardholder: T.any(Increase::Models::DigitalWalletToken::Cardholder, Increase::Internal::AnyHash), created_at: Time, - device: T.any(Increase::Models::DigitalWalletToken::Device, Increase::Util::AnyHash), + device: T.any(Increase::Models::DigitalWalletToken::Device, Increase::Internal::AnyHash), status: Increase::Models::DigitalWalletToken::Status::OrSymbol, token_requestor: Increase::Models::DigitalWalletToken::TokenRequestor::OrSymbol, type: Increase::Models::DigitalWalletToken::Type::OrSymbol, - updates: T::Array[T.any(Increase::Models::DigitalWalletToken::Update, Increase::Util::AnyHash)] + updates: T::Array[T.any(Increase::Models::DigitalWalletToken::Update, Increase::Internal::AnyHash)] ) .returns(T.attached_class) end @@ -96,7 +99,7 @@ module Increase def to_hash end - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel # Name of the cardholder, for example "John Smith". sig { returns(T.nilable(String)) } attr_accessor :name @@ -111,7 +114,7 @@ module Increase end end - class Device < Increase::BaseModel + class Device < Increase::Internal::Type::BaseModel # Device type. sig { returns(T.nilable(Increase::Models::DigitalWalletToken::Device::DeviceType::TaggedSymbol)) } attr_accessor :device_type @@ -157,7 +160,7 @@ module Increase # Device type. module DeviceType - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalWalletToken::Device::DeviceType) } OrSymbol = @@ -203,7 +206,7 @@ module Increase # This indicates if payments can be made with the Digital Wallet Token. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalWalletToken::Status) } OrSymbol = @@ -228,7 +231,7 @@ module Increase # The digital wallet app being used. module TokenRequestor - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalWalletToken::TokenRequestor) } OrSymbol = @@ -254,7 +257,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `digital_wallet_token`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalWalletToken::Type) } OrSymbol = @@ -268,7 +271,7 @@ module Increase end end - class Update < Increase::BaseModel + class Update < Increase::Internal::Type::BaseModel # The status the update changed this Digital Wallet Token to. sig { returns(Increase::Models::DigitalWalletToken::Update::Status::TaggedSymbol) } attr_accessor :status @@ -294,7 +297,7 @@ module Increase # The status the update changed this Digital Wallet Token to. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DigitalWalletToken::Update::Status) } OrSymbol = diff --git a/rbi/lib/increase/models/digital_wallet_token_list_params.rbi b/rbi/lib/increase/models/digital_wallet_token_list_params.rbi index 08d409a3..dbdd226f 100644 --- a/rbi/lib/increase/models/digital_wallet_token_list_params.rbi +++ b/rbi/lib/increase/models/digital_wallet_token_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class DigitalWalletTokenListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalWalletTokenListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Digital Wallet Tokens to ones belonging to the specified Card. sig { returns(T.nilable(String)) } @@ -18,7 +18,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::DigitalWalletTokenListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::DigitalWalletTokenListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -42,10 +42,10 @@ module Increase sig do params( card_id: String, - created_at: T.any(Increase::Models::DigitalWalletTokenListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::DigitalWalletTokenListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -67,7 +67,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/digital_wallet_token_retrieve_params.rbi b/rbi/lib/increase/models/digital_wallet_token_retrieve_params.rbi index 39ea4572..5bdb35ae 100644 --- a/rbi/lib/increase/models/digital_wallet_token_retrieve_params.rbi +++ b/rbi/lib/increase/models/digital_wallet_token_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class DigitalWalletTokenRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalWalletTokenRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/document.rbi b/rbi/lib/increase/models/document.rbi index f78d5457..e1df05f2 100644 --- a/rbi/lib/increase/models/document.rbi +++ b/rbi/lib/increase/models/document.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Document < Increase::BaseModel + class Document < Increase::Internal::Type::BaseModel # The Document identifier. sig { returns(String) } attr_accessor :id @@ -63,7 +63,7 @@ module Increase # The type of document. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Document::Category) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Document::Category::TaggedSymbol) } @@ -89,7 +89,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `document`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Document::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Document::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/document_list_params.rbi b/rbi/lib/increase/models/document_list_params.rbi index f284eb55..cde93f90 100644 --- a/rbi/lib/increase/models/document_list_params.rbi +++ b/rbi/lib/increase/models/document_list_params.rbi @@ -2,20 +2,23 @@ module Increase module Models - class DocumentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DocumentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::DocumentListParams::Category)) } attr_reader :category - sig { params(category: T.any(Increase::Models::DocumentListParams::Category, Increase::Util::AnyHash)).void } + sig { params(category: T.any(Increase::Models::DocumentListParams::Category, Increase::Internal::AnyHash)).void } attr_writer :category sig { returns(T.nilable(Increase::Models::DocumentListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::DocumentListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig do + params(created_at: T.any(Increase::Models::DocumentListParams::CreatedAt, Increase::Internal::AnyHash)) + .void + end attr_writer :created_at # Return the page of entries after this one. @@ -42,12 +45,12 @@ module Increase sig do params( - category: T.any(Increase::Models::DocumentListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::DocumentListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::DocumentListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::DocumentListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, entity_id: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -77,7 +80,7 @@ module Increase def to_hash end - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # Filter Documents for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -99,7 +102,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::DocumentListParams::Category::In) } OrSymbol = @@ -125,7 +128,7 @@ module Increase end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/document_retrieve_params.rbi b/rbi/lib/increase/models/document_retrieve_params.rbi index 6a5eea3b..bd16cb50 100644 --- a/rbi/lib/increase/models/document_retrieve_params.rbi +++ b/rbi/lib/increase/models/document_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class DocumentRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DocumentRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/entity.rbi b/rbi/lib/increase/models/entity.rbi index 456ff9ec..f9185e56 100644 --- a/rbi/lib/increase/models/entity.rbi +++ b/rbi/lib/increase/models/entity.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Entity < Increase::BaseModel + class Entity < Increase::Internal::Type::BaseModel # The entity's identifier. sig { returns(String) } attr_accessor :id @@ -12,7 +12,10 @@ module Increase sig { returns(T.nilable(Increase::Models::Entity::Corporation)) } attr_reader :corporation - sig { params(corporation: T.nilable(T.any(Increase::Models::Entity::Corporation, Increase::Util::AnyHash))).void } + sig do + params(corporation: T.nilable(T.any(Increase::Models::Entity::Corporation, Increase::Internal::AnyHash))) + .void + end attr_writer :corporation # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Entity @@ -36,7 +39,7 @@ module Increase sig do params( - government_authority: T.nilable(T.any(Increase::Models::Entity::GovernmentAuthority, Increase::Util::AnyHash)) + government_authority: T.nilable(T.any(Increase::Models::Entity::GovernmentAuthority, Increase::Internal::AnyHash)) ) .void end @@ -52,7 +55,7 @@ module Increase sig { returns(T.nilable(Increase::Models::Entity::Joint)) } attr_reader :joint - sig { params(joint: T.nilable(T.any(Increase::Models::Entity::Joint, Increase::Util::AnyHash))).void } + sig { params(joint: T.nilable(T.any(Increase::Models::Entity::Joint, Increase::Internal::AnyHash))).void } attr_writer :joint # Details of the natural person entity. Will be present if `structure` is equal to @@ -61,7 +64,9 @@ module Increase attr_reader :natural_person sig do - params(natural_person: T.nilable(T.any(Increase::Models::Entity::NaturalPerson, Increase::Util::AnyHash))) + params( + natural_person: T.nilable(T.any(Increase::Models::Entity::NaturalPerson, Increase::Internal::AnyHash)) + ) .void end attr_writer :natural_person @@ -87,7 +92,7 @@ module Increase sig do params( - third_party_verification: T.nilable(T.any(Increase::Models::Entity::ThirdPartyVerification, Increase::Util::AnyHash)) + third_party_verification: T.nilable(T.any(Increase::Models::Entity::ThirdPartyVerification, Increase::Internal::AnyHash)) ) .void end @@ -97,7 +102,7 @@ module Increase sig { returns(T.nilable(Increase::Models::Entity::Trust)) } attr_reader :trust - sig { params(trust: T.nilable(T.any(Increase::Models::Entity::Trust, Increase::Util::AnyHash))).void } + sig { params(trust: T.nilable(T.any(Increase::Models::Entity::Trust, Increase::Internal::AnyHash))).void } attr_writer :trust # A constant representing the object's type. For this resource it will always be @@ -110,19 +115,19 @@ module Increase sig do params( id: String, - corporation: T.nilable(T.any(Increase::Models::Entity::Corporation, Increase::Util::AnyHash)), + corporation: T.nilable(T.any(Increase::Models::Entity::Corporation, Increase::Internal::AnyHash)), created_at: Time, description: T.nilable(String), details_confirmed_at: T.nilable(Time), - government_authority: T.nilable(T.any(Increase::Models::Entity::GovernmentAuthority, Increase::Util::AnyHash)), + government_authority: T.nilable(T.any(Increase::Models::Entity::GovernmentAuthority, Increase::Internal::AnyHash)), idempotency_key: T.nilable(String), - joint: T.nilable(T.any(Increase::Models::Entity::Joint, Increase::Util::AnyHash)), - natural_person: T.nilable(T.any(Increase::Models::Entity::NaturalPerson, Increase::Util::AnyHash)), + joint: T.nilable(T.any(Increase::Models::Entity::Joint, Increase::Internal::AnyHash)), + natural_person: T.nilable(T.any(Increase::Models::Entity::NaturalPerson, Increase::Internal::AnyHash)), status: Increase::Models::Entity::Status::OrSymbol, structure: Increase::Models::Entity::Structure::OrSymbol, - supplemental_documents: T::Array[T.any(Increase::Models::EntitySupplementalDocument, Increase::Util::AnyHash)], - third_party_verification: T.nilable(T.any(Increase::Models::Entity::ThirdPartyVerification, Increase::Util::AnyHash)), - trust: T.nilable(T.any(Increase::Models::Entity::Trust, Increase::Util::AnyHash)), + supplemental_documents: T::Array[T.any(Increase::Models::EntitySupplementalDocument, Increase::Internal::AnyHash)], + third_party_verification: T.nilable(T.any(Increase::Models::Entity::ThirdPartyVerification, Increase::Internal::AnyHash)), + trust: T.nilable(T.any(Increase::Models::Entity::Trust, Increase::Internal::AnyHash)), type: Increase::Models::Entity::Type::OrSymbol ) .returns(T.attached_class) @@ -171,12 +176,12 @@ module Increase def to_hash end - class Corporation < Increase::BaseModel + class Corporation < Increase::Internal::Type::BaseModel # The corporation's address. sig { returns(Increase::Models::Entity::Corporation::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::Entity::Corporation::Address, Increase::Util::AnyHash)).void } + sig { params(address: T.any(Increase::Models::Entity::Corporation::Address, Increase::Internal::AnyHash)).void } attr_writer :address # The identifying details of anyone controlling or owning 25% or more of the @@ -210,8 +215,8 @@ module Increase # `corporation`. sig do params( - address: T.any(Increase::Models::Entity::Corporation::Address, Increase::Util::AnyHash), - beneficial_owners: T::Array[T.any(Increase::Models::Entity::Corporation::BeneficialOwner, Increase::Util::AnyHash)], + address: T.any(Increase::Models::Entity::Corporation::Address, Increase::Internal::AnyHash), + beneficial_owners: T::Array[T.any(Increase::Models::Entity::Corporation::BeneficialOwner, Increase::Internal::AnyHash)], incorporation_state: T.nilable(String), industry_code: T.nilable(String), name: String, @@ -248,7 +253,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -293,7 +298,7 @@ module Increase end end - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel # The identifier of this beneficial owner. sig { returns(String) } attr_accessor :beneficial_owner_id @@ -308,7 +313,7 @@ module Increase sig do params( - individual: T.any(Increase::Models::Entity::Corporation::BeneficialOwner::Individual, Increase::Util::AnyHash) + individual: T.any(Increase::Models::Entity::Corporation::BeneficialOwner::Individual, Increase::Internal::AnyHash) ) .void end @@ -322,7 +327,7 @@ module Increase params( beneficial_owner_id: String, company_title: T.nilable(String), - individual: T.any(Increase::Models::Entity::Corporation::BeneficialOwner::Individual, Increase::Util::AnyHash), + individual: T.any(Increase::Models::Entity::Corporation::BeneficialOwner::Individual, Increase::Internal::AnyHash), prong: Increase::Models::Entity::Corporation::BeneficialOwner::Prong::OrSymbol ) .returns(T.attached_class) @@ -344,7 +349,7 @@ module Increase def to_hash end - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # The person's address. sig { returns(Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address) } attr_reader :address @@ -353,7 +358,7 @@ module Increase params( address: T.any( Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -372,7 +377,7 @@ module Increase params( identification: T.any( Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -388,12 +393,12 @@ module Increase params( address: T.any( Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), date_of_birth: Date, identification: T.any( Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), name: String ) @@ -416,7 +421,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city, district, town, or village of the address. sig { returns(T.nilable(String)) } attr_accessor :city @@ -474,7 +479,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig do returns( @@ -513,7 +518,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::Method) } @@ -575,7 +580,7 @@ module Increase # Why this person is considered a beneficial owner of the entity. module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Corporation::BeneficialOwner::Prong) } @@ -596,13 +601,15 @@ module Increase end end - class GovernmentAuthority < Increase::BaseModel + class GovernmentAuthority < Increase::Internal::Type::BaseModel # The government authority's address. sig { returns(Increase::Models::Entity::GovernmentAuthority::Address) } attr_reader :address sig do - params(address: T.any(Increase::Models::Entity::GovernmentAuthority::Address, Increase::Util::AnyHash)) + params( + address: T.any(Increase::Models::Entity::GovernmentAuthority::Address, Increase::Internal::AnyHash) + ) .void end attr_writer :address @@ -631,8 +638,8 @@ module Increase # equal to `government_authority`. sig do params( - address: T.any(Increase::Models::Entity::GovernmentAuthority::Address, Increase::Util::AnyHash), - authorized_persons: T::Array[T.any(Increase::Models::Entity::GovernmentAuthority::AuthorizedPerson, Increase::Util::AnyHash)], + address: T.any(Increase::Models::Entity::GovernmentAuthority::Address, Increase::Internal::AnyHash), + authorized_persons: T::Array[T.any(Increase::Models::Entity::GovernmentAuthority::AuthorizedPerson, Increase::Internal::AnyHash)], category: Increase::Models::Entity::GovernmentAuthority::Category::OrSymbol, name: String, tax_identifier: T.nilable(String), @@ -659,7 +666,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -704,7 +711,7 @@ module Increase end end - class AuthorizedPerson < Increase::BaseModel + class AuthorizedPerson < Increase::Internal::Type::BaseModel # The identifier of this authorized person. sig { returns(String) } attr_accessor :authorized_person_id @@ -724,7 +731,7 @@ module Increase # The category of the government authority. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::GovernmentAuthority::Category) } OrSymbol = @@ -740,7 +747,7 @@ module Increase end end - class Joint < Increase::BaseModel + class Joint < Increase::Internal::Type::BaseModel # The two individuals that share control of the entity. sig { returns(T::Array[Increase::Models::Entity::Joint::Individual]) } attr_accessor :individuals @@ -752,7 +759,7 @@ module Increase # Details of the joint entity. Will be present if `structure` is equal to `joint`. sig do params( - individuals: T::Array[T.any(Increase::Models::Entity::Joint::Individual, Increase::Util::AnyHash)], + individuals: T::Array[T.any(Increase::Models::Entity::Joint::Individual, Increase::Internal::AnyHash)], name: String ) .returns(T.attached_class) @@ -764,12 +771,15 @@ module Increase def to_hash end - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # The person's address. sig { returns(Increase::Models::Entity::Joint::Individual::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::Entity::Joint::Individual::Address, Increase::Util::AnyHash)).void } + sig do + params(address: T.any(Increase::Models::Entity::Joint::Individual::Address, Increase::Internal::AnyHash)) + .void + end attr_writer :address # The person's date of birth in YYYY-MM-DD format. @@ -782,7 +792,7 @@ module Increase sig do params( - identification: T.any(Increase::Models::Entity::Joint::Individual::Identification, Increase::Util::AnyHash) + identification: T.any(Increase::Models::Entity::Joint::Individual::Identification, Increase::Internal::AnyHash) ) .void end @@ -794,9 +804,9 @@ module Increase sig do params( - address: T.any(Increase::Models::Entity::Joint::Individual::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::Entity::Joint::Individual::Address, Increase::Internal::AnyHash), date_of_birth: Date, - identification: T.any(Increase::Models::Entity::Joint::Individual::Identification, Increase::Util::AnyHash), + identification: T.any(Increase::Models::Entity::Joint::Individual::Identification, Increase::Internal::AnyHash), name: String ) .returns(T.attached_class) @@ -818,7 +828,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -863,7 +873,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig { returns(Increase::Models::Entity::Joint::Individual::Identification::Method::TaggedSymbol) } attr_accessor :method_ @@ -898,7 +908,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Joint::Individual::Identification::Method) } @@ -941,12 +951,12 @@ module Increase end end - class NaturalPerson < Increase::BaseModel + class NaturalPerson < Increase::Internal::Type::BaseModel # The person's address. sig { returns(Increase::Models::Entity::NaturalPerson::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::Entity::NaturalPerson::Address, Increase::Util::AnyHash)).void } + sig { params(address: T.any(Increase::Models::Entity::NaturalPerson::Address, Increase::Internal::AnyHash)).void } attr_writer :address # The person's date of birth in YYYY-MM-DD format. @@ -959,7 +969,7 @@ module Increase sig do params( - identification: T.any(Increase::Models::Entity::NaturalPerson::Identification, Increase::Util::AnyHash) + identification: T.any(Increase::Models::Entity::NaturalPerson::Identification, Increase::Internal::AnyHash) ) .void end @@ -973,9 +983,9 @@ module Increase # `natural_person`. sig do params( - address: T.any(Increase::Models::Entity::NaturalPerson::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::Entity::NaturalPerson::Address, Increase::Internal::AnyHash), date_of_birth: Date, - identification: T.any(Increase::Models::Entity::NaturalPerson::Identification, Increase::Util::AnyHash), + identification: T.any(Increase::Models::Entity::NaturalPerson::Identification, Increase::Internal::AnyHash), name: String ) .returns(T.attached_class) @@ -997,7 +1007,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -1042,7 +1052,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig { returns(Increase::Models::Entity::NaturalPerson::Identification::Method::TaggedSymbol) } attr_accessor :method_ @@ -1074,7 +1084,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::NaturalPerson::Identification::Method) } @@ -1115,7 +1125,7 @@ module Increase # The status of the entity. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Entity::Status::TaggedSymbol) } @@ -1136,7 +1146,7 @@ module Increase # The entity's legal structure. module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Structure) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Entity::Structure::TaggedSymbol) } @@ -1161,7 +1171,7 @@ module Increase end end - class ThirdPartyVerification < Increase::BaseModel + class ThirdPartyVerification < Increase::Internal::Type::BaseModel # The reference identifier for the third party verification. sig { returns(String) } attr_accessor :reference @@ -1190,7 +1200,7 @@ module Increase # The vendor that was used to perform the verification. module Vendor - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::ThirdPartyVerification::Vendor) } OrSymbol = @@ -1208,12 +1218,12 @@ module Increase end end - class Trust < Increase::BaseModel + class Trust < Increase::Internal::Type::BaseModel # The trust's address. sig { returns(Increase::Models::Entity::Trust::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::Entity::Trust::Address, Increase::Util::AnyHash)).void } + sig { params(address: T.any(Increase::Models::Entity::Trust::Address, Increase::Internal::AnyHash)).void } attr_writer :address # Whether the trust is `revocable` or `irrevocable`. @@ -1233,7 +1243,10 @@ module Increase sig { returns(T.nilable(Increase::Models::Entity::Trust::Grantor)) } attr_reader :grantor - sig { params(grantor: T.nilable(T.any(Increase::Models::Entity::Trust::Grantor, Increase::Util::AnyHash))).void } + sig do + params(grantor: T.nilable(T.any(Increase::Models::Entity::Trust::Grantor, Increase::Internal::AnyHash))) + .void + end attr_writer :grantor # The trust's name. @@ -1251,14 +1264,14 @@ module Increase # Details of the trust entity. Will be present if `structure` is equal to `trust`. sig do params( - address: T.any(Increase::Models::Entity::Trust::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::Entity::Trust::Address, Increase::Internal::AnyHash), category: Increase::Models::Entity::Trust::Category::OrSymbol, formation_document_file_id: T.nilable(String), formation_state: T.nilable(String), - grantor: T.nilable(T.any(Increase::Models::Entity::Trust::Grantor, Increase::Util::AnyHash)), + grantor: T.nilable(T.any(Increase::Models::Entity::Trust::Grantor, Increase::Internal::AnyHash)), name: String, tax_identifier: T.nilable(String), - trustees: T::Array[T.any(Increase::Models::Entity::Trust::Trustee, Increase::Util::AnyHash)] + trustees: T::Array[T.any(Increase::Models::Entity::Trust::Trustee, Increase::Internal::AnyHash)] ) .returns(T.attached_class) end @@ -1292,7 +1305,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -1339,7 +1352,7 @@ module Increase # Whether the trust is `revocable` or `irrevocable`. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Trust::Category) } OrSymbol = @@ -1356,12 +1369,12 @@ module Increase end end - class Grantor < Increase::BaseModel + class Grantor < Increase::Internal::Type::BaseModel # The person's address. sig { returns(Increase::Models::Entity::Trust::Grantor::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::Entity::Trust::Grantor::Address, Increase::Util::AnyHash)).void } + sig { params(address: T.any(Increase::Models::Entity::Trust::Grantor::Address, Increase::Internal::AnyHash)).void } attr_writer :address # The person's date of birth in YYYY-MM-DD format. @@ -1374,7 +1387,7 @@ module Increase sig do params( - identification: T.any(Increase::Models::Entity::Trust::Grantor::Identification, Increase::Util::AnyHash) + identification: T.any(Increase::Models::Entity::Trust::Grantor::Identification, Increase::Internal::AnyHash) ) .void end @@ -1387,9 +1400,9 @@ module Increase # The grantor of the trust. Will be present if the `category` is `revocable`. sig do params( - address: T.any(Increase::Models::Entity::Trust::Grantor::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::Entity::Trust::Grantor::Address, Increase::Internal::AnyHash), date_of_birth: Date, - identification: T.any(Increase::Models::Entity::Trust::Grantor::Identification, Increase::Util::AnyHash), + identification: T.any(Increase::Models::Entity::Trust::Grantor::Identification, Increase::Internal::AnyHash), name: String ) .returns(T.attached_class) @@ -1411,7 +1424,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -1456,7 +1469,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig { returns(Increase::Models::Entity::Trust::Grantor::Identification::Method::TaggedSymbol) } attr_accessor :method_ @@ -1491,7 +1504,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Trust::Grantor::Identification::Method) } @@ -1530,7 +1543,7 @@ module Increase end end - class Trustee < Increase::BaseModel + class Trustee < Increase::Internal::Type::BaseModel # The individual trustee of the trust. Will be present if the trustee's # `structure` is equal to `individual`. sig { returns(T.nilable(Increase::Models::Entity::Trust::Trustee::Individual)) } @@ -1538,7 +1551,7 @@ module Increase sig do params( - individual: T.nilable(T.any(Increase::Models::Entity::Trust::Trustee::Individual, Increase::Util::AnyHash)) + individual: T.nilable(T.any(Increase::Models::Entity::Trust::Trustee::Individual, Increase::Internal::AnyHash)) ) .void end @@ -1550,7 +1563,7 @@ module Increase sig do params( - individual: T.nilable(T.any(Increase::Models::Entity::Trust::Trustee::Individual, Increase::Util::AnyHash)), + individual: T.nilable(T.any(Increase::Models::Entity::Trust::Trustee::Individual, Increase::Internal::AnyHash)), structure: Increase::Models::Entity::Trust::Trustee::Structure::OrSymbol ) .returns(T.attached_class) @@ -1570,14 +1583,14 @@ module Increase def to_hash end - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # The person's address. sig { returns(Increase::Models::Entity::Trust::Trustee::Individual::Address) } attr_reader :address sig do params( - address: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Address, Increase::Internal::AnyHash) ) .void end @@ -1593,7 +1606,7 @@ module Increase sig do params( - identification: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Identification, Increase::Util::AnyHash) + identification: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Identification, Increase::Internal::AnyHash) ) .void end @@ -1607,9 +1620,9 @@ module Increase # `structure` is equal to `individual`. sig do params( - address: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Address, Increase::Internal::AnyHash), date_of_birth: Date, - identification: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Identification, Increase::Util::AnyHash), + identification: T.any(Increase::Models::Entity::Trust::Trustee::Individual::Identification, Increase::Internal::AnyHash), name: String ) .returns(T.attached_class) @@ -1631,7 +1644,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -1676,7 +1689,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig { returns(Increase::Models::Entity::Trust::Trustee::Individual::Identification::Method::TaggedSymbol) } attr_accessor :method_ @@ -1711,7 +1724,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Trust::Trustee::Individual::Identification::Method) } @@ -1770,7 +1783,7 @@ module Increase # The structure of the trustee. Will always be equal to `individual`. module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Trust::Trustee::Structure) } OrSymbol = @@ -1789,7 +1802,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `entity`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Entity::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Entity::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/entity_archive_beneficial_owner_params.rbi b/rbi/lib/increase/models/entity_archive_beneficial_owner_params.rbi index 9637305d..a70e2048 100644 --- a/rbi/lib/increase/models/entity_archive_beneficial_owner_params.rbi +++ b/rbi/lib/increase/models/entity_archive_beneficial_owner_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EntityArchiveBeneficialOwnerParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityArchiveBeneficialOwnerParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifying details of anyone controlling or owning 25% or more of the # corporation. @@ -14,7 +14,7 @@ module Increase sig do params( beneficial_owner_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/entity_archive_params.rbi b/rbi/lib/increase/models/entity_archive_params.rbi index e4361ec8..3b0a0217 100644 --- a/rbi/lib/increase/models/entity_archive_params.rbi +++ b/rbi/lib/increase/models/entity_archive_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class EntityArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/entity_confirm_params.rbi b/rbi/lib/increase/models/entity_confirm_params.rbi index e63a0144..6bfd3075 100644 --- a/rbi/lib/increase/models/entity_confirm_params.rbi +++ b/rbi/lib/increase/models/entity_confirm_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EntityConfirmParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityConfirmParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # When your user confirmed the Entity's details. If not provided, the current time # will be used. @@ -15,7 +15,10 @@ module Increase attr_writer :confirmed_at sig do - params(confirmed_at: Time, request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + params( + confirmed_at: Time, + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) + ) .returns(T.attached_class) end def self.new(confirmed_at: nil, request_options: {}) diff --git a/rbi/lib/increase/models/entity_create_beneficial_owner_params.rbi b/rbi/lib/increase/models/entity_create_beneficial_owner_params.rbi index 9215c037..4ddf3e17 100644 --- a/rbi/lib/increase/models/entity_create_beneficial_owner_params.rbi +++ b/rbi/lib/increase/models/entity_create_beneficial_owner_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EntityCreateBeneficialOwnerParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityCreateBeneficialOwnerParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifying details of anyone controlling or owning 25% or more of the # corporation. @@ -13,7 +13,7 @@ module Increase sig do params( - beneficial_owner: T.any(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner, Increase::Util::AnyHash) + beneficial_owner: T.any(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner, Increase::Internal::AnyHash) ) .void end @@ -21,8 +21,8 @@ module Increase sig do params( - beneficial_owner: T.any(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + beneficial_owner: T.any(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -41,7 +41,7 @@ module Increase def to_hash end - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel # Personal details for the beneficial owner. sig { returns(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual) } attr_reader :individual @@ -50,7 +50,7 @@ module Increase params( individual: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -76,7 +76,7 @@ module Increase params( individual: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), prongs: T::Array[Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong::OrSymbol], company_title: String @@ -99,7 +99,7 @@ module Increase def to_hash end - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. sig { returns(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address) } @@ -109,7 +109,7 @@ module Increase params( address: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -128,7 +128,7 @@ module Increase params( identification: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -154,12 +154,12 @@ module Increase params( address: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), date_of_birth: Date, identification: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), name: String, confirmed_no_us_tax_id: T::Boolean @@ -184,7 +184,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } attr_accessor :country @@ -248,7 +248,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig do returns( @@ -277,7 +277,7 @@ module Increase params( drivers_license: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -299,7 +299,7 @@ module Increase params( other: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -321,7 +321,7 @@ module Increase params( passport: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -335,15 +335,15 @@ module Increase number: String, drivers_license: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), other: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), passport: T.any( Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -368,7 +368,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -430,7 +430,7 @@ module Increase end end - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } attr_accessor :expiration_date @@ -473,7 +473,7 @@ module Increase end end - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # The two-character ISO 3166-1 code representing the country that issued the # document. sig { returns(String) } @@ -533,7 +533,7 @@ module Increase end end - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # The country that issued the passport. sig { returns(String) } attr_accessor :country @@ -562,7 +562,7 @@ module Increase end module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong) } diff --git a/rbi/lib/increase/models/entity_create_params.rbi b/rbi/lib/increase/models/entity_create_params.rbi index 1fafcac7..4ca0941e 100644 --- a/rbi/lib/increase/models/entity_create_params.rbi +++ b/rbi/lib/increase/models/entity_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EntityCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The type of Entity to create. sig { returns(Increase::Models::EntityCreateParams::Structure::OrSymbol) } @@ -15,7 +15,10 @@ module Increase sig { returns(T.nilable(Increase::Models::EntityCreateParams::Corporation)) } attr_reader :corporation - sig { params(corporation: T.any(Increase::Models::EntityCreateParams::Corporation, Increase::Util::AnyHash)).void } + sig do + params(corporation: T.any(Increase::Models::EntityCreateParams::Corporation, Increase::Internal::AnyHash)) + .void + end attr_writer :corporation # The description you choose to give the entity. @@ -32,7 +35,7 @@ module Increase sig do params( - government_authority: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority, Increase::Util::AnyHash) + government_authority: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority, Increase::Internal::AnyHash) ) .void end @@ -43,7 +46,7 @@ module Increase sig { returns(T.nilable(Increase::Models::EntityCreateParams::Joint)) } attr_reader :joint - sig { params(joint: T.any(Increase::Models::EntityCreateParams::Joint, Increase::Util::AnyHash)).void } + sig { params(joint: T.any(Increase::Models::EntityCreateParams::Joint, Increase::Internal::AnyHash)).void } attr_writer :joint # Details of the natural person entity to create. Required if `structure` is equal @@ -55,7 +58,7 @@ module Increase sig do params( - natural_person: T.any(Increase::Models::EntityCreateParams::NaturalPerson, Increase::Util::AnyHash) + natural_person: T.any(Increase::Models::EntityCreateParams::NaturalPerson, Increase::Internal::AnyHash) ) .void end @@ -67,7 +70,7 @@ module Increase sig do params( - supplemental_documents: T::Array[T.any(Increase::Models::EntityCreateParams::SupplementalDocument, Increase::Util::AnyHash)] + supplemental_documents: T::Array[T.any(Increase::Models::EntityCreateParams::SupplementalDocument, Increase::Internal::AnyHash)] ) .void end @@ -80,7 +83,7 @@ module Increase sig do params( - third_party_verification: T.any(Increase::Models::EntityCreateParams::ThirdPartyVerification, Increase::Util::AnyHash) + third_party_verification: T.any(Increase::Models::EntityCreateParams::ThirdPartyVerification, Increase::Internal::AnyHash) ) .void end @@ -91,21 +94,21 @@ module Increase sig { returns(T.nilable(Increase::Models::EntityCreateParams::Trust)) } attr_reader :trust - sig { params(trust: T.any(Increase::Models::EntityCreateParams::Trust, Increase::Util::AnyHash)).void } + sig { params(trust: T.any(Increase::Models::EntityCreateParams::Trust, Increase::Internal::AnyHash)).void } attr_writer :trust sig do params( structure: Increase::Models::EntityCreateParams::Structure::OrSymbol, - corporation: T.any(Increase::Models::EntityCreateParams::Corporation, Increase::Util::AnyHash), + corporation: T.any(Increase::Models::EntityCreateParams::Corporation, Increase::Internal::AnyHash), description: String, - government_authority: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority, Increase::Util::AnyHash), - joint: T.any(Increase::Models::EntityCreateParams::Joint, Increase::Util::AnyHash), - natural_person: T.any(Increase::Models::EntityCreateParams::NaturalPerson, Increase::Util::AnyHash), - supplemental_documents: T::Array[T.any(Increase::Models::EntityCreateParams::SupplementalDocument, Increase::Util::AnyHash)], - third_party_verification: T.any(Increase::Models::EntityCreateParams::ThirdPartyVerification, Increase::Util::AnyHash), - trust: T.any(Increase::Models::EntityCreateParams::Trust, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + government_authority: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority, Increase::Internal::AnyHash), + joint: T.any(Increase::Models::EntityCreateParams::Joint, Increase::Internal::AnyHash), + natural_person: T.any(Increase::Models::EntityCreateParams::NaturalPerson, Increase::Internal::AnyHash), + supplemental_documents: T::Array[T.any(Increase::Models::EntityCreateParams::SupplementalDocument, Increase::Internal::AnyHash)], + third_party_verification: T.any(Increase::Models::EntityCreateParams::ThirdPartyVerification, Increase::Internal::AnyHash), + trust: T.any(Increase::Models::EntityCreateParams::Trust, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -145,7 +148,7 @@ module Increase # The type of Entity to create. module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::Structure) } OrSymbol = @@ -172,7 +175,7 @@ module Increase end end - class Corporation < Increase::BaseModel + class Corporation < Increase::Internal::Type::BaseModel # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. sig { returns(Increase::Models::EntityCreateParams::Corporation::Address) } @@ -180,7 +183,7 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityCreateParams::Corporation::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::EntityCreateParams::Corporation::Address, Increase::Internal::AnyHash) ) .void end @@ -228,8 +231,8 @@ module Increase # `corporation`. sig do params( - address: T.any(Increase::Models::EntityCreateParams::Corporation::Address, Increase::Util::AnyHash), - beneficial_owners: T::Array[T.any(Increase::Models::EntityCreateParams::Corporation::BeneficialOwner, Increase::Util::AnyHash)], + address: T.any(Increase::Models::EntityCreateParams::Corporation::Address, Increase::Internal::AnyHash), + beneficial_owners: T::Array[T.any(Increase::Models::EntityCreateParams::Corporation::BeneficialOwner, Increase::Internal::AnyHash)], name: String, tax_identifier: String, incorporation_state: String, @@ -266,7 +269,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -310,7 +313,7 @@ module Increase end end - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel # Personal details for the beneficial owner. sig { returns(Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual) } attr_reader :individual @@ -319,7 +322,7 @@ module Increase params( individual: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -343,7 +346,7 @@ module Increase params( individual: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), prongs: T::Array[Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Prong::OrSymbol], company_title: String @@ -366,7 +369,7 @@ module Increase def to_hash end - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. sig { returns(Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address) } @@ -376,7 +379,7 @@ module Increase params( address: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -395,7 +398,7 @@ module Increase params( identification: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -421,12 +424,12 @@ module Increase params( address: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), date_of_birth: Date, identification: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), name: String, confirmed_no_us_tax_id: T::Boolean @@ -451,7 +454,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } attr_accessor :country @@ -522,7 +525,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig do returns( @@ -551,7 +554,7 @@ module Increase params( drivers_license: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -573,7 +576,7 @@ module Increase params( other: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -595,7 +598,7 @@ module Increase params( passport: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -609,15 +612,15 @@ module Increase number: String, drivers_license: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), other: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), passport: T.any( Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -642,7 +645,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -704,7 +707,7 @@ module Increase end end - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } attr_accessor :expiration_date @@ -747,7 +750,7 @@ module Increase end end - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # The two-character ISO 3166-1 code representing the country that issued the # document. sig { returns(String) } @@ -807,7 +810,7 @@ module Increase end end - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # The country that issued the passport. sig { returns(String) } attr_accessor :country @@ -836,7 +839,7 @@ module Increase end module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Prong) } @@ -867,7 +870,7 @@ module Increase end end - class GovernmentAuthority < Increase::BaseModel + class GovernmentAuthority < Increase::Internal::Type::BaseModel # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. sig { returns(Increase::Models::EntityCreateParams::GovernmentAuthority::Address) } @@ -875,7 +878,7 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority::Address, Increase::Internal::AnyHash) ) .void end @@ -908,11 +911,11 @@ module Increase # equal to `Government Authority`. sig do params( - address: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority::Address, Increase::Internal::AnyHash), authorized_persons: T::Array[ T.any( Increase::Models::EntityCreateParams::GovernmentAuthority::AuthorizedPerson, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ], category: Increase::Models::EntityCreateParams::GovernmentAuthority::Category::OrSymbol, @@ -941,7 +944,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -985,7 +988,7 @@ module Increase end end - class AuthorizedPerson < Increase::BaseModel + class AuthorizedPerson < Increase::Internal::Type::BaseModel # The person's legal name. sig { returns(String) } attr_accessor :name @@ -1001,7 +1004,7 @@ module Increase # The category of the government authority. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::GovernmentAuthority::Category) } @@ -1021,7 +1024,7 @@ module Increase end end - class Joint < Increase::BaseModel + class Joint < Increase::Internal::Type::BaseModel # The two individuals that share control of the entity. sig { returns(T::Array[Increase::Models::EntityCreateParams::Joint::Individual]) } attr_accessor :individuals @@ -1037,7 +1040,7 @@ module Increase # `joint`. sig do params( - individuals: T::Array[T.any(Increase::Models::EntityCreateParams::Joint::Individual, Increase::Util::AnyHash)], + individuals: T::Array[T.any(Increase::Models::EntityCreateParams::Joint::Individual, Increase::Internal::AnyHash)], name: String ) .returns(T.attached_class) @@ -1052,7 +1055,7 @@ module Increase def to_hash end - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. sig { returns(Increase::Models::EntityCreateParams::Joint::Individual::Address) } @@ -1060,7 +1063,7 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityCreateParams::Joint::Individual::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::EntityCreateParams::Joint::Individual::Address, Increase::Internal::AnyHash) ) .void end @@ -1076,7 +1079,10 @@ module Increase sig do params( - identification: T.any(Increase::Models::EntityCreateParams::Joint::Individual::Identification, Increase::Util::AnyHash) + identification: T.any( + Increase::Models::EntityCreateParams::Joint::Individual::Identification, + Increase::Internal::AnyHash + ) ) .void end @@ -1098,9 +1104,12 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityCreateParams::Joint::Individual::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::EntityCreateParams::Joint::Individual::Address, Increase::Internal::AnyHash), date_of_birth: Date, - identification: T.any(Increase::Models::EntityCreateParams::Joint::Individual::Identification, Increase::Util::AnyHash), + identification: T.any( + Increase::Models::EntityCreateParams::Joint::Individual::Identification, + Increase::Internal::AnyHash + ), name: String, confirmed_no_us_tax_id: T::Boolean ) @@ -1124,7 +1133,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -1168,7 +1177,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig { returns(Increase::Models::EntityCreateParams::Joint::Individual::Identification::Method::OrSymbol) } attr_accessor :method_ @@ -1191,7 +1200,7 @@ module Increase params( drivers_license: T.any( Increase::Models::EntityCreateParams::Joint::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1207,7 +1216,7 @@ module Increase params( other: T.any( Increase::Models::EntityCreateParams::Joint::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1223,7 +1232,7 @@ module Increase params( passport: T.any( Increase::Models::EntityCreateParams::Joint::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1237,15 +1246,15 @@ module Increase number: String, drivers_license: T.any( Increase::Models::EntityCreateParams::Joint::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), other: T.any( Increase::Models::EntityCreateParams::Joint::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), passport: T.any( Increase::Models::EntityCreateParams::Joint::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -1270,7 +1279,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::Joint::Individual::Identification::Method) } @@ -1328,7 +1337,7 @@ module Increase end end - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } attr_accessor :expiration_date @@ -1371,7 +1380,7 @@ module Increase end end - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # The two-character ISO 3166-1 code representing the country that issued the # document. sig { returns(String) } @@ -1431,7 +1440,7 @@ module Increase end end - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # The country that issued the passport. sig { returns(String) } attr_accessor :country @@ -1460,7 +1469,7 @@ module Increase end end - class NaturalPerson < Increase::BaseModel + class NaturalPerson < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. sig { returns(Increase::Models::EntityCreateParams::NaturalPerson::Address) } @@ -1468,7 +1477,7 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Address, Increase::Internal::AnyHash) ) .void end @@ -1484,7 +1493,7 @@ module Increase sig do params( - identification: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Identification, Increase::Util::AnyHash) + identification: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Identification, Increase::Internal::AnyHash) ) .void end @@ -1510,9 +1519,9 @@ module Increase # identification methods. sig do params( - address: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Address, Increase::Internal::AnyHash), date_of_birth: Date, - identification: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Identification, Increase::Util::AnyHash), + identification: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Identification, Increase::Internal::AnyHash), name: String, confirmed_no_us_tax_id: T::Boolean ) @@ -1536,7 +1545,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -1580,7 +1589,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig { returns(Increase::Models::EntityCreateParams::NaturalPerson::Identification::Method::OrSymbol) } attr_accessor :method_ @@ -1599,7 +1608,7 @@ module Increase params( drivers_license: T.any( Increase::Models::EntityCreateParams::NaturalPerson::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1613,7 +1622,10 @@ module Increase sig do params( - other: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Identification::Other, Increase::Util::AnyHash) + other: T.any( + Increase::Models::EntityCreateParams::NaturalPerson::Identification::Other, + Increase::Internal::AnyHash + ) ) .void end @@ -1628,7 +1640,7 @@ module Increase params( passport: T.any( Increase::Models::EntityCreateParams::NaturalPerson::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1642,12 +1654,15 @@ module Increase number: String, drivers_license: T.any( Increase::Models::EntityCreateParams::NaturalPerson::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash + ), + other: T.any( + Increase::Models::EntityCreateParams::NaturalPerson::Identification::Other, + Increase::Internal::AnyHash ), - other: T.any(Increase::Models::EntityCreateParams::NaturalPerson::Identification::Other, Increase::Util::AnyHash), passport: T.any( Increase::Models::EntityCreateParams::NaturalPerson::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -1672,7 +1687,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::NaturalPerson::Identification::Method) } @@ -1727,7 +1742,7 @@ module Increase end end - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } attr_accessor :expiration_date @@ -1763,7 +1778,7 @@ module Increase end end - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # The two-character ISO 3166-1 code representing the country that issued the # document. sig { returns(String) } @@ -1823,7 +1838,7 @@ module Increase end end - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # The country that issued the passport. sig { returns(String) } attr_accessor :country @@ -1849,7 +1864,7 @@ module Increase end end - class SupplementalDocument < Increase::BaseModel + class SupplementalDocument < Increase::Internal::Type::BaseModel # The identifier of the File containing the document. sig { returns(String) } attr_accessor :file_id @@ -1863,7 +1878,7 @@ module Increase end end - class ThirdPartyVerification < Increase::BaseModel + class ThirdPartyVerification < Increase::Internal::Type::BaseModel # The reference identifier for the third party verification. sig { returns(String) } attr_accessor :reference @@ -1895,7 +1910,7 @@ module Increase # The vendor that was used to perform the verification. module Vendor - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::ThirdPartyVerification::Vendor) } @@ -1918,13 +1933,16 @@ module Increase end end - class Trust < Increase::BaseModel + class Trust < Increase::Internal::Type::BaseModel # The trust's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. sig { returns(Increase::Models::EntityCreateParams::Trust::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::EntityCreateParams::Trust::Address, Increase::Util::AnyHash)).void } + sig do + params(address: T.any(Increase::Models::EntityCreateParams::Trust::Address, Increase::Internal::AnyHash)) + .void + end attr_writer :address # Whether the trust is `revocable` or `irrevocable`. Irrevocable trusts require @@ -1960,7 +1978,10 @@ module Increase sig { returns(T.nilable(Increase::Models::EntityCreateParams::Trust::Grantor)) } attr_reader :grantor - sig { params(grantor: T.any(Increase::Models::EntityCreateParams::Trust::Grantor, Increase::Util::AnyHash)).void } + sig do + params(grantor: T.any(Increase::Models::EntityCreateParams::Trust::Grantor, Increase::Internal::AnyHash)) + .void + end attr_writer :grantor # The Employer Identification Number (EIN) for the trust. Required if `category` @@ -1975,13 +1996,13 @@ module Increase # `trust`. sig do params( - address: T.any(Increase::Models::EntityCreateParams::Trust::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::EntityCreateParams::Trust::Address, Increase::Internal::AnyHash), category: Increase::Models::EntityCreateParams::Trust::Category::OrSymbol, name: String, - trustees: T::Array[T.any(Increase::Models::EntityCreateParams::Trust::Trustee, Increase::Util::AnyHash)], + trustees: T::Array[T.any(Increase::Models::EntityCreateParams::Trust::Trustee, Increase::Internal::AnyHash)], formation_document_file_id: String, formation_state: String, - grantor: T.any(Increase::Models::EntityCreateParams::Trust::Grantor, Increase::Util::AnyHash), + grantor: T.any(Increase::Models::EntityCreateParams::Trust::Grantor, Increase::Internal::AnyHash), tax_identifier: String ) .returns(T.attached_class) @@ -2016,7 +2037,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -2064,7 +2085,7 @@ module Increase # their own Employer Identification Number. Revocable trusts require information # about the individual `grantor` who created the trust. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::Trust::Category) } OrSymbol = @@ -2081,7 +2102,7 @@ module Increase end end - class Trustee < Increase::BaseModel + class Trustee < Increase::Internal::Type::BaseModel # The structure of the trustee. sig { returns(Increase::Models::EntityCreateParams::Trust::Trustee::Structure::OrSymbol) } attr_accessor :structure @@ -2093,7 +2114,7 @@ module Increase sig do params( - individual: T.any(Increase::Models::EntityCreateParams::Trust::Trustee::Individual, Increase::Util::AnyHash) + individual: T.any(Increase::Models::EntityCreateParams::Trust::Trustee::Individual, Increase::Internal::AnyHash) ) .void end @@ -2102,7 +2123,7 @@ module Increase sig do params( structure: Increase::Models::EntityCreateParams::Trust::Trustee::Structure::OrSymbol, - individual: T.any(Increase::Models::EntityCreateParams::Trust::Trustee::Individual, Increase::Util::AnyHash) + individual: T.any(Increase::Models::EntityCreateParams::Trust::Trustee::Individual, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -2123,7 +2144,7 @@ module Increase # The structure of the trustee. module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::Trust::Trustee::Structure) } @@ -2139,7 +2160,7 @@ module Increase end end - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. sig { returns(Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Address) } @@ -2147,7 +2168,10 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Address, Increase::Util::AnyHash) + address: T.any( + Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Address, + Increase::Internal::AnyHash + ) ) .void end @@ -2165,7 +2189,7 @@ module Increase params( identification: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -2190,11 +2214,14 @@ module Increase # equal to `individual`. sig do params( - address: T.any(Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Address, Increase::Util::AnyHash), + address: T.any( + Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Address, + Increase::Internal::AnyHash + ), date_of_birth: Date, identification: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), name: String, confirmed_no_us_tax_id: T::Boolean @@ -2219,7 +2246,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -2265,7 +2292,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig do returns( @@ -2294,7 +2321,7 @@ module Increase params( drivers_license: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -2314,7 +2341,7 @@ module Increase params( other: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -2334,7 +2361,7 @@ module Increase params( passport: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -2348,15 +2375,15 @@ module Increase number: String, drivers_license: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), other: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), passport: T.any( Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -2381,7 +2408,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Method) } @@ -2439,7 +2466,7 @@ module Increase end end - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } attr_accessor :expiration_date @@ -2482,7 +2509,7 @@ module Increase end end - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # The two-character ISO 3166-1 code representing the country that issued the # document. sig { returns(String) } @@ -2542,7 +2569,7 @@ module Increase end end - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # The country that issued the passport. sig { returns(String) } attr_accessor :country @@ -2571,7 +2598,7 @@ module Increase end end - class Grantor < Increase::BaseModel + class Grantor < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. sig { returns(Increase::Models::EntityCreateParams::Trust::Grantor::Address) } @@ -2579,7 +2606,7 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Address, Increase::Internal::AnyHash) ) .void end @@ -2595,7 +2622,7 @@ module Increase sig do params( - identification: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Identification, Increase::Util::AnyHash) + identification: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Identification, Increase::Internal::AnyHash) ) .void end @@ -2618,9 +2645,9 @@ module Increase # The grantor of the trust. Required if `category` is equal to `revocable`. sig do params( - address: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Address, Increase::Internal::AnyHash), date_of_birth: Date, - identification: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Identification, Increase::Util::AnyHash), + identification: T.any(Increase::Models::EntityCreateParams::Trust::Grantor::Identification, Increase::Internal::AnyHash), name: String, confirmed_no_us_tax_id: T::Boolean ) @@ -2644,7 +2671,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -2688,7 +2715,7 @@ module Increase end end - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel # A method that can be used to verify the individual's identity. sig { returns(Increase::Models::EntityCreateParams::Trust::Grantor::Identification::Method::OrSymbol) } attr_accessor :method_ @@ -2707,7 +2734,7 @@ module Increase params( drivers_license: T.any( Increase::Models::EntityCreateParams::Trust::Grantor::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -2723,7 +2750,7 @@ module Increase params( other: T.any( Increase::Models::EntityCreateParams::Trust::Grantor::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -2739,7 +2766,7 @@ module Increase params( passport: T.any( Increase::Models::EntityCreateParams::Trust::Grantor::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -2753,15 +2780,15 @@ module Increase number: String, drivers_license: T.any( Increase::Models::EntityCreateParams::Trust::Grantor::Identification::DriversLicense, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), other: T.any( Increase::Models::EntityCreateParams::Trust::Grantor::Identification::Other, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), passport: T.any( Increase::Models::EntityCreateParams::Trust::Grantor::Identification::Passport, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -2786,7 +2813,7 @@ module Increase # A method that can be used to verify the individual's identity. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityCreateParams::Trust::Grantor::Identification::Method) } @@ -2841,7 +2868,7 @@ module Increase end end - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel # The driver's license's expiration date in YYYY-MM-DD format. sig { returns(Date) } attr_accessor :expiration_date @@ -2884,7 +2911,7 @@ module Increase end end - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel # The two-character ISO 3166-1 code representing the country that issued the # document. sig { returns(String) } @@ -2944,7 +2971,7 @@ module Increase end end - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel # The country that issued the passport. sig { returns(String) } attr_accessor :country diff --git a/rbi/lib/increase/models/entity_list_params.rbi b/rbi/lib/increase/models/entity_list_params.rbi index 514cc12b..7eecdd2f 100644 --- a/rbi/lib/increase/models/entity_list_params.rbi +++ b/rbi/lib/increase/models/entity_list_params.rbi @@ -2,14 +2,14 @@ module Increase module Models - class EntityListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::EntityListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::EntityListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig { params(created_at: T.any(Increase::Models::EntityListParams::CreatedAt, Increase::Internal::AnyHash)).void } attr_writer :created_at # Return the page of entries after this one. @@ -40,17 +40,17 @@ module Increase sig { returns(T.nilable(Increase::Models::EntityListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::EntityListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::EntityListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( - created_at: T.any(Increase::Models::EntityListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::EntityListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::EntityListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::EntityListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -80,7 +80,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -124,7 +124,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Entities for those with the specified status or statuses. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -143,7 +143,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntityListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/entity_retrieve_params.rbi b/rbi/lib/increase/models/entity_retrieve_params.rbi index 51bc59d9..745c2de8 100644 --- a/rbi/lib/increase/models/entity_retrieve_params.rbi +++ b/rbi/lib/increase/models/entity_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class EntityRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/entity_supplemental_document.rbi b/rbi/lib/increase/models/entity_supplemental_document.rbi index a63aa075..e8e1f0fb 100644 --- a/rbi/lib/increase/models/entity_supplemental_document.rbi +++ b/rbi/lib/increase/models/entity_supplemental_document.rbi @@ -2,7 +2,7 @@ module Increase module Models - class EntitySupplementalDocument < Increase::BaseModel + class EntitySupplementalDocument < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the # Supplemental Document was created. sig { returns(Time) } @@ -60,7 +60,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `entity_supplemental_document`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EntitySupplementalDocument::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/entity_update_address_params.rbi b/rbi/lib/increase/models/entity_update_address_params.rbi index ee346c61..57625a5b 100644 --- a/rbi/lib/increase/models/entity_update_address_params.rbi +++ b/rbi/lib/increase/models/entity_update_address_params.rbi @@ -2,22 +2,25 @@ module Increase module Models - class EntityUpdateAddressParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityUpdateAddressParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. sig { returns(Increase::Models::EntityUpdateAddressParams::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::EntityUpdateAddressParams::Address, Increase::Util::AnyHash)).void } + sig do + params(address: T.any(Increase::Models::EntityUpdateAddressParams::Address, Increase::Internal::AnyHash)) + .void + end attr_writer :address sig do params( - address: T.any(Increase::Models::EntityUpdateAddressParams::Address, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + address: T.any(Increase::Models::EntityUpdateAddressParams::Address, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -33,7 +36,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city diff --git a/rbi/lib/increase/models/entity_update_beneficial_owner_address_params.rbi b/rbi/lib/increase/models/entity_update_beneficial_owner_address_params.rbi index 2b2d1ee2..359a07ac 100644 --- a/rbi/lib/increase/models/entity_update_beneficial_owner_address_params.rbi +++ b/rbi/lib/increase/models/entity_update_beneficial_owner_address_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EntityUpdateBeneficialOwnerAddressParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityUpdateBeneficialOwnerAddressParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. @@ -13,7 +13,7 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address, Increase::Internal::AnyHash) ) .void end @@ -26,9 +26,9 @@ module Increase sig do params( - address: T.any(Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address, Increase::Internal::AnyHash), beneficial_owner_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -48,7 +48,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } attr_accessor :country diff --git a/rbi/lib/increase/models/entity_update_industry_code_params.rbi b/rbi/lib/increase/models/entity_update_industry_code_params.rbi index 3f5eb816..c35b3050 100644 --- a/rbi/lib/increase/models/entity_update_industry_code_params.rbi +++ b/rbi/lib/increase/models/entity_update_industry_code_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EntityUpdateIndustryCodeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityUpdateIndustryCodeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The North American Industry Classification System (NAICS) code for the # corporation's primary line of business. This is a number, like `5132` for @@ -16,7 +16,7 @@ module Increase sig do params( industry_code: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/event.rbi b/rbi/lib/increase/models/event.rbi index 381df6ab..351f972e 100644 --- a/rbi/lib/increase/models/event.rbi +++ b/rbi/lib/increase/models/event.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Event < Increase::BaseModel + class Event < Increase::Internal::Type::BaseModel # The Event identifier. sig { returns(String) } attr_accessor :id @@ -66,7 +66,7 @@ module Increase # The category of the Event. We may add additional possible values for this enum # over time; your application should be able to handle such additions gracefully. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Event::Category) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Event::Category::TaggedSymbol) } @@ -420,7 +420,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `event`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Event::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Event::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/event_list_params.rbi b/rbi/lib/increase/models/event_list_params.rbi index 56066f79..a6414a16 100644 --- a/rbi/lib/increase/models/event_list_params.rbi +++ b/rbi/lib/increase/models/event_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EventListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Events to those belonging to the object with the provided identifier. sig { returns(T.nilable(String)) } @@ -16,13 +16,13 @@ module Increase sig { returns(T.nilable(Increase::Models::EventListParams::Category)) } attr_reader :category - sig { params(category: T.any(Increase::Models::EventListParams::Category, Increase::Util::AnyHash)).void } + sig { params(category: T.any(Increase::Models::EventListParams::Category, Increase::Internal::AnyHash)).void } attr_writer :category sig { returns(T.nilable(Increase::Models::EventListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::EventListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig { params(created_at: T.any(Increase::Models::EventListParams::CreatedAt, Increase::Internal::AnyHash)).void } attr_writer :created_at # Return the page of entries after this one. @@ -43,11 +43,11 @@ module Increase sig do params( associated_object_id: String, - category: T.any(Increase::Models::EventListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::EventListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::EventListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::EventListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -77,7 +77,7 @@ module Increase def to_hash end - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # Filter Events for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -96,7 +96,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EventListParams::Category::In) } OrSymbol = @@ -512,7 +512,7 @@ module Increase end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/event_retrieve_params.rbi b/rbi/lib/increase/models/event_retrieve_params.rbi index 9026519d..65e46f9f 100644 --- a/rbi/lib/increase/models/event_retrieve_params.rbi +++ b/rbi/lib/increase/models/event_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class EventRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/event_subscription.rbi b/rbi/lib/increase/models/event_subscription.rbi index 6dcf57fe..9fb7004f 100644 --- a/rbi/lib/increase/models/event_subscription.rbi +++ b/rbi/lib/increase/models/event_subscription.rbi @@ -2,7 +2,7 @@ module Increase module Models - class EventSubscription < Increase::BaseModel + class EventSubscription < Increase::Internal::Type::BaseModel # The event subscription identifier. sig { returns(String) } attr_accessor :id @@ -92,7 +92,7 @@ module Increase # If specified, this subscription will only receive webhooks for Events with the # specified `category`. module SelectedEventCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EventSubscription::SelectedEventCategory) } OrSymbol = @@ -622,7 +622,7 @@ module Increase # This indicates if we'll send notifications to this subscription. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EventSubscription::Status) } OrSymbol = @@ -649,7 +649,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `event_subscription`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EventSubscription::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/event_subscription_create_params.rbi b/rbi/lib/increase/models/event_subscription_create_params.rbi index e6daa199..9023d5e9 100644 --- a/rbi/lib/increase/models/event_subscription_create_params.rbi +++ b/rbi/lib/increase/models/event_subscription_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EventSubscriptionCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The URL you'd like us to send webhooks to. sig { returns(String) } @@ -45,7 +45,7 @@ module Increase oauth_connection_id: String, selected_event_category: Increase::Models::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol, shared_secret: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -76,7 +76,7 @@ module Increase # If specified, this subscription will only receive webhooks for Events with the # specified `category`. module SelectedEventCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EventSubscriptionCreateParams::SelectedEventCategory) } diff --git a/rbi/lib/increase/models/event_subscription_list_params.rbi b/rbi/lib/increase/models/event_subscription_list_params.rbi index c9ef6c85..fcb44d11 100644 --- a/rbi/lib/increase/models/event_subscription_list_params.rbi +++ b/rbi/lib/increase/models/event_subscription_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EventSubscriptionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -36,7 +36,7 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/event_subscription_retrieve_params.rbi b/rbi/lib/increase/models/event_subscription_retrieve_params.rbi index 082a07d1..1acae834 100644 --- a/rbi/lib/increase/models/event_subscription_retrieve_params.rbi +++ b/rbi/lib/increase/models/event_subscription_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class EventSubscriptionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/event_subscription_update_params.rbi b/rbi/lib/increase/models/event_subscription_update_params.rbi index 7438528a..74b91976 100644 --- a/rbi/lib/increase/models/event_subscription_update_params.rbi +++ b/rbi/lib/increase/models/event_subscription_update_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class EventSubscriptionUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The status to update the Event Subscription with. sig { returns(T.nilable(Increase::Models::EventSubscriptionUpdateParams::Status::OrSymbol)) } @@ -16,7 +16,7 @@ module Increase sig do params( status: Increase::Models::EventSubscriptionUpdateParams::Status::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -37,7 +37,7 @@ module Increase # The status to update the Event Subscription with. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::EventSubscriptionUpdateParams::Status) } OrSymbol = diff --git a/rbi/lib/increase/models/export.rbi b/rbi/lib/increase/models/export.rbi index f085e370..eee7e6a8 100644 --- a/rbi/lib/increase/models/export.rbi +++ b/rbi/lib/increase/models/export.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Export < Increase::BaseModel + class Export < Increase::Internal::Type::BaseModel # The Export identifier. sig { returns(String) } attr_accessor :id @@ -92,7 +92,7 @@ module Increase # The category of the Export. We may add additional possible values for this enum # over time; your application should be able to handle that gracefully. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Export::Category) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Export::Category::TaggedSymbol) } @@ -126,7 +126,7 @@ module Increase # The status of the Export. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Export::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Export::Status::TaggedSymbol) } @@ -148,7 +148,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `export`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Export::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Export::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/export_create_params.rbi b/rbi/lib/increase/models/export_create_params.rbi index 28984e17..5d7eb624 100644 --- a/rbi/lib/increase/models/export_create_params.rbi +++ b/rbi/lib/increase/models/export_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ExportCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExportCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The type of Export to create. sig { returns(Increase::Models::ExportCreateParams::Category::OrSymbol) } @@ -17,7 +17,7 @@ module Increase sig do params( - account_statement_ofx: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx, Increase::Util::AnyHash) + account_statement_ofx: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx, Increase::Internal::AnyHash) ) .void end @@ -28,7 +28,10 @@ module Increase sig { returns(T.nilable(Increase::Models::ExportCreateParams::BalanceCsv)) } attr_reader :balance_csv - sig { params(balance_csv: T.any(Increase::Models::ExportCreateParams::BalanceCsv, Increase::Util::AnyHash)).void } + sig do + params(balance_csv: T.any(Increase::Models::ExportCreateParams::BalanceCsv, Increase::Internal::AnyHash)) + .void + end attr_writer :balance_csv # Options for the created export. Required if `category` is equal to @@ -38,7 +41,7 @@ module Increase sig do params( - bookkeeping_account_balance_csv: T.any(Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv, Increase::Util::AnyHash) + bookkeeping_account_balance_csv: T.any(Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv, Increase::Internal::AnyHash) ) .void end @@ -48,7 +51,10 @@ module Increase sig { returns(T.nilable(Increase::Models::ExportCreateParams::EntityCsv)) } attr_reader :entity_csv - sig { params(entity_csv: T.any(Increase::Models::ExportCreateParams::EntityCsv, Increase::Util::AnyHash)).void } + sig do + params(entity_csv: T.any(Increase::Models::ExportCreateParams::EntityCsv, Increase::Internal::AnyHash)) + .void + end attr_writer :entity_csv # Options for the created export. Required if `category` is equal to @@ -58,7 +64,7 @@ module Increase sig do params( - transaction_csv: T.any(Increase::Models::ExportCreateParams::TransactionCsv, Increase::Util::AnyHash) + transaction_csv: T.any(Increase::Models::ExportCreateParams::TransactionCsv, Increase::Internal::AnyHash) ) .void end @@ -74,13 +80,13 @@ module Increase sig do params( category: Increase::Models::ExportCreateParams::Category::OrSymbol, - account_statement_ofx: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx, Increase::Util::AnyHash), - balance_csv: T.any(Increase::Models::ExportCreateParams::BalanceCsv, Increase::Util::AnyHash), - bookkeeping_account_balance_csv: T.any(Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv, Increase::Util::AnyHash), - entity_csv: T.any(Increase::Models::ExportCreateParams::EntityCsv, Increase::Util::AnyHash), - transaction_csv: T.any(Increase::Models::ExportCreateParams::TransactionCsv, Increase::Util::AnyHash), + account_statement_ofx: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx, Increase::Internal::AnyHash), + balance_csv: T.any(Increase::Models::ExportCreateParams::BalanceCsv, Increase::Internal::AnyHash), + bookkeeping_account_balance_csv: T.any(Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv, Increase::Internal::AnyHash), + entity_csv: T.any(Increase::Models::ExportCreateParams::EntityCsv, Increase::Internal::AnyHash), + transaction_csv: T.any(Increase::Models::ExportCreateParams::TransactionCsv, Increase::Internal::AnyHash), vendor_csv: T.anything, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -116,7 +122,7 @@ module Increase # The type of Export to create. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExportCreateParams::Category) } OrSymbol = @@ -147,7 +153,7 @@ module Increase end end - class AccountStatementOfx < Increase::BaseModel + class AccountStatementOfx < Increase::Internal::Type::BaseModel # The Account to create a statement for. sig { returns(String) } attr_accessor :account_id @@ -158,7 +164,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -169,7 +175,7 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx::CreatedAt, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -185,7 +191,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -231,7 +237,7 @@ module Increase end end - class BalanceCsv < Increase::BaseModel + class BalanceCsv < Increase::Internal::Type::BaseModel # Filter exported Transactions to the specified Account. sig { returns(T.nilable(String)) } attr_reader :account_id @@ -245,7 +251,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::ExportCreateParams::BalanceCsv::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::ExportCreateParams::BalanceCsv::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -263,7 +269,7 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::ExportCreateParams::BalanceCsv::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ExportCreateParams::BalanceCsv::CreatedAt, Increase::Internal::AnyHash), program_id: String ) .returns(T.attached_class) @@ -284,7 +290,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -330,7 +336,7 @@ module Increase end end - class BookkeepingAccountBalanceCsv < Increase::BaseModel + class BookkeepingAccountBalanceCsv < Increase::Internal::Type::BaseModel # Filter exported Transactions to the specified Bookkeeping Account. sig { returns(T.nilable(String)) } attr_reader :bookkeeping_account_id @@ -346,7 +352,7 @@ module Increase params( created_at: T.any( Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv::CreatedAt, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -360,7 +366,7 @@ module Increase bookkeeping_account_id: String, created_at: T.any( Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv::CreatedAt, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -380,7 +386,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -426,20 +432,24 @@ module Increase end end - class EntityCsv < Increase::BaseModel + class EntityCsv < Increase::Internal::Type::BaseModel # Entity statuses to filter by. sig { returns(T.nilable(Increase::Models::ExportCreateParams::EntityCsv::Status)) } attr_reader :status sig do - params(status: T.any(Increase::Models::ExportCreateParams::EntityCsv::Status, Increase::Util::AnyHash)) + params( + status: T.any(Increase::Models::ExportCreateParams::EntityCsv::Status, Increase::Internal::AnyHash) + ) .void end attr_writer :status # Options for the created export. Required if `category` is equal to `entity_csv`. sig do - params(status: T.any(Increase::Models::ExportCreateParams::EntityCsv::Status, Increase::Util::AnyHash)) + params( + status: T.any(Increase::Models::ExportCreateParams::EntityCsv::Status, Increase::Internal::AnyHash) + ) .returns(T.attached_class) end def self.new(status: nil) @@ -449,7 +459,7 @@ module Increase def to_hash end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Entity statuses to filter by. For GET requests, this should be encoded as a # comma-delimited string, such as `?in=one,two,three`. sig { returns(T::Array[Increase::Models::ExportCreateParams::EntityCsv::Status::In::OrSymbol]) } @@ -468,7 +478,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExportCreateParams::EntityCsv::Status::In) } @@ -491,7 +501,7 @@ module Increase end end - class TransactionCsv < Increase::BaseModel + class TransactionCsv < Increase::Internal::Type::BaseModel # Filter exported Transactions to the specified Account. sig { returns(T.nilable(String)) } attr_reader :account_id @@ -505,7 +515,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::ExportCreateParams::TransactionCsv::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::ExportCreateParams::TransactionCsv::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -523,7 +533,7 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::ExportCreateParams::TransactionCsv::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ExportCreateParams::TransactionCsv::CreatedAt, Increase::Internal::AnyHash), program_id: String ) .returns(T.attached_class) @@ -544,7 +554,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/export_list_params.rbi b/rbi/lib/increase/models/export_list_params.rbi index c2840492..0cf54cd9 100644 --- a/rbi/lib/increase/models/export_list_params.rbi +++ b/rbi/lib/increase/models/export_list_params.rbi @@ -2,20 +2,20 @@ module Increase module Models - class ExportListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExportListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::ExportListParams::Category)) } attr_reader :category - sig { params(category: T.any(Increase::Models::ExportListParams::Category, Increase::Util::AnyHash)).void } + sig { params(category: T.any(Increase::Models::ExportListParams::Category, Increase::Internal::AnyHash)).void } attr_writer :category sig { returns(T.nilable(Increase::Models::ExportListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::ExportListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig { params(created_at: T.any(Increase::Models::ExportListParams::CreatedAt, Increase::Internal::AnyHash)).void } attr_writer :created_at # Return the page of entries after this one. @@ -46,18 +46,18 @@ module Increase sig { returns(T.nilable(Increase::Models::ExportListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::ExportListParams::Status, Increase::Util::AnyHash)).void } + sig { params(status: T.any(Increase::Models::ExportListParams::Status, Increase::Internal::AnyHash)).void } attr_writer :status sig do params( - category: T.any(Increase::Models::ExportListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::ExportListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::ExportListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::ExportListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::ExportListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::ExportListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -89,7 +89,7 @@ module Increase def to_hash end - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # Filter Exports for those with the specified category or categories. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -110,7 +110,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExportListParams::Category::In) } OrSymbol = @@ -146,7 +146,7 @@ module Increase end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -190,7 +190,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Exports for those with the specified status or statuses. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -209,7 +209,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExportListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/export_retrieve_params.rbi b/rbi/lib/increase/models/export_retrieve_params.rbi index 15b55a7f..a9471313 100644 --- a/rbi/lib/increase/models/export_retrieve_params.rbi +++ b/rbi/lib/increase/models/export_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ExportRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExportRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/external_account.rbi b/rbi/lib/increase/models/external_account.rbi index d4f245cc..ed268eea 100644 --- a/rbi/lib/increase/models/external_account.rbi +++ b/rbi/lib/increase/models/external_account.rbi @@ -2,7 +2,7 @@ module Increase module Models - class ExternalAccount < Increase::BaseModel + class ExternalAccount < Increase::Internal::Type::BaseModel # The External Account's identifier. sig { returns(String) } attr_accessor :id @@ -107,7 +107,7 @@ module Increase # The type of entity that owns the External Account. module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccount::AccountHolder) } OrSymbol = @@ -129,7 +129,7 @@ module Increase # The type of the account to which the transfer will be sent. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccount::Funding) } OrSymbol = @@ -151,7 +151,7 @@ module Increase # The External Account's status. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccount::Status) } OrSymbol = @@ -171,7 +171,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `external_account`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccount::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::ExternalAccount::Type::TaggedSymbol) } @@ -185,7 +185,7 @@ module Increase # If you have verified ownership of the External Account. module VerificationStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccount::VerificationStatus) } OrSymbol = diff --git a/rbi/lib/increase/models/external_account_create_params.rbi b/rbi/lib/increase/models/external_account_create_params.rbi index 743a79a9..e732612d 100644 --- a/rbi/lib/increase/models/external_account_create_params.rbi +++ b/rbi/lib/increase/models/external_account_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ExternalAccountCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The account number for the destination account. sig { returns(String) } @@ -40,7 +40,7 @@ module Increase routing_number: String, account_holder: Increase::Models::ExternalAccountCreateParams::AccountHolder::OrSymbol, funding: Increase::Models::ExternalAccountCreateParams::Funding::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -72,7 +72,7 @@ module Increase # The type of entity that owns the External Account. module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccountCreateParams::AccountHolder) } @@ -96,7 +96,7 @@ module Increase # The type of the destination account. Defaults to `checking`. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccountCreateParams::Funding) } OrSymbol = diff --git a/rbi/lib/increase/models/external_account_list_params.rbi b/rbi/lib/increase/models/external_account_list_params.rbi index 3d615d1b..3c047f6b 100644 --- a/rbi/lib/increase/models/external_account_list_params.rbi +++ b/rbi/lib/increase/models/external_account_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ExternalAccountListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -41,7 +41,10 @@ module Increase sig { returns(T.nilable(Increase::Models::ExternalAccountListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::ExternalAccountListParams::Status, Increase::Util::AnyHash)).void } + sig do + params(status: T.any(Increase::Models::ExternalAccountListParams::Status, Increase::Internal::AnyHash)) + .void + end attr_writer :status sig do @@ -50,8 +53,8 @@ module Increase idempotency_key: String, limit: Integer, routing_number: String, - status: T.any(Increase::Models::ExternalAccountListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::ExternalAccountListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -81,7 +84,7 @@ module Increase def to_hash end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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 # `?in=one,two,three`. @@ -103,7 +106,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccountListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/external_account_retrieve_params.rbi b/rbi/lib/increase/models/external_account_retrieve_params.rbi index fe52e85b..efb9d0fb 100644 --- a/rbi/lib/increase/models/external_account_retrieve_params.rbi +++ b/rbi/lib/increase/models/external_account_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ExternalAccountRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/external_account_update_params.rbi b/rbi/lib/increase/models/external_account_update_params.rbi index dacca283..6491a539 100644 --- a/rbi/lib/increase/models/external_account_update_params.rbi +++ b/rbi/lib/increase/models/external_account_update_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ExternalAccountUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The type of entity that owns the External Account. sig { returns(T.nilable(Increase::Models::ExternalAccountUpdateParams::AccountHolder::OrSymbol)) } @@ -40,7 +40,7 @@ module Increase description: String, funding: Increase::Models::ExternalAccountUpdateParams::Funding::OrSymbol, status: Increase::Models::ExternalAccountUpdateParams::Status::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -64,7 +64,7 @@ module Increase # The type of entity that owns the External Account. module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccountUpdateParams::AccountHolder) } @@ -85,7 +85,7 @@ module Increase # The funding type of the External Account. module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccountUpdateParams::Funding) } OrSymbol = @@ -107,7 +107,7 @@ module Increase # The status of the External Account. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ExternalAccountUpdateParams::Status) } OrSymbol = diff --git a/rbi/lib/increase/models/file.rbi b/rbi/lib/increase/models/file.rbi index 831f8a62..d2ff8064 100644 --- a/rbi/lib/increase/models/file.rbi +++ b/rbi/lib/increase/models/file.rbi @@ -2,7 +2,7 @@ module Increase module Models - class File < Increase::BaseModel + class File < Increase::Internal::Type::BaseModel # The File's identifier. sig { returns(String) } attr_accessor :id @@ -96,7 +96,7 @@ module Increase # Whether the File was generated by Increase or by you and sent to Increase. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::File::Direction) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::File::Direction::TaggedSymbol) } @@ -116,7 +116,7 @@ module Increase # enum over time; your application should be able to handle such additions # gracefully. module Purpose - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::File::Purpose) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::File::Purpose::TaggedSymbol) } @@ -211,7 +211,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `file`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::File::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::File::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/file_create_params.rbi b/rbi/lib/increase/models/file_create_params.rbi index fc384ad2..35ca4738 100644 --- a/rbi/lib/increase/models/file_create_params.rbi +++ b/rbi/lib/increase/models/file_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class FileCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The file contents. This should follow the specifications of # [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file @@ -28,7 +28,7 @@ module Increase file: T.any(IO, StringIO), purpose: Increase::Models::FileCreateParams::Purpose::OrSymbol, description: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -51,7 +51,7 @@ module Increase # What the File will be used for in Increase's systems. module Purpose - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::FileCreateParams::Purpose) } OrSymbol = diff --git a/rbi/lib/increase/models/file_link.rbi b/rbi/lib/increase/models/file_link.rbi index 35eebfe0..b70965c9 100644 --- a/rbi/lib/increase/models/file_link.rbi +++ b/rbi/lib/increase/models/file_link.rbi @@ -2,7 +2,7 @@ module Increase module Models - class FileLink < Increase::BaseModel + class FileLink < Increase::Internal::Type::BaseModel # The File Link identifier. sig { returns(String) } attr_accessor :id @@ -74,7 +74,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `file_link`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::FileLink::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::FileLink::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/file_link_create_params.rbi b/rbi/lib/increase/models/file_link_create_params.rbi index 08023bfb..2505fed5 100644 --- a/rbi/lib/increase/models/file_link_create_params.rbi +++ b/rbi/lib/increase/models/file_link_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class FileLinkCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileLinkCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The File to create a File Link for. sig { returns(String) } @@ -22,7 +22,7 @@ module Increase params( file_id: String, expires_at: Time, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/file_list_params.rbi b/rbi/lib/increase/models/file_list_params.rbi index 7e1949e1..3d3f8431 100644 --- a/rbi/lib/increase/models/file_list_params.rbi +++ b/rbi/lib/increase/models/file_list_params.rbi @@ -2,14 +2,14 @@ module Increase module Models - class FileListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::FileListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::FileListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig { params(created_at: T.any(Increase::Models::FileListParams::CreatedAt, Increase::Internal::AnyHash)).void } attr_writer :created_at # Return the page of entries after this one. @@ -40,17 +40,17 @@ module Increase sig { returns(T.nilable(Increase::Models::FileListParams::Purpose)) } attr_reader :purpose - sig { params(purpose: T.any(Increase::Models::FileListParams::Purpose, Increase::Util::AnyHash)).void } + sig { params(purpose: T.any(Increase::Models::FileListParams::Purpose, Increase::Internal::AnyHash)).void } attr_writer :purpose sig do params( - created_at: T.any(Increase::Models::FileListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::FileListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - purpose: T.any(Increase::Models::FileListParams::Purpose, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + purpose: T.any(Increase::Models::FileListParams::Purpose, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -80,7 +80,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -124,7 +124,7 @@ module Increase end end - class Purpose < Increase::BaseModel + class Purpose < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::FileListParams::Purpose::In::OrSymbol])) } @@ -142,7 +142,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::FileListParams::Purpose::In) } OrSymbol = diff --git a/rbi/lib/increase/models/file_retrieve_params.rbi b/rbi/lib/increase/models/file_retrieve_params.rbi index 525a7383..e72223f9 100644 --- a/rbi/lib/increase/models/file_retrieve_params.rbi +++ b/rbi/lib/increase/models/file_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class FileRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/group.rbi b/rbi/lib/increase/models/group.rbi index 386310f5..fb2b7ab2 100644 --- a/rbi/lib/increase/models/group.rbi +++ b/rbi/lib/increase/models/group.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Group < Increase::BaseModel + class Group < Increase::Internal::Type::BaseModel # The Group identifier. sig { returns(String) } attr_accessor :id @@ -59,7 +59,7 @@ module Increase # If the Group is allowed to create ACH debits. module ACHDebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Group::ACHDebitStatus) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Group::ACHDebitStatus::TaggedSymbol) } @@ -77,7 +77,7 @@ module Increase # If the Group is activated or not. module ActivationStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Group::ActivationStatus) } OrSymbol = @@ -97,7 +97,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `group`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Group::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Group::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/group_retrieve_params.rbi b/rbi/lib/increase/models/group_retrieve_params.rbi index 3ea00705..5df16aa1 100644 --- a/rbi/lib/increase/models/group_retrieve_params.rbi +++ b/rbi/lib/increase/models/group_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class GroupRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class GroupRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/inbound_ach_transfer.rbi b/rbi/lib/increase/models/inbound_ach_transfer.rbi index 0ea45221..68e56b82 100644 --- a/rbi/lib/increase/models/inbound_ach_transfer.rbi +++ b/rbi/lib/increase/models/inbound_ach_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class InboundACHTransfer < Increase::BaseModel + class InboundACHTransfer < Increase::Internal::Type::BaseModel # The inbound ACH transfer's identifier. sig { returns(String) } attr_accessor :id @@ -13,7 +13,7 @@ module Increase sig do params( - acceptance: T.nilable(T.any(Increase::Models::InboundACHTransfer::Acceptance, Increase::Util::AnyHash)) + acceptance: T.nilable(T.any(Increase::Models::InboundACHTransfer::Acceptance, Increase::Internal::AnyHash)) ) .void end @@ -32,7 +32,9 @@ module Increase attr_reader :addenda sig do - params(addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda, Increase::Util::AnyHash))) + params( + addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda, Increase::Internal::AnyHash)) + ) .void end attr_writer :addenda @@ -55,7 +57,9 @@ module Increase attr_reader :decline sig do - params(decline: T.nilable(T.any(Increase::Models::InboundACHTransfer::Decline, Increase::Util::AnyHash))) + params( + decline: T.nilable(T.any(Increase::Models::InboundACHTransfer::Decline, Increase::Internal::AnyHash)) + ) .void end attr_writer :decline @@ -80,7 +84,7 @@ module Increase sig do params( - international_addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::InternationalAddenda, Increase::Util::AnyHash)) + international_addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::InternationalAddenda, Increase::Internal::AnyHash)) ) .void end @@ -93,7 +97,7 @@ module Increase sig do params( - notification_of_change: T.nilable(T.any(Increase::Models::InboundACHTransfer::NotificationOfChange, Increase::Util::AnyHash)) + notification_of_change: T.nilable(T.any(Increase::Models::InboundACHTransfer::NotificationOfChange, Increase::Internal::AnyHash)) ) .void end @@ -153,7 +157,7 @@ module Increase sig do params( - transfer_return: T.nilable(T.any(Increase::Models::InboundACHTransfer::TransferReturn, Increase::Util::AnyHash)) + transfer_return: T.nilable(T.any(Increase::Models::InboundACHTransfer::TransferReturn, Increase::Internal::AnyHash)) ) .void end @@ -169,19 +173,19 @@ module Increase sig do params( id: String, - acceptance: T.nilable(T.any(Increase::Models::InboundACHTransfer::Acceptance, Increase::Util::AnyHash)), + acceptance: T.nilable(T.any(Increase::Models::InboundACHTransfer::Acceptance, Increase::Internal::AnyHash)), account_id: String, account_number_id: String, - addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda, Increase::Util::AnyHash)), + addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda, Increase::Internal::AnyHash)), amount: Integer, automatically_resolves_at: Time, created_at: Time, - decline: T.nilable(T.any(Increase::Models::InboundACHTransfer::Decline, Increase::Util::AnyHash)), + decline: T.nilable(T.any(Increase::Models::InboundACHTransfer::Decline, Increase::Internal::AnyHash)), direction: Increase::Models::InboundACHTransfer::Direction::OrSymbol, effective_date: Date, expected_settlement_schedule: Increase::Models::InboundACHTransfer::ExpectedSettlementSchedule::OrSymbol, - international_addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::InternationalAddenda, Increase::Util::AnyHash)), - notification_of_change: T.nilable(T.any(Increase::Models::InboundACHTransfer::NotificationOfChange, Increase::Util::AnyHash)), + international_addenda: T.nilable(T.any(Increase::Models::InboundACHTransfer::InternationalAddenda, Increase::Internal::AnyHash)), + notification_of_change: T.nilable(T.any(Increase::Models::InboundACHTransfer::NotificationOfChange, Increase::Internal::AnyHash)), originator_company_descriptive_date: T.nilable(String), originator_company_discretionary_data: T.nilable(String), originator_company_entry_description: String, @@ -193,7 +197,7 @@ module Increase standard_entry_class_code: Increase::Models::InboundACHTransfer::StandardEntryClassCode::OrSymbol, status: Increase::Models::InboundACHTransfer::Status::OrSymbol, trace_number: String, - transfer_return: T.nilable(T.any(Increase::Models::InboundACHTransfer::TransferReturn, Increase::Util::AnyHash)), + transfer_return: T.nilable(T.any(Increase::Models::InboundACHTransfer::TransferReturn, Increase::Internal::AnyHash)), type: Increase::Models::InboundACHTransfer::Type::OrSymbol ) .returns(T.attached_class) @@ -266,7 +270,7 @@ module Increase def to_hash end - class Acceptance < Increase::BaseModel + class Acceptance < Increase::Internal::Type::BaseModel # The time at which the transfer was accepted. sig { returns(Time) } attr_accessor :accepted_at @@ -285,7 +289,7 @@ module Increase end end - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # The type of addendum. sig { returns(Increase::Models::InboundACHTransfer::Addenda::Category::TaggedSymbol) } attr_accessor :category @@ -296,7 +300,7 @@ module Increase sig do params( - freeform: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda::Freeform, Increase::Util::AnyHash)) + freeform: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda::Freeform, Increase::Internal::AnyHash)) ) .void end @@ -306,7 +310,7 @@ module Increase sig do params( category: Increase::Models::InboundACHTransfer::Addenda::Category::OrSymbol, - freeform: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda::Freeform, Increase::Util::AnyHash)) + freeform: T.nilable(T.any(Increase::Models::InboundACHTransfer::Addenda::Freeform, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -327,7 +331,7 @@ module Increase # The type of addendum. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::Addenda::Category) } OrSymbol = @@ -341,7 +345,7 @@ module Increase end end - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # Each entry represents an addendum received from the originator. sig { returns(T::Array[Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry]) } attr_accessor :entries @@ -349,7 +353,7 @@ module Increase # Unstructured `payment_related_information` passed through by the originator. sig do params( - entries: T::Array[T.any(Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry, Increase::Util::AnyHash)] + entries: T::Array[T.any(Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry, Increase::Internal::AnyHash)] ) .returns(T.attached_class) end @@ -360,7 +364,7 @@ module Increase def to_hash end - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # The payment related information passed in the addendum. sig { returns(String) } attr_accessor :payment_related_information @@ -376,7 +380,7 @@ module Increase end end - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel # The time at which the transfer was declined. sig { returns(Time) } attr_accessor :declined_at @@ -416,7 +420,7 @@ module Increase # The reason for the transfer decline. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::Decline::Reason) } OrSymbol = @@ -515,7 +519,7 @@ module Increase # The direction of the transfer. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::Direction) } OrSymbol = @@ -534,7 +538,7 @@ module Increase # The settlement schedule the transfer is expected to follow. module ExpectedSettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::ExpectedSettlementSchedule) } @@ -554,7 +558,7 @@ module Increase end end - class InternationalAddenda < Increase::BaseModel + class InternationalAddenda < Increase::Internal::Type::BaseModel # The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 # country code of the destination country. sig { returns(String) } @@ -849,7 +853,7 @@ module Increase # A description of how the foreign exchange rate was calculated. module ForeignExchangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::InternationalAddenda::ForeignExchangeIndicator) } @@ -896,7 +900,7 @@ module Increase # An instruction of how to interpret the `foreign_exchange_reference` field for # this Transaction. module ForeignExchangeReferenceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -946,7 +950,7 @@ module Increase # The type of transfer. Set by the originator. module InternationalTransactionTypeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1114,7 +1118,7 @@ module Increase # An instruction of how to interpret the # `originating_depository_financial_institution_id` field for this Transaction. module OriginatingDepositoryFinancialInstitutionIDQualifier - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1165,7 +1169,7 @@ module Increase # An instruction of how to interpret the # `receiving_depository_financial_institution_id` field for this Transaction. module ReceivingDepositoryFinancialInstitutionIDQualifier - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1214,7 +1218,7 @@ module Increase end end - class NotificationOfChange < Increase::BaseModel + class NotificationOfChange < Increase::Internal::Type::BaseModel # The new account number provided in the notification of change. sig { returns(T.nilable(String)) } attr_accessor :updated_account_number @@ -1246,7 +1250,7 @@ module Increase # The Standard Entry Class (SEC) code of the transfer. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::StandardEntryClassCode) } @@ -1339,7 +1343,7 @@ module Increase # The status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::Status) } OrSymbol = @@ -1362,7 +1366,7 @@ module Increase end end - class TransferReturn < Increase::BaseModel + class TransferReturn < Increase::Internal::Type::BaseModel # The reason for the transfer return. sig { returns(Increase::Models::InboundACHTransfer::TransferReturn::Reason::TaggedSymbol) } attr_accessor :reason @@ -1402,7 +1406,7 @@ module Increase # The reason for the transfer return. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::TransferReturn::Reason) } @@ -1479,7 +1483,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_ach_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransfer::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi b/rbi/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi index 29e373a3..b3ec0833 100644 --- a/rbi/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi +++ b/rbi/lib/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundACHTransferCreateNotificationOfChangeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferCreateNotificationOfChangeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The updated account number to send in the notification of change. sig { returns(T.nilable(String)) } @@ -24,7 +24,7 @@ module Increase params( updated_account_number: String, updated_routing_number: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/inbound_ach_transfer_decline_params.rbi b/rbi/lib/increase/models/inbound_ach_transfer_decline_params.rbi index 878259e6..9f9ffc37 100644 --- a/rbi/lib/increase/models/inbound_ach_transfer_decline_params.rbi +++ b/rbi/lib/increase/models/inbound_ach_transfer_decline_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundACHTransferDeclineParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferDeclineParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The reason why this transfer will be returned. If this parameter is unset, the # return codes will be `payment_stopped` for debits and @@ -18,7 +18,7 @@ module Increase sig do params( reason: Increase::Models::InboundACHTransferDeclineParams::Reason::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -41,7 +41,7 @@ module Increase # return codes will be `payment_stopped` for debits and # `credit_entry_refused_by_receiver` for credits. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransferDeclineParams::Reason) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_ach_transfer_list_params.rbi b/rbi/lib/increase/models/inbound_ach_transfer_list_params.rbi index 0004c25d..99a46795 100644 --- a/rbi/lib/increase/models/inbound_ach_transfer_list_params.rbi +++ b/rbi/lib/increase/models/inbound_ach_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundACHTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Inbound ACH Transfers to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -25,7 +25,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::InboundACHTransferListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::InboundACHTransferListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -49,18 +49,21 @@ module Increase sig { returns(T.nilable(Increase::Models::InboundACHTransferListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::InboundACHTransferListParams::Status, Increase::Util::AnyHash)).void } + sig do + params(status: T.any(Increase::Models::InboundACHTransferListParams::Status, Increase::Internal::AnyHash)) + .void + end attr_writer :status sig do params( account_id: String, account_number_id: String, - created_at: T.any(Increase::Models::InboundACHTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundACHTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - status: T.any(Increase::Models::InboundACHTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::InboundACHTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -92,7 +95,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -136,7 +139,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Inbound ACH Transfers to those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -158,7 +161,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransferListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_ach_transfer_retrieve_params.rbi b/rbi/lib/increase/models/inbound_ach_transfer_retrieve_params.rbi index f02f77b6..0948c80f 100644 --- a/rbi/lib/increase/models/inbound_ach_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/inbound_ach_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class InboundACHTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/inbound_ach_transfer_transfer_return_params.rbi b/rbi/lib/increase/models/inbound_ach_transfer_transfer_return_params.rbi index b4e8c9cb..c0c94b30 100644 --- a/rbi/lib/increase/models/inbound_ach_transfer_transfer_return_params.rbi +++ b/rbi/lib/increase/models/inbound_ach_transfer_transfer_return_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundACHTransferTransferReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferTransferReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # 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. @@ -14,7 +14,7 @@ module Increase sig do params( reason: Increase::Models::InboundACHTransferTransferReturnParams::Reason::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -36,7 +36,7 @@ module Increase # 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. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundACHTransferTransferReturnParams::Reason) } diff --git a/rbi/lib/increase/models/inbound_check_deposit.rbi b/rbi/lib/increase/models/inbound_check_deposit.rbi index 1624e123..99654756 100644 --- a/rbi/lib/increase/models/inbound_check_deposit.rbi +++ b/rbi/lib/increase/models/inbound_check_deposit.rbi @@ -2,7 +2,7 @@ module Increase module Models - class InboundCheckDeposit < Increase::BaseModel + class InboundCheckDeposit < Increase::Internal::Type::BaseModel # The deposit's identifier. sig { returns(String) } attr_accessor :id @@ -76,7 +76,7 @@ module Increase sig do params( - deposit_return: T.nilable(T.any(Increase::Models::InboundCheckDeposit::DepositReturn, Increase::Util::AnyHash)) + deposit_return: T.nilable(T.any(Increase::Models::InboundCheckDeposit::DepositReturn, Increase::Internal::AnyHash)) ) .void end @@ -113,7 +113,7 @@ module Increase accepted_at: T.nilable(Time), account_id: String, account_number_id: T.nilable(String), - adjustments: T::Array[T.any(Increase::Models::InboundCheckDeposit::Adjustment, Increase::Util::AnyHash)], + adjustments: T::Array[T.any(Increase::Models::InboundCheckDeposit::Adjustment, Increase::Internal::AnyHash)], amount: Integer, back_image_file_id: T.nilable(String), bank_of_first_deposit_routing_number: T.nilable(String), @@ -123,7 +123,7 @@ module Increase currency: Increase::Models::InboundCheckDeposit::Currency::OrSymbol, declined_at: T.nilable(Time), declined_transaction_id: T.nilable(String), - deposit_return: T.nilable(T.any(Increase::Models::InboundCheckDeposit::DepositReturn, Increase::Util::AnyHash)), + deposit_return: T.nilable(T.any(Increase::Models::InboundCheckDeposit::DepositReturn, Increase::Internal::AnyHash)), front_image_file_id: T.nilable(String), payee_name_analysis: Increase::Models::InboundCheckDeposit::PayeeNameAnalysis::OrSymbol, status: Increase::Models::InboundCheckDeposit::Status::OrSymbol, @@ -186,7 +186,7 @@ module Increase def to_hash end - class Adjustment < Increase::BaseModel + class Adjustment < Increase::Internal::Type::BaseModel # The time at which the return adjustment was received. sig { returns(Time) } attr_accessor :adjusted_at @@ -231,7 +231,7 @@ module Increase # The reason for the adjustment. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundCheckDeposit::Adjustment::Reason) } OrSymbol = @@ -261,7 +261,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the deposit. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundCheckDeposit::Currency) } OrSymbol = @@ -290,7 +290,7 @@ module Increase end end - class DepositReturn < Increase::BaseModel + class DepositReturn < Increase::Internal::Type::BaseModel # The reason the deposit was returned. sig { returns(Increase::Models::InboundCheckDeposit::DepositReturn::Reason::TaggedSymbol) } attr_accessor :reason @@ -331,7 +331,7 @@ module Increase # The reason the deposit was returned. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundCheckDeposit::DepositReturn::Reason) } @@ -367,7 +367,7 @@ module Increase # Whether the details on the check match the recipient name of the check transfer. # This is an optional feature, contact sales to enable. module PayeeNameAnalysis - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundCheckDeposit::PayeeNameAnalysis) } OrSymbol = @@ -392,7 +392,7 @@ module Increase # The status of the Inbound Check Deposit. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundCheckDeposit::Status) } OrSymbol = @@ -422,7 +422,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_check_deposit`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundCheckDeposit::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_check_deposit_decline_params.rbi b/rbi/lib/increase/models/inbound_check_deposit_decline_params.rbi index 705ca9ce..0d12246b 100644 --- a/rbi/lib/increase/models/inbound_check_deposit_decline_params.rbi +++ b/rbi/lib/increase/models/inbound_check_deposit_decline_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class InboundCheckDepositDeclineParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositDeclineParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/inbound_check_deposit_list_params.rbi b/rbi/lib/increase/models/inbound_check_deposit_list_params.rbi index 6ae16449..448d6574 100644 --- a/rbi/lib/increase/models/inbound_check_deposit_list_params.rbi +++ b/rbi/lib/increase/models/inbound_check_deposit_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundCheckDepositListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Inbound Check Deposits to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -26,7 +26,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::InboundCheckDepositListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::InboundCheckDepositListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -51,10 +51,10 @@ module Increase params( account_id: String, check_transfer_id: String, - created_at: T.any(Increase::Models::InboundCheckDepositListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundCheckDepositListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +84,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/inbound_check_deposit_retrieve_params.rbi b/rbi/lib/increase/models/inbound_check_deposit_retrieve_params.rbi index 88591d10..9b9fb400 100644 --- a/rbi/lib/increase/models/inbound_check_deposit_retrieve_params.rbi +++ b/rbi/lib/increase/models/inbound_check_deposit_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class InboundCheckDepositRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/inbound_check_deposit_return_params.rbi b/rbi/lib/increase/models/inbound_check_deposit_return_params.rbi index 9110d943..5beb2027 100644 --- a/rbi/lib/increase/models/inbound_check_deposit_return_params.rbi +++ b/rbi/lib/increase/models/inbound_check_deposit_return_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundCheckDepositReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The reason to return the Inbound Check Deposit. sig { returns(Increase::Models::InboundCheckDepositReturnParams::Reason::OrSymbol) } @@ -13,7 +13,7 @@ module Increase sig do params( reason: Increase::Models::InboundCheckDepositReturnParams::Reason::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -34,7 +34,7 @@ module Increase # The reason to return the Inbound Check Deposit. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundCheckDepositReturnParams::Reason) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_mail_item.rbi b/rbi/lib/increase/models/inbound_mail_item.rbi index 633a2f85..421a8a86 100644 --- a/rbi/lib/increase/models/inbound_mail_item.rbi +++ b/rbi/lib/increase/models/inbound_mail_item.rbi @@ -2,7 +2,7 @@ module Increase module Models - class InboundMailItem < Increase::BaseModel + class InboundMailItem < Increase::Internal::Type::BaseModel # The Inbound Mail Item identifier. sig { returns(String) } attr_accessor :id @@ -84,7 +84,7 @@ module Increase # If the mail item has been rejected, why it was rejected. module RejectionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundMailItem::RejectionReason) } OrSymbol = @@ -108,7 +108,7 @@ module Increase # If the mail item has been processed. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundMailItem::Status) } OrSymbol = @@ -131,7 +131,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_mail_item`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundMailItem::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::InboundMailItem::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/inbound_mail_item_list_params.rbi b/rbi/lib/increase/models/inbound_mail_item_list_params.rbi index 8de03534..b5ce7299 100644 --- a/rbi/lib/increase/models/inbound_mail_item_list_params.rbi +++ b/rbi/lib/increase/models/inbound_mail_item_list_params.rbi @@ -2,15 +2,17 @@ module Increase module Models - class InboundMailItemListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundMailItemListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::InboundMailItemListParams::CreatedAt)) } attr_reader :created_at sig do - params(created_at: T.any(Increase::Models::InboundMailItemListParams::CreatedAt, Increase::Util::AnyHash)) + params( + created_at: T.any(Increase::Models::InboundMailItemListParams::CreatedAt, Increase::Internal::AnyHash) + ) .void end attr_writer :created_at @@ -39,11 +41,11 @@ module Increase sig do params( - created_at: T.any(Increase::Models::InboundMailItemListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundMailItemListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, lockbox_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -65,7 +67,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/inbound_mail_item_retrieve_params.rbi b/rbi/lib/increase/models/inbound_mail_item_retrieve_params.rbi index d1ddea5e..b1c29587 100644 --- a/rbi/lib/increase/models/inbound_mail_item_retrieve_params.rbi +++ b/rbi/lib/increase/models/inbound_mail_item_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class InboundMailItemRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundMailItemRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/inbound_real_time_payments_transfer.rbi b/rbi/lib/increase/models/inbound_real_time_payments_transfer.rbi index 8272e06c..5dddf3e6 100644 --- a/rbi/lib/increase/models/inbound_real_time_payments_transfer.rbi +++ b/rbi/lib/increase/models/inbound_real_time_payments_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class InboundRealTimePaymentsTransfer < Increase::BaseModel + class InboundRealTimePaymentsTransfer < Increase::Internal::Type::BaseModel # The inbound Real-Time Payments transfer's identifier. sig { returns(String) } attr_accessor :id @@ -25,7 +25,9 @@ module Increase sig do params( - confirmation: T.nilable(T.any(Increase::Models::InboundRealTimePaymentsTransfer::Confirmation, Increase::Util::AnyHash)) + confirmation: T.nilable( + T.any(Increase::Models::InboundRealTimePaymentsTransfer::Confirmation, Increase::Internal::AnyHash) + ) ) .void end @@ -63,7 +65,7 @@ module Increase sig do params( - decline: T.nilable(T.any(Increase::Models::InboundRealTimePaymentsTransfer::Decline, Increase::Util::AnyHash)) + decline: T.nilable(T.any(Increase::Models::InboundRealTimePaymentsTransfer::Decline, Increase::Internal::AnyHash)) ) .void end @@ -94,14 +96,16 @@ module Increase account_id: String, account_number_id: String, amount: Integer, - confirmation: T.nilable(T.any(Increase::Models::InboundRealTimePaymentsTransfer::Confirmation, Increase::Util::AnyHash)), + confirmation: T.nilable( + T.any(Increase::Models::InboundRealTimePaymentsTransfer::Confirmation, Increase::Internal::AnyHash) + ), created_at: Time, creditor_name: String, currency: Increase::Models::InboundRealTimePaymentsTransfer::Currency::OrSymbol, debtor_account_number: String, debtor_name: String, debtor_routing_number: String, - decline: T.nilable(T.any(Increase::Models::InboundRealTimePaymentsTransfer::Decline, Increase::Util::AnyHash)), + decline: T.nilable(T.any(Increase::Models::InboundRealTimePaymentsTransfer::Decline, Increase::Internal::AnyHash)), remittance_information: T.nilable(String), status: Increase::Models::InboundRealTimePaymentsTransfer::Status::OrSymbol, transaction_identification: String, @@ -155,7 +159,7 @@ module Increase def to_hash end - class Confirmation < Increase::BaseModel + class Confirmation < Increase::Internal::Type::BaseModel # The time at which the transfer was confirmed. sig { returns(Time) } attr_accessor :confirmed_at @@ -177,7 +181,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's # currency. This will always be "USD" for a Real-Time Payments transfer. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundRealTimePaymentsTransfer::Currency) } @@ -207,7 +211,7 @@ module Increase end end - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel # The time at which the transfer was declined. sig { returns(Time) } attr_accessor :declined_at @@ -247,7 +251,7 @@ module Increase # The reason for the transfer decline. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundRealTimePaymentsTransfer::Decline::Reason) } @@ -304,7 +308,7 @@ module Increase # The lifecycle status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundRealTimePaymentsTransfer::Status) } OrSymbol = @@ -331,7 +335,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_real_time_payments_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundRealTimePaymentsTransfer::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_real_time_payments_transfer_list_params.rbi b/rbi/lib/increase/models/inbound_real_time_payments_transfer_list_params.rbi index 39d2eac3..572f45cc 100644 --- a/rbi/lib/increase/models/inbound_real_time_payments_transfer_list_params.rbi +++ b/rbi/lib/increase/models/inbound_real_time_payments_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundRealTimePaymentsTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundRealTimePaymentsTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Inbound Real-Time Payments Transfers to those belonging to the specified # Account. @@ -27,7 +27,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::InboundRealTimePaymentsTransferListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::InboundRealTimePaymentsTransferListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -52,10 +52,10 @@ module Increase params( account_id: String, account_number_id: String, - created_at: T.any(Increase::Models::InboundRealTimePaymentsTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundRealTimePaymentsTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -85,7 +85,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi b/rbi/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi index 8d769c44..ab0ef5db 100644 --- a/rbi/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class InboundRealTimePaymentsTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundRealTimePaymentsTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/inbound_wire_drawdown_request.rbi b/rbi/lib/increase/models/inbound_wire_drawdown_request.rbi index 1dc40bac..e5359362 100644 --- a/rbi/lib/increase/models/inbound_wire_drawdown_request.rbi +++ b/rbi/lib/increase/models/inbound_wire_drawdown_request.rbi @@ -2,7 +2,7 @@ module Increase module Models - class InboundWireDrawdownRequest < Increase::BaseModel + class InboundWireDrawdownRequest < Increase::Internal::Type::BaseModel # The Wire drawdown request identifier. sig { returns(String) } attr_accessor :id @@ -197,7 +197,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_wire_drawdown_request`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundWireDrawdownRequest::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_wire_drawdown_request_list_params.rbi b/rbi/lib/increase/models/inbound_wire_drawdown_request_list_params.rbi index 789d3282..088e6efb 100644 --- a/rbi/lib/increase/models/inbound_wire_drawdown_request_list_params.rbi +++ b/rbi/lib/increase/models/inbound_wire_drawdown_request_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundWireDrawdownRequestListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireDrawdownRequestListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -25,7 +25,7 @@ module Increase params( cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi b/rbi/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi index b46cd8db..2321065f 100644 --- a/rbi/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi +++ b/rbi/lib/increase/models/inbound_wire_drawdown_request_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class InboundWireDrawdownRequestRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireDrawdownRequestRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/inbound_wire_transfer.rbi b/rbi/lib/increase/models/inbound_wire_transfer.rbi index 27294210..4c689838 100644 --- a/rbi/lib/increase/models/inbound_wire_transfer.rbi +++ b/rbi/lib/increase/models/inbound_wire_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class InboundWireTransfer < Increase::BaseModel + class InboundWireTransfer < Increase::Internal::Type::BaseModel # The inbound wire transfer's identifier. sig { returns(String) } attr_accessor :id @@ -206,7 +206,7 @@ module Increase # The status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundWireTransfer::Status) } OrSymbol = @@ -232,7 +232,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_wire_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundWireTransfer::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/inbound_wire_transfer_list_params.rbi b/rbi/lib/increase/models/inbound_wire_transfer_list_params.rbi index dd763264..1e032af6 100644 --- a/rbi/lib/increase/models/inbound_wire_transfer_list_params.rbi +++ b/rbi/lib/increase/models/inbound_wire_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class InboundWireTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Inbound Wire Transfers to ones belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -25,7 +25,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::InboundWireTransferListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::InboundWireTransferListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -50,7 +50,9 @@ module Increase attr_reader :status sig do - params(status: T.any(Increase::Models::InboundWireTransferListParams::Status, Increase::Util::AnyHash)) + params( + status: T.any(Increase::Models::InboundWireTransferListParams::Status, Increase::Internal::AnyHash) + ) .void end attr_writer :status @@ -59,11 +61,11 @@ module Increase params( account_id: String, account_number_id: String, - created_at: T.any(Increase::Models::InboundWireTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundWireTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - status: T.any(Increase::Models::InboundWireTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::InboundWireTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -95,7 +97,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -139,7 +141,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Inbound Wire Transfers to those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -161,7 +163,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::InboundWireTransferListParams::Status::In) } diff --git a/rbi/lib/increase/models/inbound_wire_transfer_retrieve_params.rbi b/rbi/lib/increase/models/inbound_wire_transfer_retrieve_params.rbi index 2e11a5b8..386e638a 100644 --- a/rbi/lib/increase/models/inbound_wire_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/inbound_wire_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class InboundWireTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/intrafi_account_enrollment.rbi b/rbi/lib/increase/models/intrafi_account_enrollment.rbi index 88e71fb5..081adccb 100644 --- a/rbi/lib/increase/models/intrafi_account_enrollment.rbi +++ b/rbi/lib/increase/models/intrafi_account_enrollment.rbi @@ -2,7 +2,7 @@ module Increase module Models - class IntrafiAccountEnrollment < Increase::BaseModel + class IntrafiAccountEnrollment < Increase::Internal::Type::BaseModel # The identifier of this enrollment at IntraFi. sig { returns(String) } attr_accessor :id @@ -79,7 +79,7 @@ module Increase # The status of the account in the network. An account takes about one business # day to go from `pending_enrolling` to `enrolled`. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::IntrafiAccountEnrollment::Status) } OrSymbol = @@ -111,7 +111,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `intrafi_account_enrollment`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::IntrafiAccountEnrollment::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/intrafi_account_enrollment_create_params.rbi b/rbi/lib/increase/models/intrafi_account_enrollment_create_params.rbi index bbf032ce..a37136bf 100644 --- a/rbi/lib/increase/models/intrafi_account_enrollment_create_params.rbi +++ b/rbi/lib/increase/models/intrafi_account_enrollment_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class IntrafiAccountEnrollmentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier for the account to be added to IntraFi. sig { returns(String) } @@ -18,7 +18,7 @@ module Increase params( account_id: String, email_address: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/intrafi_account_enrollment_list_params.rbi b/rbi/lib/increase/models/intrafi_account_enrollment_list_params.rbi index d353e8f8..686db33d 100644 --- a/rbi/lib/increase/models/intrafi_account_enrollment_list_params.rbi +++ b/rbi/lib/increase/models/intrafi_account_enrollment_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class IntrafiAccountEnrollmentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter IntraFi Account Enrollments to the one belonging to an account. sig { returns(T.nilable(String)) } @@ -43,7 +43,7 @@ module Increase sig do params( - status: T.any(Increase::Models::IntrafiAccountEnrollmentListParams::Status, Increase::Util::AnyHash) + status: T.any(Increase::Models::IntrafiAccountEnrollmentListParams::Status, Increase::Internal::AnyHash) ) .void end @@ -55,8 +55,8 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::IntrafiAccountEnrollmentListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::IntrafiAccountEnrollmentListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -86,7 +86,7 @@ module Increase def to_hash end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter IntraFi Account Enrollments for those with the specified status or # statuses. For GET requests, this should be encoded as a comma-delimited string, # such as `?in=one,two,three`. @@ -111,7 +111,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::IntrafiAccountEnrollmentListParams::Status::In) } diff --git a/rbi/lib/increase/models/intrafi_account_enrollment_retrieve_params.rbi b/rbi/lib/increase/models/intrafi_account_enrollment_retrieve_params.rbi index ba1868b5..f196ba26 100644 --- a/rbi/lib/increase/models/intrafi_account_enrollment_retrieve_params.rbi +++ b/rbi/lib/increase/models/intrafi_account_enrollment_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class IntrafiAccountEnrollmentRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/intrafi_account_enrollment_unenroll_params.rbi b/rbi/lib/increase/models/intrafi_account_enrollment_unenroll_params.rbi index 4c251b12..ff66e00f 100644 --- a/rbi/lib/increase/models/intrafi_account_enrollment_unenroll_params.rbi +++ b/rbi/lib/increase/models/intrafi_account_enrollment_unenroll_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class IntrafiAccountEnrollmentUnenrollParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentUnenrollParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/intrafi_balance.rbi b/rbi/lib/increase/models/intrafi_balance.rbi index 9329ad9a..9896f277 100644 --- a/rbi/lib/increase/models/intrafi_balance.rbi +++ b/rbi/lib/increase/models/intrafi_balance.rbi @@ -2,7 +2,7 @@ module Increase module Models - class IntrafiBalance < Increase::BaseModel + class IntrafiBalance < Increase::Internal::Type::BaseModel # The identifier of this balance. sig { returns(String) } attr_accessor :id @@ -37,7 +37,7 @@ module Increase sig do params( id: String, - balances: T::Array[T.any(Increase::Models::IntrafiBalance::Balance, Increase::Util::AnyHash)], + balances: T::Array[T.any(Increase::Models::IntrafiBalance::Balance, Increase::Internal::AnyHash)], currency: Increase::Models::IntrafiBalance::Currency::OrSymbol, effective_date: Date, total_balance: Integer, @@ -64,7 +64,7 @@ module Increase def to_hash end - class Balance < Increase::BaseModel + class Balance < Increase::Internal::Type::BaseModel # The identifier of this balance. sig { returns(String) } attr_accessor :id @@ -83,7 +83,7 @@ module Increase sig do params( - bank_location: T.nilable(T.any(Increase::Models::IntrafiBalance::Balance::BankLocation, Increase::Util::AnyHash)) + bank_location: T.nilable(T.any(Increase::Models::IntrafiBalance::Balance::BankLocation, Increase::Internal::AnyHash)) ) .void end @@ -100,7 +100,7 @@ module Increase id: String, balance: Integer, bank: String, - bank_location: T.nilable(T.any(Increase::Models::IntrafiBalance::Balance::BankLocation, Increase::Util::AnyHash)), + bank_location: T.nilable(T.any(Increase::Models::IntrafiBalance::Balance::BankLocation, Increase::Internal::AnyHash)), fdic_certificate_number: String ) .returns(T.attached_class) @@ -123,7 +123,7 @@ module Increase def to_hash end - class BankLocation < Increase::BaseModel + class BankLocation < Increase::Internal::Type::BaseModel # The bank's city. sig { returns(String) } attr_accessor :city @@ -146,7 +146,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the account # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::IntrafiBalance::Currency) } OrSymbol = @@ -178,7 +178,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `intrafi_balance`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::IntrafiBalance::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::IntrafiBalance::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/intrafi_balance_intrafi_balance_params.rbi b/rbi/lib/increase/models/intrafi_balance_intrafi_balance_params.rbi index 0275a82e..a0d43cff 100644 --- a/rbi/lib/increase/models/intrafi_balance_intrafi_balance_params.rbi +++ b/rbi/lib/increase/models/intrafi_balance_intrafi_balance_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class IntrafiBalanceIntrafiBalanceParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiBalanceIntrafiBalanceParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/intrafi_exclusion.rbi b/rbi/lib/increase/models/intrafi_exclusion.rbi index e6f1ee49..f553ad3b 100644 --- a/rbi/lib/increase/models/intrafi_exclusion.rbi +++ b/rbi/lib/increase/models/intrafi_exclusion.rbi @@ -2,7 +2,7 @@ module Increase module Models - class IntrafiExclusion < Increase::BaseModel + class IntrafiExclusion < Increase::Internal::Type::BaseModel # The identifier of this exclusion request. sig { returns(String) } attr_accessor :id @@ -103,7 +103,7 @@ module Increase # The status of the exclusion request. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::IntrafiExclusion::Status) } OrSymbol = @@ -126,7 +126,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `intrafi_exclusion`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::IntrafiExclusion::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::IntrafiExclusion::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/intrafi_exclusion_archive_params.rbi b/rbi/lib/increase/models/intrafi_exclusion_archive_params.rbi index 1a4448e7..823512a9 100644 --- a/rbi/lib/increase/models/intrafi_exclusion_archive_params.rbi +++ b/rbi/lib/increase/models/intrafi_exclusion_archive_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class IntrafiExclusionArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/intrafi_exclusion_create_params.rbi b/rbi/lib/increase/models/intrafi_exclusion_create_params.rbi index 1491fa24..f4088489 100644 --- a/rbi/lib/increase/models/intrafi_exclusion_create_params.rbi +++ b/rbi/lib/increase/models/intrafi_exclusion_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class IntrafiExclusionCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The name of the financial institution to be excluded. sig { returns(String) } @@ -18,7 +18,7 @@ module Increase params( bank_name: String, entity_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/intrafi_exclusion_list_params.rbi b/rbi/lib/increase/models/intrafi_exclusion_list_params.rbi index 199f187c..441caf95 100644 --- a/rbi/lib/increase/models/intrafi_exclusion_list_params.rbi +++ b/rbi/lib/increase/models/intrafi_exclusion_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class IntrafiExclusionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -44,7 +44,7 @@ module Increase entity_id: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/intrafi_exclusion_retrieve_params.rbi b/rbi/lib/increase/models/intrafi_exclusion_retrieve_params.rbi index 33f8f506..031c69aa 100644 --- a/rbi/lib/increase/models/intrafi_exclusion_retrieve_params.rbi +++ b/rbi/lib/increase/models/intrafi_exclusion_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class IntrafiExclusionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/lockbox.rbi b/rbi/lib/increase/models/lockbox.rbi index 7488e69a..98e62715 100644 --- a/rbi/lib/increase/models/lockbox.rbi +++ b/rbi/lib/increase/models/lockbox.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Lockbox < Increase::BaseModel + class Lockbox < Increase::Internal::Type::BaseModel # The Lockbox identifier. sig { returns(String) } attr_accessor :id @@ -16,7 +16,7 @@ module Increase sig { returns(Increase::Models::Lockbox::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::Lockbox::Address, Increase::Util::AnyHash)).void } + sig { params(address: T.any(Increase::Models::Lockbox::Address, Increase::Internal::AnyHash)).void } attr_writer :address # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox @@ -53,7 +53,7 @@ module Increase params( id: String, account_id: String, - address: T.any(Increase::Models::Lockbox::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::Lockbox::Address, Increase::Internal::AnyHash), created_at: Time, description: T.nilable(String), idempotency_key: T.nilable(String), @@ -95,7 +95,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the address. sig { returns(String) } attr_accessor :city @@ -158,7 +158,7 @@ module Increase # This indicates if mail can be sent to this address. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Lockbox::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Lockbox::Status::TaggedSymbol) } @@ -177,7 +177,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `lockbox`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Lockbox::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Lockbox::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/lockbox_create_params.rbi b/rbi/lib/increase/models/lockbox_create_params.rbi index 3a467d75..aafda9c0 100644 --- a/rbi/lib/increase/models/lockbox_create_params.rbi +++ b/rbi/lib/increase/models/lockbox_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class LockboxCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The Account checks sent to this Lockbox should be deposited into. sig { returns(String) } @@ -29,7 +29,7 @@ module Increase account_id: String, description: String, recipient_name: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/lockbox_list_params.rbi b/rbi/lib/increase/models/lockbox_list_params.rbi index e071925f..2889ff44 100644 --- a/rbi/lib/increase/models/lockbox_list_params.rbi +++ b/rbi/lib/increase/models/lockbox_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class LockboxListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Lockboxes to those associated with the provided Account. sig { returns(T.nilable(String)) } @@ -16,7 +16,7 @@ module Increase sig { returns(T.nilable(Increase::Models::LockboxListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::LockboxListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig { params(created_at: T.any(Increase::Models::LockboxListParams::CreatedAt, Increase::Internal::AnyHash)).void } attr_writer :created_at # Return the page of entries after this one. @@ -47,11 +47,11 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::LockboxListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::LockboxListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -81,7 +81,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/lockbox_retrieve_params.rbi b/rbi/lib/increase/models/lockbox_retrieve_params.rbi index 8865f4d2..b6a54071 100644 --- a/rbi/lib/increase/models/lockbox_retrieve_params.rbi +++ b/rbi/lib/increase/models/lockbox_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class LockboxRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/lockbox_update_params.rbi b/rbi/lib/increase/models/lockbox_update_params.rbi index bf0d93e3..979642a4 100644 --- a/rbi/lib/increase/models/lockbox_update_params.rbi +++ b/rbi/lib/increase/models/lockbox_update_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class LockboxUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The description you choose for the Lockbox. sig { returns(T.nilable(String)) } @@ -32,7 +32,7 @@ module Increase description: String, recipient_name: String, status: Increase::Models::LockboxUpdateParams::Status::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -55,7 +55,7 @@ module Increase # This indicates if checks can be sent to the Lockbox. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::LockboxUpdateParams::Status) } OrSymbol = diff --git a/rbi/lib/increase/models/oauth_application.rbi b/rbi/lib/increase/models/oauth_application.rbi index 1e8b9c7f..8372135f 100644 --- a/rbi/lib/increase/models/oauth_application.rbi +++ b/rbi/lib/increase/models/oauth_application.rbi @@ -2,7 +2,7 @@ module Increase module Models - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # The OAuth Application's identifier. sig { returns(String) } attr_accessor :id @@ -73,7 +73,7 @@ module Increase # Whether the application is active. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthApplication::Status) } OrSymbol = @@ -93,7 +93,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `oauth_application`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthApplication::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::OAuthApplication::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/oauth_application_list_params.rbi b/rbi/lib/increase/models/oauth_application_list_params.rbi index c881c8b5..ad0260bd 100644 --- a/rbi/lib/increase/models/oauth_application_list_params.rbi +++ b/rbi/lib/increase/models/oauth_application_list_params.rbi @@ -2,16 +2,16 @@ module Increase module Models - class OAuthApplicationListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthApplicationListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::OAuthApplicationListParams::CreatedAt)) } attr_reader :created_at sig do params( - created_at: T.any(Increase::Models::OAuthApplicationListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::OAuthApplicationListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -35,16 +35,19 @@ module Increase sig { returns(T.nilable(Increase::Models::OAuthApplicationListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::OAuthApplicationListParams::Status, Increase::Util::AnyHash)).void } + sig do + params(status: T.any(Increase::Models::OAuthApplicationListParams::Status, Increase::Internal::AnyHash)) + .void + end attr_writer :status sig do params( - created_at: T.any(Increase::Models::OAuthApplicationListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::OAuthApplicationListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - status: T.any(Increase::Models::OAuthApplicationListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::OAuthApplicationListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -66,7 +69,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -110,7 +113,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::OAuthApplicationListParams::Status::In::OrSymbol])) } @@ -131,7 +134,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthApplicationListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/oauth_application_retrieve_params.rbi b/rbi/lib/increase/models/oauth_application_retrieve_params.rbi index a31bcda7..3e5a9401 100644 --- a/rbi/lib/increase/models/oauth_application_retrieve_params.rbi +++ b/rbi/lib/increase/models/oauth_application_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class OAuthApplicationRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthApplicationRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/oauth_connection.rbi b/rbi/lib/increase/models/oauth_connection.rbi index 86f0ff14..958f8029 100644 --- a/rbi/lib/increase/models/oauth_connection.rbi +++ b/rbi/lib/increase/models/oauth_connection.rbi @@ -2,7 +2,7 @@ module Increase module Models - class OAuthConnection < Increase::BaseModel + class OAuthConnection < Increase::Internal::Type::BaseModel # The OAuth Connection's identifier. sig { returns(String) } attr_accessor :id @@ -71,7 +71,7 @@ module Increase # Whether the connection is active. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthConnection::Status) } OrSymbol = @@ -91,7 +91,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `oauth_connection`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthConnection::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::OAuthConnection::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/oauth_connection_list_params.rbi b/rbi/lib/increase/models/oauth_connection_list_params.rbi index 70ba768f..ec7fc0ca 100644 --- a/rbi/lib/increase/models/oauth_connection_list_params.rbi +++ b/rbi/lib/increase/models/oauth_connection_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class OAuthConnectionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthConnectionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -32,7 +32,10 @@ module Increase sig { returns(T.nilable(Increase::Models::OAuthConnectionListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::OAuthConnectionListParams::Status, Increase::Util::AnyHash)).void } + sig do + params(status: T.any(Increase::Models::OAuthConnectionListParams::Status, Increase::Internal::AnyHash)) + .void + end attr_writer :status sig do @@ -40,8 +43,8 @@ module Increase cursor: String, limit: Integer, oauth_application_id: String, - status: T.any(Increase::Models::OAuthConnectionListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::OAuthConnectionListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -63,7 +66,7 @@ module Increase def to_hash end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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 # string, such as `?in=one,two,three`. @@ -85,7 +88,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthConnectionListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/oauth_connection_retrieve_params.rbi b/rbi/lib/increase/models/oauth_connection_retrieve_params.rbi index d105a56f..a070f3ba 100644 --- a/rbi/lib/increase/models/oauth_connection_retrieve_params.rbi +++ b/rbi/lib/increase/models/oauth_connection_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class OAuthConnectionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthConnectionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/oauth_token.rbi b/rbi/lib/increase/models/oauth_token.rbi index b14b22b5..690ac9e0 100644 --- a/rbi/lib/increase/models/oauth_token.rbi +++ b/rbi/lib/increase/models/oauth_token.rbi @@ -2,7 +2,7 @@ module Increase module Models - class OAuthToken < Increase::BaseModel + class OAuthToken < Increase::Internal::Type::BaseModel # You may use this token in place of an API key to make OAuth requests on a user's # behalf. sig { returns(String) } @@ -46,7 +46,7 @@ module Increase # The type of OAuth token. module TokenType - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthToken::TokenType) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::OAuthToken::TokenType::TaggedSymbol) } @@ -61,7 +61,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `oauth_token`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthToken::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::OAuthToken::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/oauth_token_create_params.rbi b/rbi/lib/increase/models/oauth_token_create_params.rbi index 105ab681..42696278 100644 --- a/rbi/lib/increase/models/oauth_token_create_params.rbi +++ b/rbi/lib/increase/models/oauth_token_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class OAuthTokenCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthTokenCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The credential you request in exchange for the code. In Production, this is # always `authorization_code`. In Sandbox, you can pass either enum value. @@ -51,7 +51,7 @@ module Increase client_secret: String, code: String, production_token: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +84,7 @@ module Increase # The credential you request in exchange for the code. In Production, this is # always `authorization_code`. In Sandbox, you can pass either enum value. module GrantType - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::OAuthTokenCreateParams::GrantType) } OrSymbol = diff --git a/rbi/lib/increase/models/pending_transaction.rbi b/rbi/lib/increase/models/pending_transaction.rbi index 3d294fed..f4592237 100644 --- a/rbi/lib/increase/models/pending_transaction.rbi +++ b/rbi/lib/increase/models/pending_transaction.rbi @@ -2,7 +2,7 @@ module Increase module Models - class PendingTransaction < Increase::BaseModel + class PendingTransaction < Increase::Internal::Type::BaseModel # The Pending Transaction identifier. sig { returns(String) } attr_accessor :id @@ -53,7 +53,7 @@ module Increase sig { returns(Increase::Models::PendingTransaction::Source) } attr_reader :source - sig { params(source: T.any(Increase::Models::PendingTransaction::Source, Increase::Util::AnyHash)).void } + sig { params(source: T.any(Increase::Models::PendingTransaction::Source, Increase::Internal::AnyHash)).void } attr_writer :source # Whether the Pending Transaction has been confirmed and has an associated @@ -79,7 +79,7 @@ module Increase description: String, route_id: T.nilable(String), route_type: T.nilable(Increase::Models::PendingTransaction::RouteType::OrSymbol), - source: T.any(Increase::Models::PendingTransaction::Source, Increase::Util::AnyHash), + source: T.any(Increase::Models::PendingTransaction::Source, Increase::Internal::AnyHash), status: Increase::Models::PendingTransaction::Status::OrSymbol, type: Increase::Models::PendingTransaction::Type::OrSymbol ) @@ -127,7 +127,7 @@ module Increase # Transaction's currency. This will match the currency on the Pending # Transaction's Account. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Currency) } OrSymbol = @@ -158,7 +158,7 @@ module Increase # The type of the route this Pending Transaction came through. module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::RouteType) } OrSymbol = @@ -178,7 +178,7 @@ module Increase end end - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(Increase::Models::PendingTransaction::Source::AccountTransferInstruction)) } @@ -187,7 +187,10 @@ module Increase sig do params( account_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::AccountTransferInstruction, Increase::Util::AnyHash) + T.any( + Increase::Models::PendingTransaction::Source::AccountTransferInstruction, + Increase::Internal::AnyHash + ) ) ) .void @@ -202,7 +205,7 @@ module Increase sig do params( ach_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::ACHTransferInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::ACHTransferInstruction, Increase::Internal::AnyHash) ) ) .void @@ -218,7 +221,9 @@ module Increase sig do params( - card_authorization: T.nilable(T.any(Increase::Models::PendingTransaction::Source::CardAuthorization, Increase::Util::AnyHash)) + card_authorization: T.nilable( + T.any(Increase::Models::PendingTransaction::Source::CardAuthorization, Increase::Internal::AnyHash) + ) ) .void end @@ -237,7 +242,7 @@ module Increase sig do params( check_deposit_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::CheckDepositInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::CheckDepositInstruction, Increase::Internal::AnyHash) ) ) .void @@ -252,7 +257,7 @@ module Increase sig do params( check_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::CheckTransferInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::CheckTransferInstruction, Increase::Internal::AnyHash) ) ) .void @@ -268,7 +273,9 @@ module Increase sig do params( - inbound_funds_hold: T.nilable(T.any(Increase::Models::PendingTransaction::Source::InboundFundsHold, Increase::Util::AnyHash)) + inbound_funds_hold: T.nilable( + T.any(Increase::Models::PendingTransaction::Source::InboundFundsHold, Increase::Internal::AnyHash) + ) ) .void end @@ -284,7 +291,10 @@ module Increase sig do params( inbound_wire_transfer_reversal: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::InboundWireTransferReversal, Increase::Util::AnyHash) + T.any( + Increase::Models::PendingTransaction::Source::InboundWireTransferReversal, + Increase::Internal::AnyHash + ) ) ) .void @@ -307,7 +317,7 @@ module Increase real_time_payments_transfer_instruction: T.nilable( T.any( Increase::Models::PendingTransaction::Source::RealTimePaymentsTransferInstruction, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -323,7 +333,7 @@ module Increase sig do params( wire_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::WireTransferInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::WireTransferInstruction, Increase::Internal::AnyHash) ) ) .void @@ -336,32 +346,42 @@ module Increase sig do params( account_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::AccountTransferInstruction, Increase::Util::AnyHash) + T.any( + Increase::Models::PendingTransaction::Source::AccountTransferInstruction, + Increase::Internal::AnyHash + ) ), ach_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::ACHTransferInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::ACHTransferInstruction, Increase::Internal::AnyHash) + ), + card_authorization: T.nilable( + T.any(Increase::Models::PendingTransaction::Source::CardAuthorization, Increase::Internal::AnyHash) ), - card_authorization: T.nilable(T.any(Increase::Models::PendingTransaction::Source::CardAuthorization, Increase::Util::AnyHash)), category: Increase::Models::PendingTransaction::Source::Category::OrSymbol, check_deposit_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::CheckDepositInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::CheckDepositInstruction, Increase::Internal::AnyHash) ), check_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::CheckTransferInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::CheckTransferInstruction, Increase::Internal::AnyHash) + ), + inbound_funds_hold: T.nilable( + T.any(Increase::Models::PendingTransaction::Source::InboundFundsHold, Increase::Internal::AnyHash) ), - inbound_funds_hold: T.nilable(T.any(Increase::Models::PendingTransaction::Source::InboundFundsHold, Increase::Util::AnyHash)), inbound_wire_transfer_reversal: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::InboundWireTransferReversal, Increase::Util::AnyHash) + T.any( + Increase::Models::PendingTransaction::Source::InboundWireTransferReversal, + Increase::Internal::AnyHash + ) ), other: T.nilable(T.anything), real_time_payments_transfer_instruction: T.nilable( T.any( Increase::Models::PendingTransaction::Source::RealTimePaymentsTransferInstruction, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), wire_transfer_instruction: T.nilable( - T.any(Increase::Models::PendingTransaction::Source::WireTransferInstruction, Increase::Util::AnyHash) + T.any(Increase::Models::PendingTransaction::Source::WireTransferInstruction, Increase::Internal::AnyHash) ) ) .returns(T.attached_class) @@ -402,7 +422,7 @@ module Increase def to_hash end - class AccountTransferInstruction < Increase::BaseModel + class AccountTransferInstruction < Increase::Internal::Type::BaseModel # The pending amount in the minor unit of the transaction's currency. For dollars, # for example, this is cents. sig { returns(Integer) } @@ -446,7 +466,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination # account currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::AccountTransferInstruction::Currency) } @@ -512,7 +532,7 @@ module Increase end end - class ACHTransferInstruction < Increase::BaseModel + class ACHTransferInstruction < Increase::Internal::Type::BaseModel # The pending amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -532,7 +552,7 @@ module Increase end end - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # The Card Authorization identifier. sig { returns(String) } attr_accessor :id @@ -610,7 +630,7 @@ module Increase params( network_details: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -625,7 +645,7 @@ module Increase params( network_identifiers: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -683,7 +703,7 @@ module Increase params( verification: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::Verification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -713,11 +733,11 @@ module Increase merchant_state: T.nilable(String), network_details: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), network_identifiers: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkIdentifiers, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), network_risk_score: T.nilable(Integer), pending_transaction_id: T.nilable(String), @@ -730,7 +750,7 @@ module Increase type: Increase::Models::PendingTransaction::Source::CardAuthorization::Type::OrSymbol, verification: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::Verification, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -806,7 +826,7 @@ module Increase # Whether this authorization was approved by Increase, the card network through # stand-in processing, or the user through a real-time decision. module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Actioner) } @@ -842,7 +862,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Currency) } @@ -890,7 +910,7 @@ module Increase # The direction describes the direction the funds will move, either from the # cardholder to the merchant or from the merchant to the cardholder. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Direction) } @@ -924,7 +944,7 @@ module Increase end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. sig do returns( @@ -942,7 +962,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -957,7 +977,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -980,7 +1000,7 @@ module Increase # The payment network used to process this card authorization. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Category) } @@ -1010,7 +1030,7 @@ module Increase end end - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. @@ -1090,7 +1110,7 @@ module Increase # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1176,7 +1196,7 @@ module Increase # The method used to enter the cardholder's primary account number and card # expiration date. module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1276,7 +1296,7 @@ module Increase # Only present when `actioner: network`. Describes why a card authorization was # approved or declined by Visa through stand-in processing. module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1354,7 +1374,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -1400,7 +1420,7 @@ module Increase # The processing category describes the intent behind the authorization, such as # whether it was used for bill payments or an automatic fuel dispenser. module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::ProcessingCategory) } @@ -1468,7 +1488,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_authorization`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Type) } @@ -1489,7 +1509,7 @@ module Increase end end - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. sig do @@ -1503,7 +1523,7 @@ module Increase params( card_verification_code: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1519,7 +1539,7 @@ module Increase params( cardholder_address: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1531,11 +1551,11 @@ module Increase params( card_verification_code: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), cardholder_address: T.any( Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -1555,7 +1575,7 @@ module Increase def to_hash end - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # The result of verifying the Card Verification Code. sig do returns( @@ -1588,7 +1608,7 @@ module Increase # The result of verifying the Card Verification Code. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1637,7 +1657,7 @@ module Increase end end - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } attr_accessor :actual_line1 @@ -1701,7 +1721,7 @@ module Increase # The address verification result returned to the card network. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1776,7 +1796,7 @@ module Increase # 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. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::Category) } OrSymbol = @@ -1832,7 +1852,7 @@ module Increase end end - class CheckDepositInstruction < Increase::BaseModel + class CheckDepositInstruction < Increase::Internal::Type::BaseModel # The pending amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -1889,7 +1909,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CheckDepositInstruction::Currency) } @@ -1937,7 +1957,7 @@ module Increase end end - class CheckTransferInstruction < Increase::BaseModel + class CheckTransferInstruction < Increase::Internal::Type::BaseModel # The transfer amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -1980,7 +2000,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::CheckTransferInstruction::Currency) } @@ -2046,7 +2066,7 @@ module Increase end end - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel # The Inbound Funds Hold identifier. sig { returns(String) } attr_accessor :id @@ -2148,7 +2168,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::InboundFundsHold::Currency) } @@ -2189,7 +2209,7 @@ module Increase # The status of the hold. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::InboundFundsHold::Status) } @@ -2220,7 +2240,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_funds_hold`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Source::InboundFundsHold::Type) } @@ -2242,7 +2262,7 @@ module Increase end end - class InboundWireTransferReversal < Increase::BaseModel + class InboundWireTransferReversal < Increase::Internal::Type::BaseModel # The ID of the Inbound Wire Transfer that is being reversed. sig { returns(String) } attr_accessor :inbound_wire_transfer_id @@ -2260,7 +2280,7 @@ module Increase end end - class RealTimePaymentsTransferInstruction < Increase::BaseModel + class RealTimePaymentsTransferInstruction < Increase::Internal::Type::BaseModel # The transfer amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -2282,7 +2302,7 @@ module Increase end end - class WireTransferInstruction < Increase::BaseModel + class WireTransferInstruction < Increase::Internal::Type::BaseModel # The account number for the destination account. sig { returns(String) } attr_accessor :account_number @@ -2339,7 +2359,7 @@ module Increase # Whether the Pending Transaction has been confirmed and has an associated # Transaction. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Status) } OrSymbol = @@ -2359,7 +2379,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `pending_transaction`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransaction::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/pending_transaction_list_params.rbi b/rbi/lib/increase/models/pending_transaction_list_params.rbi index 479ab22f..6e5e2a29 100644 --- a/rbi/lib/increase/models/pending_transaction_list_params.rbi +++ b/rbi/lib/increase/models/pending_transaction_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class PendingTransactionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PendingTransactionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter pending transactions to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -17,7 +17,9 @@ module Increase attr_reader :category sig do - params(category: T.any(Increase::Models::PendingTransactionListParams::Category, Increase::Util::AnyHash)) + params( + category: T.any(Increase::Models::PendingTransactionListParams::Category, Increase::Internal::AnyHash) + ) .void end attr_writer :category @@ -27,7 +29,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::PendingTransactionListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::PendingTransactionListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -58,19 +60,22 @@ module Increase sig { returns(T.nilable(Increase::Models::PendingTransactionListParams::Status)) } attr_reader :status - sig { params(status: T.any(Increase::Models::PendingTransactionListParams::Status, Increase::Util::AnyHash)).void } + sig do + params(status: T.any(Increase::Models::PendingTransactionListParams::Status, Increase::Internal::AnyHash)) + .void + end attr_writer :status sig do params( account_id: String, - category: T.any(Increase::Models::PendingTransactionListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::PendingTransactionListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::PendingTransactionListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::PendingTransactionListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, route_id: String, - status: T.any(Increase::Models::PendingTransactionListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::PendingTransactionListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -104,7 +109,7 @@ module Increase def to_hash end - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::PendingTransactionListParams::Category::In::OrSymbol])) } @@ -125,7 +130,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransactionListParams::Category::In) } @@ -198,7 +203,7 @@ module Increase end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -242,7 +247,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Pending Transactions for those with the specified status. By default only # Pending Transactions in with status `pending` will be returned. For GET # requests, this should be encoded as a comma-delimited string, such as @@ -265,7 +270,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PendingTransactionListParams::Status::In) } OrSymbol = diff --git a/rbi/lib/increase/models/pending_transaction_retrieve_params.rbi b/rbi/lib/increase/models/pending_transaction_retrieve_params.rbi index b22310f5..c47001ba 100644 --- a/rbi/lib/increase/models/pending_transaction_retrieve_params.rbi +++ b/rbi/lib/increase/models/pending_transaction_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class PendingTransactionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PendingTransactionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/physical_card.rbi b/rbi/lib/increase/models/physical_card.rbi index 5160d638..5ac38766 100644 --- a/rbi/lib/increase/models/physical_card.rbi +++ b/rbi/lib/increase/models/physical_card.rbi @@ -2,7 +2,7 @@ module Increase module Models - class PhysicalCard < Increase::BaseModel + class PhysicalCard < Increase::Internal::Type::BaseModel # The physical card identifier. sig { returns(String) } attr_accessor :id @@ -15,7 +15,7 @@ module Increase sig { returns(Increase::Models::PhysicalCard::Cardholder) } attr_reader :cardholder - sig { params(cardholder: T.any(Increase::Models::PhysicalCard::Cardholder, Increase::Util::AnyHash)).void } + sig { params(cardholder: T.any(Increase::Models::PhysicalCard::Cardholder, Increase::Internal::AnyHash)).void } attr_writer :cardholder # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which @@ -37,7 +37,7 @@ module Increase sig { returns(Increase::Models::PhysicalCard::Shipment) } attr_reader :shipment - sig { params(shipment: T.any(Increase::Models::PhysicalCard::Shipment, Increase::Util::AnyHash)).void } + sig { params(shipment: T.any(Increase::Models::PhysicalCard::Shipment, Increase::Internal::AnyHash)).void } attr_writer :shipment # The status of the Physical Card. @@ -58,11 +58,11 @@ module Increase params( id: String, card_id: String, - cardholder: T.any(Increase::Models::PhysicalCard::Cardholder, Increase::Util::AnyHash), + cardholder: T.any(Increase::Models::PhysicalCard::Cardholder, Increase::Internal::AnyHash), created_at: Time, idempotency_key: T.nilable(String), physical_card_profile_id: T.nilable(String), - shipment: T.any(Increase::Models::PhysicalCard::Shipment, Increase::Util::AnyHash), + shipment: T.any(Increase::Models::PhysicalCard::Shipment, Increase::Internal::AnyHash), status: Increase::Models::PhysicalCard::Status::OrSymbol, type: Increase::Models::PhysicalCard::Type::OrSymbol ) @@ -100,7 +100,7 @@ module Increase def to_hash end - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel # The cardholder's first name. sig { returns(String) } attr_accessor :first_name @@ -119,12 +119,12 @@ module Increase end end - class Shipment < Increase::BaseModel + class Shipment < Increase::Internal::Type::BaseModel # The location to where the card's packing label is addressed. sig { returns(Increase::Models::PhysicalCard::Shipment::Address) } attr_reader :address - sig { params(address: T.any(Increase::Models::PhysicalCard::Shipment::Address, Increase::Util::AnyHash)).void } + sig { params(address: T.any(Increase::Models::PhysicalCard::Shipment::Address, Increase::Internal::AnyHash)).void } attr_writer :address # The shipping method. @@ -141,7 +141,7 @@ module Increase sig do params( - tracking: T.nilable(T.any(Increase::Models::PhysicalCard::Shipment::Tracking, Increase::Util::AnyHash)) + tracking: T.nilable(T.any(Increase::Models::PhysicalCard::Shipment::Tracking, Increase::Internal::AnyHash)) ) .void end @@ -150,10 +150,10 @@ module Increase # The details used to ship this physical card. sig do params( - address: T.any(Increase::Models::PhysicalCard::Shipment::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::PhysicalCard::Shipment::Address, Increase::Internal::AnyHash), method_: Increase::Models::PhysicalCard::Shipment::Method::OrSymbol, status: Increase::Models::PhysicalCard::Shipment::Status::OrSymbol, - tracking: T.nilable(T.any(Increase::Models::PhysicalCard::Shipment::Tracking, Increase::Util::AnyHash)) + tracking: T.nilable(T.any(Increase::Models::PhysicalCard::Shipment::Tracking, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -174,7 +174,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the shipping address. sig { returns(String) } attr_accessor :city @@ -239,7 +239,7 @@ module Increase # The shipping method. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCard::Shipment::Method) } OrSymbol = @@ -262,7 +262,7 @@ module Increase # The status of this shipment. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCard::Shipment::Status) } OrSymbol = @@ -294,7 +294,7 @@ module Increase end end - class Tracking < Increase::BaseModel + class Tracking < Increase::Internal::Type::BaseModel # The tracking number. sig { returns(String) } attr_accessor :number @@ -344,7 +344,7 @@ module Increase # The status of the Physical Card. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCard::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::PhysicalCard::Status::TaggedSymbol) } @@ -366,7 +366,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `physical_card`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCard::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::PhysicalCard::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/physical_card_create_params.rbi b/rbi/lib/increase/models/physical_card_create_params.rbi index 2ecadc75..e1066f58 100644 --- a/rbi/lib/increase/models/physical_card_create_params.rbi +++ b/rbi/lib/increase/models/physical_card_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class PhysicalCardCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The underlying card representing this physical card. sig { returns(String) } @@ -15,7 +15,9 @@ module Increase attr_reader :cardholder sig do - params(cardholder: T.any(Increase::Models::PhysicalCardCreateParams::Cardholder, Increase::Util::AnyHash)) + params( + cardholder: T.any(Increase::Models::PhysicalCardCreateParams::Cardholder, Increase::Internal::AnyHash) + ) .void end attr_writer :cardholder @@ -24,7 +26,10 @@ module Increase sig { returns(Increase::Models::PhysicalCardCreateParams::Shipment) } attr_reader :shipment - sig { params(shipment: T.any(Increase::Models::PhysicalCardCreateParams::Shipment, Increase::Util::AnyHash)).void } + sig do + params(shipment: T.any(Increase::Models::PhysicalCardCreateParams::Shipment, Increase::Internal::AnyHash)) + .void + end attr_writer :shipment # The physical card profile to use for this physical card. The latest default @@ -38,10 +43,10 @@ module Increase sig do params( card_id: String, - cardholder: T.any(Increase::Models::PhysicalCardCreateParams::Cardholder, Increase::Util::AnyHash), - shipment: T.any(Increase::Models::PhysicalCardCreateParams::Shipment, Increase::Util::AnyHash), + cardholder: T.any(Increase::Models::PhysicalCardCreateParams::Cardholder, Increase::Internal::AnyHash), + shipment: T.any(Increase::Models::PhysicalCardCreateParams::Shipment, Increase::Internal::AnyHash), physical_card_profile_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -63,7 +68,7 @@ module Increase def to_hash end - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel # The cardholder's first name. sig { returns(String) } attr_accessor :first_name @@ -82,14 +87,14 @@ module Increase end end - class Shipment < Increase::BaseModel + class Shipment < Increase::Internal::Type::BaseModel # The address to where the card should be shipped. sig { returns(Increase::Models::PhysicalCardCreateParams::Shipment::Address) } attr_reader :address sig do params( - address: T.any(Increase::Models::PhysicalCardCreateParams::Shipment::Address, Increase::Util::AnyHash) + address: T.any(Increase::Models::PhysicalCardCreateParams::Shipment::Address, Increase::Internal::AnyHash) ) .void end @@ -102,7 +107,7 @@ module Increase # The details used to ship this physical card. sig do params( - address: T.any(Increase::Models::PhysicalCardCreateParams::Shipment::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::PhysicalCardCreateParams::Shipment::Address, Increase::Internal::AnyHash), method_: Increase::Models::PhysicalCardCreateParams::Shipment::Method::OrSymbol ) .returns(T.attached_class) @@ -122,7 +127,7 @@ module Increase def to_hash end - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel # The city of the shipping address. sig { returns(String) } attr_accessor :city @@ -202,7 +207,7 @@ module Increase # The shipping method to use. module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCardCreateParams::Shipment::Method) } diff --git a/rbi/lib/increase/models/physical_card_list_params.rbi b/rbi/lib/increase/models/physical_card_list_params.rbi index 20b9defe..ac040d40 100644 --- a/rbi/lib/increase/models/physical_card_list_params.rbi +++ b/rbi/lib/increase/models/physical_card_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class PhysicalCardListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Physical Cards to ones belonging to the specified Card. sig { returns(T.nilable(String)) } @@ -17,7 +17,9 @@ module Increase attr_reader :created_at sig do - params(created_at: T.any(Increase::Models::PhysicalCardListParams::CreatedAt, Increase::Util::AnyHash)) + params( + created_at: T.any(Increase::Models::PhysicalCardListParams::CreatedAt, Increase::Internal::AnyHash) + ) .void end attr_writer :created_at @@ -50,11 +52,11 @@ module Increase sig do params( card_id: String, - created_at: T.any(Increase::Models::PhysicalCardListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::PhysicalCardListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +86,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/physical_card_profile.rbi b/rbi/lib/increase/models/physical_card_profile.rbi index 2f20a5c2..00d96e03 100644 --- a/rbi/lib/increase/models/physical_card_profile.rbi +++ b/rbi/lib/increase/models/physical_card_profile.rbi @@ -2,7 +2,7 @@ module Increase module Models - class PhysicalCardProfile < Increase::BaseModel + class PhysicalCardProfile < Increase::Internal::Type::BaseModel # The Card Profile identifier. sig { returns(String) } attr_accessor :id @@ -116,7 +116,7 @@ module Increase # The creator of this Physical Card Profile. module Creator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCardProfile::Creator) } OrSymbol = @@ -135,7 +135,7 @@ module Increase # The status of the Physical Card Profile. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCardProfile::Status) } OrSymbol = @@ -169,7 +169,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `physical_card_profile`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCardProfile::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/physical_card_profile_archive_params.rbi b/rbi/lib/increase/models/physical_card_profile_archive_params.rbi index 06c6f416..f1d84d81 100644 --- a/rbi/lib/increase/models/physical_card_profile_archive_params.rbi +++ b/rbi/lib/increase/models/physical_card_profile_archive_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class PhysicalCardProfileArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/physical_card_profile_clone_params.rbi b/rbi/lib/increase/models/physical_card_profile_clone_params.rbi index 8edc2aba..483757e8 100644 --- a/rbi/lib/increase/models/physical_card_profile_clone_params.rbi +++ b/rbi/lib/increase/models/physical_card_profile_clone_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class PhysicalCardProfileCloneParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileCloneParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the File containing the physical card's carrier image. sig { returns(T.nilable(String)) } @@ -41,7 +41,7 @@ module Increase sig do params( - front_text: T.any(Increase::Models::PhysicalCardProfileCloneParams::FrontText, Increase::Util::AnyHash) + front_text: T.any(Increase::Models::PhysicalCardProfileCloneParams::FrontText, Increase::Internal::AnyHash) ) .void end @@ -53,8 +53,8 @@ module Increase contact_phone: String, description: String, front_image_file_id: String, - front_text: T.any(Increase::Models::PhysicalCardProfileCloneParams::FrontText, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + front_text: T.any(Increase::Models::PhysicalCardProfileCloneParams::FrontText, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +84,7 @@ module Increase def to_hash end - class FrontText < Increase::BaseModel + class FrontText < Increase::Internal::Type::BaseModel # The first line of text on the front of the card. sig { returns(String) } attr_accessor :line1 diff --git a/rbi/lib/increase/models/physical_card_profile_create_params.rbi b/rbi/lib/increase/models/physical_card_profile_create_params.rbi index 71d04a6d..e8519ed8 100644 --- a/rbi/lib/increase/models/physical_card_profile_create_params.rbi +++ b/rbi/lib/increase/models/physical_card_profile_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class PhysicalCardProfileCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the File containing the physical card's carrier image. sig { returns(String) } @@ -28,7 +28,7 @@ module Increase contact_phone: String, description: String, front_image_file_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/physical_card_profile_list_params.rbi b/rbi/lib/increase/models/physical_card_profile_list_params.rbi index c342dd2f..7c4e2c05 100644 --- a/rbi/lib/increase/models/physical_card_profile_list_params.rbi +++ b/rbi/lib/increase/models/physical_card_profile_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class PhysicalCardProfileListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -35,7 +35,9 @@ module Increase attr_reader :status sig do - params(status: T.any(Increase::Models::PhysicalCardProfileListParams::Status, Increase::Util::AnyHash)) + params( + status: T.any(Increase::Models::PhysicalCardProfileListParams::Status, Increase::Internal::AnyHash) + ) .void end attr_writer :status @@ -45,8 +47,8 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::PhysicalCardProfileListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::PhysicalCardProfileListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -68,7 +70,7 @@ module Increase def to_hash end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Physical Card Profiles for those with the specified statuses. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -90,7 +92,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCardProfileListParams::Status::In) } diff --git a/rbi/lib/increase/models/physical_card_profile_retrieve_params.rbi b/rbi/lib/increase/models/physical_card_profile_retrieve_params.rbi index c10aed8c..54d55146 100644 --- a/rbi/lib/increase/models/physical_card_profile_retrieve_params.rbi +++ b/rbi/lib/increase/models/physical_card_profile_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class PhysicalCardProfileRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/physical_card_retrieve_params.rbi b/rbi/lib/increase/models/physical_card_retrieve_params.rbi index 03bbcd55..ad17a084 100644 --- a/rbi/lib/increase/models/physical_card_retrieve_params.rbi +++ b/rbi/lib/increase/models/physical_card_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class PhysicalCardRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/physical_card_update_params.rbi b/rbi/lib/increase/models/physical_card_update_params.rbi index 040bce9b..65b9ff9c 100644 --- a/rbi/lib/increase/models/physical_card_update_params.rbi +++ b/rbi/lib/increase/models/physical_card_update_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class PhysicalCardUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The status to update the Physical Card to. sig { returns(Increase::Models::PhysicalCardUpdateParams::Status::OrSymbol) } @@ -13,7 +13,7 @@ module Increase sig do params( status: Increase::Models::PhysicalCardUpdateParams::Status::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -34,7 +34,7 @@ module Increase # The status to update the Physical Card to. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::PhysicalCardUpdateParams::Status) } OrSymbol = diff --git a/rbi/lib/increase/models/program.rbi b/rbi/lib/increase/models/program.rbi index 043f3c71..4f1762b9 100644 --- a/rbi/lib/increase/models/program.rbi +++ b/rbi/lib/increase/models/program.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Program < Increase::BaseModel + class Program < Increase::Internal::Type::BaseModel # The Program identifier. sig { returns(String) } attr_accessor :id @@ -96,7 +96,7 @@ module Increase # The Bank the Program is with. module Bank - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Program::Bank) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Program::Bank::TaggedSymbol) } @@ -118,7 +118,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `program`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Program::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Program::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/program_list_params.rbi b/rbi/lib/increase/models/program_list_params.rbi index 813c2768..2cb049a6 100644 --- a/rbi/lib/increase/models/program_list_params.rbi +++ b/rbi/lib/increase/models/program_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ProgramListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProgramListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -25,7 +25,7 @@ module Increase params( cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/program_retrieve_params.rbi b/rbi/lib/increase/models/program_retrieve_params.rbi index 8d9965d9..0ab409cb 100644 --- a/rbi/lib/increase/models/program_retrieve_params.rbi +++ b/rbi/lib/increase/models/program_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ProgramRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProgramRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/proof_of_authorization_request.rbi b/rbi/lib/increase/models/proof_of_authorization_request.rbi index a0aa3157..d27adbce 100644 --- a/rbi/lib/increase/models/proof_of_authorization_request.rbi +++ b/rbi/lib/increase/models/proof_of_authorization_request.rbi @@ -2,7 +2,7 @@ module Increase module Models - class ProofOfAuthorizationRequest < Increase::BaseModel + class ProofOfAuthorizationRequest < Increase::Internal::Type::BaseModel # The Proof of Authorization Request identifier. sig { returns(String) } attr_accessor :id @@ -32,7 +32,7 @@ module Increase sig do params( id: String, - ach_transfers: T::Array[T.any(Increase::Models::ProofOfAuthorizationRequest::ACHTransfer, Increase::Util::AnyHash)], + ach_transfers: T::Array[T.any(Increase::Models::ProofOfAuthorizationRequest::ACHTransfer, Increase::Internal::AnyHash)], created_at: Time, due_on: Time, type: Increase::Models::ProofOfAuthorizationRequest::Type::OrSymbol, @@ -59,7 +59,7 @@ module Increase def to_hash end - class ACHTransfer < Increase::BaseModel + class ACHTransfer < Increase::Internal::Type::BaseModel # The ACH Transfer identifier. sig { returns(String) } attr_accessor :id @@ -76,7 +76,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `proof_of_authorization_request`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ProofOfAuthorizationRequest::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/proof_of_authorization_request_list_params.rbi b/rbi/lib/increase/models/proof_of_authorization_request_list_params.rbi index 46e85169..55132c29 100644 --- a/rbi/lib/increase/models/proof_of_authorization_request_list_params.rbi +++ b/rbi/lib/increase/models/proof_of_authorization_request_list_params.rbi @@ -2,16 +2,16 @@ module Increase module Models - class ProofOfAuthorizationRequestListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig { returns(T.nilable(Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt)) } attr_reader :created_at sig do params( - created_at: T.any(Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -34,10 +34,10 @@ module Increase sig do params( - created_at: T.any(Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -58,7 +58,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/proof_of_authorization_request_retrieve_params.rbi b/rbi/lib/increase/models/proof_of_authorization_request_retrieve_params.rbi index bdd877e8..fac2a45c 100644 --- a/rbi/lib/increase/models/proof_of_authorization_request_retrieve_params.rbi +++ b/rbi/lib/increase/models/proof_of_authorization_request_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ProofOfAuthorizationRequestRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/proof_of_authorization_request_submission.rbi b/rbi/lib/increase/models/proof_of_authorization_request_submission.rbi index 49f82394..7dcdffca 100644 --- a/rbi/lib/increase/models/proof_of_authorization_request_submission.rbi +++ b/rbi/lib/increase/models/proof_of_authorization_request_submission.rbi @@ -2,7 +2,7 @@ module Increase module Models - class ProofOfAuthorizationRequestSubmission < Increase::BaseModel + class ProofOfAuthorizationRequestSubmission < Increase::Internal::Type::BaseModel # The Proof of Authorization Request Submission identifier. sig { returns(String) } attr_accessor :id @@ -158,7 +158,7 @@ module Increase # Status of the proof of authorization request submission. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ProofOfAuthorizationRequestSubmission::Status) } @@ -192,7 +192,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `proof_of_authorization_request_submission`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::ProofOfAuthorizationRequestSubmission::Type) } diff --git a/rbi/lib/increase/models/proof_of_authorization_request_submission_create_params.rbi b/rbi/lib/increase/models/proof_of_authorization_request_submission_create_params.rbi index 92fc9912..3b3760c3 100644 --- a/rbi/lib/increase/models/proof_of_authorization_request_submission_create_params.rbi +++ b/rbi/lib/increase/models/proof_of_authorization_request_submission_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Terms of authorization. sig { returns(String) } @@ -77,7 +77,7 @@ module Increase additional_evidence_file_id: String, authorizer_company: String, authorizer_ip_address: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/proof_of_authorization_request_submission_list_params.rbi b/rbi/lib/increase/models/proof_of_authorization_request_submission_list_params.rbi index ca558886..7334c61d 100644 --- a/rbi/lib/increase/models/proof_of_authorization_request_submission_list_params.rbi +++ b/rbi/lib/increase/models/proof_of_authorization_request_submission_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class ProofOfAuthorizationRequestSubmissionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestSubmissionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -44,7 +44,7 @@ module Increase idempotency_key: String, limit: Integer, proof_of_authorization_request_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rbi b/rbi/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rbi index 04f68f14..748d8e7c 100644 --- a/rbi/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rbi +++ b/rbi/lib/increase/models/proof_of_authorization_request_submission_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class ProofOfAuthorizationRequestSubmissionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestSubmissionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/real_time_decision.rbi b/rbi/lib/increase/models/real_time_decision.rbi index 5fa86022..c1779594 100644 --- a/rbi/lib/increase/models/real_time_decision.rbi +++ b/rbi/lib/increase/models/real_time_decision.rbi @@ -2,7 +2,7 @@ module Increase module Models - class RealTimeDecision < Increase::BaseModel + class RealTimeDecision < Increase::Internal::Type::BaseModel # The Real-Time Decision identifier. sig { returns(String) } attr_accessor :id @@ -13,7 +13,7 @@ module Increase sig do params( - card_authentication: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthentication, Increase::Util::AnyHash)) + card_authentication: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthentication, Increase::Internal::AnyHash)) ) .void end @@ -25,7 +25,9 @@ module Increase sig do params( - card_authentication_challenge: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthenticationChallenge, Increase::Util::AnyHash)) + card_authentication_challenge: T.nilable( + T.any(Increase::Models::RealTimeDecision::CardAuthenticationChallenge, Increase::Internal::AnyHash) + ) ) .void end @@ -37,7 +39,7 @@ module Increase sig do params( - card_authorization: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthorization, Increase::Util::AnyHash)) + card_authorization: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthorization, Increase::Internal::AnyHash)) ) .void end @@ -58,7 +60,9 @@ module Increase sig do params( - digital_wallet_authentication: T.nilable(T.any(Increase::Models::RealTimeDecision::DigitalWalletAuthentication, Increase::Util::AnyHash)) + digital_wallet_authentication: T.nilable( + T.any(Increase::Models::RealTimeDecision::DigitalWalletAuthentication, Increase::Internal::AnyHash) + ) ) .void end @@ -70,7 +74,7 @@ module Increase sig do params( - digital_wallet_token: T.nilable(T.any(Increase::Models::RealTimeDecision::DigitalWalletToken, Increase::Util::AnyHash)) + digital_wallet_token: T.nilable(T.any(Increase::Models::RealTimeDecision::DigitalWalletToken, Increase::Internal::AnyHash)) ) .void end @@ -97,13 +101,17 @@ module Increase sig do params( id: String, - card_authentication: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthentication, Increase::Util::AnyHash)), - card_authentication_challenge: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthenticationChallenge, Increase::Util::AnyHash)), - card_authorization: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthorization, Increase::Util::AnyHash)), + card_authentication: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthentication, Increase::Internal::AnyHash)), + card_authentication_challenge: T.nilable( + T.any(Increase::Models::RealTimeDecision::CardAuthenticationChallenge, Increase::Internal::AnyHash) + ), + card_authorization: T.nilable(T.any(Increase::Models::RealTimeDecision::CardAuthorization, Increase::Internal::AnyHash)), category: Increase::Models::RealTimeDecision::Category::OrSymbol, created_at: Time, - digital_wallet_authentication: T.nilable(T.any(Increase::Models::RealTimeDecision::DigitalWalletAuthentication, Increase::Util::AnyHash)), - digital_wallet_token: T.nilable(T.any(Increase::Models::RealTimeDecision::DigitalWalletToken, Increase::Util::AnyHash)), + digital_wallet_authentication: T.nilable( + T.any(Increase::Models::RealTimeDecision::DigitalWalletAuthentication, Increase::Internal::AnyHash) + ), + digital_wallet_token: T.nilable(T.any(Increase::Models::RealTimeDecision::DigitalWalletToken, Increase::Internal::AnyHash)), status: Increase::Models::RealTimeDecision::Status::OrSymbol, timeout_at: Time, type: Increase::Models::RealTimeDecision::Type::OrSymbol @@ -146,7 +154,7 @@ module Increase def to_hash end - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel # The identifier of the Account the card belongs to. sig { returns(String) } attr_accessor :account_id @@ -193,7 +201,7 @@ module Increase # Whether or not the authentication attempt was approved. module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::CardAuthentication::Decision) } @@ -216,7 +224,7 @@ module Increase end end - class CardAuthenticationChallenge < Increase::BaseModel + class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel # The identifier of the Account the card belongs to. sig { returns(String) } attr_accessor :account_id @@ -269,7 +277,7 @@ module Increase # Whether or not the challenge was delivered to the cardholder. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::CardAuthenticationChallenge::Result) } @@ -299,7 +307,7 @@ module Increase end end - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # The identifier of the Account the authorization will debit. sig { returns(String) } attr_accessor :account_id @@ -359,7 +367,7 @@ module Increase sig do params( - network_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails, Increase::Util::AnyHash) + network_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails, Increase::Internal::AnyHash) ) .void end @@ -371,7 +379,10 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::RealTimeDecision::CardAuthorization::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any( + Increase::Models::RealTimeDecision::CardAuthorization::NetworkIdentifiers, + Increase::Internal::AnyHash + ) ) .void end @@ -409,7 +420,7 @@ module Increase sig do params( - request_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails, Increase::Util::AnyHash) + request_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails, Increase::Internal::AnyHash) ) .void end @@ -441,7 +452,7 @@ module Increase sig do params( - verification: T.any(Increase::Models::RealTimeDecision::CardAuthorization::Verification, Increase::Util::AnyHash) + verification: T.any(Increase::Models::RealTimeDecision::CardAuthorization::Verification, Increase::Internal::AnyHash) ) .void end @@ -462,19 +473,22 @@ module Increase merchant_descriptor: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails, Increase::Util::AnyHash), - network_identifiers: T.any(Increase::Models::RealTimeDecision::CardAuthorization::NetworkIdentifiers, Increase::Util::AnyHash), + network_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails, Increase::Internal::AnyHash), + network_identifiers: T.any( + Increase::Models::RealTimeDecision::CardAuthorization::NetworkIdentifiers, + Increase::Internal::AnyHash + ), network_risk_score: T.nilable(Integer), physical_card_id: T.nilable(String), presentment_amount: Integer, presentment_currency: String, processing_category: Increase::Models::RealTimeDecision::CardAuthorization::ProcessingCategory::OrSymbol, - request_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails, Increase::Util::AnyHash), + request_details: T.any(Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails, Increase::Internal::AnyHash), settlement_amount: Integer, settlement_currency: String, terminal_id: T.nilable(String), upcoming_card_payment_id: String, - verification: T.any(Increase::Models::RealTimeDecision::CardAuthorization::Verification, Increase::Util::AnyHash) + verification: T.any(Increase::Models::RealTimeDecision::CardAuthorization::Verification, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -544,7 +558,7 @@ module Increase # Whether or not the authorization was approved. module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Decision) } @@ -565,7 +579,7 @@ module Increase # The direction describes the direction the funds will move, either from the # cardholder to the merchant or from the merchant to the cardholder. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Direction) } @@ -584,7 +598,7 @@ module Increase end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. sig { returns(Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Category::TaggedSymbol) } attr_accessor :category @@ -598,7 +612,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -613,7 +627,7 @@ module Increase visa: T.nilable( T.any( Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -636,7 +650,7 @@ module Increase # The payment network used to process this card authorization. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Category) } @@ -666,7 +680,7 @@ module Increase end end - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # For electronic commerce transactions, this identifies the level of security used # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. @@ -746,7 +760,7 @@ module Increase # in obtaining the customer's payment credential. For mail or telephone order # transactions, identifies the type of mail or telephone order. module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -832,7 +846,7 @@ module Increase # The method used to enter the cardholder's primary account number and card # expiration date. module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -932,7 +946,7 @@ module Increase # Only present when `actioner: network`. Describes why a card authorization was # approved or declined by Visa through stand-in processing. module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1010,7 +1024,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # 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 # networks the retrieval reference number includes the trace counter. @@ -1056,7 +1070,7 @@ module Increase # The processing category describes the intent behind the authorization, such as # whether it was used for bill payments or an automatic fuel dispenser. module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::CardAuthorization::ProcessingCategory) } @@ -1113,7 +1127,7 @@ module Increase end end - class RequestDetails < Increase::BaseModel + class RequestDetails < Increase::Internal::Type::BaseModel # The type of this request (e.g., an initial authorization or an incremental # authorization). sig { returns(Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails::Category::TaggedSymbol) } @@ -1132,7 +1146,7 @@ module Increase incremental_authorization: T.nilable( T.any( Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails::IncrementalAuthorization, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -1151,7 +1165,7 @@ module Increase incremental_authorization: T.nilable( T.any( Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails::IncrementalAuthorization, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), initial_authorization: T.nilable(T.anything) @@ -1177,7 +1191,7 @@ module Increase # The type of this request (e.g., an initial authorization or an incremental # authorization). module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails::Category) } @@ -1214,7 +1228,7 @@ module Increase end end - class IncrementalAuthorization < Increase::BaseModel + class IncrementalAuthorization < Increase::Internal::Type::BaseModel # The card payment for this authorization and increment. sig { returns(String) } attr_accessor :card_payment_id @@ -1240,7 +1254,7 @@ module Increase end end - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel # Fields related to verification of the Card Verification Code, a 3-digit code on # the back of the card. sig { returns(Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode) } @@ -1250,7 +1264,7 @@ module Increase params( card_verification_code: T.any( Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1266,7 +1280,7 @@ module Increase params( cardholder_address: T.any( Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -1278,11 +1292,11 @@ module Increase params( card_verification_code: T.any( Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), cardholder_address: T.any( Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -1302,7 +1316,7 @@ module Increase def to_hash end - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel # The result of verifying the Card Verification Code. sig do returns( @@ -1335,7 +1349,7 @@ module Increase # The result of verifying the Card Verification Code. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1384,7 +1398,7 @@ module Increase end end - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel # Line 1 of the address on file for the cardholder. sig { returns(T.nilable(String)) } attr_accessor :actual_line1 @@ -1442,7 +1456,7 @@ module Increase # The address verification result returned to the card network. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -1516,7 +1530,7 @@ module Increase # The category of the Real-Time Decision. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::Category) } OrSymbol = @@ -1553,7 +1567,7 @@ module Increase end end - class DigitalWalletAuthentication < Increase::BaseModel + class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel # The identifier of the Card that is being tokenized. sig { returns(String) } attr_accessor :card_id @@ -1618,7 +1632,7 @@ module Increase # The channel to send the card user their one-time passcode. module Channel - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::DigitalWalletAuthentication::Channel) } @@ -1648,7 +1662,7 @@ module Increase # The digital wallet app being used. module DigitalWallet - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::DigitalWalletAuthentication::DigitalWallet) } @@ -1701,7 +1715,7 @@ module Increase # Whether your application successfully delivered the one-time passcode. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::DigitalWalletAuthentication::Result) } @@ -1731,7 +1745,7 @@ module Increase end end - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel # The identifier of the Card that is being tokenized. sig { returns(String) } attr_accessor :card_id @@ -1753,7 +1767,7 @@ module Increase sig do params( - device: T.any(Increase::Models::RealTimeDecision::DigitalWalletToken::Device, Increase::Util::AnyHash) + device: T.any(Increase::Models::RealTimeDecision::DigitalWalletToken::Device, Increase::Internal::AnyHash) ) .void end @@ -1769,7 +1783,7 @@ module Increase card_id: String, card_profile_id: T.nilable(String), decision: T.nilable(Increase::Models::RealTimeDecision::DigitalWalletToken::Decision::OrSymbol), - device: T.any(Increase::Models::RealTimeDecision::DigitalWalletToken::Device, Increase::Util::AnyHash), + device: T.any(Increase::Models::RealTimeDecision::DigitalWalletToken::Device, Increase::Internal::AnyHash), digital_wallet: Increase::Models::RealTimeDecision::DigitalWalletToken::DigitalWallet::OrSymbol ) .returns(T.attached_class) @@ -1795,7 +1809,7 @@ module Increase # Whether or not the provisioning request was approved. This will be null until # the real time decision is responded to. module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Decision) } @@ -1813,7 +1827,7 @@ module Increase end end - class Device < Increase::BaseModel + class Device < Increase::Internal::Type::BaseModel # ID assigned to the device by the digital wallet provider. sig { returns(T.nilable(String)) } attr_accessor :identifier @@ -1830,7 +1844,7 @@ module Increase # The digital wallet app being used. module DigitalWallet - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::DigitalWallet) } @@ -1864,7 +1878,7 @@ module Increase # The status of the Real-Time Decision. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::Status) } OrSymbol = @@ -1887,7 +1901,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `real_time_decision`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecision::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::RealTimeDecision::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/real_time_decision_action_params.rbi b/rbi/lib/increase/models/real_time_decision_action_params.rbi index 2673c4a0..d4d178c3 100644 --- a/rbi/lib/increase/models/real_time_decision_action_params.rbi +++ b/rbi/lib/increase/models/real_time_decision_action_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class RealTimeDecisionActionParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimeDecisionActionParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # If the Real-Time Decision relates to a 3DS card authentication attempt, this # object contains your response to the authentication. @@ -13,7 +13,7 @@ module Increase sig do params( - card_authentication: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthentication, Increase::Util::AnyHash) + card_authentication: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthentication, Increase::Internal::AnyHash) ) .void end @@ -28,7 +28,7 @@ module Increase params( card_authentication_challenge: T.any( Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -42,7 +42,7 @@ module Increase sig do params( - card_authorization: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthorization, Increase::Util::AnyHash) + card_authorization: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthorization, Increase::Internal::AnyHash) ) .void end @@ -57,7 +57,7 @@ module Increase params( digital_wallet_authentication: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -71,7 +71,7 @@ module Increase sig do params( - digital_wallet_token: T.any(Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, Increase::Util::AnyHash) + digital_wallet_token: T.any(Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, Increase::Internal::AnyHash) ) .void end @@ -79,18 +79,18 @@ module Increase sig do params( - card_authentication: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthentication, Increase::Util::AnyHash), + card_authentication: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthentication, Increase::Internal::AnyHash), card_authentication_challenge: T.any( Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), - card_authorization: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthorization, Increase::Util::AnyHash), + card_authorization: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthorization, Increase::Internal::AnyHash), digital_wallet_authentication: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), - digital_wallet_token: T.any(Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + digital_wallet_token: T.any(Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -120,7 +120,7 @@ module Increase def to_hash end - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel # Whether the card authentication attempt should be approved or declined. sig { returns(Increase::Models::RealTimeDecisionActionParams::CardAuthentication::Decision::OrSymbol) } attr_accessor :decision @@ -145,7 +145,7 @@ module Increase # Whether the card authentication attempt should be approved or declined. module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthentication::Decision) } @@ -187,7 +187,7 @@ module Increase end end - class CardAuthenticationChallenge < Increase::BaseModel + class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel # Whether the card authentication challenge was successfully delivered to the # cardholder. sig { returns(Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol) } @@ -216,7 +216,7 @@ module Increase # Whether the card authentication challenge was successfully delivered to the # cardholder. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result) } @@ -254,7 +254,7 @@ module Increase end end - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel # Whether the card authorization should be approved or declined. sig { returns(Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decision::OrSymbol) } attr_accessor :decision @@ -302,7 +302,7 @@ module Increase # Whether the card authorization should be approved or declined. module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decision) } @@ -336,7 +336,7 @@ module Increase # The reason the card authorization was declined. This translates to a specific # decline code that is sent to the card network. module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthorization::DeclineReason) } @@ -402,7 +402,7 @@ module Increase end end - class DigitalWalletAuthentication < Increase::BaseModel + class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel # Whether your application was able to deliver the one-time passcode. sig { returns(Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Result::OrSymbol) } attr_accessor :result @@ -414,7 +414,7 @@ module Increase params( success: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Success, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -428,7 +428,7 @@ module Increase result: Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Result::OrSymbol, success: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Success, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -450,7 +450,7 @@ module Increase # Whether your application was able to deliver the one-time passcode. module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Result) } @@ -487,7 +487,7 @@ module Increase end end - class Success < Increase::BaseModel + class Success < Increase::Internal::Type::BaseModel # The email address that was used to verify the cardholder via one-time passcode. sig { returns(T.nilable(String)) } attr_reader :email @@ -513,7 +513,7 @@ module Increase end end - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel # If your application approves the provisioning attempt, this contains metadata # about the digital wallet token that will be generated. sig { returns(T.nilable(Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken::Approval)) } @@ -523,7 +523,7 @@ module Increase params( approval: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken::Approval, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -539,7 +539,7 @@ module Increase params( decline: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken::Decline, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -552,11 +552,11 @@ module Increase params( approval: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken::Approval, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), decline: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken::Decline, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -576,7 +576,7 @@ module Increase def to_hash end - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # An email address that can be used to verify the cardholder via one-time # passcode. sig { returns(T.nilable(String)) } @@ -604,7 +604,7 @@ module Increase end end - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel # Why the tokenization attempt was declined. This is for logging purposes only and # is not displayed to the end-user. sig { returns(T.nilable(String)) } diff --git a/rbi/lib/increase/models/real_time_decision_retrieve_params.rbi b/rbi/lib/increase/models/real_time_decision_retrieve_params.rbi index 19c76a86..dadf0a9d 100644 --- a/rbi/lib/increase/models/real_time_decision_retrieve_params.rbi +++ b/rbi/lib/increase/models/real_time_decision_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class RealTimeDecisionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimeDecisionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/real_time_payments_transfer.rbi b/rbi/lib/increase/models/real_time_payments_transfer.rbi index 211e266c..c48f9dd2 100644 --- a/rbi/lib/increase/models/real_time_payments_transfer.rbi +++ b/rbi/lib/increase/models/real_time_payments_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class RealTimePaymentsTransfer < Increase::BaseModel + class RealTimePaymentsTransfer < Increase::Internal::Type::BaseModel # The Real-Time Payments Transfer's identifier. sig { returns(String) } attr_accessor :id @@ -18,7 +18,7 @@ module Increase sig do params( - acknowledgement: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Acknowledgement, Increase::Util::AnyHash)) + acknowledgement: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Acknowledgement, Increase::Internal::AnyHash)) ) .void end @@ -35,7 +35,7 @@ module Increase sig do params( - approval: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Approval, Increase::Util::AnyHash)) + approval: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Approval, Increase::Internal::AnyHash)) ) .void end @@ -48,7 +48,7 @@ module Increase sig do params( - cancellation: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Cancellation, Increase::Util::AnyHash)) + cancellation: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Cancellation, Increase::Internal::AnyHash)) ) .void end @@ -65,7 +65,7 @@ module Increase sig do params( - created_by: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy, Increase::Util::AnyHash)) + created_by: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy, Increase::Internal::AnyHash)) ) .void end @@ -119,7 +119,7 @@ module Increase sig do params( - rejection: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Rejection, Increase::Util::AnyHash)) + rejection: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Rejection, Increase::Internal::AnyHash)) ) .void end @@ -144,7 +144,7 @@ module Increase sig do params( - submission: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Submission, Increase::Util::AnyHash)) + submission: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Submission, Increase::Internal::AnyHash)) ) .void end @@ -175,12 +175,12 @@ module Increase params( id: String, account_id: String, - acknowledgement: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Acknowledgement, Increase::Util::AnyHash)), + acknowledgement: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Acknowledgement, Increase::Internal::AnyHash)), amount: Integer, - approval: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Approval, Increase::Util::AnyHash)), - cancellation: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Cancellation, Increase::Util::AnyHash)), + approval: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Approval, Increase::Internal::AnyHash)), + cancellation: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Cancellation, Increase::Internal::AnyHash)), created_at: Time, - created_by: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy, Increase::Util::AnyHash)), + created_by: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy, Increase::Internal::AnyHash)), creditor_name: String, currency: Increase::Models::RealTimePaymentsTransfer::Currency::OrSymbol, debtor_name: T.nilable(String), @@ -189,11 +189,11 @@ module Increase external_account_id: T.nilable(String), idempotency_key: T.nilable(String), pending_transaction_id: T.nilable(String), - rejection: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Rejection, Increase::Util::AnyHash)), + rejection: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Rejection, Increase::Internal::AnyHash)), remittance_information: String, source_account_number_id: String, status: Increase::Models::RealTimePaymentsTransfer::Status::OrSymbol, - submission: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Submission, Increase::Util::AnyHash)), + submission: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::Submission, Increase::Internal::AnyHash)), transaction_id: T.nilable(String), type: Increase::Models::RealTimePaymentsTransfer::Type::OrSymbol, ultimate_creditor_name: T.nilable(String), @@ -265,7 +265,7 @@ module Increase def to_hash end - class Acknowledgement < Increase::BaseModel + class Acknowledgement < Increase::Internal::Type::BaseModel # When the transfer was acknowledged. sig { returns(Time) } attr_accessor :acknowledged_at @@ -281,7 +281,7 @@ module Increase end end - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. sig { returns(Time) } @@ -303,7 +303,7 @@ module Increase end end - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. sig { returns(Time) } @@ -325,14 +325,16 @@ module Increase end end - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey)) } attr_reader :api_key sig do params( - api_key: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)) + api_key: T.nilable( + T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash) + ) ) .void end @@ -349,7 +351,10 @@ module Increase sig do params( oauth_application: T.nilable( - T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash) + T.any( + Increase::Models::RealTimePaymentsTransfer::CreatedBy::OAuthApplication, + Increase::Internal::AnyHash + ) ) ) .void @@ -362,7 +367,7 @@ module Increase sig do params( - user: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::User, Increase::Util::AnyHash)) + user: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::User, Increase::Internal::AnyHash)) ) .void end @@ -371,12 +376,17 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( - api_key: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)), + api_key: T.nilable( + T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash) + ), category: Increase::Models::RealTimePaymentsTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( - T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash) + T.any( + Increase::Models::RealTimePaymentsTransfer::CreatedBy::OAuthApplication, + Increase::Internal::AnyHash + ) ), - user: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::User, Increase::Util::AnyHash)) + user: T.nilable(T.any(Increase::Models::RealTimePaymentsTransfer::CreatedBy::User, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -397,7 +407,7 @@ module Increase def to_hash end - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # The description set for the API key when it was created. sig { returns(T.nilable(String)) } attr_accessor :description @@ -414,7 +424,7 @@ module Increase # The type of object that created this transfer. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimePaymentsTransfer::CreatedBy::Category) } @@ -436,7 +446,7 @@ module Increase end end - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # The name of the OAuth Application. sig { returns(String) } attr_accessor :name @@ -451,7 +461,7 @@ module Increase end end - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # The email address of the User. sig { returns(String) } attr_accessor :email @@ -470,7 +480,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For real-time payments transfers this is always equal to `USD`. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimePaymentsTransfer::Currency) } OrSymbol = @@ -499,7 +509,7 @@ module Increase end end - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel # Additional information about the rejection provided by the recipient bank when # the `reject_reason_code` is `NARRATIVE`. sig { returns(T.nilable(String)) } @@ -544,7 +554,7 @@ module Increase # The reason the transfer was rejected as provided by the recipient bank or the # Real-Time Payments network. module RejectReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimePaymentsTransfer::Rejection::RejectReasonCode) } @@ -706,7 +716,7 @@ module Increase # The lifecycle status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimePaymentsTransfer::Status) } OrSymbol = @@ -745,7 +755,7 @@ module Increase end end - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was submitted to The Clearing House. sig { returns(T.nilable(Time)) } @@ -771,7 +781,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `real_time_payments_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimePaymentsTransfer::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/real_time_payments_transfer_create_params.rbi b/rbi/lib/increase/models/real_time_payments_transfer_create_params.rbi index d3e39894..db743d10 100644 --- a/rbi/lib/increase/models/real_time_payments_transfer_create_params.rbi +++ b/rbi/lib/increase/models/real_time_payments_transfer_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class RealTimePaymentsTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The transfer amount in USD cents. For Real-Time Payments transfers, must be # positive. @@ -91,7 +91,7 @@ module Increase require_approval: T::Boolean, ultimate_creditor_name: String, ultimate_debtor_name: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/real_time_payments_transfer_list_params.rbi b/rbi/lib/increase/models/real_time_payments_transfer_list_params.rbi index 5a00d5e2..89f9a1fb 100644 --- a/rbi/lib/increase/models/real_time_payments_transfer_list_params.rbi +++ b/rbi/lib/increase/models/real_time_payments_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class RealTimePaymentsTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Real-Time Payments Transfers to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -18,7 +18,7 @@ module Increase sig do params( - created_at: T.any(Increase::Models::RealTimePaymentsTransferListParams::CreatedAt, Increase::Util::AnyHash) + created_at: T.any(Increase::Models::RealTimePaymentsTransferListParams::CreatedAt, Increase::Internal::AnyHash) ) .void end @@ -62,7 +62,7 @@ module Increase sig do params( - status: T.any(Increase::Models::RealTimePaymentsTransferListParams::Status, Increase::Util::AnyHash) + status: T.any(Increase::Models::RealTimePaymentsTransferListParams::Status, Increase::Internal::AnyHash) ) .void end @@ -71,13 +71,13 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::RealTimePaymentsTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::RealTimePaymentsTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, external_account_id: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::RealTimePaymentsTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::RealTimePaymentsTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -111,7 +111,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } @@ -155,7 +155,7 @@ module Increase end end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::RealTimePaymentsTransferListParams::Status::In::OrSymbol])) } @@ -179,7 +179,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RealTimePaymentsTransferListParams::Status::In) } diff --git a/rbi/lib/increase/models/real_time_payments_transfer_retrieve_params.rbi b/rbi/lib/increase/models/real_time_payments_transfer_retrieve_params.rbi index c355ca20..d6c06bac 100644 --- a/rbi/lib/increase/models/real_time_payments_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/real_time_payments_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class RealTimePaymentsTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/routing_number_list_params.rbi b/rbi/lib/increase/models/routing_number_list_params.rbi index 13f10022..b2fab2ae 100644 --- a/rbi/lib/increase/models/routing_number_list_params.rbi +++ b/rbi/lib/increase/models/routing_number_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class RoutingNumberListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RoutingNumberListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter financial institutions by routing number. sig { returns(String) } @@ -30,7 +30,7 @@ module Increase routing_number: String, cursor: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/routing_number_list_response.rbi b/rbi/lib/increase/models/routing_number_list_response.rbi index 2fda0525..da915e33 100644 --- a/rbi/lib/increase/models/routing_number_list_response.rbi +++ b/rbi/lib/increase/models/routing_number_list_response.rbi @@ -2,7 +2,7 @@ module Increase module Models - class RoutingNumberListResponse < Increase::BaseModel + class RoutingNumberListResponse < Increase::Internal::Type::BaseModel # This routing number's support for ACH Transfers. sig { returns(Increase::Models::RoutingNumberListResponse::ACHTransfers::TaggedSymbol) } attr_accessor :ach_transfers @@ -68,7 +68,7 @@ module Increase # This routing number's support for ACH Transfers. module ACHTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RoutingNumberListResponse::ACHTransfers) } OrSymbol = @@ -88,7 +88,7 @@ module Increase # This routing number's support for Real-Time Payments Transfers. module RealTimePaymentsTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RoutingNumberListResponse::RealTimePaymentsTransfers) } @@ -123,7 +123,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `routing_number`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RoutingNumberListResponse::Type) } OrSymbol = @@ -138,7 +138,7 @@ module Increase # This routing number's support for Wire Transfers. module WireTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::RoutingNumberListResponse::WireTransfers) } OrSymbol = diff --git a/rbi/lib/increase/models/simulations/account_statement_create_params.rbi b/rbi/lib/increase/models/simulations/account_statement_create_params.rbi index d37d59bd..3dacbc6e 100644 --- a/rbi/lib/increase/models/simulations/account_statement_create_params.rbi +++ b/rbi/lib/increase/models/simulations/account_statement_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class AccountStatementCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountStatementCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Account the statement is for. sig { returns(String) } @@ -14,7 +14,10 @@ module Increase sig do params( account_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any( + Increase::RequestOptions, + Increase::Internal::AnyHash + ) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/account_transfer_complete_params.rbi b/rbi/lib/increase/models/simulations/account_transfer_complete_params.rbi index 21e6abbf..31b59056 100644 --- a/rbi/lib/increase/models/simulations/account_transfer_complete_params.rbi +++ b/rbi/lib/increase/models/simulations/account_transfer_complete_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class AccountTransferCompleteParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferCompleteParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/ach_transfer_acknowledge_params.rbi b/rbi/lib/increase/models/simulations/ach_transfer_acknowledge_params.rbi index 788ace6d..d863e348 100644 --- a/rbi/lib/increase/models/simulations/ach_transfer_acknowledge_params.rbi +++ b/rbi/lib/increase/models/simulations/ach_transfer_acknowledge_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class ACHTransferAcknowledgeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferAcknowledgeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi b/rbi/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi index 14f6e521..358c8d50 100644 --- a/rbi/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi +++ b/rbi/lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class ACHTransferCreateNotificationOfChangeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferCreateNotificationOfChangeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The reason for the notification of change. sig { returns(Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::OrSymbol) } @@ -19,7 +19,7 @@ module Increase params( change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::OrSymbol, corrected_data: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -41,7 +41,7 @@ module Increase # The reason for the notification of change. module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode) } diff --git a/rbi/lib/increase/models/simulations/ach_transfer_return_params.rbi b/rbi/lib/increase/models/simulations/ach_transfer_return_params.rbi index 68ec4833..30ed2add 100644 --- a/rbi/lib/increase/models/simulations/ach_transfer_return_params.rbi +++ b/rbi/lib/increase/models/simulations/ach_transfer_return_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class ACHTransferReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The reason why the Federal Reserve or destination bank returned this transfer. # Defaults to `no_account`. @@ -18,7 +18,7 @@ module Increase sig do params( reason: Increase::Models::Simulations::ACHTransferReturnParams::Reason::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -40,7 +40,7 @@ module Increase # The reason why the Federal Reserve or destination bank returned this transfer. # Defaults to `no_account`. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::ACHTransferReturnParams::Reason) } diff --git a/rbi/lib/increase/models/simulations/ach_transfer_settle_params.rbi b/rbi/lib/increase/models/simulations/ach_transfer_settle_params.rbi index 6ab67d77..3ba44fc4 100644 --- a/rbi/lib/increase/models/simulations/ach_transfer_settle_params.rbi +++ b/rbi/lib/increase/models/simulations/ach_transfer_settle_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class ACHTransferSettleParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferSettleParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/ach_transfer_submit_params.rbi b/rbi/lib/increase/models/simulations/ach_transfer_submit_params.rbi index 4a79b2c6..b653b05c 100644 --- a/rbi/lib/increase/models/simulations/ach_transfer_submit_params.rbi +++ b/rbi/lib/increase/models/simulations/ach_transfer_submit_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class ACHTransferSubmitParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/card_authorization_create_params.rbi b/rbi/lib/increase/models/simulations/card_authorization_create_params.rbi index 42e8aa4d..91204d03 100644 --- a/rbi/lib/increase/models/simulations/card_authorization_create_params.rbi +++ b/rbi/lib/increase/models/simulations/card_authorization_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardAuthorizationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The authorization amount in cents. sig { returns(Integer) } @@ -116,7 +116,7 @@ module Increase params( network_details: T.any( Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -163,12 +163,12 @@ module Increase merchant_state: String, network_details: T.any( Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), network_risk_score: Integer, physical_card_id: String, terminal_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -225,7 +225,7 @@ module Increase # Forces a card decline with a specific reason. No real time decision will be # sent. module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::DeclineReason) } @@ -370,7 +370,7 @@ module Increase # The direction describes the direction the funds will move, either from the # cardholder to the merchant or from the merchant to the cardholder. module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::Direction) } @@ -399,7 +399,7 @@ module Increase end end - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel # Fields specific to the Visa network. sig { returns(Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa) } attr_reader :visa @@ -408,7 +408,7 @@ module Increase params( visa: T.any( Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -420,7 +420,7 @@ module Increase params( visa: T.any( Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .returns(T.attached_class) @@ -435,7 +435,7 @@ module Increase def to_hash end - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel # The reason code for the stand-in processing. sig do returns( @@ -477,7 +477,7 @@ module Increase # The reason code for the stand-in processing. module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do diff --git a/rbi/lib/increase/models/simulations/card_authorization_create_response.rbi b/rbi/lib/increase/models/simulations/card_authorization_create_response.rbi index 77a69cc7..67e915e5 100644 --- a/rbi/lib/increase/models/simulations/card_authorization_create_response.rbi +++ b/rbi/lib/increase/models/simulations/card_authorization_create_response.rbi @@ -3,7 +3,7 @@ module Increase module Models module Simulations - class CardAuthorizationCreateResponse < Increase::BaseModel + class CardAuthorizationCreateResponse < Increase::Internal::Type::BaseModel # If the authorization attempt fails, this will contain the resulting # [Declined Transaction](#declined-transactions) object. The Declined # Transaction's `source` will be of `category: card_decline`. @@ -12,7 +12,7 @@ module Increase sig do params( - declined_transaction: T.nilable(T.any(Increase::Models::DeclinedTransaction, Increase::Util::AnyHash)) + declined_transaction: T.nilable(T.any(Increase::Models::DeclinedTransaction, Increase::Internal::AnyHash)) ) .void end @@ -26,7 +26,7 @@ module Increase sig do params( - pending_transaction: T.nilable(T.any(Increase::Models::PendingTransaction, Increase::Util::AnyHash)) + pending_transaction: T.nilable(T.any(Increase::Models::PendingTransaction, Increase::Internal::AnyHash)) ) .void end @@ -40,8 +40,8 @@ module Increase # The results of a Card Authorization simulation. sig do params( - declined_transaction: T.nilable(T.any(Increase::Models::DeclinedTransaction, Increase::Util::AnyHash)), - pending_transaction: T.nilable(T.any(Increase::Models::PendingTransaction, Increase::Util::AnyHash)), + declined_transaction: T.nilable(T.any(Increase::Models::DeclinedTransaction, Increase::Internal::AnyHash)), + pending_transaction: T.nilable(T.any(Increase::Models::PendingTransaction, Increase::Internal::AnyHash)), type: Increase::Models::Simulations::CardAuthorizationCreateResponse::Type::OrSymbol ) .returns(T.attached_class) @@ -65,7 +65,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_card_authorization_simulation_result`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::CardAuthorizationCreateResponse::Type) } diff --git a/rbi/lib/increase/models/simulations/card_authorization_expiration_create_params.rbi b/rbi/lib/increase/models/simulations/card_authorization_expiration_create_params.rbi index 51b09e7e..b96b64aa 100644 --- a/rbi/lib/increase/models/simulations/card_authorization_expiration_create_params.rbi +++ b/rbi/lib/increase/models/simulations/card_authorization_expiration_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardAuthorizationExpirationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardAuthorizationExpirationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Card Payment to expire. sig { returns(String) } @@ -14,7 +14,7 @@ module Increase sig do params( card_payment_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/card_dispute_action_params.rbi b/rbi/lib/increase/models/simulations/card_dispute_action_params.rbi index d8d86429..93c3be6c 100644 --- a/rbi/lib/increase/models/simulations/card_dispute_action_params.rbi +++ b/rbi/lib/increase/models/simulations/card_dispute_action_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardDisputeActionParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeActionParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The status to move the dispute to. sig { returns(Increase::Models::Simulations::CardDisputeActionParams::Status::OrSymbol) } @@ -22,7 +22,7 @@ module Increase params( status: Increase::Models::Simulations::CardDisputeActionParams::Status::OrSymbol, explanation: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -44,7 +44,7 @@ module Increase # The status to move the dispute to. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::CardDisputeActionParams::Status) } diff --git a/rbi/lib/increase/models/simulations/card_fuel_confirmation_create_params.rbi b/rbi/lib/increase/models/simulations/card_fuel_confirmation_create_params.rbi index f91ea50a..a5d77beb 100644 --- a/rbi/lib/increase/models/simulations/card_fuel_confirmation_create_params.rbi +++ b/rbi/lib/increase/models/simulations/card_fuel_confirmation_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardFuelConfirmationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardFuelConfirmationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The amount of the fuel_confirmation in minor units in the card authorization's # currency. @@ -20,7 +20,7 @@ module Increase params( amount: Integer, card_payment_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/card_increment_create_params.rbi b/rbi/lib/increase/models/simulations/card_increment_create_params.rbi index ddcefd15..a756048d 100644 --- a/rbi/lib/increase/models/simulations/card_increment_create_params.rbi +++ b/rbi/lib/increase/models/simulations/card_increment_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardIncrementCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardIncrementCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The amount of the increment in minor units in the card authorization's currency. sig { returns(Integer) } @@ -30,7 +30,7 @@ module Increase amount: Integer, card_payment_id: String, event_subscription_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/card_refund_create_params.rbi b/rbi/lib/increase/models/simulations/card_refund_create_params.rbi index aaef3b0b..41bdedf4 100644 --- a/rbi/lib/increase/models/simulations/card_refund_create_params.rbi +++ b/rbi/lib/increase/models/simulations/card_refund_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardRefundCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardRefundCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier for the Transaction to refund. The Transaction's source must have # a category of card_settlement. @@ -15,7 +15,7 @@ module Increase sig do params( transaction_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/card_reversal_create_params.rbi b/rbi/lib/increase/models/simulations/card_reversal_create_params.rbi index e128d84d..82c58b1f 100644 --- a/rbi/lib/increase/models/simulations/card_reversal_create_params.rbi +++ b/rbi/lib/increase/models/simulations/card_reversal_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardReversalCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardReversalCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Card Payment to create a reversal on. sig { returns(String) } @@ -23,7 +23,7 @@ module Increase params( card_payment_id: String, amount: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/card_settlement_create_params.rbi b/rbi/lib/increase/models/simulations/card_settlement_create_params.rbi index f526e1f5..3a69619d 100644 --- a/rbi/lib/increase/models/simulations/card_settlement_create_params.rbi +++ b/rbi/lib/increase/models/simulations/card_settlement_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class CardSettlementCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardSettlementCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Card to create a settlement on. sig { returns(String) } @@ -29,7 +29,7 @@ module Increase card_id: String, pending_transaction_id: String, amount: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/check_deposit_reject_params.rbi b/rbi/lib/increase/models/simulations/check_deposit_reject_params.rbi index f4ee8957..6b4893ac 100644 --- a/rbi/lib/increase/models/simulations/check_deposit_reject_params.rbi +++ b/rbi/lib/increase/models/simulations/check_deposit_reject_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class CheckDepositRejectParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositRejectParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/check_deposit_return_params.rbi b/rbi/lib/increase/models/simulations/check_deposit_return_params.rbi index 8453e384..3927cce4 100644 --- a/rbi/lib/increase/models/simulations/check_deposit_return_params.rbi +++ b/rbi/lib/increase/models/simulations/check_deposit_return_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class CheckDepositReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/check_deposit_submit_params.rbi b/rbi/lib/increase/models/simulations/check_deposit_submit_params.rbi index 403dfb9d..15141e7b 100644 --- a/rbi/lib/increase/models/simulations/check_deposit_submit_params.rbi +++ b/rbi/lib/increase/models/simulations/check_deposit_submit_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class CheckDepositSubmitParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/check_transfer_mail_params.rbi b/rbi/lib/increase/models/simulations/check_transfer_mail_params.rbi index 73507954..a3d419e4 100644 --- a/rbi/lib/increase/models/simulations/check_transfer_mail_params.rbi +++ b/rbi/lib/increase/models/simulations/check_transfer_mail_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class CheckTransferMailParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferMailParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_params.rbi b/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_params.rbi index f17e89be..dd4afb42 100644 --- a/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_params.rbi +++ b/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_params.rbi @@ -3,16 +3,22 @@ module Increase module Models module Simulations - class DigitalWalletTokenRequestCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalWalletTokenRequestCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Card to be authorized. sig { returns(String) } attr_accessor :card_id sig do - params(card_id: String, request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + params( + card_id: String, + request_options: T.any( + Increase::RequestOptions, + Increase::Internal::AnyHash + ) + ) .returns(T.attached_class) end def self.new(card_id:, request_options: {}) diff --git a/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_response.rbi b/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_response.rbi index f355c936..44b77c6a 100644 --- a/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_response.rbi +++ b/rbi/lib/increase/models/simulations/digital_wallet_token_request_create_response.rbi @@ -3,7 +3,7 @@ module Increase module Models module Simulations - class DigitalWalletTokenRequestCreateResponse < Increase::BaseModel + class DigitalWalletTokenRequestCreateResponse < Increase::Internal::Type::BaseModel # If the simulated tokenization attempt was declined, this field contains details # as to why. sig do @@ -55,7 +55,7 @@ module Increase # If the simulated tokenization attempt was declined, this field contains details # as to why. module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse::DeclineReason) } @@ -109,7 +109,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_digital_wallet_token_request_simulation_result`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse::Type) } diff --git a/rbi/lib/increase/models/simulations/document_create_params.rbi b/rbi/lib/increase/models/simulations/document_create_params.rbi index 914cd38d..bae81a66 100644 --- a/rbi/lib/increase/models/simulations/document_create_params.rbi +++ b/rbi/lib/increase/models/simulations/document_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class DocumentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DocumentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Account the tax document is for. sig { returns(String) } @@ -14,7 +14,10 @@ module Increase sig do params( account_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any( + Increase::RequestOptions, + Increase::Internal::AnyHash + ) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/inbound_ach_transfer_create_params.rbi b/rbi/lib/increase/models/simulations/inbound_ach_transfer_create_params.rbi index 789163a7..92e3e0f6 100644 --- a/rbi/lib/increase/models/simulations/inbound_ach_transfer_create_params.rbi +++ b/rbi/lib/increase/models/simulations/inbound_ach_transfer_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class InboundACHTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Account Number the inbound ACH Transfer is for. sig { returns(String) } @@ -103,7 +103,7 @@ module Increase receiver_name: String, resolve_at: Time, standard_entry_class_code: Increase::Models::Simulations::InboundACHTransferCreateParams::StandardEntryClassCode::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -147,7 +147,7 @@ module Increase # The standard entry class code for the transfer. module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::InboundACHTransferCreateParams::StandardEntryClassCode) } diff --git a/rbi/lib/increase/models/simulations/inbound_check_deposit_create_params.rbi b/rbi/lib/increase/models/simulations/inbound_check_deposit_create_params.rbi index ec358528..4fd6677f 100644 --- a/rbi/lib/increase/models/simulations/inbound_check_deposit_create_params.rbi +++ b/rbi/lib/increase/models/simulations/inbound_check_deposit_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class InboundCheckDepositCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Account Number the Inbound Check Deposit will be against. sig { returns(String) } @@ -24,7 +24,7 @@ module Increase account_number_id: String, amount: Integer, check_number: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/inbound_funds_hold_release_params.rbi b/rbi/lib/increase/models/simulations/inbound_funds_hold_release_params.rbi index e3ebf131..79f490f7 100644 --- a/rbi/lib/increase/models/simulations/inbound_funds_hold_release_params.rbi +++ b/rbi/lib/increase/models/simulations/inbound_funds_hold_release_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class InboundFundsHoldReleaseParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundFundsHoldReleaseParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/inbound_funds_hold_release_response.rbi b/rbi/lib/increase/models/simulations/inbound_funds_hold_release_response.rbi index fab205c5..ba1d51af 100644 --- a/rbi/lib/increase/models/simulations/inbound_funds_hold_release_response.rbi +++ b/rbi/lib/increase/models/simulations/inbound_funds_hold_release_response.rbi @@ -3,7 +3,7 @@ module Increase module Models module Simulations - class InboundFundsHoldReleaseResponse < Increase::BaseModel + class InboundFundsHoldReleaseResponse < Increase::Internal::Type::BaseModel # The Inbound Funds Hold identifier. sig { returns(String) } attr_accessor :id @@ -103,7 +103,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Currency) } @@ -144,7 +144,7 @@ module Increase # The status of the hold. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Status) } @@ -175,7 +175,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `inbound_funds_hold`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::InboundFundsHoldReleaseResponse::Type) } diff --git a/rbi/lib/increase/models/simulations/inbound_mail_item_create_params.rbi b/rbi/lib/increase/models/simulations/inbound_mail_item_create_params.rbi index fc95dc00..16a444d1 100644 --- a/rbi/lib/increase/models/simulations/inbound_mail_item_create_params.rbi +++ b/rbi/lib/increase/models/simulations/inbound_mail_item_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class InboundMailItemCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundMailItemCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The amount of the check to be simulated, in cents. sig { returns(Integer) } @@ -28,7 +28,7 @@ module Increase amount: Integer, lockbox_id: String, contents_file_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi b/rbi/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi index ba2b5594..9c9168f8 100644 --- a/rbi/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi +++ b/rbi/lib/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class InboundRealTimePaymentsTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundRealTimePaymentsTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Account Number the inbound Real-Time Payments Transfer is # for. @@ -60,7 +60,7 @@ module Increase debtor_routing_number: String, remittance_information: String, request_for_payment_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi b/rbi/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi index 92daf1b6..f5289552 100644 --- a/rbi/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi +++ b/rbi/lib/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class InboundWireDrawdownRequestCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The amount being requested in cents. sig { returns(Integer) } @@ -151,7 +151,7 @@ module Increase originator_to_beneficiary_information_line2: String, originator_to_beneficiary_information_line3: String, originator_to_beneficiary_information_line4: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/inbound_wire_transfer_create_params.rbi b/rbi/lib/increase/models/simulations/inbound_wire_transfer_create_params.rbi index 7ea30c7e..95e0a3c6 100644 --- a/rbi/lib/increase/models/simulations/inbound_wire_transfer_create_params.rbi +++ b/rbi/lib/increase/models/simulations/inbound_wire_transfer_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class InboundWireTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Account Number the inbound Wire Transfer is for. sig { returns(String) } @@ -154,7 +154,7 @@ module Increase originator_to_beneficiary_information_line3: String, originator_to_beneficiary_information_line4: String, sender_reference: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/interest_payment_create_params.rbi b/rbi/lib/increase/models/simulations/interest_payment_create_params.rbi index 5d9b288c..aa585e4a 100644 --- a/rbi/lib/increase/models/simulations/interest_payment_create_params.rbi +++ b/rbi/lib/increase/models/simulations/interest_payment_create_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class InterestPaymentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InterestPaymentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Account the Interest Payment should be paid to is for. sig { returns(String) } @@ -43,7 +43,7 @@ module Increase accrued_on_account_id: String, period_end: Time, period_start: Time, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/simulations/physical_card_advance_shipment_params.rbi b/rbi/lib/increase/models/simulations/physical_card_advance_shipment_params.rbi index e5f7e9d9..26fd27ba 100644 --- a/rbi/lib/increase/models/simulations/physical_card_advance_shipment_params.rbi +++ b/rbi/lib/increase/models/simulations/physical_card_advance_shipment_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class PhysicalCardAdvanceShipmentParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardAdvanceShipmentParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The shipment status to move the Physical Card to. sig { returns(Increase::Models::Simulations::PhysicalCardAdvanceShipmentParams::ShipmentStatus::OrSymbol) } @@ -14,7 +14,7 @@ module Increase sig do params( shipment_status: Increase::Models::Simulations::PhysicalCardAdvanceShipmentParams::ShipmentStatus::OrSymbol, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -35,7 +35,7 @@ module Increase # The shipment status to move the Physical Card to. module ShipmentStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Simulations::PhysicalCardAdvanceShipmentParams::ShipmentStatus) } diff --git a/rbi/lib/increase/models/simulations/program_create_params.rbi b/rbi/lib/increase/models/simulations/program_create_params.rbi index f7aeb945..88b7a685 100644 --- a/rbi/lib/increase/models/simulations/program_create_params.rbi +++ b/rbi/lib/increase/models/simulations/program_create_params.rbi @@ -3,16 +3,16 @@ module Increase module Models module Simulations - class ProgramCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProgramCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The name of the program being added. sig { returns(String) } attr_accessor :name sig do - params(name: String, request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + params(name: String, request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) .returns(T.attached_class) end def self.new(name:, request_options: {}) diff --git a/rbi/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rbi b/rbi/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rbi index 407a32ba..c88fdba3 100644 --- a/rbi/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rbi +++ b/rbi/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rbi @@ -3,9 +3,9 @@ module Increase module Models module Simulations - class RealTimePaymentsTransferCompleteParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferCompleteParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # If set, the simulation will reject the transfer. sig { returns(T.nilable(Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection)) } @@ -15,7 +15,7 @@ module Increase params( rejection: T.any( Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) .void @@ -26,9 +26,9 @@ module Increase params( rejection: T.any( Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -47,7 +47,7 @@ module Increase def to_hash end - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel # The reason code that the simulated rejection will have. sig do returns( @@ -79,7 +79,7 @@ module Increase # The reason code that the simulated rejection will have. module RejectReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do diff --git a/rbi/lib/increase/models/simulations/wire_transfer_reverse_params.rbi b/rbi/lib/increase/models/simulations/wire_transfer_reverse_params.rbi index 530cfb30..40e6ac73 100644 --- a/rbi/lib/increase/models/simulations/wire_transfer_reverse_params.rbi +++ b/rbi/lib/increase/models/simulations/wire_transfer_reverse_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class WireTransferReverseParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferReverseParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/simulations/wire_transfer_submit_params.rbi b/rbi/lib/increase/models/simulations/wire_transfer_submit_params.rbi index da2f078f..cb6410a9 100644 --- a/rbi/lib/increase/models/simulations/wire_transfer_submit_params.rbi +++ b/rbi/lib/increase/models/simulations/wire_transfer_submit_params.rbi @@ -3,17 +3,13 @@ module Increase module Models module Simulations - class WireTransferSubmitParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/supplemental_document_create_params.rbi b/rbi/lib/increase/models/supplemental_document_create_params.rbi index 7e584bc0..15942e32 100644 --- a/rbi/lib/increase/models/supplemental_document_create_params.rbi +++ b/rbi/lib/increase/models/supplemental_document_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class SupplementalDocumentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class SupplementalDocumentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Entity to associate with the supplemental document. sig { returns(String) } @@ -18,7 +18,7 @@ module Increase params( entity_id: String, file_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/supplemental_document_list_params.rbi b/rbi/lib/increase/models/supplemental_document_list_params.rbi index b636e739..be0455f8 100644 --- a/rbi/lib/increase/models/supplemental_document_list_params.rbi +++ b/rbi/lib/increase/models/supplemental_document_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class SupplementalDocumentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class SupplementalDocumentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier of the Entity to list supplemental documents for. sig { returns(String) } @@ -41,7 +41,7 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/transaction.rbi b/rbi/lib/increase/models/transaction.rbi index c5fb0ccc..fbad7678 100644 --- a/rbi/lib/increase/models/transaction.rbi +++ b/rbi/lib/increase/models/transaction.rbi @@ -2,7 +2,7 @@ module Increase module Models - class Transaction < Increase::BaseModel + class Transaction < Increase::Internal::Type::BaseModel # The Transaction identifier. sig { returns(String) } attr_accessor :id @@ -49,7 +49,7 @@ module Increase sig { returns(Increase::Models::Transaction::Source) } attr_reader :source - sig { params(source: T.any(Increase::Models::Transaction::Source, Increase::Util::AnyHash)).void } + sig { params(source: T.any(Increase::Models::Transaction::Source, Increase::Internal::AnyHash)).void } attr_writer :source # A constant representing the object's type. For this resource it will always be @@ -69,7 +69,7 @@ module Increase description: String, route_id: T.nilable(String), route_type: T.nilable(Increase::Models::Transaction::RouteType::OrSymbol), - source: T.any(Increase::Models::Transaction::Source, Increase::Util::AnyHash), + source: T.any(Increase::Models::Transaction::Source, Increase::Internal::AnyHash), type: Increase::Models::Transaction::Type::OrSymbol ) .returns(T.attached_class) @@ -112,7 +112,7 @@ module Increase # Transaction's currency. This will match the currency on the Transaction's # Account. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Currency) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Transaction::Currency::TaggedSymbol) } @@ -142,7 +142,7 @@ module Increase # The type of the route this Transaction came through. module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::RouteType) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Transaction::RouteType::TaggedSymbol) } @@ -161,7 +161,7 @@ module Increase end end - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel # 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 # Account Transfer Intentions are created from each Account Transfer. One @@ -171,7 +171,9 @@ module Increase sig do params( - account_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::AccountTransferIntention, Increase::Util::AnyHash)) + account_transfer_intention: T.nilable( + T.any(Increase::Models::Transaction::Source::AccountTransferIntention, Increase::Internal::AnyHash) + ) ) .void end @@ -186,7 +188,7 @@ module Increase sig do params( - ach_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferIntention, Increase::Util::AnyHash)) + ach_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferIntention, Increase::Internal::AnyHash)) ) .void end @@ -201,7 +203,7 @@ module Increase sig do params( - ach_transfer_rejection: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferRejection, Increase::Util::AnyHash)) + ach_transfer_rejection: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferRejection, Increase::Internal::AnyHash)) ) .void end @@ -218,7 +220,7 @@ module Increase sig do params( - ach_transfer_return: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferReturn, Increase::Util::AnyHash)) + ach_transfer_return: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferReturn, Increase::Internal::AnyHash)) ) .void end @@ -232,7 +234,9 @@ module Increase sig do params( - card_dispute_acceptance: T.nilable(T.any(Increase::Models::Transaction::Source::CardDisputeAcceptance, Increase::Util::AnyHash)) + card_dispute_acceptance: T.nilable( + T.any(Increase::Models::Transaction::Source::CardDisputeAcceptance, Increase::Internal::AnyHash) + ) ) .void end @@ -246,7 +250,7 @@ module Increase sig do params( - card_dispute_loss: T.nilable(T.any(Increase::Models::Transaction::Source::CardDisputeLoss, Increase::Util::AnyHash)) + card_dispute_loss: T.nilable(T.any(Increase::Models::Transaction::Source::CardDisputeLoss, Increase::Internal::AnyHash)) ) .void end @@ -262,7 +266,7 @@ module Increase sig do params( - card_refund: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund, Increase::Util::AnyHash)) + card_refund: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund, Increase::Internal::AnyHash)) ) .void end @@ -276,7 +280,7 @@ module Increase sig do params( - card_revenue_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CardRevenuePayment, Increase::Util::AnyHash)) + card_revenue_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CardRevenuePayment, Increase::Internal::AnyHash)) ) .void end @@ -292,7 +296,7 @@ module Increase sig do params( - card_settlement: T.nilable(T.any(Increase::Models::Transaction::Source::CardSettlement, Increase::Util::AnyHash)) + card_settlement: T.nilable(T.any(Increase::Models::Transaction::Source::CardSettlement, Increase::Internal::AnyHash)) ) .void end @@ -307,7 +311,7 @@ module Increase sig do params( - cashback_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CashbackPayment, Increase::Util::AnyHash)) + cashback_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CashbackPayment, Increase::Internal::AnyHash)) ) .void end @@ -328,7 +332,9 @@ module Increase sig do params( - check_deposit_acceptance: T.nilable(T.any(Increase::Models::Transaction::Source::CheckDepositAcceptance, Increase::Util::AnyHash)) + check_deposit_acceptance: T.nilable( + T.any(Increase::Models::Transaction::Source::CheckDepositAcceptance, Increase::Internal::AnyHash) + ) ) .void end @@ -345,7 +351,7 @@ module Increase sig do params( - check_deposit_return: T.nilable(T.any(Increase::Models::Transaction::Source::CheckDepositReturn, Increase::Util::AnyHash)) + check_deposit_return: T.nilable(T.any(Increase::Models::Transaction::Source::CheckDepositReturn, Increase::Internal::AnyHash)) ) .void end @@ -360,7 +366,7 @@ module Increase sig do params( - check_transfer_deposit: T.nilable(T.any(Increase::Models::Transaction::Source::CheckTransferDeposit, Increase::Util::AnyHash)) + check_transfer_deposit: T.nilable(T.any(Increase::Models::Transaction::Source::CheckTransferDeposit, Increase::Internal::AnyHash)) ) .void end @@ -374,7 +380,7 @@ module Increase sig do params( - fee_payment: T.nilable(T.any(Increase::Models::Transaction::Source::FeePayment, Increase::Util::AnyHash)) + fee_payment: T.nilable(T.any(Increase::Models::Transaction::Source::FeePayment, Increase::Internal::AnyHash)) ) .void end @@ -389,7 +395,7 @@ module Increase sig do params( - inbound_ach_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundACHTransfer, Increase::Util::AnyHash)) + inbound_ach_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundACHTransfer, Increase::Internal::AnyHash)) ) .void end @@ -406,7 +412,10 @@ module Increase sig do params( inbound_ach_transfer_return_intention: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundACHTransferReturnIntention, Increase::Util::AnyHash) + T.any( + Increase::Models::Transaction::Source::InboundACHTransferReturnIntention, + Increase::Internal::AnyHash + ) ) ) .void @@ -422,7 +431,9 @@ module Increase sig do params( - inbound_check_adjustment: T.nilable(T.any(Increase::Models::Transaction::Source::InboundCheckAdjustment, Increase::Util::AnyHash)) + inbound_check_adjustment: T.nilable( + T.any(Increase::Models::Transaction::Source::InboundCheckAdjustment, Increase::Internal::AnyHash) + ) ) .void end @@ -439,7 +450,10 @@ module Increase sig do params( inbound_check_deposit_return_intention: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundCheckDepositReturnIntention, Increase::Util::AnyHash) + T.any( + Increase::Models::Transaction::Source::InboundCheckDepositReturnIntention, + Increase::Internal::AnyHash + ) ) ) .void @@ -459,7 +473,7 @@ module Increase inbound_real_time_payments_transfer_confirmation: T.nilable( T.any( Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferConfirmation, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -478,7 +492,7 @@ module Increase inbound_real_time_payments_transfer_decline: T.nilable( T.any( Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferDecline, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -496,7 +510,7 @@ module Increase sig do params( - inbound_wire_reversal: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireReversal, Increase::Util::AnyHash)) + inbound_wire_reversal: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireReversal, Increase::Internal::AnyHash)) ) .void end @@ -511,7 +525,7 @@ module Increase sig do params( - inbound_wire_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireTransfer, Increase::Util::AnyHash)) + inbound_wire_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireTransfer, Increase::Internal::AnyHash)) ) .void end @@ -528,7 +542,7 @@ module Increase sig do params( inbound_wire_transfer_reversal: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundWireTransferReversal, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::InboundWireTransferReversal, Increase::Internal::AnyHash) ) ) .void @@ -544,7 +558,7 @@ module Increase sig do params( - interest_payment: T.nilable(T.any(Increase::Models::Transaction::Source::InterestPayment, Increase::Util::AnyHash)) + interest_payment: T.nilable(T.any(Increase::Models::Transaction::Source::InterestPayment, Increase::Internal::AnyHash)) ) .void end @@ -558,7 +572,7 @@ module Increase sig do params( - internal_source: T.nilable(T.any(Increase::Models::Transaction::Source::InternalSource, Increase::Util::AnyHash)) + internal_source: T.nilable(T.any(Increase::Models::Transaction::Source::InternalSource, Increase::Internal::AnyHash)) ) .void end @@ -582,7 +596,7 @@ module Increase real_time_payments_transfer_acknowledgement: T.nilable( T.any( Increase::Models::Transaction::Source::RealTimePaymentsTransferAcknowledgement, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -598,7 +612,7 @@ module Increase sig do params( - sample_funds: T.nilable(T.any(Increase::Models::Transaction::Source::SampleFunds, Increase::Util::AnyHash)) + sample_funds: T.nilable(T.any(Increase::Models::Transaction::Source::SampleFunds, Increase::Internal::AnyHash)) ) .void end @@ -612,7 +626,9 @@ module Increase sig do params( - wire_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::WireTransferIntention, Increase::Util::AnyHash)) + wire_transfer_intention: T.nilable( + T.any(Increase::Models::Transaction::Source::WireTransferIntention, Increase::Internal::AnyHash) + ) ) .void end @@ -624,57 +640,73 @@ module Increase # deprecated and will be removed in the future. sig do params( - account_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::AccountTransferIntention, Increase::Util::AnyHash)), - ach_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferIntention, Increase::Util::AnyHash)), - ach_transfer_rejection: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferRejection, Increase::Util::AnyHash)), - ach_transfer_return: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferReturn, Increase::Util::AnyHash)), - card_dispute_acceptance: T.nilable(T.any(Increase::Models::Transaction::Source::CardDisputeAcceptance, Increase::Util::AnyHash)), - card_dispute_loss: T.nilable(T.any(Increase::Models::Transaction::Source::CardDisputeLoss, Increase::Util::AnyHash)), - card_refund: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund, Increase::Util::AnyHash)), - card_revenue_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CardRevenuePayment, Increase::Util::AnyHash)), - card_settlement: T.nilable(T.any(Increase::Models::Transaction::Source::CardSettlement, Increase::Util::AnyHash)), - cashback_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CashbackPayment, Increase::Util::AnyHash)), + account_transfer_intention: T.nilable( + T.any(Increase::Models::Transaction::Source::AccountTransferIntention, Increase::Internal::AnyHash) + ), + ach_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferIntention, Increase::Internal::AnyHash)), + ach_transfer_rejection: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferRejection, Increase::Internal::AnyHash)), + ach_transfer_return: T.nilable(T.any(Increase::Models::Transaction::Source::ACHTransferReturn, Increase::Internal::AnyHash)), + card_dispute_acceptance: T.nilable( + T.any(Increase::Models::Transaction::Source::CardDisputeAcceptance, Increase::Internal::AnyHash) + ), + card_dispute_loss: T.nilable(T.any(Increase::Models::Transaction::Source::CardDisputeLoss, Increase::Internal::AnyHash)), + card_refund: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund, Increase::Internal::AnyHash)), + card_revenue_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CardRevenuePayment, Increase::Internal::AnyHash)), + card_settlement: T.nilable(T.any(Increase::Models::Transaction::Source::CardSettlement, Increase::Internal::AnyHash)), + cashback_payment: T.nilable(T.any(Increase::Models::Transaction::Source::CashbackPayment, Increase::Internal::AnyHash)), category: Increase::Models::Transaction::Source::Category::OrSymbol, - check_deposit_acceptance: T.nilable(T.any(Increase::Models::Transaction::Source::CheckDepositAcceptance, Increase::Util::AnyHash)), - check_deposit_return: T.nilable(T.any(Increase::Models::Transaction::Source::CheckDepositReturn, Increase::Util::AnyHash)), - check_transfer_deposit: T.nilable(T.any(Increase::Models::Transaction::Source::CheckTransferDeposit, Increase::Util::AnyHash)), - fee_payment: T.nilable(T.any(Increase::Models::Transaction::Source::FeePayment, Increase::Util::AnyHash)), - inbound_ach_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundACHTransfer, Increase::Util::AnyHash)), + check_deposit_acceptance: T.nilable( + T.any(Increase::Models::Transaction::Source::CheckDepositAcceptance, Increase::Internal::AnyHash) + ), + check_deposit_return: T.nilable(T.any(Increase::Models::Transaction::Source::CheckDepositReturn, Increase::Internal::AnyHash)), + check_transfer_deposit: T.nilable(T.any(Increase::Models::Transaction::Source::CheckTransferDeposit, Increase::Internal::AnyHash)), + fee_payment: T.nilable(T.any(Increase::Models::Transaction::Source::FeePayment, Increase::Internal::AnyHash)), + inbound_ach_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundACHTransfer, Increase::Internal::AnyHash)), inbound_ach_transfer_return_intention: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundACHTransferReturnIntention, Increase::Util::AnyHash) + T.any( + Increase::Models::Transaction::Source::InboundACHTransferReturnIntention, + Increase::Internal::AnyHash + ) + ), + inbound_check_adjustment: T.nilable( + T.any(Increase::Models::Transaction::Source::InboundCheckAdjustment, Increase::Internal::AnyHash) ), - inbound_check_adjustment: T.nilable(T.any(Increase::Models::Transaction::Source::InboundCheckAdjustment, Increase::Util::AnyHash)), inbound_check_deposit_return_intention: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundCheckDepositReturnIntention, Increase::Util::AnyHash) + T.any( + Increase::Models::Transaction::Source::InboundCheckDepositReturnIntention, + Increase::Internal::AnyHash + ) ), inbound_real_time_payments_transfer_confirmation: T.nilable( T.any( Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferConfirmation, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), inbound_real_time_payments_transfer_decline: T.nilable( T.any( Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferDecline, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), - inbound_wire_reversal: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireReversal, Increase::Util::AnyHash)), - inbound_wire_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireTransfer, Increase::Util::AnyHash)), + inbound_wire_reversal: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireReversal, Increase::Internal::AnyHash)), + inbound_wire_transfer: T.nilable(T.any(Increase::Models::Transaction::Source::InboundWireTransfer, Increase::Internal::AnyHash)), inbound_wire_transfer_reversal: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundWireTransferReversal, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::InboundWireTransferReversal, Increase::Internal::AnyHash) ), - interest_payment: T.nilable(T.any(Increase::Models::Transaction::Source::InterestPayment, Increase::Util::AnyHash)), - internal_source: T.nilable(T.any(Increase::Models::Transaction::Source::InternalSource, Increase::Util::AnyHash)), + interest_payment: T.nilable(T.any(Increase::Models::Transaction::Source::InterestPayment, Increase::Internal::AnyHash)), + internal_source: T.nilable(T.any(Increase::Models::Transaction::Source::InternalSource, Increase::Internal::AnyHash)), other: T.nilable(T.anything), real_time_payments_transfer_acknowledgement: T.nilable( T.any( Increase::Models::Transaction::Source::RealTimePaymentsTransferAcknowledgement, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), - sample_funds: T.nilable(T.any(Increase::Models::Transaction::Source::SampleFunds, Increase::Util::AnyHash)), - wire_transfer_intention: T.nilable(T.any(Increase::Models::Transaction::Source::WireTransferIntention, Increase::Util::AnyHash)) + sample_funds: T.nilable(T.any(Increase::Models::Transaction::Source::SampleFunds, Increase::Internal::AnyHash)), + wire_transfer_intention: T.nilable( + T.any(Increase::Models::Transaction::Source::WireTransferIntention, Increase::Internal::AnyHash) + ) ) .returns(T.attached_class) end @@ -752,7 +784,7 @@ module Increase def to_hash end - class AccountTransferIntention < Increase::BaseModel + class AccountTransferIntention < Increase::Internal::Type::BaseModel # The pending amount in the minor unit of the transaction's currency. For dollars, # for example, this is cents. sig { returns(Integer) } @@ -823,7 +855,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination # account currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::AccountTransferIntention::Currency) } @@ -869,7 +901,7 @@ module Increase end end - class ACHTransferIntention < Increase::BaseModel + class ACHTransferIntention < Increase::Internal::Type::BaseModel # The account number for the destination account. sig { returns(String) } attr_accessor :account_number @@ -925,7 +957,7 @@ module Increase end end - class ACHTransferRejection < Increase::BaseModel + class ACHTransferRejection < Increase::Internal::Type::BaseModel # The identifier of the ACH Transfer that led to this Transaction. sig { returns(String) } attr_accessor :transfer_id @@ -943,7 +975,7 @@ module Increase end end - class ACHTransferReturn < Increase::BaseModel + class ACHTransferReturn < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was created. sig { returns(Time) } @@ -1019,7 +1051,7 @@ module Increase # Why the ACH Transfer was returned. This reason code is sent by the receiving # bank back to Increase. module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::ACHTransferReturn::ReturnReasonCode) } @@ -1533,7 +1565,7 @@ module Increase end end - class CardDisputeAcceptance < Increase::BaseModel + class CardDisputeAcceptance < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Card Dispute was accepted. sig { returns(Time) } @@ -1566,7 +1598,7 @@ module Increase end end - class CardDisputeLoss < Increase::BaseModel + class CardDisputeLoss < Increase::Internal::Type::BaseModel # The identifier of the Card Dispute that was lost. sig { returns(String) } attr_accessor :card_dispute_id @@ -1609,7 +1641,7 @@ module Increase end end - class CardRefund < Increase::BaseModel + class CardRefund < Increase::Internal::Type::BaseModel # The Card Refund identifier. sig { returns(String) } attr_accessor :id @@ -1630,7 +1662,7 @@ module Increase sig do params( - cashback: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund::Cashback, Increase::Util::AnyHash)) + cashback: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund::Cashback, Increase::Internal::AnyHash)) ) .void end @@ -1647,7 +1679,9 @@ module Increase sig do params( - interchange: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund::Interchange, Increase::Util::AnyHash)) + interchange: T.nilable( + T.any(Increase::Models::Transaction::Source::CardRefund::Interchange, Increase::Internal::AnyHash) + ) ) .void end @@ -1688,7 +1722,7 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::Transaction::Source::CardRefund::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any(Increase::Models::Transaction::Source::CardRefund::NetworkIdentifiers, Increase::Internal::AnyHash) ) .void end @@ -1711,7 +1745,7 @@ module Increase sig do params( purchase_details: T.nilable( - T.any(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails, Increase::Internal::AnyHash) ) ) .void @@ -1737,9 +1771,11 @@ module Increase id: String, amount: Integer, card_payment_id: String, - cashback: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund::Cashback, Increase::Util::AnyHash)), + cashback: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund::Cashback, Increase::Internal::AnyHash)), currency: Increase::Models::Transaction::Source::CardRefund::Currency::OrSymbol, - interchange: T.nilable(T.any(Increase::Models::Transaction::Source::CardRefund::Interchange, Increase::Util::AnyHash)), + interchange: T.nilable( + T.any(Increase::Models::Transaction::Source::CardRefund::Interchange, Increase::Internal::AnyHash) + ), merchant_acceptor_id: String, merchant_category_code: String, merchant_city: String, @@ -1747,11 +1783,11 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_identifiers: T.any(Increase::Models::Transaction::Source::CardRefund::NetworkIdentifiers, Increase::Util::AnyHash), + network_identifiers: T.any(Increase::Models::Transaction::Source::CardRefund::NetworkIdentifiers, Increase::Internal::AnyHash), presentment_amount: Integer, presentment_currency: String, purchase_details: T.nilable( - T.any(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails, Increase::Internal::AnyHash) ), transaction_id: String, type: Increase::Models::Transaction::Source::CardRefund::Type::OrSymbol @@ -1810,7 +1846,7 @@ module Increase def to_hash end - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # 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 # negative number if it will be debited (e.g., refunds). @@ -1847,7 +1883,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardRefund::Cashback::Currency) } @@ -1884,7 +1920,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's settlement currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardRefund::Currency) } @@ -1914,7 +1950,7 @@ module Increase end end - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a # negative number if it is debited (e.g., refunds). @@ -1958,7 +1994,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardRefund::Interchange::Currency) } @@ -1998,7 +2034,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # A network assigned business ID that identifies the acquirer that processed this # transaction. sig { returns(String) } @@ -2039,7 +2075,7 @@ module Increase end end - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # Fields specific to car rentals. sig { returns(T.nilable(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental)) } attr_reader :car_rental @@ -2049,7 +2085,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -2079,7 +2115,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -2117,7 +2153,10 @@ module Increase sig do params( travel: T.nilable( - T.any(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel, Increase::Util::AnyHash) + T.any( + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel, + Increase::Internal::AnyHash + ) ) ) .void @@ -2131,7 +2170,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), customer_reference_identifier: T.nilable(String), @@ -2140,7 +2179,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), national_tax_amount: T.nilable(Integer), @@ -2150,7 +2189,10 @@ module Increase Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::PurchaseIdentifierFormat::OrSymbol ), travel: T.nilable( - T.any(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel, Increase::Util::AnyHash) + T.any( + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel, + Increase::Internal::AnyHash + ) ) ) .returns(T.attached_class) @@ -2191,7 +2233,7 @@ module Increase def to_hash end - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } attr_accessor :car_class_code @@ -2354,7 +2396,7 @@ module Increase # Additional charges (gas, late fee, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental::ExtraCharges) } @@ -2422,7 +2464,7 @@ module Increase # An indicator that the cardholder is being billed for a reserved vehicle that was # not actually rented (that is, a "no-show" charge). module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2464,7 +2506,7 @@ module Increase end end - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # Date the customer checked in. sig { returns(T.nilable(Date)) } attr_accessor :check_in_date @@ -2626,7 +2668,7 @@ module Increase # Additional charges (phone, late check-out, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging::ExtraCharges) } @@ -2701,7 +2743,7 @@ module Increase # Indicator that the cardholder is being billed for a reserved room that was not # actually used. module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2743,7 +2785,7 @@ module Increase # The format of the purchase identifier. module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -2803,7 +2845,7 @@ module Increase end end - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # Ancillary purchases in addition to the airfare. sig { returns(T.nilable(Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary)) } attr_reader :ancillary @@ -2813,7 +2855,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -2893,7 +2935,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), computerized_reservation_system: T.nilable(String), @@ -2916,7 +2958,7 @@ module Increase T::Array[ T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ] ) @@ -2967,7 +3009,7 @@ module Increase def to_hash end - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the # ticket document number for the other purchase. @@ -3011,7 +3053,7 @@ module Increase services: T::Array[ T.any( Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ], ticket_document_number: T.nilable(String) @@ -3046,7 +3088,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3101,7 +3143,7 @@ module Increase end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # Category of the ancillary service. sig do returns( @@ -3144,7 +3186,7 @@ module Increase # Category of the ancillary service. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3343,7 +3385,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3414,7 +3456,7 @@ module Increase # Indicates whether this ticket is non-refundable. module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3457,7 +3499,7 @@ module Increase # Indicates why a ticket was changed. module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3505,7 +3547,7 @@ module Increase end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # Carrier code (e.g., United Airlines, Jet Blue, etc.). sig { returns(T.nilable(String)) } attr_accessor :carrier_code @@ -3579,7 +3621,7 @@ module Increase # Indicates whether a stopover is allowed on this ticket. module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -3633,7 +3675,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_refund`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardRefund::Type) } OrSymbol = @@ -3647,7 +3689,7 @@ module Increase end end - class CardRevenuePayment < Increase::BaseModel + class CardRevenuePayment < Increase::Internal::Type::BaseModel # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. sig { returns(Integer) } @@ -3704,7 +3746,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardRevenuePayment::Currency) } @@ -3738,7 +3780,7 @@ module Increase end end - class CardSettlement < Increase::BaseModel + class CardSettlement < Increase::Internal::Type::BaseModel # The Card Settlement identifier. sig { returns(String) } attr_accessor :id @@ -3764,7 +3806,9 @@ module Increase sig do params( - cashback: T.nilable(T.any(Increase::Models::Transaction::Source::CardSettlement::Cashback, Increase::Util::AnyHash)) + cashback: T.nilable( + T.any(Increase::Models::Transaction::Source::CardSettlement::Cashback, Increase::Internal::AnyHash) + ) ) .void end @@ -3782,7 +3826,7 @@ module Increase sig do params( interchange: T.nilable( - T.any(Increase::Models::Transaction::Source::CardSettlement::Interchange, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::CardSettlement::Interchange, Increase::Internal::AnyHash) ) ) .void @@ -3824,7 +3868,10 @@ module Increase sig do params( - network_identifiers: T.any(Increase::Models::Transaction::Source::CardSettlement::NetworkIdentifiers, Increase::Util::AnyHash) + network_identifiers: T.any( + Increase::Models::Transaction::Source::CardSettlement::NetworkIdentifiers, + Increase::Internal::AnyHash + ) ) .void end @@ -3851,7 +3898,7 @@ module Increase sig do params( purchase_details: T.nilable( - T.any(Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails, Increase::Internal::AnyHash) ) ) .void @@ -3878,10 +3925,12 @@ module Increase amount: Integer, card_authorization: T.nilable(String), card_payment_id: String, - cashback: T.nilable(T.any(Increase::Models::Transaction::Source::CardSettlement::Cashback, Increase::Util::AnyHash)), + cashback: T.nilable( + T.any(Increase::Models::Transaction::Source::CardSettlement::Cashback, Increase::Internal::AnyHash) + ), currency: Increase::Models::Transaction::Source::CardSettlement::Currency::OrSymbol, interchange: T.nilable( - T.any(Increase::Models::Transaction::Source::CardSettlement::Interchange, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::CardSettlement::Interchange, Increase::Internal::AnyHash) ), merchant_acceptor_id: String, merchant_category_code: String, @@ -3890,12 +3939,15 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), - network_identifiers: T.any(Increase::Models::Transaction::Source::CardSettlement::NetworkIdentifiers, Increase::Util::AnyHash), + network_identifiers: T.any( + Increase::Models::Transaction::Source::CardSettlement::NetworkIdentifiers, + Increase::Internal::AnyHash + ), pending_transaction_id: T.nilable(String), presentment_amount: Integer, presentment_currency: String, purchase_details: T.nilable( - T.any(Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails, Increase::Internal::AnyHash) ), transaction_id: String, type: Increase::Models::Transaction::Source::CardSettlement::Type::OrSymbol @@ -3958,7 +4010,7 @@ module Increase def to_hash end - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel # 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 # negative number if it will be debited (e.g., refunds). @@ -3995,7 +4047,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardSettlement::Cashback::Currency) } @@ -4044,7 +4096,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's settlement currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardSettlement::Currency) } @@ -4074,7 +4126,7 @@ module Increase end end - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel # The interchange amount given as a string containing a decimal number. The amount # is a positive number if it is credited to Increase (e.g., settlements) and a # negative number if it is debited (e.g., refunds). @@ -4118,7 +4170,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the interchange # reimbursement. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardSettlement::Interchange::Currency) } @@ -4166,7 +4218,7 @@ module Increase end end - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel # A network assigned business ID that identifies the acquirer that processed this # transaction. sig { returns(String) } @@ -4207,7 +4259,7 @@ module Increase end end - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel # Fields specific to car rentals. sig { returns(T.nilable(Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::CarRental)) } attr_reader :car_rental @@ -4217,7 +4269,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4247,7 +4299,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4287,7 +4339,7 @@ module Increase travel: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4302,7 +4354,7 @@ module Increase car_rental: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::CarRental, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), customer_reference_identifier: T.nilable(String), @@ -4311,7 +4363,7 @@ module Increase lodging: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Lodging, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), national_tax_amount: T.nilable(Integer), @@ -4323,7 +4375,7 @@ module Increase travel: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -4365,7 +4417,7 @@ module Increase def to_hash end - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel # Code indicating the vehicle's class. sig { returns(T.nilable(String)) } attr_accessor :car_class_code @@ -4528,7 +4580,7 @@ module Increase # Additional charges (gas, late fee, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -4600,7 +4652,7 @@ module Increase # An indicator that the cardholder is being billed for a reserved vehicle that was # not actually rented (that is, a "no-show" charge). module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -4642,7 +4694,7 @@ module Increase end end - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel # Date the customer checked in. sig { returns(T.nilable(Date)) } attr_accessor :check_in_date @@ -4804,7 +4856,7 @@ module Increase # Additional charges (phone, late check-out, etc.) being billed. module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -4883,7 +4935,7 @@ module Increase # Indicator that the cardholder is being billed for a reserved room that was not # actually used. module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -4927,7 +4979,7 @@ module Increase # The format of the purchase identifier. module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -4989,7 +5041,7 @@ module Increase end end - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel # Ancillary purchases in addition to the airfare. sig do returns( @@ -5003,7 +5055,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -5085,7 +5137,7 @@ module Increase ancillary: T.nilable( T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ), computerized_reservation_system: T.nilable(String), @@ -5108,7 +5160,7 @@ module Increase T::Array[ T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ] ) @@ -5161,7 +5213,7 @@ module Increase def to_hash end - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel # If this purchase has a connection or relationship to another purchase, such as a # baggage fee for a passenger transport ticket, this field should contain the # ticket document number for the other purchase. @@ -5205,7 +5257,7 @@ module Increase services: T::Array[ T.any( Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ], ticket_document_number: T.nilable(String) @@ -5240,7 +5292,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5295,7 +5347,7 @@ module Increase end end - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel # Category of the ancillary service. sig do returns( @@ -5338,7 +5390,7 @@ module Increase # Category of the ancillary service. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5537,7 +5589,7 @@ module Increase # Indicates the reason for a credit to the cardholder. module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5608,7 +5660,7 @@ module Increase # Indicates whether this ticket is non-refundable. module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5651,7 +5703,7 @@ module Increase # Indicates why a ticket was changed. module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5699,7 +5751,7 @@ module Increase end end - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel # Carrier code (e.g., United Airlines, Jet Blue, etc.). sig { returns(T.nilable(String)) } attr_accessor :carrier_code @@ -5773,7 +5825,7 @@ module Increase # Indicates whether a stopover is allowed on this ticket. module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -5827,7 +5879,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `card_settlement`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CardSettlement::Type) } @@ -5843,7 +5895,7 @@ module Increase end end - class CashbackPayment < Increase::BaseModel + class CashbackPayment < Increase::Internal::Type::BaseModel # The card on which the cashback was accrued. sig { returns(T.nilable(String)) } attr_accessor :accrued_on_card_id @@ -5901,7 +5953,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CashbackPayment::Currency) } @@ -5935,7 +5987,7 @@ module Increase # 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. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::Category) } OrSymbol = @@ -6071,7 +6123,7 @@ module Increase end end - class CheckDepositAcceptance < Increase::BaseModel + class CheckDepositAcceptance < Increase::Internal::Type::BaseModel # The account number printed on the check. sig { returns(String) } attr_accessor :account_number @@ -6152,7 +6204,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CheckDepositAcceptance::Currency) } @@ -6192,7 +6244,7 @@ module Increase end end - class CheckDepositReturn < Increase::BaseModel + class CheckDepositReturn < Increase::Internal::Type::BaseModel # The returned amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -6260,7 +6312,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the # transaction's currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CheckDepositReturn::Currency) } @@ -6296,7 +6348,7 @@ module Increase # Why this check was returned by the bank holding the account it was drawn # against. module ReturnReason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CheckDepositReturn::ReturnReason) } @@ -6491,7 +6543,7 @@ module Increase end end - class CheckTransferDeposit < Increase::BaseModel + class CheckTransferDeposit < Increase::Internal::Type::BaseModel # The identifier of the API File object containing an image of the back of the # deposited check. sig { returns(T.nilable(String)) } @@ -6580,7 +6632,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `check_transfer_deposit`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::CheckTransferDeposit::Type) } @@ -6601,7 +6653,7 @@ module Increase end end - class FeePayment < Increase::BaseModel + class FeePayment < Increase::Internal::Type::BaseModel # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. sig { returns(Integer) } @@ -6652,7 +6704,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::FeePayment::Currency) } @@ -6683,7 +6735,7 @@ module Increase end end - class InboundACHTransfer < Increase::BaseModel + class InboundACHTransfer < Increase::Internal::Type::BaseModel # Additional information sent from the originator. sig { returns(T.nilable(Increase::Models::Transaction::Source::InboundACHTransfer::Addenda)) } attr_reader :addenda @@ -6691,7 +6743,7 @@ module Increase sig do params( addenda: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundACHTransfer::Addenda, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::InboundACHTransfer::Addenda, Increase::Internal::AnyHash) ) ) .void @@ -6751,7 +6803,7 @@ module Increase sig do params( addenda: T.nilable( - T.any(Increase::Models::Transaction::Source::InboundACHTransfer::Addenda, Increase::Util::AnyHash) + T.any(Increase::Models::Transaction::Source::InboundACHTransfer::Addenda, Increase::Internal::AnyHash) ), amount: Integer, originator_company_descriptive_date: T.nilable(String), @@ -6802,7 +6854,7 @@ module Increase def to_hash end - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel # The type of addendum. sig { returns(Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Category::TaggedSymbol) } attr_accessor :category @@ -6816,7 +6868,7 @@ module Increase freeform: T.nilable( T.any( Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -6831,7 +6883,7 @@ module Increase freeform: T.nilable( T.any( Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ) ) @@ -6854,7 +6906,7 @@ module Increase # The type of addendum. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Category) } @@ -6884,7 +6936,7 @@ module Increase end end - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel # Each entry represents an addendum received from the originator. sig { returns(T::Array[Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry]) } attr_accessor :entries @@ -6895,7 +6947,7 @@ module Increase entries: T::Array[ T.any( Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry, - Increase::Util::AnyHash + Increase::Internal::AnyHash ) ] ) @@ -6913,7 +6965,7 @@ module Increase def to_hash end - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel # The payment related information passed in the addendum. sig { returns(String) } attr_accessor :payment_related_information @@ -6930,7 +6982,7 @@ module Increase end end - class InboundACHTransferReturnIntention < Increase::BaseModel + class InboundACHTransferReturnIntention < Increase::Internal::Type::BaseModel # The ID of the Inbound ACH Transfer that is being returned. sig { returns(String) } attr_accessor :inbound_ach_transfer_id @@ -6949,7 +7001,7 @@ module Increase end end - class InboundCheckAdjustment < Increase::BaseModel + class InboundCheckAdjustment < Increase::Internal::Type::BaseModel # The ID of the transaction that was adjusted. sig { returns(String) } attr_accessor :adjusted_transaction_id @@ -6992,7 +7044,7 @@ module Increase # The reason for the adjustment. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::InboundCheckAdjustment::Reason) } @@ -7033,7 +7085,7 @@ module Increase end end - class InboundCheckDepositReturnIntention < Increase::BaseModel + class InboundCheckDepositReturnIntention < Increase::Internal::Type::BaseModel # The ID of the Inbound Check Deposit that is being returned. sig { returns(String) } attr_accessor :inbound_check_deposit_id @@ -7058,7 +7110,7 @@ module Increase end end - class InboundRealTimePaymentsTransferConfirmation < Increase::BaseModel + class InboundRealTimePaymentsTransferConfirmation < Increase::Internal::Type::BaseModel # The amount in the minor unit of the transfer's currency. For dollars, for # example, this is cents. sig { returns(Integer) } @@ -7155,7 +7207,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's # currency. This will always be "USD" for a Real-Time Payments transfer. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias do @@ -7223,7 +7275,7 @@ module Increase end end - class InboundRealTimePaymentsTransferDecline < Increase::BaseModel + class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel # The declined amount in the minor unit of the destination account currency. For # dollars, for example, this is cents. sig { returns(Integer) } @@ -7331,7 +7383,7 @@ module Increase # transfer's currency. This will always be "USD" for a Real-Time Payments # transfer. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferDecline::Currency) } @@ -7398,7 +7450,7 @@ module Increase # Why the transfer was declined. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferDecline::Reason) } @@ -7464,7 +7516,7 @@ module Increase end end - class InboundWireReversal < Increase::BaseModel + class InboundWireReversal < Increase::Internal::Type::BaseModel # The amount that was reversed in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -7614,7 +7666,7 @@ module Increase end end - class InboundWireTransfer < Increase::BaseModel + class InboundWireTransfer < Increase::Internal::Type::BaseModel # The amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -7775,7 +7827,7 @@ module Increase end end - class InboundWireTransferReversal < Increase::BaseModel + class InboundWireTransferReversal < Increase::Internal::Type::BaseModel # The ID of the Inbound Wire Transfer that is being reversed. sig { returns(String) } attr_accessor :inbound_wire_transfer_id @@ -7794,7 +7846,7 @@ module Increase end end - class InterestPayment < Increase::BaseModel + class InterestPayment < Increase::Internal::Type::BaseModel # The account on which the interest was accrued. sig { returns(String) } attr_accessor :accrued_on_account_id @@ -7852,7 +7904,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::InterestPayment::Currency) } @@ -7883,7 +7935,7 @@ module Increase end end - class InternalSource < Increase::BaseModel + class InternalSource < Increase::Internal::Type::BaseModel # The amount in the minor unit of the transaction's currency. For dollars, for # example, this is cents. sig { returns(Integer) } @@ -7929,7 +7981,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction # currency. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::InternalSource::Currency) } @@ -7962,7 +8014,7 @@ module Increase # An Internal Source is a transaction between you and Increase. This describes the # reason for the transaction. module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Source::InternalSource::Reason) } @@ -8038,7 +8090,7 @@ module Increase end end - class RealTimePaymentsTransferAcknowledgement < Increase::BaseModel + class RealTimePaymentsTransferAcknowledgement < Increase::Internal::Type::BaseModel # The transfer amount in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -8099,7 +8151,7 @@ module Increase end end - class SampleFunds < Increase::BaseModel + class SampleFunds < Increase::Internal::Type::BaseModel # Where the sample funds came from. sig { returns(String) } attr_accessor :originator @@ -8116,7 +8168,7 @@ module Increase end end - class WireTransferIntention < Increase::BaseModel + class WireTransferIntention < Increase::Internal::Type::BaseModel # The destination account number. sig { returns(String) } attr_accessor :account_number @@ -8173,7 +8225,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `transaction`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::Transaction::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::Transaction::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/transaction_list_params.rbi b/rbi/lib/increase/models/transaction_list_params.rbi index 3e38d1d9..e99b38e4 100644 --- a/rbi/lib/increase/models/transaction_list_params.rbi +++ b/rbi/lib/increase/models/transaction_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class TransactionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class TransactionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Transactions for those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -16,13 +16,19 @@ module Increase sig { returns(T.nilable(Increase::Models::TransactionListParams::Category)) } attr_reader :category - sig { params(category: T.any(Increase::Models::TransactionListParams::Category, Increase::Util::AnyHash)).void } + sig do + params(category: T.any(Increase::Models::TransactionListParams::Category, Increase::Internal::AnyHash)) + .void + end attr_writer :category sig { returns(T.nilable(Increase::Models::TransactionListParams::CreatedAt)) } attr_reader :created_at - sig { params(created_at: T.any(Increase::Models::TransactionListParams::CreatedAt, Increase::Util::AnyHash)).void } + sig do + params(created_at: T.any(Increase::Models::TransactionListParams::CreatedAt, Increase::Internal::AnyHash)) + .void + end attr_writer :created_at # Return the page of entries after this one. @@ -51,12 +57,12 @@ module Increase sig do params( account_id: String, - category: T.any(Increase::Models::TransactionListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::TransactionListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::TransactionListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::TransactionListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, route_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -88,7 +94,7 @@ module Increase def to_hash end - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel # 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`. sig { returns(T.nilable(T::Array[Increase::Models::TransactionListParams::Category::In::OrSymbol])) } @@ -109,7 +115,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::TransactionListParams::Category::In) } OrSymbol = @@ -251,7 +257,7 @@ module Increase end end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/transaction_retrieve_params.rbi b/rbi/lib/increase/models/transaction_retrieve_params.rbi index 0ab8c617..06c1a96e 100644 --- a/rbi/lib/increase/models/transaction_retrieve_params.rbi +++ b/rbi/lib/increase/models/transaction_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class TransactionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class TransactionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/wire_drawdown_request.rbi b/rbi/lib/increase/models/wire_drawdown_request.rbi index 891c1eb2..c10ee22c 100644 --- a/rbi/lib/increase/models/wire_drawdown_request.rbi +++ b/rbi/lib/increase/models/wire_drawdown_request.rbi @@ -2,7 +2,7 @@ module Increase module Models - class WireDrawdownRequest < Increase::BaseModel + class WireDrawdownRequest < Increase::Internal::Type::BaseModel # The Wire drawdown request identifier. sig { returns(String) } attr_accessor :id @@ -92,7 +92,7 @@ module Increase sig do params( - submission: T.nilable(T.any(Increase::Models::WireDrawdownRequest::Submission, Increase::Util::AnyHash)) + submission: T.nilable(T.any(Increase::Models::WireDrawdownRequest::Submission, Increase::Internal::AnyHash)) ) .void end @@ -127,7 +127,7 @@ module Increase recipient_name: T.nilable(String), recipient_routing_number: String, status: Increase::Models::WireDrawdownRequest::Status::OrSymbol, - submission: T.nilable(T.any(Increase::Models::WireDrawdownRequest::Submission, Increase::Util::AnyHash)), + submission: T.nilable(T.any(Increase::Models::WireDrawdownRequest::Submission, Increase::Internal::AnyHash)), type: Increase::Models::WireDrawdownRequest::Type::OrSymbol ) .returns(T.attached_class) @@ -190,7 +190,7 @@ module Increase # The lifecycle status of the drawdown request. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireDrawdownRequest::Status) } OrSymbol = @@ -214,7 +214,7 @@ module Increase end end - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # The input message accountability data (IMAD) uniquely identifying the submission # with Fedwire. sig { returns(String) } @@ -234,7 +234,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `wire_drawdown_request`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireDrawdownRequest::Type) } OrSymbol = diff --git a/rbi/lib/increase/models/wire_drawdown_request_create_params.rbi b/rbi/lib/increase/models/wire_drawdown_request_create_params.rbi index edaf41d0..b0f3c883 100644 --- a/rbi/lib/increase/models/wire_drawdown_request_create_params.rbi +++ b/rbi/lib/increase/models/wire_drawdown_request_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class WireDrawdownRequestCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The Account Number to which the recipient should send funds. sig { returns(String) } @@ -102,7 +102,7 @@ module Increase recipient_address_line1: String, recipient_address_line2: String, recipient_address_line3: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/wire_drawdown_request_list_params.rbi b/rbi/lib/increase/models/wire_drawdown_request_list_params.rbi index d706d3e1..f310df86 100644 --- a/rbi/lib/increase/models/wire_drawdown_request_list_params.rbi +++ b/rbi/lib/increase/models/wire_drawdown_request_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class WireDrawdownRequestListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireDrawdownRequestListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Return the page of entries after this one. sig { returns(T.nilable(String)) } @@ -35,7 +35,9 @@ module Increase attr_reader :status sig do - params(status: T.any(Increase::Models::WireDrawdownRequestListParams::Status, Increase::Util::AnyHash)) + params( + status: T.any(Increase::Models::WireDrawdownRequestListParams::Status, Increase::Internal::AnyHash) + ) .void end attr_writer :status @@ -45,8 +47,8 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::WireDrawdownRequestListParams::Status, Increase::Util::AnyHash), - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + status: T.any(Increase::Models::WireDrawdownRequestListParams::Status, Increase::Internal::AnyHash), + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -68,7 +70,7 @@ module Increase def to_hash end - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel # Filter Wire Drawdown Requests for those with the specified status. For GET # requests, this should be encoded as a comma-delimited string, such as # `?in=one,two,three`. @@ -90,7 +92,7 @@ module Increase end module In - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireDrawdownRequestListParams::Status::In) } diff --git a/rbi/lib/increase/models/wire_drawdown_request_retrieve_params.rbi b/rbi/lib/increase/models/wire_drawdown_request_retrieve_params.rbi index 6a04942c..10e943af 100644 --- a/rbi/lib/increase/models/wire_drawdown_request_retrieve_params.rbi +++ b/rbi/lib/increase/models/wire_drawdown_request_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class WireDrawdownRequestRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireDrawdownRequestRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/wire_transfer.rbi b/rbi/lib/increase/models/wire_transfer.rbi index f1f1e8b0..9167812e 100644 --- a/rbi/lib/increase/models/wire_transfer.rbi +++ b/rbi/lib/increase/models/wire_transfer.rbi @@ -2,7 +2,7 @@ module Increase module Models - class WireTransfer < Increase::BaseModel + class WireTransfer < Increase::Internal::Type::BaseModel # The wire transfer's identifier. sig { returns(String) } attr_accessor :id @@ -24,7 +24,10 @@ module Increase sig { returns(T.nilable(Increase::Models::WireTransfer::Approval)) } attr_reader :approval - sig { params(approval: T.nilable(T.any(Increase::Models::WireTransfer::Approval, Increase::Util::AnyHash))).void } + sig do + params(approval: T.nilable(T.any(Increase::Models::WireTransfer::Approval, Increase::Internal::AnyHash))) + .void + end attr_writer :approval # The beneficiary's address line 1. @@ -50,7 +53,7 @@ module Increase sig do params( - cancellation: T.nilable(T.any(Increase::Models::WireTransfer::Cancellation, Increase::Util::AnyHash)) + cancellation: T.nilable(T.any(Increase::Models::WireTransfer::Cancellation, Increase::Internal::AnyHash)) ) .void end @@ -66,7 +69,9 @@ module Increase attr_reader :created_by sig do - params(created_by: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy, Increase::Util::AnyHash))) + params( + created_by: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy, Increase::Internal::AnyHash)) + ) .void end attr_writer :created_by @@ -121,7 +126,10 @@ module Increase sig { returns(T.nilable(Increase::Models::WireTransfer::Reversal)) } attr_reader :reversal - sig { params(reversal: T.nilable(T.any(Increase::Models::WireTransfer::Reversal, Increase::Util::AnyHash))).void } + sig do + params(reversal: T.nilable(T.any(Increase::Models::WireTransfer::Reversal, Increase::Internal::AnyHash))) + .void + end attr_writer :reversal # The American Bankers' Association (ABA) Routing Transit Number (RTN). @@ -142,7 +150,9 @@ module Increase attr_reader :submission sig do - params(submission: T.nilable(T.any(Increase::Models::WireTransfer::Submission, Increase::Util::AnyHash))) + params( + submission: T.nilable(T.any(Increase::Models::WireTransfer::Submission, Increase::Internal::AnyHash)) + ) .void end attr_writer :submission @@ -164,14 +174,14 @@ module Increase account_id: String, account_number: String, amount: Integer, - approval: T.nilable(T.any(Increase::Models::WireTransfer::Approval, Increase::Util::AnyHash)), + approval: T.nilable(T.any(Increase::Models::WireTransfer::Approval, Increase::Internal::AnyHash)), beneficiary_address_line1: T.nilable(String), beneficiary_address_line2: T.nilable(String), beneficiary_address_line3: T.nilable(String), beneficiary_name: T.nilable(String), - cancellation: T.nilable(T.any(Increase::Models::WireTransfer::Cancellation, Increase::Util::AnyHash)), + cancellation: T.nilable(T.any(Increase::Models::WireTransfer::Cancellation, Increase::Internal::AnyHash)), created_at: Time, - created_by: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy, Increase::Util::AnyHash)), + created_by: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy, Increase::Internal::AnyHash)), currency: Increase::Models::WireTransfer::Currency::OrSymbol, external_account_id: T.nilable(String), idempotency_key: T.nilable(String), @@ -182,11 +192,11 @@ module Increase originator_address_line3: T.nilable(String), originator_name: T.nilable(String), pending_transaction_id: T.nilable(String), - reversal: T.nilable(T.any(Increase::Models::WireTransfer::Reversal, Increase::Util::AnyHash)), + reversal: T.nilable(T.any(Increase::Models::WireTransfer::Reversal, Increase::Internal::AnyHash)), routing_number: String, source_account_number_id: T.nilable(String), status: Increase::Models::WireTransfer::Status::OrSymbol, - submission: T.nilable(T.any(Increase::Models::WireTransfer::Submission, Increase::Util::AnyHash)), + submission: T.nilable(T.any(Increase::Models::WireTransfer::Submission, Increase::Internal::AnyHash)), transaction_id: T.nilable(String), type: Increase::Models::WireTransfer::Type::OrSymbol ) @@ -264,7 +274,7 @@ module Increase def to_hash end - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the transfer was approved. sig { returns(Time) } @@ -286,7 +296,7 @@ module Increase end end - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Transfer was canceled. sig { returns(Time) } @@ -308,14 +318,14 @@ module Increase end end - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::Models::WireTransfer::CreatedBy::APIKey)) } attr_reader :api_key sig do params( - api_key: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)) + api_key: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)) ) .void end @@ -331,7 +341,7 @@ module Increase sig do params( - oauth_application: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)) + oauth_application: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash)) ) .void end @@ -342,7 +352,9 @@ module Increase attr_reader :user sig do - params(user: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::User, Increase::Util::AnyHash))) + params( + user: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::User, Increase::Internal::AnyHash)) + ) .void end attr_writer :user @@ -350,10 +362,10 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( - api_key: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::APIKey, Increase::Util::AnyHash)), + api_key: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::APIKey, Increase::Internal::AnyHash)), category: Increase::Models::WireTransfer::CreatedBy::Category::OrSymbol, - oauth_application: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::OAuthApplication, Increase::Util::AnyHash)), - user: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::User, Increase::Util::AnyHash)) + oauth_application: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::OAuthApplication, Increase::Internal::AnyHash)), + user: T.nilable(T.any(Increase::Models::WireTransfer::CreatedBy::User, Increase::Internal::AnyHash)) ) .returns(T.attached_class) end @@ -374,7 +386,7 @@ module Increase def to_hash end - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel # The description set for the API key when it was created. sig { returns(T.nilable(String)) } attr_accessor :description @@ -391,7 +403,7 @@ module Increase # The type of object that created this transfer. module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireTransfer::CreatedBy::Category) } OrSymbol = @@ -412,7 +424,7 @@ module Increase end end - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel # The name of the OAuth Application. sig { returns(String) } attr_accessor :name @@ -427,7 +439,7 @@ module Increase end end - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel # The email address of the User. sig { returns(String) } attr_accessor :email @@ -446,7 +458,7 @@ module Increase # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For wire transfers this is always equal to `usd`. module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireTransfer::Currency) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::WireTransfer::Currency::TaggedSymbol) } @@ -476,7 +488,7 @@ module Increase # The transfer's network. module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireTransfer::Network) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::WireTransfer::Network::TaggedSymbol) } @@ -488,7 +500,7 @@ module Increase end end - class Reversal < Increase::BaseModel + class Reversal < Increase::Internal::Type::BaseModel # The amount that was reversed in USD cents. sig { returns(Integer) } attr_accessor :amount @@ -636,7 +648,7 @@ module Increase # The lifecycle status of the transfer. module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireTransfer::Status) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::WireTransfer::Status::TaggedSymbol) } @@ -673,7 +685,7 @@ module Increase end end - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel # The accountability data for the submission. sig { returns(String) } attr_accessor :input_message_accountability_data @@ -698,7 +710,7 @@ module Increase # A constant representing the object's type. For this resource it will always be # `wire_transfer`. module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Models::WireTransfer::Type) } OrSymbol = T.type_alias { T.any(Symbol, String, Increase::Models::WireTransfer::Type::TaggedSymbol) } diff --git a/rbi/lib/increase/models/wire_transfer_approve_params.rbi b/rbi/lib/increase/models/wire_transfer_approve_params.rbi index fe2a4232..696ac7d0 100644 --- a/rbi/lib/increase/models/wire_transfer_approve_params.rbi +++ b/rbi/lib/increase/models/wire_transfer_approve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class WireTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/wire_transfer_cancel_params.rbi b/rbi/lib/increase/models/wire_transfer_cancel_params.rbi index 3aed241c..bd50b282 100644 --- a/rbi/lib/increase/models/wire_transfer_cancel_params.rbi +++ b/rbi/lib/increase/models/wire_transfer_cancel_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class WireTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/models/wire_transfer_create_params.rbi b/rbi/lib/increase/models/wire_transfer_create_params.rbi index 82bebaa1..b55a3797 100644 --- a/rbi/lib/increase/models/wire_transfer_create_params.rbi +++ b/rbi/lib/increase/models/wire_transfer_create_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class WireTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # The identifier for the account that will send the transfer. sig { returns(String) } @@ -130,7 +130,7 @@ module Increase require_approval: T::Boolean, routing_number: String, source_account_number_id: String, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/increase/models/wire_transfer_list_params.rbi b/rbi/lib/increase/models/wire_transfer_list_params.rbi index d4e0aa80..59f17cd4 100644 --- a/rbi/lib/increase/models/wire_transfer_list_params.rbi +++ b/rbi/lib/increase/models/wire_transfer_list_params.rbi @@ -2,9 +2,9 @@ module Increase module Models - class WireTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters # Filter Wire Transfers to those belonging to the specified Account. sig { returns(T.nilable(String)) } @@ -17,7 +17,9 @@ module Increase attr_reader :created_at sig do - params(created_at: T.any(Increase::Models::WireTransferListParams::CreatedAt, Increase::Util::AnyHash)) + params( + created_at: T.any(Increase::Models::WireTransferListParams::CreatedAt, Increase::Internal::AnyHash) + ) .void end attr_writer :created_at @@ -57,12 +59,12 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::WireTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::WireTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, external_account_id: String, idempotency_key: String, limit: Integer, - request_options: T.any(Increase::RequestOptions, Increase::Util::AnyHash) + request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash) ) .returns(T.attached_class) end @@ -94,7 +96,7 @@ module Increase def to_hash end - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) # timestamp. sig { returns(T.nilable(Time)) } diff --git a/rbi/lib/increase/models/wire_transfer_retrieve_params.rbi b/rbi/lib/increase/models/wire_transfer_retrieve_params.rbi index 60869262..f61accf3 100644 --- a/rbi/lib/increase/models/wire_transfer_retrieve_params.rbi +++ b/rbi/lib/increase/models/wire_transfer_retrieve_params.rbi @@ -2,17 +2,13 @@ module Increase module Models - class WireTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters sig do - params( - request_options: T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ).returns(T.attached_class) + params(request_options: T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) + .returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/increase/page.rbi b/rbi/lib/increase/page.rbi deleted file mode 100644 index 6698132a..00000000 --- a/rbi/lib/increase/page.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: strong - -module Increase - class Page - include Increase::Type::BasePage - - Elem = type_member - - sig { returns(T.nilable(T::Array[Elem])) } - attr_accessor :data - - sig { returns(T.nilable(String)) } - attr_accessor :next_cursor - - sig { returns(String) } - def inspect - end - end -end diff --git a/rbi/lib/increase/request_options.rbi b/rbi/lib/increase/request_options.rbi index ab925f3b..2c8f978e 100644 --- a/rbi/lib/increase/request_options.rbi +++ b/rbi/lib/increase/request_options.rbi @@ -6,7 +6,7 @@ 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::BaseModel + class RequestOptions < Increase::Internal::Type::BaseModel # @api private sig { params(opts: T.any(T.self_type, T::Hash[Symbol, T.anything])).void } def self.validate!(opts) @@ -41,7 +41,7 @@ module Increase attr_accessor :timeout # Returns a new instance of RequestOptions. - sig { params(values: Increase::Util::AnyHash).returns(T.attached_class) } + sig { params(values: Increase::Internal::AnyHash).returns(T.attached_class) } def self.new(values = {}) end end diff --git a/rbi/lib/increase/resources/account_numbers.rbi b/rbi/lib/increase/resources/account_numbers.rbi index 366689c1..41a52e62 100644 --- a/rbi/lib/increase/resources/account_numbers.rbi +++ b/rbi/lib/increase/resources/account_numbers.rbi @@ -8,9 +8,9 @@ module Increase params( account_id: String, name: String, - inbound_ach: T.any(Increase::Models::AccountNumberCreateParams::InboundACH, Increase::Util::AnyHash), - inbound_checks: T.any(Increase::Models::AccountNumberCreateParams::InboundChecks, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + inbound_ach: T.any(Increase::Models::AccountNumberCreateParams::InboundACH, Increase::Internal::AnyHash), + inbound_checks: T.any(Increase::Models::AccountNumberCreateParams::InboundChecks, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountNumber) end @@ -32,7 +32,7 @@ module Increase sig do params( account_number_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountNumber) end @@ -47,11 +47,11 @@ module Increase sig do params( account_number_id: String, - inbound_ach: T.any(Increase::Models::AccountNumberUpdateParams::InboundACH, Increase::Util::AnyHash), - inbound_checks: T.any(Increase::Models::AccountNumberUpdateParams::InboundChecks, Increase::Util::AnyHash), + inbound_ach: T.any(Increase::Models::AccountNumberUpdateParams::InboundACH, Increase::Internal::AnyHash), + inbound_checks: T.any(Increase::Models::AccountNumberUpdateParams::InboundChecks, Increase::Internal::AnyHash), name: String, status: Increase::Models::AccountNumberUpdateParams::Status::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountNumber) end @@ -75,15 +75,15 @@ module Increase sig do params( account_id: String, - ach_debit_status: T.any(Increase::Models::AccountNumberListParams::ACHDebitStatus, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::AccountNumberListParams::CreatedAt, Increase::Util::AnyHash), + ach_debit_status: T.any(Increase::Models::AccountNumberListParams::ACHDebitStatus, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::AccountNumberListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::AccountNumberListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::AccountNumberListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::AccountNumber]) + .returns(Increase::Internal::Page[Increase::Models::AccountNumber]) end def list( # Filter Account Numbers to those belonging to the specified Account. diff --git a/rbi/lib/increase/resources/account_statements.rbi b/rbi/lib/increase/resources/account_statements.rbi index f27f96ae..d7a72743 100644 --- a/rbi/lib/increase/resources/account_statements.rbi +++ b/rbi/lib/increase/resources/account_statements.rbi @@ -7,7 +7,7 @@ module Increase sig do params( account_statement_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountStatement) end @@ -24,10 +24,10 @@ module Increase account_id: String, cursor: String, limit: Integer, - statement_period_start: T.any(Increase::Models::AccountStatementListParams::StatementPeriodStart, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + statement_period_start: T.any(Increase::Models::AccountStatementListParams::StatementPeriodStart, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::AccountStatement]) + .returns(Increase::Internal::Page[Increase::Models::AccountStatement]) end def list( # Filter Account Statements to those belonging to the specified Account. diff --git a/rbi/lib/increase/resources/account_transfers.rbi b/rbi/lib/increase/resources/account_transfers.rbi index 0cdfa6a2..a4fb1e2d 100644 --- a/rbi/lib/increase/resources/account_transfers.rbi +++ b/rbi/lib/increase/resources/account_transfers.rbi @@ -11,7 +11,7 @@ module Increase description: String, destination_account_id: String, require_approval: T::Boolean, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountTransfer) end @@ -35,7 +35,7 @@ module Increase sig do params( account_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountTransfer) end @@ -50,13 +50,13 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::AccountTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::AccountTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::AccountTransfer]) + .returns(Increase::Internal::Page[Increase::Models::AccountTransfer]) end def list( # Filter Account Transfers to those that originated from the specified Account. @@ -80,7 +80,7 @@ module Increase sig do params( account_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountTransfer) end @@ -95,7 +95,7 @@ module Increase sig do params( account_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountTransfer) end diff --git a/rbi/lib/increase/resources/accounts.rbi b/rbi/lib/increase/resources/accounts.rbi index b35af8ec..1f6d0df8 100644 --- a/rbi/lib/increase/resources/accounts.rbi +++ b/rbi/lib/increase/resources/accounts.rbi @@ -10,7 +10,7 @@ module Increase entity_id: String, informational_entity_id: String, program_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Account) end @@ -33,7 +33,7 @@ module Increase sig do params( account_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Account) end @@ -49,7 +49,7 @@ module Increase params( account_id: String, name: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Account) end @@ -65,17 +65,17 @@ module Increase # List Accounts sig do params( - created_at: T.any(Increase::Models::AccountListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::AccountListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, entity_id: String, idempotency_key: String, informational_entity_id: String, limit: Integer, program_id: String, - status: T.any(Increase::Models::AccountListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::AccountListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Account]) + .returns(Increase::Internal::Page[Increase::Models::Account]) end def list( created_at: nil, @@ -106,7 +106,7 @@ module Increase params( account_id: String, at_time: Time, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::BalanceLookup) end @@ -123,7 +123,7 @@ module Increase sig do params( account_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Account) end diff --git a/rbi/lib/increase/resources/ach_prenotifications.rbi b/rbi/lib/increase/resources/ach_prenotifications.rbi index 875fb399..d55b0a64 100644 --- a/rbi/lib/increase/resources/ach_prenotifications.rbi +++ b/rbi/lib/increase/resources/ach_prenotifications.rbi @@ -19,7 +19,7 @@ module Increase individual_id: String, individual_name: String, standard_entry_class_code: Increase::Models::ACHPrenotificationCreateParams::StandardEntryClassCode::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHPrenotification) end @@ -61,7 +61,7 @@ module Increase sig do params( ach_prenotification_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHPrenotification) end @@ -75,13 +75,13 @@ module Increase # List ACH Prenotifications sig do params( - created_at: T.any(Increase::Models::ACHPrenotificationListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ACHPrenotificationListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::ACHPrenotification]) + .returns(Increase::Internal::Page[Increase::Models::ACHPrenotification]) end def list( created_at: nil, diff --git a/rbi/lib/increase/resources/ach_transfers.rbi b/rbi/lib/increase/resources/ach_transfers.rbi index 0325dc3c..7b288f06 100644 --- a/rbi/lib/increase/resources/ach_transfers.rbi +++ b/rbi/lib/increase/resources/ach_transfers.rbi @@ -10,7 +10,7 @@ module Increase amount: Integer, statement_descriptor: String, account_number: String, - addenda: T.any(Increase::Models::ACHTransferCreateParams::Addenda, Increase::Util::AnyHash), + addenda: T.any(Increase::Models::ACHTransferCreateParams::Addenda, Increase::Internal::AnyHash), company_descriptive_date: String, company_discretionary_data: String, company_entry_description: String, @@ -20,12 +20,12 @@ module Increase funding: Increase::Models::ACHTransferCreateParams::Funding::OrSymbol, individual_id: String, individual_name: String, - preferred_effective_date: T.any(Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate, Increase::Util::AnyHash), + preferred_effective_date: T.any(Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate, Increase::Internal::AnyHash), require_approval: T::Boolean, routing_number: String, standard_entry_class_code: Increase::Models::ACHTransferCreateParams::StandardEntryClassCode::OrSymbol, transaction_timing: Increase::Models::ACHTransferCreateParams::TransactionTiming::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end @@ -95,7 +95,7 @@ module Increase sig do params( ach_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end @@ -110,15 +110,15 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::ACHTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ACHTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, external_account_id: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::ACHTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::ACHTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::ACHTransfer]) + .returns(Increase::Internal::Page[Increase::Models::ACHTransfer]) end def list( # Filter ACH Transfers to those that originated from the specified Account. @@ -145,7 +145,7 @@ module Increase sig do params( ach_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end @@ -160,7 +160,7 @@ module Increase sig do params( ach_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end diff --git a/rbi/lib/increase/resources/bookkeeping_accounts.rbi b/rbi/lib/increase/resources/bookkeeping_accounts.rbi index c986577f..856ee3d3 100644 --- a/rbi/lib/increase/resources/bookkeeping_accounts.rbi +++ b/rbi/lib/increase/resources/bookkeeping_accounts.rbi @@ -10,7 +10,7 @@ module Increase account_id: String, compliance_category: Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory::OrSymbol, entity_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::BookkeepingAccount) end @@ -32,7 +32,7 @@ module Increase params( bookkeeping_account_id: String, name: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::BookkeepingAccount) end @@ -51,9 +51,9 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::BookkeepingAccount]) + .returns(Increase::Internal::Page[Increase::Models::BookkeepingAccount]) end def list( # Return the page of entries after this one. @@ -75,7 +75,7 @@ module Increase params( bookkeeping_account_id: String, at_time: Time, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::BookkeepingBalanceLookup) end diff --git a/rbi/lib/increase/resources/bookkeeping_entries.rbi b/rbi/lib/increase/resources/bookkeeping_entries.rbi index d8bceb04..7e9d449b 100644 --- a/rbi/lib/increase/resources/bookkeeping_entries.rbi +++ b/rbi/lib/increase/resources/bookkeeping_entries.rbi @@ -7,7 +7,7 @@ module Increase sig do params( bookkeeping_entry_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::BookkeepingEntry) end @@ -24,9 +24,9 @@ module Increase account_id: String, cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::BookkeepingEntry]) + .returns(Increase::Internal::Page[Increase::Models::BookkeepingEntry]) end def list( # The identifier for the Bookkeeping Account to filter by. diff --git a/rbi/lib/increase/resources/bookkeeping_entry_sets.rbi b/rbi/lib/increase/resources/bookkeeping_entry_sets.rbi index e41593e7..1d2406a6 100644 --- a/rbi/lib/increase/resources/bookkeeping_entry_sets.rbi +++ b/rbi/lib/increase/resources/bookkeeping_entry_sets.rbi @@ -6,10 +6,10 @@ module Increase # Create a Bookkeeping Entry Set sig do params( - entries: T::Array[T.any(Increase::Models::BookkeepingEntrySetCreateParams::Entry, Increase::Util::AnyHash)], + entries: T::Array[T.any(Increase::Models::BookkeepingEntrySetCreateParams::Entry, Increase::Internal::AnyHash)], date: Time, transaction_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::BookkeepingEntrySet) end @@ -29,7 +29,7 @@ module Increase sig do params( bookkeeping_entry_set_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::BookkeepingEntrySet) end @@ -47,9 +47,9 @@ module Increase idempotency_key: String, limit: Integer, transaction_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::BookkeepingEntrySet]) + .returns(Increase::Internal::Page[Increase::Models::BookkeepingEntrySet]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/card_disputes.rbi b/rbi/lib/increase/resources/card_disputes.rbi index c324bc52..b867d354 100644 --- a/rbi/lib/increase/resources/card_disputes.rbi +++ b/rbi/lib/increase/resources/card_disputes.rbi @@ -9,7 +9,7 @@ module Increase disputed_transaction_id: String, explanation: String, amount: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardDispute) end @@ -32,7 +32,7 @@ module Increase sig do params( card_dispute_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardDispute) end @@ -46,14 +46,14 @@ module Increase # List Card Disputes sig do params( - created_at: T.any(Increase::Models::CardDisputeListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardDisputeListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::CardDisputeListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::CardDisputeListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::CardDispute]) + .returns(Increase::Internal::Page[Increase::Models::CardDispute]) end def list( created_at: nil, diff --git a/rbi/lib/increase/resources/card_payments.rbi b/rbi/lib/increase/resources/card_payments.rbi index e2f4e24c..f18aae66 100644 --- a/rbi/lib/increase/resources/card_payments.rbi +++ b/rbi/lib/increase/resources/card_payments.rbi @@ -7,7 +7,7 @@ module Increase sig do params( card_payment_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardPayment) end @@ -23,12 +23,12 @@ module Increase params( account_id: String, card_id: String, - created_at: T.any(Increase::Models::CardPaymentListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardPaymentListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::CardPayment]) + .returns(Increase::Internal::Page[Increase::Models::CardPayment]) end def list( # Filter Card Payments to ones belonging to the specified Account. diff --git a/rbi/lib/increase/resources/card_purchase_supplements.rbi b/rbi/lib/increase/resources/card_purchase_supplements.rbi index 4758a08c..51ed52b2 100644 --- a/rbi/lib/increase/resources/card_purchase_supplements.rbi +++ b/rbi/lib/increase/resources/card_purchase_supplements.rbi @@ -7,7 +7,7 @@ module Increase sig do params( card_purchase_supplement_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardPurchaseSupplement) end @@ -22,12 +22,12 @@ module Increase sig do params( card_payment_id: String, - created_at: T.any(Increase::Models::CardPurchaseSupplementListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardPurchaseSupplementListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::CardPurchaseSupplement]) + .returns(Increase::Internal::Page[Increase::Models::CardPurchaseSupplement]) end def list( # Filter Card Purchase Supplements to ones belonging to the specified Card diff --git a/rbi/lib/increase/resources/cards.rbi b/rbi/lib/increase/resources/cards.rbi index 56526ba7..1cebc2b7 100644 --- a/rbi/lib/increase/resources/cards.rbi +++ b/rbi/lib/increase/resources/cards.rbi @@ -7,11 +7,11 @@ module Increase sig do params( account_id: String, - billing_address: T.any(Increase::Models::CardCreateParams::BillingAddress, Increase::Util::AnyHash), + billing_address: T.any(Increase::Models::CardCreateParams::BillingAddress, Increase::Internal::AnyHash), description: String, - digital_wallet: T.any(Increase::Models::CardCreateParams::DigitalWallet, Increase::Util::AnyHash), + digital_wallet: T.any(Increase::Models::CardCreateParams::DigitalWallet, Increase::Internal::AnyHash), entity_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Card) end @@ -39,7 +39,7 @@ module Increase sig do params( card_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Card) end @@ -54,12 +54,12 @@ module Increase sig do params( card_id: String, - billing_address: T.any(Increase::Models::CardUpdateParams::BillingAddress, Increase::Util::AnyHash), + billing_address: T.any(Increase::Models::CardUpdateParams::BillingAddress, Increase::Internal::AnyHash), description: String, - digital_wallet: T.any(Increase::Models::CardUpdateParams::DigitalWallet, Increase::Util::AnyHash), + digital_wallet: T.any(Increase::Models::CardUpdateParams::DigitalWallet, Increase::Internal::AnyHash), entity_id: String, status: Increase::Models::CardUpdateParams::Status::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Card) end @@ -87,14 +87,14 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::CardListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CardListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::CardListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::CardListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Card]) + .returns(Increase::Internal::Page[Increase::Models::Card]) end def list( # Filter Cards to ones belonging to the specified Account. @@ -119,7 +119,7 @@ module Increase sig do params( card_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardDetails) end diff --git a/rbi/lib/increase/resources/check_deposits.rbi b/rbi/lib/increase/resources/check_deposits.rbi index 285f3623..9b209be4 100644 --- a/rbi/lib/increase/resources/check_deposits.rbi +++ b/rbi/lib/increase/resources/check_deposits.rbi @@ -11,7 +11,7 @@ module Increase back_image_file_id: String, front_image_file_id: String, description: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckDeposit) end @@ -34,7 +34,7 @@ module Increase sig do params( check_deposit_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckDeposit) end @@ -49,13 +49,13 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::CheckDepositListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CheckDepositListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::CheckDeposit]) + .returns(Increase::Internal::Page[Increase::Models::CheckDeposit]) end def list( # Filter Check Deposits to those belonging to the specified Account. diff --git a/rbi/lib/increase/resources/check_transfers.rbi b/rbi/lib/increase/resources/check_transfers.rbi index 06fc4e74..c9767db0 100644 --- a/rbi/lib/increase/resources/check_transfers.rbi +++ b/rbi/lib/increase/resources/check_transfers.rbi @@ -10,10 +10,10 @@ module Increase amount: Integer, fulfillment_method: Increase::Models::CheckTransferCreateParams::FulfillmentMethod::OrSymbol, source_account_number_id: String, - physical_check: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck, Increase::Util::AnyHash), + physical_check: T.any(Increase::Models::CheckTransferCreateParams::PhysicalCheck, Increase::Internal::AnyHash), require_approval: T::Boolean, - third_party: T.any(Increase::Models::CheckTransferCreateParams::ThirdParty, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + third_party: T.any(Increase::Models::CheckTransferCreateParams::ThirdParty, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckTransfer) end @@ -45,7 +45,7 @@ module Increase sig do params( check_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckTransfer) end @@ -60,14 +60,14 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::CheckTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::CheckTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::CheckTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::CheckTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::CheckTransfer]) + .returns(Increase::Internal::Page[Increase::Models::CheckTransfer]) end def list( # Filter Check Transfers to those that originated from the specified Account. @@ -92,7 +92,7 @@ module Increase sig do params( check_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckTransfer) end @@ -107,7 +107,7 @@ module Increase sig do params( check_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckTransfer) end @@ -123,7 +123,7 @@ module Increase params( check_transfer_id: String, reason: Increase::Models::CheckTransferStopPaymentParams::Reason::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckTransfer) end diff --git a/rbi/lib/increase/resources/declined_transactions.rbi b/rbi/lib/increase/resources/declined_transactions.rbi index 072b3537..a5b3e233 100644 --- a/rbi/lib/increase/resources/declined_transactions.rbi +++ b/rbi/lib/increase/resources/declined_transactions.rbi @@ -7,7 +7,7 @@ module Increase sig do params( declined_transaction_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::DeclinedTransaction) end @@ -22,14 +22,14 @@ module Increase sig do params( account_id: String, - category: T.any(Increase::Models::DeclinedTransactionListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::DeclinedTransactionListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::DeclinedTransactionListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::DeclinedTransactionListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, route_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::DeclinedTransaction]) + .returns(Increase::Internal::Page[Increase::Models::DeclinedTransaction]) end def list( # Filter Declined Transactions to ones belonging to the specified Account. diff --git a/rbi/lib/increase/resources/digital_card_profiles.rbi b/rbi/lib/increase/resources/digital_card_profiles.rbi index bd2a5adc..cf25c586 100644 --- a/rbi/lib/increase/resources/digital_card_profiles.rbi +++ b/rbi/lib/increase/resources/digital_card_profiles.rbi @@ -14,8 +14,8 @@ module Increase contact_email: String, contact_phone: String, contact_website: String, - text_color: T.any(Increase::Models::DigitalCardProfileCreateParams::TextColor, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + text_color: T.any(Increase::Models::DigitalCardProfileCreateParams::TextColor, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::DigitalCardProfile) end @@ -46,7 +46,7 @@ module Increase sig do params( digital_card_profile_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::DigitalCardProfile) end @@ -63,10 +63,10 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::DigitalCardProfileListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::DigitalCardProfileListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::DigitalCardProfile]) + .returns(Increase::Internal::Page[Increase::Models::DigitalCardProfile]) end def list( # Return the page of entries after this one. @@ -88,7 +88,7 @@ module Increase sig do params( digital_card_profile_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::DigitalCardProfile) end @@ -111,8 +111,8 @@ module Increase contact_website: String, description: String, issuer_name: String, - text_color: T.any(Increase::Models::DigitalCardProfileCloneParams::TextColor, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + text_color: T.any(Increase::Models::DigitalCardProfileCloneParams::TextColor, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::DigitalCardProfile) end diff --git a/rbi/lib/increase/resources/digital_wallet_tokens.rbi b/rbi/lib/increase/resources/digital_wallet_tokens.rbi index f83de2b5..1bcc291e 100644 --- a/rbi/lib/increase/resources/digital_wallet_tokens.rbi +++ b/rbi/lib/increase/resources/digital_wallet_tokens.rbi @@ -7,7 +7,7 @@ module Increase sig do params( digital_wallet_token_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::DigitalWalletToken) end @@ -22,12 +22,12 @@ module Increase sig do params( card_id: String, - created_at: T.any(Increase::Models::DigitalWalletTokenListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::DigitalWalletTokenListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::DigitalWalletToken]) + .returns(Increase::Internal::Page[Increase::Models::DigitalWalletToken]) end def list( # Filter Digital Wallet Tokens to ones belonging to the specified Card. diff --git a/rbi/lib/increase/resources/documents.rbi b/rbi/lib/increase/resources/documents.rbi index d9bca8e4..b0b3bef0 100644 --- a/rbi/lib/increase/resources/documents.rbi +++ b/rbi/lib/increase/resources/documents.rbi @@ -7,7 +7,7 @@ module Increase sig do params( document_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Document) end @@ -21,14 +21,14 @@ module Increase # List Documents sig do params( - category: T.any(Increase::Models::DocumentListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::DocumentListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::DocumentListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::DocumentListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, entity_id: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Document]) + .returns(Increase::Internal::Page[Increase::Models::Document]) end def list( category: nil, diff --git a/rbi/lib/increase/resources/entities.rbi b/rbi/lib/increase/resources/entities.rbi index 4ca69101..b8e1d64b 100644 --- a/rbi/lib/increase/resources/entities.rbi +++ b/rbi/lib/increase/resources/entities.rbi @@ -7,15 +7,15 @@ module Increase sig do params( structure: Increase::Models::EntityCreateParams::Structure::OrSymbol, - corporation: T.any(Increase::Models::EntityCreateParams::Corporation, Increase::Util::AnyHash), + corporation: T.any(Increase::Models::EntityCreateParams::Corporation, Increase::Internal::AnyHash), description: String, - government_authority: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority, Increase::Util::AnyHash), - joint: T.any(Increase::Models::EntityCreateParams::Joint, Increase::Util::AnyHash), - natural_person: T.any(Increase::Models::EntityCreateParams::NaturalPerson, Increase::Util::AnyHash), - supplemental_documents: T::Array[T.any(Increase::Models::EntityCreateParams::SupplementalDocument, Increase::Util::AnyHash)], - third_party_verification: T.any(Increase::Models::EntityCreateParams::ThirdPartyVerification, Increase::Util::AnyHash), - trust: T.any(Increase::Models::EntityCreateParams::Trust, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + government_authority: T.any(Increase::Models::EntityCreateParams::GovernmentAuthority, Increase::Internal::AnyHash), + joint: T.any(Increase::Models::EntityCreateParams::Joint, Increase::Internal::AnyHash), + natural_person: T.any(Increase::Models::EntityCreateParams::NaturalPerson, Increase::Internal::AnyHash), + supplemental_documents: T::Array[T.any(Increase::Models::EntityCreateParams::SupplementalDocument, Increase::Internal::AnyHash)], + third_party_verification: T.any(Increase::Models::EntityCreateParams::ThirdPartyVerification, Increase::Internal::AnyHash), + trust: T.any(Increase::Models::EntityCreateParams::Trust, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -54,7 +54,7 @@ module Increase sig do params( entity_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -68,14 +68,14 @@ module Increase # List Entities sig do params( - created_at: T.any(Increase::Models::EntityListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::EntityListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::EntityListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::EntityListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Entity]) + .returns(Increase::Internal::Page[Increase::Models::Entity]) end def list( created_at: nil, @@ -98,7 +98,7 @@ module Increase sig do params( entity_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -115,7 +115,7 @@ module Increase params( entity_id: String, beneficial_owner_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -137,7 +137,7 @@ module Increase params( entity_id: String, confirmed_at: Time, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -155,8 +155,8 @@ module Increase sig do params( entity_id: String, - beneficial_owner: T.any(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + beneficial_owner: T.any(Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -174,8 +174,8 @@ module Increase sig do params( entity_id: String, - address: T.any(Increase::Models::EntityUpdateAddressParams::Address, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + address: T.any(Increase::Models::EntityUpdateAddressParams::Address, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -193,9 +193,9 @@ module Increase sig do params( entity_id: String, - address: T.any(Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address, Increase::Util::AnyHash), + address: T.any(Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address, Increase::Internal::AnyHash), beneficial_owner_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end @@ -218,7 +218,7 @@ module Increase params( entity_id: String, industry_code: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Entity) end diff --git a/rbi/lib/increase/resources/event_subscriptions.rbi b/rbi/lib/increase/resources/event_subscriptions.rbi index 3f468b8d..132461cd 100644 --- a/rbi/lib/increase/resources/event_subscriptions.rbi +++ b/rbi/lib/increase/resources/event_subscriptions.rbi @@ -10,7 +10,7 @@ module Increase oauth_connection_id: String, selected_event_category: Increase::Models::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol, shared_secret: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::EventSubscription) end @@ -34,7 +34,7 @@ module Increase sig do params( event_subscription_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::EventSubscription) end @@ -50,7 +50,7 @@ module Increase params( event_subscription_id: String, status: Increase::Models::EventSubscriptionUpdateParams::Status::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::EventSubscription) end @@ -69,9 +69,9 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::EventSubscription]) + .returns(Increase::Internal::Page[Increase::Models::EventSubscription]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/events.rbi b/rbi/lib/increase/resources/events.rbi index 7118055f..e9087705 100644 --- a/rbi/lib/increase/resources/events.rbi +++ b/rbi/lib/increase/resources/events.rbi @@ -7,7 +7,7 @@ module Increase sig do params( event_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Event) end @@ -22,13 +22,13 @@ module Increase sig do params( associated_object_id: String, - category: T.any(Increase::Models::EventListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::EventListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::EventListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::EventListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Event]) + .returns(Increase::Internal::Page[Increase::Models::Event]) end def list( # Filter Events to those belonging to the object with the provided identifier. diff --git a/rbi/lib/increase/resources/exports.rbi b/rbi/lib/increase/resources/exports.rbi index 4407efac..8b23c341 100644 --- a/rbi/lib/increase/resources/exports.rbi +++ b/rbi/lib/increase/resources/exports.rbi @@ -7,13 +7,13 @@ module Increase sig do params( category: Increase::Models::ExportCreateParams::Category::OrSymbol, - account_statement_ofx: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx, Increase::Util::AnyHash), - balance_csv: T.any(Increase::Models::ExportCreateParams::BalanceCsv, Increase::Util::AnyHash), - bookkeeping_account_balance_csv: T.any(Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv, Increase::Util::AnyHash), - entity_csv: T.any(Increase::Models::ExportCreateParams::EntityCsv, Increase::Util::AnyHash), - transaction_csv: T.any(Increase::Models::ExportCreateParams::TransactionCsv, Increase::Util::AnyHash), + account_statement_ofx: T.any(Increase::Models::ExportCreateParams::AccountStatementOfx, Increase::Internal::AnyHash), + balance_csv: T.any(Increase::Models::ExportCreateParams::BalanceCsv, Increase::Internal::AnyHash), + bookkeeping_account_balance_csv: T.any(Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv, Increase::Internal::AnyHash), + entity_csv: T.any(Increase::Models::ExportCreateParams::EntityCsv, Increase::Internal::AnyHash), + transaction_csv: T.any(Increase::Models::ExportCreateParams::TransactionCsv, Increase::Internal::AnyHash), vendor_csv: T.anything, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Export) end @@ -44,7 +44,7 @@ module Increase sig do params( export_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Export) end @@ -58,15 +58,15 @@ module Increase # List Exports sig do params( - category: T.any(Increase::Models::ExportListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::ExportListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::ExportListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::ExportListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::ExportListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::ExportListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Export]) + .returns(Increase::Internal::Page[Increase::Models::Export]) end def list( category: nil, diff --git a/rbi/lib/increase/resources/external_accounts.rbi b/rbi/lib/increase/resources/external_accounts.rbi index 783a1f7c..cda12675 100644 --- a/rbi/lib/increase/resources/external_accounts.rbi +++ b/rbi/lib/increase/resources/external_accounts.rbi @@ -11,7 +11,7 @@ module Increase routing_number: String, account_holder: Increase::Models::ExternalAccountCreateParams::AccountHolder::OrSymbol, funding: Increase::Models::ExternalAccountCreateParams::Funding::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ExternalAccount) end @@ -35,7 +35,7 @@ module Increase sig do params( external_account_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ExternalAccount) end @@ -54,7 +54,7 @@ module Increase description: String, funding: Increase::Models::ExternalAccountUpdateParams::Funding::OrSymbol, status: Increase::Models::ExternalAccountUpdateParams::Status::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ExternalAccount) end @@ -80,10 +80,10 @@ module Increase idempotency_key: String, limit: Integer, routing_number: String, - status: T.any(Increase::Models::ExternalAccountListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::ExternalAccountListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::ExternalAccount]) + .returns(Increase::Internal::Page[Increase::Models::ExternalAccount]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/file_links.rbi b/rbi/lib/increase/resources/file_links.rbi index bc06f789..934fd4b6 100644 --- a/rbi/lib/increase/resources/file_links.rbi +++ b/rbi/lib/increase/resources/file_links.rbi @@ -8,7 +8,7 @@ module Increase params( file_id: String, expires_at: Time, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::FileLink) end diff --git a/rbi/lib/increase/resources/files.rbi b/rbi/lib/increase/resources/files.rbi index 006ec6d4..4cc46a9e 100644 --- a/rbi/lib/increase/resources/files.rbi +++ b/rbi/lib/increase/resources/files.rbi @@ -11,7 +11,7 @@ module Increase file: T.any(IO, StringIO), purpose: Increase::Models::FileCreateParams::Purpose::OrSymbol, description: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::File) end @@ -32,7 +32,7 @@ module Increase sig do params( file_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::File) end @@ -46,14 +46,14 @@ module Increase # List Files sig do params( - created_at: T.any(Increase::Models::FileListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::FileListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - purpose: T.any(Increase::Models::FileListParams::Purpose, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + purpose: T.any(Increase::Models::FileListParams::Purpose, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::File]) + .returns(Increase::Internal::Page[Increase::Models::File]) end def list( created_at: nil, diff --git a/rbi/lib/increase/resources/groups.rbi b/rbi/lib/increase/resources/groups.rbi index 3ecf9cb5..bb6902d9 100644 --- a/rbi/lib/increase/resources/groups.rbi +++ b/rbi/lib/increase/resources/groups.rbi @@ -5,7 +5,7 @@ module Increase class Groups # Returns details for the currently authenticated Group. sig do - params(request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash))) + params(request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash))) .returns(Increase::Models::Group) end def retrieve(request_options: {}) diff --git a/rbi/lib/increase/resources/inbound_ach_transfers.rbi b/rbi/lib/increase/resources/inbound_ach_transfers.rbi index da9fbd54..526b35f5 100644 --- a/rbi/lib/increase/resources/inbound_ach_transfers.rbi +++ b/rbi/lib/increase/resources/inbound_ach_transfers.rbi @@ -7,7 +7,7 @@ module Increase sig do params( inbound_ach_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundACHTransfer) end @@ -23,13 +23,13 @@ module Increase params( account_id: String, account_number_id: String, - created_at: T.any(Increase::Models::InboundACHTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundACHTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - status: T.any(Increase::Models::InboundACHTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::InboundACHTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::InboundACHTransfer]) + .returns(Increase::Internal::Page[Increase::Models::InboundACHTransfer]) end def list( # Filter Inbound ACH Transfers to ones belonging to the specified Account. @@ -53,7 +53,7 @@ module Increase inbound_ach_transfer_id: String, updated_account_number: String, updated_routing_number: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundACHTransfer) end @@ -74,7 +74,7 @@ module Increase params( inbound_ach_transfer_id: String, reason: Increase::Models::InboundACHTransferDeclineParams::Reason::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundACHTransfer) end @@ -94,7 +94,7 @@ module Increase params( inbound_ach_transfer_id: String, reason: Increase::Models::InboundACHTransferTransferReturnParams::Reason::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundACHTransfer) end diff --git a/rbi/lib/increase/resources/inbound_check_deposits.rbi b/rbi/lib/increase/resources/inbound_check_deposits.rbi index 30cd6def..91c445f1 100644 --- a/rbi/lib/increase/resources/inbound_check_deposits.rbi +++ b/rbi/lib/increase/resources/inbound_check_deposits.rbi @@ -7,7 +7,7 @@ module Increase sig do params( inbound_check_deposit_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundCheckDeposit) end @@ -23,12 +23,12 @@ module Increase params( account_id: String, check_transfer_id: String, - created_at: T.any(Increase::Models::InboundCheckDepositListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundCheckDepositListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::InboundCheckDeposit]) + .returns(Increase::Internal::Page[Increase::Models::InboundCheckDeposit]) end def list( # Filter Inbound Check Deposits to those belonging to the specified Account. @@ -50,7 +50,7 @@ module Increase sig do params( inbound_check_deposit_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundCheckDeposit) end @@ -66,7 +66,7 @@ module Increase params( inbound_check_deposit_id: String, reason: Increase::Models::InboundCheckDepositReturnParams::Reason::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundCheckDeposit) end diff --git a/rbi/lib/increase/resources/inbound_mail_items.rbi b/rbi/lib/increase/resources/inbound_mail_items.rbi index ec4de4c5..628de3dd 100644 --- a/rbi/lib/increase/resources/inbound_mail_items.rbi +++ b/rbi/lib/increase/resources/inbound_mail_items.rbi @@ -7,7 +7,7 @@ module Increase sig do params( inbound_mail_item_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundMailItem) end @@ -21,13 +21,13 @@ module Increase # List Inbound Mail Items sig do params( - created_at: T.any(Increase::Models::InboundMailItemListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundMailItemListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, lockbox_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::InboundMailItem]) + .returns(Increase::Internal::Page[Increase::Models::InboundMailItem]) end def list( created_at: nil, diff --git a/rbi/lib/increase/resources/inbound_real_time_payments_transfers.rbi b/rbi/lib/increase/resources/inbound_real_time_payments_transfers.rbi index fde70593..f9d6845d 100644 --- a/rbi/lib/increase/resources/inbound_real_time_payments_transfers.rbi +++ b/rbi/lib/increase/resources/inbound_real_time_payments_transfers.rbi @@ -7,7 +7,7 @@ module Increase sig do params( inbound_real_time_payments_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundRealTimePaymentsTransfer) end @@ -23,12 +23,12 @@ module Increase params( account_id: String, account_number_id: String, - created_at: T.any(Increase::Models::InboundRealTimePaymentsTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundRealTimePaymentsTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::InboundRealTimePaymentsTransfer]) + .returns(Increase::Internal::Page[Increase::Models::InboundRealTimePaymentsTransfer]) end def list( # Filter Inbound Real-Time Payments Transfers to those belonging to the specified diff --git a/rbi/lib/increase/resources/inbound_wire_drawdown_requests.rbi b/rbi/lib/increase/resources/inbound_wire_drawdown_requests.rbi index 272f93d9..e0b9d582 100644 --- a/rbi/lib/increase/resources/inbound_wire_drawdown_requests.rbi +++ b/rbi/lib/increase/resources/inbound_wire_drawdown_requests.rbi @@ -7,7 +7,7 @@ module Increase sig do params( inbound_wire_drawdown_request_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundWireDrawdownRequest) end @@ -23,9 +23,9 @@ module Increase params( cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::InboundWireDrawdownRequest]) + .returns(Increase::Internal::Page[Increase::Models::InboundWireDrawdownRequest]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/inbound_wire_transfers.rbi b/rbi/lib/increase/resources/inbound_wire_transfers.rbi index c2ebc304..19962bf4 100644 --- a/rbi/lib/increase/resources/inbound_wire_transfers.rbi +++ b/rbi/lib/increase/resources/inbound_wire_transfers.rbi @@ -7,7 +7,7 @@ module Increase sig do params( inbound_wire_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundWireTransfer) end @@ -23,13 +23,13 @@ module Increase params( account_id: String, account_number_id: String, - created_at: T.any(Increase::Models::InboundWireTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::InboundWireTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - status: T.any(Increase::Models::InboundWireTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::InboundWireTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::InboundWireTransfer]) + .returns(Increase::Internal::Page[Increase::Models::InboundWireTransfer]) end def list( # Filter Inbound Wire Transfers to ones belonging to the specified Account. diff --git a/rbi/lib/increase/resources/intrafi_account_enrollments.rbi b/rbi/lib/increase/resources/intrafi_account_enrollments.rbi index 696d5560..be31a9ec 100644 --- a/rbi/lib/increase/resources/intrafi_account_enrollments.rbi +++ b/rbi/lib/increase/resources/intrafi_account_enrollments.rbi @@ -8,7 +8,7 @@ module Increase params( account_id: String, email_address: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::IntrafiAccountEnrollment) end @@ -25,7 +25,7 @@ module Increase sig do params( intrafi_account_enrollment_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::IntrafiAccountEnrollment) end @@ -43,10 +43,10 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::IntrafiAccountEnrollmentListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::IntrafiAccountEnrollmentListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::IntrafiAccountEnrollment]) + .returns(Increase::Internal::Page[Increase::Models::IntrafiAccountEnrollment]) end def list( # Filter IntraFi Account Enrollments to the one belonging to an account. @@ -70,7 +70,7 @@ module Increase sig do params( intrafi_account_enrollment_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::IntrafiAccountEnrollment) end diff --git a/rbi/lib/increase/resources/intrafi_balances.rbi b/rbi/lib/increase/resources/intrafi_balances.rbi index 5a25113e..9aeb8004 100644 --- a/rbi/lib/increase/resources/intrafi_balances.rbi +++ b/rbi/lib/increase/resources/intrafi_balances.rbi @@ -7,7 +7,7 @@ module Increase sig do params( account_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::IntrafiBalance) end diff --git a/rbi/lib/increase/resources/intrafi_exclusions.rbi b/rbi/lib/increase/resources/intrafi_exclusions.rbi index 5fe9ee71..5972f887 100644 --- a/rbi/lib/increase/resources/intrafi_exclusions.rbi +++ b/rbi/lib/increase/resources/intrafi_exclusions.rbi @@ -8,7 +8,7 @@ module Increase params( bank_name: String, entity_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::IntrafiExclusion) end @@ -25,7 +25,7 @@ module Increase sig do params( intrafi_exclusion_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::IntrafiExclusion) end @@ -43,9 +43,9 @@ module Increase entity_id: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::IntrafiExclusion]) + .returns(Increase::Internal::Page[Increase::Models::IntrafiExclusion]) end def list( # Return the page of entries after this one. @@ -68,7 +68,7 @@ module Increase sig do params( intrafi_exclusion_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::IntrafiExclusion) end diff --git a/rbi/lib/increase/resources/lockboxes.rbi b/rbi/lib/increase/resources/lockboxes.rbi index 13b6cedf..91222adc 100644 --- a/rbi/lib/increase/resources/lockboxes.rbi +++ b/rbi/lib/increase/resources/lockboxes.rbi @@ -9,7 +9,7 @@ module Increase account_id: String, description: String, recipient_name: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Lockbox) end @@ -28,7 +28,7 @@ module Increase sig do params( lockbox_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Lockbox) end @@ -46,7 +46,7 @@ module Increase description: String, recipient_name: String, status: Increase::Models::LockboxUpdateParams::Status::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Lockbox) end @@ -67,13 +67,13 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::LockboxListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::LockboxListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Lockbox]) + .returns(Increase::Internal::Page[Increase::Models::Lockbox]) end def list( # Filter Lockboxes to those associated with the provided Account. diff --git a/rbi/lib/increase/resources/oauth_applications.rbi b/rbi/lib/increase/resources/oauth_applications.rbi index 8181de54..6cd8eba2 100644 --- a/rbi/lib/increase/resources/oauth_applications.rbi +++ b/rbi/lib/increase/resources/oauth_applications.rbi @@ -7,7 +7,7 @@ module Increase sig do params( oauth_application_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::OAuthApplication) end @@ -21,13 +21,13 @@ module Increase # List OAuth Applications sig do params( - created_at: T.any(Increase::Models::OAuthApplicationListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::OAuthApplicationListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - status: T.any(Increase::Models::OAuthApplicationListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::OAuthApplicationListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::OAuthApplication]) + .returns(Increase::Internal::Page[Increase::Models::OAuthApplication]) end def list( created_at: nil, diff --git a/rbi/lib/increase/resources/oauth_connections.rbi b/rbi/lib/increase/resources/oauth_connections.rbi index d571e6d4..29b56e1a 100644 --- a/rbi/lib/increase/resources/oauth_connections.rbi +++ b/rbi/lib/increase/resources/oauth_connections.rbi @@ -7,7 +7,7 @@ module Increase sig do params( oauth_connection_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::OAuthConnection) end @@ -24,10 +24,10 @@ module Increase cursor: String, limit: Integer, oauth_application_id: String, - status: T.any(Increase::Models::OAuthConnectionListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::OAuthConnectionListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::OAuthConnection]) + .returns(Increase::Internal::Page[Increase::Models::OAuthConnection]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/oauth_tokens.rbi b/rbi/lib/increase/resources/oauth_tokens.rbi index 9e41b0f8..2ce9c36f 100644 --- a/rbi/lib/increase/resources/oauth_tokens.rbi +++ b/rbi/lib/increase/resources/oauth_tokens.rbi @@ -11,7 +11,7 @@ module Increase client_secret: String, code: String, production_token: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::OAuthToken) end diff --git a/rbi/lib/increase/resources/pending_transactions.rbi b/rbi/lib/increase/resources/pending_transactions.rbi index f1f0bc65..e853af4e 100644 --- a/rbi/lib/increase/resources/pending_transactions.rbi +++ b/rbi/lib/increase/resources/pending_transactions.rbi @@ -7,7 +7,7 @@ module Increase sig do params( pending_transaction_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PendingTransaction) end @@ -22,15 +22,15 @@ module Increase sig do params( account_id: String, - category: T.any(Increase::Models::PendingTransactionListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::PendingTransactionListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::PendingTransactionListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::PendingTransactionListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, route_id: String, - status: T.any(Increase::Models::PendingTransactionListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::PendingTransactionListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::PendingTransaction]) + .returns(Increase::Internal::Page[Increase::Models::PendingTransaction]) end def list( # Filter pending transactions to those belonging to the specified Account. diff --git a/rbi/lib/increase/resources/physical_card_profiles.rbi b/rbi/lib/increase/resources/physical_card_profiles.rbi index 62b42f82..de222fae 100644 --- a/rbi/lib/increase/resources/physical_card_profiles.rbi +++ b/rbi/lib/increase/resources/physical_card_profiles.rbi @@ -10,7 +10,7 @@ module Increase contact_phone: String, description: String, front_image_file_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCardProfile) end @@ -31,7 +31,7 @@ module Increase sig do params( physical_card_profile_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCardProfile) end @@ -48,10 +48,10 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::PhysicalCardProfileListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::PhysicalCardProfileListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::PhysicalCardProfile]) + .returns(Increase::Internal::Page[Increase::Models::PhysicalCardProfile]) end def list( # Return the page of entries after this one. @@ -73,7 +73,7 @@ module Increase sig do params( physical_card_profile_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCardProfile) end @@ -92,8 +92,8 @@ module Increase contact_phone: String, description: String, front_image_file_id: String, - front_text: T.any(Increase::Models::PhysicalCardProfileCloneParams::FrontText, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + front_text: T.any(Increase::Models::PhysicalCardProfileCloneParams::FrontText, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCardProfile) end diff --git a/rbi/lib/increase/resources/physical_cards.rbi b/rbi/lib/increase/resources/physical_cards.rbi index 5b50b7f9..92682ee0 100644 --- a/rbi/lib/increase/resources/physical_cards.rbi +++ b/rbi/lib/increase/resources/physical_cards.rbi @@ -7,10 +7,10 @@ module Increase sig do params( card_id: String, - cardholder: T.any(Increase::Models::PhysicalCardCreateParams::Cardholder, Increase::Util::AnyHash), - shipment: T.any(Increase::Models::PhysicalCardCreateParams::Shipment, Increase::Util::AnyHash), + cardholder: T.any(Increase::Models::PhysicalCardCreateParams::Cardholder, Increase::Internal::AnyHash), + shipment: T.any(Increase::Models::PhysicalCardCreateParams::Shipment, Increase::Internal::AnyHash), physical_card_profile_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCard) end @@ -32,7 +32,7 @@ module Increase sig do params( physical_card_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCard) end @@ -48,7 +48,7 @@ module Increase params( physical_card_id: String, status: Increase::Models::PhysicalCardUpdateParams::Status::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCard) end @@ -65,13 +65,13 @@ module Increase sig do params( card_id: String, - created_at: T.any(Increase::Models::PhysicalCardListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::PhysicalCardListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::PhysicalCard]) + .returns(Increase::Internal::Page[Increase::Models::PhysicalCard]) end def list( # Filter Physical Cards to ones belonging to the specified Card. diff --git a/rbi/lib/increase/resources/programs.rbi b/rbi/lib/increase/resources/programs.rbi index 09cdca74..70dc3313 100644 --- a/rbi/lib/increase/resources/programs.rbi +++ b/rbi/lib/increase/resources/programs.rbi @@ -7,7 +7,7 @@ module Increase sig do params( program_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Program) end @@ -23,9 +23,9 @@ module Increase params( cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Program]) + .returns(Increase::Internal::Page[Increase::Models::Program]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/proof_of_authorization_request_submissions.rbi b/rbi/lib/increase/resources/proof_of_authorization_request_submissions.rbi index 61d21667..322b19e8 100644 --- a/rbi/lib/increase/resources/proof_of_authorization_request_submissions.rbi +++ b/rbi/lib/increase/resources/proof_of_authorization_request_submissions.rbi @@ -18,7 +18,7 @@ module Increase additional_evidence_file_id: String, authorizer_company: String, authorizer_ip_address: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ProofOfAuthorizationRequestSubmission) end @@ -55,7 +55,7 @@ module Increase sig do params( proof_of_authorization_request_submission_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ProofOfAuthorizationRequestSubmission) end @@ -73,9 +73,9 @@ module Increase idempotency_key: String, limit: Integer, proof_of_authorization_request_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::ProofOfAuthorizationRequestSubmission]) + .returns(Increase::Internal::Page[Increase::Models::ProofOfAuthorizationRequestSubmission]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/proof_of_authorization_requests.rbi b/rbi/lib/increase/resources/proof_of_authorization_requests.rbi index 78ad70fd..d5dc873d 100644 --- a/rbi/lib/increase/resources/proof_of_authorization_requests.rbi +++ b/rbi/lib/increase/resources/proof_of_authorization_requests.rbi @@ -7,7 +7,7 @@ module Increase sig do params( proof_of_authorization_request_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ProofOfAuthorizationRequest) end @@ -21,12 +21,12 @@ module Increase # List Proof of Authorization Requests sig do params( - created_at: T.any(Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::ProofOfAuthorizationRequest]) + .returns(Increase::Internal::Page[Increase::Models::ProofOfAuthorizationRequest]) end def list( created_at: nil, diff --git a/rbi/lib/increase/resources/real_time_decisions.rbi b/rbi/lib/increase/resources/real_time_decisions.rbi index e1de8348..22a2d46f 100644 --- a/rbi/lib/increase/resources/real_time_decisions.rbi +++ b/rbi/lib/increase/resources/real_time_decisions.rbi @@ -7,7 +7,7 @@ module Increase sig do params( real_time_decision_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::RealTimeDecision) end @@ -22,18 +22,18 @@ module Increase sig do params( real_time_decision_id: String, - card_authentication: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthentication, Increase::Util::AnyHash), + card_authentication: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthentication, Increase::Internal::AnyHash), card_authentication_challenge: T.any( Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), - card_authorization: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthorization, Increase::Util::AnyHash), + card_authorization: T.any(Increase::Models::RealTimeDecisionActionParams::CardAuthorization, Increase::Internal::AnyHash), digital_wallet_authentication: T.any( Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), - digital_wallet_token: T.any(Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + digital_wallet_token: T.any(Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::RealTimeDecision) end diff --git a/rbi/lib/increase/resources/real_time_payments_transfers.rbi b/rbi/lib/increase/resources/real_time_payments_transfers.rbi index 04f32990..764c8214 100644 --- a/rbi/lib/increase/resources/real_time_payments_transfers.rbi +++ b/rbi/lib/increase/resources/real_time_payments_transfers.rbi @@ -17,7 +17,7 @@ module Increase require_approval: T::Boolean, ultimate_creditor_name: String, ultimate_debtor_name: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::RealTimePaymentsTransfer) end @@ -59,7 +59,7 @@ module Increase sig do params( real_time_payments_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::RealTimePaymentsTransfer) end @@ -74,15 +74,15 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::RealTimePaymentsTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::RealTimePaymentsTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, external_account_id: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::RealTimePaymentsTransferListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::RealTimePaymentsTransferListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::RealTimePaymentsTransfer]) + .returns(Increase::Internal::Page[Increase::Models::RealTimePaymentsTransfer]) end def list( # Filter Real-Time Payments Transfers to those belonging to the specified Account. diff --git a/rbi/lib/increase/resources/routing_numbers.rbi b/rbi/lib/increase/resources/routing_numbers.rbi index 36af8663..0cc7ba4e 100644 --- a/rbi/lib/increase/resources/routing_numbers.rbi +++ b/rbi/lib/increase/resources/routing_numbers.rbi @@ -12,9 +12,9 @@ module Increase routing_number: String, cursor: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::RoutingNumberListResponse]) + .returns(Increase::Internal::Page[Increase::Models::RoutingNumberListResponse]) end def list( # Filter financial institutions by routing number. diff --git a/rbi/lib/increase/resources/simulations/account_statements.rbi b/rbi/lib/increase/resources/simulations/account_statements.rbi index fa124578..6fa1e13c 100644 --- a/rbi/lib/increase/resources/simulations/account_statements.rbi +++ b/rbi/lib/increase/resources/simulations/account_statements.rbi @@ -9,7 +9,7 @@ module Increase sig do params( account_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountStatement) end diff --git a/rbi/lib/increase/resources/simulations/account_transfers.rbi b/rbi/lib/increase/resources/simulations/account_transfers.rbi index e57c627d..8bddd8b6 100644 --- a/rbi/lib/increase/resources/simulations/account_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/account_transfers.rbi @@ -11,7 +11,7 @@ module Increase sig do params( account_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::AccountTransfer) end diff --git a/rbi/lib/increase/resources/simulations/ach_transfers.rbi b/rbi/lib/increase/resources/simulations/ach_transfers.rbi index 01cc326f..560906be 100644 --- a/rbi/lib/increase/resources/simulations/ach_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/ach_transfers.rbi @@ -13,7 +13,7 @@ module Increase sig do params( ach_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end @@ -31,7 +31,7 @@ module Increase ach_transfer_id: String, change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::OrSymbol, corrected_data: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end @@ -54,7 +54,7 @@ module Increase params( ach_transfer_id: String, reason: Increase::Models::Simulations::ACHTransferReturnParams::Reason::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end @@ -77,7 +77,7 @@ module Increase sig do params( ach_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end @@ -97,7 +97,7 @@ module Increase sig do params( ach_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::ACHTransfer) end diff --git a/rbi/lib/increase/resources/simulations/card_authorization_expirations.rbi b/rbi/lib/increase/resources/simulations/card_authorization_expirations.rbi index 5e2a2c37..6223cabb 100644 --- a/rbi/lib/increase/resources/simulations/card_authorization_expirations.rbi +++ b/rbi/lib/increase/resources/simulations/card_authorization_expirations.rbi @@ -8,7 +8,7 @@ module Increase sig do params( card_payment_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardPayment) end diff --git a/rbi/lib/increase/resources/simulations/card_authorizations.rbi b/rbi/lib/increase/resources/simulations/card_authorizations.rbi index 7dcf452e..8bea1942 100644 --- a/rbi/lib/increase/resources/simulations/card_authorizations.rbi +++ b/rbi/lib/increase/resources/simulations/card_authorizations.rbi @@ -28,12 +28,12 @@ module Increase merchant_state: String, network_details: T.any( Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), network_risk_score: Integer, physical_card_id: String, terminal_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Simulations::CardAuthorizationCreateResponse) end diff --git a/rbi/lib/increase/resources/simulations/card_disputes.rbi b/rbi/lib/increase/resources/simulations/card_disputes.rbi index 4dcf5a02..f21c4e4f 100644 --- a/rbi/lib/increase/resources/simulations/card_disputes.rbi +++ b/rbi/lib/increase/resources/simulations/card_disputes.rbi @@ -13,7 +13,7 @@ module Increase card_dispute_id: String, status: Increase::Models::Simulations::CardDisputeActionParams::Status::OrSymbol, explanation: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardDispute) end diff --git a/rbi/lib/increase/resources/simulations/card_fuel_confirmations.rbi b/rbi/lib/increase/resources/simulations/card_fuel_confirmations.rbi index 12447db4..2822535e 100644 --- a/rbi/lib/increase/resources/simulations/card_fuel_confirmations.rbi +++ b/rbi/lib/increase/resources/simulations/card_fuel_confirmations.rbi @@ -11,7 +11,7 @@ module Increase params( amount: Integer, card_payment_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardPayment) end diff --git a/rbi/lib/increase/resources/simulations/card_increments.rbi b/rbi/lib/increase/resources/simulations/card_increments.rbi index 0ffb8db5..3d8e5e31 100644 --- a/rbi/lib/increase/resources/simulations/card_increments.rbi +++ b/rbi/lib/increase/resources/simulations/card_increments.rbi @@ -11,7 +11,7 @@ module Increase amount: Integer, card_payment_id: String, event_subscription_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardPayment) end diff --git a/rbi/lib/increase/resources/simulations/card_refunds.rbi b/rbi/lib/increase/resources/simulations/card_refunds.rbi index d70aa2b3..562d931e 100644 --- a/rbi/lib/increase/resources/simulations/card_refunds.rbi +++ b/rbi/lib/increase/resources/simulations/card_refunds.rbi @@ -9,7 +9,7 @@ module Increase sig do params( transaction_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Transaction) end diff --git a/rbi/lib/increase/resources/simulations/card_reversals.rbi b/rbi/lib/increase/resources/simulations/card_reversals.rbi index 71cc143c..c28c6c03 100644 --- a/rbi/lib/increase/resources/simulations/card_reversals.rbi +++ b/rbi/lib/increase/resources/simulations/card_reversals.rbi @@ -12,7 +12,7 @@ module Increase params( card_payment_id: String, amount: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CardPayment) end diff --git a/rbi/lib/increase/resources/simulations/card_settlements.rbi b/rbi/lib/increase/resources/simulations/card_settlements.rbi index 3a7fd7be..149d6d1c 100644 --- a/rbi/lib/increase/resources/simulations/card_settlements.rbi +++ b/rbi/lib/increase/resources/simulations/card_settlements.rbi @@ -14,7 +14,7 @@ module Increase card_id: String, pending_transaction_id: String, amount: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Transaction) end diff --git a/rbi/lib/increase/resources/simulations/check_deposits.rbi b/rbi/lib/increase/resources/simulations/check_deposits.rbi index 36b7ccb0..b43c9b35 100644 --- a/rbi/lib/increase/resources/simulations/check_deposits.rbi +++ b/rbi/lib/increase/resources/simulations/check_deposits.rbi @@ -10,7 +10,7 @@ module Increase sig do params( check_deposit_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckDeposit) end @@ -26,7 +26,7 @@ module Increase sig do params( check_deposit_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckDeposit) end @@ -42,7 +42,7 @@ module Increase sig do params( check_deposit_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckDeposit) end diff --git a/rbi/lib/increase/resources/simulations/check_transfers.rbi b/rbi/lib/increase/resources/simulations/check_transfers.rbi index 57822e6e..208c72c1 100644 --- a/rbi/lib/increase/resources/simulations/check_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/check_transfers.rbi @@ -11,7 +11,7 @@ module Increase sig do params( check_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::CheckTransfer) end diff --git a/rbi/lib/increase/resources/simulations/digital_wallet_token_requests.rbi b/rbi/lib/increase/resources/simulations/digital_wallet_token_requests.rbi index 0e99ad22..bb274a54 100644 --- a/rbi/lib/increase/resources/simulations/digital_wallet_token_requests.rbi +++ b/rbi/lib/increase/resources/simulations/digital_wallet_token_requests.rbi @@ -9,7 +9,7 @@ module Increase sig do params( card_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse) end diff --git a/rbi/lib/increase/resources/simulations/documents.rbi b/rbi/lib/increase/resources/simulations/documents.rbi index 58b47886..c73e3587 100644 --- a/rbi/lib/increase/resources/simulations/documents.rbi +++ b/rbi/lib/increase/resources/simulations/documents.rbi @@ -8,7 +8,7 @@ module Increase sig do params( account_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Document) end diff --git a/rbi/lib/increase/resources/simulations/inbound_ach_transfers.rbi b/rbi/lib/increase/resources/simulations/inbound_ach_transfers.rbi index 261f7be6..efce0dd9 100644 --- a/rbi/lib/increase/resources/simulations/inbound_ach_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/inbound_ach_transfers.rbi @@ -27,7 +27,7 @@ module Increase receiver_name: String, resolve_at: Time, standard_entry_class_code: Increase::Models::Simulations::InboundACHTransferCreateParams::StandardEntryClassCode::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundACHTransfer) end diff --git a/rbi/lib/increase/resources/simulations/inbound_check_deposits.rbi b/rbi/lib/increase/resources/simulations/inbound_check_deposits.rbi index f4cecb52..f47a6f37 100644 --- a/rbi/lib/increase/resources/simulations/inbound_check_deposits.rbi +++ b/rbi/lib/increase/resources/simulations/inbound_check_deposits.rbi @@ -15,7 +15,7 @@ module Increase account_number_id: String, amount: Integer, check_number: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundCheckDeposit) end diff --git a/rbi/lib/increase/resources/simulations/inbound_funds_holds.rbi b/rbi/lib/increase/resources/simulations/inbound_funds_holds.rbi index ffd771f6..da701482 100644 --- a/rbi/lib/increase/resources/simulations/inbound_funds_holds.rbi +++ b/rbi/lib/increase/resources/simulations/inbound_funds_holds.rbi @@ -9,7 +9,7 @@ module Increase sig do params( inbound_funds_hold_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Simulations::InboundFundsHoldReleaseResponse) end diff --git a/rbi/lib/increase/resources/simulations/inbound_mail_items.rbi b/rbi/lib/increase/resources/simulations/inbound_mail_items.rbi index f7bc93aa..f4e7bd26 100644 --- a/rbi/lib/increase/resources/simulations/inbound_mail_items.rbi +++ b/rbi/lib/increase/resources/simulations/inbound_mail_items.rbi @@ -11,7 +11,7 @@ module Increase amount: Integer, lockbox_id: String, contents_file_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundMailItem) end diff --git a/rbi/lib/increase/resources/simulations/inbound_real_time_payments_transfers.rbi b/rbi/lib/increase/resources/simulations/inbound_real_time_payments_transfers.rbi index 82c4588f..ea0bcff0 100644 --- a/rbi/lib/increase/resources/simulations/inbound_real_time_payments_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/inbound_real_time_payments_transfers.rbi @@ -16,7 +16,7 @@ module Increase debtor_routing_number: String, remittance_information: String, request_for_payment_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundRealTimePaymentsTransfer) end diff --git a/rbi/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rbi b/rbi/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rbi index 37bf6e1f..7f75ac17 100644 --- a/rbi/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rbi +++ b/rbi/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rbi @@ -28,7 +28,7 @@ module Increase originator_to_beneficiary_information_line2: String, originator_to_beneficiary_information_line3: String, originator_to_beneficiary_information_line4: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundWireDrawdownRequest) end diff --git a/rbi/lib/increase/resources/simulations/inbound_wire_transfers.rbi b/rbi/lib/increase/resources/simulations/inbound_wire_transfers.rbi index b11a4505..c9303ad8 100644 --- a/rbi/lib/increase/resources/simulations/inbound_wire_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/inbound_wire_transfers.rbi @@ -24,7 +24,7 @@ module Increase originator_to_beneficiary_information_line3: String, originator_to_beneficiary_information_line4: String, sender_reference: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::InboundWireTransfer) end diff --git a/rbi/lib/increase/resources/simulations/interest_payments.rbi b/rbi/lib/increase/resources/simulations/interest_payments.rbi index 66c18ed9..4b97cc38 100644 --- a/rbi/lib/increase/resources/simulations/interest_payments.rbi +++ b/rbi/lib/increase/resources/simulations/interest_payments.rbi @@ -13,7 +13,7 @@ module Increase accrued_on_account_id: String, period_end: Time, period_start: Time, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Transaction) end diff --git a/rbi/lib/increase/resources/simulations/physical_cards.rbi b/rbi/lib/increase/resources/simulations/physical_cards.rbi index b63ca086..3890015b 100644 --- a/rbi/lib/increase/resources/simulations/physical_cards.rbi +++ b/rbi/lib/increase/resources/simulations/physical_cards.rbi @@ -11,7 +11,7 @@ module Increase params( physical_card_id: String, shipment_status: Increase::Models::Simulations::PhysicalCardAdvanceShipmentParams::ShipmentStatus::OrSymbol, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::PhysicalCard) end diff --git a/rbi/lib/increase/resources/simulations/programs.rbi b/rbi/lib/increase/resources/simulations/programs.rbi index 55d6b403..b3e8aab1 100644 --- a/rbi/lib/increase/resources/simulations/programs.rbi +++ b/rbi/lib/increase/resources/simulations/programs.rbi @@ -11,12 +11,7 @@ module Increase sig do params( name: String, - request_options: T.nilable( - T.any( - Increase::RequestOptions, - Increase::Util::AnyHash - ) - ) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Program) end diff --git a/rbi/lib/increase/resources/simulations/real_time_payments_transfers.rbi b/rbi/lib/increase/resources/simulations/real_time_payments_transfers.rbi index f1bf2131..4d29620a 100644 --- a/rbi/lib/increase/resources/simulations/real_time_payments_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/real_time_payments_transfers.rbi @@ -13,9 +13,9 @@ module Increase real_time_payments_transfer_id: String, rejection: T.any( Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection, - Increase::Util::AnyHash + Increase::Internal::AnyHash ), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::RealTimePaymentsTransfer) end diff --git a/rbi/lib/increase/resources/simulations/wire_transfers.rbi b/rbi/lib/increase/resources/simulations/wire_transfers.rbi index 406c7963..6378d3cb 100644 --- a/rbi/lib/increase/resources/simulations/wire_transfers.rbi +++ b/rbi/lib/increase/resources/simulations/wire_transfers.rbi @@ -11,7 +11,7 @@ module Increase sig do params( wire_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireTransfer) end @@ -28,7 +28,7 @@ module Increase sig do params( wire_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireTransfer) end diff --git a/rbi/lib/increase/resources/supplemental_documents.rbi b/rbi/lib/increase/resources/supplemental_documents.rbi index 83cde383..44aa7d2a 100644 --- a/rbi/lib/increase/resources/supplemental_documents.rbi +++ b/rbi/lib/increase/resources/supplemental_documents.rbi @@ -8,7 +8,7 @@ module Increase params( entity_id: String, file_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::EntitySupplementalDocument) end @@ -28,9 +28,9 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::EntitySupplementalDocument]) + .returns(Increase::Internal::Page[Increase::Models::EntitySupplementalDocument]) end def list( # The identifier of the Entity to list supplemental documents for. diff --git a/rbi/lib/increase/resources/transactions.rbi b/rbi/lib/increase/resources/transactions.rbi index b41324dc..46da0a7c 100644 --- a/rbi/lib/increase/resources/transactions.rbi +++ b/rbi/lib/increase/resources/transactions.rbi @@ -7,7 +7,7 @@ module Increase sig do params( transaction_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::Transaction) end @@ -22,14 +22,14 @@ module Increase sig do params( account_id: String, - category: T.any(Increase::Models::TransactionListParams::Category, Increase::Util::AnyHash), - created_at: T.any(Increase::Models::TransactionListParams::CreatedAt, Increase::Util::AnyHash), + category: T.any(Increase::Models::TransactionListParams::Category, Increase::Internal::AnyHash), + created_at: T.any(Increase::Models::TransactionListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, limit: Integer, route_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::Transaction]) + .returns(Increase::Internal::Page[Increase::Models::Transaction]) end def list( # Filter Transactions for those belonging to the specified Account. diff --git a/rbi/lib/increase/resources/wire_drawdown_requests.rbi b/rbi/lib/increase/resources/wire_drawdown_requests.rbi index e5ca94a7..e000930b 100644 --- a/rbi/lib/increase/resources/wire_drawdown_requests.rbi +++ b/rbi/lib/increase/resources/wire_drawdown_requests.rbi @@ -19,7 +19,7 @@ module Increase recipient_address_line1: String, recipient_address_line2: String, recipient_address_line3: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireDrawdownRequest) end @@ -66,7 +66,7 @@ module Increase sig do params( wire_drawdown_request_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireDrawdownRequest) end @@ -83,10 +83,10 @@ module Increase cursor: String, idempotency_key: String, limit: Integer, - status: T.any(Increase::Models::WireDrawdownRequestListParams::Status, Increase::Util::AnyHash), - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + status: T.any(Increase::Models::WireDrawdownRequestListParams::Status, Increase::Internal::AnyHash), + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::WireDrawdownRequest]) + .returns(Increase::Internal::Page[Increase::Models::WireDrawdownRequest]) end def list( # Return the page of entries after this one. diff --git a/rbi/lib/increase/resources/wire_transfers.rbi b/rbi/lib/increase/resources/wire_transfers.rbi index 264f3153..b32f2910 100644 --- a/rbi/lib/increase/resources/wire_transfers.rbi +++ b/rbi/lib/increase/resources/wire_transfers.rbi @@ -22,7 +22,7 @@ module Increase require_approval: T::Boolean, routing_number: String, source_account_number_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireTransfer) end @@ -73,7 +73,7 @@ module Increase sig do params( wire_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireTransfer) end @@ -88,14 +88,14 @@ module Increase sig do params( account_id: String, - created_at: T.any(Increase::Models::WireTransferListParams::CreatedAt, Increase::Util::AnyHash), + created_at: T.any(Increase::Models::WireTransferListParams::CreatedAt, Increase::Internal::AnyHash), cursor: String, external_account_id: String, idempotency_key: String, limit: Integer, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) - .returns(Increase::Page[Increase::Models::WireTransfer]) + .returns(Increase::Internal::Page[Increase::Models::WireTransfer]) end def list( # Filter Wire Transfers to those belonging to the specified Account. @@ -121,7 +121,7 @@ module Increase sig do params( wire_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireTransfer) end @@ -136,7 +136,7 @@ module Increase sig do params( wire_transfer_id: String, - request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) + request_options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) ) .returns(Increase::Models::WireTransfer) end diff --git a/rbi/lib/increase/transport/base_client.rbi b/rbi/lib/increase/transport/base_client.rbi deleted file mode 100644 index b769a4d2..00000000 --- a/rbi/lib/increase/transport/base_client.rbi +++ /dev/null @@ -1,205 +0,0 @@ -# typed: strong - -module Increase - module Transport - # @api private - class BaseClient - abstract! - - RequestComponentsShape = - T.type_alias do - { - method: Symbol, - path: T.any(String, T::Array[String]), - query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), - headers: T.nilable( - T::Hash[String, - T.nilable( - T.any( - String, - Integer, - T::Array[T.nilable(T.any(String, Integer))] - ) - )] - ), - body: T.nilable(T.anything), - unwrap: T.nilable(Symbol), - page: T.nilable(T::Class[Increase::Type::BasePage[Increase::BaseModel]]), - stream: T.nilable(T::Class[T.anything]), - model: T.nilable(Increase::Type::Converter::Input), - options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) - } - end - - RequestInputShape = - T.type_alias do - { - method: Symbol, - url: URI::Generic, - headers: T::Hash[String, String], - body: T.anything, - max_retries: Integer, - timeout: Float - } - end - - # from whatwg fetch spec - MAX_REDIRECTS = 20 - - PLATFORM_HEADERS = T::Hash[String, String] - - class << self - # @api private - sig { params(req: Increase::Transport::BaseClient::RequestComponentsShape).void } - def validate!(req) - end - - # @api private - sig do - params( - status: Integer, - headers: T.any( - T::Hash[String, String], - Net::HTTPHeader - ) - ).returns(T::Boolean) - end - def should_retry?(status, headers:) - end - - # @api private - sig do - params( - request: Increase::Transport::BaseClient::RequestInputShape, - status: Integer, - response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) - ) - .returns(Increase::Transport::BaseClient::RequestInputShape) - end - def follow_redirect(request, status:, response_headers:) - end - - # @api private - sig do - params( - status: T.any(Integer, Increase::Errors::APIConnectionError), - stream: T.nilable(T::Enumerable[String]) - ) - .void - end - def reap_connection!(status, stream:) - end - end - - # @api private - sig { returns(Increase::Transport::PooledNetRequester) } - attr_accessor :requester - - # @api private - sig do - params( - base_url: String, - timeout: Float, - max_retries: Integer, - initial_retry_delay: Float, - max_retry_delay: Float, - headers: T::Hash[String, - T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))], - idempotency_header: T.nilable(String) - ) - .returns(T.attached_class) - end - def self.new( - base_url:, - timeout: 0.0, - max_retries: 0, - initial_retry_delay: 0.0, - max_retry_delay: 0.0, - headers: {}, - idempotency_header: nil - ) - end - - # @api private - sig { overridable.returns(T::Hash[String, String]) } - private def auth_headers - end - - # @api private - sig { returns(String) } - private def generate_idempotency_key - end - - # @api private - sig do - overridable - .params(req: Increase::Transport::BaseClient::RequestComponentsShape, opts: Increase::Util::AnyHash) - .returns(Increase::Transport::BaseClient::RequestInputShape) - end - private def build_request(req, opts) - end - - # @api private - sig { params(headers: T::Hash[String, String], retry_count: Integer).returns(Float) } - private def retry_delay(headers, retry_count:) - end - - # @api private - sig do - params( - request: Increase::Transport::BaseClient::RequestInputShape, - redirect_count: Integer, - retry_count: Integer, - send_retry_header: T::Boolean - ) - .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) - end - private def send_request(request, redirect_count:, retry_count:, send_retry_header:) - end - - # Execute the request specified by `req`. This is the method that all resource - # methods call into. - sig do - params( - method: Symbol, - path: T.any(String, T::Array[String]), - query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), - headers: T.nilable( - T::Hash[String, - T.nilable( - T.any( - String, - Integer, - T::Array[T.nilable(T.any(String, Integer))] - ) - )] - ), - body: T.nilable(T.anything), - unwrap: T.nilable(Symbol), - page: T.nilable(T::Class[Increase::Type::BasePage[Increase::BaseModel]]), - stream: T.nilable(T::Class[T.anything]), - model: T.nilable(Increase::Type::Converter::Input), - options: T.nilable(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) - ) - .returns(T.anything) - end - def request( - method, - path, - query: {}, - headers: {}, - body: nil, - unwrap: nil, - page: nil, - stream: nil, - model: Increase::Unknown, - options: {} - ) - end - - sig { returns(String) } - def inspect - end - end - end -end diff --git a/rbi/lib/increase/transport/pooled_net_requester.rbi b/rbi/lib/increase/transport/pooled_net_requester.rbi deleted file mode 100644 index 44722692..00000000 --- a/rbi/lib/increase/transport/pooled_net_requester.rbi +++ /dev/null @@ -1,64 +0,0 @@ -# typed: strong - -module Increase - module Transport - # @api private - class PooledNetRequester - RequestShape = - T.type_alias do - { - method: Symbol, - url: URI::Generic, - headers: T::Hash[String, String], - body: T.anything, - deadline: Float - } - end - - # from the golang stdlib - # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 - KEEP_ALIVE_TIMEOUT = 30 - - class << self - # @api private - sig { params(url: URI::Generic).returns(Net::HTTP) } - def connect(url) - end - - # @api private - sig { params(conn: Net::HTTP, deadline: Float).void } - def calibrate_socket_timeout(conn, deadline) - end - - # @api private - sig do - params( - request: Increase::Transport::PooledNetRequester::RequestShape, - blk: T.proc.params(arg0: String).void - ) - .returns(Net::HTTPGenericRequest) - end - def build_request(request, &blk) - end - end - - # @api private - sig { params(url: URI::Generic, deadline: Float, blk: T.proc.params(arg0: Net::HTTP).void).void } - private def with_pool(url, deadline:, &blk) - end - - # @api private - sig do - params(request: Increase::Transport::PooledNetRequester::RequestShape) - .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) - end - def execute(request) - end - - # @api private - sig { params(size: Integer).returns(T.attached_class) } - def self.new(size: Etc.nprocessors) - end - end - end -end diff --git a/rbi/lib/increase/type.rbi b/rbi/lib/increase/type.rbi deleted file mode 100644 index c5c3ff8a..00000000 --- a/rbi/lib/increase/type.rbi +++ /dev/null @@ -1,23 +0,0 @@ -# typed: strong - -module Increase - Unknown = Increase::Type::Unknown - - BooleanModel = Increase::Type::BooleanModel - - Enum = Increase::Type::Enum - - Union = Increase::Type::Union - - ArrayOf = Increase::Type::ArrayOf - - HashOf = Increase::Type::HashOf - - BaseModel = Increase::Type::BaseModel - - RequestParameters = Increase::Type::RequestParameters - - # This module contains various type declarations. - module Type - end -end diff --git a/rbi/lib/increase/type/array_of.rbi b/rbi/lib/increase/type/array_of.rbi deleted file mode 100644 index 1330ba68..00000000 --- a/rbi/lib/increase/type/array_of.rbi +++ /dev/null @@ -1,82 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - # - # Array of items of a given type. - class ArrayOf - include Increase::Type::Converter - - abstract! - final! - - Elem = type_member(:out) - - sig(:final) do - params( - type_info: T.any( - Increase::Util::AnyHash, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ), - spec: Increase::Util::AnyHash - ) - .returns(T.attached_class) - end - def self.[](type_info, spec = {}) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def ===(other) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - # @api private - sig(:final) do - override - .params(value: T.any(T::Enumerable[Elem], T.anything), state: Increase::Type::Converter::State) - .returns(T.any(T::Array[T.anything], T.anything)) - end - def coerce(value, state:) - end - - # @api private - sig(:final) do - override - .params(value: T.any(T::Enumerable[Elem], T.anything)) - .returns(T.any(T::Array[T.anything], T.anything)) - end - def dump(value) - end - - # @api private - sig(:final) { returns(Elem) } - protected def item_type - end - - # @api private - sig(:final) { returns(T::Boolean) } - protected def nilable? - end - - # @api private - sig(:final) do - params( - type_info: T.any( - Increase::Util::AnyHash, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ), - spec: Increase::Util::AnyHash - ) - .void - end - def initialize(type_info, spec = {}) - end - end - end -end diff --git a/rbi/lib/increase/type/base_model.rbi b/rbi/lib/increase/type/base_model.rbi deleted file mode 100644 index 0082d992..00000000 --- a/rbi/lib/increase/type/base_model.rbi +++ /dev/null @@ -1,199 +0,0 @@ -# typed: strong - -module Increase - module Type - class BaseModel - extend Increase::Type::Converter - - abstract! - - KnownFieldShape = T.type_alias { {mode: T.nilable(Symbol), required: T::Boolean, nilable: T::Boolean} } - - class << self - # @api private - # - # Assumes superclass fields are totally defined before fields are accessed / - # defined on subclasses. - sig do - returns( - T::Hash[ - Symbol, - T.all( - Increase::BaseModel::KnownFieldShape, - {type_fn: T.proc.returns(Increase::Type::Converter::Input)} - ) - ] - ) - end - def known_fields - end - - # @api private - sig do - returns( - T::Hash[Symbol, - T.all(Increase::BaseModel::KnownFieldShape, {type: Increase::Type::Converter::Input})] - ) - end - def fields - end - - # @api private - sig do - params( - name_sym: Symbol, - required: T::Boolean, - type_info: T.any( - { - const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), - enum: T.nilable(T.proc.returns(Increase::Type::Converter::Input)), - union: T.nilable(T.proc.returns(Increase::Type::Converter::Input)), - api_name: Symbol, - nil?: T::Boolean - }, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ), - spec: Increase::Util::AnyHash - ) - .void - end - private def add_field(name_sym, required:, type_info:, spec:) - end - - # @api private - sig do - params( - name_sym: Symbol, - type_info: T.any( - Increase::Util::AnyHash, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ), - spec: Increase::Util::AnyHash - ) - .void - end - def required(name_sym, type_info, spec = {}) - end - - # @api private - sig do - params( - name_sym: Symbol, - type_info: T.any( - Increase::Util::AnyHash, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ), - spec: Increase::Util::AnyHash - ) - .void - end - def optional(name_sym, type_info, spec = {}) - end - - # @api private - # - # `request_only` attributes not excluded from `.#coerce` when receiving responses - # even if well behaved servers should not send them - sig { params(blk: T.proc.void).void } - private def request_only(&blk) - end - - # @api private - # - # `response_only` attributes are omitted from `.#dump` when making requests - sig { params(blk: T.proc.void).void } - private def response_only(&blk) - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - class << self - # @api private - sig do - override - .params( - value: T.any(Increase::BaseModel, T::Hash[T.anything, T.anything], T.anything), - state: Increase::Type::Converter::State - ) - .returns(T.any(T.attached_class, T.anything)) - end - def coerce(value, state:) - end - - # @api private - sig do - override - .params(value: T.any(T.attached_class, T.anything)) - .returns(T.any(T::Hash[T.anything, T.anything], T.anything)) - end - def dump(value) - end - end - - # Returns the raw value associated with the given key, if found. Otherwise, nil is - # returned. - # - # It is valid to lookup keys that are not in the API spec, for example to access - # undocumented features. This method does not parse response data into - # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. - sig { params(key: Symbol).returns(T.nilable(T.anything)) } - def [](key) - end - - # Returns a Hash of the data underlying this object. O(1) - # - # Keys are Symbols and values are the raw values from the response. The return - # value indicates which values were ever set on the object. i.e. there will be a - # key in this hash if they ever were, even if the set value was nil. - # - # This method is not recursive. The returned value is shared by the object, so it - # should not be mutated. - sig { overridable.returns(Increase::Util::AnyHash) } - def to_h - end - - # Returns a Hash of the data underlying this object. O(1) - # - # Keys are Symbols and values are the raw values from the response. The return - # value indicates which values were ever set on the object. i.e. there will be a - # key in this hash if they ever were, even if the set value was nil. - # - # This method is not recursive. The returned value is shared by the object, so it - # should not be mutated. - sig { overridable.returns(Increase::Util::AnyHash) } - def to_hash - end - - sig { params(keys: T.nilable(T::Array[Symbol])).returns(Increase::Util::AnyHash) } - def deconstruct_keys(keys) - end - - sig { params(a: T.anything).returns(String) } - def to_json(*a) - end - - sig { params(a: T.anything).returns(String) } - def to_yaml(*a) - end - - # Create a new instance of a model. - sig { params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns(T.attached_class) } - def self.new(data = {}) - end - - sig { returns(String) } - def inspect - end - end - end -end diff --git a/rbi/lib/increase/type/base_page.rbi b/rbi/lib/increase/type/base_page.rbi deleted file mode 100644 index 290dc830..00000000 --- a/rbi/lib/increase/type/base_page.rbi +++ /dev/null @@ -1,38 +0,0 @@ -# typed: strong - -module Increase - module Type - module BasePage - Elem = type_member(:out) - - sig { overridable.returns(T::Boolean) } - def next_page? - end - - sig { overridable.returns(T.self_type) } - def next_page - end - - sig { overridable.params(blk: T.proc.params(arg0: Elem).void).void } - def auto_paging_each(&blk) - end - - sig { returns(T::Enumerable[Elem]) } - def to_enum - end - - # @api private - sig do - params( - client: Increase::Transport::BaseClient, - req: Increase::Transport::BaseClient::RequestComponentsShape, - headers: T.any(T::Hash[String, String], Net::HTTPHeader), - page_data: T.anything - ) - .void - end - def initialize(client:, req:, headers:, page_data:) - end - end - end -end diff --git a/rbi/lib/increase/type/boolean_model.rbi b/rbi/lib/increase/type/boolean_model.rbi deleted file mode 100644 index 7573e99a..00000000 --- a/rbi/lib/increase/type/boolean_model.rbi +++ /dev/null @@ -1,41 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - # - # Ruby has no Boolean class; this is something for models to refer to. - class BooleanModel - extend Increase::Type::Converter - - abstract! - final! - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.===(other) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.==(other) - end - - class << self - # @api private - sig(:final) do - override - .params(value: T.any(T::Boolean, T.anything), state: Increase::Type::Converter::State) - .returns(T.any(T::Boolean, T.anything)) - end - def coerce(value, state:) - end - - # @api private - sig(:final) do - override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) - end - def dump(value) - end - end - end - end -end diff --git a/rbi/lib/increase/type/converter.rbi b/rbi/lib/increase/type/converter.rbi deleted file mode 100644 index 66865e34..00000000 --- a/rbi/lib/increase/type/converter.rbi +++ /dev/null @@ -1,101 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - module Converter - Input = T.type_alias { T.any(Increase::Type::Converter, T::Class[T.anything]) } - - State = - T.type_alias do - { - strictness: T.any(T::Boolean, Symbol), - exactness: {yes: Integer, no: Integer, maybe: Integer}, - branched: Integer - } - end - - # @api private - sig do - overridable.params(value: T.anything, state: Increase::Type::Converter::State).returns(T.anything) - end - def coerce(value, state:) - end - - # @api private - sig { overridable.params(value: T.anything).returns(T.anything) } - def dump(value) - end - - class << self - # @api private - sig do - params( - spec: T.any( - { - const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), - enum: T.nilable(T.proc.returns(Increase::Type::Converter::Input)), - union: T.nilable(T.proc.returns(Increase::Type::Converter::Input)) - }, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ) - ) - .returns(T.proc.returns(T.anything)) - end - def self.type_info(spec) - end - - # @api private - # - # Based on `target`, transform `value` into `target`, to the extent possible: - # - # 1. if the given `value` conforms to `target` already, return the given `value` - # 2. if it's possible and safe to convert the given `value` to `target`, then the - # converted value - # 3. otherwise, the given `value` unaltered - # - # The coercion process is subject to improvement between minor release versions. - # See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode - sig do - params( - target: Increase::Type::Converter::Input, - value: T.anything, - state: Increase::Type::Converter::State - ) - .returns(T.anything) - end - def self.coerce( - target, - value, - # The `strictness` is one of `true`, `false`, or `:strong`. This informs the - # coercion strategy when we have to decide between multiple possible conversion - # targets: - # - # - `true`: the conversion must be exact, with minimum coercion. - # - `false`: the conversion can be approximate, with some coercion. - # - `:strong`: the conversion must be exact, with no coercion, and raise an error - # if not possible. - # - # The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For - # any given conversion attempt, the exactness will be updated based on how closely - # the value recursively matches the target type: - # - # - `yes`: the value can be converted to the target type with minimum coercion. - # - `maybe`: the value can be converted to the target type with some reasonable - # coercion. - # - `no`: the value cannot be converted to the target type. - # - # See implementation below for more details. - state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} - ) - end - - # @api private - sig { params(target: Increase::Type::Converter::Input, value: T.anything).returns(T.anything) } - def self.dump(target, value) - end - end - end - end -end diff --git a/rbi/lib/increase/type/enum.rbi b/rbi/lib/increase/type/enum.rbi deleted file mode 100644 index bdf944d0..00000000 --- a/rbi/lib/increase/type/enum.rbi +++ /dev/null @@ -1,58 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - # - # A value from among a specified list of options. OpenAPI enum values map to Ruby - # values in the SDK as follows: - # - # 1. boolean => true | false - # 2. integer => Integer - # 3. float => Float - # 4. string => Symbol - # - # We can therefore convert string values to Symbols, but can't convert other - # values safely. - module Enum - include Increase::Type::Converter - - # All of the valid Symbol values for this enum. - sig { overridable.returns(T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)]) } - def values - end - - # @api private - # - # Guard against thread safety issues by instantiating `@values`. - sig { void } - private def finalize! - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ===(other) - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - # @api private - # - # Unlike with primitives, `Enum` additionally validates that the value is a member - # of the enum. - sig do - override - .params(value: T.any(String, Symbol, T.anything), state: Increase::Type::Converter::State) - .returns(T.any(Symbol, T.anything)) - end - def coerce(value, state:) - end - - # @api private - sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def dump(value) - end - end - end -end diff --git a/rbi/lib/increase/type/hash_of.rbi b/rbi/lib/increase/type/hash_of.rbi deleted file mode 100644 index e827c3d5..00000000 --- a/rbi/lib/increase/type/hash_of.rbi +++ /dev/null @@ -1,86 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - # - # Hash of items of a given type. - class HashOf - include Increase::Type::Converter - - abstract! - final! - - Elem = type_member(:out) - - sig(:final) do - params( - type_info: T.any( - Increase::Util::AnyHash, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ), - spec: Increase::Util::AnyHash - ) - .returns(T.attached_class) - end - def self.[](type_info, spec = {}) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def ===(other) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - # @api private - sig(:final) do - override - .params(value: T.any( - T::Hash[T.anything, T.anything], - T.anything - ), - state: Increase::Type::Converter::State) - .returns(T.any(Increase::Util::AnyHash, T.anything)) - end - def coerce(value, state:) - end - - # @api private - sig(:final) do - override - .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(Increase::Util::AnyHash, T.anything)) - end - def dump(value) - end - - # @api private - sig(:final) { returns(Elem) } - protected def item_type - end - - # @api private - sig(:final) { returns(T::Boolean) } - protected def nilable? - end - - # @api private - sig(:final) do - params( - type_info: T.any( - Increase::Util::AnyHash, - T.proc.returns(Increase::Type::Converter::Input), - Increase::Type::Converter::Input - ), - spec: Increase::Util::AnyHash - ) - .void - end - def initialize(type_info, spec = {}) - end - end - end -end diff --git a/rbi/lib/increase/type/request_parameters.rbi b/rbi/lib/increase/type/request_parameters.rbi deleted file mode 100644 index 1c68ddcd..00000000 --- a/rbi/lib/increase/type/request_parameters.rbi +++ /dev/null @@ -1,20 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - module RequestParameters - # Options to specify HTTP behaviour for this request. - sig { returns(T.any(Increase::RequestOptions, Increase::Util::AnyHash)) } - attr_accessor :request_options - - # @api private - module Converter - # @api private - sig { params(params: T.anything).returns([T.anything, Increase::Util::AnyHash]) } - def dump_request(params) - end - end - end - end -end diff --git a/rbi/lib/increase/type/union.rbi b/rbi/lib/increase/type/union.rbi deleted file mode 100644 index b750e9d4..00000000 --- a/rbi/lib/increase/type/union.rbi +++ /dev/null @@ -1,66 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - module Union - include Increase::Type::Converter - - # @api private - # - # All of the specified variant info for this union. - sig { returns(T::Array[[T.nilable(Symbol), T.proc.returns(Increase::Type::Converter::Input)]]) } - private def known_variants - end - - # @api private - sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) } - protected def derefed_variants - end - - # All of the specified variants for this union. - sig { overridable.returns(T::Array[T.anything]) } - def variants - end - - # @api private - sig { params(property: Symbol).void } - private def discriminator(property) - end - - # @api private - sig do - params( - key: T.any(Symbol, Increase::Util::AnyHash, T.proc.returns(T.anything), T.anything), - spec: T.any(Increase::Util::AnyHash, T.proc.returns(T.anything), T.anything) - ) - .void - end - private def variant(key, spec = nil) - end - - # @api private - sig { params(value: T.anything).returns(T.nilable(T.anything)) } - private def resolve_variant(value) - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ===(other) - end - - sig { params(other: T.anything).returns(T::Boolean) } - def ==(other) - end - - # @api private - sig { override.params(value: T.anything, state: Increase::Type::Converter::State).returns(T.anything) } - def coerce(value, state:) - end - - # @api private - sig { override.params(value: T.anything).returns(T.anything) } - def dump(value) - end - end - end -end diff --git a/rbi/lib/increase/type/unknown.rbi b/rbi/lib/increase/type/unknown.rbi deleted file mode 100644 index e6c2f6e5..00000000 --- a/rbi/lib/increase/type/unknown.rbi +++ /dev/null @@ -1,37 +0,0 @@ -# typed: strong - -module Increase - module Type - # @api private - # - # When we don't know what to expect for the value. - class Unknown - extend Increase::Type::Converter - - abstract! - final! - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.===(other) - end - - sig(:final) { params(other: T.anything).returns(T::Boolean) } - def self.==(other) - end - - class << self - # @api private - sig(:final) do - override.params(value: T.anything, state: Increase::Type::Converter::State).returns(T.anything) - end - def coerce(value, state:) - end - - # @api private - sig(:final) { override.params(value: T.anything).returns(T.anything) } - def dump(value) - end - end - end - end -end diff --git a/rbi/lib/increase/util.rbi b/rbi/lib/increase/util.rbi deleted file mode 100644 index b7cca2df..00000000 --- a/rbi/lib/increase/util.rbi +++ /dev/null @@ -1,280 +0,0 @@ -# typed: strong - -module Increase - # @api private - module Util - # 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] } - - # @api private - sig { returns(Float) } - def self.monotonic_secs - end - - class << self - # @api private - sig { returns(String) } - def arch - end - - # @api private - sig { returns(String) } - def os - end - end - - class << self - # @api private - sig { params(input: T.anything).returns(T::Boolean) } - def primitive?(input) - end - - # @api private - sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } - def coerce_boolean(input) - end - - # @api private - sig { params(input: T.anything).returns(T.nilable(T::Boolean)) } - def coerce_boolean!(input) - end - - # @api private - sig { params(input: T.anything).returns(T.any(Integer, T.anything)) } - def coerce_integer(input) - end - - # @api private - sig { params(input: T.anything).returns(T.any(Float, T.anything)) } - def coerce_float(input) - end - - # @api private - sig { params(input: T.anything).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) } - def coerce_hash(input) - end - end - - # Use this to indicate that a value should be explicitly removed from a data - # structure when using `Increase::Util.deep_merge`. - # - # e.g. merging `{a: 1}` and `{a: OMIT}` should produce `{}`, where merging - # `{a: 1}` and `{}` would produce `{a: 1}`. - OMIT = T.let(T.anything, T.anything) - - class << self - # @api private - sig { params(lhs: T.anything, rhs: T.anything, concat: T::Boolean).returns(T.anything) } - private def deep_merge_lr(lhs, rhs, concat: false) - end - - # @api private - # - # Recursively merge one hash with another. If the values at a given key are not - # both hashes, just take the new value. - sig do - params(values: T::Array[T.anything], sentinel: T.nilable(T.anything), concat: T::Boolean) - .returns(T.anything) - end - def deep_merge( - *values, - # the value to return if no values are provided. - sentinel: nil, - # whether to merge sequences by concatenation. - concat: false - ) - end - - # @api private - sig do - params( - data: T.any(Increase::Util::AnyHash, T::Array[T.anything], T.anything), - pick: T.nilable(T.any(Symbol, Integer, T::Array[T.any(Symbol, Integer)])), - sentinel: T.nilable(T.anything), - blk: T.nilable(T.proc.returns(T.anything)) - ) - .returns(T.nilable(T.anything)) - end - def dig(data, pick, sentinel = nil, &blk) - end - end - - class << self - # @api private - sig { params(uri: URI::Generic).returns(String) } - def uri_origin(uri) - end - - # @api private - sig { params(path: T.any(String, T::Array[String])).returns(String) } - def interpolate_path(path) - end - end - - class << self - # @api private - sig { params(query: T.nilable(String)).returns(T::Hash[String, T::Array[String]]) } - def decode_query(query) - end - - # @api private - sig do - params(query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) - .returns(T.nilable(String)) - end - def encode_query(query) - end - end - - ParsedUriShape = - T.type_alias do - { - scheme: T.nilable(String), - host: T.nilable(String), - port: T.nilable(Integer), - path: T.nilable(String), - query: T::Hash[String, T::Array[String]] - } - end - - class << self - # @api private - sig { params(url: T.any(URI::Generic, String)).returns(Increase::Util::ParsedUriShape) } - def parse_uri(url) - end - - # @api private - sig { params(parsed: Increase::Util::ParsedUriShape).returns(URI::Generic) } - def unparse_uri(parsed) - end - - # @api private - sig do - params(lhs: Increase::Util::ParsedUriShape, rhs: Increase::Util::ParsedUriShape).returns(URI::Generic) - end - def join_parsed_uri(lhs, rhs) - end - end - - class << self - # @api private - sig do - params( - headers: T::Hash[String, - T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))] - ) - .returns(T::Hash[String, String]) - end - def normalized_headers(*headers) - end - end - - # @api private - # - # An adapter that satisfies the IO interface required by `::IO.copy_stream` - class ReadIOAdapter - # @api private - sig { params(max_len: T.nilable(Integer)).returns(String) } - private def read_enum(max_len) - end - - # @api private - sig { params(max_len: T.nilable(Integer), out_string: T.nilable(String)).returns(T.nilable(String)) } - def read(max_len = nil, out_string = nil) - end - - # @api private - sig do - params( - stream: T.any(String, IO, StringIO, T::Enumerable[String]), - blk: T.proc.params(arg0: String).void - ) - .returns(T.attached_class) - end - def self.new(stream, &blk) - end - end - - class << self - sig { params(blk: T.proc.params(y: Enumerator::Yielder).void).returns(T::Enumerable[String]) } - def writable_enum(&blk) - end - end - - class << self - # @api private - sig do - params(y: Enumerator::Yielder, boundary: String, key: T.any(Symbol, String), val: T.anything).void - end - private def write_multipart_chunk(y, boundary:, key:, val:) - end - - # @api private - sig { params(body: T.anything).returns([String, T::Enumerable[String]]) } - private def encode_multipart_streaming(body) - end - - # @api private - sig { params(headers: T::Hash[String, String], body: T.anything).returns(T.anything) } - def encode_content(headers, body) - end - - # @api private - sig do - params( - headers: T.any(T::Hash[String, String], Net::HTTPHeader), - stream: T::Enumerable[String], - suppress_error: T::Boolean - ) - .returns(T.anything) - end - def decode_content(headers, stream:, suppress_error: false) - end - end - - class << self - # @api private - # - # https://doc.rust-lang.org/std/iter/trait.FusedIterator.html - sig do - params(enum: T::Enumerable[T.anything], external: T::Boolean, close: T.proc.void) - .returns(T::Enumerable[T.anything]) - end - def fused_enum(enum, external: false, &close) - end - - # @api private - sig { params(enum: T.nilable(T::Enumerable[T.anything])).void } - def close_fused!(enum) - end - - # @api private - sig do - params(enum: T.nilable(T::Enumerable[T.anything]), blk: T.proc.params(arg0: Enumerator::Yielder).void) - .returns(T::Enumerable[T.anything]) - end - def chain_fused(enum, &blk) - end - end - - ServerSentEvent = - T.type_alias do - {event: T.nilable(String), data: T.nilable(String), id: T.nilable(String), retry: T.nilable(Integer)} - end - - class << self - # @api private - sig { params(enum: T::Enumerable[String]).returns(T::Enumerable[String]) } - def decode_lines(enum) - end - - # @api private - # - # https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream - sig { params(lines: T::Enumerable[String]).returns(Increase::Util::ServerSentEvent) } - def decode_sse(lines) - end - end - end -end diff --git a/rbi/lib/increase/version.rbi b/rbi/lib/increase/version.rbi index ce7dcb4b..1e339ca9 100644 --- a/rbi/lib/increase/version.rbi +++ b/rbi/lib/increase/version.rbi @@ -1,5 +1,5 @@ # typed: strong module Increase - VERSION = "0.1.0-alpha.2" + VERSION = "0.1.0-alpha.3" end diff --git a/sig/increase/client.rbs b/sig/increase/client.rbs index fd13c62b..19cf48ad 100644 --- a/sig/increase/client.rbs +++ b/sig/increase/client.rbs @@ -1,5 +1,5 @@ module Increase - class Client < Increase::Transport::BaseClient + class Client < Increase::Internal::Transport::BaseClient DEFAULT_MAX_RETRIES: 2 DEFAULT_TIMEOUT_IN_SECONDS: Float diff --git a/sig/increase/errors.rbs b/sig/increase/errors.rbs index 924cbdd9..eaf53c63 100644 --- a/sig/increase/errors.rbs +++ b/sig/increase/errors.rbs @@ -142,54 +142,4 @@ module Increase TYPE: "internal_server_error" end end - - class Error = Increase::Errors::Error - - class ConversionError = Increase::Errors::ConversionError - - class APIError = Increase::Errors::APIError - - class APIStatusError = Increase::Errors::APIStatusError - - class APIConnectionError = Increase::Errors::APIConnectionError - - class APITimeoutError = Increase::Errors::APITimeoutError - - class BadRequestError = Increase::Errors::BadRequestError - - class AuthenticationError = Increase::Errors::AuthenticationError - - class PermissionDeniedError = Increase::Errors::PermissionDeniedError - - class NotFoundError = Increase::Errors::NotFoundError - - class ConflictError = Increase::Errors::ConflictError - - class UnprocessableEntityError = Increase::Errors::UnprocessableEntityError - - class RateLimitError = Increase::Errors::RateLimitError - - class InvalidParametersError = Increase::Errors::InvalidParametersError - - class MalformedRequestError = Increase::Errors::MalformedRequestError - - class InvalidAPIKeyError = Increase::Errors::InvalidAPIKeyError - - class EnvironmentMismatchError = Increase::Errors::EnvironmentMismatchError - - class InsufficientPermissionsError = Increase::Errors::InsufficientPermissionsError - - class PrivateFeatureError = Increase::Errors::PrivateFeatureError - - class APIMethodNotFoundError = Increase::Errors::APIMethodNotFoundError - - class ObjectNotFoundError = Increase::Errors::ObjectNotFoundError - - class IdempotencyKeyAlreadyUsedError = Increase::Errors::IdempotencyKeyAlreadyUsedError - - class InvalidOperationError = Increase::Errors::InvalidOperationError - - class RateLimitedError = Increase::Errors::RateLimitedError - - class InternalServerError = Increase::Errors::InternalServerError end diff --git a/sig/increase/internal.rbs b/sig/increase/internal.rbs new file mode 100644 index 00000000..62a4cd04 --- /dev/null +++ b/sig/increase/internal.rbs @@ -0,0 +1,5 @@ +module Increase + module Internal + OMIT: top + end +end diff --git a/sig/increase/internal/page.rbs b/sig/increase/internal/page.rbs new file mode 100644 index 00000000..d39131f4 --- /dev/null +++ b/sig/increase/internal/page.rbs @@ -0,0 +1,13 @@ +module Increase + module Internal + class Page[Elem] + include Increase::Internal::Type::BasePage[Elem] + + attr_accessor data: ::Array[Elem]? + + attr_accessor next_cursor: String? + + def inspect: -> String + end + end +end diff --git a/sig/increase/internal/transport/base_client.rbs b/sig/increase/internal/transport/base_client.rbs new file mode 100644 index 00000000..75d721df --- /dev/null +++ b/sig/increase/internal/transport/base_client.rbs @@ -0,0 +1,110 @@ +module Increase + module Internal + module Transport + class BaseClient + type request_components = + { + method: Symbol, + path: String | ::Array[String], + query: ::Hash[String, (::Array[String] | String)?]?, + headers: ::Hash[String, (String + | Integer + | ::Array[(String | Integer)?])?]?, + body: top?, + unwrap: Symbol?, + page: Class?, + stream: Class?, + model: Increase::Internal::Type::Converter::input?, + options: Increase::request_opts? + } + + type request_input = + { + method: Symbol, + url: URI::Generic, + headers: ::Hash[String, String], + body: top, + max_retries: Integer, + timeout: Float + } + + MAX_REDIRECTS: 20 + + PLATFORM_HEADERS: ::Hash[String, String] + + def self.validate!: ( + Increase::Internal::Transport::BaseClient::request_components req + ) -> void + + def self.should_retry?: ( + Integer status, + headers: ::Hash[String, String] + ) -> bool + + def self.follow_redirect: ( + Increase::Internal::Transport::BaseClient::request_input request, + status: Integer, + response_headers: ::Hash[String, String] + ) -> Increase::Internal::Transport::BaseClient::request_input + + def self.reap_connection!: ( + Integer | Increase::Errors::APIConnectionError status, + stream: Enumerable[String]? + ) -> void + + # @api private + attr_accessor requester: Increase::Internal::Transport::PooledNetRequester + + def initialize: ( + base_url: String, + ?timeout: Float, + ?max_retries: Integer, + ?initial_retry_delay: Float, + ?max_retry_delay: Float, + ?headers: ::Hash[String, (String + | Integer + | ::Array[(String | Integer)?])?], + ?idempotency_header: String? + ) -> void + + private def auth_headers: -> ::Hash[String, String] + + private def generate_idempotency_key: -> String + + private def build_request: ( + Increase::Internal::Transport::BaseClient::request_components req, + Increase::request_options opts + ) -> Increase::Internal::Transport::BaseClient::request_input + + private def retry_delay: ( + ::Hash[String, String] headers, + retry_count: Integer + ) -> Float + + private def send_request: ( + Increase::Internal::Transport::BaseClient::request_input request, + redirect_count: Integer, + retry_count: Integer, + send_retry_header: bool + ) -> [Integer, top, Enumerable[String]] + + def request: ( + Symbol method, + String | ::Array[String] path, + ?query: ::Hash[String, (::Array[String] | String)?]?, + ?headers: ::Hash[String, (String + | Integer + | ::Array[(String | Integer)?])?]?, + ?body: top?, + ?unwrap: Symbol?, + ?page: Class?, + ?stream: Class?, + ?model: Increase::Internal::Type::Converter::input?, + ?options: Increase::request_opts? + ) -> top + + def inspect: -> String + end + end + end +end diff --git a/sig/increase/internal/transport/pooled_net_requester.rbs b/sig/increase/internal/transport/pooled_net_requester.rbs new file mode 100644 index 00000000..6a602f51 --- /dev/null +++ b/sig/increase/internal/transport/pooled_net_requester.rbs @@ -0,0 +1,41 @@ +module Increase + module Internal + module Transport + class PooledNetRequester + type request = + { + method: Symbol, + url: URI::Generic, + headers: ::Hash[String, String], + body: top, + deadline: Float + } + + KEEP_ALIVE_TIMEOUT: 30 + + def self.connect: (URI::Generic url) -> top + + def self.calibrate_socket_timeout: (top conn, Float deadline) -> void + + def self.build_request: ( + Increase::Internal::Transport::PooledNetRequester::request request + ) { + (String arg0) -> void + } -> top + + private def with_pool: ( + URI::Generic url, + deadline: Float + ) { + (top arg0) -> void + } -> void + + def execute: ( + Increase::Internal::Transport::PooledNetRequester::request request + ) -> [Integer, top, Enumerable[String]] + + def initialize: (?size: Integer) -> void + end + end + end +end diff --git a/sig/increase/internal/type/array_of.rbs b/sig/increase/internal/type/array_of.rbs new file mode 100644 index 00000000..720a8eaa --- /dev/null +++ b/sig/increase/internal/type/array_of.rbs @@ -0,0 +1,38 @@ +module Increase + module Internal + module Type + class ArrayOf[Elem] + include Increase::Internal::Type::Converter + + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: ( + Enumerable[Elem] | top value, + state: Increase::Internal::Type::Converter::state + ) -> (::Array[top] | top) + + def dump: (Enumerable[Elem] | top value) -> (::Array[top] | top) + + def item_type: -> Elem + + def nilable?: -> bool + + def initialize: ( + ::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + end + end + end +end diff --git a/sig/increase/internal/type/base_model.rbs b/sig/increase/internal/type/base_model.rbs new file mode 100644 index 00000000..9530c797 --- /dev/null +++ b/sig/increase/internal/type/base_model.rbs @@ -0,0 +1,79 @@ +module Increase + module Internal + module Type + class BaseModel + extend Increase::Internal::Type::Converter + + type known_field = + { mode: (:coerce | :dump)?, required: bool, nilable: bool } + + def self.known_fields: -> ::Hash[Symbol, (Increase::Internal::Type::BaseModel::known_field + & { type_fn: (^-> Increase::Internal::Type::Converter::input) })] + + def self.fields: -> ::Hash[Symbol, (Increase::Internal::Type::BaseModel::known_field + & { type: Increase::Internal::Type::Converter::input })] + + private def self.add_field: ( + Symbol name_sym, + required: bool, + type_info: { + const: (nil | bool | Integer | Float | Symbol)?, + enum: ^-> Increase::Internal::Type::Converter::input?, + union: ^-> Increase::Internal::Type::Converter::input?, + api_name: Symbol + } + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input, + spec: ::Hash[Symbol, top] + ) -> void + + def self.required: ( + Symbol name_sym, + ::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + + def self.optional: ( + Symbol name_sym, + ::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + + private def self.request_only: { -> void } -> void + + private def self.response_only: { -> void } -> void + + def self.==: (top other) -> bool + + def ==: (top other) -> bool + + def self.coerce: ( + Increase::Internal::Type::BaseModel | ::Hash[top, top] | top value, + state: Increase::Internal::Type::Converter::state + ) -> (instance | top) + + def self.dump: (instance | top value) -> (::Hash[top, top] | top) + + def []: (Symbol key) -> top? + + def to_h: -> ::Hash[Symbol, top] + + alias to_hash to_h + + def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top] + + def to_json: (*top a) -> String + + def to_yaml: (*top a) -> String + + def initialize: (?::Hash[Symbol, top] | self data) -> void + + def inspect: -> String + end + end + end +end diff --git a/sig/increase/internal/type/base_page.rbs b/sig/increase/internal/type/base_page.rbs new file mode 100644 index 00000000..962d8f5e --- /dev/null +++ b/sig/increase/internal/type/base_page.rbs @@ -0,0 +1,24 @@ +module Increase + module Internal + module Type + module BasePage[Elem] + def next_page?: -> bool + + def next_page: -> self + + def auto_paging_each: { (Elem arg0) -> void } -> void + + def to_enum: -> Enumerable[Elem] + + alias enum_for to_enum + + def initialize: ( + client: Increase::Internal::Transport::BaseClient, + req: Increase::Internal::Transport::BaseClient::request_components, + headers: ::Hash[String, String], + page_data: top + ) -> void + end + end + end +end diff --git a/sig/increase/internal/type/boolean_model.rbs b/sig/increase/internal/type/boolean_model.rbs new file mode 100644 index 00000000..9e7b07c6 --- /dev/null +++ b/sig/increase/internal/type/boolean_model.rbs @@ -0,0 +1,20 @@ +module Increase + module Internal + module Type + class BooleanModel + extend Increase::Internal::Type::Converter + + def self.===: (top other) -> bool + + def self.==: (top other) -> bool + + def self.coerce: ( + bool | top value, + state: Increase::Internal::Type::Converter::state + ) -> (bool | top) + + def self.dump: (bool | top value) -> (bool | top) + end + end + end +end diff --git a/sig/increase/internal/type/converter.rbs b/sig/increase/internal/type/converter.rbs new file mode 100644 index 00000000..21cf6bbf --- /dev/null +++ b/sig/increase/internal/type/converter.rbs @@ -0,0 +1,44 @@ +module Increase + module Internal + module Type + module Converter + type input = Increase::Internal::Type::Converter | Class + + type state = + { + strictness: bool | :strong, + exactness: { yes: Integer, no: Integer, maybe: Integer }, + branched: Integer + } + + def coerce: ( + top value, + state: Increase::Internal::Type::Converter::state + ) -> top + + def dump: (top value) -> top + + def self.type_info: ( + { + const: (nil | bool | Integer | Float | Symbol)?, + enum: ^-> Increase::Internal::Type::Converter::input?, + union: ^-> Increase::Internal::Type::Converter::input? + } + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input spec + ) -> (^-> top) + + def self.coerce: ( + Increase::Internal::Type::Converter::input target, + top value, + ?state: Increase::Internal::Type::Converter::state + ) -> top + + def self.dump: ( + Increase::Internal::Type::Converter::input target, + top value + ) -> top + end + end + end +end diff --git a/sig/increase/internal/type/enum.rbs b/sig/increase/internal/type/enum.rbs new file mode 100644 index 00000000..bf69e6cb --- /dev/null +++ b/sig/increase/internal/type/enum.rbs @@ -0,0 +1,24 @@ +module Increase + module Internal + module Type + module Enum + include Increase::Internal::Type::Converter + + def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] + + private def self.finalize!: -> void + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: ( + String | Symbol | top value, + state: Increase::Internal::Type::Converter::state + ) -> (Symbol | top) + + def dump: (Symbol | top value) -> (Symbol | top) + end + end + end +end diff --git a/sig/increase/internal/type/hash_of.rbs b/sig/increase/internal/type/hash_of.rbs new file mode 100644 index 00000000..0f8f210a --- /dev/null +++ b/sig/increase/internal/type/hash_of.rbs @@ -0,0 +1,38 @@ +module Increase + module Internal + module Type + class HashOf[Elem] + include Increase::Internal::Type::Converter + + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: ( + ::Hash[top, top] | top value, + state: Increase::Internal::Type::Converter::state + ) -> (::Hash[Symbol, top] | top) + + def dump: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top) + + def item_type: -> Elem + + def nilable?: -> bool + + def initialize: ( + ::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> void + end + end + end +end diff --git a/sig/increase/internal/type/request_parameters.rbs b/sig/increase/internal/type/request_parameters.rbs new file mode 100644 index 00000000..32fcce21 --- /dev/null +++ b/sig/increase/internal/type/request_parameters.rbs @@ -0,0 +1,15 @@ +module Increase + module Internal + module Type + type request_parameters = { request_options: Increase::request_opts } + + module RequestParameters + attr_accessor request_options: Increase::request_opts + + module Converter + def dump_request: (top params) -> [top, ::Hash[Symbol, top]] + end + end + end + end +end diff --git a/sig/increase/internal/type/union.rbs b/sig/increase/internal/type/union.rbs new file mode 100644 index 00000000..ea334838 --- /dev/null +++ b/sig/increase/internal/type/union.rbs @@ -0,0 +1,42 @@ +module Increase + module Internal + module Type + module Union + include Increase::Internal::Type::Converter + + private def self.known_variants: -> ::Array[[Symbol?, (^-> Increase::Internal::Type::Converter::input)]] + + def self.derefed_variants: -> ::Array[[Symbol?, top]] + + def self.variants: -> ::Array[top] + + private def self.discriminator: (Symbol property) -> void + + private def self.variant: ( + Symbol + | ::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input key, + ?::Hash[Symbol, top] + | ^-> Increase::Internal::Type::Converter::input + | Increase::Internal::Type::Converter::input spec + ) -> void + + private def self.resolve_variant: ( + top value + ) -> Increase::Internal::Type::Converter::input? + + def ===: (top other) -> bool + + def ==: (top other) -> bool + + def coerce: ( + top value, + state: Increase::Internal::Type::Converter::state + ) -> top + + def dump: (top value) -> top + end + end + end +end diff --git a/sig/increase/internal/type/unknown.rbs b/sig/increase/internal/type/unknown.rbs new file mode 100644 index 00000000..42225edc --- /dev/null +++ b/sig/increase/internal/type/unknown.rbs @@ -0,0 +1,20 @@ +module Increase + module Internal + module Type + class Unknown + extend Increase::Internal::Type::Converter + + def self.===: (top other) -> bool + + def self.==: (top other) -> bool + + def self.coerce: ( + top value, + state: Increase::Internal::Type::Converter::state + ) -> top + + def self.dump: (top value) -> top + end + end + end +end diff --git a/sig/increase/internal/util.rbs b/sig/increase/internal/util.rbs new file mode 100644 index 00000000..af854121 --- /dev/null +++ b/sig/increase/internal/util.rbs @@ -0,0 +1,139 @@ +module Increase + module Internal + module Util + def self?.monotonic_secs: -> Float + + def self?.arch: -> String + + def self?.os: -> String + + def self?.primitive?: (top input) -> bool + + def self?.coerce_boolean: (top input) -> (bool | top) + + def self?.coerce_boolean!: (top input) -> bool? + + def self?.coerce_integer: (top input) -> (Integer | top) + + def self?.coerce_float: (top input) -> (Float | top) + + def self?.coerce_hash: (top input) -> (::Hash[top, top] | top) + + def self?.deep_merge_lr: (top lhs, top rhs, ?concat: bool) -> top + + def self?.deep_merge: ( + *::Array[top] values, + ?sentinel: top?, + ?concat: bool + ) -> top + + def self?.dig: ( + ::Hash[Symbol, top] | ::Array[top] | top data, + (Symbol | Integer | ::Array[(Symbol | Integer)])? pick, + ?top? sentinel + ) { + -> top? + } -> top? + + def self?.uri_origin: (URI::Generic uri) -> String + + def self?.interpolate_path: (String | ::Array[String] path) -> String + + def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]] + + def self?.encode_query: ( + ::Hash[String, (::Array[String] | String)?]? query + ) -> String? + + type parsed_uri = + { + scheme: String?, + host: String?, + port: Integer?, + path: String?, + query: ::Hash[String, ::Array[String]] + } + + def self?.parse_uri: ( + URI::Generic | String url + ) -> Increase::Internal::Util::parsed_uri + + def self?.unparse_uri: ( + Increase::Internal::Util::parsed_uri parsed + ) -> URI::Generic + + def self?.join_parsed_uri: ( + Increase::Internal::Util::parsed_uri lhs, + Increase::Internal::Util::parsed_uri rhs + ) -> URI::Generic + + def self?.normalized_headers: ( + *::Hash[String, (String + | Integer + | ::Array[(String | Integer)?])?] headers + ) -> ::Hash[String, String] + + class ReadIOAdapter + private def read_enum: (Integer? max_len) -> String + + def read: (?Integer? max_len, ?String? out_string) -> String? + + def initialize: ( + String | IO | StringIO | Enumerable[String] stream + ) { + (String arg0) -> void + } -> void + end + + def self?.writable_enum: { + (Enumerator::Yielder y) -> void + } -> Enumerable[String] + + def self?.write_multipart_chunk: ( + Enumerator::Yielder y, + boundary: String, + key: Symbol | String, + val: top + ) -> void + + def self?.encode_multipart_streaming: ( + top body + ) -> [String, Enumerable[String]] + + def self?.encode_content: ( + ::Hash[String, String] headers, + top body + ) -> top + + def self?.decode_content: ( + ::Hash[String, String] headers, + stream: Enumerable[String], + ?suppress_error: bool + ) -> top + + def self?.fused_enum: ( + Enumerable[top] enum, + ?external: bool + ) { + -> void + } -> Enumerable[top] + + def self?.close_fused!: (Enumerable[top]? enum) -> void + + def self?.chain_fused: ( + Enumerable[top]? enum + ) { + (Enumerator::Yielder arg0) -> void + } -> Enumerable[top] + + type server_sent_event = + { event: String?, data: String?, id: String?, retry: Integer? } + + def self?.decode_lines: (Enumerable[String] enum) -> Enumerable[String] + + def self?.decode_sse: ( + Enumerable[String] lines + ) -> Increase::Internal::Util::server_sent_event + end + end +end diff --git a/sig/increase/models/account.rbs b/sig/increase/models/account.rbs index ae6f6f1b..ae553837 100644 --- a/sig/increase/models/account.rbs +++ b/sig/increase/models/account.rbs @@ -19,7 +19,7 @@ module Increase type: Increase::Models::Account::type_ } - class Account < Increase::BaseModel + class Account < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor bank: Increase::Models::Account::bank @@ -73,7 +73,7 @@ module Increase type bank = :core_bank | :first_internet_bank | :grasshopper_bank module Bank - extend Increase::Enum + extend Increase::Internal::Type::Enum # Core Bank CORE_BANK: :core_bank @@ -90,7 +90,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -116,7 +116,7 @@ module Increase type status = :closed | :open module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Closed Accounts on which no new activity can occur. CLOSED: :closed @@ -130,7 +130,7 @@ module Increase type type_ = :account module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT: :account diff --git a/sig/increase/models/account_balance_params.rbs b/sig/increase/models/account_balance_params.rbs index 24475d67..df2ed589 100644 --- a/sig/increase/models/account_balance_params.rbs +++ b/sig/increase/models/account_balance_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type account_balance_params = - { at_time: Time } & Increase::request_parameters + { at_time: Time } & Increase::Internal::Type::request_parameters - class AccountBalanceParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountBalanceParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader at_time: Time? diff --git a/sig/increase/models/account_close_params.rbs b/sig/increase/models/account_close_params.rbs index 327cf480..e9241d3a 100644 --- a/sig/increase/models/account_close_params.rbs +++ b/sig/increase/models/account_close_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_close_params = { } & Increase::request_parameters + type account_close_params = + { } & Increase::Internal::Type::request_parameters - class AccountCloseParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountCloseParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/account_create_params.rbs b/sig/increase/models/account_create_params.rbs index 84940cb8..b4f3e531 100644 --- a/sig/increase/models/account_create_params.rbs +++ b/sig/increase/models/account_create_params.rbs @@ -7,11 +7,11 @@ module Increase informational_entity_id: String, program_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor name: String diff --git a/sig/increase/models/account_list_params.rbs b/sig/increase/models/account_list_params.rbs index cf367a0a..65ba8ef9 100644 --- a/sig/increase/models/account_list_params.rbs +++ b/sig/increase/models/account_list_params.rbs @@ -11,11 +11,11 @@ module Increase program_id: String, status: Increase::Models::AccountListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::AccountListParams::CreatedAt? @@ -70,7 +70,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -100,7 +100,7 @@ module Increase type status = { in_: ::Array[Increase::Models::AccountListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::AccountListParams::Status::in_]? def in_=: ( @@ -116,7 +116,7 @@ module Increase type in_ = :closed | :open module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Closed Accounts on which no new activity can occur. CLOSED: :closed diff --git a/sig/increase/models/account_number.rbs b/sig/increase/models/account_number.rbs index 90553950..c46ed86d 100644 --- a/sig/increase/models/account_number.rbs +++ b/sig/increase/models/account_number.rbs @@ -15,7 +15,7 @@ module Increase type: Increase::Models::AccountNumber::type_ } - class AccountNumber < Increase::BaseModel + class AccountNumber < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -59,7 +59,7 @@ module Increase debit_status: Increase::Models::AccountNumber::InboundACH::debit_status } - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel attr_accessor debit_status: Increase::Models::AccountNumber::InboundACH::debit_status def initialize: ( @@ -71,7 +71,7 @@ module Increase type debit_status = :allowed | :blocked module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED: :allowed @@ -86,7 +86,7 @@ module Increase type inbound_checks = { status: Increase::Models::AccountNumber::InboundChecks::status } - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel attr_accessor status: Increase::Models::AccountNumber::InboundChecks::status def initialize: ( @@ -98,7 +98,7 @@ module Increase type status = :allowed | :check_transfers_only module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Checks with this Account Number will be processed even if they are not associated with a Check Transfer. ALLOWED: :allowed @@ -113,7 +113,7 @@ module Increase type status = :active | :disabled | :canceled module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is active. ACTIVE: :active @@ -130,7 +130,7 @@ module Increase type type_ = :account_number module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT_NUMBER: :account_number diff --git a/sig/increase/models/account_number_create_params.rbs b/sig/increase/models/account_number_create_params.rbs index 813ef420..1f4ed231 100644 --- a/sig/increase/models/account_number_create_params.rbs +++ b/sig/increase/models/account_number_create_params.rbs @@ -7,11 +7,11 @@ module Increase inbound_ach: Increase::Models::AccountNumberCreateParams::InboundACH, inbound_checks: Increase::Models::AccountNumberCreateParams::InboundChecks } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountNumberCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String @@ -44,7 +44,7 @@ module Increase debit_status: Increase::Models::AccountNumberCreateParams::InboundACH::debit_status } - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel attr_accessor debit_status: Increase::Models::AccountNumberCreateParams::InboundACH::debit_status def initialize: ( @@ -56,7 +56,7 @@ module Increase type debit_status = :allowed | :blocked module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED: :allowed @@ -73,7 +73,7 @@ module Increase status: Increase::Models::AccountNumberCreateParams::InboundChecks::status } - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel attr_accessor status: Increase::Models::AccountNumberCreateParams::InboundChecks::status def initialize: ( @@ -85,7 +85,7 @@ module Increase type status = :allowed | :check_transfers_only module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Checks with this Account Number will be processed even if they are not associated with a Check Transfer. ALLOWED: :allowed diff --git a/sig/increase/models/account_number_list_params.rbs b/sig/increase/models/account_number_list_params.rbs index 62e4ce61..03a58441 100644 --- a/sig/increase/models/account_number_list_params.rbs +++ b/sig/increase/models/account_number_list_params.rbs @@ -10,11 +10,11 @@ module Increase limit: Integer, status: Increase::Models::AccountNumberListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountNumberListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -68,7 +68,7 @@ module Increase in_: ::Array[Increase::Models::AccountNumberListParams::ACHDebitStatus::in_] } - class ACHDebitStatus < Increase::BaseModel + class ACHDebitStatus < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::AccountNumberListParams::ACHDebitStatus::in_]? def in_=: ( @@ -84,7 +84,7 @@ module Increase type in_ = :allowed | :blocked module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED: :allowed @@ -99,7 +99,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -129,7 +129,7 @@ module Increase type status = { in_: ::Array[Increase::Models::AccountNumberListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::AccountNumberListParams::Status::in_]? def in_=: ( @@ -145,7 +145,7 @@ module Increase type in_ = :active | :disabled | :canceled module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is active. ACTIVE: :active diff --git a/sig/increase/models/account_number_retrieve_params.rbs b/sig/increase/models/account_number_retrieve_params.rbs index 175112aa..1e4c699b 100644 --- a/sig/increase/models/account_number_retrieve_params.rbs +++ b/sig/increase/models/account_number_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_number_retrieve_params = { } & Increase::request_parameters + type account_number_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class AccountNumberRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/account_number_update_params.rbs b/sig/increase/models/account_number_update_params.rbs index c505e346..ef59a1d6 100644 --- a/sig/increase/models/account_number_update_params.rbs +++ b/sig/increase/models/account_number_update_params.rbs @@ -7,11 +7,11 @@ module Increase name: String, status: Increase::Models::AccountNumberUpdateParams::status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountNumberUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountNumberUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader inbound_ach: Increase::Models::AccountNumberUpdateParams::InboundACH? @@ -50,7 +50,7 @@ module Increase debit_status: Increase::Models::AccountNumberUpdateParams::InboundACH::debit_status } - class InboundACH < Increase::BaseModel + class InboundACH < Increase::Internal::Type::BaseModel attr_reader debit_status: Increase::Models::AccountNumberUpdateParams::InboundACH::debit_status? def debit_status=: ( @@ -66,7 +66,7 @@ module Increase type debit_status = :allowed | :blocked module DebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Debits are allowed. ALLOWED: :allowed @@ -83,7 +83,7 @@ module Increase status: Increase::Models::AccountNumberUpdateParams::InboundChecks::status } - class InboundChecks < Increase::BaseModel + class InboundChecks < Increase::Internal::Type::BaseModel attr_accessor status: Increase::Models::AccountNumberUpdateParams::InboundChecks::status def initialize: ( @@ -95,7 +95,7 @@ module Increase type status = :allowed | :check_transfers_only module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Checks with this Account Number will be processed even if they are not associated with a Check Transfer. ALLOWED: :allowed @@ -110,7 +110,7 @@ module Increase type status = :active | :disabled | :canceled module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is active. ACTIVE: :active diff --git a/sig/increase/models/account_retrieve_params.rbs b/sig/increase/models/account_retrieve_params.rbs index ae6cd488..f7b283fc 100644 --- a/sig/increase/models/account_retrieve_params.rbs +++ b/sig/increase/models/account_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_retrieve_params = { } & Increase::request_parameters + type account_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class AccountRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/account_statement.rbs b/sig/increase/models/account_statement.rbs index e74e05ab..68dd20b5 100644 --- a/sig/increase/models/account_statement.rbs +++ b/sig/increase/models/account_statement.rbs @@ -13,7 +13,7 @@ module Increase type: Increase::Models::AccountStatement::type_ } - class AccountStatement < Increase::BaseModel + class AccountStatement < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -49,7 +49,7 @@ module Increase type type_ = :account_statement module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT_STATEMENT: :account_statement diff --git a/sig/increase/models/account_statement_list_params.rbs b/sig/increase/models/account_statement_list_params.rbs index 96dbfa13..6434616b 100644 --- a/sig/increase/models/account_statement_list_params.rbs +++ b/sig/increase/models/account_statement_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, statement_period_start: Increase::Models::AccountStatementListParams::StatementPeriodStart } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountStatementListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountStatementListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -44,7 +44,7 @@ module Increase type statement_period_start = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class StatementPeriodStart < Increase::BaseModel + class StatementPeriodStart < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/account_statement_retrieve_params.rbs b/sig/increase/models/account_statement_retrieve_params.rbs index 1b3e4f6a..b56b6209 100644 --- a/sig/increase/models/account_statement_retrieve_params.rbs +++ b/sig/increase/models/account_statement_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_statement_retrieve_params = { } & Increase::request_parameters + type account_statement_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class AccountStatementRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountStatementRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/account_transfer.rbs b/sig/increase/models/account_transfer.rbs index 4c56a522..9965298f 100644 --- a/sig/increase/models/account_transfer.rbs +++ b/sig/increase/models/account_transfer.rbs @@ -21,7 +21,7 @@ module Increase type: Increase::Models::AccountTransfer::type_ } - class AccountTransfer < Increase::BaseModel + class AccountTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -80,7 +80,7 @@ module Increase type approval = { approved_at: Time, approved_by: String? } - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel attr_accessor approved_at: Time attr_accessor approved_by: String? @@ -92,7 +92,7 @@ module Increase type cancellation = { canceled_at: Time, canceled_by: String? } - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel attr_accessor canceled_at: Time attr_accessor canceled_by: String? @@ -110,7 +110,7 @@ module Increase user: Increase::Models::AccountTransfer::CreatedBy::User? } - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel attr_accessor api_key: Increase::Models::AccountTransfer::CreatedBy::APIKey? attr_accessor category: Increase::Models::AccountTransfer::CreatedBy::category @@ -130,7 +130,7 @@ module Increase type api_key = { description: String? } - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel attr_accessor description: String? def initialize: (description: String?) -> void @@ -141,7 +141,7 @@ module Increase type category = :api_key | :oauth_application | :user module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY: :api_key @@ -157,7 +157,7 @@ module Increase type oauth_application = { name: String } - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel attr_accessor name: String def initialize: (name: String) -> void @@ -167,7 +167,7 @@ module Increase type user = { email: String } - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel attr_accessor email: String def initialize: (email: String) -> void @@ -179,7 +179,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -205,7 +205,7 @@ module Increase type network = :account module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT: :account @@ -215,7 +215,7 @@ module Increase type status = :pending_approval | :canceled | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL: :pending_approval @@ -232,7 +232,7 @@ module Increase type type_ = :account_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACCOUNT_TRANSFER: :account_transfer diff --git a/sig/increase/models/account_transfer_approve_params.rbs b/sig/increase/models/account_transfer_approve_params.rbs index 2e59360f..54beb8cf 100644 --- a/sig/increase/models/account_transfer_approve_params.rbs +++ b/sig/increase/models/account_transfer_approve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_transfer_approve_params = { } & Increase::request_parameters + type account_transfer_approve_params = + { } & Increase::Internal::Type::request_parameters - class AccountTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/account_transfer_cancel_params.rbs b/sig/increase/models/account_transfer_cancel_params.rbs index a3f17810..ceff5501 100644 --- a/sig/increase/models/account_transfer_cancel_params.rbs +++ b/sig/increase/models/account_transfer_cancel_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_transfer_cancel_params = { } & Increase::request_parameters + type account_transfer_cancel_params = + { } & Increase::Internal::Type::request_parameters - class AccountTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/account_transfer_create_params.rbs b/sig/increase/models/account_transfer_create_params.rbs index d88e29f0..84acbd80 100644 --- a/sig/increase/models/account_transfer_create_params.rbs +++ b/sig/increase/models/account_transfer_create_params.rbs @@ -8,11 +8,11 @@ module Increase destination_account_id: String, require_approval: bool } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/account_transfer_list_params.rbs b/sig/increase/models/account_transfer_list_params.rbs index a3f2f29b..070e0144 100644 --- a/sig/increase/models/account_transfer_list_params.rbs +++ b/sig/increase/models/account_transfer_list_params.rbs @@ -8,11 +8,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class AccountTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -50,7 +50,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/account_transfer_retrieve_params.rbs b/sig/increase/models/account_transfer_retrieve_params.rbs index 5b8fa43b..7fbe4763 100644 --- a/sig/increase/models/account_transfer_retrieve_params.rbs +++ b/sig/increase/models/account_transfer_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_transfer_retrieve_params = { } & Increase::request_parameters + type account_transfer_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class AccountTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/account_update_params.rbs b/sig/increase/models/account_update_params.rbs index b5267c7e..0a20db3a 100644 --- a/sig/increase/models/account_update_params.rbs +++ b/sig/increase/models/account_update_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type account_update_params = { name: String } & Increase::request_parameters + type account_update_params = + { name: String } & Increase::Internal::Type::request_parameters - class AccountUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader name: String? diff --git a/sig/increase/models/ach_prenotification.rbs b/sig/increase/models/ach_prenotification.rbs index 249bba40..64f13983 100644 --- a/sig/increase/models/ach_prenotification.rbs +++ b/sig/increase/models/ach_prenotification.rbs @@ -20,7 +20,7 @@ module Increase type: Increase::Models::ACHPrenotification::type_ } - class ACHPrenotification < Increase::BaseModel + class ACHPrenotification < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_number: String @@ -77,7 +77,7 @@ module Increase type credit_debit_indicator = :credit | :debit module CreditDebitIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Prenotification is for an anticipated credit. CREDIT: :credit @@ -95,7 +95,7 @@ module Increase created_at: Time } - class NotificationsOfChange < Increase::BaseModel + class NotificationsOfChange < Increase::Internal::Type::BaseModel attr_accessor change_code: Increase::Models::ACHPrenotification::NotificationsOfChange::change_code attr_accessor corrected_data: String @@ -132,7 +132,7 @@ module Increase | :incorrect_transaction_code_by_originating_depository_financial_institution module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number was incorrect. INCORRECT_ACCOUNT_NUMBER: :incorrect_account_number @@ -201,7 +201,7 @@ module Increase return_reason_code: Increase::Models::ACHPrenotification::PrenotificationReturn::return_reason_code } - class PrenotificationReturn < Increase::BaseModel + class PrenotificationReturn < Increase::Internal::Type::BaseModel attr_accessor created_at: Time attr_accessor return_reason_code: Increase::Models::ACHPrenotification::PrenotificationReturn::return_reason_code @@ -286,7 +286,7 @@ module Increase | :untimely_return module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND: :insufficient_fund @@ -506,7 +506,7 @@ module Increase :pending_submitting | :requires_attention | :returned | :submitted module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Prenotification is pending submission. PENDING_SUBMITTING: :pending_submitting @@ -526,7 +526,7 @@ module Increase type type_ = :ach_prenotification module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH_PRENOTIFICATION: :ach_prenotification diff --git a/sig/increase/models/ach_prenotification_create_params.rbs b/sig/increase/models/ach_prenotification_create_params.rbs index bef528e3..ef9ce76c 100644 --- a/sig/increase/models/ach_prenotification_create_params.rbs +++ b/sig/increase/models/ach_prenotification_create_params.rbs @@ -16,11 +16,11 @@ module Increase individual_name: String, standard_entry_class_code: Increase::Models::ACHPrenotificationCreateParams::standard_entry_class_code } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ACHPrenotificationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHPrenotificationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String @@ -94,7 +94,7 @@ module Increase type credit_debit_indicator = :credit | :debit module CreditDebitIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Prenotification is for an anticipated credit. CREDIT: :credit @@ -112,7 +112,7 @@ module Increase | :internet_initiated module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT: :corporate_credit_or_debit diff --git a/sig/increase/models/ach_prenotification_list_params.rbs b/sig/increase/models/ach_prenotification_list_params.rbs index d43d1c0e..b5a4e3c5 100644 --- a/sig/increase/models/ach_prenotification_list_params.rbs +++ b/sig/increase/models/ach_prenotification_list_params.rbs @@ -7,11 +7,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ACHPrenotificationListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHPrenotificationListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::ACHPrenotificationListParams::CreatedAt? @@ -44,7 +44,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/ach_prenotification_retrieve_params.rbs b/sig/increase/models/ach_prenotification_retrieve_params.rbs index c68e4203..984568f6 100644 --- a/sig/increase/models/ach_prenotification_retrieve_params.rbs +++ b/sig/increase/models/ach_prenotification_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type ach_prenotification_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class ACHPrenotificationRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHPrenotificationRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/ach_transfer.rbs b/sig/increase/models/ach_transfer.rbs index 7a1045de..a55998b5 100644 --- a/sig/increase/models/ach_transfer.rbs +++ b/sig/increase/models/ach_transfer.rbs @@ -39,7 +39,7 @@ module Increase type: Increase::Models::ACHTransfer::type_ } - class ACHTransfer < Increase::BaseModel + class ACHTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -152,7 +152,7 @@ module Increase type acknowledgement = { acknowledged_at: String } - class Acknowledgement < Increase::BaseModel + class Acknowledgement < Increase::Internal::Type::BaseModel attr_accessor acknowledged_at: String def initialize: (acknowledged_at: String) -> void @@ -167,7 +167,7 @@ module Increase payment_order_remittance_advice: Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice? } - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::ACHTransfer::Addenda::category attr_accessor freeform: Increase::Models::ACHTransfer::Addenda::Freeform? @@ -185,7 +185,7 @@ module Increase type category = :freeform | :payment_order_remittance_advice | :other module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured `payment_related_information` passed through with the transfer. FREEFORM: :freeform @@ -204,7 +204,7 @@ module Increase entries: ::Array[Increase::Models::ACHTransfer::Addenda::Freeform::Entry] } - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel attr_accessor entries: ::Array[Increase::Models::ACHTransfer::Addenda::Freeform::Entry] def initialize: ( @@ -215,7 +215,7 @@ module Increase type entry = { payment_related_information: String } - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel attr_accessor payment_related_information: String def initialize: (payment_related_information: String) -> void @@ -229,7 +229,7 @@ module Increase invoices: ::Array[Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice] } - class PaymentOrderRemittanceAdvice < Increase::BaseModel + class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel attr_accessor invoices: ::Array[Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice] def initialize: ( @@ -240,7 +240,7 @@ module Increase type invoice = { invoice_number: String, paid_amount: Integer } - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel attr_accessor invoice_number: String attr_accessor paid_amount: Integer @@ -257,7 +257,7 @@ module Increase type approval = { approved_at: Time, approved_by: String? } - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel attr_accessor approved_at: Time attr_accessor approved_by: String? @@ -269,7 +269,7 @@ module Increase type cancellation = { canceled_at: Time, canceled_by: String? } - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel attr_accessor canceled_at: Time attr_accessor canceled_by: String? @@ -287,7 +287,7 @@ module Increase user: Increase::Models::ACHTransfer::CreatedBy::User? } - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel attr_accessor api_key: Increase::Models::ACHTransfer::CreatedBy::APIKey? attr_accessor category: Increase::Models::ACHTransfer::CreatedBy::category @@ -307,7 +307,7 @@ module Increase type api_key = { description: String? } - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel attr_accessor description: String? def initialize: (description: String?) -> void @@ -318,7 +318,7 @@ module Increase type category = :api_key | :oauth_application | :user module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY: :api_key @@ -334,7 +334,7 @@ module Increase type oauth_application = { name: String } - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel attr_accessor name: String def initialize: (name: String) -> void @@ -344,7 +344,7 @@ module Increase type user = { email: String } - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel attr_accessor email: String def initialize: (email: String) -> void @@ -356,7 +356,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -382,7 +382,7 @@ module Increase type destination_account_holder = :business | :individual | :unknown module DestinationAccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS: :business @@ -399,7 +399,7 @@ module Increase type funding = :checking | :savings module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING: :checking @@ -424,7 +424,7 @@ module Increase type: Increase::Models::ACHTransfer::InboundFundsHold::type_ } - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -463,7 +463,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -489,7 +489,7 @@ module Increase type status = :held | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD: :held @@ -503,7 +503,7 @@ module Increase type type_ = :inbound_funds_hold module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD: :inbound_funds_hold @@ -514,7 +514,7 @@ module Increase type network = :ach module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH: :ach @@ -528,7 +528,7 @@ module Increase created_at: Time } - class NotificationsOfChange < Increase::BaseModel + class NotificationsOfChange < Increase::Internal::Type::BaseModel attr_accessor change_code: Increase::Models::ACHTransfer::NotificationsOfChange::change_code attr_accessor corrected_data: String @@ -565,7 +565,7 @@ module Increase | :incorrect_transaction_code_by_originating_depository_financial_institution module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number was incorrect. INCORRECT_ACCOUNT_NUMBER: :incorrect_account_number @@ -634,7 +634,7 @@ module Increase settlement_schedule: Increase::Models::ACHTransfer::PreferredEffectiveDate::settlement_schedule? } - class PreferredEffectiveDate < Increase::BaseModel + class PreferredEffectiveDate < Increase::Internal::Type::BaseModel attr_accessor date: Date? attr_accessor settlement_schedule: Increase::Models::ACHTransfer::PreferredEffectiveDate::settlement_schedule? @@ -649,7 +649,7 @@ module Increase type settlement_schedule = :same_day | :future_dated module SettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The chosen effective date will be the same as the ACH processing date on which the transfer is submitted. # This is necessary, but not sufficient for the transfer to be settled same-day: @@ -674,7 +674,7 @@ module Increase transfer_id: String } - class Return < Increase::BaseModel + class Return < Increase::Internal::Type::BaseModel attr_accessor created_at: Time attr_accessor raw_return_reason_code: String @@ -771,7 +771,7 @@ module Increase | :untimely_return module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND: :insufficient_fund @@ -989,7 +989,7 @@ module Increase type settlement = { settled_at: Time } - class Settlement < Increase::BaseModel + class Settlement < Increase::Internal::Type::BaseModel attr_accessor settled_at: Time def initialize: (settled_at: Time) -> void @@ -1004,7 +1004,7 @@ module Increase | :internet_initiated module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT: :corporate_credit_or_debit @@ -1033,7 +1033,7 @@ module Increase | :returned module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL: :pending_approval @@ -1074,7 +1074,7 @@ module Increase trace_number: String } - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel attr_accessor effective_date: Date attr_accessor expected_funds_settlement_at: Time @@ -1098,7 +1098,7 @@ module Increase type expected_settlement_schedule = :same_day | :future_dated module ExpectedSettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is expected to settle same-day. SAME_DAY: :same_day @@ -1113,7 +1113,7 @@ module Increase type type_ = :ach_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH_TRANSFER: :ach_transfer diff --git a/sig/increase/models/ach_transfer_approve_params.rbs b/sig/increase/models/ach_transfer_approve_params.rbs index 429b96d4..02154607 100644 --- a/sig/increase/models/ach_transfer_approve_params.rbs +++ b/sig/increase/models/ach_transfer_approve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type ach_transfer_approve_params = { } & Increase::request_parameters + type ach_transfer_approve_params = + { } & Increase::Internal::Type::request_parameters - class ACHTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/ach_transfer_cancel_params.rbs b/sig/increase/models/ach_transfer_cancel_params.rbs index bac5d47b..8d5e1d4a 100644 --- a/sig/increase/models/ach_transfer_cancel_params.rbs +++ b/sig/increase/models/ach_transfer_cancel_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type ach_transfer_cancel_params = { } & Increase::request_parameters + type ach_transfer_cancel_params = + { } & Increase::Internal::Type::request_parameters - class ACHTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/ach_transfer_create_params.rbs b/sig/increase/models/ach_transfer_create_params.rbs index fdd0eacb..53743795 100644 --- a/sig/increase/models/ach_transfer_create_params.rbs +++ b/sig/increase/models/ach_transfer_create_params.rbs @@ -22,11 +22,11 @@ module Increase standard_entry_class_code: Increase::Models::ACHTransferCreateParams::standard_entry_class_code, transaction_timing: Increase::Models::ACHTransferCreateParams::transaction_timing } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ACHTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String @@ -142,7 +142,7 @@ module Increase payment_order_remittance_advice: Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice } - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::ACHTransferCreateParams::Addenda::category attr_reader freeform: Increase::Models::ACHTransferCreateParams::Addenda::Freeform? @@ -168,7 +168,7 @@ module Increase type category = :freeform | :payment_order_remittance_advice module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured `payment_related_information` passed through with the transfer. FREEFORM: :freeform @@ -184,7 +184,7 @@ module Increase entries: ::Array[Increase::Models::ACHTransferCreateParams::Addenda::Freeform::Entry] } - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel attr_accessor entries: ::Array[Increase::Models::ACHTransferCreateParams::Addenda::Freeform::Entry] def initialize: ( @@ -195,7 +195,7 @@ module Increase type entry = { payment_related_information: String } - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel attr_accessor payment_related_information: String def initialize: (payment_related_information: String) -> void @@ -209,7 +209,7 @@ module Increase invoices: ::Array[Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice] } - class PaymentOrderRemittanceAdvice < Increase::BaseModel + class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel attr_accessor invoices: ::Array[Increase::Models::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice] def initialize: ( @@ -220,7 +220,7 @@ module Increase type invoice = { invoice_number: String, paid_amount: Integer } - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel attr_accessor invoice_number: String attr_accessor paid_amount: Integer @@ -238,7 +238,7 @@ module Increase type destination_account_holder = :business | :individual | :unknown module DestinationAccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS: :business @@ -255,7 +255,7 @@ module Increase type funding = :checking | :savings module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING: :checking @@ -272,7 +272,7 @@ module Increase settlement_schedule: Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate::settlement_schedule } - class PreferredEffectiveDate < Increase::BaseModel + class PreferredEffectiveDate < Increase::Internal::Type::BaseModel attr_reader date: Date? def date=: (Date) -> Date @@ -293,7 +293,7 @@ module Increase type settlement_schedule = :same_day | :future_dated module SettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The chosen effective date will be the same as the ACH processing date on which the transfer is submitted. This is necessary, but not sufficient for the transfer to be settled same-day: it must also be submitted before the last same-day cutoff and be less than or equal to $1,000.000.00. SAME_DAY: :same_day @@ -312,7 +312,7 @@ module Increase | :internet_initiated module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT: :corporate_credit_or_debit @@ -332,7 +332,7 @@ module Increase type transaction_timing = :synchronous | :asynchronous module TransactionTiming - extend Increase::Enum + extend Increase::Internal::Type::Enum # A Transaction will be created immediately. SYNCHRONOUS: :synchronous diff --git a/sig/increase/models/ach_transfer_list_params.rbs b/sig/increase/models/ach_transfer_list_params.rbs index 4c13c188..0b0e10cf 100644 --- a/sig/increase/models/ach_transfer_list_params.rbs +++ b/sig/increase/models/ach_transfer_list_params.rbs @@ -10,11 +10,11 @@ module Increase limit: Integer, status: Increase::Models::ACHTransferListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ACHTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -64,7 +64,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -94,7 +94,7 @@ module Increase type status = { in_: ::Array[Increase::Models::ACHTransferListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::ACHTransferListParams::Status::in_]? def in_=: ( @@ -119,7 +119,7 @@ module Increase | :returned module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL: :pending_approval diff --git a/sig/increase/models/ach_transfer_retrieve_params.rbs b/sig/increase/models/ach_transfer_retrieve_params.rbs index 62e668eb..99ba3d60 100644 --- a/sig/increase/models/ach_transfer_retrieve_params.rbs +++ b/sig/increase/models/ach_transfer_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type ach_transfer_retrieve_params = { } & Increase::request_parameters + type ach_transfer_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class ACHTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/balance_lookup.rbs b/sig/increase/models/balance_lookup.rbs index 73bff3bf..bb38be8f 100644 --- a/sig/increase/models/balance_lookup.rbs +++ b/sig/increase/models/balance_lookup.rbs @@ -8,7 +8,7 @@ module Increase type: Increase::Models::BalanceLookup::type_ } - class BalanceLookup < Increase::BaseModel + class BalanceLookup < Increase::Internal::Type::BaseModel attr_accessor account_id: String attr_accessor available_balance: Integer @@ -29,7 +29,7 @@ module Increase type type_ = :balance_lookup module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BALANCE_LOOKUP: :balance_lookup diff --git a/sig/increase/models/bookkeeping_account.rbs b/sig/increase/models/bookkeeping_account.rbs index 657f3617..d68124e5 100644 --- a/sig/increase/models/bookkeeping_account.rbs +++ b/sig/increase/models/bookkeeping_account.rbs @@ -11,7 +11,7 @@ module Increase type: Increase::Models::BookkeepingAccount::type_ } - class BookkeepingAccount < Increase::BaseModel + class BookkeepingAccount < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String? @@ -41,7 +41,7 @@ module Increase type compliance_category = :commingled_cash | :customer_balance module ComplianceCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # A cash in an commingled Increase Account. COMMINGLED_CASH: :commingled_cash @@ -55,7 +55,7 @@ module Increase type type_ = :bookkeeping_account module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_ACCOUNT: :bookkeeping_account diff --git a/sig/increase/models/bookkeeping_account_balance_params.rbs b/sig/increase/models/bookkeeping_account_balance_params.rbs index 6a6d4a41..08042b65 100644 --- a/sig/increase/models/bookkeeping_account_balance_params.rbs +++ b/sig/increase/models/bookkeeping_account_balance_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type bookkeeping_account_balance_params = - { at_time: Time } & Increase::request_parameters + { at_time: Time } & Increase::Internal::Type::request_parameters - class BookkeepingAccountBalanceParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountBalanceParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader at_time: Time? diff --git a/sig/increase/models/bookkeeping_account_create_params.rbs b/sig/increase/models/bookkeeping_account_create_params.rbs index 8d3207b9..cd5cb908 100644 --- a/sig/increase/models/bookkeeping_account_create_params.rbs +++ b/sig/increase/models/bookkeeping_account_create_params.rbs @@ -7,11 +7,11 @@ module Increase compliance_category: Increase::Models::BookkeepingAccountCreateParams::compliance_category, entity_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class BookkeepingAccountCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor name: String @@ -42,7 +42,7 @@ module Increase type compliance_category = :commingled_cash | :customer_balance module ComplianceCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # A cash in an commingled Increase Account. COMMINGLED_CASH: :commingled_cash diff --git a/sig/increase/models/bookkeeping_account_list_params.rbs b/sig/increase/models/bookkeeping_account_list_params.rbs index 8c56f675..c25fa114 100644 --- a/sig/increase/models/bookkeeping_account_list_params.rbs +++ b/sig/increase/models/bookkeeping_account_list_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type bookkeeping_account_list_params = { cursor: String, idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class BookkeepingAccountListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? diff --git a/sig/increase/models/bookkeeping_account_update_params.rbs b/sig/increase/models/bookkeeping_account_update_params.rbs index 12d63338..a9300f7c 100644 --- a/sig/increase/models/bookkeeping_account_update_params.rbs +++ b/sig/increase/models/bookkeeping_account_update_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type bookkeeping_account_update_params = - { name: String } & Increase::request_parameters + { name: String } & Increase::Internal::Type::request_parameters - class BookkeepingAccountUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingAccountUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor name: String diff --git a/sig/increase/models/bookkeeping_balance_lookup.rbs b/sig/increase/models/bookkeeping_balance_lookup.rbs index 6bd56efa..6a5016bf 100644 --- a/sig/increase/models/bookkeeping_balance_lookup.rbs +++ b/sig/increase/models/bookkeeping_balance_lookup.rbs @@ -7,7 +7,7 @@ module Increase type: Increase::Models::BookkeepingBalanceLookup::type_ } - class BookkeepingBalanceLookup < Increase::BaseModel + class BookkeepingBalanceLookup < Increase::Internal::Type::BaseModel attr_accessor balance: Integer attr_accessor bookkeeping_account_id: String @@ -25,7 +25,7 @@ module Increase type type_ = :bookkeeping_balance_lookup module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_BALANCE_LOOKUP: :bookkeeping_balance_lookup diff --git a/sig/increase/models/bookkeeping_entry.rbs b/sig/increase/models/bookkeeping_entry.rbs index 67b7460e..86b410c0 100644 --- a/sig/increase/models/bookkeeping_entry.rbs +++ b/sig/increase/models/bookkeeping_entry.rbs @@ -10,7 +10,7 @@ module Increase type: Increase::Models::BookkeepingEntry::type_ } - class BookkeepingEntry < Increase::BaseModel + class BookkeepingEntry < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -37,7 +37,7 @@ module Increase type type_ = :bookkeeping_entry module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_ENTRY: :bookkeeping_entry diff --git a/sig/increase/models/bookkeeping_entry_list_params.rbs b/sig/increase/models/bookkeeping_entry_list_params.rbs index 4315d164..746e3209 100644 --- a/sig/increase/models/bookkeeping_entry_list_params.rbs +++ b/sig/increase/models/bookkeeping_entry_list_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type bookkeeping_entry_list_params = { account_id: String, cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class BookkeepingEntryListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntryListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? diff --git a/sig/increase/models/bookkeeping_entry_retrieve_params.rbs b/sig/increase/models/bookkeeping_entry_retrieve_params.rbs index 85c9d926..e3656c07 100644 --- a/sig/increase/models/bookkeeping_entry_retrieve_params.rbs +++ b/sig/increase/models/bookkeeping_entry_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type bookkeeping_entry_retrieve_params = { } & Increase::request_parameters + type bookkeeping_entry_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class BookkeepingEntryRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntryRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/bookkeeping_entry_set.rbs b/sig/increase/models/bookkeeping_entry_set.rbs index f6f72b6b..cd4a5cb3 100644 --- a/sig/increase/models/bookkeeping_entry_set.rbs +++ b/sig/increase/models/bookkeeping_entry_set.rbs @@ -11,7 +11,7 @@ module Increase type: Increase::Models::BookkeepingEntrySet::type_ } - class BookkeepingEntrySet < Increase::BaseModel + class BookkeepingEntrySet < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor created_at: Time @@ -40,7 +40,7 @@ module Increase type entry = { id: String, account_id: String, amount: Integer } - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -59,7 +59,7 @@ module Increase type type_ = :bookkeeping_entry_set module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum BOOKKEEPING_ENTRY_SET: :bookkeeping_entry_set diff --git a/sig/increase/models/bookkeeping_entry_set_create_params.rbs b/sig/increase/models/bookkeeping_entry_set_create_params.rbs index 66167259..a75e86b6 100644 --- a/sig/increase/models/bookkeeping_entry_set_create_params.rbs +++ b/sig/increase/models/bookkeeping_entry_set_create_params.rbs @@ -6,11 +6,11 @@ module Increase date: Time, transaction_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class BookkeepingEntrySetCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntrySetCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor entries: ::Array[Increase::Models::BookkeepingEntrySetCreateParams::Entry] @@ -33,7 +33,7 @@ module Increase type entry = { account_id: String, amount: Integer } - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel attr_accessor account_id: String attr_accessor amount: Integer diff --git a/sig/increase/models/bookkeeping_entry_set_list_params.rbs b/sig/increase/models/bookkeeping_entry_set_list_params.rbs index 588b80db..fdd3d42d 100644 --- a/sig/increase/models/bookkeeping_entry_set_list_params.rbs +++ b/sig/increase/models/bookkeeping_entry_set_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, transaction_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class BookkeepingEntrySetListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntrySetListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? diff --git a/sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs b/sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs index c6905f9f..08701e42 100644 --- a/sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs +++ b/sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type bookkeeping_entry_set_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class BookkeepingEntrySetRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class BookkeepingEntrySetRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/card.rbs b/sig/increase/models/card.rbs index 89d2a603..2485cb00 100644 --- a/sig/increase/models/card.rbs +++ b/sig/increase/models/card.rbs @@ -17,7 +17,7 @@ module Increase type: Increase::Models::Card::type_ } - class Card < Increase::BaseModel + class Card < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -71,7 +71,7 @@ module Increase state: String? } - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel attr_accessor city: String? attr_accessor line1: String? @@ -96,7 +96,7 @@ module Increase type digital_wallet = { digital_card_profile_id: String?, email: String?, phone: String? } - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel attr_accessor digital_card_profile_id: String? attr_accessor email: String? @@ -115,7 +115,7 @@ module Increase type status = :active | :disabled | :canceled module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is active. ACTIVE: :active @@ -132,7 +132,7 @@ module Increase type type_ = :card module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD: :card diff --git a/sig/increase/models/card_create_params.rbs b/sig/increase/models/card_create_params.rbs index 3d04dded..9e3df0fa 100644 --- a/sig/increase/models/card_create_params.rbs +++ b/sig/increase/models/card_create_params.rbs @@ -8,11 +8,11 @@ module Increase digital_wallet: Increase::Models::CardCreateParams::DigitalWallet, entity_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String @@ -56,7 +56,7 @@ module Increase :line2 => String } - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -83,7 +83,7 @@ module Increase type digital_wallet = { digital_card_profile_id: String, email: String, phone: String } - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel attr_reader digital_card_profile_id: String? def digital_card_profile_id=: (String) -> String diff --git a/sig/increase/models/card_details.rbs b/sig/increase/models/card_details.rbs index 3242565b..85604e37 100644 --- a/sig/increase/models/card_details.rbs +++ b/sig/increase/models/card_details.rbs @@ -10,7 +10,7 @@ module Increase verification_code: String } - class CardDetails < Increase::BaseModel + class CardDetails < Increase::Internal::Type::BaseModel attr_accessor card_id: String attr_accessor expiration_month: Integer @@ -37,7 +37,7 @@ module Increase type type_ = :card_details module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_DETAILS: :card_details diff --git a/sig/increase/models/card_details_params.rbs b/sig/increase/models/card_details_params.rbs index 21b66e18..0adaa7da 100644 --- a/sig/increase/models/card_details_params.rbs +++ b/sig/increase/models/card_details_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type card_details_params = { } & Increase::request_parameters + type card_details_params = + { } & Increase::Internal::Type::request_parameters - class CardDetailsParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDetailsParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/card_dispute.rbs b/sig/increase/models/card_dispute.rbs index 8a35a0f7..5b8d27dd 100644 --- a/sig/increase/models/card_dispute.rbs +++ b/sig/increase/models/card_dispute.rbs @@ -16,7 +16,7 @@ module Increase win: Increase::Models::CardDispute::Win? } - class CardDispute < Increase::BaseModel + class CardDispute < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor acceptance: Increase::Models::CardDispute::Acceptance? @@ -61,7 +61,7 @@ module Increase type acceptance = { accepted_at: Time, card_dispute_id: String, transaction_id: String } - class Acceptance < Increase::BaseModel + class Acceptance < Increase::Internal::Type::BaseModel attr_accessor accepted_at: Time attr_accessor card_dispute_id: String @@ -85,7 +85,7 @@ module Increase transaction_id: String } - class Loss < Increase::BaseModel + class Loss < Increase::Internal::Type::BaseModel attr_accessor card_dispute_id: String attr_accessor explanation: String @@ -107,7 +107,7 @@ module Increase type rejection = { card_dispute_id: String, explanation: String, rejected_at: Time } - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel attr_accessor card_dispute_id: String attr_accessor explanation: String @@ -132,7 +132,7 @@ module Increase | :won module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Dispute is pending review. PENDING_REVIEWING: :pending_reviewing @@ -158,7 +158,7 @@ module Increase type type_ = :card_dispute module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_DISPUTE: :card_dispute @@ -167,7 +167,7 @@ module Increase type win = { card_dispute_id: String, won_at: Time } - class Win < Increase::BaseModel + class Win < Increase::Internal::Type::BaseModel attr_accessor card_dispute_id: String attr_accessor won_at: Time diff --git a/sig/increase/models/card_dispute_create_params.rbs b/sig/increase/models/card_dispute_create_params.rbs index 4e2d4388..1e3e7831 100644 --- a/sig/increase/models/card_dispute_create_params.rbs +++ b/sig/increase/models/card_dispute_create_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type card_dispute_create_params = { disputed_transaction_id: String, explanation: String, amount: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardDisputeCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor disputed_transaction_id: String diff --git a/sig/increase/models/card_dispute_list_params.rbs b/sig/increase/models/card_dispute_list_params.rbs index 1c1d94ca..fb779b82 100644 --- a/sig/increase/models/card_dispute_list_params.rbs +++ b/sig/increase/models/card_dispute_list_params.rbs @@ -8,11 +8,11 @@ module Increase limit: Integer, status: Increase::Models::CardDisputeListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardDisputeListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::CardDisputeListParams::CreatedAt? @@ -52,7 +52,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -82,7 +82,7 @@ module Increase type status = { in_: ::Array[Increase::Models::CardDisputeListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::CardDisputeListParams::Status::in_]? def in_=: ( @@ -104,7 +104,7 @@ module Increase | :won module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Dispute is pending review. PENDING_REVIEWING: :pending_reviewing diff --git a/sig/increase/models/card_dispute_retrieve_params.rbs b/sig/increase/models/card_dispute_retrieve_params.rbs index 8173405a..dc4b5824 100644 --- a/sig/increase/models/card_dispute_retrieve_params.rbs +++ b/sig/increase/models/card_dispute_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type card_dispute_retrieve_params = { } & Increase::request_parameters + type card_dispute_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class CardDisputeRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/card_list_params.rbs b/sig/increase/models/card_list_params.rbs index ecdf074f..e120bbec 100644 --- a/sig/increase/models/card_list_params.rbs +++ b/sig/increase/models/card_list_params.rbs @@ -9,11 +9,11 @@ module Increase limit: Integer, status: Increase::Models::CardListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -58,7 +58,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -88,7 +88,7 @@ module Increase type status = { in_: ::Array[Increase::Models::CardListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::CardListParams::Status::in_]? def in_=: ( @@ -104,7 +104,7 @@ module Increase type in_ = :active | :disabled | :canceled module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is active. ACTIVE: :active diff --git a/sig/increase/models/card_payment.rbs b/sig/increase/models/card_payment.rbs index a45d6657..e607cb7d 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -13,7 +13,7 @@ module Increase type: Increase::Models::CardPayment::type_ } - class CardPayment < Increase::BaseModel + class CardPayment < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -63,7 +63,7 @@ module Increase other: top? } - class Element < Increase::BaseModel + class Element < Increase::Internal::Type::BaseModel attr_accessor card_authentication: Increase::Models::CardPayment::Element::CardAuthentication? attr_accessor card_authorization: Increase::Models::CardPayment::Element::CardAuthorization? @@ -129,7 +129,7 @@ module Increase type: Increase::Models::CardPayment::Element::CardAuthentication::type_ } - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_id: String @@ -189,7 +189,7 @@ module Increase type category = :payment_authentication | :non_payment_authentication module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The authentication attempt is for a payment. PAYMENT_AUTHENTICATION: :payment_authentication @@ -209,7 +209,7 @@ module Increase verification_value: String? } - class Challenge < Increase::BaseModel + class Challenge < Increase::Internal::Type::BaseModel attr_accessor attempts: ::Array[Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt] attr_accessor created_at: Time @@ -236,7 +236,7 @@ module Increase outcome: Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt::outcome } - class Attempt < Increase::BaseModel + class Attempt < Increase::Internal::Type::BaseModel attr_accessor created_at: Time attr_accessor outcome: Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt::outcome @@ -251,7 +251,7 @@ module Increase type outcome = :successful | :failed module Outcome - extend Increase::Enum + extend Increase::Internal::Type::Enum # The attempt was successful. SUCCESSFUL: :successful @@ -266,7 +266,7 @@ module Increase type verification_method = :text_message | :email | :none_available module VerificationMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # The one-time code was sent via text message. TEXT_MESSAGE: :text_message @@ -290,7 +290,7 @@ module Increase | :webhook_timed_out module DenyReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The group was locked. GROUP_LOCKED: :group_locked @@ -316,7 +316,7 @@ module Increase type device_channel = :app | :browser | :three_ds_requestor_initiated module DeviceChannel - extend Increase::Enum + extend Increase::Internal::Type::Enum # The authentication attempt was made from an app. APP: :app @@ -342,7 +342,7 @@ module Increase | :exceeded_attempt_threshold module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The authentication attempt was denied. DENIED: :denied @@ -377,7 +377,7 @@ module Increase type type_ = :card_authentication module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHENTICATION: :card_authentication @@ -416,7 +416,7 @@ module Increase verification: Increase::Models::CardPayment::Element::CardAuthorization::Verification } - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor actioner: Increase::Models::CardPayment::Element::CardAuthorization::actioner @@ -506,7 +506,7 @@ module Increase type actioner = :user | :increase | :network module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER: :user @@ -523,7 +523,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -549,7 +549,7 @@ module Increase type direction = :settlement | :refund module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT: :settlement @@ -566,7 +566,7 @@ module Increase visa: Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa? } - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::category attr_accessor visa: Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa? @@ -581,7 +581,7 @@ module Increase type category = :visa module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -596,7 +596,7 @@ module Increase stand_in_processing_reason: Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa::stand_in_processing_reason? } - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel attr_accessor electronic_commerce_indicator: Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa::electronic_commerce_indicator? attr_accessor point_of_service_entry_mode: Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa::point_of_service_entry_mode? @@ -622,7 +622,7 @@ module Increase | :non_secure_transaction module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER: :mail_phone_order @@ -664,7 +664,7 @@ module Increase | :integrated_circuit_card_no_cvv module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN: :unknown @@ -709,7 +709,7 @@ module Increase | :other module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR: :issuer_error @@ -744,7 +744,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -769,7 +769,7 @@ module Increase | :refund module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING: :account_funding @@ -795,7 +795,7 @@ module Increase type type_ = :card_authorization module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHORIZATION: :card_authorization @@ -808,7 +808,7 @@ module Increase cardholder_address: Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardholderAddress } - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel attr_accessor card_verification_code: Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode attr_accessor cardholder_address: Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardholderAddress @@ -825,7 +825,7 @@ module Increase result: Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode::result } - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode::result def initialize: ( @@ -837,7 +837,7 @@ module Increase type result = :not_checked | :match | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED: :not_checked @@ -861,7 +861,7 @@ module Increase result: Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::result } - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel attr_accessor actual_line1: String? attr_accessor actual_postal_code: String? @@ -891,7 +891,7 @@ module Increase | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED: :not_checked @@ -927,7 +927,7 @@ module Increase type: Increase::Models::CardPayment::Element::CardAuthorizationExpiration::type_ } - class CardAuthorizationExpiration < Increase::BaseModel + class CardAuthorizationExpiration < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_authorization_id: String @@ -954,7 +954,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -980,7 +980,7 @@ module Increase type network = :visa module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -991,7 +991,7 @@ module Increase type type_ = :card_authorization_expiration module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHORIZATION_EXPIRATION: :card_authorization_expiration @@ -1030,7 +1030,7 @@ module Increase verification: Increase::Models::CardPayment::Element::CardDecline::Verification } - class CardDecline < Increase::BaseModel + class CardDecline < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor actioner: Increase::Models::CardPayment::Element::CardDecline::actioner @@ -1120,7 +1120,7 @@ module Increase type actioner = :user | :increase | :network module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER: :user @@ -1137,7 +1137,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1163,7 +1163,7 @@ module Increase type direction = :settlement | :refund module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT: :settlement @@ -1180,7 +1180,7 @@ module Increase visa: Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa? } - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::category attr_accessor visa: Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa? @@ -1195,7 +1195,7 @@ module Increase type category = :visa module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -1210,7 +1210,7 @@ module Increase stand_in_processing_reason: Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa::stand_in_processing_reason? } - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel attr_accessor electronic_commerce_indicator: Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa::electronic_commerce_indicator? attr_accessor point_of_service_entry_mode: Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Visa::point_of_service_entry_mode? @@ -1236,7 +1236,7 @@ module Increase | :non_secure_transaction module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER: :mail_phone_order @@ -1278,7 +1278,7 @@ module Increase | :integrated_circuit_card_no_cvv module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN: :unknown @@ -1323,7 +1323,7 @@ module Increase | :other module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR: :issuer_error @@ -1358,7 +1358,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -1383,7 +1383,7 @@ module Increase | :refund module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING: :account_funding @@ -1415,7 +1415,7 @@ module Increase | :other module RealTimeDecisionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. INSUFFICIENT_FUNDS: :insufficient_funds @@ -1458,7 +1458,7 @@ module Increase | :suspected_fraud module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account has been closed. ACCOUNT_CLOSED: :account_closed @@ -1520,7 +1520,7 @@ module Increase cardholder_address: Increase::Models::CardPayment::Element::CardDecline::Verification::CardholderAddress } - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel attr_accessor card_verification_code: Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode attr_accessor cardholder_address: Increase::Models::CardPayment::Element::CardDecline::Verification::CardholderAddress @@ -1537,7 +1537,7 @@ module Increase result: Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode::result } - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode::result def initialize: ( @@ -1549,7 +1549,7 @@ module Increase type result = :not_checked | :match | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED: :not_checked @@ -1573,7 +1573,7 @@ module Increase result: Increase::Models::CardPayment::Element::CardDecline::Verification::CardholderAddress::result } - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel attr_accessor actual_line1: String? attr_accessor actual_postal_code: String? @@ -1603,7 +1603,7 @@ module Increase | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED: :not_checked @@ -1641,7 +1641,7 @@ module Increase updated_authorization_amount: Integer } - class CardFuelConfirmation < Increase::BaseModel + class CardFuelConfirmation < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_authorization_id: String @@ -1674,7 +1674,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1700,7 +1700,7 @@ module Increase type network = :visa module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -1715,7 +1715,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -1734,7 +1734,7 @@ module Increase type type_ = :card_fuel_confirmation module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_FUEL_CONFIRMATION: :card_fuel_confirmation @@ -1758,7 +1758,7 @@ module Increase updated_authorization_amount: Integer } - class CardIncrement < Increase::BaseModel + class CardIncrement < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor actioner: Increase::Models::CardPayment::Element::CardIncrement::actioner @@ -1803,7 +1803,7 @@ module Increase type actioner = :user | :increase | :network module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER: :user @@ -1820,7 +1820,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1846,7 +1846,7 @@ module Increase type network = :visa module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -1861,7 +1861,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -1880,7 +1880,7 @@ module Increase type type_ = :card_increment module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_INCREMENT: :card_increment @@ -1911,7 +1911,7 @@ module Increase type: Increase::Models::CardPayment::Element::CardRefund::type_ } - class CardRefund < Increase::BaseModel + class CardRefund < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -1980,7 +1980,7 @@ module Increase currency: Increase::Models::CardPayment::Element::CardRefund::Cashback::currency } - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor currency: Increase::Models::CardPayment::Element::CardRefund::Cashback::currency @@ -1995,7 +1995,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -2022,7 +2022,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -2052,7 +2052,7 @@ module Increase currency: Increase::Models::CardPayment::Element::CardRefund::Interchange::currency } - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor code: String? @@ -2070,7 +2070,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -2101,7 +2101,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor acquirer_business_id: String attr_accessor acquirer_reference_number: String @@ -2131,7 +2131,7 @@ module Increase travel: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel? } - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel attr_accessor car_rental: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::CarRental? attr_accessor customer_reference_identifier: String? @@ -2187,7 +2187,7 @@ module Increase weekly_rental_rate_currency: String? } - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel attr_accessor car_class_code: String? attr_accessor checkout_date: Date? @@ -2250,7 +2250,7 @@ module Increase | :parking_violation module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -2277,7 +2277,7 @@ module Increase :not_applicable | :no_show_for_specialized_vehicle module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -2309,7 +2309,7 @@ module Increase total_tax_currency: String? } - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel attr_accessor check_in_date: Date? attr_accessor daily_room_rate_amount: Integer? @@ -2373,7 +2373,7 @@ module Increase | :laundry module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -2402,7 +2402,7 @@ module Increase type no_show_indicator = :not_applicable | :no_show module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -2422,7 +2422,7 @@ module Increase | :invoice_number module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT: :free_text @@ -2458,7 +2458,7 @@ module Increase trip_legs: ::Array[Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg]? } - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel attr_accessor ancillary: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary? attr_accessor computerized_reservation_system: String? @@ -2509,7 +2509,7 @@ module Increase ticket_document_number: String? } - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel attr_accessor connected_ticket_document_number: String? attr_accessor credit_reason_indicator: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::credit_reason_indicator? @@ -2537,7 +2537,7 @@ module Increase | :other module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -2560,7 +2560,7 @@ module Increase sub_category: String? } - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service::category? attr_accessor sub_category: String? @@ -2599,7 +2599,7 @@ module Increase | :wifi module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -2687,7 +2687,7 @@ module Increase | :partial_refund_of_airline_ticket module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -2714,7 +2714,7 @@ module Increase :no_restrictions | :restricted_non_refundable_ticket module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS: :no_restrictions @@ -2729,7 +2729,7 @@ module Increase :none | :change_to_existing_ticket | :new_ticket module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -2753,7 +2753,7 @@ module Increase stop_over_code: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg::stop_over_code? } - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel attr_accessor carrier_code: String? attr_accessor destination_city_airport_code: String? @@ -2781,7 +2781,7 @@ module Increase :none | :stop_over_allowed | :stop_over_not_allowed module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -2801,7 +2801,7 @@ module Increase type type_ = :card_refund module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_REFUND: :card_refund @@ -2831,7 +2831,7 @@ module Increase updated_authorization_amount: Integer } - class CardReversal < Increase::BaseModel + class CardReversal < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_authorization_id: String @@ -2894,7 +2894,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -2920,7 +2920,7 @@ module Increase type network = :visa module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -2935,7 +2935,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -2958,7 +2958,7 @@ module Increase | :partial_reversal module ReversalReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Reversal was initiated at the customer's request. REVERSED_BY_CUSTOMER: :reversed_by_customer @@ -2978,7 +2978,7 @@ module Increase type type_ = :card_reversal module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_REVERSAL: :card_reversal @@ -3011,7 +3011,7 @@ module Increase type: Increase::Models::CardPayment::Element::CardSettlement::type_ } - class CardSettlement < Increase::BaseModel + class CardSettlement < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -3086,7 +3086,7 @@ module Increase currency: Increase::Models::CardPayment::Element::CardSettlement::Cashback::currency } - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor currency: Increase::Models::CardPayment::Element::CardSettlement::Cashback::currency @@ -3101,7 +3101,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3128,7 +3128,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3158,7 +3158,7 @@ module Increase currency: Increase::Models::CardPayment::Element::CardSettlement::Interchange::currency } - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor code: String? @@ -3176,7 +3176,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3207,7 +3207,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor acquirer_business_id: String attr_accessor acquirer_reference_number: String @@ -3237,7 +3237,7 @@ module Increase travel: Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel? } - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel attr_accessor car_rental: Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::CarRental? attr_accessor customer_reference_identifier: String? @@ -3293,7 +3293,7 @@ module Increase weekly_rental_rate_currency: String? } - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel attr_accessor car_class_code: String? attr_accessor checkout_date: Date? @@ -3356,7 +3356,7 @@ module Increase | :parking_violation module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -3383,7 +3383,7 @@ module Increase :not_applicable | :no_show_for_specialized_vehicle module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -3415,7 +3415,7 @@ module Increase total_tax_currency: String? } - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel attr_accessor check_in_date: Date? attr_accessor daily_room_rate_amount: Integer? @@ -3479,7 +3479,7 @@ module Increase | :laundry module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -3508,7 +3508,7 @@ module Increase type no_show_indicator = :not_applicable | :no_show module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -3528,7 +3528,7 @@ module Increase | :invoice_number module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT: :free_text @@ -3564,7 +3564,7 @@ module Increase trip_legs: ::Array[Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg]? } - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel attr_accessor ancillary: Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary? attr_accessor computerized_reservation_system: String? @@ -3615,7 +3615,7 @@ module Increase ticket_document_number: String? } - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel attr_accessor connected_ticket_document_number: String? attr_accessor credit_reason_indicator: Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::credit_reason_indicator? @@ -3643,7 +3643,7 @@ module Increase | :other module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -3666,7 +3666,7 @@ module Increase sub_category: String? } - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service::category? attr_accessor sub_category: String? @@ -3705,7 +3705,7 @@ module Increase | :wifi module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -3793,7 +3793,7 @@ module Increase | :partial_refund_of_airline_ticket module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -3820,7 +3820,7 @@ module Increase :no_restrictions | :restricted_non_refundable_ticket module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS: :no_restrictions @@ -3835,7 +3835,7 @@ module Increase :none | :change_to_existing_ticket | :new_ticket module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -3859,7 +3859,7 @@ module Increase stop_over_code: Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg::stop_over_code? } - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel attr_accessor carrier_code: String? attr_accessor destination_city_airport_code: String? @@ -3887,7 +3887,7 @@ module Increase :none | :stop_over_allowed | :stop_over_not_allowed module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -3907,7 +3907,7 @@ module Increase type type_ = :card_settlement module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_SETTLEMENT: :card_settlement @@ -3939,7 +3939,7 @@ module Increase verification: Increase::Models::CardPayment::Element::CardValidation::Verification } - class CardValidation < Increase::BaseModel + class CardValidation < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor actioner: Increase::Models::CardPayment::Element::CardValidation::actioner @@ -4008,7 +4008,7 @@ module Increase type actioner = :user | :increase | :network module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER: :user @@ -4025,7 +4025,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -4054,7 +4054,7 @@ module Increase visa: Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa? } - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::category attr_accessor visa: Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa? @@ -4069,7 +4069,7 @@ module Increase type category = :visa module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -4084,7 +4084,7 @@ module Increase stand_in_processing_reason: Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa::stand_in_processing_reason? } - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel attr_accessor electronic_commerce_indicator: Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa::electronic_commerce_indicator? attr_accessor point_of_service_entry_mode: Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa::point_of_service_entry_mode? @@ -4110,7 +4110,7 @@ module Increase | :non_secure_transaction module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER: :mail_phone_order @@ -4152,7 +4152,7 @@ module Increase | :integrated_circuit_card_no_cvv module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN: :unknown @@ -4197,7 +4197,7 @@ module Increase | :other module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR: :issuer_error @@ -4232,7 +4232,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -4251,7 +4251,7 @@ module Increase type type_ = :card_validation module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_VALIDATION: :card_validation @@ -4264,7 +4264,7 @@ module Increase cardholder_address: Increase::Models::CardPayment::Element::CardValidation::Verification::CardholderAddress } - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel attr_accessor card_verification_code: Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode attr_accessor cardholder_address: Increase::Models::CardPayment::Element::CardValidation::Verification::CardholderAddress @@ -4281,7 +4281,7 @@ module Increase result: Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode::result } - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode::result def initialize: ( @@ -4293,7 +4293,7 @@ module Increase type result = :not_checked | :match | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED: :not_checked @@ -4317,7 +4317,7 @@ module Increase result: Increase::Models::CardPayment::Element::CardValidation::Verification::CardholderAddress::result } - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel attr_accessor actual_line1: String? attr_accessor actual_postal_code: String? @@ -4347,7 +4347,7 @@ module Increase | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED: :not_checked @@ -4387,7 +4387,7 @@ module Increase | :other module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Card Authorization: details will be under the `card_authorization` object. CARD_AUTHORIZATION: :card_authorization @@ -4435,7 +4435,7 @@ module Increase settled_amount: Integer } - class State < Increase::BaseModel + class State < Increase::Internal::Type::BaseModel attr_accessor authorized_amount: Integer attr_accessor fuel_confirmed_amount: Integer @@ -4460,7 +4460,7 @@ module Increase type type_ = :card_payment module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_PAYMENT: :card_payment diff --git a/sig/increase/models/card_payment_list_params.rbs b/sig/increase/models/card_payment_list_params.rbs index f459b268..f483a9d6 100644 --- a/sig/increase/models/card_payment_list_params.rbs +++ b/sig/increase/models/card_payment_list_params.rbs @@ -8,11 +8,11 @@ module Increase cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardPaymentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPaymentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -50,7 +50,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/card_payment_retrieve_params.rbs b/sig/increase/models/card_payment_retrieve_params.rbs index da3d357b..eefe32fd 100644 --- a/sig/increase/models/card_payment_retrieve_params.rbs +++ b/sig/increase/models/card_payment_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type card_payment_retrieve_params = { } & Increase::request_parameters + type card_payment_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class CardPaymentRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPaymentRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/card_purchase_supplement.rbs b/sig/increase/models/card_purchase_supplement.rbs index 5ec7429e..3ba695cb 100644 --- a/sig/increase/models/card_purchase_supplement.rbs +++ b/sig/increase/models/card_purchase_supplement.rbs @@ -10,7 +10,7 @@ module Increase type: Increase::Models::CardPurchaseSupplement::type_ } - class CardPurchaseSupplement < Increase::BaseModel + class CardPurchaseSupplement < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_payment_id: String? @@ -54,7 +54,7 @@ module Increase unique_value_added_tax_invoice_reference: String? } - class Invoice < Increase::BaseModel + class Invoice < Increase::Internal::Type::BaseModel attr_accessor discount_amount: Integer? attr_accessor discount_currency: String? @@ -114,7 +114,7 @@ module Increase | :tax_calculated_on_pre_discount_invoice_total module DiscountTreatmentCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # No invoice level discount provided NO_INVOICE_LEVEL_DISCOUNT_PROVIDED: :no_invoice_level_discount_provided @@ -136,7 +136,7 @@ module Increase | :gross_price_invoice_level module TaxTreatments - extend Increase::Enum + extend Increase::Internal::Type::Enum # No tax applies NO_TAX_APPLIES: :no_tax_applies @@ -178,7 +178,7 @@ module Increase unit_of_measure_code: String? } - class LineItem < Increase::BaseModel + class LineItem < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor detail_indicator: Increase::Models::CardPurchaseSupplement::LineItem::detail_indicator? @@ -238,7 +238,7 @@ module Increase type detail_indicator = :normal | :credit | :payment module DetailIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Normal NORMAL: :normal @@ -258,7 +258,7 @@ module Increase | :tax_calculated_on_pre_discount_line_item_total module DiscountTreatmentCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # No line item level discount provided NO_LINE_ITEM_LEVEL_DISCOUNT_PROVIDED: :no_line_item_level_discount_provided @@ -276,7 +276,7 @@ module Increase type type_ = :card_purchase_supplement module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_PURCHASE_SUPPLEMENT: :card_purchase_supplement diff --git a/sig/increase/models/card_purchase_supplement_list_params.rbs b/sig/increase/models/card_purchase_supplement_list_params.rbs index 48636ebb..35bc3232 100644 --- a/sig/increase/models/card_purchase_supplement_list_params.rbs +++ b/sig/increase/models/card_purchase_supplement_list_params.rbs @@ -7,11 +7,11 @@ module Increase cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardPurchaseSupplementListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPurchaseSupplementListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader card_payment_id: String? @@ -44,7 +44,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/card_purchase_supplement_retrieve_params.rbs b/sig/increase/models/card_purchase_supplement_retrieve_params.rbs index 43afef18..a435b9c2 100644 --- a/sig/increase/models/card_purchase_supplement_retrieve_params.rbs +++ b/sig/increase/models/card_purchase_supplement_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type card_purchase_supplement_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class CardPurchaseSupplementRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardPurchaseSupplementRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/card_retrieve_params.rbs b/sig/increase/models/card_retrieve_params.rbs index 2e3a911c..8d8bb600 100644 --- a/sig/increase/models/card_retrieve_params.rbs +++ b/sig/increase/models/card_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type card_retrieve_params = { } & Increase::request_parameters + type card_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class CardRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/card_update_params.rbs b/sig/increase/models/card_update_params.rbs index 05eb5fc8..f0d94a6d 100644 --- a/sig/increase/models/card_update_params.rbs +++ b/sig/increase/models/card_update_params.rbs @@ -8,11 +8,11 @@ module Increase entity_id: String, status: Increase::Models::CardUpdateParams::status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader billing_address: Increase::Models::CardUpdateParams::BillingAddress? @@ -60,7 +60,7 @@ module Increase :line2 => String } - class BillingAddress < Increase::BaseModel + class BillingAddress < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -87,7 +87,7 @@ module Increase type digital_wallet = { digital_card_profile_id: String, email: String, phone: String } - class DigitalWallet < Increase::BaseModel + class DigitalWallet < Increase::Internal::Type::BaseModel attr_reader digital_card_profile_id: String? def digital_card_profile_id=: (String) -> String @@ -112,7 +112,7 @@ module Increase type status = :active | :disabled | :canceled module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is active. ACTIVE: :active diff --git a/sig/increase/models/check_deposit.rbs b/sig/increase/models/check_deposit.rbs index 6ee25bc3..caeb556e 100644 --- a/sig/increase/models/check_deposit.rbs +++ b/sig/increase/models/check_deposit.rbs @@ -22,7 +22,7 @@ module Increase type: Increase::Models::CheckDeposit::type_ } - class CheckDeposit < Increase::BaseModel + class CheckDeposit < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -93,7 +93,7 @@ module Increase serial_number: String? } - class DepositAcceptance < Increase::BaseModel + class DepositAcceptance < Increase::Internal::Type::BaseModel attr_accessor account_number: String attr_accessor amount: Integer @@ -123,7 +123,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -157,7 +157,7 @@ module Increase rejected_at: Time } - class DepositRejection < Increase::BaseModel + class DepositRejection < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor check_deposit_id: String @@ -184,7 +184,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -221,7 +221,7 @@ module Increase | :unknown module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check's image is incomplete. INCOMPLETE_IMAGE: :incomplete_image @@ -270,7 +270,7 @@ module Increase transaction_id: String } - class DepositReturn < Increase::BaseModel + class DepositReturn < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor check_deposit_id: String @@ -297,7 +297,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -349,7 +349,7 @@ module Increase | :branch_or_account_sold module ReturnReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check doesn't allow ACH conversion. ACH_CONVERSION_NOT_SUPPORTED: :ach_conversion_not_supported @@ -436,7 +436,7 @@ module Increase type deposit_submission = { back_file_id: String, front_file_id: String, submitted_at: Time } - class DepositSubmission < Increase::BaseModel + class DepositSubmission < Increase::Internal::Type::BaseModel attr_accessor back_file_id: String attr_accessor front_file_id: String @@ -466,7 +466,7 @@ module Increase type: Increase::Models::CheckDeposit::InboundFundsHold::type_ } - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -505,7 +505,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -531,7 +531,7 @@ module Increase type status = :held | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD: :held @@ -545,7 +545,7 @@ module Increase type type_ = :inbound_funds_hold module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD: :inbound_funds_hold @@ -556,7 +556,7 @@ module Increase type status = :pending | :submitted | :rejected | :returned module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Check Deposit is pending review. PENDING: :pending @@ -576,7 +576,7 @@ module Increase type type_ = :check_deposit module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_DEPOSIT: :check_deposit diff --git a/sig/increase/models/check_deposit_create_params.rbs b/sig/increase/models/check_deposit_create_params.rbs index 5dc2a888..cf966b51 100644 --- a/sig/increase/models/check_deposit_create_params.rbs +++ b/sig/increase/models/check_deposit_create_params.rbs @@ -8,11 +8,11 @@ module Increase front_image_file_id: String, description: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CheckDepositCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/check_deposit_list_params.rbs b/sig/increase/models/check_deposit_list_params.rbs index 72a9ec5c..7748835a 100644 --- a/sig/increase/models/check_deposit_list_params.rbs +++ b/sig/increase/models/check_deposit_list_params.rbs @@ -8,11 +8,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CheckDepositListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -50,7 +50,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/check_deposit_retrieve_params.rbs b/sig/increase/models/check_deposit_retrieve_params.rbs index 8d1b4631..063eb203 100644 --- a/sig/increase/models/check_deposit_retrieve_params.rbs +++ b/sig/increase/models/check_deposit_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type check_deposit_retrieve_params = { } & Increase::request_parameters + type check_deposit_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class CheckDepositRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/check_transfer.rbs b/sig/increase/models/check_transfer.rbs index e470359c..11816880 100644 --- a/sig/increase/models/check_transfer.rbs +++ b/sig/increase/models/check_transfer.rbs @@ -27,7 +27,7 @@ module Increase type: Increase::Models::CheckTransfer::type_ } - class CheckTransfer < Increase::BaseModel + class CheckTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -104,7 +104,7 @@ module Increase type approval = { approved_at: Time, approved_by: String? } - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel attr_accessor approved_at: Time attr_accessor approved_by: String? @@ -116,7 +116,7 @@ module Increase type cancellation = { canceled_at: Time, canceled_by: String? } - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel attr_accessor canceled_at: Time attr_accessor canceled_by: String? @@ -134,7 +134,7 @@ module Increase user: Increase::Models::CheckTransfer::CreatedBy::User? } - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel attr_accessor api_key: Increase::Models::CheckTransfer::CreatedBy::APIKey? attr_accessor category: Increase::Models::CheckTransfer::CreatedBy::category @@ -154,7 +154,7 @@ module Increase type api_key = { description: String? } - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel attr_accessor description: String? def initialize: (description: String?) -> void @@ -165,7 +165,7 @@ module Increase type category = :api_key | :oauth_application | :user module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY: :api_key @@ -181,7 +181,7 @@ module Increase type oauth_application = { name: String } - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel attr_accessor name: String def initialize: (name: String) -> void @@ -191,7 +191,7 @@ module Increase type user = { email: String } - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel attr_accessor email: String def initialize: (email: String) -> void @@ -203,7 +203,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -229,7 +229,7 @@ module Increase type fulfillment_method = :physical_check | :third_party module FulfillmentMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase will print and mail a physical check. PHYSICAL_CHECK: :physical_check @@ -243,7 +243,7 @@ module Increase type mailing = { image_id: String?, mailed_at: Time, tracking_number: String? } - class Mailing < Increase::BaseModel + class Mailing < Increase::Internal::Type::BaseModel attr_accessor image_id: String? attr_accessor mailed_at: Time @@ -271,7 +271,7 @@ module Increase tracking_updates: ::Array[Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate] } - class PhysicalCheck < Increase::BaseModel + class PhysicalCheck < Increase::Internal::Type::BaseModel attr_accessor mailing_address: Increase::Models::CheckTransfer::PhysicalCheck::MailingAddress attr_accessor memo: String? @@ -311,7 +311,7 @@ module Increase state: String? } - class MailingAddress < Increase::BaseModel + class MailingAddress < Increase::Internal::Type::BaseModel attr_accessor city: String? attr_accessor line1: String? @@ -346,7 +346,7 @@ module Increase state: String? } - class ReturnAddress < Increase::BaseModel + class ReturnAddress < Increase::Internal::Type::BaseModel attr_accessor city: String? attr_accessor line1: String? @@ -374,7 +374,7 @@ module Increase type shipping_method = :usps_first_class | :fedex_overnight module ShippingMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # USPS First Class USPS_FIRST_CLASS: :usps_first_class @@ -392,7 +392,7 @@ module Increase postal_code: String } - class TrackingUpdate < Increase::BaseModel + class TrackingUpdate < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::CheckTransfer::PhysicalCheck::TrackingUpdate::category attr_accessor created_at: Time @@ -414,7 +414,7 @@ module Increase | :returned_to_sender module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check is in transit. IN_TRANSIT: :in_transit @@ -446,7 +446,7 @@ module Increase | :returned module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is awaiting approval. PENDING_APPROVAL: :pending_approval @@ -489,7 +489,7 @@ module Increase type: Increase::Models::CheckTransfer::StopPaymentRequest::type_ } - class StopPaymentRequest < Increase::BaseModel + class StopPaymentRequest < Increase::Internal::Type::BaseModel attr_accessor reason: Increase::Models::CheckTransfer::StopPaymentRequest::reason attr_accessor requested_at: Time @@ -514,7 +514,7 @@ module Increase | :unknown module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check could not be delivered. MAIL_DELIVERY_FAILED: :mail_delivery_failed @@ -534,7 +534,7 @@ module Increase type type_ = :check_transfer_stop_payment_request module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_TRANSFER_STOP_PAYMENT_REQUEST: :check_transfer_stop_payment_request @@ -544,7 +544,7 @@ module Increase type submission = { submitted_at: Time } - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel attr_accessor submitted_at: Time def initialize: (submitted_at: Time) -> void @@ -554,7 +554,7 @@ module Increase type third_party = { check_number: String?, recipient_name: String? } - class ThirdParty < Increase::BaseModel + class ThirdParty < Increase::Internal::Type::BaseModel attr_accessor check_number: String? attr_accessor recipient_name: String? @@ -567,7 +567,7 @@ module Increase type type_ = :check_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_TRANSFER: :check_transfer diff --git a/sig/increase/models/check_transfer_approve_params.rbs b/sig/increase/models/check_transfer_approve_params.rbs index 7f048822..3e95b358 100644 --- a/sig/increase/models/check_transfer_approve_params.rbs +++ b/sig/increase/models/check_transfer_approve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type check_transfer_approve_params = { } & Increase::request_parameters + type check_transfer_approve_params = + { } & Increase::Internal::Type::request_parameters - class CheckTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/check_transfer_cancel_params.rbs b/sig/increase/models/check_transfer_cancel_params.rbs index 04e49c91..cb987481 100644 --- a/sig/increase/models/check_transfer_cancel_params.rbs +++ b/sig/increase/models/check_transfer_cancel_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type check_transfer_cancel_params = { } & Increase::request_parameters + type check_transfer_cancel_params = + { } & Increase::Internal::Type::request_parameters - class CheckTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/check_transfer_create_params.rbs b/sig/increase/models/check_transfer_create_params.rbs index 360e0ecf..0f86eeaf 100644 --- a/sig/increase/models/check_transfer_create_params.rbs +++ b/sig/increase/models/check_transfer_create_params.rbs @@ -10,11 +10,11 @@ module Increase require_approval: bool, third_party: Increase::Models::CheckTransferCreateParams::ThirdParty } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CheckTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String @@ -56,7 +56,7 @@ module Increase type fulfillment_method = :physical_check | :third_party module FulfillmentMethod - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase will print and mail a physical check. PHYSICAL_CHECK: :physical_check @@ -78,7 +78,7 @@ module Increase signature_text: String } - class PhysicalCheck < Increase::BaseModel + class PhysicalCheck < Increase::Internal::Type::BaseModel attr_accessor mailing_address: Increase::Models::CheckTransferCreateParams::PhysicalCheck::MailingAddress attr_accessor memo: String @@ -124,7 +124,7 @@ module Increase :line2 => String } - class MailingAddress < Increase::BaseModel + class MailingAddress < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -158,7 +158,7 @@ module Increase :line2 => String } - class ReturnAddress < Increase::BaseModel + class ReturnAddress < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -188,7 +188,7 @@ module Increase type third_party = { check_number: String, recipient_name: String } - class ThirdParty < Increase::BaseModel + class ThirdParty < Increase::Internal::Type::BaseModel attr_reader check_number: String? def check_number=: (String) -> String diff --git a/sig/increase/models/check_transfer_list_params.rbs b/sig/increase/models/check_transfer_list_params.rbs index 19118de4..bd0ef277 100644 --- a/sig/increase/models/check_transfer_list_params.rbs +++ b/sig/increase/models/check_transfer_list_params.rbs @@ -9,11 +9,11 @@ module Increase limit: Integer, status: Increase::Models::CheckTransferListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CheckTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -58,7 +58,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -88,7 +88,7 @@ module Increase type status = { in_: ::Array[Increase::Models::CheckTransferListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::CheckTransferListParams::Status::in_]? def in_=: ( @@ -114,7 +114,7 @@ module Increase | :returned module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is awaiting approval. PENDING_APPROVAL: :pending_approval diff --git a/sig/increase/models/check_transfer_retrieve_params.rbs b/sig/increase/models/check_transfer_retrieve_params.rbs index 8fcbc7f7..9fab34fd 100644 --- a/sig/increase/models/check_transfer_retrieve_params.rbs +++ b/sig/increase/models/check_transfer_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type check_transfer_retrieve_params = { } & Increase::request_parameters + type check_transfer_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class CheckTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/check_transfer_stop_payment_params.rbs b/sig/increase/models/check_transfer_stop_payment_params.rbs index 9d0311b1..cfb52581 100644 --- a/sig/increase/models/check_transfer_stop_payment_params.rbs +++ b/sig/increase/models/check_transfer_stop_payment_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type check_transfer_stop_payment_params = { reason: Increase::Models::CheckTransferStopPaymentParams::reason } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CheckTransferStopPaymentParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferStopPaymentParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader reason: Increase::Models::CheckTransferStopPaymentParams::reason? @@ -24,7 +24,7 @@ module Increase type reason = :mail_delivery_failed | :not_authorized | :unknown module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check could not be delivered. MAIL_DELIVERY_FAILED: :mail_delivery_failed diff --git a/sig/increase/models/declined_transaction.rbs b/sig/increase/models/declined_transaction.rbs index 1b628ae5..0958a54f 100644 --- a/sig/increase/models/declined_transaction.rbs +++ b/sig/increase/models/declined_transaction.rbs @@ -14,7 +14,7 @@ module Increase type: Increase::Models::DeclinedTransaction::type_ } - class DeclinedTransaction < Increase::BaseModel + class DeclinedTransaction < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -53,7 +53,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -79,7 +79,7 @@ module Increase type route_type = :account_number | :card | :lockbox module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An Account Number. ACCOUNT_NUMBER: :account_number @@ -105,7 +105,7 @@ module Increase wire_decline: Increase::Models::DeclinedTransaction::Source::WireDecline? } - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel attr_accessor ach_decline: Increase::Models::DeclinedTransaction::Source::ACHDecline? attr_accessor card_decline: Increase::Models::DeclinedTransaction::Source::CardDecline? @@ -151,7 +151,7 @@ module Increase type: Increase::Models::DeclinedTransaction::Source::ACHDecline::type_ } - class ACHDecline < Increase::BaseModel + class ACHDecline < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -213,7 +213,7 @@ module Increase | :corporate_customer_advised_not_authorized module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACH_ROUTE_CANCELED: :ach_route_canceled @@ -272,7 +272,7 @@ module Increase type type_ = :ach_decline module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ACH_DECLINE: :ach_decline @@ -311,7 +311,7 @@ module Increase verification: Increase::Models::DeclinedTransaction::Source::CardDecline::Verification } - class CardDecline < Increase::BaseModel + class CardDecline < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor actioner: Increase::Models::DeclinedTransaction::Source::CardDecline::actioner @@ -401,7 +401,7 @@ module Increase type actioner = :user | :increase | :network module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER: :user @@ -418,7 +418,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -444,7 +444,7 @@ module Increase type direction = :settlement | :refund module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT: :settlement @@ -461,7 +461,7 @@ module Increase visa: Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa? } - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::category attr_accessor visa: Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa? @@ -476,7 +476,7 @@ module Increase type category = :visa module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -491,7 +491,7 @@ module Increase stand_in_processing_reason: Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa::stand_in_processing_reason? } - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel attr_accessor electronic_commerce_indicator: Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa::electronic_commerce_indicator? attr_accessor point_of_service_entry_mode: Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa::point_of_service_entry_mode? @@ -517,7 +517,7 @@ module Increase | :non_secure_transaction module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER: :mail_phone_order @@ -559,7 +559,7 @@ module Increase | :integrated_circuit_card_no_cvv module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN: :unknown @@ -604,7 +604,7 @@ module Increase | :other module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR: :issuer_error @@ -639,7 +639,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -664,7 +664,7 @@ module Increase | :refund module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING: :account_funding @@ -696,7 +696,7 @@ module Increase | :other module RealTimeDecisionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. INSUFFICIENT_FUNDS: :insufficient_funds @@ -739,7 +739,7 @@ module Increase | :suspected_fraud module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account has been closed. ACCOUNT_CLOSED: :account_closed @@ -801,7 +801,7 @@ module Increase cardholder_address: Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress } - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel attr_accessor card_verification_code: Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode attr_accessor cardholder_address: Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress @@ -818,7 +818,7 @@ module Increase result: Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode::result } - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode::result def initialize: ( @@ -830,7 +830,7 @@ module Increase type result = :not_checked | :match | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED: :not_checked @@ -854,7 +854,7 @@ module Increase result: Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::result } - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel attr_accessor actual_line1: String? attr_accessor actual_postal_code: String? @@ -884,7 +884,7 @@ module Increase | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED: :not_checked @@ -920,7 +920,7 @@ module Increase | :other module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Decline: details will be under the `ach_decline` object. ACH_DECLINE: :ach_decline @@ -957,7 +957,7 @@ module Increase reason: Increase::Models::DeclinedTransaction::Source::CheckDecline::reason } - class CheckDecline < Increase::BaseModel + class CheckDecline < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor auxiliary_on_us: String? @@ -1004,7 +1004,7 @@ module Increase | :user_initiated module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is disabled. ACH_ROUTE_DISABLED: :ach_route_disabled @@ -1071,7 +1071,7 @@ module Increase rejected_at: Time } - class CheckDepositRejection < Increase::BaseModel + class CheckDepositRejection < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor check_deposit_id: String @@ -1098,7 +1098,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1135,7 +1135,7 @@ module Increase | :unknown module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check's image is incomplete. INCOMPLETE_IMAGE: :incomplete_image @@ -1188,7 +1188,7 @@ module Increase transfer_id: String } - class InboundRealTimePaymentsTransferDecline < Increase::BaseModel + class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor creditor_name: String @@ -1227,7 +1227,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1259,7 +1259,7 @@ module Increase | :real_time_payments_not_enabled module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED: :account_number_canceled @@ -1289,7 +1289,7 @@ module Increase reason: Increase::Models::DeclinedTransaction::Source::WireDecline::reason } - class WireDecline < Increase::BaseModel + class WireDecline < Increase::Internal::Type::BaseModel attr_accessor inbound_wire_transfer_id: String attr_accessor reason: Increase::Models::DeclinedTransaction::Source::WireDecline::reason @@ -1310,7 +1310,7 @@ module Increase | :transaction_not_allowed module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED: :account_number_canceled @@ -1338,7 +1338,7 @@ module Increase type type_ = :declined_transaction module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DECLINED_TRANSACTION: :declined_transaction diff --git a/sig/increase/models/declined_transaction_list_params.rbs b/sig/increase/models/declined_transaction_list_params.rbs index b952cb52..b6306f7e 100644 --- a/sig/increase/models/declined_transaction_list_params.rbs +++ b/sig/increase/models/declined_transaction_list_params.rbs @@ -9,11 +9,11 @@ module Increase limit: Integer, route_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class DeclinedTransactionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DeclinedTransactionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -60,7 +60,7 @@ module Increase in_: ::Array[Increase::Models::DeclinedTransactionListParams::Category::in_] } - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::DeclinedTransactionListParams::Category::in_]? def in_=: ( @@ -83,7 +83,7 @@ module Increase | :other module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # ACH Decline: details will be under the `ach_decline` object. ACH_DECLINE: :ach_decline @@ -113,7 +113,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/declined_transaction_retrieve_params.rbs b/sig/increase/models/declined_transaction_retrieve_params.rbs index b2f29cf1..cd8573e4 100644 --- a/sig/increase/models/declined_transaction_retrieve_params.rbs +++ b/sig/increase/models/declined_transaction_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type declined_transaction_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class DeclinedTransactionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DeclinedTransactionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/digital_card_profile.rbs b/sig/increase/models/digital_card_profile.rbs index 7392ee8c..370c37f9 100644 --- a/sig/increase/models/digital_card_profile.rbs +++ b/sig/increase/models/digital_card_profile.rbs @@ -18,7 +18,7 @@ module Increase type: Increase::Models::DigitalCardProfile::type_ } - class DigitalCardProfile < Increase::BaseModel + class DigitalCardProfile < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor app_icon_file_id: String @@ -69,7 +69,7 @@ module Increase type status = :pending | :rejected | :active | :archived module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile is awaiting review from Increase and/or processing by card networks. PENDING: :pending @@ -88,7 +88,7 @@ module Increase type text_color = { blue: Integer, green: Integer, red: Integer } - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel attr_accessor blue: Integer attr_accessor green: Integer @@ -103,7 +103,7 @@ module Increase type type_ = :digital_card_profile module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DIGITAL_CARD_PROFILE: :digital_card_profile diff --git a/sig/increase/models/digital_card_profile_archive_params.rbs b/sig/increase/models/digital_card_profile_archive_params.rbs index 311918a5..dd5aeed6 100644 --- a/sig/increase/models/digital_card_profile_archive_params.rbs +++ b/sig/increase/models/digital_card_profile_archive_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type digital_card_profile_archive_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class DigitalCardProfileArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/digital_card_profile_clone_params.rbs b/sig/increase/models/digital_card_profile_clone_params.rbs index 71f90a73..fc55d43c 100644 --- a/sig/increase/models/digital_card_profile_clone_params.rbs +++ b/sig/increase/models/digital_card_profile_clone_params.rbs @@ -12,11 +12,11 @@ module Increase issuer_name: String, text_color: Increase::Models::DigitalCardProfileCloneParams::TextColor } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class DigitalCardProfileCloneParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileCloneParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader app_icon_file_id: String? @@ -73,7 +73,7 @@ module Increase type text_color = { blue: Integer, green: Integer, red: Integer } - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel attr_accessor blue: Integer attr_accessor green: Integer diff --git a/sig/increase/models/digital_card_profile_create_params.rbs b/sig/increase/models/digital_card_profile_create_params.rbs index 1b74d38e..9deacaaa 100644 --- a/sig/increase/models/digital_card_profile_create_params.rbs +++ b/sig/increase/models/digital_card_profile_create_params.rbs @@ -12,11 +12,11 @@ module Increase contact_website: String, text_color: Increase::Models::DigitalCardProfileCreateParams::TextColor } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class DigitalCardProfileCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor app_icon_file_id: String @@ -63,7 +63,7 @@ module Increase type text_color = { blue: Integer, green: Integer, red: Integer } - class TextColor < Increase::BaseModel + class TextColor < Increase::Internal::Type::BaseModel attr_accessor blue: Integer attr_accessor green: Integer diff --git a/sig/increase/models/digital_card_profile_list_params.rbs b/sig/increase/models/digital_card_profile_list_params.rbs index 6cb3dc36..10e2d834 100644 --- a/sig/increase/models/digital_card_profile_list_params.rbs +++ b/sig/increase/models/digital_card_profile_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, status: Increase::Models::DigitalCardProfileListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class DigitalCardProfileListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? @@ -46,7 +46,7 @@ module Increase in_: ::Array[Increase::Models::DigitalCardProfileListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::DigitalCardProfileListParams::Status::in_]? def in_=: ( @@ -62,7 +62,7 @@ module Increase type in_ = :pending | :rejected | :active | :archived module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile is awaiting review from Increase and/or processing by card networks. PENDING: :pending diff --git a/sig/increase/models/digital_card_profile_retrieve_params.rbs b/sig/increase/models/digital_card_profile_retrieve_params.rbs index b5cf589f..9664db54 100644 --- a/sig/increase/models/digital_card_profile_retrieve_params.rbs +++ b/sig/increase/models/digital_card_profile_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type digital_card_profile_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class DigitalCardProfileRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalCardProfileRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/digital_wallet_token.rbs b/sig/increase/models/digital_wallet_token.rbs index 9fee8bb4..d0a1449d 100644 --- a/sig/increase/models/digital_wallet_token.rbs +++ b/sig/increase/models/digital_wallet_token.rbs @@ -13,7 +13,7 @@ module Increase updates: ::Array[Increase::Models::DigitalWalletToken::Update] } - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_id: String @@ -48,7 +48,7 @@ module Increase type cardholder = { name: String? } - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel attr_accessor name: String? def initialize: (name: String?) -> void @@ -64,7 +64,7 @@ module Increase name: String? } - class Device < Increase::BaseModel + class Device < Increase::Internal::Type::BaseModel attr_accessor device_type: Increase::Models::DigitalWalletToken::Device::device_type? attr_accessor identifier: String? @@ -94,7 +94,7 @@ module Increase | :automobile_device module DeviceType - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN: :unknown @@ -130,7 +130,7 @@ module Increase type status = :active | :inactive | :suspended | :deactivated module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The digital wallet token is active. ACTIVE: :active @@ -150,7 +150,7 @@ module Increase type token_requestor = :apple_pay | :google_pay | :samsung_pay | :unknown module TokenRequestor - extend Increase::Enum + extend Increase::Internal::Type::Enum # Apple Pay APPLE_PAY: :apple_pay @@ -170,7 +170,7 @@ module Increase type type_ = :digital_wallet_token module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DIGITAL_WALLET_TOKEN: :digital_wallet_token @@ -183,7 +183,7 @@ module Increase timestamp: Time } - class Update < Increase::BaseModel + class Update < Increase::Internal::Type::BaseModel attr_accessor status: Increase::Models::DigitalWalletToken::Update::status attr_accessor timestamp: Time @@ -198,7 +198,7 @@ module Increase type status = :active | :inactive | :suspended | :deactivated module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The digital wallet token is active. ACTIVE: :active diff --git a/sig/increase/models/digital_wallet_token_list_params.rbs b/sig/increase/models/digital_wallet_token_list_params.rbs index 02db9d27..6948ca0e 100644 --- a/sig/increase/models/digital_wallet_token_list_params.rbs +++ b/sig/increase/models/digital_wallet_token_list_params.rbs @@ -7,11 +7,11 @@ module Increase cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class DigitalWalletTokenListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalWalletTokenListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader card_id: String? @@ -44,7 +44,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/digital_wallet_token_retrieve_params.rbs b/sig/increase/models/digital_wallet_token_retrieve_params.rbs index 111338ed..f0afd630 100644 --- a/sig/increase/models/digital_wallet_token_retrieve_params.rbs +++ b/sig/increase/models/digital_wallet_token_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type digital_wallet_token_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class DigitalWalletTokenRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalWalletTokenRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/document.rbs b/sig/increase/models/document.rbs index da265352..0fced652 100644 --- a/sig/increase/models/document.rbs +++ b/sig/increase/models/document.rbs @@ -10,7 +10,7 @@ module Increase type: Increase::Models::Document::type_ } - class Document < Increase::BaseModel + class Document < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor category: Increase::Models::Document::category @@ -41,7 +41,7 @@ module Increase | :company_information module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Internal Revenue Service Form 1099-INT. FORM_1099_INT: :form_1099_int @@ -61,7 +61,7 @@ module Increase type type_ = :document module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum DOCUMENT: :document diff --git a/sig/increase/models/document_list_params.rbs b/sig/increase/models/document_list_params.rbs index dd955438..10479844 100644 --- a/sig/increase/models/document_list_params.rbs +++ b/sig/increase/models/document_list_params.rbs @@ -8,11 +8,11 @@ module Increase entity_id: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class DocumentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DocumentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader category: Increase::Models::DocumentListParams::Category? @@ -52,7 +52,7 @@ module Increase type category = { in_: ::Array[Increase::Models::DocumentListParams::Category::in_] } - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::DocumentListParams::Category::in_]? def in_=: ( @@ -72,7 +72,7 @@ module Increase | :company_information module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Internal Revenue Service Form 1099-INT. FORM_1099_INT: :form_1099_int @@ -93,7 +93,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/document_retrieve_params.rbs b/sig/increase/models/document_retrieve_params.rbs index 99560586..1b0f9b3d 100644 --- a/sig/increase/models/document_retrieve_params.rbs +++ b/sig/increase/models/document_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type document_retrieve_params = { } & Increase::request_parameters + type document_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class DocumentRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DocumentRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/entity.rbs b/sig/increase/models/entity.rbs index c1d4b045..5ecf8d6c 100644 --- a/sig/increase/models/entity.rbs +++ b/sig/increase/models/entity.rbs @@ -19,7 +19,7 @@ module Increase type: Increase::Models::Entity::type_ } - class Entity < Increase::BaseModel + class Entity < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor corporation: Increase::Models::Entity::Corporation? @@ -81,7 +81,7 @@ module Increase website: String? } - class Corporation < Increase::BaseModel + class Corporation < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::Corporation::Address attr_accessor beneficial_owners: ::Array[Increase::Models::Entity::Corporation::BeneficialOwner] @@ -117,7 +117,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -147,7 +147,7 @@ module Increase prong: Increase::Models::Entity::Corporation::BeneficialOwner::prong } - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel attr_accessor beneficial_owner_id: String attr_accessor company_title: String? @@ -173,7 +173,7 @@ module Increase name: String } - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address attr_accessor date_of_birth: Date @@ -201,7 +201,7 @@ module Increase zip: String? } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String? attr_accessor country: String @@ -232,7 +232,7 @@ module Increase :number_last4 => String } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::method_ attr_accessor number_last4: String @@ -252,7 +252,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -277,7 +277,7 @@ module Increase type prong = :ownership | :control module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum # A person with 25% or greater direct or indirect ownership of the entity. OWNERSHIP: :ownership @@ -300,7 +300,7 @@ module Increase website: String? } - class GovernmentAuthority < Increase::BaseModel + class GovernmentAuthority < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::GovernmentAuthority::Address attr_accessor authorized_persons: ::Array[Increase::Models::Entity::GovernmentAuthority::AuthorizedPerson] @@ -333,7 +333,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -357,7 +357,7 @@ module Increase type authorized_person = { authorized_person_id: String, name: String } - class AuthorizedPerson < Increase::BaseModel + class AuthorizedPerson < Increase::Internal::Type::BaseModel attr_accessor authorized_person_id: String attr_accessor name: String @@ -370,7 +370,7 @@ module Increase type category = :municipality module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Public Entity is a Municipality. MUNICIPALITY: :municipality @@ -385,7 +385,7 @@ module Increase name: String } - class Joint < Increase::BaseModel + class Joint < Increase::Internal::Type::BaseModel attr_accessor individuals: ::Array[Increase::Models::Entity::Joint::Individual] attr_accessor name: String @@ -405,7 +405,7 @@ module Increase name: String } - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::Joint::Individual::Address attr_accessor date_of_birth: Date @@ -432,7 +432,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -460,7 +460,7 @@ module Increase :number_last4 => String } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::Entity::Joint::Individual::Identification::method_ attr_accessor number_last4: String @@ -480,7 +480,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -511,7 +511,7 @@ module Increase name: String } - class NaturalPerson < Increase::BaseModel + class NaturalPerson < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::NaturalPerson::Address attr_accessor date_of_birth: Date @@ -538,7 +538,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -566,7 +566,7 @@ module Increase :number_last4 => String } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::Entity::NaturalPerson::Identification::method_ attr_accessor number_last4: String @@ -586,7 +586,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -611,7 +611,7 @@ module Increase type status = :active | :archived | :disabled module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The entity is active. ACTIVE: :active @@ -629,7 +629,7 @@ module Increase :corporation | :natural_person | :joint | :trust | :government_authority module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # A corporation. CORPORATION: :corporation @@ -655,7 +655,7 @@ module Increase vendor: Increase::Models::Entity::ThirdPartyVerification::vendor } - class ThirdPartyVerification < Increase::BaseModel + class ThirdPartyVerification < Increase::Internal::Type::BaseModel attr_accessor reference: String attr_accessor vendor: Increase::Models::Entity::ThirdPartyVerification::vendor @@ -670,7 +670,7 @@ module Increase type vendor = :alloy | :middesk module Vendor - extend Increase::Enum + extend Increase::Internal::Type::Enum # Alloy. See https://alloy.com for more information. ALLOY: :alloy @@ -694,7 +694,7 @@ module Increase trustees: ::Array[Increase::Models::Entity::Trust::Trustee] } - class Trust < Increase::BaseModel + class Trust < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::Trust::Address attr_accessor category: Increase::Models::Entity::Trust::category @@ -733,7 +733,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -758,7 +758,7 @@ module Increase type category = :revocable | :irrevocable module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trust is revocable by the grantor. REVOCABLE: :revocable @@ -777,7 +777,7 @@ module Increase name: String } - class Grantor < Increase::BaseModel + class Grantor < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::Trust::Grantor::Address attr_accessor date_of_birth: Date @@ -804,7 +804,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -832,7 +832,7 @@ module Increase :number_last4 => String } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::Entity::Trust::Grantor::Identification::method_ attr_accessor number_last4: String @@ -852,7 +852,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -880,7 +880,7 @@ module Increase structure: Increase::Models::Entity::Trust::Trustee::structure } - class Trustee < Increase::BaseModel + class Trustee < Increase::Internal::Type::BaseModel attr_accessor individual: Increase::Models::Entity::Trust::Trustee::Individual? attr_accessor structure: Increase::Models::Entity::Trust::Trustee::structure @@ -900,7 +900,7 @@ module Increase name: String } - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::Entity::Trust::Trustee::Individual::Address attr_accessor date_of_birth: Date @@ -927,7 +927,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -955,7 +955,7 @@ module Increase :number_last4 => String } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::Entity::Trust::Trustee::Individual::Identification::method_ attr_accessor number_last4: String @@ -975,7 +975,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -1000,7 +1000,7 @@ module Increase type structure = :individual module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trustee is an individual. INDIVIDUAL: :individual @@ -1013,7 +1013,7 @@ module Increase type type_ = :entity module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ENTITY: :entity diff --git a/sig/increase/models/entity_archive_beneficial_owner_params.rbs b/sig/increase/models/entity_archive_beneficial_owner_params.rbs index 877e63af..e171ee19 100644 --- a/sig/increase/models/entity_archive_beneficial_owner_params.rbs +++ b/sig/increase/models/entity_archive_beneficial_owner_params.rbs @@ -1,11 +1,12 @@ module Increase module Models type entity_archive_beneficial_owner_params = - { beneficial_owner_id: String } & Increase::request_parameters + { beneficial_owner_id: String } + & Increase::Internal::Type::request_parameters - class EntityArchiveBeneficialOwnerParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityArchiveBeneficialOwnerParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor beneficial_owner_id: String diff --git a/sig/increase/models/entity_archive_params.rbs b/sig/increase/models/entity_archive_params.rbs index 4836f2fe..3c5b6447 100644 --- a/sig/increase/models/entity_archive_params.rbs +++ b/sig/increase/models/entity_archive_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type entity_archive_params = { } & Increase::request_parameters + type entity_archive_params = + { } & Increase::Internal::Type::request_parameters - class EntityArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/entity_confirm_params.rbs b/sig/increase/models/entity_confirm_params.rbs index 447e8738..ee4981ed 100644 --- a/sig/increase/models/entity_confirm_params.rbs +++ b/sig/increase/models/entity_confirm_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type entity_confirm_params = - { confirmed_at: Time } & Increase::request_parameters + { confirmed_at: Time } & Increase::Internal::Type::request_parameters - class EntityConfirmParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityConfirmParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader confirmed_at: Time? diff --git a/sig/increase/models/entity_create_beneficial_owner_params.rbs b/sig/increase/models/entity_create_beneficial_owner_params.rbs index 7ea6760e..cf74357a 100644 --- a/sig/increase/models/entity_create_beneficial_owner_params.rbs +++ b/sig/increase/models/entity_create_beneficial_owner_params.rbs @@ -4,11 +4,11 @@ module Increase { beneficial_owner: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EntityCreateBeneficialOwnerParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityCreateBeneficialOwnerParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor beneficial_owner: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner @@ -26,7 +26,7 @@ module Increase company_title: String } - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel attr_accessor individual: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual attr_accessor prongs: ::Array[Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::prong] @@ -52,7 +52,7 @@ module Increase confirmed_no_us_tax_id: bool } - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address attr_accessor date_of_birth: Date @@ -85,7 +85,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor line1: String @@ -127,7 +127,7 @@ module Increase passport: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::method_ attr_accessor number: String @@ -168,7 +168,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -196,7 +196,7 @@ module Increase back_file_id: String } - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel attr_accessor expiration_date: Date attr_accessor file_id: String @@ -226,7 +226,7 @@ module Increase expiration_date: Date } - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor description: String @@ -255,7 +255,7 @@ module Increase type passport = { country: String, expiration_date: Date, file_id: String } - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor expiration_date: Date @@ -276,7 +276,7 @@ module Increase type prong = :ownership | :control module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum # A person with 25% or greater direct or indirect ownership of the entity. OWNERSHIP: :ownership diff --git a/sig/increase/models/entity_create_params.rbs b/sig/increase/models/entity_create_params.rbs index c9a87041..e298beb6 100644 --- a/sig/increase/models/entity_create_params.rbs +++ b/sig/increase/models/entity_create_params.rbs @@ -12,11 +12,11 @@ module Increase third_party_verification: Increase::Models::EntityCreateParams::ThirdPartyVerification, trust: Increase::Models::EntityCreateParams::Trust } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EntityCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor structure: Increase::Models::EntityCreateParams::structure @@ -85,7 +85,7 @@ module Increase :corporation | :natural_person | :joint | :trust | :government_authority module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # A corporation. CORPORATION: :corporation @@ -116,7 +116,7 @@ module Increase website: String } - class Corporation < Increase::BaseModel + class Corporation < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::Corporation::Address attr_accessor beneficial_owners: ::Array[Increase::Models::EntityCreateParams::Corporation::BeneficialOwner] @@ -158,7 +158,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -189,7 +189,7 @@ module Increase company_title: String } - class BeneficialOwner < Increase::BaseModel + class BeneficialOwner < Increase::Internal::Type::BaseModel attr_accessor individual: Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual attr_accessor prongs: ::Array[Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::prong] @@ -215,7 +215,7 @@ module Increase confirmed_no_us_tax_id: bool } - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address attr_accessor date_of_birth: Date @@ -248,7 +248,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor line1: String @@ -290,7 +290,7 @@ module Increase passport: Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Passport } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::method_ attr_accessor number: String @@ -331,7 +331,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -359,7 +359,7 @@ module Increase back_file_id: String } - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel attr_accessor expiration_date: Date attr_accessor file_id: String @@ -389,7 +389,7 @@ module Increase expiration_date: Date } - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor description: String @@ -418,7 +418,7 @@ module Increase type passport = { country: String, expiration_date: Date, file_id: String } - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor expiration_date: Date @@ -439,7 +439,7 @@ module Increase type prong = :ownership | :control module Prong - extend Increase::Enum + extend Increase::Internal::Type::Enum # A person with 25% or greater direct or indirect ownership of the entity. OWNERSHIP: :ownership @@ -462,7 +462,7 @@ module Increase website: String } - class GovernmentAuthority < Increase::BaseModel + class GovernmentAuthority < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::GovernmentAuthority::Address attr_accessor authorized_persons: ::Array[Increase::Models::EntityCreateParams::GovernmentAuthority::AuthorizedPerson] @@ -497,7 +497,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -523,7 +523,7 @@ module Increase type authorized_person = { name: String } - class AuthorizedPerson < Increase::BaseModel + class AuthorizedPerson < Increase::Internal::Type::BaseModel attr_accessor name: String def initialize: (name: String) -> void @@ -534,7 +534,7 @@ module Increase type category = :municipality module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Public Entity is a Municipality. MUNICIPALITY: :municipality @@ -549,7 +549,7 @@ module Increase name: String } - class Joint < Increase::BaseModel + class Joint < Increase::Internal::Type::BaseModel attr_accessor individuals: ::Array[Increase::Models::EntityCreateParams::Joint::Individual] attr_reader name: String? @@ -572,7 +572,7 @@ module Increase confirmed_no_us_tax_id: bool } - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::Joint::Individual::Address attr_accessor date_of_birth: Date @@ -604,7 +604,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -637,7 +637,7 @@ module Increase passport: Increase::Models::EntityCreateParams::Joint::Individual::Identification::Passport } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::EntityCreateParams::Joint::Individual::Identification::method_ attr_accessor number: String @@ -678,7 +678,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -706,7 +706,7 @@ module Increase back_file_id: String } - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel attr_accessor expiration_date: Date attr_accessor file_id: String @@ -736,7 +736,7 @@ module Increase expiration_date: Date } - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor description: String @@ -765,7 +765,7 @@ module Increase type passport = { country: String, expiration_date: Date, file_id: String } - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor expiration_date: Date @@ -793,7 +793,7 @@ module Increase confirmed_no_us_tax_id: bool } - class NaturalPerson < Increase::BaseModel + class NaturalPerson < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::NaturalPerson::Address attr_accessor date_of_birth: Date @@ -825,7 +825,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -858,7 +858,7 @@ module Increase passport: Increase::Models::EntityCreateParams::NaturalPerson::Identification::Passport } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::EntityCreateParams::NaturalPerson::Identification::method_ attr_accessor number: String @@ -899,7 +899,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -927,7 +927,7 @@ module Increase back_file_id: String } - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel attr_accessor expiration_date: Date attr_accessor file_id: String @@ -957,7 +957,7 @@ module Increase expiration_date: Date } - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor description: String @@ -986,7 +986,7 @@ module Increase type passport = { country: String, expiration_date: Date, file_id: String } - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor expiration_date: Date @@ -1006,7 +1006,7 @@ module Increase type supplemental_document = { file_id: String } - class SupplementalDocument < Increase::BaseModel + class SupplementalDocument < Increase::Internal::Type::BaseModel attr_accessor file_id: String def initialize: (file_id: String) -> void @@ -1020,7 +1020,7 @@ module Increase vendor: Increase::Models::EntityCreateParams::ThirdPartyVerification::vendor } - class ThirdPartyVerification < Increase::BaseModel + class ThirdPartyVerification < Increase::Internal::Type::BaseModel attr_accessor reference: String attr_accessor vendor: Increase::Models::EntityCreateParams::ThirdPartyVerification::vendor @@ -1035,7 +1035,7 @@ module Increase type vendor = :alloy | :middesk module Vendor - extend Increase::Enum + extend Increase::Internal::Type::Enum # Alloy. See https://alloy.com for more information. ALLOY: :alloy @@ -1059,7 +1059,7 @@ module Increase tax_identifier: String } - class Trust < Increase::BaseModel + class Trust < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::Trust::Address attr_accessor category: Increase::Models::EntityCreateParams::Trust::category @@ -1108,7 +1108,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -1135,7 +1135,7 @@ module Increase type category = :revocable | :irrevocable module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trust is revocable by the grantor. REVOCABLE: :revocable @@ -1152,7 +1152,7 @@ module Increase individual: Increase::Models::EntityCreateParams::Trust::Trustee::Individual } - class Trustee < Increase::BaseModel + class Trustee < Increase::Internal::Type::BaseModel attr_accessor structure: Increase::Models::EntityCreateParams::Trust::Trustee::structure attr_reader individual: Increase::Models::EntityCreateParams::Trust::Trustee::Individual? @@ -1171,7 +1171,7 @@ module Increase type structure = :individual module Structure - extend Increase::Enum + extend Increase::Internal::Type::Enum # The trustee is an individual. INDIVIDUAL: :individual @@ -1188,7 +1188,7 @@ module Increase confirmed_no_us_tax_id: bool } - class Individual < Increase::BaseModel + class Individual < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Address attr_accessor date_of_birth: Date @@ -1220,7 +1220,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -1253,7 +1253,7 @@ module Increase passport: Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Passport } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::method_ attr_accessor number: String @@ -1294,7 +1294,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -1322,7 +1322,7 @@ module Increase back_file_id: String } - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel attr_accessor expiration_date: Date attr_accessor file_id: String @@ -1352,7 +1352,7 @@ module Increase expiration_date: Date } - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor description: String @@ -1381,7 +1381,7 @@ module Increase type passport = { country: String, expiration_date: Date, file_id: String } - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor expiration_date: Date @@ -1409,7 +1409,7 @@ module Increase confirmed_no_us_tax_id: bool } - class Grantor < Increase::BaseModel + class Grantor < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::EntityCreateParams::Trust::Grantor::Address attr_accessor date_of_birth: Date @@ -1441,7 +1441,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -1474,7 +1474,7 @@ module Increase passport: Increase::Models::EntityCreateParams::Trust::Grantor::Identification::Passport } - class Identification < Increase::BaseModel + class Identification < Increase::Internal::Type::BaseModel attr_accessor method_: Increase::Models::EntityCreateParams::Trust::Grantor::Identification::method_ attr_accessor number: String @@ -1515,7 +1515,7 @@ module Increase | :other module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # A social security number. SOCIAL_SECURITY_NUMBER: :social_security_number @@ -1543,7 +1543,7 @@ module Increase back_file_id: String } - class DriversLicense < Increase::BaseModel + class DriversLicense < Increase::Internal::Type::BaseModel attr_accessor expiration_date: Date attr_accessor file_id: String @@ -1573,7 +1573,7 @@ module Increase expiration_date: Date } - class Other < Increase::BaseModel + class Other < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor description: String @@ -1602,7 +1602,7 @@ module Increase type passport = { country: String, expiration_date: Date, file_id: String } - class Passport < Increase::BaseModel + class Passport < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor expiration_date: Date diff --git a/sig/increase/models/entity_list_params.rbs b/sig/increase/models/entity_list_params.rbs index 73b2d0b1..20f556e9 100644 --- a/sig/increase/models/entity_list_params.rbs +++ b/sig/increase/models/entity_list_params.rbs @@ -8,11 +8,11 @@ module Increase limit: Integer, status: Increase::Models::EntityListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EntityListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::EntityListParams::CreatedAt? @@ -52,7 +52,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -82,7 +82,7 @@ module Increase type status = { in_: ::Array[Increase::Models::EntityListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::EntityListParams::Status::in_]? def in_=: ( @@ -98,7 +98,7 @@ module Increase type in_ = :active | :archived | :disabled module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The entity is active. ACTIVE: :active diff --git a/sig/increase/models/entity_retrieve_params.rbs b/sig/increase/models/entity_retrieve_params.rbs index e6e80935..46f3c3a2 100644 --- a/sig/increase/models/entity_retrieve_params.rbs +++ b/sig/increase/models/entity_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type entity_retrieve_params = { } & Increase::request_parameters + type entity_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class EntityRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/entity_supplemental_document.rbs b/sig/increase/models/entity_supplemental_document.rbs index 74eada10..66b7637a 100644 --- a/sig/increase/models/entity_supplemental_document.rbs +++ b/sig/increase/models/entity_supplemental_document.rbs @@ -9,7 +9,7 @@ module Increase type: Increase::Models::EntitySupplementalDocument::type_ } - class EntitySupplementalDocument < Increase::BaseModel + class EntitySupplementalDocument < Increase::Internal::Type::BaseModel attr_accessor created_at: Time attr_accessor entity_id: String @@ -33,7 +33,7 @@ module Increase type type_ = :entity_supplemental_document module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ENTITY_SUPPLEMENTAL_DOCUMENT: :entity_supplemental_document diff --git a/sig/increase/models/entity_update_address_params.rbs b/sig/increase/models/entity_update_address_params.rbs index f903f22f..c74ca1f7 100644 --- a/sig/increase/models/entity_update_address_params.rbs +++ b/sig/increase/models/entity_update_address_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type entity_update_address_params = { address: Increase::Models::EntityUpdateAddressParams::Address } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EntityUpdateAddressParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityUpdateAddressParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor address: Increase::Models::EntityUpdateAddressParams::Address @@ -26,7 +26,7 @@ module Increase :line2 => String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String diff --git a/sig/increase/models/entity_update_beneficial_owner_address_params.rbs b/sig/increase/models/entity_update_beneficial_owner_address_params.rbs index bd0288fc..9a48d891 100644 --- a/sig/increase/models/entity_update_beneficial_owner_address_params.rbs +++ b/sig/increase/models/entity_update_beneficial_owner_address_params.rbs @@ -5,11 +5,11 @@ module Increase address: Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address, beneficial_owner_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EntityUpdateBeneficialOwnerAddressParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityUpdateBeneficialOwnerAddressParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor address: Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address @@ -33,7 +33,7 @@ module Increase zip: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor country: String attr_accessor line1: String diff --git a/sig/increase/models/entity_update_industry_code_params.rbs b/sig/increase/models/entity_update_industry_code_params.rbs index 119024ed..e0be7c9c 100644 --- a/sig/increase/models/entity_update_industry_code_params.rbs +++ b/sig/increase/models/entity_update_industry_code_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type entity_update_industry_code_params = - { industry_code: String } & Increase::request_parameters + { industry_code: String } & Increase::Internal::Type::request_parameters - class EntityUpdateIndustryCodeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EntityUpdateIndustryCodeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor industry_code: String diff --git a/sig/increase/models/event.rbs b/sig/increase/models/event.rbs index 5ca3dab4..7b972695 100644 --- a/sig/increase/models/event.rbs +++ b/sig/increase/models/event.rbs @@ -10,7 +10,7 @@ module Increase type: Increase::Models::Event::type_ } - class Event < Increase::BaseModel + class Event < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor associated_object_id: String @@ -125,7 +125,7 @@ module Increase | :"wire_transfer.updated" module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED: :"account.created" @@ -397,7 +397,7 @@ module Increase type type_ = :event module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EVENT: :event diff --git a/sig/increase/models/event_list_params.rbs b/sig/increase/models/event_list_params.rbs index f4f1356f..dc023a44 100644 --- a/sig/increase/models/event_list_params.rbs +++ b/sig/increase/models/event_list_params.rbs @@ -8,11 +8,11 @@ module Increase cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EventListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader associated_object_id: String? @@ -52,7 +52,7 @@ module Increase type category = { in_: ::Array[Increase::Models::EventListParams::Category::in_] } - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::EventListParams::Category::in_]? def in_=: ( @@ -156,7 +156,7 @@ module Increase | :"wire_transfer.updated" module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED: :"account.created" @@ -429,7 +429,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/event_retrieve_params.rbs b/sig/increase/models/event_retrieve_params.rbs index 60e65281..902761cb 100644 --- a/sig/increase/models/event_retrieve_params.rbs +++ b/sig/increase/models/event_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type event_retrieve_params = { } & Increase::request_parameters + type event_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class EventRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/event_subscription.rbs b/sig/increase/models/event_subscription.rbs index f2c5d3ce..20a7680e 100644 --- a/sig/increase/models/event_subscription.rbs +++ b/sig/increase/models/event_subscription.rbs @@ -12,7 +12,7 @@ module Increase url: String } - class EventSubscription < Increase::BaseModel + class EventSubscription < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor created_at: Time @@ -133,7 +133,7 @@ module Increase | :"wire_transfer.updated" module SelectedEventCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED: :"account.created" @@ -405,7 +405,7 @@ module Increase type status = :active | :disabled | :deleted | :requires_attention module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The subscription is active and Events will be delivered normally. ACTIVE: :active @@ -425,7 +425,7 @@ module Increase type type_ = :event_subscription module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EVENT_SUBSCRIPTION: :event_subscription diff --git a/sig/increase/models/event_subscription_create_params.rbs b/sig/increase/models/event_subscription_create_params.rbs index 7d8578a0..b6f47930 100644 --- a/sig/increase/models/event_subscription_create_params.rbs +++ b/sig/increase/models/event_subscription_create_params.rbs @@ -7,11 +7,11 @@ module Increase selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category, shared_secret: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EventSubscriptionCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor url: String @@ -130,7 +130,7 @@ module Increase | :"wire_transfer.updated" module SelectedEventCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Occurs whenever an Account is created. ACCOUNT_CREATED: :"account.created" diff --git a/sig/increase/models/event_subscription_list_params.rbs b/sig/increase/models/event_subscription_list_params.rbs index c93a1469..6ac286d0 100644 --- a/sig/increase/models/event_subscription_list_params.rbs +++ b/sig/increase/models/event_subscription_list_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type event_subscription_list_params = { cursor: String, idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EventSubscriptionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? diff --git a/sig/increase/models/event_subscription_retrieve_params.rbs b/sig/increase/models/event_subscription_retrieve_params.rbs index 52641f6c..4a73e235 100644 --- a/sig/increase/models/event_subscription_retrieve_params.rbs +++ b/sig/increase/models/event_subscription_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type event_subscription_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class EventSubscriptionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/event_subscription_update_params.rbs b/sig/increase/models/event_subscription_update_params.rbs index becd81d6..5ad821e3 100644 --- a/sig/increase/models/event_subscription_update_params.rbs +++ b/sig/increase/models/event_subscription_update_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type event_subscription_update_params = { status: Increase::Models::EventSubscriptionUpdateParams::status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class EventSubscriptionUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class EventSubscriptionUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader status: Increase::Models::EventSubscriptionUpdateParams::status? @@ -24,7 +24,7 @@ module Increase type status = :active | :disabled | :deleted module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The subscription is active and Events will be delivered normally. ACTIVE: :active diff --git a/sig/increase/models/export.rbs b/sig/increase/models/export.rbs index c272af45..486bbc9d 100644 --- a/sig/increase/models/export.rbs +++ b/sig/increase/models/export.rbs @@ -12,7 +12,7 @@ module Increase type: Increase::Models::Export::type_ } - class Export < Increase::BaseModel + class Export < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor category: Increase::Models::Export::category @@ -52,7 +52,7 @@ module Increase | :dashboard_table_csv module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. ACCOUNT_STATEMENT_OFX: :account_statement_ofx @@ -81,7 +81,7 @@ module Increase type status = :pending | :complete | :failed module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase is generating the export. PENDING: :pending @@ -98,7 +98,7 @@ module Increase type type_ = :export module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EXPORT: :export diff --git a/sig/increase/models/export_create_params.rbs b/sig/increase/models/export_create_params.rbs index cd3f7251..8dd0c21b 100644 --- a/sig/increase/models/export_create_params.rbs +++ b/sig/increase/models/export_create_params.rbs @@ -10,11 +10,11 @@ module Increase transaction_csv: Increase::Models::ExportCreateParams::TransactionCsv, vendor_csv: top } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ExportCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExportCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor category: Increase::Models::ExportCreateParams::category @@ -74,7 +74,7 @@ module Increase | :vendor_csv module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. ACCOUNT_STATEMENT_OFX: :account_statement_ofx @@ -103,7 +103,7 @@ module Increase created_at: Increase::Models::ExportCreateParams::AccountStatementOfx::CreatedAt } - class AccountStatementOfx < Increase::BaseModel + class AccountStatementOfx < Increase::Internal::Type::BaseModel attr_accessor account_id: String attr_reader created_at: Increase::Models::ExportCreateParams::AccountStatementOfx::CreatedAt? @@ -122,7 +122,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -157,7 +157,7 @@ module Increase program_id: String } - class BalanceCsv < Increase::BaseModel + class BalanceCsv < Increase::Internal::Type::BaseModel attr_reader account_id: String? def account_id=: (String) -> String @@ -183,7 +183,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -217,7 +217,7 @@ module Increase created_at: Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv::CreatedAt } - class BookkeepingAccountBalanceCsv < Increase::BaseModel + class BookkeepingAccountBalanceCsv < Increase::Internal::Type::BaseModel attr_reader bookkeeping_account_id: String? def bookkeeping_account_id=: (String) -> String @@ -238,7 +238,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -269,7 +269,7 @@ module Increase type entity_csv = { status: Increase::Models::ExportCreateParams::EntityCsv::Status } - class EntityCsv < Increase::BaseModel + class EntityCsv < Increase::Internal::Type::BaseModel attr_reader status: Increase::Models::ExportCreateParams::EntityCsv::Status? def status=: ( @@ -287,7 +287,7 @@ module Increase in_: ::Array[Increase::Models::ExportCreateParams::EntityCsv::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_accessor in_: ::Array[Increase::Models::ExportCreateParams::EntityCsv::Status::in_] def initialize: ( @@ -299,7 +299,7 @@ module Increase type in_ = :active | :archived | :disabled module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The entity is active. ACTIVE: :active @@ -322,7 +322,7 @@ module Increase program_id: String } - class TransactionCsv < Increase::BaseModel + class TransactionCsv < Increase::Internal::Type::BaseModel attr_reader account_id: String? def account_id=: (String) -> String @@ -348,7 +348,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/export_list_params.rbs b/sig/increase/models/export_list_params.rbs index b1181cb3..da7af08c 100644 --- a/sig/increase/models/export_list_params.rbs +++ b/sig/increase/models/export_list_params.rbs @@ -9,11 +9,11 @@ module Increase limit: Integer, status: Increase::Models::ExportListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ExportListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExportListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader category: Increase::Models::ExportListParams::Category? @@ -60,7 +60,7 @@ module Increase type category = { in_: ::Array[Increase::Models::ExportListParams::Category::in_] } - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::ExportListParams::Category::in_]? def in_=: ( @@ -83,7 +83,7 @@ module Increase | :dashboard_table_csv module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. ACCOUNT_STATEMENT_OFX: :account_statement_ofx @@ -113,7 +113,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -143,7 +143,7 @@ module Increase type status = { in_: ::Array[Increase::Models::ExportListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::ExportListParams::Status::in_]? def in_=: ( @@ -159,7 +159,7 @@ module Increase type in_ = :pending | :complete | :failed module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase is generating the export. PENDING: :pending diff --git a/sig/increase/models/export_retrieve_params.rbs b/sig/increase/models/export_retrieve_params.rbs index c3bda98a..b85438ec 100644 --- a/sig/increase/models/export_retrieve_params.rbs +++ b/sig/increase/models/export_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type export_retrieve_params = { } & Increase::request_parameters + type export_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class ExportRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExportRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/external_account.rbs b/sig/increase/models/external_account.rbs index ea231c1d..c28be431 100644 --- a/sig/increase/models/external_account.rbs +++ b/sig/increase/models/external_account.rbs @@ -15,7 +15,7 @@ module Increase verification_status: Increase::Models::ExternalAccount::verification_status } - class ExternalAccount < Increase::BaseModel + class ExternalAccount < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_holder: Increase::Models::ExternalAccount::account_holder @@ -57,7 +57,7 @@ module Increase type account_holder = :business | :individual | :unknown module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS: :business @@ -74,7 +74,7 @@ module Increase type funding = :checking | :savings | :other module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING: :checking @@ -91,7 +91,7 @@ module Increase type status = :active | :archived module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is active. ACTIVE: :active @@ -105,7 +105,7 @@ module Increase type type_ = :external_account module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum EXTERNAL_ACCOUNT: :external_account @@ -115,7 +115,7 @@ module Increase type verification_status = :unverified | :pending | :verified module VerificationStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account has not been verified. UNVERIFIED: :unverified diff --git a/sig/increase/models/external_account_create_params.rbs b/sig/increase/models/external_account_create_params.rbs index 6cb56e80..a35cd4c4 100644 --- a/sig/increase/models/external_account_create_params.rbs +++ b/sig/increase/models/external_account_create_params.rbs @@ -8,11 +8,11 @@ module Increase account_holder: Increase::Models::ExternalAccountCreateParams::account_holder, funding: Increase::Models::ExternalAccountCreateParams::funding } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ExternalAccountCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_number: String @@ -46,7 +46,7 @@ module Increase type account_holder = :business | :individual | :unknown module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS: :business @@ -63,7 +63,7 @@ module Increase type funding = :checking | :savings | :other module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING: :checking diff --git a/sig/increase/models/external_account_list_params.rbs b/sig/increase/models/external_account_list_params.rbs index b3224f6d..752af065 100644 --- a/sig/increase/models/external_account_list_params.rbs +++ b/sig/increase/models/external_account_list_params.rbs @@ -8,11 +8,11 @@ module Increase routing_number: String, status: Increase::Models::ExternalAccountListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ExternalAccountListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? @@ -52,7 +52,7 @@ module Increase in_: ::Array[Increase::Models::ExternalAccountListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::ExternalAccountListParams::Status::in_]? def in_=: ( @@ -68,7 +68,7 @@ module Increase type in_ = :active | :archived module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is active. ACTIVE: :active diff --git a/sig/increase/models/external_account_retrieve_params.rbs b/sig/increase/models/external_account_retrieve_params.rbs index 73132490..9542678d 100644 --- a/sig/increase/models/external_account_retrieve_params.rbs +++ b/sig/increase/models/external_account_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type external_account_retrieve_params = { } & Increase::request_parameters + type external_account_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class ExternalAccountRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/external_account_update_params.rbs b/sig/increase/models/external_account_update_params.rbs index 938b24b1..faeea42c 100644 --- a/sig/increase/models/external_account_update_params.rbs +++ b/sig/increase/models/external_account_update_params.rbs @@ -7,11 +7,11 @@ module Increase funding: Increase::Models::ExternalAccountUpdateParams::funding, status: Increase::Models::ExternalAccountUpdateParams::status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ExternalAccountUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ExternalAccountUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_holder: Increase::Models::ExternalAccountUpdateParams::account_holder? @@ -48,7 +48,7 @@ module Increase type account_holder = :business | :individual module AccountHolder - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is owned by a business. BUSINESS: :business @@ -62,7 +62,7 @@ module Increase type funding = :checking | :savings | :other module Funding - extend Increase::Enum + extend Increase::Internal::Type::Enum # A checking account. CHECKING: :checking @@ -79,7 +79,7 @@ module Increase type status = :active | :archived module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The External Account is active. ACTIVE: :active diff --git a/sig/increase/models/file.rbs b/sig/increase/models/file.rbs index 043010cf..e7c09a65 100644 --- a/sig/increase/models/file.rbs +++ b/sig/increase/models/file.rbs @@ -13,7 +13,7 @@ module Increase type: Increase::Models::File::type_ } - class File < Increase::BaseModel + class File < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor created_at: Time @@ -49,7 +49,7 @@ module Increase type direction = :to_increase | :from_increase module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # This File was sent by you to Increase. TO_INCREASE: :to_increase @@ -88,7 +88,7 @@ module Increase | :proof_of_authorization_request_submission module Purpose - extend Increase::Enum + extend Increase::Internal::Type::Enum # An image of the front of a check, used for check deposits. CHECK_IMAGE_FRONT: :check_image_front @@ -171,7 +171,7 @@ module Increase type type_ = :file module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum FILE: :file diff --git a/sig/increase/models/file_create_params.rbs b/sig/increase/models/file_create_params.rbs index bd68fdd8..992a88c7 100644 --- a/sig/increase/models/file_create_params.rbs +++ b/sig/increase/models/file_create_params.rbs @@ -6,11 +6,11 @@ module Increase purpose: Increase::Models::FileCreateParams::purpose, description: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class FileCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor file: IO | StringIO @@ -48,7 +48,7 @@ module Increase | :proof_of_authorization_request_submission module Purpose - extend Increase::Enum + extend Increase::Internal::Type::Enum # An image of the front of a check, used for check deposits. CHECK_IMAGE_FRONT: :check_image_front diff --git a/sig/increase/models/file_link.rbs b/sig/increase/models/file_link.rbs index 9a28c506..79e03c04 100644 --- a/sig/increase/models/file_link.rbs +++ b/sig/increase/models/file_link.rbs @@ -11,7 +11,7 @@ module Increase unauthenticated_url: String } - class FileLink < Increase::BaseModel + class FileLink < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor created_at: Time @@ -41,7 +41,7 @@ module Increase type type_ = :file_link module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum FILE_LINK: :file_link diff --git a/sig/increase/models/file_link_create_params.rbs b/sig/increase/models/file_link_create_params.rbs index b6abfe7a..7555fbef 100644 --- a/sig/increase/models/file_link_create_params.rbs +++ b/sig/increase/models/file_link_create_params.rbs @@ -1,11 +1,12 @@ module Increase module Models type file_link_create_params = - { file_id: String, expires_at: Time } & Increase::request_parameters + { file_id: String, expires_at: Time } + & Increase::Internal::Type::request_parameters - class FileLinkCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileLinkCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor file_id: String diff --git a/sig/increase/models/file_list_params.rbs b/sig/increase/models/file_list_params.rbs index 1720527e..c5a62ddb 100644 --- a/sig/increase/models/file_list_params.rbs +++ b/sig/increase/models/file_list_params.rbs @@ -8,11 +8,11 @@ module Increase limit: Integer, purpose: Increase::Models::FileListParams::Purpose } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class FileListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::FileListParams::CreatedAt? @@ -52,7 +52,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -82,7 +82,7 @@ module Increase type purpose = { in_: ::Array[Increase::Models::FileListParams::Purpose::in_] } - class Purpose < Increase::BaseModel + class Purpose < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::FileListParams::Purpose::in_]? def in_=: ( @@ -123,7 +123,7 @@ module Increase | :proof_of_authorization_request_submission module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # An image of the front of a check, used for check deposits. CHECK_IMAGE_FRONT: :check_image_front diff --git a/sig/increase/models/file_retrieve_params.rbs b/sig/increase/models/file_retrieve_params.rbs index a536fbaf..42908619 100644 --- a/sig/increase/models/file_retrieve_params.rbs +++ b/sig/increase/models/file_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type file_retrieve_params = { } & Increase::request_parameters + type file_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class FileRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class FileRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/group.rbs b/sig/increase/models/group.rbs index b8424e58..94975f77 100644 --- a/sig/increase/models/group.rbs +++ b/sig/increase/models/group.rbs @@ -9,7 +9,7 @@ module Increase type: Increase::Models::Group::type_ } - class Group < Increase::BaseModel + class Group < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor ach_debit_status: Increase::Models::Group::ach_debit_status @@ -33,7 +33,7 @@ module Increase type ach_debit_status = :disabled | :enabled module ACHDebitStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Group cannot make ACH debits. DISABLED: :disabled @@ -47,7 +47,7 @@ module Increase type activation_status = :unactivated | :activated module ActivationStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Group is not activated. UNACTIVATED: :unactivated @@ -61,7 +61,7 @@ module Increase type type_ = :group module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum GROUP: :group diff --git a/sig/increase/models/group_retrieve_params.rbs b/sig/increase/models/group_retrieve_params.rbs index 78034ea1..0fadf538 100644 --- a/sig/increase/models/group_retrieve_params.rbs +++ b/sig/increase/models/group_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type group_retrieve_params = { } & Increase::request_parameters + type group_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class GroupRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class GroupRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/inbound_ach_transfer.rbs b/sig/increase/models/inbound_ach_transfer.rbs index f4daad9b..d14492e3 100644 --- a/sig/increase/models/inbound_ach_transfer.rbs +++ b/sig/increase/models/inbound_ach_transfer.rbs @@ -31,7 +31,7 @@ module Increase type: Increase::Models::InboundACHTransfer::type_ } - class InboundACHTransfer < Increase::BaseModel + class InboundACHTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor acceptance: Increase::Models::InboundACHTransfer::Acceptance? @@ -120,7 +120,7 @@ module Increase type acceptance = { accepted_at: Time, transaction_id: String } - class Acceptance < Increase::BaseModel + class Acceptance < Increase::Internal::Type::BaseModel attr_accessor accepted_at: Time attr_accessor transaction_id: String @@ -136,7 +136,7 @@ module Increase freeform: Increase::Models::InboundACHTransfer::Addenda::Freeform? } - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::InboundACHTransfer::Addenda::category attr_accessor freeform: Increase::Models::InboundACHTransfer::Addenda::Freeform? @@ -151,7 +151,7 @@ module Increase type category = :freeform module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured addendum. FREEFORM: :freeform @@ -164,7 +164,7 @@ module Increase entries: ::Array[Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry] } - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel attr_accessor entries: ::Array[Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry] def initialize: ( @@ -175,7 +175,7 @@ module Increase type entry = { payment_related_information: String } - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel attr_accessor payment_related_information: String def initialize: (payment_related_information: String) -> void @@ -192,7 +192,7 @@ module Increase reason: Increase::Models::InboundACHTransfer::Decline::reason } - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel attr_accessor declined_at: Time attr_accessor declined_transaction_id: String @@ -227,7 +227,7 @@ module Increase | :corporate_customer_advised_not_authorized module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACH_ROUTE_CANCELED: :ach_route_canceled @@ -287,7 +287,7 @@ module Increase type direction = :credit | :debit module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # Credit CREDIT: :credit @@ -301,7 +301,7 @@ module Increase type expected_settlement_schedule = :same_day | :future_dated module ExpectedSettlementSchedule - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is expected to settle same-day. SAME_DAY: :same_day @@ -349,7 +349,7 @@ module Increase receiving_depository_financial_institution_name: String } - class InternationalAddenda < Increase::BaseModel + class InternationalAddenda < Increase::Internal::Type::BaseModel attr_accessor destination_country_code: String attr_accessor destination_currency_code: String @@ -458,7 +458,7 @@ module Increase :fixed_to_variable | :variable_to_fixed | :fixed_to_fixed module ForeignExchangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The originator chose an amount in their own currency. The settled amount in USD was converted using the exchange rate. FIXED_TO_VARIABLE: :fixed_to_variable @@ -476,7 +476,7 @@ module Increase :foreign_exchange_rate | :foreign_exchange_reference_number | :blank module ForeignExchangeReferenceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # The ACH file contains a foreign exchange rate. FOREIGN_EXCHANGE_RATE: :foreign_exchange_rate @@ -513,7 +513,7 @@ module Increase | :internet_initiated module InternationalTransactionTypeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Sent as `ANN` in the Nacha file. ANNUITY: :annuity @@ -582,7 +582,7 @@ module Increase :national_clearing_system_number | :bic_code | :iban module OriginatingDepositoryFinancialInstitutionIDQualifier - extend Increase::Enum + extend Increase::Internal::Type::Enum # A domestic clearing system number. In the US, for example, this is the American Banking Association (ABA) routing number. NATIONAL_CLEARING_SYSTEM_NUMBER: :national_clearing_system_number @@ -600,7 +600,7 @@ module Increase :national_clearing_system_number | :bic_code | :iban module ReceivingDepositoryFinancialInstitutionIDQualifier - extend Increase::Enum + extend Increase::Internal::Type::Enum # A domestic clearing system number. In the US, for example, this is the American Banking Association (ABA) routing number. NATIONAL_CLEARING_SYSTEM_NUMBER: :national_clearing_system_number @@ -618,7 +618,7 @@ module Increase type notification_of_change = { updated_account_number: String?, updated_routing_number: String? } - class NotificationOfChange < Increase::BaseModel + class NotificationOfChange < Increase::Internal::Type::BaseModel attr_accessor updated_account_number: String? attr_accessor updated_routing_number: String? @@ -650,7 +650,7 @@ module Increase | :international_ach_transaction module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT: :corporate_credit_or_debit @@ -706,7 +706,7 @@ module Increase type status = :pending | :declined | :accepted | :returned module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound ACH Transfer is awaiting action, will transition automatically if no action is taken. PENDING: :pending @@ -730,7 +730,7 @@ module Increase transaction_id: String } - class TransferReturn < Increase::BaseModel + class TransferReturn < Increase::Internal::Type::BaseModel attr_accessor reason: Increase::Models::InboundACHTransfer::TransferReturn::reason attr_accessor returned_at: Time @@ -758,7 +758,7 @@ module Increase | :corporate_customer_advised_not_authorized module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The customer's account has insufficient funds. This reason is only allowed for debits. The Nacha return code is R01. INSUFFICIENT_FUNDS: :insufficient_funds @@ -797,7 +797,7 @@ module Increase type type_ = :inbound_ach_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_ACH_TRANSFER: :inbound_ach_transfer diff --git a/sig/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbs b/sig/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbs index 272a6b32..a4c27570 100644 --- a/sig/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbs +++ b/sig/increase/models/inbound_ach_transfer_create_notification_of_change_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type inbound_ach_transfer_create_notification_of_change_params = { updated_account_number: String, updated_routing_number: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundACHTransferCreateNotificationOfChangeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferCreateNotificationOfChangeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader updated_account_number: String? diff --git a/sig/increase/models/inbound_ach_transfer_decline_params.rbs b/sig/increase/models/inbound_ach_transfer_decline_params.rbs index f29d302f..64d14146 100644 --- a/sig/increase/models/inbound_ach_transfer_decline_params.rbs +++ b/sig/increase/models/inbound_ach_transfer_decline_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type inbound_ach_transfer_decline_params = { reason: Increase::Models::InboundACHTransferDeclineParams::reason } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundACHTransferDeclineParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferDeclineParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader reason: Increase::Models::InboundACHTransferDeclineParams::reason? @@ -34,7 +34,7 @@ module Increase | :corporate_customer_advised_not_authorized module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The customer's account has insufficient funds. This reason is only allowed for debits. The Nacha return code is R01. INSUFFICIENT_FUNDS: :insufficient_funds diff --git a/sig/increase/models/inbound_ach_transfer_list_params.rbs b/sig/increase/models/inbound_ach_transfer_list_params.rbs index a6d65e35..575e0c1d 100644 --- a/sig/increase/models/inbound_ach_transfer_list_params.rbs +++ b/sig/increase/models/inbound_ach_transfer_list_params.rbs @@ -9,11 +9,11 @@ module Increase limit: Integer, status: Increase::Models::InboundACHTransferListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundACHTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -58,7 +58,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -90,7 +90,7 @@ module Increase in_: ::Array[Increase::Models::InboundACHTransferListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::InboundACHTransferListParams::Status::in_]? def in_=: ( @@ -106,7 +106,7 @@ module Increase type in_ = :pending | :declined | :accepted | :returned module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound ACH Transfer is awaiting action, will transition automatically if no action is taken. PENDING: :pending diff --git a/sig/increase/models/inbound_ach_transfer_retrieve_params.rbs b/sig/increase/models/inbound_ach_transfer_retrieve_params.rbs index d95c1e4b..efad1dbd 100644 --- a/sig/increase/models/inbound_ach_transfer_retrieve_params.rbs +++ b/sig/increase/models/inbound_ach_transfer_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type inbound_ach_transfer_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class InboundACHTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/inbound_ach_transfer_transfer_return_params.rbs b/sig/increase/models/inbound_ach_transfer_transfer_return_params.rbs index 6c2a7bbc..8598e6ae 100644 --- a/sig/increase/models/inbound_ach_transfer_transfer_return_params.rbs +++ b/sig/increase/models/inbound_ach_transfer_transfer_return_params.rbs @@ -4,11 +4,11 @@ module Increase { reason: Increase::Models::InboundACHTransferTransferReturnParams::reason } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundACHTransferTransferReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferTransferReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor reason: Increase::Models::InboundACHTransferTransferReturnParams::reason @@ -32,7 +32,7 @@ module Increase | :corporate_customer_advised_not_authorized module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The customer's account has insufficient funds. This reason is only allowed for debits. The Nacha return code is R01. INSUFFICIENT_FUNDS: :insufficient_funds diff --git a/sig/increase/models/inbound_check_deposit.rbs b/sig/increase/models/inbound_check_deposit.rbs index 214dc6fb..823186b6 100644 --- a/sig/increase/models/inbound_check_deposit.rbs +++ b/sig/increase/models/inbound_check_deposit.rbs @@ -24,7 +24,7 @@ module Increase type: Increase::Models::InboundCheckDeposit::type_ } - class InboundCheckDeposit < Increase::BaseModel + class InboundCheckDeposit < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor accepted_at: Time? @@ -98,7 +98,7 @@ module Increase transaction_id: String } - class Adjustment < Increase::BaseModel + class Adjustment < Increase::Internal::Type::BaseModel attr_accessor adjusted_at: Time attr_accessor amount: Integer @@ -123,7 +123,7 @@ module Increase | :non_conforming_item module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The return was initiated too late and the receiving institution has responded with a Late Return Claim. LATE_RETURN: :late_return @@ -144,7 +144,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -174,7 +174,7 @@ module Increase transaction_id: String } - class DepositReturn < Increase::BaseModel + class DepositReturn < Increase::Internal::Type::BaseModel attr_accessor reason: Increase::Models::InboundCheckDeposit::DepositReturn::reason attr_accessor returned_at: Time @@ -197,7 +197,7 @@ module Increase | :endorsement_irregular module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check was altered or fictitious. ALTERED_OR_FICTITIOUS: :altered_or_fictitious @@ -222,7 +222,7 @@ module Increase :name_matches | :does_not_match | :not_evaluated module PayeeNameAnalysis - extend Increase::Enum + extend Increase::Internal::Type::Enum # The details on the check match the recipient name of the check transfer. NAME_MATCHES: :name_matches @@ -240,7 +240,7 @@ module Increase :pending | :accepted | :declined | :returned | :requires_attention module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound Check Deposit is pending. PENDING: :pending @@ -263,7 +263,7 @@ module Increase type type_ = :inbound_check_deposit module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_CHECK_DEPOSIT: :inbound_check_deposit diff --git a/sig/increase/models/inbound_check_deposit_decline_params.rbs b/sig/increase/models/inbound_check_deposit_decline_params.rbs index 9e1c721d..7f22a328 100644 --- a/sig/increase/models/inbound_check_deposit_decline_params.rbs +++ b/sig/increase/models/inbound_check_deposit_decline_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type inbound_check_deposit_decline_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class InboundCheckDepositDeclineParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositDeclineParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/inbound_check_deposit_list_params.rbs b/sig/increase/models/inbound_check_deposit_list_params.rbs index 8c16d045..16c9a103 100644 --- a/sig/increase/models/inbound_check_deposit_list_params.rbs +++ b/sig/increase/models/inbound_check_deposit_list_params.rbs @@ -8,11 +8,11 @@ module Increase cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundCheckDepositListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -50,7 +50,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/inbound_check_deposit_retrieve_params.rbs b/sig/increase/models/inbound_check_deposit_retrieve_params.rbs index cf2438e0..dcfb9903 100644 --- a/sig/increase/models/inbound_check_deposit_retrieve_params.rbs +++ b/sig/increase/models/inbound_check_deposit_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type inbound_check_deposit_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class InboundCheckDepositRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/inbound_check_deposit_return_params.rbs b/sig/increase/models/inbound_check_deposit_return_params.rbs index 6bb3ff41..eac9b2e6 100644 --- a/sig/increase/models/inbound_check_deposit_return_params.rbs +++ b/sig/increase/models/inbound_check_deposit_return_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type inbound_check_deposit_return_params = { reason: Increase::Models::InboundCheckDepositReturnParams::reason } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundCheckDepositReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor reason: Increase::Models::InboundCheckDepositReturnParams::reason @@ -25,7 +25,7 @@ module Increase | :endorsement_irregular module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check was altered or fictitious. ALTERED_OR_FICTITIOUS: :altered_or_fictitious diff --git a/sig/increase/models/inbound_mail_item.rbs b/sig/increase/models/inbound_mail_item.rbs index 19170c3b..886e9c76 100644 --- a/sig/increase/models/inbound_mail_item.rbs +++ b/sig/increase/models/inbound_mail_item.rbs @@ -12,7 +12,7 @@ module Increase type: Increase::Models::InboundMailItem::type_ } - class InboundMailItem < Increase::BaseModel + class InboundMailItem < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor created_at: Time @@ -46,7 +46,7 @@ module Increase :no_matching_lockbox | :no_check | :lockbox_not_active module RejectionReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The mail item does not match any lockbox. NO_MATCHING_LOCKBOX: :no_matching_lockbox @@ -63,7 +63,7 @@ module Increase type status = :pending | :processed | :rejected module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The mail item is pending processing. PENDING: :pending @@ -80,7 +80,7 @@ module Increase type type_ = :inbound_mail_item module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_MAIL_ITEM: :inbound_mail_item diff --git a/sig/increase/models/inbound_mail_item_list_params.rbs b/sig/increase/models/inbound_mail_item_list_params.rbs index 32bd635e..41e3af7b 100644 --- a/sig/increase/models/inbound_mail_item_list_params.rbs +++ b/sig/increase/models/inbound_mail_item_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, lockbox_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundMailItemListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundMailItemListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::InboundMailItemListParams::CreatedAt? @@ -44,7 +44,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/inbound_mail_item_retrieve_params.rbs b/sig/increase/models/inbound_mail_item_retrieve_params.rbs index 06bcbaf9..17861bba 100644 --- a/sig/increase/models/inbound_mail_item_retrieve_params.rbs +++ b/sig/increase/models/inbound_mail_item_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type inbound_mail_item_retrieve_params = { } & Increase::request_parameters + type inbound_mail_item_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class InboundMailItemRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundMailItemRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/inbound_real_time_payments_transfer.rbs b/sig/increase/models/inbound_real_time_payments_transfer.rbs index 12626c17..f1d7eea0 100644 --- a/sig/increase/models/inbound_real_time_payments_transfer.rbs +++ b/sig/increase/models/inbound_real_time_payments_transfer.rbs @@ -20,7 +20,7 @@ module Increase type: Increase::Models::InboundRealTimePaymentsTransfer::type_ } - class InboundRealTimePaymentsTransfer < Increase::BaseModel + class InboundRealTimePaymentsTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -76,7 +76,7 @@ module Increase type confirmation = { confirmed_at: Time, transaction_id: String } - class Confirmation < Increase::BaseModel + class Confirmation < Increase::Internal::Type::BaseModel attr_accessor confirmed_at: Time attr_accessor transaction_id: String @@ -89,7 +89,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -119,7 +119,7 @@ module Increase reason: Increase::Models::InboundRealTimePaymentsTransfer::Decline::reason } - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel attr_accessor declined_at: Time attr_accessor declined_transaction_id: String @@ -143,7 +143,7 @@ module Increase | :real_time_payments_not_enabled module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED: :account_number_canceled @@ -170,7 +170,7 @@ module Increase type status = :pending_confirming | :timed_out | :confirmed | :declined module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending confirmation. PENDING_CONFIRMING: :pending_confirming @@ -190,7 +190,7 @@ module Increase type type_ = :inbound_real_time_payments_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_REAL_TIME_PAYMENTS_TRANSFER: :inbound_real_time_payments_transfer diff --git a/sig/increase/models/inbound_real_time_payments_transfer_list_params.rbs b/sig/increase/models/inbound_real_time_payments_transfer_list_params.rbs index bde0b7b2..fa93879b 100644 --- a/sig/increase/models/inbound_real_time_payments_transfer_list_params.rbs +++ b/sig/increase/models/inbound_real_time_payments_transfer_list_params.rbs @@ -8,11 +8,11 @@ module Increase cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundRealTimePaymentsTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundRealTimePaymentsTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -50,7 +50,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbs b/sig/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbs index b514b153..ead85e3d 100644 --- a/sig/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbs +++ b/sig/increase/models/inbound_real_time_payments_transfer_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type inbound_real_time_payments_transfer_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class InboundRealTimePaymentsTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundRealTimePaymentsTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/inbound_wire_drawdown_request.rbs b/sig/increase/models/inbound_wire_drawdown_request.rbs index dd050c35..57ffa1a1 100644 --- a/sig/increase/models/inbound_wire_drawdown_request.rbs +++ b/sig/increase/models/inbound_wire_drawdown_request.rbs @@ -27,7 +27,7 @@ module Increase type: Increase::Models::InboundWireDrawdownRequest::type_ } - class InboundWireDrawdownRequest < Increase::BaseModel + class InboundWireDrawdownRequest < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -105,7 +105,7 @@ module Increase type type_ = :inbound_wire_drawdown_request module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_WIRE_DRAWDOWN_REQUEST: :inbound_wire_drawdown_request diff --git a/sig/increase/models/inbound_wire_drawdown_request_list_params.rbs b/sig/increase/models/inbound_wire_drawdown_request_list_params.rbs index 7215f932..849c1a1d 100644 --- a/sig/increase/models/inbound_wire_drawdown_request_list_params.rbs +++ b/sig/increase/models/inbound_wire_drawdown_request_list_params.rbs @@ -1,11 +1,12 @@ module Increase module Models type inbound_wire_drawdown_request_list_params = - { cursor: String, limit: Integer } & Increase::request_parameters + { cursor: String, limit: Integer } + & Increase::Internal::Type::request_parameters - class InboundWireDrawdownRequestListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireDrawdownRequestListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? diff --git a/sig/increase/models/inbound_wire_drawdown_request_retrieve_params.rbs b/sig/increase/models/inbound_wire_drawdown_request_retrieve_params.rbs index 533d9c1f..c42b14b3 100644 --- a/sig/increase/models/inbound_wire_drawdown_request_retrieve_params.rbs +++ b/sig/increase/models/inbound_wire_drawdown_request_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type inbound_wire_drawdown_request_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class InboundWireDrawdownRequestRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireDrawdownRequestRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/inbound_wire_transfer.rbs b/sig/increase/models/inbound_wire_transfer.rbs index 9704ce9c..f793021e 100644 --- a/sig/increase/models/inbound_wire_transfer.rbs +++ b/sig/increase/models/inbound_wire_transfer.rbs @@ -29,7 +29,7 @@ module Increase type: Increase::Models::InboundWireTransfer::type_ } - class InboundWireTransfer < Increase::BaseModel + class InboundWireTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -113,7 +113,7 @@ module Increase type status = :pending | :accepted | :declined | :reversed module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound Wire Transfer is awaiting action, will transition automatically if no action is taken. PENDING: :pending @@ -133,7 +133,7 @@ module Increase type type_ = :inbound_wire_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_WIRE_TRANSFER: :inbound_wire_transfer diff --git a/sig/increase/models/inbound_wire_transfer_list_params.rbs b/sig/increase/models/inbound_wire_transfer_list_params.rbs index 4eb304cc..afce090c 100644 --- a/sig/increase/models/inbound_wire_transfer_list_params.rbs +++ b/sig/increase/models/inbound_wire_transfer_list_params.rbs @@ -9,11 +9,11 @@ module Increase limit: Integer, status: Increase::Models::InboundWireTransferListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundWireTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -58,7 +58,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -90,7 +90,7 @@ module Increase in_: ::Array[Increase::Models::InboundWireTransferListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::InboundWireTransferListParams::Status::in_]? def in_=: ( @@ -106,7 +106,7 @@ module Increase type in_ = :pending | :accepted | :declined | :reversed module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Inbound Wire Transfer is awaiting action, will transition automatically if no action is taken. PENDING: :pending diff --git a/sig/increase/models/inbound_wire_transfer_retrieve_params.rbs b/sig/increase/models/inbound_wire_transfer_retrieve_params.rbs index 3eba6b89..920daa70 100644 --- a/sig/increase/models/inbound_wire_transfer_retrieve_params.rbs +++ b/sig/increase/models/inbound_wire_transfer_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type inbound_wire_transfer_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class InboundWireTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/intrafi_account_enrollment.rbs b/sig/increase/models/intrafi_account_enrollment.rbs index 9406a600..39224c3a 100644 --- a/sig/increase/models/intrafi_account_enrollment.rbs +++ b/sig/increase/models/intrafi_account_enrollment.rbs @@ -11,7 +11,7 @@ module Increase type: Increase::Models::IntrafiAccountEnrollment::type_ } - class IntrafiAccountEnrollment < Increase::BaseModel + class IntrafiAccountEnrollment < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -46,7 +46,7 @@ module Increase | :requires_attention module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account is being added to the IntraFi network. PENDING_ENROLLING: :pending_enrolling @@ -69,7 +69,7 @@ module Increase type type_ = :intrafi_account_enrollment module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INTRAFI_ACCOUNT_ENROLLMENT: :intrafi_account_enrollment diff --git a/sig/increase/models/intrafi_account_enrollment_create_params.rbs b/sig/increase/models/intrafi_account_enrollment_create_params.rbs index 65dc0992..4943e98a 100644 --- a/sig/increase/models/intrafi_account_enrollment_create_params.rbs +++ b/sig/increase/models/intrafi_account_enrollment_create_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type intrafi_account_enrollment_create_params = { account_id: String, email_address: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class IntrafiAccountEnrollmentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/intrafi_account_enrollment_list_params.rbs b/sig/increase/models/intrafi_account_enrollment_list_params.rbs index 7ba794ce..c4125f16 100644 --- a/sig/increase/models/intrafi_account_enrollment_list_params.rbs +++ b/sig/increase/models/intrafi_account_enrollment_list_params.rbs @@ -8,11 +8,11 @@ module Increase limit: Integer, status: Increase::Models::IntrafiAccountEnrollmentListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class IntrafiAccountEnrollmentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -52,7 +52,7 @@ module Increase in_: ::Array[Increase::Models::IntrafiAccountEnrollmentListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::IntrafiAccountEnrollmentListParams::Status::in_]? def in_=: ( @@ -73,7 +73,7 @@ module Increase | :requires_attention module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account is being added to the IntraFi network. PENDING_ENROLLING: :pending_enrolling diff --git a/sig/increase/models/intrafi_account_enrollment_retrieve_params.rbs b/sig/increase/models/intrafi_account_enrollment_retrieve_params.rbs index 0296bab7..61435e74 100644 --- a/sig/increase/models/intrafi_account_enrollment_retrieve_params.rbs +++ b/sig/increase/models/intrafi_account_enrollment_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type intrafi_account_enrollment_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class IntrafiAccountEnrollmentRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/intrafi_account_enrollment_unenroll_params.rbs b/sig/increase/models/intrafi_account_enrollment_unenroll_params.rbs index c4d09b8f..43969d96 100644 --- a/sig/increase/models/intrafi_account_enrollment_unenroll_params.rbs +++ b/sig/increase/models/intrafi_account_enrollment_unenroll_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type intrafi_account_enrollment_unenroll_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class IntrafiAccountEnrollmentUnenrollParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiAccountEnrollmentUnenrollParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/intrafi_balance.rbs b/sig/increase/models/intrafi_balance.rbs index 81a80333..53741efd 100644 --- a/sig/increase/models/intrafi_balance.rbs +++ b/sig/increase/models/intrafi_balance.rbs @@ -10,7 +10,7 @@ module Increase type: Increase::Models::IntrafiBalance::type_ } - class IntrafiBalance < Increase::BaseModel + class IntrafiBalance < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor balances: ::Array[Increase::Models::IntrafiBalance::Balance] @@ -43,7 +43,7 @@ module Increase fdic_certificate_number: String } - class Balance < Increase::BaseModel + class Balance < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor balance: Integer @@ -66,7 +66,7 @@ module Increase type bank_location = { city: String, state: String } - class BankLocation < Increase::BaseModel + class BankLocation < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor state: String @@ -80,7 +80,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -106,7 +106,7 @@ module Increase type type_ = :intrafi_balance module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INTRAFI_BALANCE: :intrafi_balance diff --git a/sig/increase/models/intrafi_balance_intrafi_balance_params.rbs b/sig/increase/models/intrafi_balance_intrafi_balance_params.rbs index 9249db0a..cea2889d 100644 --- a/sig/increase/models/intrafi_balance_intrafi_balance_params.rbs +++ b/sig/increase/models/intrafi_balance_intrafi_balance_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type intrafi_balance_intrafi_balance_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class IntrafiBalanceIntrafiBalanceParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiBalanceIntrafiBalanceParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/intrafi_exclusion.rbs b/sig/increase/models/intrafi_exclusion.rbs index f86cbb5f..5736ec0b 100644 --- a/sig/increase/models/intrafi_exclusion.rbs +++ b/sig/increase/models/intrafi_exclusion.rbs @@ -14,7 +14,7 @@ module Increase type: Increase::Models::IntrafiExclusion::type_ } - class IntrafiExclusion < Increase::BaseModel + class IntrafiExclusion < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor bank_name: String @@ -53,7 +53,7 @@ module Increase type status = :pending | :completed | :archived module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The exclusion is being added to the IntraFi network. PENDING: :pending @@ -70,7 +70,7 @@ module Increase type type_ = :intrafi_exclusion module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INTRAFI_EXCLUSION: :intrafi_exclusion diff --git a/sig/increase/models/intrafi_exclusion_archive_params.rbs b/sig/increase/models/intrafi_exclusion_archive_params.rbs index 9efd6df3..aaaa240a 100644 --- a/sig/increase/models/intrafi_exclusion_archive_params.rbs +++ b/sig/increase/models/intrafi_exclusion_archive_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type intrafi_exclusion_archive_params = { } & Increase::request_parameters + type intrafi_exclusion_archive_params = + { } & Increase::Internal::Type::request_parameters - class IntrafiExclusionArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/intrafi_exclusion_create_params.rbs b/sig/increase/models/intrafi_exclusion_create_params.rbs index 1f568a7a..aa398366 100644 --- a/sig/increase/models/intrafi_exclusion_create_params.rbs +++ b/sig/increase/models/intrafi_exclusion_create_params.rbs @@ -1,11 +1,12 @@ module Increase module Models type intrafi_exclusion_create_params = - { bank_name: String, entity_id: String } & Increase::request_parameters + { bank_name: String, entity_id: String } + & Increase::Internal::Type::request_parameters - class IntrafiExclusionCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor bank_name: String diff --git a/sig/increase/models/intrafi_exclusion_list_params.rbs b/sig/increase/models/intrafi_exclusion_list_params.rbs index 89cd14a4..83e46e30 100644 --- a/sig/increase/models/intrafi_exclusion_list_params.rbs +++ b/sig/increase/models/intrafi_exclusion_list_params.rbs @@ -7,11 +7,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class IntrafiExclusionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? diff --git a/sig/increase/models/intrafi_exclusion_retrieve_params.rbs b/sig/increase/models/intrafi_exclusion_retrieve_params.rbs index 7db36c7b..91a017ab 100644 --- a/sig/increase/models/intrafi_exclusion_retrieve_params.rbs +++ b/sig/increase/models/intrafi_exclusion_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type intrafi_exclusion_retrieve_params = { } & Increase::request_parameters + type intrafi_exclusion_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class IntrafiExclusionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class IntrafiExclusionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/lockbox.rbs b/sig/increase/models/lockbox.rbs index a1fa458f..5f919bc7 100644 --- a/sig/increase/models/lockbox.rbs +++ b/sig/increase/models/lockbox.rbs @@ -13,7 +13,7 @@ module Increase type: Increase::Models::Lockbox::type_ } - class Lockbox < Increase::BaseModel + class Lockbox < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -56,7 +56,7 @@ module Increase state: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -84,7 +84,7 @@ module Increase type status = :active | :inactive module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # This Lockbox is active. Checks mailed to it will be deposited automatically. ACTIVE: :active @@ -98,7 +98,7 @@ module Increase type type_ = :lockbox module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum LOCKBOX: :lockbox diff --git a/sig/increase/models/lockbox_create_params.rbs b/sig/increase/models/lockbox_create_params.rbs index 794f490a..0c460fcf 100644 --- a/sig/increase/models/lockbox_create_params.rbs +++ b/sig/increase/models/lockbox_create_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type lockbox_create_params = { account_id: String, description: String, recipient_name: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class LockboxCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/lockbox_list_params.rbs b/sig/increase/models/lockbox_list_params.rbs index b5098d44..21dbc3f4 100644 --- a/sig/increase/models/lockbox_list_params.rbs +++ b/sig/increase/models/lockbox_list_params.rbs @@ -8,11 +8,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class LockboxListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -50,7 +50,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/lockbox_retrieve_params.rbs b/sig/increase/models/lockbox_retrieve_params.rbs index 7f771fc3..aa44315f 100644 --- a/sig/increase/models/lockbox_retrieve_params.rbs +++ b/sig/increase/models/lockbox_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type lockbox_retrieve_params = { } & Increase::request_parameters + type lockbox_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class LockboxRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/lockbox_update_params.rbs b/sig/increase/models/lockbox_update_params.rbs index 5fc91d1a..700fd91e 100644 --- a/sig/increase/models/lockbox_update_params.rbs +++ b/sig/increase/models/lockbox_update_params.rbs @@ -6,11 +6,11 @@ module Increase recipient_name: String, status: Increase::Models::LockboxUpdateParams::status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class LockboxUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class LockboxUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader description: String? @@ -38,7 +38,7 @@ module Increase type status = :active | :inactive module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # This Lockbox is active. Checks mailed to it will be deposited automatically. ACTIVE: :active diff --git a/sig/increase/models/oauth_application.rbs b/sig/increase/models/oauth_application.rbs index 361da35b..312766a7 100644 --- a/sig/increase/models/oauth_application.rbs +++ b/sig/increase/models/oauth_application.rbs @@ -11,7 +11,7 @@ module Increase type: Increase::Models::OAuthApplication::type_ } - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor client_id: String @@ -41,7 +41,7 @@ module Increase type status = :active | :deleted module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The application is active and can be used by your users. ACTIVE: :active @@ -55,7 +55,7 @@ module Increase type type_ = :oauth_application module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum OAUTH_APPLICATION: :oauth_application diff --git a/sig/increase/models/oauth_application_list_params.rbs b/sig/increase/models/oauth_application_list_params.rbs index 73f92453..ca9ba3ba 100644 --- a/sig/increase/models/oauth_application_list_params.rbs +++ b/sig/increase/models/oauth_application_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, status: Increase::Models::OAuthApplicationListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class OAuthApplicationListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthApplicationListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::OAuthApplicationListParams::CreatedAt? @@ -46,7 +46,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -78,7 +78,7 @@ module Increase in_: ::Array[Increase::Models::OAuthApplicationListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::OAuthApplicationListParams::Status::in_]? def in_=: ( @@ -94,7 +94,7 @@ module Increase type in_ = :active | :deleted module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The application is active and can be used by your users. ACTIVE: :active diff --git a/sig/increase/models/oauth_application_retrieve_params.rbs b/sig/increase/models/oauth_application_retrieve_params.rbs index 4393372f..21674dd1 100644 --- a/sig/increase/models/oauth_application_retrieve_params.rbs +++ b/sig/increase/models/oauth_application_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type oauth_application_retrieve_params = { } & Increase::request_parameters + type oauth_application_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class OAuthApplicationRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthApplicationRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/oauth_connection.rbs b/sig/increase/models/oauth_connection.rbs index 055852e0..1ea7e09e 100644 --- a/sig/increase/models/oauth_connection.rbs +++ b/sig/increase/models/oauth_connection.rbs @@ -11,7 +11,7 @@ module Increase type: Increase::Models::OAuthConnection::type_ } - class OAuthConnection < Increase::BaseModel + class OAuthConnection < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor created_at: Time @@ -41,7 +41,7 @@ module Increase type status = :active | :inactive module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The OAuth connection is active. ACTIVE: :active @@ -55,7 +55,7 @@ module Increase type type_ = :oauth_connection module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum OAUTH_CONNECTION: :oauth_connection diff --git a/sig/increase/models/oauth_connection_list_params.rbs b/sig/increase/models/oauth_connection_list_params.rbs index 99b4e5fa..dca2c98f 100644 --- a/sig/increase/models/oauth_connection_list_params.rbs +++ b/sig/increase/models/oauth_connection_list_params.rbs @@ -7,11 +7,11 @@ module Increase oauth_application_id: String, status: Increase::Models::OAuthConnectionListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class OAuthConnectionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthConnectionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? @@ -46,7 +46,7 @@ module Increase in_: ::Array[Increase::Models::OAuthConnectionListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::OAuthConnectionListParams::Status::in_]? def in_=: ( @@ -62,7 +62,7 @@ module Increase type in_ = :active | :inactive module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The OAuth connection is active. ACTIVE: :active diff --git a/sig/increase/models/oauth_connection_retrieve_params.rbs b/sig/increase/models/oauth_connection_retrieve_params.rbs index 694bc710..5e0142b7 100644 --- a/sig/increase/models/oauth_connection_retrieve_params.rbs +++ b/sig/increase/models/oauth_connection_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type oauth_connection_retrieve_params = { } & Increase::request_parameters + type oauth_connection_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class OAuthConnectionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthConnectionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/oauth_token.rbs b/sig/increase/models/oauth_token.rbs index 0c879a64..9b0d5c2c 100644 --- a/sig/increase/models/oauth_token.rbs +++ b/sig/increase/models/oauth_token.rbs @@ -7,7 +7,7 @@ module Increase type: Increase::Models::OAuthToken::type_ } - class OAuthToken < Increase::BaseModel + class OAuthToken < Increase::Internal::Type::BaseModel attr_accessor access_token: String attr_accessor token_type: Increase::Models::OAuthToken::token_type @@ -25,7 +25,7 @@ module Increase type token_type = :bearer module TokenType - extend Increase::Enum + extend Increase::Internal::Type::Enum BEARER: :bearer @@ -35,7 +35,7 @@ module Increase type type_ = :oauth_token module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum OAUTH_TOKEN: :oauth_token diff --git a/sig/increase/models/oauth_token_create_params.rbs b/sig/increase/models/oauth_token_create_params.rbs index 1bf511d7..c79c9169 100644 --- a/sig/increase/models/oauth_token_create_params.rbs +++ b/sig/increase/models/oauth_token_create_params.rbs @@ -8,11 +8,11 @@ module Increase code: String, production_token: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class OAuthTokenCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class OAuthTokenCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor grant_type: Increase::Models::OAuthTokenCreateParams::grant_type @@ -46,7 +46,7 @@ module Increase type grant_type = :authorization_code | :production_token module GrantType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An OAuth authorization code. AUTHORIZATION_CODE: :authorization_code diff --git a/sig/increase/models/pending_transaction.rbs b/sig/increase/models/pending_transaction.rbs index 05ffed02..51417c78 100644 --- a/sig/increase/models/pending_transaction.rbs +++ b/sig/increase/models/pending_transaction.rbs @@ -16,7 +16,7 @@ module Increase type: Increase::Models::PendingTransaction::type_ } - class PendingTransaction < Increase::BaseModel + class PendingTransaction < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -61,7 +61,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -87,7 +87,7 @@ module Increase type route_type = :account_number | :card | :lockbox module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An Account Number. ACCOUNT_NUMBER: :account_number @@ -116,7 +116,7 @@ module Increase wire_transfer_instruction: Increase::Models::PendingTransaction::Source::WireTransferInstruction? } - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel attr_accessor account_transfer_instruction: Increase::Models::PendingTransaction::Source::AccountTransferInstruction? attr_accessor ach_transfer_instruction: Increase::Models::PendingTransaction::Source::ACHTransferInstruction? @@ -162,7 +162,7 @@ module Increase transfer_id: String } - class AccountTransferInstruction < Increase::BaseModel + class AccountTransferInstruction < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor currency: Increase::Models::PendingTransaction::Source::AccountTransferInstruction::currency @@ -180,7 +180,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -206,7 +206,7 @@ module Increase type ach_transfer_instruction = { amount: Integer, transfer_id: String } - class ACHTransferInstruction < Increase::BaseModel + class ACHTransferInstruction < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor transfer_id: String @@ -247,7 +247,7 @@ module Increase verification: Increase::Models::PendingTransaction::Source::CardAuthorization::Verification } - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor actioner: Increase::Models::PendingTransaction::Source::CardAuthorization::actioner @@ -337,7 +337,7 @@ module Increase type actioner = :user | :increase | :network module Actioner - extend Increase::Enum + extend Increase::Internal::Type::Enum # This object was actioned by the user through a real-time decision. USER: :user @@ -354,7 +354,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -380,7 +380,7 @@ module Increase type direction = :settlement | :refund module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT: :settlement @@ -397,7 +397,7 @@ module Increase visa: Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa? } - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::category attr_accessor visa: Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa? @@ -412,7 +412,7 @@ module Increase type category = :visa module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -427,7 +427,7 @@ module Increase stand_in_processing_reason: Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa::stand_in_processing_reason? } - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel attr_accessor electronic_commerce_indicator: Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa::electronic_commerce_indicator? attr_accessor point_of_service_entry_mode: Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Visa::point_of_service_entry_mode? @@ -453,7 +453,7 @@ module Increase | :non_secure_transaction module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER: :mail_phone_order @@ -495,7 +495,7 @@ module Increase | :integrated_circuit_card_no_cvv module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN: :unknown @@ -540,7 +540,7 @@ module Increase | :other module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR: :issuer_error @@ -575,7 +575,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -600,7 +600,7 @@ module Increase | :refund module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING: :account_funding @@ -626,7 +626,7 @@ module Increase type type_ = :card_authorization module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_AUTHORIZATION: :card_authorization @@ -639,7 +639,7 @@ module Increase cardholder_address: Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress } - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel attr_accessor card_verification_code: Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode attr_accessor cardholder_address: Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress @@ -656,7 +656,7 @@ module Increase result: Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode::result } - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode::result def initialize: ( @@ -668,7 +668,7 @@ module Increase type result = :not_checked | :match | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED: :not_checked @@ -692,7 +692,7 @@ module Increase result: Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::result } - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel attr_accessor actual_line1: String? attr_accessor actual_postal_code: String? @@ -722,7 +722,7 @@ module Increase | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED: :not_checked @@ -761,7 +761,7 @@ module Increase | :other module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. ACCOUNT_TRANSFER_INSTRUCTION: :account_transfer_instruction @@ -805,7 +805,7 @@ module Increase front_image_file_id: String } - class CheckDepositInstruction < Increase::BaseModel + class CheckDepositInstruction < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor back_image_file_id: String? @@ -829,7 +829,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -860,7 +860,7 @@ module Increase transfer_id: String } - class CheckTransferInstruction < Increase::BaseModel + class CheckTransferInstruction < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor currency: Increase::Models::PendingTransaction::Source::CheckTransferInstruction::currency @@ -878,7 +878,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -916,7 +916,7 @@ module Increase type: Increase::Models::PendingTransaction::Source::InboundFundsHold::type_ } - class InboundFundsHold < Increase::BaseModel + class InboundFundsHold < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -955,7 +955,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -981,7 +981,7 @@ module Increase type status = :held | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD: :held @@ -995,7 +995,7 @@ module Increase type type_ = :inbound_funds_hold module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD: :inbound_funds_hold @@ -1006,7 +1006,7 @@ module Increase type inbound_wire_transfer_reversal = { inbound_wire_transfer_id: String } - class InboundWireTransferReversal < Increase::BaseModel + class InboundWireTransferReversal < Increase::Internal::Type::BaseModel attr_accessor inbound_wire_transfer_id: String def initialize: (inbound_wire_transfer_id: String) -> void @@ -1017,7 +1017,7 @@ module Increase type real_time_payments_transfer_instruction = { amount: Integer, transfer_id: String } - class RealTimePaymentsTransferInstruction < Increase::BaseModel + class RealTimePaymentsTransferInstruction < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor transfer_id: String @@ -1036,7 +1036,7 @@ module Increase transfer_id: String } - class WireTransferInstruction < Increase::BaseModel + class WireTransferInstruction < Increase::Internal::Type::BaseModel attr_accessor account_number: String attr_accessor amount: Integer @@ -1062,7 +1062,7 @@ module Increase type status = :pending | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Pending Transaction is still awaiting confirmation. PENDING: :pending @@ -1076,7 +1076,7 @@ module Increase type type_ = :pending_transaction module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PENDING_TRANSACTION: :pending_transaction diff --git a/sig/increase/models/pending_transaction_list_params.rbs b/sig/increase/models/pending_transaction_list_params.rbs index a187a9a7..a4456244 100644 --- a/sig/increase/models/pending_transaction_list_params.rbs +++ b/sig/increase/models/pending_transaction_list_params.rbs @@ -10,11 +10,11 @@ module Increase route_id: String, status: Increase::Models::PendingTransactionListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PendingTransactionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PendingTransactionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -68,7 +68,7 @@ module Increase in_: ::Array[Increase::Models::PendingTransactionListParams::Category::in_] } - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::PendingTransactionListParams::Category::in_]? def in_=: ( @@ -94,7 +94,7 @@ module Increase | :other module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. ACCOUNT_TRANSFER_INSTRUCTION: :account_transfer_instruction @@ -133,7 +133,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -165,7 +165,7 @@ module Increase in_: ::Array[Increase::Models::PendingTransactionListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::PendingTransactionListParams::Status::in_]? def in_=: ( @@ -181,7 +181,7 @@ module Increase type in_ = :pending | :complete module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Pending Transaction is still awaiting confirmation. PENDING: :pending diff --git a/sig/increase/models/pending_transaction_retrieve_params.rbs b/sig/increase/models/pending_transaction_retrieve_params.rbs index 0a90bc40..be0a9cb8 100644 --- a/sig/increase/models/pending_transaction_retrieve_params.rbs +++ b/sig/increase/models/pending_transaction_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type pending_transaction_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class PendingTransactionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PendingTransactionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/physical_card.rbs b/sig/increase/models/physical_card.rbs index cef82e40..e788f5d0 100644 --- a/sig/increase/models/physical_card.rbs +++ b/sig/increase/models/physical_card.rbs @@ -13,7 +13,7 @@ module Increase type: Increase::Models::PhysicalCard::type_ } - class PhysicalCard < Increase::BaseModel + class PhysicalCard < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_id: String @@ -48,7 +48,7 @@ module Increase type cardholder = { first_name: String, last_name: String } - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel attr_accessor first_name: String attr_accessor last_name: String @@ -66,7 +66,7 @@ module Increase tracking: Increase::Models::PhysicalCard::Shipment::Tracking? } - class Shipment < Increase::BaseModel + class Shipment < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::PhysicalCard::Shipment::Address attr_accessor method_: Increase::Models::PhysicalCard::Shipment::method_ @@ -95,7 +95,7 @@ module Increase state: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -126,7 +126,7 @@ module Increase type method_ = :usps | :fedex_priority_overnight | :fedex_2_day module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # USPS Post with tracking. USPS: :usps @@ -150,7 +150,7 @@ module Increase | :returned module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card has not yet been shipped. PENDING: :pending @@ -184,7 +184,7 @@ module Increase shipped_at: Time } - class Tracking < Increase::BaseModel + class Tracking < Increase::Internal::Type::BaseModel attr_accessor number: String attr_accessor return_number: String? @@ -207,7 +207,7 @@ module Increase type status = :active | :disabled | :canceled module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card is active. ACTIVE: :active @@ -224,7 +224,7 @@ module Increase type type_ = :physical_card module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PHYSICAL_CARD: :physical_card diff --git a/sig/increase/models/physical_card_create_params.rbs b/sig/increase/models/physical_card_create_params.rbs index d81126d7..109eedbe 100644 --- a/sig/increase/models/physical_card_create_params.rbs +++ b/sig/increase/models/physical_card_create_params.rbs @@ -7,11 +7,11 @@ module Increase shipment: Increase::Models::PhysicalCardCreateParams::Shipment, physical_card_profile_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PhysicalCardCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor card_id: String @@ -35,7 +35,7 @@ module Increase type cardholder = { first_name: String, last_name: String } - class Cardholder < Increase::BaseModel + class Cardholder < Increase::Internal::Type::BaseModel attr_accessor first_name: String attr_accessor last_name: String @@ -51,7 +51,7 @@ module Increase method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_ } - class Shipment < Increase::BaseModel + class Shipment < Increase::Internal::Type::BaseModel attr_accessor address: Increase::Models::PhysicalCardCreateParams::Shipment::Address attr_accessor method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_ @@ -75,7 +75,7 @@ module Increase phone_number: String } - class Address < Increase::BaseModel + class Address < Increase::Internal::Type::BaseModel attr_accessor city: String attr_accessor line1: String @@ -115,7 +115,7 @@ module Increase type method_ = :usps | :fedex_priority_overnight | :fedex_2_day module Method - extend Increase::Enum + extend Increase::Internal::Type::Enum # USPS Post with tracking. USPS: :usps diff --git a/sig/increase/models/physical_card_list_params.rbs b/sig/increase/models/physical_card_list_params.rbs index 5a96e3ab..a41a9a51 100644 --- a/sig/increase/models/physical_card_list_params.rbs +++ b/sig/increase/models/physical_card_list_params.rbs @@ -8,11 +8,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PhysicalCardListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader card_id: String? @@ -50,7 +50,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/physical_card_profile.rbs b/sig/increase/models/physical_card_profile.rbs index f5241f58..25bee7ff 100644 --- a/sig/increase/models/physical_card_profile.rbs +++ b/sig/increase/models/physical_card_profile.rbs @@ -16,7 +16,7 @@ module Increase type: Increase::Models::PhysicalCardProfile::type_ } - class PhysicalCardProfile < Increase::BaseModel + class PhysicalCardProfile < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor back_image_file_id: String? @@ -61,7 +61,7 @@ module Increase type creator = :increase | :user module Creator - extend Increase::Enum + extend Increase::Internal::Type::Enum # This Physical Card Profile was created by Increase. INCREASE: :increase @@ -81,7 +81,7 @@ module Increase | :archived module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile has not yet been processed by Increase. PENDING_CREATING: :pending_creating @@ -107,7 +107,7 @@ module Increase type type_ = :physical_card_profile module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PHYSICAL_CARD_PROFILE: :physical_card_profile diff --git a/sig/increase/models/physical_card_profile_archive_params.rbs b/sig/increase/models/physical_card_profile_archive_params.rbs index bd2c8ada..8f6cd00c 100644 --- a/sig/increase/models/physical_card_profile_archive_params.rbs +++ b/sig/increase/models/physical_card_profile_archive_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type physical_card_profile_archive_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class PhysicalCardProfileArchiveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileArchiveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/physical_card_profile_clone_params.rbs b/sig/increase/models/physical_card_profile_clone_params.rbs index be13641c..8132f99b 100644 --- a/sig/increase/models/physical_card_profile_clone_params.rbs +++ b/sig/increase/models/physical_card_profile_clone_params.rbs @@ -8,11 +8,11 @@ module Increase front_image_file_id: String, front_text: Increase::Models::PhysicalCardProfileCloneParams::FrontText } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PhysicalCardProfileCloneParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileCloneParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader carrier_image_file_id: String? @@ -49,7 +49,7 @@ module Increase type front_text = { :line1 => String, :line2 => String } - class FrontText < Increase::BaseModel + class FrontText < Increase::Internal::Type::BaseModel attr_accessor line1: String attr_reader line2: String? diff --git a/sig/increase/models/physical_card_profile_create_params.rbs b/sig/increase/models/physical_card_profile_create_params.rbs index f98bb1a0..e768eb09 100644 --- a/sig/increase/models/physical_card_profile_create_params.rbs +++ b/sig/increase/models/physical_card_profile_create_params.rbs @@ -7,11 +7,11 @@ module Increase description: String, front_image_file_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PhysicalCardProfileCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor carrier_image_file_id: String diff --git a/sig/increase/models/physical_card_profile_list_params.rbs b/sig/increase/models/physical_card_profile_list_params.rbs index 7b16e9a1..8643506a 100644 --- a/sig/increase/models/physical_card_profile_list_params.rbs +++ b/sig/increase/models/physical_card_profile_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, status: Increase::Models::PhysicalCardProfileListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PhysicalCardProfileListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? @@ -46,7 +46,7 @@ module Increase in_: ::Array[Increase::Models::PhysicalCardProfileListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::PhysicalCardProfileListParams::Status::in_]? def in_=: ( @@ -68,7 +68,7 @@ module Increase | :archived module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The Card Profile has not yet been processed by Increase. PENDING_CREATING: :pending_creating diff --git a/sig/increase/models/physical_card_profile_retrieve_params.rbs b/sig/increase/models/physical_card_profile_retrieve_params.rbs index ebf82e47..d9db52c3 100644 --- a/sig/increase/models/physical_card_profile_retrieve_params.rbs +++ b/sig/increase/models/physical_card_profile_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type physical_card_profile_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class PhysicalCardProfileRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardProfileRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/physical_card_retrieve_params.rbs b/sig/increase/models/physical_card_retrieve_params.rbs index cd61ee5d..222649c3 100644 --- a/sig/increase/models/physical_card_retrieve_params.rbs +++ b/sig/increase/models/physical_card_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type physical_card_retrieve_params = { } & Increase::request_parameters + type physical_card_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class PhysicalCardRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/physical_card_update_params.rbs b/sig/increase/models/physical_card_update_params.rbs index 1b378e4c..53acad6d 100644 --- a/sig/increase/models/physical_card_update_params.rbs +++ b/sig/increase/models/physical_card_update_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type physical_card_update_params = { status: Increase::Models::PhysicalCardUpdateParams::status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PhysicalCardUpdateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor status: Increase::Models::PhysicalCardUpdateParams::status @@ -20,7 +20,7 @@ module Increase type status = :active | :disabled | :canceled module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card is active. ACTIVE: :active diff --git a/sig/increase/models/program.rbs b/sig/increase/models/program.rbs index 12bdcb40..b996bb90 100644 --- a/sig/increase/models/program.rbs +++ b/sig/increase/models/program.rbs @@ -13,7 +13,7 @@ module Increase updated_at: Time } - class Program < Increase::BaseModel + class Program < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor bank: Increase::Models::Program::bank @@ -49,7 +49,7 @@ module Increase type bank = :core_bank | :first_internet_bank | :grasshopper_bank module Bank - extend Increase::Enum + extend Increase::Internal::Type::Enum # Core Bank CORE_BANK: :core_bank @@ -66,7 +66,7 @@ module Increase type type_ = :program module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PROGRAM: :program diff --git a/sig/increase/models/program_list_params.rbs b/sig/increase/models/program_list_params.rbs index 4e3be271..56d45fc8 100644 --- a/sig/increase/models/program_list_params.rbs +++ b/sig/increase/models/program_list_params.rbs @@ -1,11 +1,12 @@ module Increase module Models type program_list_params = - { cursor: String, limit: Integer } & Increase::request_parameters + { cursor: String, limit: Integer } + & Increase::Internal::Type::request_parameters - class ProgramListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProgramListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? diff --git a/sig/increase/models/program_retrieve_params.rbs b/sig/increase/models/program_retrieve_params.rbs index 051d68de..c87dbc16 100644 --- a/sig/increase/models/program_retrieve_params.rbs +++ b/sig/increase/models/program_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type program_retrieve_params = { } & Increase::request_parameters + type program_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class ProgramRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProgramRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/proof_of_authorization_request.rbs b/sig/increase/models/proof_of_authorization_request.rbs index 14523a2d..2baf8d0f 100644 --- a/sig/increase/models/proof_of_authorization_request.rbs +++ b/sig/increase/models/proof_of_authorization_request.rbs @@ -10,7 +10,7 @@ module Increase updated_at: Time } - class ProofOfAuthorizationRequest < Increase::BaseModel + class ProofOfAuthorizationRequest < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor ach_transfers: ::Array[Increase::Models::ProofOfAuthorizationRequest::ACHTransfer] @@ -36,7 +36,7 @@ module Increase type ach_transfer = { id: String } - class ACHTransfer < Increase::BaseModel + class ACHTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void @@ -47,7 +47,7 @@ module Increase type type_ = :proof_of_authorization_request module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PROOF_OF_AUTHORIZATION_REQUEST: :proof_of_authorization_request diff --git a/sig/increase/models/proof_of_authorization_request_list_params.rbs b/sig/increase/models/proof_of_authorization_request_list_params.rbs index 85b3f350..8f2fc1f9 100644 --- a/sig/increase/models/proof_of_authorization_request_list_params.rbs +++ b/sig/increase/models/proof_of_authorization_request_list_params.rbs @@ -6,11 +6,11 @@ module Increase cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ProofOfAuthorizationRequestListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader created_at: Increase::Models::ProofOfAuthorizationRequestListParams::CreatedAt? @@ -38,7 +38,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/proof_of_authorization_request_retrieve_params.rbs b/sig/increase/models/proof_of_authorization_request_retrieve_params.rbs index 99ac4a31..764d4e8e 100644 --- a/sig/increase/models/proof_of_authorization_request_retrieve_params.rbs +++ b/sig/increase/models/proof_of_authorization_request_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type proof_of_authorization_request_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class ProofOfAuthorizationRequestRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/proof_of_authorization_request_submission.rbs b/sig/increase/models/proof_of_authorization_request_submission.rbs index f33df587..afcf7e82 100644 --- a/sig/increase/models/proof_of_authorization_request_submission.rbs +++ b/sig/increase/models/proof_of_authorization_request_submission.rbs @@ -22,7 +22,7 @@ module Increase validated_account_ownership_with_microdeposit: bool? } - class ProofOfAuthorizationRequestSubmission < Increase::BaseModel + class ProofOfAuthorizationRequestSubmission < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor additional_evidence_file_id: String? @@ -86,7 +86,7 @@ module Increase :pending_review | :rejected | :canceled | :pending_sending | :sent module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The proof of authorization request submission is pending review. PENDING_REVIEW: :pending_review @@ -109,7 +109,7 @@ module Increase type type_ = :proof_of_authorization_request_submission module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum PROOF_OF_AUTHORIZATION_REQUEST_SUBMISSION: :proof_of_authorization_request_submission diff --git a/sig/increase/models/proof_of_authorization_request_submission_create_params.rbs b/sig/increase/models/proof_of_authorization_request_submission_create_params.rbs index 88aded73..5e47089c 100644 --- a/sig/increase/models/proof_of_authorization_request_submission_create_params.rbs +++ b/sig/increase/models/proof_of_authorization_request_submission_create_params.rbs @@ -15,11 +15,11 @@ module Increase authorizer_company: String, authorizer_ip_address: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestSubmissionCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor authorization_terms: String diff --git a/sig/increase/models/proof_of_authorization_request_submission_list_params.rbs b/sig/increase/models/proof_of_authorization_request_submission_list_params.rbs index 40ce09f5..f8a350b8 100644 --- a/sig/increase/models/proof_of_authorization_request_submission_list_params.rbs +++ b/sig/increase/models/proof_of_authorization_request_submission_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, proof_of_authorization_request_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ProofOfAuthorizationRequestSubmissionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestSubmissionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? diff --git a/sig/increase/models/proof_of_authorization_request_submission_retrieve_params.rbs b/sig/increase/models/proof_of_authorization_request_submission_retrieve_params.rbs index 1a2788de..85eba862 100644 --- a/sig/increase/models/proof_of_authorization_request_submission_retrieve_params.rbs +++ b/sig/increase/models/proof_of_authorization_request_submission_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type proof_of_authorization_request_submission_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class ProofOfAuthorizationRequestSubmissionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProofOfAuthorizationRequestSubmissionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/real_time_decision.rbs b/sig/increase/models/real_time_decision.rbs index 33f1f42a..90900c6f 100644 --- a/sig/increase/models/real_time_decision.rbs +++ b/sig/increase/models/real_time_decision.rbs @@ -15,7 +15,7 @@ module Increase type: Increase::Models::RealTimeDecision::type_ } - class RealTimeDecision < Increase::BaseModel + class RealTimeDecision < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor card_authentication: Increase::Models::RealTimeDecision::CardAuthentication? @@ -62,7 +62,7 @@ module Increase upcoming_card_payment_id: String } - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel attr_accessor account_id: String attr_accessor card_id: String @@ -83,7 +83,7 @@ module Increase type decision = :approve | :challenge | :deny module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authentication attempt without triggering a challenge. APPROVE: :approve @@ -107,7 +107,7 @@ module Increase result: Increase::Models::RealTimeDecision::CardAuthenticationChallenge::result? } - class CardAuthenticationChallenge < Increase::BaseModel + class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel attr_accessor account_id: String attr_accessor card_id: String @@ -131,7 +131,7 @@ module Increase type result = :success | :failure module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time code to the cardholder. SUCCESS: :success @@ -172,7 +172,7 @@ module Increase verification: Increase::Models::RealTimeDecision::CardAuthorization::Verification } - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel attr_accessor account_id: String attr_accessor card_id: String @@ -256,7 +256,7 @@ module Increase type decision = :approve | :decline module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authorization. APPROVE: :approve @@ -270,7 +270,7 @@ module Increase type direction = :settlement | :refund module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT: :settlement @@ -287,7 +287,7 @@ module Increase visa: Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa? } - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::category attr_accessor visa: Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa? @@ -302,7 +302,7 @@ module Increase type category = :visa module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Visa VISA: :visa @@ -317,7 +317,7 @@ module Increase stand_in_processing_reason: Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa::stand_in_processing_reason? } - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel attr_accessor electronic_commerce_indicator: Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa::electronic_commerce_indicator? attr_accessor point_of_service_entry_mode: Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Visa::point_of_service_entry_mode? @@ -343,7 +343,7 @@ module Increase | :non_secure_transaction module ElectronicCommerceIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments. MAIL_PHONE_ORDER: :mail_phone_order @@ -385,7 +385,7 @@ module Increase | :integrated_circuit_card_no_cvv module PointOfServiceEntryMode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unknown UNKNOWN: :unknown @@ -430,7 +430,7 @@ module Increase | :other module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR: :issuer_error @@ -465,7 +465,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor retrieval_reference_number: String? attr_accessor trace_number: String? @@ -490,7 +490,7 @@ module Increase | :refund module ProcessingCategory - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. ACCOUNT_FUNDING: :account_funding @@ -520,7 +520,7 @@ module Increase initial_authorization: top? } - class RequestDetails < Increase::BaseModel + class RequestDetails < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails::category attr_accessor incremental_authorization: Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails::IncrementalAuthorization? @@ -538,7 +538,7 @@ module Increase type category = :initial_authorization | :incremental_authorization module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular, standalone authorization. INITIAL_AUTHORIZATION: :initial_authorization @@ -552,7 +552,7 @@ module Increase type incremental_authorization = { card_payment_id: String, original_card_authorization_id: String } - class IncrementalAuthorization < Increase::BaseModel + class IncrementalAuthorization < Increase::Internal::Type::BaseModel attr_accessor card_payment_id: String attr_accessor original_card_authorization_id: String @@ -572,7 +572,7 @@ module Increase cardholder_address: Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress } - class Verification < Increase::BaseModel + class Verification < Increase::Internal::Type::BaseModel attr_accessor card_verification_code: Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode attr_accessor cardholder_address: Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress @@ -589,7 +589,7 @@ module Increase result: Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode::result } - class CardVerificationCode < Increase::BaseModel + class CardVerificationCode < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode::result def initialize: ( @@ -601,7 +601,7 @@ module Increase type result = :not_checked | :match | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No card verification code was provided in the authorization request. NOT_CHECKED: :not_checked @@ -625,7 +625,7 @@ module Increase result: Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::result } - class CardholderAddress < Increase::BaseModel + class CardholderAddress < Increase::Internal::Type::BaseModel attr_accessor actual_line1: String? attr_accessor actual_postal_code: String? @@ -655,7 +655,7 @@ module Increase | :no_match module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # No adress was provided in the authorization request. NOT_CHECKED: :not_checked @@ -689,7 +689,7 @@ module Increase | :digital_wallet_authentication_requested module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # A card is being authorized. CARD_AUTHORIZATION_REQUESTED: :card_authorization_requested @@ -720,7 +720,7 @@ module Increase result: Increase::Models::RealTimeDecision::DigitalWalletAuthentication::result? } - class DigitalWalletAuthentication < Increase::BaseModel + class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel attr_accessor card_id: String attr_accessor channel: Increase::Models::RealTimeDecision::DigitalWalletAuthentication::channel @@ -750,7 +750,7 @@ module Increase type channel = :sms | :email module Channel - extend Increase::Enum + extend Increase::Internal::Type::Enum # Send one-time passcodes over SMS. SMS: :sms @@ -764,7 +764,7 @@ module Increase type digital_wallet = :apple_pay | :google_pay | :samsung_pay | :unknown module DigitalWallet - extend Increase::Enum + extend Increase::Internal::Type::Enum # Apple Pay APPLE_PAY: :apple_pay @@ -784,7 +784,7 @@ module Increase type result = :success | :failure module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time passcode to the cardholder. SUCCESS: :success @@ -805,7 +805,7 @@ module Increase digital_wallet: Increase::Models::RealTimeDecision::DigitalWalletToken::digital_wallet } - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel attr_accessor card_id: String attr_accessor card_profile_id: String? @@ -829,7 +829,7 @@ module Increase type decision = :approve | :decline module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the provisioning request. APPROVE: :approve @@ -842,7 +842,7 @@ module Increase type device = { identifier: String? } - class Device < Increase::BaseModel + class Device < Increase::Internal::Type::BaseModel attr_accessor identifier: String? def initialize: (identifier: String?) -> void @@ -853,7 +853,7 @@ module Increase type digital_wallet = :apple_pay | :google_pay | :samsung_pay | :unknown module DigitalWallet - extend Increase::Enum + extend Increase::Internal::Type::Enum # Apple Pay APPLE_PAY: :apple_pay @@ -874,7 +874,7 @@ module Increase type status = :pending | :responded | :timed_out module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The decision is pending action via real-time webhook. PENDING: :pending @@ -891,7 +891,7 @@ module Increase type type_ = :real_time_decision module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum REAL_TIME_DECISION: :real_time_decision diff --git a/sig/increase/models/real_time_decision_action_params.rbs b/sig/increase/models/real_time_decision_action_params.rbs index 791d3b99..16fc8852 100644 --- a/sig/increase/models/real_time_decision_action_params.rbs +++ b/sig/increase/models/real_time_decision_action_params.rbs @@ -8,11 +8,11 @@ module Increase digital_wallet_authentication: Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication, digital_wallet_token: Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class RealTimeDecisionActionParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimeDecisionActionParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader card_authentication: Increase::Models::RealTimeDecisionActionParams::CardAuthentication? @@ -60,7 +60,7 @@ module Increase decision: Increase::Models::RealTimeDecisionActionParams::CardAuthentication::decision } - class CardAuthentication < Increase::BaseModel + class CardAuthentication < Increase::Internal::Type::BaseModel attr_accessor decision: Increase::Models::RealTimeDecisionActionParams::CardAuthentication::decision def initialize: ( @@ -72,7 +72,7 @@ module Increase type decision = :approve | :challenge | :deny module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authentication attempt without triggering a challenge. APPROVE: :approve @@ -92,7 +92,7 @@ module Increase result: Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge::result } - class CardAuthenticationChallenge < Increase::BaseModel + class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge::result def initialize: ( @@ -104,7 +104,7 @@ module Increase type result = :success | :failure module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time code to the cardholder. SUCCESS: :success @@ -122,7 +122,7 @@ module Increase decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason } - class CardAuthorization < Increase::BaseModel + class CardAuthorization < Increase::Internal::Type::BaseModel attr_accessor decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision attr_reader decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason? @@ -141,7 +141,7 @@ module Increase type decision = :approve | :decline module Decision - extend Increase::Enum + extend Increase::Internal::Type::Enum # Approve the authorization. APPROVE: :approve @@ -161,7 +161,7 @@ module Increase | :other module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. INSUFFICIENT_FUNDS: :insufficient_funds @@ -191,7 +191,7 @@ module Increase success: Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Success } - class DigitalWalletAuthentication < Increase::BaseModel + class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel attr_accessor result: Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::result attr_reader success: Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Success? @@ -210,7 +210,7 @@ module Increase type result = :success | :failure module Result - extend Increase::Enum + extend Increase::Internal::Type::Enum # Your application successfully delivered the one-time passcode to the cardholder. SUCCESS: :success @@ -223,7 +223,7 @@ module Increase type success = { email: String, phone: String } - class Success < Increase::BaseModel + class Success < Increase::Internal::Type::BaseModel attr_reader email: String? def email=: (String) -> String @@ -244,7 +244,7 @@ module Increase decline: Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken::Decline } - class DigitalWalletToken < Increase::BaseModel + class DigitalWalletToken < Increase::Internal::Type::BaseModel attr_reader approval: Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken::Approval? def approval=: ( @@ -266,7 +266,7 @@ module Increase type approval = { email: String, phone: String } - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel attr_reader email: String? def email=: (String) -> String @@ -282,7 +282,7 @@ module Increase type decline = { reason: String } - class Decline < Increase::BaseModel + class Decline < Increase::Internal::Type::BaseModel attr_reader reason: String? def reason=: (String) -> String diff --git a/sig/increase/models/real_time_decision_retrieve_params.rbs b/sig/increase/models/real_time_decision_retrieve_params.rbs index 4e40f48b..357b4427 100644 --- a/sig/increase/models/real_time_decision_retrieve_params.rbs +++ b/sig/increase/models/real_time_decision_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type real_time_decision_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class RealTimeDecisionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimeDecisionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/real_time_payments_transfer.rbs b/sig/increase/models/real_time_payments_transfer.rbs index 7e96755e..7f3bcd4d 100644 --- a/sig/increase/models/real_time_payments_transfer.rbs +++ b/sig/increase/models/real_time_payments_transfer.rbs @@ -29,7 +29,7 @@ module Increase ultimate_debtor_name: String? } - class RealTimePaymentsTransfer < Increase::BaseModel + class RealTimePaymentsTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -112,7 +112,7 @@ module Increase type acknowledgement = { acknowledged_at: Time } - class Acknowledgement < Increase::BaseModel + class Acknowledgement < Increase::Internal::Type::BaseModel attr_accessor acknowledged_at: Time def initialize: (acknowledged_at: Time) -> void @@ -122,7 +122,7 @@ module Increase type approval = { approved_at: Time, approved_by: String? } - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel attr_accessor approved_at: Time attr_accessor approved_by: String? @@ -134,7 +134,7 @@ module Increase type cancellation = { canceled_at: Time, canceled_by: String? } - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel attr_accessor canceled_at: Time attr_accessor canceled_by: String? @@ -152,7 +152,7 @@ module Increase user: Increase::Models::RealTimePaymentsTransfer::CreatedBy::User? } - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel attr_accessor api_key: Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey? attr_accessor category: Increase::Models::RealTimePaymentsTransfer::CreatedBy::category @@ -172,7 +172,7 @@ module Increase type api_key = { description: String? } - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel attr_accessor description: String? def initialize: (description: String?) -> void @@ -183,7 +183,7 @@ module Increase type category = :api_key | :oauth_application | :user module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY: :api_key @@ -199,7 +199,7 @@ module Increase type oauth_application = { name: String } - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel attr_accessor name: String def initialize: (name: String) -> void @@ -209,7 +209,7 @@ module Increase type user = { email: String } - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel attr_accessor email: String def initialize: (email: String) -> void @@ -221,7 +221,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -251,7 +251,7 @@ module Increase rejected_at: Time? } - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel attr_accessor reject_reason_additional_information: String? attr_accessor reject_reason_code: Increase::Models::RealTimePaymentsTransfer::Rejection::reject_reason_code @@ -290,7 +290,7 @@ module Increase | :other module RejectReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The destination account is closed. Corresponds to the Real-Time Payments reason code `AC04`. ACCOUNT_CLOSED: :account_closed @@ -370,7 +370,7 @@ module Increase | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL: :pending_approval @@ -402,7 +402,7 @@ module Increase type submission = { submitted_at: Time?, transaction_identification: String } - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel attr_accessor submitted_at: Time? attr_accessor transaction_identification: String @@ -418,7 +418,7 @@ module Increase type type_ = :real_time_payments_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum REAL_TIME_PAYMENTS_TRANSFER: :real_time_payments_transfer diff --git a/sig/increase/models/real_time_payments_transfer_create_params.rbs b/sig/increase/models/real_time_payments_transfer_create_params.rbs index b3df4846..9a4626fc 100644 --- a/sig/increase/models/real_time_payments_transfer_create_params.rbs +++ b/sig/increase/models/real_time_payments_transfer_create_params.rbs @@ -14,11 +14,11 @@ module Increase ultimate_creditor_name: String, ultimate_debtor_name: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class RealTimePaymentsTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor amount: Integer diff --git a/sig/increase/models/real_time_payments_transfer_list_params.rbs b/sig/increase/models/real_time_payments_transfer_list_params.rbs index 77789d68..1c03fc30 100644 --- a/sig/increase/models/real_time_payments_transfer_list_params.rbs +++ b/sig/increase/models/real_time_payments_transfer_list_params.rbs @@ -10,11 +10,11 @@ module Increase limit: Integer, status: Increase::Models::RealTimePaymentsTransferListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class RealTimePaymentsTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -64,7 +64,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time @@ -96,7 +96,7 @@ module Increase in_: ::Array[Increase::Models::RealTimePaymentsTransferListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::RealTimePaymentsTransferListParams::Status::in_]? def in_=: ( @@ -120,7 +120,7 @@ module Increase | :complete module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL: :pending_approval diff --git a/sig/increase/models/real_time_payments_transfer_retrieve_params.rbs b/sig/increase/models/real_time_payments_transfer_retrieve_params.rbs index 5cdd7d1d..78b6d747 100644 --- a/sig/increase/models/real_time_payments_transfer_retrieve_params.rbs +++ b/sig/increase/models/real_time_payments_transfer_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type real_time_payments_transfer_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class RealTimePaymentsTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/routing_number_list_params.rbs b/sig/increase/models/routing_number_list_params.rbs index 17496414..43771daf 100644 --- a/sig/increase/models/routing_number_list_params.rbs +++ b/sig/increase/models/routing_number_list_params.rbs @@ -2,11 +2,11 @@ module Increase module Models type routing_number_list_params = { routing_number: String, cursor: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class RoutingNumberListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RoutingNumberListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor routing_number: String diff --git a/sig/increase/models/routing_number_list_response.rbs b/sig/increase/models/routing_number_list_response.rbs index 771d6679..259e8789 100644 --- a/sig/increase/models/routing_number_list_response.rbs +++ b/sig/increase/models/routing_number_list_response.rbs @@ -10,7 +10,7 @@ module Increase wire_transfers: Increase::Models::RoutingNumberListResponse::wire_transfers } - class RoutingNumberListResponse < Increase::BaseModel + class RoutingNumberListResponse < Increase::Internal::Type::BaseModel attr_accessor ach_transfers: Increase::Models::RoutingNumberListResponse::ach_transfers attr_accessor name: String @@ -37,7 +37,7 @@ module Increase type ach_transfers = :supported | :not_supported module ACHTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum # The routing number can receive this transfer type. SUPPORTED: :supported @@ -51,7 +51,7 @@ module Increase type real_time_payments_transfers = :supported | :not_supported module RealTimePaymentsTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum # The routing number can receive this transfer type. SUPPORTED: :supported @@ -65,7 +65,7 @@ module Increase type type_ = :routing_number module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum ROUTING_NUMBER: :routing_number @@ -75,7 +75,7 @@ module Increase type wire_transfers = :supported | :not_supported module WireTransfers - extend Increase::Enum + extend Increase::Internal::Type::Enum # The routing number can receive this transfer type. SUPPORTED: :supported diff --git a/sig/increase/models/simulations/account_statement_create_params.rbs b/sig/increase/models/simulations/account_statement_create_params.rbs index a118b4e7..2ff486ae 100644 --- a/sig/increase/models/simulations/account_statement_create_params.rbs +++ b/sig/increase/models/simulations/account_statement_create_params.rbs @@ -2,11 +2,11 @@ module Increase module Models module Simulations type account_statement_create_params = - { account_id: String } & Increase::request_parameters + { account_id: String } & Increase::Internal::Type::request_parameters - class AccountStatementCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountStatementCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/simulations/account_transfer_complete_params.rbs b/sig/increase/models/simulations/account_transfer_complete_params.rbs index 4af3c3c3..d2d9af71 100644 --- a/sig/increase/models/simulations/account_transfer_complete_params.rbs +++ b/sig/increase/models/simulations/account_transfer_complete_params.rbs @@ -2,11 +2,11 @@ module Increase module Models module Simulations type account_transfer_complete_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class AccountTransferCompleteParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class AccountTransferCompleteParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/ach_transfer_acknowledge_params.rbs b/sig/increase/models/simulations/ach_transfer_acknowledge_params.rbs index a2282319..1041fa55 100644 --- a/sig/increase/models/simulations/ach_transfer_acknowledge_params.rbs +++ b/sig/increase/models/simulations/ach_transfer_acknowledge_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type ach_transfer_acknowledge_params = { } & Increase::request_parameters + type ach_transfer_acknowledge_params = + { } & Increase::Internal::Type::request_parameters - class ACHTransferAcknowledgeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferAcknowledgeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbs b/sig/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbs index 6887e405..2e1da032 100644 --- a/sig/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbs +++ b/sig/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbs @@ -6,11 +6,11 @@ module Increase change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code, corrected_data: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ACHTransferCreateNotificationOfChangeParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferCreateNotificationOfChangeParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code @@ -46,7 +46,7 @@ module Increase | :incorrect_transaction_code_by_originating_depository_financial_institution module ChangeCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number was incorrect. INCORRECT_ACCOUNT_NUMBER: :incorrect_account_number diff --git a/sig/increase/models/simulations/ach_transfer_return_params.rbs b/sig/increase/models/simulations/ach_transfer_return_params.rbs index 6cc2d44a..85d456d7 100644 --- a/sig/increase/models/simulations/ach_transfer_return_params.rbs +++ b/sig/increase/models/simulations/ach_transfer_return_params.rbs @@ -5,11 +5,11 @@ module Increase { reason: Increase::Models::Simulations::ACHTransferReturnParams::reason } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class ACHTransferReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader reason: Increase::Models::Simulations::ACHTransferReturnParams::reason? @@ -97,7 +97,7 @@ module Increase | :untimely_return module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND: :insufficient_fund diff --git a/sig/increase/models/simulations/ach_transfer_settle_params.rbs b/sig/increase/models/simulations/ach_transfer_settle_params.rbs index 05177d46..dacea420 100644 --- a/sig/increase/models/simulations/ach_transfer_settle_params.rbs +++ b/sig/increase/models/simulations/ach_transfer_settle_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type ach_transfer_settle_params = { } & Increase::request_parameters + type ach_transfer_settle_params = + { } & Increase::Internal::Type::request_parameters - class ACHTransferSettleParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferSettleParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/ach_transfer_submit_params.rbs b/sig/increase/models/simulations/ach_transfer_submit_params.rbs index 2a795d4a..eb15da1a 100644 --- a/sig/increase/models/simulations/ach_transfer_submit_params.rbs +++ b/sig/increase/models/simulations/ach_transfer_submit_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type ach_transfer_submit_params = { } & Increase::request_parameters + type ach_transfer_submit_params = + { } & Increase::Internal::Type::request_parameters - class ACHTransferSubmitParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ACHTransferSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/card_authorization_create_params.rbs b/sig/increase/models/simulations/card_authorization_create_params.rbs index 7a1a6005..99b4aea5 100644 --- a/sig/increase/models/simulations/card_authorization_create_params.rbs +++ b/sig/increase/models/simulations/card_authorization_create_params.rbs @@ -21,11 +21,11 @@ module Increase physical_card_id: String, terminal_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardAuthorizationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor amount: Integer @@ -142,7 +142,7 @@ module Increase | :suspected_fraud module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account has been closed. ACCOUNT_CLOSED: :account_closed @@ -201,7 +201,7 @@ module Increase type direction = :settlement | :refund module Direction - extend Increase::Enum + extend Increase::Internal::Type::Enum # A regular card authorization where funds are debited from the cardholder. SETTLEMENT: :settlement @@ -217,7 +217,7 @@ module Increase visa: Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa } - class NetworkDetails < Increase::BaseModel + class NetworkDetails < Increase::Internal::Type::BaseModel attr_accessor visa: Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa def initialize: ( @@ -231,7 +231,7 @@ module Increase stand_in_processing_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::stand_in_processing_reason } - class Visa < Increase::BaseModel + class Visa < Increase::Internal::Type::BaseModel attr_reader stand_in_processing_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::stand_in_processing_reason? def stand_in_processing_reason=: ( @@ -254,7 +254,7 @@ module Increase | :other module StandInProcessingReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase failed to process the authorization in a timely manner. ISSUER_ERROR: :issuer_error diff --git a/sig/increase/models/simulations/card_authorization_create_response.rbs b/sig/increase/models/simulations/card_authorization_create_response.rbs index d4164bfd..4ba5c323 100644 --- a/sig/increase/models/simulations/card_authorization_create_response.rbs +++ b/sig/increase/models/simulations/card_authorization_create_response.rbs @@ -8,7 +8,7 @@ module Increase type: Increase::Models::Simulations::CardAuthorizationCreateResponse::type_ } - class CardAuthorizationCreateResponse < Increase::BaseModel + class CardAuthorizationCreateResponse < Increase::Internal::Type::BaseModel attr_accessor declined_transaction: Increase::Models::DeclinedTransaction? attr_accessor pending_transaction: Increase::Models::PendingTransaction? @@ -26,7 +26,7 @@ module Increase type type_ = :inbound_card_authorization_simulation_result module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_CARD_AUTHORIZATION_SIMULATION_RESULT: :inbound_card_authorization_simulation_result diff --git a/sig/increase/models/simulations/card_authorization_expiration_create_params.rbs b/sig/increase/models/simulations/card_authorization_expiration_create_params.rbs index 31813235..0f342c2f 100644 --- a/sig/increase/models/simulations/card_authorization_expiration_create_params.rbs +++ b/sig/increase/models/simulations/card_authorization_expiration_create_params.rbs @@ -2,11 +2,12 @@ module Increase module Models module Simulations type card_authorization_expiration_create_params = - { card_payment_id: String } & Increase::request_parameters + { card_payment_id: String } + & Increase::Internal::Type::request_parameters - class CardAuthorizationExpirationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardAuthorizationExpirationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor card_payment_id: String diff --git a/sig/increase/models/simulations/card_dispute_action_params.rbs b/sig/increase/models/simulations/card_dispute_action_params.rbs index 939bd4bc..0a080bcc 100644 --- a/sig/increase/models/simulations/card_dispute_action_params.rbs +++ b/sig/increase/models/simulations/card_dispute_action_params.rbs @@ -6,11 +6,11 @@ module Increase status: Increase::Models::Simulations::CardDisputeActionParams::status, explanation: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardDisputeActionParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardDisputeActionParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor status: Increase::Models::Simulations::CardDisputeActionParams::status @@ -30,7 +30,7 @@ module Increase :pending_user_information | :accepted | :rejected | :lost | :won module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Increase has requested more information related to the Card Dispute from you. PENDING_USER_INFORMATION: :pending_user_information diff --git a/sig/increase/models/simulations/card_fuel_confirmation_create_params.rbs b/sig/increase/models/simulations/card_fuel_confirmation_create_params.rbs index eaa85c1d..c816435d 100644 --- a/sig/increase/models/simulations/card_fuel_confirmation_create_params.rbs +++ b/sig/increase/models/simulations/card_fuel_confirmation_create_params.rbs @@ -3,11 +3,11 @@ module Increase module Simulations type card_fuel_confirmation_create_params = { amount: Integer, card_payment_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardFuelConfirmationCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardFuelConfirmationCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor amount: Integer diff --git a/sig/increase/models/simulations/card_increment_create_params.rbs b/sig/increase/models/simulations/card_increment_create_params.rbs index c37f170e..4729cf9f 100644 --- a/sig/increase/models/simulations/card_increment_create_params.rbs +++ b/sig/increase/models/simulations/card_increment_create_params.rbs @@ -7,11 +7,11 @@ module Increase card_payment_id: String, event_subscription_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardIncrementCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardIncrementCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor amount: Integer diff --git a/sig/increase/models/simulations/card_refund_create_params.rbs b/sig/increase/models/simulations/card_refund_create_params.rbs index f3856787..eb3ee789 100644 --- a/sig/increase/models/simulations/card_refund_create_params.rbs +++ b/sig/increase/models/simulations/card_refund_create_params.rbs @@ -2,11 +2,12 @@ module Increase module Models module Simulations type card_refund_create_params = - { transaction_id: String } & Increase::request_parameters + { transaction_id: String } + & Increase::Internal::Type::request_parameters - class CardRefundCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardRefundCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor transaction_id: String diff --git a/sig/increase/models/simulations/card_reversal_create_params.rbs b/sig/increase/models/simulations/card_reversal_create_params.rbs index 1b6d3bd5..6c722d88 100644 --- a/sig/increase/models/simulations/card_reversal_create_params.rbs +++ b/sig/increase/models/simulations/card_reversal_create_params.rbs @@ -3,11 +3,11 @@ module Increase module Simulations type card_reversal_create_params = { card_payment_id: String, amount: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardReversalCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardReversalCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor card_payment_id: String diff --git a/sig/increase/models/simulations/card_settlement_create_params.rbs b/sig/increase/models/simulations/card_settlement_create_params.rbs index 219f5d3f..4ad1f56d 100644 --- a/sig/increase/models/simulations/card_settlement_create_params.rbs +++ b/sig/increase/models/simulations/card_settlement_create_params.rbs @@ -3,11 +3,11 @@ module Increase module Simulations type card_settlement_create_params = { card_id: String, pending_transaction_id: String, amount: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class CardSettlementCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CardSettlementCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor card_id: String diff --git a/sig/increase/models/simulations/check_deposit_reject_params.rbs b/sig/increase/models/simulations/check_deposit_reject_params.rbs index 8266bde6..6d17ae16 100644 --- a/sig/increase/models/simulations/check_deposit_reject_params.rbs +++ b/sig/increase/models/simulations/check_deposit_reject_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type check_deposit_reject_params = { } & Increase::request_parameters + type check_deposit_reject_params = + { } & Increase::Internal::Type::request_parameters - class CheckDepositRejectParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositRejectParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/check_deposit_return_params.rbs b/sig/increase/models/simulations/check_deposit_return_params.rbs index 3ed6a90c..43c10bdf 100644 --- a/sig/increase/models/simulations/check_deposit_return_params.rbs +++ b/sig/increase/models/simulations/check_deposit_return_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type check_deposit_return_params = { } & Increase::request_parameters + type check_deposit_return_params = + { } & Increase::Internal::Type::request_parameters - class CheckDepositReturnParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositReturnParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/check_deposit_submit_params.rbs b/sig/increase/models/simulations/check_deposit_submit_params.rbs index f7919496..811594aa 100644 --- a/sig/increase/models/simulations/check_deposit_submit_params.rbs +++ b/sig/increase/models/simulations/check_deposit_submit_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type check_deposit_submit_params = { } & Increase::request_parameters + type check_deposit_submit_params = + { } & Increase::Internal::Type::request_parameters - class CheckDepositSubmitParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckDepositSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/check_transfer_mail_params.rbs b/sig/increase/models/simulations/check_transfer_mail_params.rbs index 412afd2e..524a2b0b 100644 --- a/sig/increase/models/simulations/check_transfer_mail_params.rbs +++ b/sig/increase/models/simulations/check_transfer_mail_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type check_transfer_mail_params = { } & Increase::request_parameters + type check_transfer_mail_params = + { } & Increase::Internal::Type::request_parameters - class CheckTransferMailParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class CheckTransferMailParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/digital_wallet_token_request_create_params.rbs b/sig/increase/models/simulations/digital_wallet_token_request_create_params.rbs index 0dddcb03..37f127ae 100644 --- a/sig/increase/models/simulations/digital_wallet_token_request_create_params.rbs +++ b/sig/increase/models/simulations/digital_wallet_token_request_create_params.rbs @@ -2,11 +2,11 @@ module Increase module Models module Simulations type digital_wallet_token_request_create_params = - { card_id: String } & Increase::request_parameters + { card_id: String } & Increase::Internal::Type::request_parameters - class DigitalWalletTokenRequestCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DigitalWalletTokenRequestCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor card_id: String diff --git a/sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs b/sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs index dbb56c3f..bf4849e8 100644 --- a/sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs +++ b/sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs @@ -8,7 +8,7 @@ module Increase type: Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse::type_ } - class DigitalWalletTokenRequestCreateResponse < Increase::BaseModel + class DigitalWalletTokenRequestCreateResponse < Increase::Internal::Type::BaseModel attr_accessor decline_reason: Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse::decline_reason? attr_accessor digital_wallet_token_id: String? @@ -30,7 +30,7 @@ module Increase | :webhook_declined module DeclineReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The card is not active. CARD_NOT_ACTIVE: :card_not_active @@ -50,7 +50,7 @@ module Increase type type_ = :inbound_digital_wallet_token_request_simulation_result module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_DIGITAL_WALLET_TOKEN_REQUEST_SIMULATION_RESULT: :inbound_digital_wallet_token_request_simulation_result diff --git a/sig/increase/models/simulations/document_create_params.rbs b/sig/increase/models/simulations/document_create_params.rbs index 12115d5a..2ac6a783 100644 --- a/sig/increase/models/simulations/document_create_params.rbs +++ b/sig/increase/models/simulations/document_create_params.rbs @@ -2,11 +2,11 @@ module Increase module Models module Simulations type document_create_params = - { account_id: String } & Increase::request_parameters + { account_id: String } & Increase::Internal::Type::request_parameters - class DocumentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class DocumentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/simulations/inbound_ach_transfer_create_params.rbs b/sig/increase/models/simulations/inbound_ach_transfer_create_params.rbs index 6bbfba28..edd411b7 100644 --- a/sig/increase/models/simulations/inbound_ach_transfer_create_params.rbs +++ b/sig/increase/models/simulations/inbound_ach_transfer_create_params.rbs @@ -15,11 +15,11 @@ module Increase resolve_at: Time, standard_entry_class_code: Increase::Models::Simulations::InboundACHTransferCreateParams::standard_entry_class_code } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundACHTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundACHTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_number_id: String @@ -99,7 +99,7 @@ module Increase | :international_ach_transaction module StandardEntryClassCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Corporate Credit and Debit (CCD). CORPORATE_CREDIT_OR_DEBIT: :corporate_credit_or_debit diff --git a/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs b/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs index 30f19c2d..c547644c 100644 --- a/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs +++ b/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs @@ -3,11 +3,11 @@ module Increase module Simulations type inbound_check_deposit_create_params = { account_number_id: String, amount: Integer, check_number: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundCheckDepositCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundCheckDepositCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_number_id: String diff --git a/sig/increase/models/simulations/inbound_funds_hold_release_params.rbs b/sig/increase/models/simulations/inbound_funds_hold_release_params.rbs index ead95bfc..f267a20a 100644 --- a/sig/increase/models/simulations/inbound_funds_hold_release_params.rbs +++ b/sig/increase/models/simulations/inbound_funds_hold_release_params.rbs @@ -2,11 +2,11 @@ module Increase module Models module Simulations type inbound_funds_hold_release_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class InboundFundsHoldReleaseParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundFundsHoldReleaseParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/inbound_funds_hold_release_response.rbs b/sig/increase/models/simulations/inbound_funds_hold_release_response.rbs index ea87915e..3560139f 100644 --- a/sig/increase/models/simulations/inbound_funds_hold_release_response.rbs +++ b/sig/increase/models/simulations/inbound_funds_hold_release_response.rbs @@ -15,7 +15,7 @@ module Increase type: Increase::Models::Simulations::InboundFundsHoldReleaseResponse::type_ } - class InboundFundsHoldReleaseResponse < Increase::BaseModel + class InboundFundsHoldReleaseResponse < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -54,7 +54,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -80,7 +80,7 @@ module Increase type status = :held | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # Funds are still being held. HELD: :held @@ -94,7 +94,7 @@ module Increase type type_ = :inbound_funds_hold module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum INBOUND_FUNDS_HOLD: :inbound_funds_hold diff --git a/sig/increase/models/simulations/inbound_mail_item_create_params.rbs b/sig/increase/models/simulations/inbound_mail_item_create_params.rbs index f6e83728..42a2e6c5 100644 --- a/sig/increase/models/simulations/inbound_mail_item_create_params.rbs +++ b/sig/increase/models/simulations/inbound_mail_item_create_params.rbs @@ -3,11 +3,11 @@ module Increase module Simulations type inbound_mail_item_create_params = { amount: Integer, lockbox_id: String, contents_file_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundMailItemCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundMailItemCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor amount: Integer diff --git a/sig/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbs b/sig/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbs index 1e87c3e9..bdbc6dea 100644 --- a/sig/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbs +++ b/sig/increase/models/simulations/inbound_real_time_payments_transfer_create_params.rbs @@ -11,11 +11,11 @@ module Increase remittance_information: String, request_for_payment_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundRealTimePaymentsTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundRealTimePaymentsTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_number_id: String diff --git a/sig/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbs b/sig/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbs index 785e130c..86b791ad 100644 --- a/sig/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbs +++ b/sig/increase/models/simulations/inbound_wire_drawdown_request_create_params.rbs @@ -24,11 +24,11 @@ module Increase :originator_to_beneficiary_information_line3 => String, :originator_to_beneficiary_information_line4 => String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundWireDrawdownRequestCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor amount: Integer diff --git a/sig/increase/models/simulations/inbound_wire_transfer_create_params.rbs b/sig/increase/models/simulations/inbound_wire_transfer_create_params.rbs index f5847e1a..21969d8b 100644 --- a/sig/increase/models/simulations/inbound_wire_transfer_create_params.rbs +++ b/sig/increase/models/simulations/inbound_wire_transfer_create_params.rbs @@ -21,11 +21,11 @@ module Increase :originator_to_beneficiary_information_line4 => String, sender_reference: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InboundWireTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InboundWireTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_number_id: String diff --git a/sig/increase/models/simulations/interest_payment_create_params.rbs b/sig/increase/models/simulations/interest_payment_create_params.rbs index 47d8bee2..55d6a28a 100644 --- a/sig/increase/models/simulations/interest_payment_create_params.rbs +++ b/sig/increase/models/simulations/interest_payment_create_params.rbs @@ -9,11 +9,11 @@ module Increase period_end: Time, period_start: Time } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class InterestPaymentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class InterestPaymentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/simulations/physical_card_advance_shipment_params.rbs b/sig/increase/models/simulations/physical_card_advance_shipment_params.rbs index 5b4deb00..80f62c0e 100644 --- a/sig/increase/models/simulations/physical_card_advance_shipment_params.rbs +++ b/sig/increase/models/simulations/physical_card_advance_shipment_params.rbs @@ -5,11 +5,11 @@ module Increase { shipment_status: Increase::Models::Simulations::PhysicalCardAdvanceShipmentParams::shipment_status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class PhysicalCardAdvanceShipmentParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class PhysicalCardAdvanceShipmentParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor shipment_status: Increase::Models::Simulations::PhysicalCardAdvanceShipmentParams::shipment_status @@ -30,7 +30,7 @@ module Increase | :returned module ShipmentStatus - extend Increase::Enum + extend Increase::Internal::Type::Enum # The physical card has not yet been shipped. PENDING: :pending diff --git a/sig/increase/models/simulations/program_create_params.rbs b/sig/increase/models/simulations/program_create_params.rbs index 2ad2279c..5dfe8b62 100644 --- a/sig/increase/models/simulations/program_create_params.rbs +++ b/sig/increase/models/simulations/program_create_params.rbs @@ -2,11 +2,11 @@ module Increase module Models module Simulations type program_create_params = - { name: String } & Increase::request_parameters + { name: String } & Increase::Internal::Type::request_parameters - class ProgramCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class ProgramCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor name: String diff --git a/sig/increase/models/simulations/real_time_payments_transfer_complete_params.rbs b/sig/increase/models/simulations/real_time_payments_transfer_complete_params.rbs index 24446017..d5f14a93 100644 --- a/sig/increase/models/simulations/real_time_payments_transfer_complete_params.rbs +++ b/sig/increase/models/simulations/real_time_payments_transfer_complete_params.rbs @@ -5,11 +5,11 @@ module Increase { rejection: Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class RealTimePaymentsTransferCompleteParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class RealTimePaymentsTransferCompleteParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader rejection: Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection? @@ -29,7 +29,7 @@ module Increase reject_reason_code: Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection::reject_reason_code } - class Rejection < Increase::BaseModel + class Rejection < Increase::Internal::Type::BaseModel attr_accessor reject_reason_code: Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection::reject_reason_code def initialize: ( @@ -62,7 +62,7 @@ module Increase | :other module RejectReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # The destination account is closed. Corresponds to the Real-Time Payments reason code `AC04`. ACCOUNT_CLOSED: :account_closed diff --git a/sig/increase/models/simulations/wire_transfer_reverse_params.rbs b/sig/increase/models/simulations/wire_transfer_reverse_params.rbs index 1c1e816c..f4cd4a4e 100644 --- a/sig/increase/models/simulations/wire_transfer_reverse_params.rbs +++ b/sig/increase/models/simulations/wire_transfer_reverse_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type wire_transfer_reverse_params = { } & Increase::request_parameters + type wire_transfer_reverse_params = + { } & Increase::Internal::Type::request_parameters - class WireTransferReverseParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferReverseParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/simulations/wire_transfer_submit_params.rbs b/sig/increase/models/simulations/wire_transfer_submit_params.rbs index 9ae153fa..8b57dd83 100644 --- a/sig/increase/models/simulations/wire_transfer_submit_params.rbs +++ b/sig/increase/models/simulations/wire_transfer_submit_params.rbs @@ -1,11 +1,12 @@ module Increase module Models module Simulations - type wire_transfer_submit_params = { } & Increase::request_parameters + type wire_transfer_submit_params = + { } & Increase::Internal::Type::request_parameters - class WireTransferSubmitParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/supplemental_document_create_params.rbs b/sig/increase/models/supplemental_document_create_params.rbs index 847f07ba..4fca309f 100644 --- a/sig/increase/models/supplemental_document_create_params.rbs +++ b/sig/increase/models/supplemental_document_create_params.rbs @@ -1,11 +1,12 @@ module Increase module Models type supplemental_document_create_params = - { entity_id: String, file_id: String } & Increase::request_parameters + { entity_id: String, file_id: String } + & Increase::Internal::Type::request_parameters - class SupplementalDocumentCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class SupplementalDocumentCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor entity_id: String diff --git a/sig/increase/models/supplemental_document_list_params.rbs b/sig/increase/models/supplemental_document_list_params.rbs index 2555344d..40292b67 100644 --- a/sig/increase/models/supplemental_document_list_params.rbs +++ b/sig/increase/models/supplemental_document_list_params.rbs @@ -7,11 +7,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class SupplementalDocumentListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class SupplementalDocumentListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor entity_id: String diff --git a/sig/increase/models/transaction.rbs b/sig/increase/models/transaction.rbs index 16843e4c..556bc39e 100644 --- a/sig/increase/models/transaction.rbs +++ b/sig/increase/models/transaction.rbs @@ -14,7 +14,7 @@ module Increase type: Increase::Models::Transaction::type_ } - class Transaction < Increase::BaseModel + class Transaction < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -53,7 +53,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -79,7 +79,7 @@ module Increase type route_type = :account_number | :card | :lockbox module RouteType - extend Increase::Enum + extend Increase::Internal::Type::Enum # An Account Number. ACCOUNT_NUMBER: :account_number @@ -127,7 +127,7 @@ module Increase wire_transfer_intention: Increase::Models::Transaction::Source::WireTransferIntention? } - class Source < Increase::BaseModel + class Source < Increase::Internal::Type::BaseModel attr_accessor account_transfer_intention: Increase::Models::Transaction::Source::AccountTransferIntention? attr_accessor ach_transfer_intention: Increase::Models::Transaction::Source::ACHTransferIntention? @@ -233,7 +233,7 @@ module Increase transfer_id: String } - class AccountTransferIntention < Increase::BaseModel + class AccountTransferIntention < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor currency: Increase::Models::Transaction::Source::AccountTransferIntention::currency @@ -260,7 +260,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -293,7 +293,7 @@ module Increase transfer_id: String } - class ACHTransferIntention < Increase::BaseModel + class ACHTransferIntention < Increase::Internal::Type::BaseModel attr_accessor account_number: String attr_accessor amount: Integer @@ -317,7 +317,7 @@ module Increase type ach_transfer_rejection = { transfer_id: String } - class ACHTransferRejection < Increase::BaseModel + class ACHTransferRejection < Increase::Internal::Type::BaseModel attr_accessor transfer_id: String def initialize: (transfer_id: String) -> void @@ -335,7 +335,7 @@ module Increase transfer_id: String } - class ACHTransferReturn < Increase::BaseModel + class ACHTransferReturn < Increase::Internal::Type::BaseModel attr_accessor created_at: Time attr_accessor raw_return_reason_code: String @@ -432,7 +432,7 @@ module Increase | :untimely_return module ReturnReasonCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # Code R01. Insufficient funds in the receiving account. Sometimes abbreviated to NSF. INSUFFICIENT_FUND: :insufficient_fund @@ -651,7 +651,7 @@ module Increase type card_dispute_acceptance = { accepted_at: Time, card_dispute_id: String, transaction_id: String } - class CardDisputeAcceptance < Increase::BaseModel + class CardDisputeAcceptance < Increase::Internal::Type::BaseModel attr_accessor accepted_at: Time attr_accessor card_dispute_id: String @@ -675,7 +675,7 @@ module Increase transaction_id: String } - class CardDisputeLoss < Increase::BaseModel + class CardDisputeLoss < Increase::Internal::Type::BaseModel attr_accessor card_dispute_id: String attr_accessor explanation: String @@ -717,7 +717,7 @@ module Increase type: Increase::Models::Transaction::Source::CardRefund::type_ } - class CardRefund < Increase::BaseModel + class CardRefund < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -786,7 +786,7 @@ module Increase currency: Increase::Models::Transaction::Source::CardRefund::Cashback::currency } - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor currency: Increase::Models::Transaction::Source::CardRefund::Cashback::currency @@ -801,7 +801,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -828,7 +828,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -858,7 +858,7 @@ module Increase currency: Increase::Models::Transaction::Source::CardRefund::Interchange::currency } - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor code: String? @@ -876,7 +876,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -907,7 +907,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor acquirer_business_id: String attr_accessor acquirer_reference_number: String @@ -937,7 +937,7 @@ module Increase travel: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel? } - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel attr_accessor car_rental: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental? attr_accessor customer_reference_identifier: String? @@ -993,7 +993,7 @@ module Increase weekly_rental_rate_currency: String? } - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel attr_accessor car_class_code: String? attr_accessor checkout_date: Date? @@ -1056,7 +1056,7 @@ module Increase | :parking_violation module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -1083,7 +1083,7 @@ module Increase :not_applicable | :no_show_for_specialized_vehicle module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -1115,7 +1115,7 @@ module Increase total_tax_currency: String? } - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel attr_accessor check_in_date: Date? attr_accessor daily_room_rate_amount: Integer? @@ -1179,7 +1179,7 @@ module Increase | :laundry module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -1208,7 +1208,7 @@ module Increase type no_show_indicator = :not_applicable | :no_show module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -1228,7 +1228,7 @@ module Increase | :invoice_number module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT: :free_text @@ -1264,7 +1264,7 @@ module Increase trip_legs: ::Array[Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg]? } - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel attr_accessor ancillary: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary? attr_accessor computerized_reservation_system: String? @@ -1315,7 +1315,7 @@ module Increase ticket_document_number: String? } - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel attr_accessor connected_ticket_document_number: String? attr_accessor credit_reason_indicator: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::credit_reason_indicator? @@ -1343,7 +1343,7 @@ module Increase | :other module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -1366,7 +1366,7 @@ module Increase sub_category: String? } - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service::category? attr_accessor sub_category: String? @@ -1405,7 +1405,7 @@ module Increase | :wifi module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -1493,7 +1493,7 @@ module Increase | :partial_refund_of_airline_ticket module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -1520,7 +1520,7 @@ module Increase :no_restrictions | :restricted_non_refundable_ticket module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS: :no_restrictions @@ -1535,7 +1535,7 @@ module Increase :none | :change_to_existing_ticket | :new_ticket module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -1559,7 +1559,7 @@ module Increase stop_over_code: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg::stop_over_code? } - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel attr_accessor carrier_code: String? attr_accessor destination_city_airport_code: String? @@ -1587,7 +1587,7 @@ module Increase :none | :stop_over_allowed | :stop_over_not_allowed module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -1607,7 +1607,7 @@ module Increase type type_ = :card_refund module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_REFUND: :card_refund @@ -1624,7 +1624,7 @@ module Increase transacted_on_account_id: String? } - class CardRevenuePayment < Increase::BaseModel + class CardRevenuePayment < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor currency: Increase::Models::Transaction::Source::CardRevenuePayment::currency @@ -1648,7 +1648,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1697,7 +1697,7 @@ module Increase type: Increase::Models::Transaction::Source::CardSettlement::type_ } - class CardSettlement < Increase::BaseModel + class CardSettlement < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor amount: Integer @@ -1772,7 +1772,7 @@ module Increase currency: Increase::Models::Transaction::Source::CardSettlement::Cashback::currency } - class Cashback < Increase::BaseModel + class Cashback < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor currency: Increase::Models::Transaction::Source::CardSettlement::Cashback::currency @@ -1787,7 +1787,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1814,7 +1814,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1844,7 +1844,7 @@ module Increase currency: Increase::Models::Transaction::Source::CardSettlement::Interchange::currency } - class Interchange < Increase::BaseModel + class Interchange < Increase::Internal::Type::BaseModel attr_accessor amount: String attr_accessor code: String? @@ -1862,7 +1862,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -1893,7 +1893,7 @@ module Increase transaction_id: String? } - class NetworkIdentifiers < Increase::BaseModel + class NetworkIdentifiers < Increase::Internal::Type::BaseModel attr_accessor acquirer_business_id: String attr_accessor acquirer_reference_number: String @@ -1923,7 +1923,7 @@ module Increase travel: Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel? } - class PurchaseDetails < Increase::BaseModel + class PurchaseDetails < Increase::Internal::Type::BaseModel attr_accessor car_rental: Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::CarRental? attr_accessor customer_reference_identifier: String? @@ -1979,7 +1979,7 @@ module Increase weekly_rental_rate_currency: String? } - class CarRental < Increase::BaseModel + class CarRental < Increase::Internal::Type::BaseModel attr_accessor car_class_code: String? attr_accessor checkout_date: Date? @@ -2042,7 +2042,7 @@ module Increase | :parking_violation module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -2069,7 +2069,7 @@ module Increase :not_applicable | :no_show_for_specialized_vehicle module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -2101,7 +2101,7 @@ module Increase total_tax_currency: String? } - class Lodging < Increase::BaseModel + class Lodging < Increase::Internal::Type::BaseModel attr_accessor check_in_date: Date? attr_accessor daily_room_rate_amount: Integer? @@ -2165,7 +2165,7 @@ module Increase | :laundry module ExtraCharges - extend Increase::Enum + extend Increase::Internal::Type::Enum # No extra charge NO_EXTRA_CHARGE: :no_extra_charge @@ -2194,7 +2194,7 @@ module Increase type no_show_indicator = :not_applicable | :no_show module NoShowIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # Not applicable NOT_APPLICABLE: :not_applicable @@ -2214,7 +2214,7 @@ module Increase | :invoice_number module PurchaseIdentifierFormat - extend Increase::Enum + extend Increase::Internal::Type::Enum # Free text FREE_TEXT: :free_text @@ -2250,7 +2250,7 @@ module Increase trip_legs: ::Array[Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg]? } - class Travel < Increase::BaseModel + class Travel < Increase::Internal::Type::BaseModel attr_accessor ancillary: Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary? attr_accessor computerized_reservation_system: String? @@ -2301,7 +2301,7 @@ module Increase ticket_document_number: String? } - class Ancillary < Increase::BaseModel + class Ancillary < Increase::Internal::Type::BaseModel attr_accessor connected_ticket_document_number: String? attr_accessor credit_reason_indicator: Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::credit_reason_indicator? @@ -2329,7 +2329,7 @@ module Increase | :other module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -2352,7 +2352,7 @@ module Increase sub_category: String? } - class Service < Increase::BaseModel + class Service < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service::category? attr_accessor sub_category: String? @@ -2391,7 +2391,7 @@ module Increase | :wifi module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -2479,7 +2479,7 @@ module Increase | :partial_refund_of_airline_ticket module CreditReasonIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No credit NO_CREDIT: :no_credit @@ -2506,7 +2506,7 @@ module Increase :no_restrictions | :restricted_non_refundable_ticket module RestrictedTicketIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # No restrictions NO_RESTRICTIONS: :no_restrictions @@ -2521,7 +2521,7 @@ module Increase :none | :change_to_existing_ticket | :new_ticket module TicketChangeIndicator - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -2545,7 +2545,7 @@ module Increase stop_over_code: Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg::stop_over_code? } - class TripLeg < Increase::BaseModel + class TripLeg < Increase::Internal::Type::BaseModel attr_accessor carrier_code: String? attr_accessor destination_city_airport_code: String? @@ -2573,7 +2573,7 @@ module Increase :none | :stop_over_allowed | :stop_over_not_allowed module StopOverCode - extend Increase::Enum + extend Increase::Internal::Type::Enum # None NONE: :none @@ -2593,7 +2593,7 @@ module Increase type type_ = :card_settlement module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CARD_SETTLEMENT: :card_settlement @@ -2610,7 +2610,7 @@ module Increase period_start: Time } - class CashbackPayment < Increase::BaseModel + class CashbackPayment < Increase::Internal::Type::BaseModel attr_accessor accrued_on_card_id: String? attr_accessor amount: Integer @@ -2634,7 +2634,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -2690,7 +2690,7 @@ module Increase | :other module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Intention: details will be under the `account_transfer_intention` object. ACCOUNT_TRANSFER_INTENTION: :account_transfer_intention @@ -2793,7 +2793,7 @@ module Increase serial_number: String? } - class CheckDepositAcceptance < Increase::BaseModel + class CheckDepositAcceptance < Increase::Internal::Type::BaseModel attr_accessor account_number: String attr_accessor amount: Integer @@ -2823,7 +2823,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -2857,7 +2857,7 @@ module Increase transaction_id: String } - class CheckDepositReturn < Increase::BaseModel + class CheckDepositReturn < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor check_deposit_id: String @@ -2884,7 +2884,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -2936,7 +2936,7 @@ module Increase | :branch_or_account_sold module ReturnReason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The check doesn't allow ACH conversion. ACH_CONVERSION_NOT_SUPPORTED: :ach_conversion_not_supported @@ -3032,7 +3032,7 @@ module Increase type: Increase::Models::Transaction::Source::CheckTransferDeposit::type_ } - class CheckTransferDeposit < Increase::BaseModel + class CheckTransferDeposit < Increase::Internal::Type::BaseModel attr_accessor back_image_file_id: String? attr_accessor bank_of_first_deposit_routing_number: String? @@ -3065,7 +3065,7 @@ module Increase type type_ = :check_transfer_deposit module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum CHECK_TRANSFER_DEPOSIT: :check_transfer_deposit @@ -3081,7 +3081,7 @@ module Increase program_id: String? } - class FeePayment < Increase::BaseModel + class FeePayment < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor currency: Increase::Models::Transaction::Source::FeePayment::currency @@ -3102,7 +3102,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3141,7 +3141,7 @@ module Increase transfer_id: String } - class InboundACHTransfer < Increase::BaseModel + class InboundACHTransfer < Increase::Internal::Type::BaseModel attr_accessor addenda: Increase::Models::Transaction::Source::InboundACHTransfer::Addenda? attr_accessor amount: Integer @@ -3186,7 +3186,7 @@ module Increase freeform: Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform? } - class Addenda < Increase::BaseModel + class Addenda < Increase::Internal::Type::BaseModel attr_accessor category: Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::category attr_accessor freeform: Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform? @@ -3201,7 +3201,7 @@ module Increase type category = :freeform module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # Unstructured addendum. FREEFORM: :freeform @@ -3214,7 +3214,7 @@ module Increase entries: ::Array[Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry] } - class Freeform < Increase::BaseModel + class Freeform < Increase::Internal::Type::BaseModel attr_accessor entries: ::Array[Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry] def initialize: ( @@ -3225,7 +3225,7 @@ module Increase type entry = { payment_related_information: String } - class Entry < Increase::BaseModel + class Entry < Increase::Internal::Type::BaseModel attr_accessor payment_related_information: String def initialize: (payment_related_information: String) -> void @@ -3239,7 +3239,7 @@ module Increase type inbound_ach_transfer_return_intention = { inbound_ach_transfer_id: String } - class InboundACHTransferReturnIntention < Increase::BaseModel + class InboundACHTransferReturnIntention < Increase::Internal::Type::BaseModel attr_accessor inbound_ach_transfer_id: String def initialize: (inbound_ach_transfer_id: String) -> void @@ -3254,7 +3254,7 @@ module Increase reason: Increase::Models::Transaction::Source::InboundCheckAdjustment::reason } - class InboundCheckAdjustment < Increase::BaseModel + class InboundCheckAdjustment < Increase::Internal::Type::BaseModel attr_accessor adjusted_transaction_id: String attr_accessor amount: Integer @@ -3276,7 +3276,7 @@ module Increase | :non_conforming_item module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The return was initiated too late and the receiving institution has responded with a Late Return Claim. LATE_RETURN: :late_return @@ -3297,7 +3297,7 @@ module Increase type inbound_check_deposit_return_intention = { inbound_check_deposit_id: String, transfer_id: String? } - class InboundCheckDepositReturnIntention < Increase::BaseModel + class InboundCheckDepositReturnIntention < Increase::Internal::Type::BaseModel attr_accessor inbound_check_deposit_id: String attr_accessor transfer_id: String? @@ -3323,7 +3323,7 @@ module Increase transfer_id: String } - class InboundRealTimePaymentsTransferConfirmation < Increase::BaseModel + class InboundRealTimePaymentsTransferConfirmation < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor creditor_name: String @@ -3359,7 +3359,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3397,7 +3397,7 @@ module Increase transfer_id: String } - class InboundRealTimePaymentsTransferDecline < Increase::BaseModel + class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor creditor_name: String @@ -3436,7 +3436,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3468,7 +3468,7 @@ module Increase | :real_time_payments_not_enabled module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # The account number is canceled. ACCOUNT_NUMBER_CANCELED: :account_number_canceled @@ -3513,7 +3513,7 @@ module Increase wire_transfer_id: String } - class InboundWireReversal < Increase::BaseModel + class InboundWireReversal < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor created_at: Time @@ -3594,7 +3594,7 @@ module Increase transfer_id: String } - class InboundWireTransfer < Increase::BaseModel + class InboundWireTransfer < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor beneficiary_address_line1: String? @@ -3661,7 +3661,7 @@ module Increase type inbound_wire_transfer_reversal = { inbound_wire_transfer_id: String } - class InboundWireTransferReversal < Increase::BaseModel + class InboundWireTransferReversal < Increase::Internal::Type::BaseModel attr_accessor inbound_wire_transfer_id: String def initialize: (inbound_wire_transfer_id: String) -> void @@ -3678,7 +3678,7 @@ module Increase period_start: Time } - class InterestPayment < Increase::BaseModel + class InterestPayment < Increase::Internal::Type::BaseModel attr_accessor accrued_on_account_id: String attr_accessor amount: Integer @@ -3702,7 +3702,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3733,7 +3733,7 @@ module Increase reason: Increase::Models::Transaction::Source::InternalSource::reason } - class InternalSource < Increase::BaseModel + class InternalSource < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor currency: Increase::Models::Transaction::Source::InternalSource::currency @@ -3751,7 +3751,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -3792,7 +3792,7 @@ module Increase | :sample_funds_return module Reason - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account closure ACCOUNT_CLOSURE: :account_closure @@ -3852,7 +3852,7 @@ module Increase transfer_id: String } - class RealTimePaymentsTransferAcknowledgement < Increase::BaseModel + class RealTimePaymentsTransferAcknowledgement < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor destination_account_number: String @@ -3876,7 +3876,7 @@ module Increase type sample_funds = { originator: String } - class SampleFunds < Increase::BaseModel + class SampleFunds < Increase::Internal::Type::BaseModel attr_accessor originator: String def initialize: (originator: String) -> void @@ -3893,7 +3893,7 @@ module Increase transfer_id: String } - class WireTransferIntention < Increase::BaseModel + class WireTransferIntention < Increase::Internal::Type::BaseModel attr_accessor account_number: String attr_accessor amount: Integer @@ -3919,7 +3919,7 @@ module Increase type type_ = :transaction module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum TRANSACTION: :transaction diff --git a/sig/increase/models/transaction_list_params.rbs b/sig/increase/models/transaction_list_params.rbs index a3f11bc8..9f0f359a 100644 --- a/sig/increase/models/transaction_list_params.rbs +++ b/sig/increase/models/transaction_list_params.rbs @@ -9,11 +9,11 @@ module Increase limit: Integer, route_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class TransactionListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class TransactionListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -58,7 +58,7 @@ module Increase type category = { in_: ::Array[Increase::Models::TransactionListParams::Category::in_] } - class Category < Increase::BaseModel + class Category < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::TransactionListParams::Category::in_]? def in_=: ( @@ -103,7 +103,7 @@ module Increase | :other module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # Account Transfer Intention: details will be under the `account_transfer_intention` object. ACCOUNT_TRANSFER_INTENTION: :account_transfer_intention @@ -199,7 +199,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/transaction_retrieve_params.rbs b/sig/increase/models/transaction_retrieve_params.rbs index f18a2ff5..569676e8 100644 --- a/sig/increase/models/transaction_retrieve_params.rbs +++ b/sig/increase/models/transaction_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type transaction_retrieve_params = { } & Increase::request_parameters + type transaction_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class TransactionRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class TransactionRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/wire_drawdown_request.rbs b/sig/increase/models/wire_drawdown_request.rbs index 6cf22b9e..83372765 100644 --- a/sig/increase/models/wire_drawdown_request.rbs +++ b/sig/increase/models/wire_drawdown_request.rbs @@ -25,7 +25,7 @@ module Increase type: Increase::Models::WireDrawdownRequest::type_ } - class WireDrawdownRequest < Increase::BaseModel + class WireDrawdownRequest < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_number_id: String @@ -98,7 +98,7 @@ module Increase :pending_submission | :pending_response | :fulfilled | :refused module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION: :pending_submission @@ -117,7 +117,7 @@ module Increase type submission = { input_message_accountability_data: String } - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel attr_accessor input_message_accountability_data: String def initialize: (input_message_accountability_data: String) -> void @@ -128,7 +128,7 @@ module Increase type type_ = :wire_drawdown_request module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum WIRE_DRAWDOWN_REQUEST: :wire_drawdown_request diff --git a/sig/increase/models/wire_drawdown_request_create_params.rbs b/sig/increase/models/wire_drawdown_request_create_params.rbs index 459311d4..1c0171de 100644 --- a/sig/increase/models/wire_drawdown_request_create_params.rbs +++ b/sig/increase/models/wire_drawdown_request_create_params.rbs @@ -16,11 +16,11 @@ module Increase :recipient_address_line2 => String, :recipient_address_line3 => String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class WireDrawdownRequestCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_number_id: String diff --git a/sig/increase/models/wire_drawdown_request_list_params.rbs b/sig/increase/models/wire_drawdown_request_list_params.rbs index f8032910..cada8b59 100644 --- a/sig/increase/models/wire_drawdown_request_list_params.rbs +++ b/sig/increase/models/wire_drawdown_request_list_params.rbs @@ -7,11 +7,11 @@ module Increase limit: Integer, status: Increase::Models::WireDrawdownRequestListParams::Status } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class WireDrawdownRequestListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireDrawdownRequestListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader cursor: String? @@ -46,7 +46,7 @@ module Increase in_: ::Array[Increase::Models::WireDrawdownRequestListParams::Status::in_] } - class Status < Increase::BaseModel + class Status < Increase::Internal::Type::BaseModel attr_reader in_: ::Array[Increase::Models::WireDrawdownRequestListParams::Status::in_]? def in_=: ( @@ -63,7 +63,7 @@ module Increase :pending_submission | :pending_response | :fulfilled | :refused module In - extend Increase::Enum + extend Increase::Internal::Type::Enum # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION: :pending_submission diff --git a/sig/increase/models/wire_drawdown_request_retrieve_params.rbs b/sig/increase/models/wire_drawdown_request_retrieve_params.rbs index 8613a7ce..7e394f61 100644 --- a/sig/increase/models/wire_drawdown_request_retrieve_params.rbs +++ b/sig/increase/models/wire_drawdown_request_retrieve_params.rbs @@ -1,11 +1,11 @@ module Increase module Models type wire_drawdown_request_retrieve_params = - { } & Increase::request_parameters + { } & Increase::Internal::Type::request_parameters - class WireDrawdownRequestRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireDrawdownRequestRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/wire_transfer.rbs b/sig/increase/models/wire_transfer.rbs index 450c4dd5..81ffd8de 100644 --- a/sig/increase/models/wire_transfer.rbs +++ b/sig/increase/models/wire_transfer.rbs @@ -33,7 +33,7 @@ module Increase type: Increase::Models::WireTransfer::type_ } - class WireTransfer < Increase::BaseModel + class WireTransfer < Increase::Internal::Type::BaseModel attr_accessor id: String attr_accessor account_id: String @@ -128,7 +128,7 @@ module Increase type approval = { approved_at: Time, approved_by: String? } - class Approval < Increase::BaseModel + class Approval < Increase::Internal::Type::BaseModel attr_accessor approved_at: Time attr_accessor approved_by: String? @@ -140,7 +140,7 @@ module Increase type cancellation = { canceled_at: Time, canceled_by: String? } - class Cancellation < Increase::BaseModel + class Cancellation < Increase::Internal::Type::BaseModel attr_accessor canceled_at: Time attr_accessor canceled_by: String? @@ -158,7 +158,7 @@ module Increase user: Increase::Models::WireTransfer::CreatedBy::User? } - class CreatedBy < Increase::BaseModel + class CreatedBy < Increase::Internal::Type::BaseModel attr_accessor api_key: Increase::Models::WireTransfer::CreatedBy::APIKey? attr_accessor category: Increase::Models::WireTransfer::CreatedBy::category @@ -178,7 +178,7 @@ module Increase type api_key = { description: String? } - class APIKey < Increase::BaseModel + class APIKey < Increase::Internal::Type::BaseModel attr_accessor description: String? def initialize: (description: String?) -> void @@ -189,7 +189,7 @@ module Increase type category = :api_key | :oauth_application | :user module Category - extend Increase::Enum + extend Increase::Internal::Type::Enum # An API key. Details will be under the `api_key` object. API_KEY: :api_key @@ -205,7 +205,7 @@ module Increase type oauth_application = { name: String } - class OAuthApplication < Increase::BaseModel + class OAuthApplication < Increase::Internal::Type::BaseModel attr_accessor name: String def initialize: (name: String) -> void @@ -215,7 +215,7 @@ module Increase type user = { email: String } - class User < Increase::BaseModel + class User < Increase::Internal::Type::BaseModel attr_accessor email: String def initialize: (email: String) -> void @@ -227,7 +227,7 @@ module Increase type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency - extend Increase::Enum + extend Increase::Internal::Type::Enum # Canadian Dollar (CAD) CAD: :CAD @@ -253,7 +253,7 @@ module Increase type network = :wire module Network - extend Increase::Enum + extend Increase::Internal::Type::Enum WIRE: :wire @@ -281,7 +281,7 @@ module Increase wire_transfer_id: String } - class Reversal < Increase::BaseModel + class Reversal < Increase::Internal::Type::BaseModel attr_accessor amount: Integer attr_accessor created_at: Time @@ -351,7 +351,7 @@ module Increase | :complete module Status - extend Increase::Enum + extend Increase::Internal::Type::Enum # The transfer is pending approval. PENDING_APPROVAL: :pending_approval @@ -386,7 +386,7 @@ module Increase type submission = { input_message_accountability_data: String, submitted_at: Time } - class Submission < Increase::BaseModel + class Submission < Increase::Internal::Type::BaseModel attr_accessor input_message_accountability_data: String attr_accessor submitted_at: Time @@ -402,7 +402,7 @@ module Increase type type_ = :wire_transfer module Type - extend Increase::Enum + extend Increase::Internal::Type::Enum WIRE_TRANSFER: :wire_transfer diff --git a/sig/increase/models/wire_transfer_approve_params.rbs b/sig/increase/models/wire_transfer_approve_params.rbs index 74795947..ee38b0d9 100644 --- a/sig/increase/models/wire_transfer_approve_params.rbs +++ b/sig/increase/models/wire_transfer_approve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type wire_transfer_approve_params = { } & Increase::request_parameters + type wire_transfer_approve_params = + { } & Increase::Internal::Type::request_parameters - class WireTransferApproveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/wire_transfer_cancel_params.rbs b/sig/increase/models/wire_transfer_cancel_params.rbs index 83274a71..c8e2e4e8 100644 --- a/sig/increase/models/wire_transfer_cancel_params.rbs +++ b/sig/increase/models/wire_transfer_cancel_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type wire_transfer_cancel_params = { } & Increase::request_parameters + type wire_transfer_cancel_params = + { } & Increase::Internal::Type::request_parameters - class WireTransferCancelParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/models/wire_transfer_create_params.rbs b/sig/increase/models/wire_transfer_create_params.rbs index ba6e5678..3e8cda89 100644 --- a/sig/increase/models/wire_transfer_create_params.rbs +++ b/sig/increase/models/wire_transfer_create_params.rbs @@ -19,11 +19,11 @@ module Increase routing_number: String, source_account_number_id: String } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class WireTransferCreateParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_accessor account_id: String diff --git a/sig/increase/models/wire_transfer_list_params.rbs b/sig/increase/models/wire_transfer_list_params.rbs index 17921ed6..78102392 100644 --- a/sig/increase/models/wire_transfer_list_params.rbs +++ b/sig/increase/models/wire_transfer_list_params.rbs @@ -9,11 +9,11 @@ module Increase idempotency_key: String, limit: Integer } - & Increase::request_parameters + & Increase::Internal::Type::request_parameters - class WireTransferListParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferListParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters attr_reader account_id: String? @@ -56,7 +56,7 @@ module Increase type created_at = { after: Time, before: Time, on_or_after: Time, on_or_before: Time } - class CreatedAt < Increase::BaseModel + class CreatedAt < Increase::Internal::Type::BaseModel attr_reader after: Time? def after=: (Time) -> Time diff --git a/sig/increase/models/wire_transfer_retrieve_params.rbs b/sig/increase/models/wire_transfer_retrieve_params.rbs index 32207e96..c48c152f 100644 --- a/sig/increase/models/wire_transfer_retrieve_params.rbs +++ b/sig/increase/models/wire_transfer_retrieve_params.rbs @@ -1,10 +1,11 @@ module Increase module Models - type wire_transfer_retrieve_params = { } & Increase::request_parameters + type wire_transfer_retrieve_params = + { } & Increase::Internal::Type::request_parameters - class WireTransferRetrieveParams < Increase::BaseModel - extend Increase::Type::RequestParameters::Converter - include Increase::RequestParameters + class WireTransferRetrieveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters def initialize: (?request_options: Increase::request_opts) -> void diff --git a/sig/increase/page.rbs b/sig/increase/page.rbs deleted file mode 100644 index bd491830..00000000 --- a/sig/increase/page.rbs +++ /dev/null @@ -1,11 +0,0 @@ -module Increase - class Page[Elem] - include Increase::Type::BasePage[Elem] - - attr_accessor data: ::Array[Elem]? - - attr_accessor next_cursor: String? - - def inspect: -> String - end -end diff --git a/sig/increase/request_options.rbs b/sig/increase/request_options.rbs index 801c5065..8aef66a3 100644 --- a/sig/increase/request_options.rbs +++ b/sig/increase/request_options.rbs @@ -12,7 +12,7 @@ module Increase timeout: Float? } - class RequestOptions < Increase::BaseModel + class RequestOptions < Increase::Internal::Type::BaseModel def self.validate!: (self | ::Hash[Symbol, top] opts) -> void attr_accessor idempotency_key: String? diff --git a/sig/increase/resources/account_numbers.rbs b/sig/increase/resources/account_numbers.rbs index e140bfbb..8642a31a 100644 --- a/sig/increase/resources/account_numbers.rbs +++ b/sig/increase/resources/account_numbers.rbs @@ -32,7 +32,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::AccountNumberListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::AccountNumber] + ) -> Increase::Internal::Page[Increase::Models::AccountNumber] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/account_statements.rbs b/sig/increase/resources/account_statements.rbs index 63168fd8..c3ce0a79 100644 --- a/sig/increase/resources/account_statements.rbs +++ b/sig/increase/resources/account_statements.rbs @@ -12,7 +12,7 @@ module Increase ?limit: Integer, ?statement_period_start: Increase::Models::AccountStatementListParams::StatementPeriodStart, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::AccountStatement] + ) -> Increase::Internal::Page[Increase::Models::AccountStatement] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/account_transfers.rbs b/sig/increase/resources/account_transfers.rbs index 9f47c1eb..78c28e05 100644 --- a/sig/increase/resources/account_transfers.rbs +++ b/sig/increase/resources/account_transfers.rbs @@ -22,7 +22,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::AccountTransfer] + ) -> Increase::Internal::Page[Increase::Models::AccountTransfer] def approve: ( String account_transfer_id, diff --git a/sig/increase/resources/accounts.rbs b/sig/increase/resources/accounts.rbs index 559ec0ae..e589b654 100644 --- a/sig/increase/resources/accounts.rbs +++ b/sig/increase/resources/accounts.rbs @@ -30,7 +30,7 @@ module Increase ?program_id: String, ?status: Increase::Models::AccountListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Account] + ) -> Increase::Internal::Page[Increase::Models::Account] def balance: ( String account_id, diff --git a/sig/increase/resources/ach_prenotifications.rbs b/sig/increase/resources/ach_prenotifications.rbs index d00e0b5a..60c36837 100644 --- a/sig/increase/resources/ach_prenotifications.rbs +++ b/sig/increase/resources/ach_prenotifications.rbs @@ -29,7 +29,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::ACHPrenotification] + ) -> Increase::Internal::Page[Increase::Models::ACHPrenotification] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/ach_transfers.rbs b/sig/increase/resources/ach_transfers.rbs index 2c2fe4a7..46ad0e34 100644 --- a/sig/increase/resources/ach_transfers.rbs +++ b/sig/increase/resources/ach_transfers.rbs @@ -38,7 +38,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::ACHTransferListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::ACHTransfer] + ) -> Increase::Internal::Page[Increase::Models::ACHTransfer] def approve: ( String ach_transfer_id, diff --git a/sig/increase/resources/bookkeeping_accounts.rbs b/sig/increase/resources/bookkeeping_accounts.rbs index 2a912f66..14b09833 100644 --- a/sig/increase/resources/bookkeeping_accounts.rbs +++ b/sig/increase/resources/bookkeeping_accounts.rbs @@ -20,7 +20,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::BookkeepingAccount] + ) -> Increase::Internal::Page[Increase::Models::BookkeepingAccount] def balance: ( String bookkeeping_account_id, diff --git a/sig/increase/resources/bookkeeping_entries.rbs b/sig/increase/resources/bookkeeping_entries.rbs index f952b544..8dac79b8 100644 --- a/sig/increase/resources/bookkeeping_entries.rbs +++ b/sig/increase/resources/bookkeeping_entries.rbs @@ -11,7 +11,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::BookkeepingEntry] + ) -> Increase::Internal::Page[Increase::Models::BookkeepingEntry] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/bookkeeping_entry_sets.rbs b/sig/increase/resources/bookkeeping_entry_sets.rbs index be21f2ac..09bb4063 100644 --- a/sig/increase/resources/bookkeeping_entry_sets.rbs +++ b/sig/increase/resources/bookkeeping_entry_sets.rbs @@ -19,7 +19,7 @@ module Increase ?limit: Integer, ?transaction_id: String, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::BookkeepingEntrySet] + ) -> Increase::Internal::Page[Increase::Models::BookkeepingEntrySet] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/card_disputes.rbs b/sig/increase/resources/card_disputes.rbs index a80232e6..730698fd 100644 --- a/sig/increase/resources/card_disputes.rbs +++ b/sig/increase/resources/card_disputes.rbs @@ -20,7 +20,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::CardDisputeListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::CardDispute] + ) -> Increase::Internal::Page[Increase::Models::CardDispute] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/card_payments.rbs b/sig/increase/resources/card_payments.rbs index f6860305..f7c0991c 100644 --- a/sig/increase/resources/card_payments.rbs +++ b/sig/increase/resources/card_payments.rbs @@ -13,7 +13,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::CardPayment] + ) -> Increase::Internal::Page[Increase::Models::CardPayment] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/card_purchase_supplements.rbs b/sig/increase/resources/card_purchase_supplements.rbs index 26a84a62..8f0d66c2 100644 --- a/sig/increase/resources/card_purchase_supplements.rbs +++ b/sig/increase/resources/card_purchase_supplements.rbs @@ -12,7 +12,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::CardPurchaseSupplement] + ) -> Increase::Internal::Page[Increase::Models::CardPurchaseSupplement] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/cards.rbs b/sig/increase/resources/cards.rbs index 5c273ea2..f2884e76 100644 --- a/sig/increase/resources/cards.rbs +++ b/sig/increase/resources/cards.rbs @@ -33,7 +33,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::CardListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Card] + ) -> Increase::Internal::Page[Increase::Models::Card] def details: ( String card_id, diff --git a/sig/increase/resources/check_deposits.rbs b/sig/increase/resources/check_deposits.rbs index 9af52d6f..e727a72f 100644 --- a/sig/increase/resources/check_deposits.rbs +++ b/sig/increase/resources/check_deposits.rbs @@ -22,7 +22,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::CheckDeposit] + ) -> Increase::Internal::Page[Increase::Models::CheckDeposit] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/check_transfers.rbs b/sig/increase/resources/check_transfers.rbs index b1c5676a..42d898c3 100644 --- a/sig/increase/resources/check_transfers.rbs +++ b/sig/increase/resources/check_transfers.rbs @@ -25,7 +25,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::CheckTransferListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::CheckTransfer] + ) -> Increase::Internal::Page[Increase::Models::CheckTransfer] def approve: ( String check_transfer_id, diff --git a/sig/increase/resources/declined_transactions.rbs b/sig/increase/resources/declined_transactions.rbs index 3d3e8902..405b731c 100644 --- a/sig/increase/resources/declined_transactions.rbs +++ b/sig/increase/resources/declined_transactions.rbs @@ -14,7 +14,7 @@ module Increase ?limit: Integer, ?route_id: String, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::DeclinedTransaction] + ) -> Increase::Internal::Page[Increase::Models::DeclinedTransaction] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/digital_card_profiles.rbs b/sig/increase/resources/digital_card_profiles.rbs index 23cd5afd..b344a1e8 100644 --- a/sig/increase/resources/digital_card_profiles.rbs +++ b/sig/increase/resources/digital_card_profiles.rbs @@ -25,7 +25,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::DigitalCardProfileListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::DigitalCardProfile] + ) -> Increase::Internal::Page[Increase::Models::DigitalCardProfile] def archive: ( String digital_card_profile_id, diff --git a/sig/increase/resources/digital_wallet_tokens.rbs b/sig/increase/resources/digital_wallet_tokens.rbs index 054f4137..8841925b 100644 --- a/sig/increase/resources/digital_wallet_tokens.rbs +++ b/sig/increase/resources/digital_wallet_tokens.rbs @@ -12,7 +12,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::DigitalWalletToken] + ) -> Increase::Internal::Page[Increase::Models::DigitalWalletToken] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/documents.rbs b/sig/increase/resources/documents.rbs index 37287b02..140ea5bd 100644 --- a/sig/increase/resources/documents.rbs +++ b/sig/increase/resources/documents.rbs @@ -13,7 +13,7 @@ module Increase ?entity_id: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Document] + ) -> Increase::Internal::Page[Increase::Models::Document] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/entities.rbs b/sig/increase/resources/entities.rbs index 2b6bee07..e1c57ae1 100644 --- a/sig/increase/resources/entities.rbs +++ b/sig/increase/resources/entities.rbs @@ -26,7 +26,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::EntityListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Entity] + ) -> Increase::Internal::Page[Increase::Models::Entity] def archive: ( String entity_id, diff --git a/sig/increase/resources/event_subscriptions.rbs b/sig/increase/resources/event_subscriptions.rbs index da4adb77..3994b637 100644 --- a/sig/increase/resources/event_subscriptions.rbs +++ b/sig/increase/resources/event_subscriptions.rbs @@ -25,7 +25,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::EventSubscription] + ) -> Increase::Internal::Page[Increase::Models::EventSubscription] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/events.rbs b/sig/increase/resources/events.rbs index c4a46384..1171ac72 100644 --- a/sig/increase/resources/events.rbs +++ b/sig/increase/resources/events.rbs @@ -13,7 +13,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Event] + ) -> Increase::Internal::Page[Increase::Models::Event] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/exports.rbs b/sig/increase/resources/exports.rbs index e0a4a72a..4efd8338 100644 --- a/sig/increase/resources/exports.rbs +++ b/sig/increase/resources/exports.rbs @@ -25,7 +25,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::ExportListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Export] + ) -> Increase::Internal::Page[Increase::Models::Export] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/external_accounts.rbs b/sig/increase/resources/external_accounts.rbs index 50dcd352..819491c5 100644 --- a/sig/increase/resources/external_accounts.rbs +++ b/sig/increase/resources/external_accounts.rbs @@ -31,7 +31,7 @@ module Increase ?routing_number: String, ?status: Increase::Models::ExternalAccountListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::ExternalAccount] + ) -> Increase::Internal::Page[Increase::Models::ExternalAccount] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/files.rbs b/sig/increase/resources/files.rbs index 18ff41e1..57445943 100644 --- a/sig/increase/resources/files.rbs +++ b/sig/increase/resources/files.rbs @@ -20,7 +20,7 @@ module Increase ?limit: Integer, ?purpose: Increase::Models::FileListParams::Purpose, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::File] + ) -> Increase::Internal::Page[Increase::Models::File] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/inbound_ach_transfers.rbs b/sig/increase/resources/inbound_ach_transfers.rbs index c0dfa252..70edb5ed 100644 --- a/sig/increase/resources/inbound_ach_transfers.rbs +++ b/sig/increase/resources/inbound_ach_transfers.rbs @@ -14,7 +14,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::InboundACHTransferListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::InboundACHTransfer] + ) -> Increase::Internal::Page[Increase::Models::InboundACHTransfer] def create_notification_of_change: ( String inbound_ach_transfer_id, diff --git a/sig/increase/resources/inbound_check_deposits.rbs b/sig/increase/resources/inbound_check_deposits.rbs index 09416f97..449c8dc5 100644 --- a/sig/increase/resources/inbound_check_deposits.rbs +++ b/sig/increase/resources/inbound_check_deposits.rbs @@ -13,7 +13,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::InboundCheckDeposit] + ) -> Increase::Internal::Page[Increase::Models::InboundCheckDeposit] def decline: ( String inbound_check_deposit_id, diff --git a/sig/increase/resources/inbound_mail_items.rbs b/sig/increase/resources/inbound_mail_items.rbs index 50157761..8c06afbf 100644 --- a/sig/increase/resources/inbound_mail_items.rbs +++ b/sig/increase/resources/inbound_mail_items.rbs @@ -12,7 +12,7 @@ module Increase ?limit: Integer, ?lockbox_id: String, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::InboundMailItem] + ) -> Increase::Internal::Page[Increase::Models::InboundMailItem] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/inbound_real_time_payments_transfers.rbs b/sig/increase/resources/inbound_real_time_payments_transfers.rbs index 760fac69..df98c484 100644 --- a/sig/increase/resources/inbound_real_time_payments_transfers.rbs +++ b/sig/increase/resources/inbound_real_time_payments_transfers.rbs @@ -13,7 +13,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::InboundRealTimePaymentsTransfer] + ) -> Increase::Internal::Page[Increase::Models::InboundRealTimePaymentsTransfer] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/inbound_wire_drawdown_requests.rbs b/sig/increase/resources/inbound_wire_drawdown_requests.rbs index 366d1d12..103398ff 100644 --- a/sig/increase/resources/inbound_wire_drawdown_requests.rbs +++ b/sig/increase/resources/inbound_wire_drawdown_requests.rbs @@ -10,7 +10,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::InboundWireDrawdownRequest] + ) -> Increase::Internal::Page[Increase::Models::InboundWireDrawdownRequest] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/inbound_wire_transfers.rbs b/sig/increase/resources/inbound_wire_transfers.rbs index 71e22b5f..3d7a6acb 100644 --- a/sig/increase/resources/inbound_wire_transfers.rbs +++ b/sig/increase/resources/inbound_wire_transfers.rbs @@ -14,7 +14,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::InboundWireTransferListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::InboundWireTransfer] + ) -> Increase::Internal::Page[Increase::Models::InboundWireTransfer] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/intrafi_account_enrollments.rbs b/sig/increase/resources/intrafi_account_enrollments.rbs index da02bdc9..c9ad1efd 100644 --- a/sig/increase/resources/intrafi_account_enrollments.rbs +++ b/sig/increase/resources/intrafi_account_enrollments.rbs @@ -19,7 +19,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::IntrafiAccountEnrollmentListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::IntrafiAccountEnrollment] + ) -> Increase::Internal::Page[Increase::Models::IntrafiAccountEnrollment] def unenroll: ( String intrafi_account_enrollment_id, diff --git a/sig/increase/resources/intrafi_exclusions.rbs b/sig/increase/resources/intrafi_exclusions.rbs index 1eeabc44..0ac24f84 100644 --- a/sig/increase/resources/intrafi_exclusions.rbs +++ b/sig/increase/resources/intrafi_exclusions.rbs @@ -18,7 +18,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::IntrafiExclusion] + ) -> Increase::Internal::Page[Increase::Models::IntrafiExclusion] def archive: ( String intrafi_exclusion_id, diff --git a/sig/increase/resources/lockboxes.rbs b/sig/increase/resources/lockboxes.rbs index 87199f10..b7348a50 100644 --- a/sig/increase/resources/lockboxes.rbs +++ b/sig/increase/resources/lockboxes.rbs @@ -28,7 +28,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Lockbox] + ) -> Increase::Internal::Page[Increase::Models::Lockbox] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/oauth_applications.rbs b/sig/increase/resources/oauth_applications.rbs index 122af51b..d02f3463 100644 --- a/sig/increase/resources/oauth_applications.rbs +++ b/sig/increase/resources/oauth_applications.rbs @@ -12,7 +12,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::OAuthApplicationListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::OAuthApplication] + ) -> Increase::Internal::Page[Increase::Models::OAuthApplication] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/oauth_connections.rbs b/sig/increase/resources/oauth_connections.rbs index 809b15ac..739d92f8 100644 --- a/sig/increase/resources/oauth_connections.rbs +++ b/sig/increase/resources/oauth_connections.rbs @@ -12,7 +12,7 @@ module Increase ?oauth_application_id: String, ?status: Increase::Models::OAuthConnectionListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::OAuthConnection] + ) -> Increase::Internal::Page[Increase::Models::OAuthConnection] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/pending_transactions.rbs b/sig/increase/resources/pending_transactions.rbs index cc8f481c..65aa3256 100644 --- a/sig/increase/resources/pending_transactions.rbs +++ b/sig/increase/resources/pending_transactions.rbs @@ -15,7 +15,7 @@ module Increase ?route_id: String, ?status: Increase::Models::PendingTransactionListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::PendingTransaction] + ) -> Increase::Internal::Page[Increase::Models::PendingTransaction] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/physical_card_profiles.rbs b/sig/increase/resources/physical_card_profiles.rbs index 8a6e8588..2ab793bd 100644 --- a/sig/increase/resources/physical_card_profiles.rbs +++ b/sig/increase/resources/physical_card_profiles.rbs @@ -20,7 +20,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::PhysicalCardProfileListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::PhysicalCardProfile] + ) -> Increase::Internal::Page[Increase::Models::PhysicalCardProfile] def archive: ( String physical_card_profile_id, diff --git a/sig/increase/resources/physical_cards.rbs b/sig/increase/resources/physical_cards.rbs index f2e16fca..6113fe3f 100644 --- a/sig/increase/resources/physical_cards.rbs +++ b/sig/increase/resources/physical_cards.rbs @@ -27,7 +27,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::PhysicalCard] + ) -> Increase::Internal::Page[Increase::Models::PhysicalCard] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/programs.rbs b/sig/increase/resources/programs.rbs index 15d42aba..fe660f5e 100644 --- a/sig/increase/resources/programs.rbs +++ b/sig/increase/resources/programs.rbs @@ -10,7 +10,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Program] + ) -> Increase::Internal::Page[Increase::Models::Program] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/proof_of_authorization_request_submissions.rbs b/sig/increase/resources/proof_of_authorization_request_submissions.rbs index 4acb60a5..20a934c3 100644 --- a/sig/increase/resources/proof_of_authorization_request_submissions.rbs +++ b/sig/increase/resources/proof_of_authorization_request_submissions.rbs @@ -28,7 +28,7 @@ module Increase ?limit: Integer, ?proof_of_authorization_request_id: String, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::ProofOfAuthorizationRequestSubmission] + ) -> Increase::Internal::Page[Increase::Models::ProofOfAuthorizationRequestSubmission] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/proof_of_authorization_requests.rbs b/sig/increase/resources/proof_of_authorization_requests.rbs index 53d64062..cbdae93c 100644 --- a/sig/increase/resources/proof_of_authorization_requests.rbs +++ b/sig/increase/resources/proof_of_authorization_requests.rbs @@ -11,7 +11,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::ProofOfAuthorizationRequest] + ) -> Increase::Internal::Page[Increase::Models::ProofOfAuthorizationRequest] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/real_time_payments_transfers.rbs b/sig/increase/resources/real_time_payments_transfers.rbs index cdf7b873..eb96adac 100644 --- a/sig/increase/resources/real_time_payments_transfers.rbs +++ b/sig/increase/resources/real_time_payments_transfers.rbs @@ -30,7 +30,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::RealTimePaymentsTransferListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::RealTimePaymentsTransfer] + ) -> Increase::Internal::Page[Increase::Models::RealTimePaymentsTransfer] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/routing_numbers.rbs b/sig/increase/resources/routing_numbers.rbs index 60772b39..212973ac 100644 --- a/sig/increase/resources/routing_numbers.rbs +++ b/sig/increase/resources/routing_numbers.rbs @@ -6,7 +6,7 @@ module Increase ?cursor: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::RoutingNumberListResponse] + ) -> Increase::Internal::Page[Increase::Models::RoutingNumberListResponse] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/supplemental_documents.rbs b/sig/increase/resources/supplemental_documents.rbs index 2441944a..34a7370e 100644 --- a/sig/increase/resources/supplemental_documents.rbs +++ b/sig/increase/resources/supplemental_documents.rbs @@ -13,7 +13,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::EntitySupplementalDocument] + ) -> Increase::Internal::Page[Increase::Models::EntitySupplementalDocument] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/transactions.rbs b/sig/increase/resources/transactions.rbs index 7544fd4c..419ba337 100644 --- a/sig/increase/resources/transactions.rbs +++ b/sig/increase/resources/transactions.rbs @@ -14,7 +14,7 @@ module Increase ?limit: Integer, ?route_id: String, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::Transaction] + ) -> Increase::Internal::Page[Increase::Models::Transaction] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/wire_drawdown_requests.rbs b/sig/increase/resources/wire_drawdown_requests.rbs index 3e3dd357..3655eace 100644 --- a/sig/increase/resources/wire_drawdown_requests.rbs +++ b/sig/increase/resources/wire_drawdown_requests.rbs @@ -29,7 +29,7 @@ module Increase ?limit: Integer, ?status: Increase::Models::WireDrawdownRequestListParams::Status, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::WireDrawdownRequest] + ) -> Increase::Internal::Page[Increase::Models::WireDrawdownRequest] def initialize: (client: Increase::Client) -> void end diff --git a/sig/increase/resources/wire_transfers.rbs b/sig/increase/resources/wire_transfers.rbs index 431e08be..5091b83f 100644 --- a/sig/increase/resources/wire_transfers.rbs +++ b/sig/increase/resources/wire_transfers.rbs @@ -34,7 +34,7 @@ module Increase ?idempotency_key: String, ?limit: Integer, ?request_options: Increase::request_opts - ) -> Increase::Page[Increase::Models::WireTransfer] + ) -> Increase::Internal::Page[Increase::Models::WireTransfer] def approve: ( String wire_transfer_id, diff --git a/sig/increase/transport/base_client.rbs b/sig/increase/transport/base_client.rbs deleted file mode 100644 index da2f0b6a..00000000 --- a/sig/increase/transport/base_client.rbs +++ /dev/null @@ -1,110 +0,0 @@ -module Increase - module Transport - class BaseClient - type request_components = - { - method: Symbol, - path: String | ::Array[String], - query: ::Hash[String, (::Array[String] | String)?]?, - headers: ::Hash[String, (String - | Integer - | ::Array[(String | Integer)?])?]?, - body: top?, - unwrap: Symbol?, - page: Class?, - stream: Class?, - model: Increase::Type::Converter::input?, - options: Increase::request_opts? - } - - type request_input = - { - method: Symbol, - url: URI::Generic, - headers: ::Hash[String, String], - body: top, - max_retries: Integer, - timeout: Float - } - - MAX_REDIRECTS: 20 - - PLATFORM_HEADERS: ::Hash[String, String] - - def self.validate!: ( - Increase::Transport::BaseClient::request_components req - ) -> void - - def self.should_retry?: ( - Integer status, - headers: ::Hash[String, String] - ) -> bool - - def self.follow_redirect: ( - Increase::Transport::BaseClient::request_input request, - status: Integer, - response_headers: ::Hash[String, String] - ) -> Increase::Transport::BaseClient::request_input - - def self.reap_connection!: ( - Integer | Increase::Errors::APIConnectionError status, - stream: Enumerable[String]? - ) -> void - - # @api private - attr_accessor requester: Increase::Transport::PooledNetRequester - - def initialize: ( - base_url: String, - ?timeout: Float, - ?max_retries: Integer, - ?initial_retry_delay: Float, - ?max_retry_delay: Float, - ?headers: ::Hash[String, (String - | Integer - | ::Array[(String | Integer)?])?], - ?idempotency_header: String? - ) -> void - - private def auth_headers: -> ::Hash[String, String] - - private def generate_idempotency_key: -> String - - private def build_request: ( - Increase::Transport::BaseClient::request_components req, - Increase::request_options opts - ) -> Increase::Transport::BaseClient::request_input - - private def retry_delay: ( - ::Hash[String, String] headers, - retry_count: Integer - ) -> Float - - private def send_request: ( - Increase::Transport::BaseClient::request_input request, - redirect_count: Integer, - retry_count: Integer, - send_retry_header: bool - ) -> [Integer, top, Enumerable[String]] - - def request: - ( - Symbol method, - String | ::Array[String] path, - ?query: ::Hash[String, (::Array[String] | String)?]?, - ?headers: ::Hash[String, (String - | Integer - | ::Array[(String | Integer)?])?]?, - ?body: top?, - ?unwrap: Symbol?, - ?page: Class?, - ?stream: Class?, - ?model: Increase::Type::Converter::input?, - ?options: Increase::request_opts? - ) -> top - | (Increase::Transport::BaseClient::request_components req) -> top - - def inspect: -> String - end - end -end diff --git a/sig/increase/transport/pooled_net_requester.rbs b/sig/increase/transport/pooled_net_requester.rbs deleted file mode 100644 index c3ad0638..00000000 --- a/sig/increase/transport/pooled_net_requester.rbs +++ /dev/null @@ -1,39 +0,0 @@ -module Increase - module Transport - class PooledNetRequester - type request = - { - method: Symbol, - url: URI::Generic, - headers: ::Hash[String, String], - body: top, - deadline: Float - } - - KEEP_ALIVE_TIMEOUT: 30 - - def self.connect: (URI::Generic url) -> top - - def self.calibrate_socket_timeout: (top conn, Float deadline) -> void - - def self.build_request: ( - Increase::Transport::PooledNetRequester::request request - ) { - (String arg0) -> void - } -> top - - private def with_pool: ( - URI::Generic url, - deadline: Float - ) { - (top arg0) -> void - } -> void - - def execute: ( - Increase::Transport::PooledNetRequester::request request - ) -> [Integer, top, Enumerable[String]] - - def initialize: (?size: Integer) -> void - end - end -end diff --git a/sig/increase/type.rbs b/sig/increase/type.rbs deleted file mode 100644 index 008ede6a..00000000 --- a/sig/increase/type.rbs +++ /dev/null @@ -1,22 +0,0 @@ -module Increase - class Unknown = Increase::Type::Unknown - - class BooleanModel = Increase::Type::BooleanModel - - module Enum = Increase::Type::Enum - - module Union = Increase::Type::Union - - class ArrayOf = Increase::Type::ArrayOf - - class HashOf = Increase::Type::HashOf - - class BaseModel = Increase::Type::BaseModel - - type request_parameters = Increase::Type::request_parameters - - module RequestParameters = Increase::Type::RequestParameters - - module Type - end -end diff --git a/sig/increase/type/array_of.rbs b/sig/increase/type/array_of.rbs deleted file mode 100644 index d9195b18..00000000 --- a/sig/increase/type/array_of.rbs +++ /dev/null @@ -1,36 +0,0 @@ -module Increase - module Type - class ArrayOf[Elem] - include Increase::Type::Converter - - def self.[]: ( - ::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> instance - - def ===: (top other) -> bool - - def ==: (top other) -> bool - - def coerce: ( - Enumerable[Elem] | top value, - state: Increase::Type::Converter::state - ) -> (::Array[top] | top) - - def dump: (Enumerable[Elem] | top value) -> (::Array[top] | top) - - def item_type: -> Elem - - def nilable?: -> bool - - def initialize: ( - ::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - end - end -end diff --git a/sig/increase/type/base_model.rbs b/sig/increase/type/base_model.rbs deleted file mode 100644 index 5f71eb6c..00000000 --- a/sig/increase/type/base_model.rbs +++ /dev/null @@ -1,77 +0,0 @@ -module Increase - module Type - class BaseModel - extend Increase::Type::Converter - - type known_field = - { mode: (:coerce | :dump)?, required: bool, nilable: bool } - - def self.known_fields: -> ::Hash[Symbol, (Increase::BaseModel::known_field - & { type_fn: (^-> Increase::Type::Converter::input) })] - - def self.fields: -> ::Hash[Symbol, (Increase::BaseModel::known_field - & { type: Increase::Type::Converter::input })] - - private def self.add_field: ( - Symbol name_sym, - required: bool, - type_info: { - const: (nil | bool | Integer | Float | Symbol)?, - enum: ^-> Increase::Type::Converter::input?, - union: ^-> Increase::Type::Converter::input?, - api_name: Symbol - } - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input, - spec: ::Hash[Symbol, top] - ) -> void - - def self.required: ( - Symbol name_sym, - ::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - - def self.optional: ( - Symbol name_sym, - ::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - - private def self.request_only: { -> void } -> void - - private def self.response_only: { -> void } -> void - - def self.==: (top other) -> bool - - def ==: (top other) -> bool - - def self.coerce: ( - Increase::BaseModel | ::Hash[top, top] | top value, - state: Increase::Type::Converter::state - ) -> (instance | top) - - def self.dump: (instance | top value) -> (::Hash[top, top] | top) - - def []: (Symbol key) -> top? - - def to_h: -> ::Hash[Symbol, top] - - alias to_hash to_h - - def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top] - - def to_json: (*top a) -> String - - def to_yaml: (*top a) -> String - - def initialize: (?::Hash[Symbol, top] | self data) -> void - - def inspect: -> String - end - end -end diff --git a/sig/increase/type/base_page.rbs b/sig/increase/type/base_page.rbs deleted file mode 100644 index 0215644d..00000000 --- a/sig/increase/type/base_page.rbs +++ /dev/null @@ -1,22 +0,0 @@ -module Increase - module Type - module BasePage[Elem] - def next_page?: -> bool - - def next_page: -> self - - def auto_paging_each: { (Elem arg0) -> void } -> void - - def to_enum: -> Enumerable[Elem] - - alias enum_for to_enum - - def initialize: ( - client: Increase::Transport::BaseClient, - req: Increase::Transport::BaseClient::request_components, - headers: ::Hash[String, String], - page_data: top - ) -> void - end - end -end diff --git a/sig/increase/type/boolean_model.rbs b/sig/increase/type/boolean_model.rbs deleted file mode 100644 index da40185f..00000000 --- a/sig/increase/type/boolean_model.rbs +++ /dev/null @@ -1,18 +0,0 @@ -module Increase - module Type - class BooleanModel - extend Increase::Type::Converter - - def self.===: (top other) -> bool - - def self.==: (top other) -> bool - - def self.coerce: ( - bool | top value, - state: Increase::Type::Converter::state - ) -> (bool | top) - - def self.dump: (bool | top value) -> (bool | top) - end - end -end diff --git a/sig/increase/type/converter.rbs b/sig/increase/type/converter.rbs deleted file mode 100644 index 4da5bbd9..00000000 --- a/sig/increase/type/converter.rbs +++ /dev/null @@ -1,36 +0,0 @@ -module Increase - module Type - module Converter - type input = Increase::Type::Converter | Class - - type state = - { - strictness: bool | :strong, - exactness: { yes: Integer, no: Integer, maybe: Integer }, - branched: Integer - } - - def coerce: (top value, state: Increase::Type::Converter::state) -> top - - def dump: (top value) -> top - - def self.type_info: ( - { - const: (nil | bool | Integer | Float | Symbol)?, - enum: ^-> Increase::Type::Converter::input?, - union: ^-> Increase::Type::Converter::input? - } - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input spec - ) -> (^-> top) - - def self.coerce: ( - Increase::Type::Converter::input target, - top value, - ?state: Increase::Type::Converter::state - ) -> top - - def self.dump: (Increase::Type::Converter::input target, top value) -> top - end - end -end diff --git a/sig/increase/type/enum.rbs b/sig/increase/type/enum.rbs deleted file mode 100644 index 9c42c4a5..00000000 --- a/sig/increase/type/enum.rbs +++ /dev/null @@ -1,22 +0,0 @@ -module Increase - module Type - module Enum - include Increase::Type::Converter - - def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] - - private def self.finalize!: -> void - - def ===: (top other) -> bool - - def ==: (top other) -> bool - - def coerce: ( - String | Symbol | top value, - state: Increase::Type::Converter::state - ) -> (Symbol | top) - - def dump: (Symbol | top value) -> (Symbol | top) - end - end -end diff --git a/sig/increase/type/hash_of.rbs b/sig/increase/type/hash_of.rbs deleted file mode 100644 index 250982cc..00000000 --- a/sig/increase/type/hash_of.rbs +++ /dev/null @@ -1,36 +0,0 @@ -module Increase - module Type - class HashOf[Elem] - include Increase::Type::Converter - - def self.[]: ( - ::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> instance - - def ===: (top other) -> bool - - def ==: (top other) -> bool - - def coerce: ( - ::Hash[top, top] | top value, - state: Increase::Type::Converter::state - ) -> (::Hash[Symbol, top] | top) - - def dump: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top) - - def item_type: -> Elem - - def nilable?: -> bool - - def initialize: ( - ::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input type_info, - ?::Hash[Symbol, top] spec - ) -> void - end - end -end diff --git a/sig/increase/type/request_parameters.rbs b/sig/increase/type/request_parameters.rbs deleted file mode 100644 index 94751a63..00000000 --- a/sig/increase/type/request_parameters.rbs +++ /dev/null @@ -1,13 +0,0 @@ -module Increase - module Type - type request_parameters = { request_options: Increase::request_opts } - - module RequestParameters - attr_accessor request_options: Increase::request_opts - - module Converter - def dump_request: (top params) -> [top, ::Hash[Symbol, top]] - end - end - end -end diff --git a/sig/increase/type/union.rbs b/sig/increase/type/union.rbs deleted file mode 100644 index 28cd9013..00000000 --- a/sig/increase/type/union.rbs +++ /dev/null @@ -1,37 +0,0 @@ -module Increase - module Type - module Union - include Increase::Type::Converter - - private def self.known_variants: -> ::Array[[Symbol?, (^-> Increase::Type::Converter::input)]] - - def self.derefed_variants: -> ::Array[[Symbol?, top]] - - def self.variants: -> ::Array[top] - - private def self.discriminator: (Symbol property) -> void - - private def self.variant: ( - Symbol - | ::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input key, - ?::Hash[Symbol, top] - | ^-> Increase::Type::Converter::input - | Increase::Type::Converter::input spec - ) -> void - - private def self.resolve_variant: ( - top value - ) -> Increase::Type::Converter::input? - - def ===: (top other) -> bool - - def ==: (top other) -> bool - - def coerce: (top value, state: Increase::Type::Converter::state) -> top - - def dump: (top value) -> top - end - end -end diff --git a/sig/increase/type/unknown.rbs b/sig/increase/type/unknown.rbs deleted file mode 100644 index afea1955..00000000 --- a/sig/increase/type/unknown.rbs +++ /dev/null @@ -1,18 +0,0 @@ -module Increase - module Type - class Unknown - extend Increase::Type::Converter - - def self.===: (top other) -> bool - - def self.==: (top other) -> bool - - def self.coerce: ( - top value, - state: Increase::Type::Converter::state - ) -> top - - def self.dump: (top value) -> top - end - end -end diff --git a/sig/increase/util.rbs b/sig/increase/util.rbs deleted file mode 100644 index c607a48a..00000000 --- a/sig/increase/util.rbs +++ /dev/null @@ -1,134 +0,0 @@ -module Increase - module Util - def self?.monotonic_secs: -> Float - - def self?.arch: -> String - - def self?.os: -> String - - def self?.primitive?: (top input) -> bool - - def self?.coerce_boolean: (top input) -> (bool | top) - - def self?.coerce_boolean!: (top input) -> bool? - - def self?.coerce_integer: (top input) -> (Integer | top) - - def self?.coerce_float: (top input) -> (Float | top) - - def self?.coerce_hash: (top input) -> (::Hash[top, top] | top) - - OMIT: top - - def self?.deep_merge_lr: (top lhs, top rhs, ?concat: bool) -> top - - def self?.deep_merge: ( - *::Array[top] values, - ?sentinel: top?, - ?concat: bool - ) -> top - - def self?.dig: ( - ::Hash[Symbol, top] | ::Array[top] | top data, - (Symbol | Integer | ::Array[(Symbol | Integer)])? pick, - ?top? sentinel - ) { - -> top? - } -> top? - - def self?.uri_origin: (URI::Generic uri) -> String - - def self?.interpolate_path: (String | ::Array[String] path) -> String - - def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]] - - def self?.encode_query: ( - ::Hash[String, (::Array[String] | String)?]? query - ) -> String? - - type parsed_uri = - { - scheme: String?, - host: String?, - port: Integer?, - path: String?, - query: ::Hash[String, ::Array[String]] - } - - def self?.parse_uri: ( - URI::Generic | String url - ) -> Increase::Util::parsed_uri - - def self?.unparse_uri: (Increase::Util::parsed_uri parsed) -> URI::Generic - - def self?.join_parsed_uri: ( - Increase::Util::parsed_uri lhs, - Increase::Util::parsed_uri rhs - ) -> URI::Generic - - def self?.normalized_headers: ( - *::Hash[String, (String - | Integer - | ::Array[(String | Integer)?])?] headers - ) -> ::Hash[String, String] - - class ReadIOAdapter - private def read_enum: (Integer? max_len) -> String - - def read: (?Integer? max_len, ?String? out_string) -> String? - - def initialize: ( - String | IO | StringIO | Enumerable[String] stream - ) { - (String arg0) -> void - } -> void - end - - def self?.writable_enum: { - (Enumerator::Yielder y) -> void - } -> Enumerable[String] - - def self?.write_multipart_chunk: ( - Enumerator::Yielder y, - boundary: String, - key: Symbol | String, - val: top - ) -> void - - def self?.encode_multipart_streaming: ( - top body - ) -> [String, Enumerable[String]] - - def self?.encode_content: (::Hash[String, String] headers, top body) -> top - - def self?.decode_content: ( - ::Hash[String, String] headers, - stream: Enumerable[String], - ?suppress_error: bool - ) -> top - - def self?.fused_enum: ( - Enumerable[top] enum, - ?external: bool - ) { - -> void - } -> Enumerable[top] - - def self?.close_fused!: (Enumerable[top]? enum) -> void - - def self?.chain_fused: ( - Enumerable[top]? enum - ) { - (Enumerator::Yielder arg0) -> void - } -> Enumerable[top] - - type server_sent_event = - { event: String?, data: String?, id: String?, retry: Integer? } - - def self?.decode_lines: (Enumerable[String] enum) -> Enumerable[String] - - def self?.decode_sse: ( - Enumerable[String] lines - ) -> Increase::Util::server_sent_event - end -end diff --git a/sig/increase/version.rbs b/sig/increase/version.rbs index ce750599..8db499d2 100644 --- a/sig/increase/version.rbs +++ b/sig/increase/version.rbs @@ -1,3 +1,3 @@ module Increase - VERSION: "0.1.0-alpha.1" + VERSION: "0.1.0.pre.alpha.2" end diff --git a/test/increase/client_test.rb b/test/increase/client_test.rb index 1c826626..7545e1d0 100644 --- a/test/increase/client_test.rb +++ b/test/increase/client_test.rb @@ -72,7 +72,7 @@ def test_client_default_request_default_retry_attempts requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!") end @@ -84,7 +84,7 @@ def test_client_given_request_default_retry_attempts requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!") end @@ -96,7 +96,7 @@ def test_client_default_request_given_retry_attempts requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!", request_options: {max_retries: 3}) end @@ -108,7 +108,7 @@ def test_client_given_request_given_retry_attempts requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!", request_options: {max_retries: 4}) end @@ -120,7 +120,7 @@ def test_client_retry_after_seconds requester = MockRequester.new(500, {"retry-after" => "1.3"}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!") end @@ -134,7 +134,7 @@ def test_client_retry_after_date MockRequester.new(500, {"retry-after" => (Time.now + 10).httpdate}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do Thread.current.thread_variable_set(:time_now, Time.now) increase.accounts.create(name: "New Account!") Thread.current.thread_variable_set(:time_now, nil) @@ -149,7 +149,7 @@ def test_client_retry_after_ms requester = MockRequester.new(500, {"retry-after-ms" => "1300"}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!") end @@ -162,7 +162,7 @@ def test_retry_count_header requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!") end @@ -175,7 +175,7 @@ def test_omit_retry_count_header requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create( name: "New Account!", request_options: {extra_headers: {"x-stainless-retry-count" => nil}} @@ -191,7 +191,7 @@ def test_overwrite_retry_count_header requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create( name: "New Account!", request_options: {extra_headers: {"x-stainless-retry-count" => "42"}} @@ -273,7 +273,7 @@ def test_client_default_idempotency_key_on_writes requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create(name: "New Account!", request_options: {max_retries: 1}) end @@ -289,7 +289,7 @@ def test_request_option_idempotency_key_on_writes requester = MockRequester.new(500, {}, {"type" => "internal_server_error"}) increase.requester = requester - assert_raises(Increase::InternalServerError) do + assert_raises(Increase::Errors::InternalServerError) do increase.accounts.create( name: "New Account!", request_options: {max_retries: 1, idempotency_key: "user-supplied-key"} diff --git a/test/increase/base_model_test.rb b/test/increase/internal/type/base_model_test.rb similarity index 76% rename from test/increase/base_model_test.rb rename to test/increase/internal/type/base_model_test.rb index c1fa1caf..bda9fbbf 100644 --- a/test/increase/base_model_test.rb +++ b/test/increase/internal/type/base_model_test.rb @@ -1,28 +1,28 @@ # frozen_string_literal: true -require_relative "test_helper" +require_relative "../../test_helper" class Increase::Test::PrimitiveModelTest < Minitest::Test - A = Increase::ArrayOf[-> { Integer }] - H = Increase::HashOf[-> { Integer }, nil?: true] + A = Increase::Internal::Type::ArrayOf[-> { Integer }] + H = Increase::Internal::Type::HashOf[-> { Integer }, nil?: true] module E - extend Increase::Enum + extend Increase::Internal::Type::Enum end module U - extend Increase::Union + extend Increase::Internal::Type::Union end - class B < Increase::BaseModel + class B < Increase::Internal::Type::BaseModel optional :a, Integer optional :b, B end def test_typing converters = [ - Increase::Unknown, - Increase::BooleanModel, + Increase::Internal::Type::Unknown, + Increase::Internal::Type::BooleanModel, A, H, E, @@ -32,18 +32,18 @@ def test_typing converters.each do |conv| assert_pattern do - conv => Increase::Type::Converter + conv => Increase::Internal::Type::Converter end end end def test_coerce cases = { - [Increase::Unknown, :a] => [{yes: 1}, :a], + [Increase::Internal::Type::Unknown, :a] => [{yes: 1}, :a], [NilClass, :a] => [{maybe: 1}, nil], [NilClass, nil] => [{yes: 1}, nil], - [Increase::BooleanModel, true] => [{yes: 1}, true], - [Increase::BooleanModel, "true"] => [{no: 1}, "true"], + [Increase::Internal::Type::BooleanModel, true] => [{yes: 1}, true], + [Increase::Internal::Type::BooleanModel, "true"] => [{no: 1}, "true"], [Integer, 1] => [{yes: 1}, 1], [Integer, 1.0] => [{maybe: 1}, 1], [Integer, "1"] => [{maybe: 1}, 1], @@ -68,7 +68,7 @@ def test_coerce exactness, expect = rhs state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - Increase::Type::Converter.coerce(target, input, state: state) => ^expect + Increase::Internal::Type::Converter.coerce(target, input, state: state) => ^expect state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness end end @@ -76,7 +76,7 @@ def test_coerce def test_dump cases = { - [Increase::Unknown, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, + [Increase::Internal::Type::Unknown, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, [A, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, [H, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, [E, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, @@ -85,8 +85,8 @@ def test_dump [String, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, [:b, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, [nil, B.new(a: "one", b: B.new(a: 1.0))] => {a: "one", b: {a: 1}}, - [Increase::BooleanModel, true] => true, - [Increase::BooleanModel, "true"] => "true", + [Increase::Internal::Type::BooleanModel, true] => true, + [Increase::Internal::Type::BooleanModel, "true"] => "true", [Integer, "1"] => "1", [Float, 1] => 1, [String, "one"] => "one", @@ -99,7 +99,7 @@ def test_dump target, input = _1 expect = _2 assert_pattern do - Increase::Type::Converter.dump(target, input) => ^expect + Increase::Internal::Type::Converter.dump(target, input) => ^expect end end end @@ -118,7 +118,7 @@ def test_coerce_errors target, input = _1 state = {strictness: :strong, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_raises(_2) do - Increase::Type::Converter.coerce(target, input, state: state) + Increase::Internal::Type::Converter.coerce(target, input, state: state) end end end @@ -126,27 +126,27 @@ def test_coerce_errors class Increase::Test::EnumModelTest < Minitest::Test module E1 - extend Increase::Enum + extend Increase::Internal::Type::Enum TRUE = true end module E2 - extend Increase::Enum + extend Increase::Internal::Type::Enum ONE = 1 TWO = 2 end module E3 - extend Increase::Enum + extend Increase::Internal::Type::Enum ONE = 1.0 TWO = 2.0 end module E4 - extend Increase::Enum + extend Increase::Internal::Type::Enum ONE = :one TWO = :two @@ -181,7 +181,7 @@ def test_coerce exactness, expect = rhs state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - Increase::Type::Converter.coerce(target, input, state: state) => ^expect + Increase::Internal::Type::Converter.coerce(target, input, state: state) => ^expect state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness end end @@ -209,21 +209,21 @@ def test_dump target, input = _1 expect = _2 assert_pattern do - Increase::Type::Converter.dump(target, input) => ^expect + Increase::Internal::Type::Converter.dump(target, input) => ^expect end end end end class Increase::Test::CollectionModelTest < Minitest::Test - A1 = Increase::ArrayOf[-> { Integer }] - H1 = Increase::HashOf[Integer] + A1 = Increase::Internal::Type::ArrayOf[-> { Integer }] + H1 = Increase::Internal::Type::HashOf[Integer] - A2 = Increase::ArrayOf[H1] - H2 = Increase::HashOf[-> { A1 }] + A2 = Increase::Internal::Type::ArrayOf[H1] + H2 = Increase::Internal::Type::HashOf[-> { A1 }] - A3 = Increase::ArrayOf[Integer, nil?: true] - H3 = Increase::HashOf[Integer, nil?: true] + A3 = Increase::Internal::Type::ArrayOf[Integer, nil?: true] + H3 = Increase::Internal::Type::HashOf[Integer, nil?: true] def test_coerce cases = { @@ -255,7 +255,7 @@ def test_coerce exactness, expect = rhs state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - Increase::Type::Converter.coerce(target, input, state: state) => ^expect + Increase::Internal::Type::Converter.coerce(target, input, state: state) => ^expect state.fetch(:exactness).filter { _2.nonzero? }.to_h => ^exactness end end @@ -263,7 +263,7 @@ def test_coerce end class Increase::Test::BaseModelTest < Minitest::Test - class M1 < Increase::BaseModel + class M1 < Increase::Internal::Type::BaseModel required :a, Integer end @@ -273,7 +273,7 @@ class M2 < M1 optional :c, String end - class M3 < Increase::BaseModel + class M3 < Increase::Internal::Type::BaseModel optional :c, const: :c required :d, const: :d end @@ -290,7 +290,7 @@ class M4 < M1 end end - class M5 < Increase::BaseModel + class M5 < Increase::Internal::Type::BaseModel request_only do required :c, const: :c end @@ -301,7 +301,7 @@ class M5 < Increase::BaseModel end class M6 < M1 - required :a, Increase::ArrayOf[M6] + required :a, Increase::Internal::Type::ArrayOf[M6] end def test_coerce @@ -335,9 +335,9 @@ def test_coerce exactness, expect = rhs state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - coerced = Increase::Type::Converter.coerce(target, input, state: state) + coerced = Increase::Internal::Type::Converter.coerce(target, input, state: state) assert_equal(coerced, coerced) - if coerced.is_a?(Increase::BaseModel) + if coerced.is_a?(Increase::Internal::Type::BaseModel) coerced.to_h => ^expect else coerced => ^expect @@ -365,7 +365,7 @@ def test_dump target, input = _1 expect = _2 assert_pattern do - Increase::Type::Converter.dump(target, input) => ^expect + Increase::Internal::Type::Converter.dump(target, input) => ^expect end end end @@ -403,27 +403,27 @@ def test_accessors class Increase::Test::UnionTest < Minitest::Test module U0 - extend Increase::Union + extend Increase::Internal::Type::Union end module U1 - extend Increase::Union + extend Increase::Internal::Type::Union variant const: :a variant const: 2 end - class M1 < Increase::BaseModel + class M1 < Increase::Internal::Type::BaseModel required :t, const: :a, api_name: :type optional :c, String end - class M2 < Increase::BaseModel + class M2 < Increase::Internal::Type::BaseModel required :type, const: :b optional :c, String end module U2 - extend Increase::Union + extend Increase::Internal::Type::Union discriminator :type variant :a, M1 @@ -431,7 +431,7 @@ module U2 end module U3 - extend Increase::Union + extend Increase::Internal::Type::Union discriminator :type variant :a, M1 @@ -439,37 +439,37 @@ module U3 end module U4 - extend Increase::Union + extend Increase::Internal::Type::Union discriminator :type variant String variant :a, M1 end - class M3 < Increase::BaseModel + class M3 < Increase::Internal::Type::BaseModel optional :recur, -> { U5 } required :a, Integer end - class M4 < Increase::BaseModel + class M4 < Increase::Internal::Type::BaseModel optional :recur, -> { U5 } - required :a, Increase::ArrayOf[-> { U5 }] + required :a, Increase::Internal::Type::ArrayOf[-> { U5 }] end - class M5 < Increase::BaseModel + class M5 < Increase::Internal::Type::BaseModel optional :recur, -> { U5 } - required :b, Increase::ArrayOf[-> { U5 }] + required :b, Increase::Internal::Type::ArrayOf[-> { U5 }] end module U5 - extend Increase::Union + extend Increase::Internal::Type::Union variant -> { M3 } variant -> { M4 } end module U6 - extend Increase::Union + extend Increase::Internal::Type::Union variant -> { M3 } variant -> { M5 } @@ -480,7 +480,7 @@ def test_accessors tap do model.recur flunk - rescue Increase::ConversionError => e + rescue Increase::Errors::ConversionError => e assert_kind_of(ArgumentError, e.cause) end end @@ -511,9 +511,9 @@ def test_coerce exactness, branched, expect = rhs state = {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} assert_pattern do - coerced = Increase::Type::Converter.coerce(target, input, state: state) + coerced = Increase::Internal::Type::Converter.coerce(target, input, state: state) assert_equal(coerced, coerced) - if coerced.is_a?(Increase::BaseModel) + if coerced.is_a?(Increase::Internal::Type::BaseModel) coerced.to_h => ^expect else coerced => ^expect @@ -527,29 +527,29 @@ def test_coerce class Increase::Test::BaseModelQoLTest < Minitest::Test module E1 - extend Increase::Enum + extend Increase::Internal::Type::Enum A = 1 end module E2 - extend Increase::Enum + extend Increase::Internal::Type::Enum A = 1 end module E3 - extend Increase::Enum + extend Increase::Internal::Type::Enum A = 2 B = 3 end - class M1 < Increase::BaseModel + class M1 < Increase::Internal::Type::BaseModel required :a, Integer end - class M2 < Increase::BaseModel + class M2 < Increase::Internal::Type::BaseModel required :a, Integer, nil?: true end @@ -559,9 +559,9 @@ class M3 < M2 def test_equality cases = { - [Increase::Unknown, Increase::Unknown] => true, - [Increase::BooleanModel, Increase::BooleanModel] => true, - [Increase::Unknown, Increase::BooleanModel] => false, + [Increase::Internal::Type::Unknown, Increase::Internal::Type::Unknown] => true, + [Increase::Internal::Type::BooleanModel, Increase::Internal::Type::BooleanModel] => true, + [Increase::Internal::Type::Unknown, Increase::Internal::Type::BooleanModel] => false, [E1, E2] => true, [E1, E3] => false, [M1, M2] => false, diff --git a/test/increase/util_test.rb b/test/increase/internal/util_test.rb similarity index 74% rename from test/increase/util_test.rb rename to test/increase/internal/util_test.rb index 5ee3e7a0..5cd6c1f7 100644 --- a/test/increase/util_test.rb +++ b/test/increase/internal/util_test.rb @@ -1,48 +1,48 @@ # frozen_string_literal: true -require_relative "test_helper" +require_relative "../test_helper" class Increase::Test::UtilDataHandlingTest < Minitest::Test def test_left_map assert_pattern do - Increase::Util.deep_merge({a: 1}, nil) => nil + Increase::Internal::Util.deep_merge({a: 1}, nil) => nil end end def test_right_map assert_pattern do - Increase::Util.deep_merge(nil, {a: 1}) => {a: 1} + Increase::Internal::Util.deep_merge(nil, {a: 1}) => {a: 1} end end def test_disjoint_maps assert_pattern do - Increase::Util.deep_merge({b: 2}, {a: 1}) => {a: 1, b: 2} + Increase::Internal::Util.deep_merge({b: 2}, {a: 1}) => {a: 1, b: 2} end end def test_overlapping_maps assert_pattern do - Increase::Util.deep_merge({b: 2, c: 3}, {a: 1, c: 4}) => {a: 1, b: 2, c: 4} + Increase::Internal::Util.deep_merge({b: 2, c: 3}, {a: 1, c: 4}) => {a: 1, b: 2, c: 4} end end def test_nested assert_pattern do - Increase::Util.deep_merge({b: {b2: 1}}, {b: {b2: 2}}) => {b: {b2: 2}} + Increase::Internal::Util.deep_merge({b: {b2: 1}}, {b: {b2: 2}}) => {b: {b2: 2}} end end def test_nested_left_map assert_pattern do - Increase::Util.deep_merge({b: {b2: 1}}, {b: 6}) => {b: 6} + Increase::Internal::Util.deep_merge({b: {b2: 1}}, {b: 6}) => {b: 6} end end def test_omission - merged = Increase::Util.deep_merge( + merged = Increase::Internal::Util.deep_merge( {b: {b2: 1, b3: {c: 4, d: 5}}}, - {b: {b2: 1, b3: {c: Increase::Util::OMIT, d: 5}}} + {b: {b2: 1, b3: {c: Increase::Internal::OMIT, d: 5}}} ) assert_pattern do @@ -51,7 +51,7 @@ def test_omission end def test_concat - merged = Increase::Util.deep_merge( + merged = Increase::Internal::Util.deep_merge( {a: {b: [1, 2]}}, {a: {b: [3, 4]}}, concat: true @@ -63,7 +63,7 @@ def test_concat end def test_concat_false - merged = Increase::Util.deep_merge( + merged = Increase::Internal::Util.deep_merge( {a: {b: [1, 2]}}, {a: {b: [3, 4]}}, concat: false @@ -76,19 +76,19 @@ def test_concat_false def test_dig assert_pattern do - Increase::Util.dig(1, nil) => 1 - Increase::Util.dig({a: 1}, :b) => nil - Increase::Util.dig({a: 1}, :a) => 1 - Increase::Util.dig({a: {b: 1}}, [:a, :b]) => 1 - - Increase::Util.dig([], 1) => nil - Increase::Util.dig([nil, [nil, 1]], [1, 1]) => 1 - Increase::Util.dig({a: [nil, 1]}, [:a, 1]) => 1 - Increase::Util.dig([], 1.0) => nil - - Increase::Util.dig(Object, 1) => nil - Increase::Util.dig([], 1.0, 2) => 2 - Increase::Util.dig([], 1.0) { 2 } => 2 + Increase::Internal::Util.dig(1, nil) => 1 + Increase::Internal::Util.dig({a: 1}, :b) => nil + Increase::Internal::Util.dig({a: 1}, :a) => 1 + Increase::Internal::Util.dig({a: {b: 1}}, [:a, :b]) => 1 + + Increase::Internal::Util.dig([], 1) => nil + Increase::Internal::Util.dig([nil, [nil, 1]], [1, 1]) => 1 + Increase::Internal::Util.dig({a: [nil, 1]}, [:a, 1]) => 1 + Increase::Internal::Util.dig([], 1.0) => nil + + Increase::Internal::Util.dig(Object, 1) => nil + Increase::Internal::Util.dig([], 1.0, 2) => 2 + Increase::Internal::Util.dig([], 1.0) { 2 } => 2 end end end @@ -100,11 +100,11 @@ def test_parsing https://example.com/ https://example.com:443/example?e1=e1&e2=e2&e= ].each do |url| - parsed = Increase::Util.parse_uri(url) - unparsed = Increase::Util.unparse_uri(parsed).to_s + parsed = Increase::Internal::Util.parse_uri(url) + unparsed = Increase::Internal::Util.unparse_uri(parsed).to_s assert_equal(url, unparsed) - assert_equal(parsed, Increase::Util.parse_uri(unparsed)) + assert_equal(parsed, Increase::Internal::Util.parse_uri(unparsed)) end end @@ -113,7 +113,7 @@ def test_joining [ "h://a.b/c?d=e", "h://nope/ignored", - Increase::Util.parse_uri("h://a.b/c?d=e") + Increase::Internal::Util.parse_uri("h://a.b/c?d=e") ], [ "h://a.b/c?d=e", @@ -129,8 +129,8 @@ def test_joining cases.each do |expect, lhs, rhs| assert_equal( URI.parse(expect), - Increase::Util.join_parsed_uri( - Increase::Util.parse_uri(lhs), + Increase::Internal::Util.join_parsed_uri( + Increase::Internal::Util.parse_uri(lhs), rhs ) ) @@ -148,8 +148,8 @@ def test_joining_queries cases.each do |path, expected| assert_equal( URI.parse(expected), - Increase::Util.join_parsed_uri( - Increase::Util.parse_uri(base_url), + Increase::Internal::Util.join_parsed_uri( + Increase::Internal::Util.parse_uri(base_url), {path: path} ) ) @@ -162,7 +162,7 @@ class FakeCGI < CGI def initialize(headers, io) @ctype = headers["content-type"] # rubocop:disable Lint/EmptyBlock - @io = Increase::Util::ReadIOAdapter.new(io) {} + @io = Increase::Internal::Util::ReadIOAdapter.new(io) {} # rubocop:enable Lint/EmptyBlock @c_len = io.to_a.join.bytesize.to_s super() @@ -185,7 +185,7 @@ def test_file_encode StringIO.new("abc") => "abc" } cases.each do |body, val| - encoded = Increase::Util.encode_content(headers, body) + encoded = Increase::Internal::Util.encode_content(headers, body) cgi = FakeCGI.new(*encoded) assert_pattern do cgi[""] => ^val @@ -202,7 +202,7 @@ def test_hash_encode {file: StringIO.new("a")} => {"file" => "a"} } cases.each do |body, testcase| - encoded = Increase::Util.encode_content(headers, body) + encoded = Increase::Internal::Util.encode_content(headers, body) cgi = FakeCGI.new(*encoded) testcase.each do |key, val| assert_equal(val, cgi[key]) @@ -220,7 +220,7 @@ def test_copy_read cases.each do |input, expected| io = StringIO.new # rubocop:disable Lint/EmptyBlock - adapter = Increase::Util::ReadIOAdapter.new(input) {} + adapter = Increase::Internal::Util::ReadIOAdapter.new(input) {} # rubocop:enable Lint/EmptyBlock IO.copy_stream(adapter, io) assert_equal(expected, io.string) @@ -233,7 +233,7 @@ def test_copy_write StringIO.new("abc") => "abc" } cases.each do |input, expected| - enum = Increase::Util.writable_enum do |y| + enum = Increase::Internal::Util.writable_enum do |y| IO.copy_stream(input, y) end assert_equal(expected, enum.to_a.join) @@ -245,7 +245,7 @@ class Increase::Test::UtilFusedEnumTest < Minitest::Test def test_closing arr = [1, 2, 3] once = 0 - fused = Increase::Util.fused_enum(arr.to_enum) do + fused = Increase::Internal::Util.fused_enum(arr.to_enum) do once = once.succ end @@ -260,7 +260,7 @@ def test_closing def test_rewind_chain once = 0 - fused = Increase::Util.fused_enum([1, 2, 3].to_enum) do + fused = Increase::Internal::Util.fused_enum([1, 2, 3].to_enum) do once = once.succ end .lazy @@ -277,7 +277,7 @@ def test_rewind_chain def test_external_iteration it = [1, 2, 3].to_enum first = it.next - fused = Increase::Util.fused_enum(it, external: true) + fused = Increase::Internal::Util.fused_enum(it, external: true) assert_equal(1, first) assert_equal([2, 3], fused.to_a) @@ -285,11 +285,11 @@ def test_external_iteration def test_close_fused once = 0 - fused = Increase::Util.fused_enum([1, 2, 3].to_enum) do + fused = Increase::Internal::Util.fused_enum([1, 2, 3].to_enum) do once = once.succ end - Increase::Util.close_fused!(fused) + Increase::Internal::Util.close_fused!(fused) assert_equal(1, once) assert_equal([], fused.to_a) @@ -302,11 +302,11 @@ def test_closed_fused_extern_iteration taken = taken.succ _1 end - fused = Increase::Util.fused_enum(enum) + fused = Increase::Internal::Util.fused_enum(enum) first = fused.next assert_equal(1, first) - Increase::Util.close_fused!(fused) + Increase::Internal::Util.close_fused!(fused) assert_equal(1, taken) end @@ -318,10 +318,10 @@ def test_closed_fused_taken_count end .map(&:succ) .filter(&:odd?) - fused = Increase::Util.fused_enum(enum) + fused = Increase::Internal::Util.fused_enum(enum) assert_equal(0, taken) - Increase::Util.close_fused!(fused) + Increase::Internal::Util.close_fused!(fused) assert_equal(0, taken) end @@ -337,8 +337,8 @@ def test_closed_fused_extern_iter_taken_count assert_equal(2, first) assert_equal(1, taken) - fused = Increase::Util.fused_enum(enum) - Increase::Util.close_fused!(fused) + fused = Increase::Internal::Util.fused_enum(enum) + Increase::Internal::Util.close_fused!(fused) assert_equal(1, taken) end @@ -352,12 +352,12 @@ def test_close_fused_sse_chain .filter(&:odd?) .map(&:to_s) - fused_1 = Increase::Util.fused_enum(enum) - fused_2 = Increase::Util.decode_lines(fused_1) - fused_3 = Increase::Util.decode_sse(fused_2) + fused_1 = Increase::Internal::Util.fused_enum(enum) + fused_2 = Increase::Internal::Util.decode_lines(fused_1) + fused_3 = Increase::Internal::Util.decode_sse(fused_2) assert_equal(0, taken) - Increase::Util.close_fused!(fused_3) + Increase::Internal::Util.close_fused!(fused_3) assert_equal(0, taken) end end @@ -380,7 +380,7 @@ def test_decode_lines eols = %W[\n \r \r\n] cases.each do |enum, expected| eols.each do |eol| - lines = Increase::Util.decode_lines(enum.map { _1.gsub("\n", eol) }) + lines = Increase::Internal::Util.decode_lines(enum.map { _1.gsub("\n", eol) }) assert_equal(expected.map { _1.gsub("\n", eol) }, lines.to_a, "eol=#{JSON.generate(eol)}") end end @@ -398,7 +398,7 @@ def test_mixed_decode_lines %W[\n\r] => %W[\n \r] } cases.each do |enum, expected| - lines = Increase::Util.decode_lines(enum) + lines = Increase::Internal::Util.decode_lines(enum) assert_equal(expected, lines.to_a) end end @@ -521,7 +521,7 @@ def test_decode_sse cases.each do |name, test_cases| test_cases.each do |input, expected| - actual = Increase::Util.decode_sse(input).map(&:compact) + actual = Increase::Internal::Util.decode_sse(input).map(&:compact) assert_equal(expected, actual, name) end end diff --git a/test/increase/resources/account_numbers_test.rb b/test/increase/resources/account_numbers_test.rb index 33b88887..98eef311 100644 --- a/test/increase/resources/account_numbers_test.rb +++ b/test/increase/resources/account_numbers_test.rb @@ -80,7 +80,7 @@ def test_list response = @increase.account_numbers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/account_statements_test.rb b/test/increase/resources/account_statements_test.rb index ca4a3cb6..89d57770 100644 --- a/test/increase/resources/account_statements_test.rb +++ b/test/increase/resources/account_statements_test.rb @@ -29,7 +29,7 @@ def test_list response = @increase.account_statements.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/account_transfers_test.rb b/test/increase/resources/account_transfers_test.rb index 1972cdd2..7c8a1c57 100644 --- a/test/increase/resources/account_transfers_test.rb +++ b/test/increase/resources/account_transfers_test.rb @@ -73,7 +73,7 @@ def test_list response = @increase.account_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/accounts_test.rb b/test/increase/resources/accounts_test.rb index 82d461d5..3655b8a9 100644 --- a/test/increase/resources/accounts_test.rb +++ b/test/increase/resources/accounts_test.rb @@ -91,7 +91,7 @@ def test_list response = @increase.accounts.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/ach_prenotifications_test.rb b/test/increase/resources/ach_prenotifications_test.rb index a4f06ff3..30baf9ec 100644 --- a/test/increase/resources/ach_prenotifications_test.rb +++ b/test/increase/resources/ach_prenotifications_test.rb @@ -28,7 +28,7 @@ def test_create_required_params credit_debit_indicator: Increase::Models::ACHPrenotification::CreditDebitIndicator | nil, effective_date: Time | nil, idempotency_key: String | nil, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange]), prenotification_return: Increase::Models::ACHPrenotification::PrenotificationReturn | nil, routing_number: String, status: Increase::Models::ACHPrenotification::Status, @@ -57,7 +57,7 @@ def test_retrieve credit_debit_indicator: Increase::Models::ACHPrenotification::CreditDebitIndicator | nil, effective_date: Time | nil, idempotency_key: String | nil, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange]), prenotification_return: Increase::Models::ACHPrenotification::PrenotificationReturn | nil, routing_number: String, status: Increase::Models::ACHPrenotification::Status, @@ -70,7 +70,7 @@ def test_list response = @increase.ach_prenotifications.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -93,7 +93,7 @@ def test_list credit_debit_indicator: Increase::Models::ACHPrenotification::CreditDebitIndicator | nil, effective_date: Time | nil, idempotency_key: String | nil, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHPrenotification::NotificationsOfChange]), prenotification_return: Increase::Models::ACHPrenotification::PrenotificationReturn | nil, routing_number: String, status: Increase::Models::ACHPrenotification::Status, diff --git a/test/increase/resources/ach_transfers_test.rb b/test/increase/resources/ach_transfers_test.rb index 1ae50f2b..873f4609 100644 --- a/test/increase/resources/ach_transfers_test.rb +++ b/test/increase/resources/ach_transfers_test.rb @@ -40,7 +40,7 @@ def test_create_required_params individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -88,7 +88,7 @@ def test_retrieve individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -108,7 +108,7 @@ def test_list response = @increase.ach_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -143,7 +143,7 @@ def test_list individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -191,7 +191,7 @@ def test_approve individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -239,7 +239,7 @@ def test_cancel individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, diff --git a/test/increase/resources/bookkeeping_accounts_test.rb b/test/increase/resources/bookkeeping_accounts_test.rb index 27bcafd9..c6a2a947 100644 --- a/test/increase/resources/bookkeeping_accounts_test.rb +++ b/test/increase/resources/bookkeeping_accounts_test.rb @@ -47,7 +47,7 @@ def test_list response = @increase.bookkeeping_accounts.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/bookkeeping_entries_test.rb b/test/increase/resources/bookkeeping_entries_test.rb index 54cbbc6f..8d63c98b 100644 --- a/test/increase/resources/bookkeeping_entries_test.rb +++ b/test/increase/resources/bookkeeping_entries_test.rb @@ -26,7 +26,7 @@ def test_list response = @increase.bookkeeping_entries.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/bookkeeping_entry_sets_test.rb b/test/increase/resources/bookkeeping_entry_sets_test.rb index 68bee08e..3e7e7366 100644 --- a/test/increase/resources/bookkeeping_entry_sets_test.rb +++ b/test/increase/resources/bookkeeping_entry_sets_test.rb @@ -21,7 +21,7 @@ def test_create_required_params id: String, created_at: Time, date: Time, - entries: ^(Increase::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry]), + entries: ^(Increase::Internal::Type::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry]), idempotency_key: String | nil, transaction_id: String | nil, type: Increase::Models::BookkeepingEntrySet::Type @@ -41,7 +41,7 @@ def test_retrieve id: String, created_at: Time, date: Time, - entries: ^(Increase::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry]), + entries: ^(Increase::Internal::Type::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry]), idempotency_key: String | nil, transaction_id: String | nil, type: Increase::Models::BookkeepingEntrySet::Type @@ -53,7 +53,7 @@ def test_list response = @increase.bookkeeping_entry_sets.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -68,7 +68,7 @@ def test_list id: String, created_at: Time, date: Time, - entries: ^(Increase::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry]), + entries: ^(Increase::Internal::Type::ArrayOf[Increase::Models::BookkeepingEntrySet::Entry]), idempotency_key: String | nil, transaction_id: String | nil, type: Increase::Models::BookkeepingEntrySet::Type diff --git a/test/increase/resources/card_disputes_test.rb b/test/increase/resources/card_disputes_test.rb index 987c5c7d..794744ce 100644 --- a/test/increase/resources/card_disputes_test.rb +++ b/test/increase/resources/card_disputes_test.rb @@ -61,7 +61,7 @@ def test_list response = @increase.card_disputes.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/card_payments_test.rb b/test/increase/resources/card_payments_test.rb index 8f03f5bc..5ac7772d 100644 --- a/test/increase/resources/card_payments_test.rb +++ b/test/increase/resources/card_payments_test.rb @@ -17,7 +17,7 @@ def test_retrieve card_id: String, created_at: Time, digital_wallet_token_id: String | nil, - elements: ^(Increase::ArrayOf[Increase::Models::CardPayment::Element]), + elements: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element]), physical_card_id: String | nil, state: Increase::Models::CardPayment::State, type: Increase::Models::CardPayment::Type @@ -29,7 +29,7 @@ def test_list response = @increase.card_payments.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -46,7 +46,7 @@ def test_list card_id: String, created_at: Time, digital_wallet_token_id: String | nil, - elements: ^(Increase::ArrayOf[Increase::Models::CardPayment::Element]), + elements: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element]), physical_card_id: String | nil, state: Increase::Models::CardPayment::State, type: Increase::Models::CardPayment::Type diff --git a/test/increase/resources/card_purchase_supplements_test.rb b/test/increase/resources/card_purchase_supplements_test.rb index ce1bd873..0d73d467 100644 --- a/test/increase/resources/card_purchase_supplements_test.rb +++ b/test/increase/resources/card_purchase_supplements_test.rb @@ -15,7 +15,7 @@ def test_retrieve id: String, card_payment_id: String | nil, invoice: Increase::Models::CardPurchaseSupplement::Invoice | nil, - line_items: ^(Increase::ArrayOf[Increase::Models::CardPurchaseSupplement::LineItem]) | nil, + line_items: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPurchaseSupplement::LineItem]) | nil, transaction_id: String, type: Increase::Models::CardPurchaseSupplement::Type } @@ -26,7 +26,7 @@ def test_list response = @increase.card_purchase_supplements.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -41,7 +41,7 @@ def test_list id: String, card_payment_id: String | nil, invoice: Increase::Models::CardPurchaseSupplement::Invoice | nil, - line_items: ^(Increase::ArrayOf[Increase::Models::CardPurchaseSupplement::LineItem]) | nil, + line_items: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPurchaseSupplement::LineItem]) | nil, transaction_id: String, type: Increase::Models::CardPurchaseSupplement::Type } diff --git a/test/increase/resources/cards_test.rb b/test/increase/resources/cards_test.rb index 1d0fcfc6..bc7ee0d3 100644 --- a/test/increase/resources/cards_test.rb +++ b/test/increase/resources/cards_test.rb @@ -85,7 +85,7 @@ def test_list response = @increase.cards.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/check_deposits_test.rb b/test/increase/resources/check_deposits_test.rb index 02454f70..46a3ec54 100644 --- a/test/increase/resources/check_deposits_test.rb +++ b/test/increase/resources/check_deposits_test.rb @@ -75,7 +75,7 @@ def test_list response = @increase.check_deposits.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/check_transfers_test.rb b/test/increase/resources/check_transfers_test.rb index 4063d84d..f14c0103 100644 --- a/test/increase/resources/check_transfers_test.rb +++ b/test/increase/resources/check_transfers_test.rb @@ -85,7 +85,7 @@ def test_list response = @increase.check_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/declined_transactions_test.rb b/test/increase/resources/declined_transactions_test.rb index e747deed..246513e8 100644 --- a/test/increase/resources/declined_transactions_test.rb +++ b/test/increase/resources/declined_transactions_test.rb @@ -30,7 +30,7 @@ def test_list response = @increase.declined_transactions.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/digital_card_profiles_test.rb b/test/increase/resources/digital_card_profiles_test.rb index c6474ea5..5f67d962 100644 --- a/test/increase/resources/digital_card_profiles_test.rb +++ b/test/increase/resources/digital_card_profiles_test.rb @@ -68,7 +68,7 @@ def test_list response = @increase.digital_card_profiles.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/digital_wallet_tokens_test.rb b/test/increase/resources/digital_wallet_tokens_test.rb index f43cf3fe..e547e6c9 100644 --- a/test/increase/resources/digital_wallet_tokens_test.rb +++ b/test/increase/resources/digital_wallet_tokens_test.rb @@ -20,7 +20,7 @@ def test_retrieve status: Increase::Models::DigitalWalletToken::Status, token_requestor: Increase::Models::DigitalWalletToken::TokenRequestor, type: Increase::Models::DigitalWalletToken::Type, - updates: ^(Increase::ArrayOf[Increase::Models::DigitalWalletToken::Update]) + updates: ^(Increase::Internal::Type::ArrayOf[Increase::Models::DigitalWalletToken::Update]) } end end @@ -29,7 +29,7 @@ def test_list response = @increase.digital_wallet_tokens.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -49,7 +49,7 @@ def test_list status: Increase::Models::DigitalWalletToken::Status, token_requestor: Increase::Models::DigitalWalletToken::TokenRequestor, type: Increase::Models::DigitalWalletToken::Type, - updates: ^(Increase::ArrayOf[Increase::Models::DigitalWalletToken::Update]) + updates: ^(Increase::Internal::Type::ArrayOf[Increase::Models::DigitalWalletToken::Update]) } end end diff --git a/test/increase/resources/documents_test.rb b/test/increase/resources/documents_test.rb index fc7063a5..697741ae 100644 --- a/test/increase/resources/documents_test.rb +++ b/test/increase/resources/documents_test.rb @@ -26,7 +26,7 @@ def test_list response = @increase.documents.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/entities_test.rb b/test/increase/resources/entities_test.rb index eaad7c2b..980f35b4 100644 --- a/test/increase/resources/entities_test.rb +++ b/test/increase/resources/entities_test.rb @@ -23,7 +23,7 @@ def test_create_required_params natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -51,7 +51,7 @@ def test_retrieve natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -63,7 +63,7 @@ def test_list response = @increase.entities.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -86,7 +86,7 @@ def test_list natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -114,7 +114,7 @@ def test_archive natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -146,7 +146,7 @@ def test_archive_beneficial_owner_required_params natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -174,7 +174,7 @@ def test_confirm natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -214,7 +214,7 @@ def test_create_beneficial_owner_required_params natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -246,7 +246,7 @@ def test_update_address_required_params natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -279,7 +279,7 @@ def test_update_beneficial_owner_address_required_params natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type @@ -307,7 +307,7 @@ def test_update_industry_code_required_params natural_person: Increase::Models::Entity::NaturalPerson | nil, status: Increase::Models::Entity::Status, structure: Increase::Models::Entity::Structure, - supplemental_documents: ^(Increase::ArrayOf[Increase::Models::EntitySupplementalDocument]), + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::Models::EntitySupplementalDocument]), third_party_verification: Increase::Models::Entity::ThirdPartyVerification | nil, trust: Increase::Models::Entity::Trust | nil, type: Increase::Models::Entity::Type diff --git a/test/increase/resources/event_subscriptions_test.rb b/test/increase/resources/event_subscriptions_test.rb index ab2aa255..11eac266 100644 --- a/test/increase/resources/event_subscriptions_test.rb +++ b/test/increase/resources/event_subscriptions_test.rb @@ -70,7 +70,7 @@ def test_list response = @increase.event_subscriptions.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/events_test.rb b/test/increase/resources/events_test.rb index 5684a3be..87ea69b8 100644 --- a/test/increase/resources/events_test.rb +++ b/test/increase/resources/events_test.rb @@ -26,7 +26,7 @@ def test_list response = @increase.events.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/exports_test.rb b/test/increase/resources/exports_test.rb index 353f21cb..f8a6a357 100644 --- a/test/increase/resources/exports_test.rb +++ b/test/increase/resources/exports_test.rb @@ -49,7 +49,7 @@ def test_list response = @increase.exports.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/external_accounts_test.rb b/test/increase/resources/external_accounts_test.rb index fb783ec9..43417e49 100644 --- a/test/increase/resources/external_accounts_test.rb +++ b/test/increase/resources/external_accounts_test.rb @@ -84,7 +84,7 @@ def test_list response = @increase.external_accounts.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/files_test.rb b/test/increase/resources/files_test.rb index f650ae0f..d78899fd 100644 --- a/test/increase/resources/files_test.rb +++ b/test/increase/resources/files_test.rb @@ -51,7 +51,7 @@ def test_list response = @increase.files.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/inbound_ach_transfers_test.rb b/test/increase/resources/inbound_ach_transfers_test.rb index 53a23dca..67ced3f3 100644 --- a/test/increase/resources/inbound_ach_transfers_test.rb +++ b/test/increase/resources/inbound_ach_transfers_test.rb @@ -47,7 +47,7 @@ def test_list response = @increase.inbound_ach_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/inbound_check_deposits_test.rb b/test/increase/resources/inbound_check_deposits_test.rb index ca568615..d60469b6 100644 --- a/test/increase/resources/inbound_check_deposits_test.rb +++ b/test/increase/resources/inbound_check_deposits_test.rb @@ -16,7 +16,7 @@ def test_retrieve accepted_at: Time | nil, account_id: String, account_number_id: String | nil, - adjustments: ^(Increase::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), + adjustments: ^(Increase::Internal::Type::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), amount: Integer, back_image_file_id: String | nil, bank_of_first_deposit_routing_number: String | nil, @@ -40,7 +40,7 @@ def test_list response = @increase.inbound_check_deposits.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -56,7 +56,7 @@ def test_list accepted_at: Time | nil, account_id: String, account_number_id: String | nil, - adjustments: ^(Increase::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), + adjustments: ^(Increase::Internal::Type::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), amount: Integer, back_image_file_id: String | nil, bank_of_first_deposit_routing_number: String | nil, @@ -89,7 +89,7 @@ def test_decline accepted_at: Time | nil, account_id: String, account_number_id: String | nil, - adjustments: ^(Increase::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), + adjustments: ^(Increase::Internal::Type::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), amount: Integer, back_image_file_id: String | nil, bank_of_first_deposit_routing_number: String | nil, @@ -123,7 +123,7 @@ def test_return__required_params accepted_at: Time | nil, account_id: String, account_number_id: String | nil, - adjustments: ^(Increase::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), + adjustments: ^(Increase::Internal::Type::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), amount: Integer, back_image_file_id: String | nil, bank_of_first_deposit_routing_number: String | nil, diff --git a/test/increase/resources/inbound_mail_items_test.rb b/test/increase/resources/inbound_mail_items_test.rb index a59a8879..af241cb3 100644 --- a/test/increase/resources/inbound_mail_items_test.rb +++ b/test/increase/resources/inbound_mail_items_test.rb @@ -28,7 +28,7 @@ def test_list response = @increase.inbound_mail_items.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/inbound_real_time_payments_transfers_test.rb b/test/increase/resources/inbound_real_time_payments_transfers_test.rb index 37c917b9..8baf1537 100755 --- a/test/increase/resources/inbound_real_time_payments_transfers_test.rb +++ b/test/increase/resources/inbound_real_time_payments_transfers_test.rb @@ -37,7 +37,7 @@ def test_list response = @increase.inbound_real_time_payments_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/inbound_wire_drawdown_requests_test.rb b/test/increase/resources/inbound_wire_drawdown_requests_test.rb index a415b768..930d0b63 100644 --- a/test/increase/resources/inbound_wire_drawdown_requests_test.rb +++ b/test/increase/resources/inbound_wire_drawdown_requests_test.rb @@ -43,7 +43,7 @@ def test_list response = @increase.inbound_wire_drawdown_requests.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/inbound_wire_transfers_test.rb b/test/increase/resources/inbound_wire_transfers_test.rb index cc2d2d5c..ed1cd98a 100644 --- a/test/increase/resources/inbound_wire_transfers_test.rb +++ b/test/increase/resources/inbound_wire_transfers_test.rb @@ -45,7 +45,7 @@ def test_list response = @increase.inbound_wire_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/intrafi_account_enrollments_test.rb b/test/increase/resources/intrafi_account_enrollments_test.rb index ff10ff84..130a6b70 100644 --- a/test/increase/resources/intrafi_account_enrollments_test.rb +++ b/test/increase/resources/intrafi_account_enrollments_test.rb @@ -51,7 +51,7 @@ def test_list response = @increase.intrafi_account_enrollments.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/intrafi_balances_test.rb b/test/increase/resources/intrafi_balances_test.rb index 02a61838..23c0cd7c 100644 --- a/test/increase/resources/intrafi_balances_test.rb +++ b/test/increase/resources/intrafi_balances_test.rb @@ -13,7 +13,7 @@ def test_intrafi_balance assert_pattern do response => { id: String, - balances: ^(Increase::ArrayOf[Increase::Models::IntrafiBalance::Balance]), + balances: ^(Increase::Internal::Type::ArrayOf[Increase::Models::IntrafiBalance::Balance]), currency: Increase::Models::IntrafiBalance::Currency, effective_date: Date, total_balance: Integer, diff --git a/test/increase/resources/intrafi_exclusions_test.rb b/test/increase/resources/intrafi_exclusions_test.rb index 0672467b..92af7326 100644 --- a/test/increase/resources/intrafi_exclusions_test.rb +++ b/test/increase/resources/intrafi_exclusions_test.rb @@ -54,7 +54,7 @@ def test_list response = @increase.intrafi_exclusions.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/lockboxes_test.rb b/test/increase/resources/lockboxes_test.rb index 47bf256f..aeceda38 100644 --- a/test/increase/resources/lockboxes_test.rb +++ b/test/increase/resources/lockboxes_test.rb @@ -73,7 +73,7 @@ def test_list response = @increase.lockboxes.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/oauth_applications_test.rb b/test/increase/resources/oauth_applications_test.rb index f738b3ea..a062cac6 100644 --- a/test/increase/resources/oauth_applications_test.rb +++ b/test/increase/resources/oauth_applications_test.rb @@ -27,7 +27,7 @@ def test_list response = @increase.oauth_applications.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/oauth_connections_test.rb b/test/increase/resources/oauth_connections_test.rb index a8531149..360e27da 100644 --- a/test/increase/resources/oauth_connections_test.rb +++ b/test/increase/resources/oauth_connections_test.rb @@ -27,7 +27,7 @@ def test_list response = @increase.oauth_connections.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/pending_transactions_test.rb b/test/increase/resources/pending_transactions_test.rb index 78a578e2..14586110 100644 --- a/test/increase/resources/pending_transactions_test.rb +++ b/test/increase/resources/pending_transactions_test.rb @@ -32,7 +32,7 @@ def test_list response = @increase.pending_transactions.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/physical_card_profiles_test.rb b/test/increase/resources/physical_card_profiles_test.rb index a09f66fe..0bded181 100644 --- a/test/increase/resources/physical_card_profiles_test.rb +++ b/test/increase/resources/physical_card_profiles_test.rb @@ -27,7 +27,7 @@ def test_create_required_params description: String, front_image_file_id: String | nil, idempotency_key: String | nil, - is_default: Increase::BooleanModel, + is_default: Increase::Internal::Type::BooleanModel, status: Increase::Models::PhysicalCardProfile::Status, type: Increase::Models::PhysicalCardProfile::Type } @@ -52,7 +52,7 @@ def test_retrieve description: String, front_image_file_id: String | nil, idempotency_key: String | nil, - is_default: Increase::BooleanModel, + is_default: Increase::Internal::Type::BooleanModel, status: Increase::Models::PhysicalCardProfile::Status, type: Increase::Models::PhysicalCardProfile::Type } @@ -63,7 +63,7 @@ def test_list response = @increase.physical_card_profiles.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -84,7 +84,7 @@ def test_list description: String, front_image_file_id: String | nil, idempotency_key: String | nil, - is_default: Increase::BooleanModel, + is_default: Increase::Internal::Type::BooleanModel, status: Increase::Models::PhysicalCardProfile::Status, type: Increase::Models::PhysicalCardProfile::Type } @@ -109,7 +109,7 @@ def test_archive description: String, front_image_file_id: String | nil, idempotency_key: String | nil, - is_default: Increase::BooleanModel, + is_default: Increase::Internal::Type::BooleanModel, status: Increase::Models::PhysicalCardProfile::Status, type: Increase::Models::PhysicalCardProfile::Type } @@ -134,7 +134,7 @@ def test_clone_ description: String, front_image_file_id: String | nil, idempotency_key: String | nil, - is_default: Increase::BooleanModel, + is_default: Increase::Internal::Type::BooleanModel, status: Increase::Models::PhysicalCardProfile::Status, type: Increase::Models::PhysicalCardProfile::Type } diff --git a/test/increase/resources/physical_cards_test.rb b/test/increase/resources/physical_cards_test.rb index 8a9dd464..4293c15e 100644 --- a/test/increase/resources/physical_cards_test.rb +++ b/test/increase/resources/physical_cards_test.rb @@ -87,7 +87,7 @@ def test_list response = @increase.physical_cards.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/programs_test.rb b/test/increase/resources/programs_test.rb index cf9205fd..19270909 100644 --- a/test/increase/resources/programs_test.rb +++ b/test/increase/resources/programs_test.rb @@ -29,7 +29,7 @@ def test_list response = @increase.programs.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/proof_of_authorization_request_submissions_test.rb b/test/increase/resources/proof_of_authorization_request_submissions_test.rb index c80e15ea..bf153a03 100644 --- a/test/increase/resources/proof_of_authorization_request_submissions_test.rb +++ b/test/increase/resources/proof_of_authorization_request_submissions_test.rb @@ -32,15 +32,15 @@ def test_create_required_params authorizer_ip_address: String | nil, authorizer_name: String | nil, created_at: Time, - customer_has_been_offboarded: Increase::BooleanModel | nil, + customer_has_been_offboarded: Increase::Internal::Type::BooleanModel | nil, idempotency_key: String | nil, proof_of_authorization_request_id: String, status: Increase::Models::ProofOfAuthorizationRequestSubmission::Status, type: Increase::Models::ProofOfAuthorizationRequestSubmission::Type, updated_at: Time, - validated_account_ownership_via_credential: Increase::BooleanModel | nil, - validated_account_ownership_with_account_statement: Increase::BooleanModel | nil, - validated_account_ownership_with_microdeposit: Increase::BooleanModel | nil + validated_account_ownership_via_credential: Increase::Internal::Type::BooleanModel | nil, + validated_account_ownership_with_account_statement: Increase::Internal::Type::BooleanModel | nil, + validated_account_ownership_with_microdeposit: Increase::Internal::Type::BooleanModel | nil } end end @@ -66,15 +66,15 @@ def test_retrieve authorizer_ip_address: String | nil, authorizer_name: String | nil, created_at: Time, - customer_has_been_offboarded: Increase::BooleanModel | nil, + customer_has_been_offboarded: Increase::Internal::Type::BooleanModel | nil, idempotency_key: String | nil, proof_of_authorization_request_id: String, status: Increase::Models::ProofOfAuthorizationRequestSubmission::Status, type: Increase::Models::ProofOfAuthorizationRequestSubmission::Type, updated_at: Time, - validated_account_ownership_via_credential: Increase::BooleanModel | nil, - validated_account_ownership_with_account_statement: Increase::BooleanModel | nil, - validated_account_ownership_with_microdeposit: Increase::BooleanModel | nil + validated_account_ownership_via_credential: Increase::Internal::Type::BooleanModel | nil, + validated_account_ownership_with_account_statement: Increase::Internal::Type::BooleanModel | nil, + validated_account_ownership_with_microdeposit: Increase::Internal::Type::BooleanModel | nil } end end @@ -83,7 +83,7 @@ def test_list response = @increase.proof_of_authorization_request_submissions.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -104,15 +104,15 @@ def test_list authorizer_ip_address: String | nil, authorizer_name: String | nil, created_at: Time, - customer_has_been_offboarded: Increase::BooleanModel | nil, + customer_has_been_offboarded: Increase::Internal::Type::BooleanModel | nil, idempotency_key: String | nil, proof_of_authorization_request_id: String, status: Increase::Models::ProofOfAuthorizationRequestSubmission::Status, type: Increase::Models::ProofOfAuthorizationRequestSubmission::Type, updated_at: Time, - validated_account_ownership_via_credential: Increase::BooleanModel | nil, - validated_account_ownership_with_account_statement: Increase::BooleanModel | nil, - validated_account_ownership_with_microdeposit: Increase::BooleanModel | nil + validated_account_ownership_via_credential: Increase::Internal::Type::BooleanModel | nil, + validated_account_ownership_with_account_statement: Increase::Internal::Type::BooleanModel | nil, + validated_account_ownership_with_microdeposit: Increase::Internal::Type::BooleanModel | nil } end end diff --git a/test/increase/resources/proof_of_authorization_requests_test.rb b/test/increase/resources/proof_of_authorization_requests_test.rb index 2b78f5f2..0536e262 100644 --- a/test/increase/resources/proof_of_authorization_requests_test.rb +++ b/test/increase/resources/proof_of_authorization_requests_test.rb @@ -13,7 +13,7 @@ def test_retrieve assert_pattern do response => { id: String, - ach_transfers: ^(Increase::ArrayOf[Increase::Models::ProofOfAuthorizationRequest::ACHTransfer]), + ach_transfers: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ProofOfAuthorizationRequest::ACHTransfer]), created_at: Time, due_on: Time, type: Increase::Models::ProofOfAuthorizationRequest::Type, @@ -26,7 +26,7 @@ def test_list response = @increase.proof_of_authorization_requests.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first @@ -39,7 +39,7 @@ def test_list assert_pattern do row => { id: String, - ach_transfers: ^(Increase::ArrayOf[Increase::Models::ProofOfAuthorizationRequest::ACHTransfer]), + ach_transfers: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ProofOfAuthorizationRequest::ACHTransfer]), created_at: Time, due_on: Time, type: Increase::Models::ProofOfAuthorizationRequest::Type, diff --git a/test/increase/resources/real_time_payments_transfers_test.rb b/test/increase/resources/real_time_payments_transfers_test.rb index 64022e54..508851cd 100644 --- a/test/increase/resources/real_time_payments_transfers_test.rb +++ b/test/increase/resources/real_time_payments_transfers_test.rb @@ -89,7 +89,7 @@ def test_list response = @increase.real_time_payments_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/routing_numbers_test.rb b/test/increase/resources/routing_numbers_test.rb index 321ca1db..52f73bcc 100644 --- a/test/increase/resources/routing_numbers_test.rb +++ b/test/increase/resources/routing_numbers_test.rb @@ -7,7 +7,7 @@ def test_list_required_params response = @increase.routing_numbers.list(routing_number: "xxxxxxxxx") assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/simulations/ach_transfers_test.rb b/test/increase/resources/simulations/ach_transfers_test.rb index 3993a492..5d75b3ac 100644 --- a/test/increase/resources/simulations/ach_transfers_test.rb +++ b/test/increase/resources/simulations/ach_transfers_test.rb @@ -35,7 +35,7 @@ def test_acknowledge individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -88,7 +88,7 @@ def test_create_notification_of_change_required_params individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -136,7 +136,7 @@ def test_return_ individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -184,7 +184,7 @@ def test_settle individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, @@ -232,7 +232,7 @@ def test_submit individual_id: String | nil, individual_name: String | nil, network: Increase::Models::ACHTransfer::Network, - notifications_of_change: ^(Increase::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), + notifications_of_change: ^(Increase::Internal::Type::ArrayOf[Increase::Models::ACHTransfer::NotificationsOfChange]), pending_transaction_id: String | nil, preferred_effective_date: Increase::Models::ACHTransfer::PreferredEffectiveDate, return_: Increase::Models::ACHTransfer::Return | nil, diff --git a/test/increase/resources/simulations/card_authorization_expirations_test.rb b/test/increase/resources/simulations/card_authorization_expirations_test.rb index 69829e6a..0ffb5d12 100644 --- a/test/increase/resources/simulations/card_authorization_expirations_test.rb +++ b/test/increase/resources/simulations/card_authorization_expirations_test.rb @@ -20,7 +20,7 @@ def test_create_required_params card_id: String, created_at: Time, digital_wallet_token_id: String | nil, - elements: ^(Increase::ArrayOf[Increase::Models::CardPayment::Element]), + elements: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element]), physical_card_id: String | nil, state: Increase::Models::CardPayment::State, type: Increase::Models::CardPayment::Type diff --git a/test/increase/resources/simulations/card_fuel_confirmations_test.rb b/test/increase/resources/simulations/card_fuel_confirmations_test.rb index 8198cd73..49c09445 100644 --- a/test/increase/resources/simulations/card_fuel_confirmations_test.rb +++ b/test/increase/resources/simulations/card_fuel_confirmations_test.rb @@ -21,7 +21,7 @@ def test_create_required_params card_id: String, created_at: Time, digital_wallet_token_id: String | nil, - elements: ^(Increase::ArrayOf[Increase::Models::CardPayment::Element]), + elements: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element]), physical_card_id: String | nil, state: Increase::Models::CardPayment::State, type: Increase::Models::CardPayment::Type diff --git a/test/increase/resources/simulations/card_increments_test.rb b/test/increase/resources/simulations/card_increments_test.rb index a5da69e6..e718c170 100644 --- a/test/increase/resources/simulations/card_increments_test.rb +++ b/test/increase/resources/simulations/card_increments_test.rb @@ -21,7 +21,7 @@ def test_create_required_params card_id: String, created_at: Time, digital_wallet_token_id: String | nil, - elements: ^(Increase::ArrayOf[Increase::Models::CardPayment::Element]), + elements: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element]), physical_card_id: String | nil, state: Increase::Models::CardPayment::State, type: Increase::Models::CardPayment::Type diff --git a/test/increase/resources/simulations/card_reversals_test.rb b/test/increase/resources/simulations/card_reversals_test.rb index 8ed42eef..85cb0830 100644 --- a/test/increase/resources/simulations/card_reversals_test.rb +++ b/test/increase/resources/simulations/card_reversals_test.rb @@ -18,7 +18,7 @@ def test_create_required_params card_id: String, created_at: Time, digital_wallet_token_id: String | nil, - elements: ^(Increase::ArrayOf[Increase::Models::CardPayment::Element]), + elements: ^(Increase::Internal::Type::ArrayOf[Increase::Models::CardPayment::Element]), physical_card_id: String | nil, state: Increase::Models::CardPayment::State, type: Increase::Models::CardPayment::Type diff --git a/test/increase/resources/simulations/inbound_check_deposits_test.rb b/test/increase/resources/simulations/inbound_check_deposits_test.rb index 40a73f01..51f3ddc3 100644 --- a/test/increase/resources/simulations/inbound_check_deposits_test.rb +++ b/test/increase/resources/simulations/inbound_check_deposits_test.rb @@ -21,7 +21,7 @@ def test_create_required_params accepted_at: Time | nil, account_id: String, account_number_id: String | nil, - adjustments: ^(Increase::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), + adjustments: ^(Increase::Internal::Type::ArrayOf[Increase::Models::InboundCheckDeposit::Adjustment]), amount: Integer, back_image_file_id: String | nil, bank_of_first_deposit_routing_number: String | nil, diff --git a/test/increase/resources/supplemental_documents_test.rb b/test/increase/resources/supplemental_documents_test.rb index d8ab980d..ebdcd2d6 100644 --- a/test/increase/resources/supplemental_documents_test.rb +++ b/test/increase/resources/supplemental_documents_test.rb @@ -29,7 +29,7 @@ def test_list_required_params response = @increase.supplemental_documents.list(entity_id: "entity_id") assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/transactions_test.rb b/test/increase/resources/transactions_test.rb index 03015e10..90074d1f 100644 --- a/test/increase/resources/transactions_test.rb +++ b/test/increase/resources/transactions_test.rb @@ -30,7 +30,7 @@ def test_list response = @increase.transactions.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/wire_drawdown_requests_test.rb b/test/increase/resources/wire_drawdown_requests_test.rb index 370e00e5..49c54281 100644 --- a/test/increase/resources/wire_drawdown_requests_test.rb +++ b/test/increase/resources/wire_drawdown_requests_test.rb @@ -83,7 +83,7 @@ def test_list response = @increase.wire_drawdown_requests.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first diff --git a/test/increase/resources/wire_transfers_test.rb b/test/increase/resources/wire_transfers_test.rb index 84a4c6f6..ec18ab0c 100644 --- a/test/increase/resources/wire_transfers_test.rb +++ b/test/increase/resources/wire_transfers_test.rb @@ -97,7 +97,7 @@ def test_list response = @increase.wire_transfers.list assert_pattern do - response => Increase::Page + response => Increase::Internal::Page end row = response.to_enum.first