diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f32ceed2..ee91fdf2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.126.0" + ".": "1.127.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7ca08cf6..78b249d4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-44b5f1aa7877231cd00051536df52b79d7cdc9cdd18194e9d58416a23c0e3080.yml -openapi_spec_hash: 60f0bd1ca37c9a57996238e105cca091 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f07048979577d746042198f73c1bac07529dd48f26402f60def922a12b6e01e0.yml +openapi_spec_hash: 6d1ca8aa0b64f414db957540bbeab5ee config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/CHANGELOG.md b/CHANGELOG.md index 645317ba..f0874e3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.127.0 (2025-10-31) + +Full Changelog: [v1.126.0...v1.127.0](https://github.com/Increase/increase-ruby/compare/v1.126.0...v1.127.0) + +### Features + +* **api:** api update ([9a07f39](https://github.com/Increase/increase-ruby/commit/9a07f39ddb7aa466e35b7dbb8c88a136baa2ab59)) + ## 1.126.0 (2025-10-31) Full Changelog: [v1.125.0...v1.126.0](https://github.com/Increase/increase-ruby/compare/v1.125.0...v1.126.0) diff --git a/Gemfile.lock b/Gemfile.lock index f5dc6122..adf8d712 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.126.0) + increase (1.127.0) connection_pool GEM diff --git a/README.md b/README.md index 78b56dbf..e89270d8 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.126.0" +gem "increase", "~> 1.127.0" ``` diff --git a/lib/increase/models/pending_transaction.rb b/lib/increase/models/pending_transaction.rb index fbfc771a..51616da5 100644 --- a/lib/increase/models/pending_transaction.rb +++ b/lib/increase/models/pending_transaction.rb @@ -23,13 +23,6 @@ class PendingTransaction < Increase::Internal::Type::BaseModel # @return [Integer] required :amount, Integer - # @!attribute balance_impact - # How the Pending Transaction affects the balance of its Account while its status - # is `pending`. - # - # @return [Symbol, Increase::Models::PendingTransaction::BalanceImpact] - required :balance_impact, enum: -> { Increase::PendingTransaction::BalanceImpact } - # @!attribute completed_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending # Transaction was completed. @@ -60,6 +53,14 @@ class PendingTransaction < Increase::Internal::Type::BaseModel # @return [String] required :description, String + # @!attribute held_amount + # The amount that this Pending Transaction decrements the available balance of its + # Account. This is usually the same as `amount`, but will differ if the amount is + # positive. + # + # @return [Integer] + required :held_amount, Integer + # @!attribute route_id # The identifier for the route this Pending Transaction came through. Routes are # things like cards and ACH details. @@ -95,7 +96,7 @@ class PendingTransaction < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::PendingTransaction::Type] required :type, enum: -> { Increase::PendingTransaction::Type } - # @!method initialize(id:, account_id:, amount:, balance_impact:, completed_at:, created_at:, currency:, description:, route_id:, route_type:, source:, status:, type:) + # @!method initialize(id:, account_id:, amount:, completed_at:, created_at:, currency:, description:, held_amount:, route_id:, route_type:, source:, status:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::PendingTransaction} for more details. # @@ -110,8 +111,6 @@ class PendingTransaction < Increase::Internal::Type::BaseModel # # @param amount [Integer] The Pending Transaction amount in the minor unit of its currency. For dollars, f # - # @param balance_impact [Symbol, Increase::Models::PendingTransaction::BalanceImpact] How the Pending Transaction affects the balance of its Account while its status - # # @param completed_at [Time, nil] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending # # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending @@ -120,6 +119,8 @@ class PendingTransaction < Increase::Internal::Type::BaseModel # # @param description [String] For a Pending Transaction related to a transfer, this is the description you pro # + # @param held_amount [Integer] The amount that this Pending Transaction decrements the available balance of its + # # @param route_id [String, nil] The identifier for the route this Pending Transaction came through. Routes are t # # @param route_type [Symbol, Increase::Models::PendingTransaction::RouteType, nil] The type of the route this Pending Transaction came through. @@ -130,23 +131,6 @@ class PendingTransaction < Increase::Internal::Type::BaseModel # # @param type [Symbol, Increase::Models::PendingTransaction::Type] A constant representing the object's type. For this resource it will always be ` - # How the Pending Transaction affects the balance of its Account while its status - # is `pending`. - # - # @see Increase::Models::PendingTransaction#balance_impact - module BalanceImpact - extend Increase::Internal::Type::Enum - - # This Pending Transaction will decrement the available balance on the Account while its status is `pending`. - AFFECTS_AVAILABLE_BALANCE = :affects_available_balance - - # This Pending Transaction does not affect the available balance on the Account. - NONE = :none - - # @!method self.values - # @return [Array] - end - # 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 # Transaction's Account. diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 2e6acf3f..5529645f 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.126.0" + VERSION = "1.127.0" end diff --git a/rbi/increase/models/pending_transaction.rbi b/rbi/increase/models/pending_transaction.rbi index 1d61723c..8048c7ee 100644 --- a/rbi/increase/models/pending_transaction.rbi +++ b/rbi/increase/models/pending_transaction.rbi @@ -21,11 +21,6 @@ module Increase sig { returns(Integer) } attr_accessor :amount - # How the Pending Transaction affects the balance of its Account while its status - # is `pending`. - sig { returns(Increase::PendingTransaction::BalanceImpact::TaggedSymbol) } - attr_accessor :balance_impact - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending # Transaction was completed. sig { returns(T.nilable(Time)) } @@ -48,6 +43,12 @@ module Increase sig { returns(String) } attr_accessor :description + # The amount that this Pending Transaction decrements the available balance of its + # Account. This is usually the same as `amount`, but will differ if the amount is + # positive. + sig { returns(Integer) } + attr_accessor :held_amount + # The identifier for the route this Pending Transaction came through. Routes are # things like cards and ACH details. sig { returns(T.nilable(String)) } @@ -89,11 +90,11 @@ module Increase id: String, account_id: String, amount: Integer, - balance_impact: Increase::PendingTransaction::BalanceImpact::OrSymbol, completed_at: T.nilable(Time), created_at: Time, currency: Increase::PendingTransaction::Currency::OrSymbol, description: String, + held_amount: Integer, route_id: T.nilable(String), route_type: T.nilable(Increase::PendingTransaction::RouteType::OrSymbol), @@ -110,9 +111,6 @@ module Increase # The Pending Transaction amount in the minor unit of its currency. For dollars, # for example, this is cents. amount:, - # How the Pending Transaction affects the balance of its Account while its status - # is `pending`. - balance_impact:, # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending # Transaction was completed. completed_at:, @@ -127,6 +125,10 @@ module Increase # provide. For a Pending Transaction related to a payment, this is the description # the vendor provides. description:, + # The amount that this Pending Transaction decrements the available balance of its + # Account. This is usually the same as `amount`, but will differ if the amount is + # positive. + held_amount:, # The identifier for the route this Pending Transaction came through. Routes are # things like cards and ACH details. route_id:, @@ -151,12 +153,11 @@ module Increase id: String, account_id: String, amount: Integer, - balance_impact: - Increase::PendingTransaction::BalanceImpact::TaggedSymbol, completed_at: T.nilable(Time), created_at: Time, currency: Increase::PendingTransaction::Currency::TaggedSymbol, description: String, + held_amount: Integer, route_id: T.nilable(String), route_type: T.nilable(Increase::PendingTransaction::RouteType::TaggedSymbol), @@ -169,40 +170,6 @@ module Increase def to_hash end - # How the Pending Transaction affects the balance of its Account while its status - # is `pending`. - module BalanceImpact - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::PendingTransaction::BalanceImpact) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # This Pending Transaction will decrement the available balance on the Account while its status is `pending`. - AFFECTS_AVAILABLE_BALANCE = - T.let( - :affects_available_balance, - Increase::PendingTransaction::BalanceImpact::TaggedSymbol - ) - - # This Pending Transaction does not affect the available balance on the Account. - NONE = - T.let( - :none, - Increase::PendingTransaction::BalanceImpact::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Increase::PendingTransaction::BalanceImpact::TaggedSymbol] - ) - end - def self.values - end - end - # 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 # Transaction's Account. diff --git a/sig/increase/models/pending_transaction.rbs b/sig/increase/models/pending_transaction.rbs index cef517a3..9a787e8f 100644 --- a/sig/increase/models/pending_transaction.rbs +++ b/sig/increase/models/pending_transaction.rbs @@ -5,11 +5,11 @@ module Increase id: String, account_id: String, amount: Integer, - balance_impact: Increase::Models::PendingTransaction::balance_impact, completed_at: Time?, created_at: Time, currency: Increase::Models::PendingTransaction::currency, description: String, + held_amount: Integer, route_id: String?, route_type: Increase::Models::PendingTransaction::route_type?, source: Increase::PendingTransaction::Source, @@ -24,8 +24,6 @@ module Increase attr_accessor amount: Integer - attr_accessor balance_impact: Increase::Models::PendingTransaction::balance_impact - attr_accessor completed_at: Time? attr_accessor created_at: Time @@ -34,6 +32,8 @@ module Increase attr_accessor description: String + attr_accessor held_amount: Integer + attr_accessor route_id: String? attr_accessor route_type: Increase::Models::PendingTransaction::route_type? @@ -48,11 +48,11 @@ module Increase id: String, account_id: String, amount: Integer, - balance_impact: Increase::Models::PendingTransaction::balance_impact, completed_at: Time?, created_at: Time, currency: Increase::Models::PendingTransaction::currency, description: String, + held_amount: Integer, route_id: String?, route_type: Increase::Models::PendingTransaction::route_type?, source: Increase::PendingTransaction::Source, @@ -64,11 +64,11 @@ module Increase id: String, account_id: String, amount: Integer, - balance_impact: Increase::Models::PendingTransaction::balance_impact, completed_at: Time?, created_at: Time, currency: Increase::Models::PendingTransaction::currency, description: String, + held_amount: Integer, route_id: String?, route_type: Increase::Models::PendingTransaction::route_type?, source: Increase::PendingTransaction::Source, @@ -76,20 +76,6 @@ module Increase type: Increase::Models::PendingTransaction::type_ } - type balance_impact = :affects_available_balance | :none - - module BalanceImpact - extend Increase::Internal::Type::Enum - - # This Pending Transaction will decrement the available balance on the Account while its status is `pending`. - AFFECTS_AVAILABLE_BALANCE: :affects_available_balance - - # This Pending Transaction does not affect the available balance on the Account. - NONE: :none - - def self?.values: -> ::Array[Increase::Models::PendingTransaction::balance_impact] - end - type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency diff --git a/test/increase/resources/pending_transactions_test.rb b/test/increase/resources/pending_transactions_test.rb index 33d413a2..d22600ae 100644 --- a/test/increase/resources/pending_transactions_test.rb +++ b/test/increase/resources/pending_transactions_test.rb @@ -16,11 +16,11 @@ def test_create_required_params id: String, account_id: String, amount: Integer, - balance_impact: Increase::PendingTransaction::BalanceImpact, completed_at: Time | nil, created_at: Time, currency: Increase::PendingTransaction::Currency, description: String, + held_amount: Integer, route_id: String | nil, route_type: Increase::PendingTransaction::RouteType | nil, source: Increase::PendingTransaction::Source, @@ -42,11 +42,11 @@ def test_retrieve id: String, account_id: String, amount: Integer, - balance_impact: Increase::PendingTransaction::BalanceImpact, completed_at: Time | nil, created_at: Time, currency: Increase::PendingTransaction::Currency, description: String, + held_amount: Integer, route_id: String | nil, route_type: Increase::PendingTransaction::RouteType | nil, source: Increase::PendingTransaction::Source, @@ -75,11 +75,11 @@ def test_list id: String, account_id: String, amount: Integer, - balance_impact: Increase::PendingTransaction::BalanceImpact, completed_at: Time | nil, created_at: Time, currency: Increase::PendingTransaction::Currency, description: String, + held_amount: Integer, route_id: String | nil, route_type: Increase::PendingTransaction::RouteType | nil, source: Increase::PendingTransaction::Source, @@ -101,11 +101,11 @@ def test_release id: String, account_id: String, amount: Integer, - balance_impact: Increase::PendingTransaction::BalanceImpact, completed_at: Time | nil, created_at: Time, currency: Increase::PendingTransaction::Currency, description: String, + held_amount: Integer, route_id: String | nil, route_type: Increase::PendingTransaction::RouteType | nil, source: Increase::PendingTransaction::Source, diff --git a/test/increase/resources/simulations/pending_transactions_test.rb b/test/increase/resources/simulations/pending_transactions_test.rb index 434ff054..4977fac0 100644 --- a/test/increase/resources/simulations/pending_transactions_test.rb +++ b/test/increase/resources/simulations/pending_transactions_test.rb @@ -18,11 +18,11 @@ def test_release_inbound_funds_hold id: String, account_id: String, amount: Integer, - balance_impact: Increase::PendingTransaction::BalanceImpact, completed_at: Time | nil, created_at: Time, currency: Increase::PendingTransaction::Currency, description: String, + held_amount: Integer, route_id: String | nil, route_type: Increase::PendingTransaction::RouteType | nil, source: Increase::PendingTransaction::Source,