From d380f535ceda4036bd7924b7ed913ce73c624e39 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 04:28:45 +0000 Subject: [PATCH 1/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 49e48a70c..1e6dd5822 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-db453f5a5c4734d0cc56f9f61a1cbfaceb9b51f47076b75595bdc9fdedd439c7.yml -openapi_spec_hash: 0cd9098d2af2b4cee4f6678d01fb9516 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1a4a3a387e174d09e347540b5d614828b38020d2687f219337783e1f79d42889.yml +openapi_spec_hash: d6259b2fa93b0557413f7a21ae6a7ccd config_hash: b0b366d8c705ea0efe62093bae953e5a From 4b45f17feb9662164c47e0e7b3b0735a5b968e11 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 18:26:07 +0000 Subject: [PATCH 2/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1e6dd5822..6c8ed5eb7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1a4a3a387e174d09e347540b5d614828b38020d2687f219337783e1f79d42889.yml -openapi_spec_hash: d6259b2fa93b0557413f7a21ae6a7ccd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5d00a1f3cc31adb9e28a09287bc20126f96e6cd866d60603c63ddcd92545b678.yml +openapi_spec_hash: 7ab8de7087209fcf49713651d997d5a2 config_hash: b0b366d8c705ea0efe62093bae953e5a From 0b9b4eaee891bbbd8fe56fa7da8b54b6b94c0172 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 22:04:13 +0000 Subject: [PATCH 3/4] fix: bump sorbet version and fix new type errors from the breaking change --- .rubocop.yml | 2 +- Gemfile.lock | 88 ++++++++------ .../transport/pooled_net_requester.rb | 10 +- lib/increase/internal/type/base_model.rb | 9 +- lib/increase/internal/util.rb | 2 +- lib/increase/models/ach_transfer.rb | 4 +- .../models/ach_transfer_create_params.rb | 8 +- lib/increase/models/card_payment.rb | 113 ++++-------------- lib/increase/models/check_transfer.rb | 9 +- .../models/check_transfer_create_params.rb | 9 +- lib/increase/models/declined_transaction.rb | 34 ++---- lib/increase/models/entity.rb | 4 +- .../entity_create_beneficial_owner_params.rb | 20 +--- lib/increase/models/entity_create_params.rb | 61 +++------- lib/increase/models/inbound_ach_transfer.rb | 25 +--- lib/increase/models/inbound_check_deposit.rb | 5 +- lib/increase/models/pending_transaction.rb | 35 ++---- lib/increase/models/physical_card.rb | 4 +- lib/increase/models/real_time_decision.rb | 23 +--- .../real_time_decision_action_params.rb | 10 +- .../models/real_time_payments_transfer.rb | 5 +- .../card_authorization_create_params.rb | 13 +- .../simulations/card_token_create_params.rb | 12 +- .../inbound_ach_transfer_create_params.rb | 9 +- ..._time_payments_transfer_complete_params.rb | 4 +- lib/increase/models/transaction.rb | 45 ++----- rbi/increase/errors.rbi | 4 +- .../increase/internal/type/base_model_test.rb | 6 + test/increase/internal/util_test.rb | 12 +- 29 files changed, 170 insertions(+), 415 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 2237fa87f..afb3557c2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -149,7 +149,7 @@ Naming/ClassAndModuleCamelCase: Naming/MethodParameterName: Enabled: false -Naming/PredicateName: +Naming/PredicatePrefix: Exclude: - "**/*.rbi" diff --git a/Gemfile.lock b/Gemfile.lock index 742b57c3d..7ba3070d0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -17,7 +17,7 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (8.0.2) + activesupport (8.0.2.1) base64 benchmark (>= 0.3) bigdecimal @@ -33,45 +33,50 @@ GEM addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) ast (2.4.3) - async (2.24.0) + async (2.27.3) console (~> 1.29) fiber-annotation - io-event (~> 1.9) + io-event (~> 1.11) metrics (~> 0.12) traces (~> 0.15) - base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.9) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.2.2) concurrent-ruby (1.3.5) connection_pool (2.5.3) - console (1.30.2) + console (1.33.0) fiber-annotation fiber-local (~> 1.1) json crack (1.0.0) bigdecimal rexml - csv (3.3.4) - drb (2.2.1) + csv (3.3.5) + drb (2.2.3) erubi (1.13.1) + ffi (1.17.2-aarch64-linux-gnu) + ffi (1.17.2-aarch64-linux-musl) + ffi (1.17.2-arm64-darwin) + ffi (1.17.2-x86_64-darwin) ffi (1.17.2-x86_64-linux-gnu) + ffi (1.17.2-x86_64-linux-musl) fiber-annotation (0.2.0) fiber-local (1.1.0) fiber-storage fiber-storage (1.0.1) fileutils (1.7.3) - hashdiff (1.1.2) + hashdiff (1.2.0) i18n (1.14.7) concurrent-ruby (~> 1.0) - io-event (1.10.0) - json (2.11.3) - language_server-protocol (3.17.0.4) + io-event (1.11.2) + json (2.13.2) + language_server-protocol (3.17.0.5) lint_roller (1.1.0) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) logger (1.7.0) - metrics (0.12.2) + metrics (0.13.0) minitest (5.25.5) minitest-focus (1.4.0) minitest (>= 4, < 6) @@ -84,7 +89,7 @@ GEM mutex_m (0.3.0) netrc (0.11.0) parallel (1.27.0) - parser (3.3.8.0) + parser (3.3.9.0) ast (~> 2.4.1) racc prettier_print (1.2.1) @@ -92,20 +97,19 @@ GEM public_suffix (6.0.2) racc (1.8.1) rainbow (3.1.1) - rake (13.2.1) + rake (13.3.0) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rbi (0.3.2) + rbi (0.3.6) prism (~> 1.0) rbs (>= 3.4.4) - sorbet-runtime (>= 0.5.9204) - rbs (3.9.2) + rbs (3.9.4) logger redcarpet (3.6.1) - regexp_parser (2.10.0) + regexp_parser (2.11.2) rexml (3.4.1) - rubocop (1.75.5) + rubocop (1.79.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -113,25 +117,28 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.44.0, < 2.0) + rubocop-ast (>= 1.46.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.44.1) + rubocop-ast (1.46.0) parser (>= 3.3.7.2) prism (~> 1.4) ruby-progressbar (1.13.0) securerandom (0.4.1) - sorbet (0.5.12067) - sorbet-static (= 0.5.12067) - sorbet-runtime (0.5.12067) - sorbet-static (0.5.12067-x86_64-linux) - sorbet-static-and-runtime (0.5.12067) - sorbet (= 0.5.12067) - sorbet-runtime (= 0.5.12067) - spoom (1.6.1) + sorbet (0.5.12424) + sorbet-static (= 0.5.12424) + sorbet-runtime (0.5.12424) + sorbet-static (0.5.12424-aarch64-linux) + sorbet-static (0.5.12424-universal-darwin) + sorbet-static (0.5.12424-x86_64-linux) + sorbet-static-and-runtime (0.5.12424) + sorbet (= 0.5.12424) + sorbet-runtime (= 0.5.12424) + spoom (1.6.3) erubi (>= 1.10.0) prism (>= 0.28.0) - rbi (>= 0.2.3) + rbi (>= 0.3.3) + rexml (>= 3.2.6) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) steep (1.10.0) @@ -152,7 +159,7 @@ GEM terminal-table (>= 2, < 5) uri (>= 0.12.0) strscan (3.1.5) - syntax_tree (6.2.0) + syntax_tree (6.3.0) prettier_print (>= 1.2.0) tapioca (0.16.11) benchmark @@ -166,11 +173,11 @@ GEM yard-sorbet terminal-table (4.0.0) unicode-display_width (>= 1.1.1, < 4) - thor (1.3.2) - traces (0.15.2) + thor (1.4.0) + traces (0.17.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (3.1.4) + unicode-display_width (3.1.5) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) uri (1.0.3) @@ -185,7 +192,14 @@ GEM yard PLATFORMS - x86_64-linux + aarch64-linux + aarch64-linux-gnu + aarch64-linux-musl + arm64-darwin + universal-darwin + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl DEPENDENCIES async diff --git a/lib/increase/internal/transport/pooled_net_requester.rb b/lib/increase/internal/transport/pooled_net_requester.rb index a2fd0f01b..247b064e8 100644 --- a/lib/increase/internal/transport/pooled_net_requester.rb +++ b/lib/increase/internal/transport/pooled_net_requester.rb @@ -193,15 +193,7 @@ def initialize(size: self.class::DEFAULT_MAX_CONNECTIONS) end define_sorbet_constant!(:Request) do - T.type_alias do - { - method: Symbol, - url: URI::Generic, - headers: T::Hash[String, String], - body: T.anything, - deadline: Float - } - end + T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} } end end end diff --git a/lib/increase/internal/type/base_model.rb b/lib/increase/internal/type/base_model.rb index b559ec975..561910e40 100644 --- a/lib/increase/internal/type/base_model.rb +++ b/lib/increase/internal/type/base_model.rb @@ -64,14 +64,7 @@ def fields setter = :"#{name_sym}=" api_name = info.fetch(:api_name, name_sym) nilable = info.fetch(:nil?, false) - const = if required && !nilable - info.fetch( - :const, - Increase::Internal::OMIT - ) - else - Increase::Internal::OMIT - end + const = required && !nilable ? info.fetch(:const, Increase::Internal::OMIT) : Increase::Internal::OMIT [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym) diff --git a/lib/increase/internal/util.rb b/lib/increase/internal/util.rb index 2483579e0..76aa92182 100644 --- a/lib/increase/internal/util.rb +++ b/lib/increase/internal/util.rb @@ -244,7 +244,7 @@ class << self # # @return [String] def uri_origin(uri) - "#{uri.scheme}://#{uri.host}#{uri.port == uri.default_port ? '' : ":#{uri.port}"}" + "#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}" end # @api private diff --git a/lib/increase/models/ach_transfer.rb b/lib/increase/models/ach_transfer.rb index 80903b9cc..9ca22ecc1 100644 --- a/lib/increase/models/ach_transfer.rb +++ b/lib/increase/models/ach_transfer.rb @@ -435,9 +435,7 @@ class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel # # @return [Array] required :invoices, - -> { - Increase::Internal::Type::ArrayOf[Increase::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice] - } + -> { Increase::Internal::Type::ArrayOf[Increase::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice] } # @!method initialize(invoices:) # Structured ASC X12 820 remittance advice records. Please reach out to diff --git a/lib/increase/models/ach_transfer_create_params.rb b/lib/increase/models/ach_transfer_create_params.rb index 94a64927d..ff3933710 100644 --- a/lib/increase/models/ach_transfer_create_params.rb +++ b/lib/increase/models/ach_transfer_create_params.rb @@ -247,9 +247,7 @@ class Freeform < Increase::Internal::Type::BaseModel # # @return [Array] required :entries, - -> { - Increase::Internal::Type::ArrayOf[Increase::ACHTransferCreateParams::Addenda::Freeform::Entry] - } + -> { Increase::Internal::Type::ArrayOf[Increase::ACHTransferCreateParams::Addenda::Freeform::Entry] } # @!method initialize(entries:) # Some parameter documentations has been truncated, see @@ -278,9 +276,7 @@ class PaymentOrderRemittanceAdvice < Increase::Internal::Type::BaseModel # # @return [Array] required :invoices, - -> { - Increase::Internal::Type::ArrayOf[Increase::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice] - } + -> { Increase::Internal::Type::ArrayOf[Increase::ACHTransferCreateParams::Addenda::PaymentOrderRemittanceAdvice::Invoice] } # @!method initialize(invoices:) # Structured ASC X12 820 remittance advice records. Please reach out to diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index 68557664f..7298fddad 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -417,9 +417,7 @@ class Challenge < Increase::Internal::Type::BaseModel # # @return [Array] required :attempts, - -> { - Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt] - } + -> { Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt] } # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Card @@ -439,9 +437,7 @@ class Challenge < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod] required :verification_method, - enum: -> { - Increase::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod - } + enum: -> { Increase::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod } # @!attribute verification_value # E.g., the email address or phone number used for the Card Authentication @@ -480,9 +476,7 @@ class Attempt < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Challenge::Attempt::Outcome] required :outcome, - enum: -> { - Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt::Outcome - } + enum: -> { Increase::CardPayment::Element::CardAuthentication::Challenge::Attempt::Outcome } # @!method initialize(created_at:, outcome:) # Some parameter documentations has been truncated, see @@ -649,10 +643,7 @@ class CardAuthorization < Increase::Internal::Type::BaseModel # to provide more detailed information about the transaction. # # @return [Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts] - required :additional_amounts, - -> { - Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts - } + required :additional_amounts, -> { Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts } # @!attribute amount # The pending amount in the minor unit of the transaction's currency. For dollars, @@ -1602,9 +1593,7 @@ class Verification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode] required :card_verification_code, - -> { - Increase::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode - } + -> { Increase::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode } # @!attribute cardholder_address # Cardholder address provided in the authorization request and the address on file @@ -1632,9 +1621,7 @@ class CardVerificationCode < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode::Result] required :result, - enum: -> { - Increase::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode::Result - } + enum: -> { Increase::CardPayment::Element::CardAuthorization::Verification::CardVerificationCode::Result } # @!method initialize(result:) # Fields related to verification of the Card Verification Code, a 3-digit code on @@ -1694,9 +1681,7 @@ class CardholderAddress < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result] required :result, - enum: -> { - Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result - } + enum: -> { Increase::CardPayment::Element::CardAuthorization::Verification::CardholderAddress::Result } # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:) # Some parameter documentations has been truncated, see @@ -1766,10 +1751,7 @@ class CardAuthorizationExpiration < Increase::Internal::Type::BaseModel # currency. # # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthorizationExpiration::Currency] - required :currency, - enum: -> { - Increase::CardPayment::Element::CardAuthorizationExpiration::Currency - } + required :currency, enum: -> { Increase::CardPayment::Element::CardAuthorizationExpiration::Currency } # @!attribute expired_amount # The amount of this authorization expiration in the minor unit of the @@ -1994,10 +1976,7 @@ class CardDecline < Increase::Internal::Type::BaseModel # Network-specific identifiers for a specific request or transaction. # # @return [Increase::Models::CardPayment::Element::CardDecline::NetworkIdentifiers] - required :network_identifiers, - -> { - Increase::CardPayment::Element::CardDecline::NetworkIdentifiers - } + required :network_identifiers, -> { Increase::CardPayment::Element::CardDecline::NetworkIdentifiers } # @!attribute network_risk_score # The risk score generated by the card network. For Visa this is the Visa Advanced @@ -2551,10 +2530,7 @@ class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. # # @return [Symbol, Increase::Models::CardPayment::Element::CardDecline::NetworkDetails::Category] - required :category, - enum: -> { - Increase::CardPayment::Element::CardDecline::NetworkDetails::Category - } + required :category, enum: -> { Increase::CardPayment::Element::CardDecline::NetworkDetails::Category } # @!attribute visa # Fields specific to the `visa` network. @@ -2960,9 +2936,7 @@ class CardVerificationCode < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardDecline::Verification::CardVerificationCode::Result] required :result, - enum: -> { - Increase::CardPayment::Element::CardDecline::Verification::CardVerificationCode::Result - } + enum: -> { Increase::CardPayment::Element::CardDecline::Verification::CardVerificationCode::Result } # @!method initialize(result:) # Fields related to verification of the Card Verification Code, a 3-digit code on @@ -3022,9 +2996,7 @@ class CardholderAddress < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result] required :result, - enum: -> { - Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result - } + enum: -> { Increase::CardPayment::Element::CardDecline::Verification::CardholderAddress::Result } # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:) # Some parameter documentations has been truncated, see @@ -3270,10 +3242,7 @@ class CardIncrement < Increase::Internal::Type::BaseModel # to provide more detailed information about the transaction. # # @return [Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts] - required :additional_amounts, - -> { - Increase::CardPayment::Element::CardIncrement::AdditionalAmounts - } + required :additional_amounts, -> { Increase::CardPayment::Element::CardIncrement::AdditionalAmounts } # @!attribute amount # The amount of this increment in the minor unit of the transaction's currency. @@ -3305,10 +3274,7 @@ class CardIncrement < Increase::Internal::Type::BaseModel # Network-specific identifiers for a specific request or transaction. # # @return [Increase::Models::CardPayment::Element::CardIncrement::NetworkIdentifiers] - required :network_identifiers, - -> { - Increase::CardPayment::Element::CardIncrement::NetworkIdentifiers - } + required :network_identifiers, -> { Increase::CardPayment::Element::CardIncrement::NetworkIdentifiers } # @!attribute network_risk_score # The risk score generated by the card network. For Visa this is the Visa Advanced @@ -4899,9 +4865,7 @@ class Ancillary < Increase::Internal::Type::BaseModel # # @return [Array] required :services, - -> { - Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service] - } + -> { Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -5287,10 +5251,7 @@ class CardReversal < Increase::Internal::Type::BaseModel # Network-specific identifiers for a specific request or transaction. # # @return [Increase::Models::CardPayment::Element::CardReversal::NetworkIdentifiers] - required :network_identifiers, - -> { - Increase::CardPayment::Element::CardReversal::NetworkIdentifiers - } + required :network_identifiers, -> { Increase::CardPayment::Element::CardReversal::NetworkIdentifiers } # @!attribute pending_transaction_id # The identifier of the Pending Transaction associated with this Card Reversal. @@ -5620,10 +5581,7 @@ class CardSettlement < Increase::Internal::Type::BaseModel # Network-specific identifiers for this refund. # # @return [Increase::Models::CardPayment::Element::CardSettlement::NetworkIdentifiers] - required :network_identifiers, - -> { - Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers - } + required :network_identifiers, -> { Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers } # @!attribute pending_transaction_id # The identifier of the Pending Transaction associated with this Transaction. @@ -5732,10 +5690,7 @@ class Cashback < Increase::Internal::Type::BaseModel # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the cashback. # # @return [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Cashback::Currency] - required :currency, - enum: -> { - Increase::CardPayment::Element::CardSettlement::Cashback::Currency - } + required :currency, enum: -> { Increase::CardPayment::Element::CardSettlement::Cashback::Currency } # @!method initialize(amount:, currency:) # Some parameter documentations has been truncated, see @@ -5829,10 +5784,7 @@ class Interchange < Increase::Internal::Type::BaseModel # reimbursement. # # @return [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Interchange::Currency] - required :currency, - enum: -> { - Increase::CardPayment::Element::CardSettlement::Interchange::Currency - } + required :currency, enum: -> { Increase::CardPayment::Element::CardSettlement::Interchange::Currency } # @!method initialize(amount:, code:, currency:) # Some parameter documentations has been truncated, see @@ -6592,9 +6544,7 @@ class Ancillary < Increase::Internal::Type::BaseModel # # @return [Array] required :services, - -> { - Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] - } + -> { Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -6925,10 +6875,7 @@ class CardValidation < Increase::Internal::Type::BaseModel # to provide more detailed information about the transaction. # # @return [Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts] - required :additional_amounts, - -> { - Increase::CardPayment::Element::CardValidation::AdditionalAmounts - } + required :additional_amounts, -> { Increase::CardPayment::Element::CardValidation::AdditionalAmounts } # @!attribute card_payment_id # The ID of the Card Payment this transaction belongs to. @@ -7005,10 +6952,7 @@ class CardValidation < Increase::Internal::Type::BaseModel # Network-specific identifiers for a specific request or transaction. # # @return [Increase::Models::CardPayment::Element::CardValidation::NetworkIdentifiers] - required :network_identifiers, - -> { - Increase::CardPayment::Element::CardValidation::NetworkIdentifiers - } + required :network_identifiers, -> { Increase::CardPayment::Element::CardValidation::NetworkIdentifiers } # @!attribute network_risk_score # The risk score generated by the card network. For Visa this is the Visa Advanced @@ -7506,10 +7450,7 @@ class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. # # @return [Symbol, Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Category] - required :category, - enum: -> { - Increase::CardPayment::Element::CardValidation::NetworkDetails::Category - } + required :category, enum: -> { Increase::CardPayment::Element::CardValidation::NetworkDetails::Category } # @!attribute visa # Fields specific to the `visa` network. @@ -7791,9 +7732,7 @@ class CardVerificationCode < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardValidation::Verification::CardVerificationCode::Result] required :result, - enum: -> { - Increase::CardPayment::Element::CardValidation::Verification::CardVerificationCode::Result - } + enum: -> { Increase::CardPayment::Element::CardValidation::Verification::CardVerificationCode::Result } # @!method initialize(result:) # Fields related to verification of the Card Verification Code, a 3-digit code on @@ -7853,9 +7792,7 @@ class CardholderAddress < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result] required :result, - enum: -> { - Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result - } + enum: -> { Increase::CardPayment::Element::CardValidation::Verification::CardholderAddress::Result } # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/check_transfer.rb b/lib/increase/models/check_transfer.rb index c30795d1c..634ba10ba 100644 --- a/lib/increase/models/check_transfer.rb +++ b/lib/increase/models/check_transfer.rb @@ -478,10 +478,7 @@ class PhysicalCheck < Increase::Internal::Type::BaseModel # check and defaults to the return address if unspecified. # # @return [Array] - required :payer, - -> { - Increase::Internal::Type::ArrayOf[Increase::CheckTransfer::PhysicalCheck::Payer] - } + required :payer, -> { Increase::Internal::Type::ArrayOf[Increase::CheckTransfer::PhysicalCheck::Payer] } # @!attribute recipient_name # The name that will be printed on the check. @@ -517,9 +514,7 @@ class PhysicalCheck < Increase::Internal::Type::BaseModel # # @return [Array] required :tracking_updates, - -> { - Increase::Internal::Type::ArrayOf[Increase::CheckTransfer::PhysicalCheck::TrackingUpdate] - } + -> { Increase::Internal::Type::ArrayOf[Increase::CheckTransfer::PhysicalCheck::TrackingUpdate] } # @!method initialize(attachment_file_id:, mailing_address:, memo:, note:, payer:, recipient_name:, return_address:, shipping_method:, signature_text:, tracking_updates:) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/check_transfer_create_params.rb b/lib/increase/models/check_transfer_create_params.rb index c0da8b7a6..d03c41522 100644 --- a/lib/increase/models/check_transfer_create_params.rb +++ b/lib/increase/models/check_transfer_create_params.rb @@ -138,9 +138,7 @@ class PhysicalCheck < Increase::Internal::Type::BaseModel # # @return [Array, nil] optional :payer, - -> { - Increase::Internal::Type::ArrayOf[Increase::CheckTransferCreateParams::PhysicalCheck::Payer] - } + -> { Increase::Internal::Type::ArrayOf[Increase::CheckTransferCreateParams::PhysicalCheck::Payer] } # @!attribute return_address # The return address to be printed on the check. If omitted this will default to @@ -155,10 +153,7 @@ class PhysicalCheck < Increase::Internal::Type::BaseModel # https://increase.com/documentation/originating-checks#printing-checks . # # @return [Symbol, Increase::Models::CheckTransferCreateParams::PhysicalCheck::ShippingMethod, nil] - optional :shipping_method, - enum: -> { - Increase::CheckTransferCreateParams::PhysicalCheck::ShippingMethod - } + optional :shipping_method, enum: -> { Increase::CheckTransferCreateParams::PhysicalCheck::ShippingMethod } # @!attribute signature_text # The text that will appear as the signature on the check in cursive font. If not diff --git a/lib/increase/models/declined_transaction.rb b/lib/increase/models/declined_transaction.rb index 2d30f1442..375a0174f 100644 --- a/lib/increase/models/declined_transaction.rb +++ b/lib/increase/models/declined_transaction.rb @@ -444,10 +444,7 @@ class CardDecline < Increase::Internal::Type::BaseModel # to provide more detailed information about the transaction. # # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts] - required :additional_amounts, - -> { - Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts - } + required :additional_amounts, -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts } # @!attribute amount # The declined amount in the minor unit of the destination account currency. For @@ -1489,9 +1486,7 @@ class Verification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode] required :card_verification_code, - -> { - Increase::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode - } + -> { Increase::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode } # @!attribute cardholder_address # Cardholder address provided in the authorization request and the address on file @@ -1499,9 +1494,7 @@ class Verification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress] required :cardholder_address, - -> { - Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress - } + -> { Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress } # @!method initialize(card_verification_code:, cardholder_address:) # Some parameter documentations has been truncated, see @@ -1521,9 +1514,7 @@ class CardVerificationCode < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode::Result] required :result, - enum: -> { - Increase::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode::Result - } + enum: -> { Increase::DeclinedTransaction::Source::CardDecline::Verification::CardVerificationCode::Result } # @!method initialize(result:) # Fields related to verification of the Card Verification Code, a 3-digit code on @@ -1583,9 +1574,7 @@ class CardholderAddress < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result] required :result, - enum: -> { - Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result - } + enum: -> { Increase::DeclinedTransaction::Source::CardDecline::Verification::CardholderAddress::Result } # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:) # Some parameter documentations has been truncated, see @@ -1819,10 +1808,7 @@ class CheckDepositRejection < Increase::Internal::Type::BaseModel # currency. # # @return [Symbol, Increase::Models::DeclinedTransaction::Source::CheckDepositRejection::Currency] - required :currency, - enum: -> { - Increase::DeclinedTransaction::Source::CheckDepositRejection::Currency - } + required :currency, enum: -> { Increase::DeclinedTransaction::Source::CheckDepositRejection::Currency } # @!attribute declined_transaction_id # The identifier of the associated declined transaction. @@ -1958,9 +1944,7 @@ class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseMod # # @return [Symbol, Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline::Currency] required :currency, - enum: -> { - Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline::Currency - } + enum: -> { Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline::Currency } # @!attribute debtor_account_number # The account number of the account that sent the transfer. @@ -1985,9 +1969,7 @@ class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseMod # # @return [Symbol, Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline::Reason] required :reason, - enum: -> { - Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline::Reason - } + enum: -> { Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline::Reason } # @!attribute remittance_information # Additional information included with the transfer. diff --git a/lib/increase/models/entity.rb b/lib/increase/models/entity.rb index e66368fb0..44d0c362d 100644 --- a/lib/increase/models/entity.rb +++ b/lib/increase/models/entity.rb @@ -481,9 +481,7 @@ class GovernmentAuthority < Increase::Internal::Type::BaseModel # # @return [Array] required :authorized_persons, - -> { - Increase::Internal::Type::ArrayOf[Increase::Entity::GovernmentAuthority::AuthorizedPerson] - } + -> { Increase::Internal::Type::ArrayOf[Increase::Entity::GovernmentAuthority::AuthorizedPerson] } # @!attribute category # The category of the government authority. diff --git a/lib/increase/models/entity_create_beneficial_owner_params.rb b/lib/increase/models/entity_create_beneficial_owner_params.rb index 04ec45fef..893619f5e 100644 --- a/lib/increase/models/entity_create_beneficial_owner_params.rb +++ b/lib/increase/models/entity_create_beneficial_owner_params.rb @@ -36,9 +36,7 @@ class BeneficialOwner < Increase::Internal::Type::BaseModel # # @return [Array] required :prongs, - -> { - Increase::Internal::Type::ArrayOf[enum: Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong] - } + -> { Increase::Internal::Type::ArrayOf[enum: Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong] } # @!attribute company_title # This person's role or title within the entity. @@ -81,9 +79,7 @@ class Individual < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification] required :identification, - -> { - Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification - } + -> { Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification } # @!attribute name # The person's legal name. @@ -202,9 +198,7 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense, nil] optional :drivers_license, - -> { - Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense - } + -> { Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense } # @!attribute other # Information about the identification document provided. Required if `method` is @@ -212,9 +206,7 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other, nil] optional :other, - -> { - Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other - } + -> { Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other } # @!attribute passport # Information about the passport used for identification. Required if `method` is @@ -222,9 +214,7 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport, nil] optional :passport, - -> { - Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport - } + -> { Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport } # @!method initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/entity_create_params.rb b/lib/increase/models/entity_create_params.rb index 3648dca1f..7c005c7a8 100644 --- a/lib/increase/models/entity_create_params.rb +++ b/lib/increase/models/entity_create_params.rb @@ -132,9 +132,7 @@ class Corporation < Increase::Internal::Type::BaseModel # # @return [Array] required :beneficial_owners, - -> { - Increase::Internal::Type::ArrayOf[Increase::EntityCreateParams::Corporation::BeneficialOwner] - } + -> { Increase::Internal::Type::ArrayOf[Increase::EntityCreateParams::Corporation::BeneficialOwner] } # @!attribute name # The legal name of the corporation. @@ -267,9 +265,7 @@ class BeneficialOwner < Increase::Internal::Type::BaseModel # # @return [Array] required :prongs, - -> { - Increase::Internal::Type::ArrayOf[enum: Increase::EntityCreateParams::Corporation::BeneficialOwner::Prong] - } + -> { Increase::Internal::Type::ArrayOf[enum: Increase::EntityCreateParams::Corporation::BeneficialOwner::Prong] } # @!attribute company_title # This person's role or title within the entity. @@ -295,10 +291,7 @@ class Individual < Increase::Internal::Type::BaseModel # PMB's are disallowed. # # @return [Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address] - required :address, - -> { - Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address - } + required :address, -> { Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address } # @!attribute date_of_birth # The person's date of birth in YYYY-MM-DD format. @@ -311,9 +304,7 @@ class Individual < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification] required :identification, - -> { - Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification - } + -> { Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification } # @!attribute name # The person's legal name. @@ -432,9 +423,7 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::DriversLicense, nil] optional :drivers_license, - -> { - Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::DriversLicense - } + -> { Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::DriversLicense } # @!attribute other # Information about the identification document provided. Required if `method` is @@ -442,9 +431,7 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Other, nil] optional :other, - -> { - Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Other - } + -> { Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Other } # @!attribute passport # Information about the passport used for identification. Required if `method` is @@ -452,9 +439,7 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Passport, nil] optional :passport, - -> { - Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Passport - } + -> { Increase::EntityCreateParams::Corporation::BeneficialOwner::Individual::Identification::Passport } # @!method initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil) # Some parameter documentations has been truncated, see @@ -677,9 +662,7 @@ class GovernmentAuthority < Increase::Internal::Type::BaseModel # # @return [Array] required :authorized_persons, - -> { - Increase::Internal::Type::ArrayOf[Increase::EntityCreateParams::GovernmentAuthority::AuthorizedPerson] - } + -> { Increase::Internal::Type::ArrayOf[Increase::EntityCreateParams::GovernmentAuthority::AuthorizedPerson] } # @!attribute category # The category of the government authority. @@ -962,10 +945,7 @@ class Identification < Increase::Internal::Type::BaseModel # equal to `passport`. # # @return [Increase::Models::EntityCreateParams::Joint::Individual::Identification::Passport, nil] - optional :passport, - -> { - Increase::EntityCreateParams::Joint::Individual::Identification::Passport - } + optional :passport, -> { Increase::EntityCreateParams::Joint::Individual::Identification::Passport } # @!method initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil) # Some parameter documentations has been truncated, see @@ -1534,10 +1514,7 @@ class Trust < Increase::Internal::Type::BaseModel # The trustees of the trust. # # @return [Array] - required :trustees, - -> { - Increase::Internal::Type::ArrayOf[Increase::EntityCreateParams::Trust::Trustee] - } + required :trustees, -> { Increase::Internal::Type::ArrayOf[Increase::EntityCreateParams::Trust::Trustee] } # @!attribute formation_document_file_id # The identifier of the File containing the formation document of the trust. @@ -1711,10 +1688,7 @@ class Individual < Increase::Internal::Type::BaseModel # A means of verifying the person's identity. # # @return [Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification] - required :identification, - -> { - Increase::EntityCreateParams::Trust::Trustee::Individual::Identification - } + required :identification, -> { Increase::EntityCreateParams::Trust::Trustee::Individual::Identification } # @!attribute name # The person's legal name. @@ -1826,19 +1800,14 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::DriversLicense, nil] optional :drivers_license, - -> { - Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::DriversLicense - } + -> { Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::DriversLicense } # @!attribute other # Information about the identification document provided. Required if `method` is # equal to `other`. # # @return [Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Other, nil] - optional :other, - -> { - Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::Other - } + optional :other, -> { Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::Other } # @!attribute passport # Information about the passport used for identification. Required if `method` is @@ -1846,9 +1815,7 @@ class Identification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::EntityCreateParams::Trust::Trustee::Individual::Identification::Passport, nil] optional :passport, - -> { - Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::Passport - } + -> { Increase::EntityCreateParams::Trust::Trustee::Individual::Identification::Passport } # @!method initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/inbound_ach_transfer.rb b/lib/increase/models/inbound_ach_transfer.rb index b962130b2..e3c4d5e60 100644 --- a/lib/increase/models/inbound_ach_transfer.rb +++ b/lib/increase/models/inbound_ach_transfer.rb @@ -300,9 +300,7 @@ class Freeform < Increase::Internal::Type::BaseModel # # @return [Array] required :entries, - -> { - Increase::Internal::Type::ArrayOf[Increase::InboundACHTransfer::Addenda::Freeform::Entry] - } + -> { Increase::Internal::Type::ArrayOf[Increase::InboundACHTransfer::Addenda::Freeform::Entry] } # @!method initialize(entries:) # Unstructured `payment_related_information` passed through by the originator. @@ -467,9 +465,7 @@ class InternationalAddenda < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::InboundACHTransfer::InternationalAddenda::ForeignExchangeReferenceIndicator] required :foreign_exchange_reference_indicator, - enum: -> { - Increase::InboundACHTransfer::InternationalAddenda::ForeignExchangeReferenceIndicator - } + enum: -> { Increase::InboundACHTransfer::InternationalAddenda::ForeignExchangeReferenceIndicator } # @!attribute foreign_payment_amount # The amount in the minor unit of the foreign payment currency. For dollars, for @@ -489,9 +485,7 @@ class InternationalAddenda < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::InboundACHTransfer::InternationalAddenda::InternationalTransactionTypeCode] required :international_transaction_type_code, - enum: -> { - Increase::InboundACHTransfer::InternationalAddenda::InternationalTransactionTypeCode - } + enum: -> { Increase::InboundACHTransfer::InternationalAddenda::InternationalTransactionTypeCode } # @!attribute originating_currency_code # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the @@ -521,9 +515,7 @@ class InternationalAddenda < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::InboundACHTransfer::InternationalAddenda::OriginatingDepositoryFinancialInstitutionIDQualifier] required :originating_depository_financial_institution_id_qualifier, - enum: -> { - Increase::InboundACHTransfer::InternationalAddenda::OriginatingDepositoryFinancialInstitutionIDQualifier - } + enum: -> { Increase::InboundACHTransfer::InternationalAddenda::OriginatingDepositoryFinancialInstitutionIDQualifier } # @!attribute originating_depository_financial_institution_name # The name of the originating bank. Sometimes this will refer to an American bank @@ -654,9 +646,7 @@ class InternationalAddenda < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::InboundACHTransfer::InternationalAddenda::ReceivingDepositoryFinancialInstitutionIDQualifier] required :receiving_depository_financial_institution_id_qualifier, - enum: -> { - Increase::InboundACHTransfer::InternationalAddenda::ReceivingDepositoryFinancialInstitutionIDQualifier - } + enum: -> { Increase::InboundACHTransfer::InternationalAddenda::ReceivingDepositoryFinancialInstitutionIDQualifier } # @!attribute receiving_depository_financial_institution_name # The name of the receiving bank, as set by the sending financial institution. @@ -923,10 +913,7 @@ class Settlement < Increase::Internal::Type::BaseModel # The settlement schedule this transfer follows. # # @return [Symbol, Increase::Models::InboundACHTransfer::Settlement::SettlementSchedule] - required :settlement_schedule, - enum: -> { - Increase::InboundACHTransfer::Settlement::SettlementSchedule - } + required :settlement_schedule, enum: -> { Increase::InboundACHTransfer::Settlement::SettlementSchedule } # @!method initialize(settled_at:, settlement_schedule:) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/inbound_check_deposit.rb b/lib/increase/models/inbound_check_deposit.rb index 838f4f021..c971c1a09 100644 --- a/lib/increase/models/inbound_check_deposit.rb +++ b/lib/increase/models/inbound_check_deposit.rb @@ -35,10 +35,7 @@ class InboundCheckDeposit < Increase::Internal::Type::BaseModel # contain details of the adjustments. # # @return [Array] - required :adjustments, - -> { - Increase::Internal::Type::ArrayOf[Increase::InboundCheckDeposit::Adjustment] - } + required :adjustments, -> { Increase::Internal::Type::ArrayOf[Increase::InboundCheckDeposit::Adjustment] } # @!attribute amount # The deposited amount in USD cents. diff --git a/lib/increase/models/pending_transaction.rb b/lib/increase/models/pending_transaction.rb index 041672c5c..5cac5c255 100644 --- a/lib/increase/models/pending_transaction.rb +++ b/lib/increase/models/pending_transaction.rb @@ -570,10 +570,7 @@ class CardAuthorization < Increase::Internal::Type::BaseModel # Fields specific to the `network`. # # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails] - required :network_details, - -> { - Increase::PendingTransaction::Source::CardAuthorization::NetworkDetails - } + required :network_details, -> { Increase::PendingTransaction::Source::CardAuthorization::NetworkDetails } # @!attribute network_identifiers # Network-specific identifiers for a specific request or transaction. @@ -1152,9 +1149,7 @@ class NetworkDetails < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::NetworkDetails::Category] required :category, - enum: -> { - Increase::PendingTransaction::Source::CardAuthorization::NetworkDetails::Category - } + enum: -> { Increase::PendingTransaction::Source::CardAuthorization::NetworkDetails::Category } # @!attribute visa # Fields specific to the `visa` network. @@ -1444,9 +1439,7 @@ class Verification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode] required :card_verification_code, - -> { - Increase::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode - } + -> { Increase::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode } # @!attribute cardholder_address # Cardholder address provided in the authorization request and the address on file @@ -1454,9 +1447,7 @@ class Verification < Increase::Internal::Type::BaseModel # # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress] required :cardholder_address, - -> { - Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress - } + -> { Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress } # @!method initialize(card_verification_code:, cardholder_address:) # Some parameter documentations has been truncated, see @@ -1476,9 +1467,7 @@ class CardVerificationCode < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode::Result] required :result, - enum: -> { - Increase::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode::Result - } + enum: -> { Increase::PendingTransaction::Source::CardAuthorization::Verification::CardVerificationCode::Result } # @!method initialize(result:) # Fields related to verification of the Card Verification Code, a 3-digit code on @@ -1538,9 +1527,7 @@ class CardholderAddress < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result] required :result, - enum: -> { - Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result - } + enum: -> { Increase::PendingTransaction::Source::CardAuthorization::Verification::CardholderAddress::Result } # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:) # Some parameter documentations has been truncated, see @@ -1690,10 +1677,7 @@ class CheckDepositInstruction < Increase::Internal::Type::BaseModel # transaction's currency. # # @return [Symbol, Increase::Models::PendingTransaction::Source::CheckDepositInstruction::Currency] - required :currency, - enum: -> { - Increase::PendingTransaction::Source::CheckDepositInstruction::Currency - } + required :currency, enum: -> { Increase::PendingTransaction::Source::CheckDepositInstruction::Currency } # @!attribute front_image_file_id # The identifier of the File containing the image of the front of the check that @@ -1763,10 +1747,7 @@ class CheckTransferInstruction < Increase::Internal::Type::BaseModel # currency. # # @return [Symbol, Increase::Models::PendingTransaction::Source::CheckTransferInstruction::Currency] - required :currency, - enum: -> { - Increase::PendingTransaction::Source::CheckTransferInstruction::Currency - } + required :currency, enum: -> { Increase::PendingTransaction::Source::CheckTransferInstruction::Currency } # @!attribute transfer_id # The identifier of the Check Transfer that led to this Pending Transaction. diff --git a/lib/increase/models/physical_card.rb b/lib/increase/models/physical_card.rb index ac583d19c..32d7e761a 100644 --- a/lib/increase/models/physical_card.rb +++ b/lib/increase/models/physical_card.rb @@ -343,9 +343,7 @@ class Tracking < Increase::Internal::Type::BaseModel # # @return [Array] required :updates, - -> { - Increase::Internal::Type::ArrayOf[Increase::PhysicalCard::Shipment::Tracking::Update] - } + -> { Increase::Internal::Type::ArrayOf[Increase::PhysicalCard::Shipment::Tracking::Update] } # @!method initialize(number:, return_number:, return_reason:, shipped_at:, updates:) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/real_time_decision.rb b/lib/increase/models/real_time_decision.rb index e19c1aa8d..2d88d500a 100644 --- a/lib/increase/models/real_time_decision.rb +++ b/lib/increase/models/real_time_decision.rb @@ -337,10 +337,7 @@ class CardAuthorization < Increase::Internal::Type::BaseModel # Network-specific identifiers for a specific request or transaction. # # @return [Increase::Models::RealTimeDecision::CardAuthorization::NetworkIdentifiers] - required :network_identifiers, - -> { - Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers - } + required :network_identifiers, -> { Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers } # @!attribute network_risk_score # The risk score generated by the card network. For Visa this is the Visa Advanced @@ -861,10 +858,7 @@ class NetworkDetails < Increase::Internal::Type::BaseModel # The payment network used to process this card authorization. # # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails::Category] - required :category, - enum: -> { - Increase::RealTimeDecision::CardAuthorization::NetworkDetails::Category - } + required :category, enum: -> { Increase::RealTimeDecision::CardAuthorization::NetworkDetails::Category } # @!attribute visa # Fields specific to the `visa` network. @@ -1142,10 +1136,7 @@ class RequestDetails < Increase::Internal::Type::BaseModel # authorization). # # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails::Category] - required :category, - enum: -> { - Increase::RealTimeDecision::CardAuthorization::RequestDetails::Category - } + required :category, enum: -> { Increase::RealTimeDecision::CardAuthorization::RequestDetails::Category } # @!attribute incremental_authorization # Fields specific to the category `incremental_authorization`. @@ -1257,9 +1248,7 @@ class CardVerificationCode < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode::Result] required :result, - enum: -> { - Increase::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode::Result - } + enum: -> { Increase::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode::Result } # @!method initialize(result:) # Fields related to verification of the Card Verification Code, a 3-digit code on @@ -1319,9 +1308,7 @@ class CardholderAddress < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result] required :result, - enum: -> { - Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result - } + enum: -> { Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress::Result } # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/real_time_decision_action_params.rb b/lib/increase/models/real_time_decision_action_params.rb index 8f23cea9b..111857671 100644 --- a/lib/increase/models/real_time_decision_action_params.rb +++ b/lib/increase/models/real_time_decision_action_params.rb @@ -99,10 +99,7 @@ class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel # cardholder. # # @return [Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result] - required :result, - enum: -> { - Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result - } + required :result, enum: -> { Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result } # @!method initialize(result:) # Some parameter documentations has been truncated, see @@ -210,10 +207,7 @@ class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel # Whether your application was able to deliver the one-time passcode. # # @return [Symbol, Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication::Result] - required :result, - enum: -> { - Increase::RealTimeDecisionActionParams::DigitalWalletAuthentication::Result - } + required :result, enum: -> { Increase::RealTimeDecisionActionParams::DigitalWalletAuthentication::Result } # @!attribute success # diff --git a/lib/increase/models/real_time_payments_transfer.rb b/lib/increase/models/real_time_payments_transfer.rb index 4bef4621e..9d65d279d 100644 --- a/lib/increase/models/real_time_payments_transfer.rb +++ b/lib/increase/models/real_time_payments_transfer.rb @@ -444,10 +444,7 @@ class Rejection < Increase::Internal::Type::BaseModel # Real-Time Payments network. # # @return [Symbol, Increase::Models::RealTimePaymentsTransfer::Rejection::RejectReasonCode] - required :reject_reason_code, - enum: -> { - Increase::RealTimePaymentsTransfer::Rejection::RejectReasonCode - } + required :reject_reason_code, enum: -> { Increase::RealTimePaymentsTransfer::Rejection::RejectReasonCode } # @!attribute rejected_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which diff --git a/lib/increase/models/simulations/card_authorization_create_params.rb b/lib/increase/models/simulations/card_authorization_create_params.rb index b52fd3444..06c5d454d 100644 --- a/lib/increase/models/simulations/card_authorization_create_params.rb +++ b/lib/increase/models/simulations/card_authorization_create_params.rb @@ -32,10 +32,7 @@ class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel # sent. # # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::DeclineReason, nil] - optional :decline_reason, - enum: -> { - Increase::Simulations::CardAuthorizationCreateParams::DeclineReason - } + optional :decline_reason, enum: -> { Increase::Simulations::CardAuthorizationCreateParams::DeclineReason } # @!attribute digital_wallet_token_id # The identifier of the Digital Wallet Token to be authorized. @@ -252,9 +249,7 @@ class Visa < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::StandInProcessingReason, nil] optional :stand_in_processing_reason, - enum: -> { - Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::StandInProcessingReason - } + enum: -> { Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa::StandInProcessingReason } # @!method initialize(stand_in_processing_reason: nil) # Fields specific to the Visa network. @@ -303,9 +298,7 @@ class ProcessingCategory < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category] required :category, - enum: -> { - Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category - } + enum: -> { Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category } # @!method initialize(category:) # Some parameter documentations has been truncated, see diff --git a/lib/increase/models/simulations/card_token_create_params.rb b/lib/increase/models/simulations/card_token_create_params.rb index b8459794e..c98299d17 100644 --- a/lib/increase/models/simulations/card_token_create_params.rb +++ b/lib/increase/models/simulations/card_token_create_params.rb @@ -13,9 +13,7 @@ class CardTokenCreateParams < Increase::Internal::Type::BaseModel # # @return [Array, nil] optional :capabilities, - -> { - Increase::Internal::Type::ArrayOf[Increase::Simulations::CardTokenCreateParams::Capability] - } + -> { Increase::Internal::Type::ArrayOf[Increase::Simulations::CardTokenCreateParams::Capability] } # @!attribute expiration # The expiration date of the card. @@ -60,18 +58,14 @@ class Capability < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers] required :cross_border_push_transfers, - enum: -> { - Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers - } + enum: -> { Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers } # @!attribute domestic_push_transfers # The domestic push transfers capability. # # @return [Symbol, Increase::Models::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers] required :domestic_push_transfers, - enum: -> { - Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers - } + enum: -> { Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers } # @!attribute route # The route of the capability. 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 98204bd1e..866cd21c1 100644 --- a/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb +++ b/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb @@ -120,10 +120,7 @@ class Addenda < Increase::Internal::Type::BaseModel # The type of addenda to simulate being sent with the transfer. # # @return [Symbol, Increase::Models::Simulations::InboundACHTransferCreateParams::Addenda::Category] - required :category, - enum: -> { - Increase::Simulations::InboundACHTransferCreateParams::Addenda::Category - } + required :category, enum: -> { Increase::Simulations::InboundACHTransferCreateParams::Addenda::Category } # @!attribute freeform # Unstructured `payment_related_information` passed through with the transfer. @@ -158,9 +155,7 @@ class Freeform < Increase::Internal::Type::BaseModel # # @return [Array] required :entries, - -> { - Increase::Internal::Type::ArrayOf[Increase::Simulations::InboundACHTransferCreateParams::Addenda::Freeform::Entry] - } + -> { Increase::Internal::Type::ArrayOf[Increase::Simulations::InboundACHTransferCreateParams::Addenda::Freeform::Entry] } # @!method initialize(entries:) # Unstructured `payment_related_information` passed through with the transfer. 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 d1ed1ccc7..237e1e766 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 @@ -25,9 +25,7 @@ class Rejection < Increase::Internal::Type::BaseModel # # @return [Symbol, Increase::Models::Simulations::RealTimePaymentsTransferCompleteParams::Rejection::RejectReasonCode] required :reject_reason_code, - enum: -> { - Increase::Simulations::RealTimePaymentsTransferCompleteParams::Rejection::RejectReasonCode - } + enum: -> { Increase::Simulations::RealTimePaymentsTransferCompleteParams::Rejection::RejectReasonCode } # @!method initialize(reject_reason_code:) # If set, the simulation will reject the transfer. diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index ec8827ff1..b4228ad08 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -1135,10 +1135,7 @@ class Visa < Increase::Internal::Type::BaseModel # The type of card dispute financial event. # # @return [Symbol, Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::EventType] - required :event_type, - enum: -> { - Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType - } + required :event_type, enum: -> { Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType } # @!method initialize(event_type:) # Information for events related to card dispute for card payments processed over @@ -2294,9 +2291,7 @@ class Ancillary < Increase::Internal::Type::BaseModel # # @return [Array] required :services, - -> { - Increase::Internal::Type::ArrayOf[Increase::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service] - } + -> { Increase::Internal::Type::ArrayOf[Increase::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -2783,10 +2778,7 @@ class CardSettlement < Increase::Internal::Type::BaseModel # Network-specific identifiers for this refund. # # @return [Increase::Models::Transaction::Source::CardSettlement::NetworkIdentifiers] - required :network_identifiers, - -> { - Increase::Transaction::Source::CardSettlement::NetworkIdentifiers - } + required :network_identifiers, -> { Increase::Transaction::Source::CardSettlement::NetworkIdentifiers } # @!attribute pending_transaction_id # The identifier of the Pending Transaction associated with this Transaction. @@ -2989,10 +2981,7 @@ class Interchange < Increase::Internal::Type::BaseModel # reimbursement. # # @return [Symbol, Increase::Models::Transaction::Source::CardSettlement::Interchange::Currency] - required :currency, - enum: -> { - Increase::Transaction::Source::CardSettlement::Interchange::Currency - } + required :currency, enum: -> { Increase::Transaction::Source::CardSettlement::Interchange::Currency } # @!method initialize(amount:, code:, currency:) # Some parameter documentations has been truncated, see @@ -3752,9 +3741,7 @@ class Ancillary < Increase::Internal::Type::BaseModel # # @return [Array] required :services, - -> { - Increase::Internal::Type::ArrayOf[Increase::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] - } + -> { Increase::Internal::Type::ArrayOf[Increase::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service] } # @!attribute ticket_document_number # Ticket document number. @@ -4383,10 +4370,7 @@ class CheckDepositReturn < Increase::Internal::Type::BaseModel # against. # # @return [Symbol, Increase::Models::Transaction::Source::CheckDepositReturn::ReturnReason] - required :return_reason, - enum: -> { - Increase::Transaction::Source::CheckDepositReturn::ReturnReason - } + required :return_reason, enum: -> { Increase::Transaction::Source::CheckDepositReturn::ReturnReason } # @!attribute returned_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which @@ -4824,10 +4808,7 @@ class Addenda < Increase::Internal::Type::BaseModel # The type of addendum. # # @return [Symbol, Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Category] - required :category, - enum: -> { - Increase::Transaction::Source::InboundACHTransfer::Addenda::Category - } + required :category, enum: -> { Increase::Transaction::Source::InboundACHTransfer::Addenda::Category } # @!attribute freeform # Unstructured `payment_related_information` passed through by the originator. @@ -4864,9 +4845,7 @@ class Freeform < Increase::Internal::Type::BaseModel # # @return [Array] required :entries, - -> { - Increase::Internal::Type::ArrayOf[Increase::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry] - } + -> { Increase::Internal::Type::ArrayOf[Increase::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry] } # @!method initialize(entries:) # Unstructured `payment_related_information` passed through by the originator. @@ -5007,9 +4986,7 @@ class InboundRealTimePaymentsTransferConfirmation < Increase::Internal::Type::Ba # # @return [Symbol, Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferConfirmation::Currency] required :currency, - enum: -> { - Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation::Currency - } + enum: -> { Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation::Currency } # @!attribute debtor_account_number # The account number of the account that sent the transfer. @@ -5128,9 +5105,7 @@ class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseMod # # @return [Symbol, Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferDecline::Currency] required :currency, - enum: -> { - Increase::Transaction::Source::InboundRealTimePaymentsTransferDecline::Currency - } + enum: -> { Increase::Transaction::Source::InboundRealTimePaymentsTransferDecline::Currency } # @!attribute debtor_account_number # The account number of the account that sent the transfer. diff --git a/rbi/increase/errors.rbi b/rbi/increase/errors.rbi index 21470c79d..13258bfb8 100644 --- a/rbi/increase/errors.rbi +++ b/rbi/increase/errors.rbi @@ -59,10 +59,10 @@ module Increase end class APIConnectionError < Increase::Errors::APIError - sig { void } + sig { returns(NilClass) } attr_accessor :status - sig { void } + sig { returns(NilClass) } attr_accessor :body # @api private diff --git a/test/increase/internal/type/base_model_test.rb b/test/increase/internal/type/base_model_test.rb index e165f78e2..dd4f97713 100644 --- a/test/increase/internal/type/base_model_test.rb +++ b/test/increase/internal/type/base_model_test.rb @@ -157,6 +157,7 @@ def test_dump_retry class Increase::Test::EnumModelTest < Minitest::Test class E0 include Increase::Internal::Type::Enum + attr_reader :values def initialize(*values) = (@values = values) @@ -476,6 +477,7 @@ def initialize(*variants) = variants.each { variant(_1) } module U1 extend Increase::Internal::Type::Union + variant const: :a variant const: 2 end @@ -492,6 +494,7 @@ class M2 < Increase::Internal::Type::BaseModel module U2 extend Increase::Internal::Type::Union + discriminator :type variant :a, M1 @@ -500,6 +503,7 @@ module U2 module U3 extend Increase::Internal::Type::Union + discriminator :type variant :a, M1 @@ -508,6 +512,7 @@ module U3 module U4 extend Increase::Internal::Type::Union + discriminator :type variant String @@ -601,6 +606,7 @@ def test_coerce class Increase::Test::BaseModelQoLTest < Minitest::Test class E0 include Increase::Internal::Type::Enum + attr_reader :values def initialize(*values) = (@values = values) diff --git a/test/increase/internal/util_test.rb b/test/increase/internal/util_test.rb index 4c28f4fb7..852f13cc9 100644 --- a/test/increase/internal/util_test.rb +++ b/test/increase/internal/util_test.rb @@ -242,11 +242,7 @@ def test_hash_encode {strio: StringIO.new("a")} => {"strio" => "a"}, {strio: Increase::FilePart.new("a")} => {"strio" => "a"}, {pathname: Pathname(__FILE__)} => {"pathname" => -> { _1.read in /^class Increase/ }}, - {pathname: Increase::FilePart.new(Pathname(__FILE__))} => { - "pathname" => -> { - _1.read in /^class Increase/ - } - } + {pathname: Increase::FilePart.new(Pathname(__FILE__))} => {"pathname" => -> { _1.read in /^class Increase/ }} } cases.each do |body, testcase| encoded = Increase::Internal::Util.encode_content(headers, body) @@ -324,9 +320,9 @@ def test_rewind_chain end def test_external_iteration - it = [1, 2, 3].to_enum - first = it.next - fused = Increase::Internal::Util.fused_enum(it, external: true) + iter = [1, 2, 3].to_enum + first = iter.next + fused = Increase::Internal::Util.fused_enum(iter, external: true) assert_equal(1, first) assert_equal([2, 3], fused.to_a) From d1fbf156db18b96fd01d60831e62cedb20a6914f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 22:04:34 +0000 Subject: [PATCH 4/4] release: 1.37.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 36116e176..6fc89ad7b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.37.0" + ".": "1.37.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e51baa57..7f557bf88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.37.1 (2025-08-19) + +Full Changelog: [v1.37.0...v1.37.1](https://github.com/Increase/increase-ruby/compare/v1.37.0...v1.37.1) + +### Bug Fixes + +* bump sorbet version and fix new type errors from the breaking change ([0b9b4ea](https://github.com/Increase/increase-ruby/commit/0b9b4eaee891bbbd8fe56fa7da8b54b6b94c0172)) + ## 1.37.0 (2025-08-18) Full Changelog: [v1.36.0...v1.37.0](https://github.com/Increase/increase-ruby/compare/v1.36.0...v1.37.0) diff --git a/Gemfile.lock b/Gemfile.lock index 7ba3070d0..f7ccf72d5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.37.0) + increase (1.37.1) connection_pool GEM diff --git a/README.md b/README.md index 1a1614930..8be4f92a9 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.37.0" +gem "increase", "~> 1.37.1" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 410c33322..440a12c87 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.37.0" + VERSION = "1.37.1" end