From b4ae43812e1e07b156be13f169b117c9f0f5cb54 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 17:17:05 +0000 Subject: [PATCH 1/3] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ae82a1b8..24b3407c3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5ecfd5d7d11e1ed73e093008b8ec107f9c1d0d455f660badf74e0a12d98805ed.yml -openapi_spec_hash: ec6f6ea0766c1c56085f9032da2a9e24 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f53b2a737b80cf584e4c30b143f41b7afe73bce6c02e00ccd09ff36d30e3d913.yml +openapi_spec_hash: eda3be244729410eb2747752c40a1124 config_hash: 632b628b59d8f0b717153b3d8133f6cb From 281534fd972e76bc08d4ef4bfbce7665bfeca852 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 18:18:35 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +- .../simulations/ach_transfer_settle_params.rb | 32 ++++++- .../resources/simulations/ach_transfers.rb | 16 +++- .../ach_transfer_settle_params.rbi | 84 ++++++++++++++++++- .../resources/simulations/ach_transfers.rbi | 11 ++- .../ach_transfer_settle_params.rbs | 36 +++++++- .../resources/simulations/ach_transfers.rbs | 1 + 7 files changed, 170 insertions(+), 14 deletions(-) diff --git a/.stats.yml b/.stats.yml index 24b3407c3..160b294b4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f53b2a737b80cf584e4c30b143f41b7afe73bce6c02e00ccd09ff36d30e3d913.yml -openapi_spec_hash: eda3be244729410eb2747752c40a1124 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a6d99e6e3e405acf3e592e273aa1c5d519ed4f1157d0f87f1dcf21e7710f59b5.yml +openapi_spec_hash: f1f21c7331c905f2e5549978454059dc config_hash: 632b628b59d8f0b717153b3d8133f6cb diff --git a/lib/increase/models/simulations/ach_transfer_settle_params.rb b/lib/increase/models/simulations/ach_transfer_settle_params.rb index e96d1cba2..c349cb06a 100644 --- a/lib/increase/models/simulations/ach_transfer_settle_params.rb +++ b/lib/increase/models/simulations/ach_transfer_settle_params.rb @@ -8,8 +8,38 @@ class ACHTransferSettleParams < Increase::Internal::Type::BaseModel extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute inbound_funds_hold_behavior + # The behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. + # + # @return [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior, nil] + optional :inbound_funds_hold_behavior, + enum: -> { Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior } + + # @!method initialize(inbound_funds_hold_behavior: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Increase::Models::Simulations::ACHTransferSettleParams} for more details. + # + # @param inbound_funds_hold_behavior [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior] The behavior of the inbound funds hold that is created when the ACH Transfer is + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + + # The behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. + module InboundFundsHoldBehavior + extend Increase::Internal::Type::Enum + + # Release the inbound funds hold immediately. + RELEASE_IMMEDIATELY = :release_immediately + + # Release the inbound funds hold on the default schedule. + RELEASE_ON_DEFAULT_SCHEDULE = :release_on_default_schedule + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/increase/resources/simulations/ach_transfers.rb b/lib/increase/resources/simulations/ach_transfers.rb index e056270ce..54fe9d27f 100644 --- a/lib/increase/resources/simulations/ach_transfers.rb +++ b/lib/increase/resources/simulations/ach_transfers.rb @@ -89,28 +89,38 @@ def return_(ach_transfer_id, params = {}) ) end + # Some parameter documentations has been truncated, see + # {Increase::Models::Simulations::ACHTransferSettleParams} for more details. + # # Simulates the settlement of an [ACH Transfer](#ach-transfers) by the Federal # Reserve. This transfer must first have a `status` of `pending_submission` or # `submitted`. For convenience, if the transfer is in `status`: # `pending_submission`, the simulation will also submit the transfer. Without this # simulation the transfer will eventually settle on its own following the same - # Federal Reserve timeline as in production. + # Federal Reserve timeline as in production. Additionally, you can specify the + # behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. # - # @overload settle(ach_transfer_id, request_options: {}) + # @overload settle(ach_transfer_id, inbound_funds_hold_behavior: nil, request_options: {}) # # @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to become settled. # + # @param inbound_funds_hold_behavior [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior] The behavior of the inbound funds hold that is created when the ACH Transfer is + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Increase::Models::ACHTransfer] # # @see Increase::Models::Simulations::ACHTransferSettleParams def settle(ach_transfer_id, params = {}) + parsed, options = Increase::Simulations::ACHTransferSettleParams.dump_request(params) @client.request( method: :post, path: ["simulations/ach_transfers/%1$s/settle", ach_transfer_id], + body: parsed, model: Increase::ACHTransfer, - options: params[:request_options] + options: options ) end diff --git a/rbi/increase/models/simulations/ach_transfer_settle_params.rbi b/rbi/increase/models/simulations/ach_transfer_settle_params.rbi index 0a8df71d3..8cc16dc06 100644 --- a/rbi/increase/models/simulations/ach_transfer_settle_params.rbi +++ b/rbi/increase/models/simulations/ach_transfer_settle_params.rbi @@ -15,17 +15,93 @@ module Increase ) end + # The behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. sig do - params(request_options: Increase::RequestOptions::OrHash).returns( - T.attached_class + returns( + T.nilable( + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol + ) ) end - def self.new(request_options: {}) + attr_reader :inbound_funds_hold_behavior + + sig do + params( + inbound_funds_hold_behavior: + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol + ).void end + attr_writer :inbound_funds_hold_behavior - sig { override.returns({ request_options: Increase::RequestOptions }) } + sig do + params( + inbound_funds_hold_behavior: + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol, + request_options: Increase::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # The behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. + inbound_funds_hold_behavior: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + inbound_funds_hold_behavior: + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol, + request_options: Increase::RequestOptions + } + ) + end def to_hash end + + # The behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. + module InboundFundsHoldBehavior + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Release the inbound funds hold immediately. + RELEASE_IMMEDIATELY = + T.let( + :release_immediately, + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol + ) + + # Release the inbound funds hold on the default schedule. + RELEASE_ON_DEFAULT_SCHEDULE = + T.let( + :release_on_default_schedule, + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/increase/resources/simulations/ach_transfers.rbi b/rbi/increase/resources/simulations/ach_transfers.rbi index 9016ee8dc..8ae2d832e 100644 --- a/rbi/increase/resources/simulations/ach_transfers.rbi +++ b/rbi/increase/resources/simulations/ach_transfers.rbi @@ -72,16 +72,25 @@ module Increase # `submitted`. For convenience, if the transfer is in `status`: # `pending_submission`, the simulation will also submit the transfer. Without this # simulation the transfer will eventually settle on its own following the same - # Federal Reserve timeline as in production. + # Federal Reserve timeline as in production. Additionally, you can specify the + # behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. sig do params( ach_transfer_id: String, + inbound_funds_hold_behavior: + Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol, request_options: Increase::RequestOptions::OrHash ).returns(Increase::ACHTransfer) end def settle( # The identifier of the ACH Transfer you wish to become settled. ach_transfer_id, + # The behavior of the inbound funds hold that is created when the ACH Transfer is + # settled. If no behavior is specified, the inbound funds hold will be released + # immediately in order for the funds to be available for use. + inbound_funds_hold_behavior: nil, request_options: {} ) end diff --git a/sig/increase/models/simulations/ach_transfer_settle_params.rbs b/sig/increase/models/simulations/ach_transfer_settle_params.rbs index 95291eba1..6311e801c 100644 --- a/sig/increase/models/simulations/ach_transfer_settle_params.rbs +++ b/sig/increase/models/simulations/ach_transfer_settle_params.rbs @@ -2,15 +2,45 @@ module Increase module Models module Simulations type ach_transfer_settle_params = - { } & Increase::Internal::Type::request_parameters + { + inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior + } + & Increase::Internal::Type::request_parameters 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 + attr_reader inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior? - def to_hash: -> { request_options: Increase::RequestOptions } + def inbound_funds_hold_behavior=: ( + Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior + ) -> Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior + + def initialize: ( + ?inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior, + ?request_options: Increase::request_opts + ) -> void + + def to_hash: -> { + inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior, + request_options: Increase::RequestOptions + } + + type inbound_funds_hold_behavior = + :release_immediately | :release_on_default_schedule + + module InboundFundsHoldBehavior + extend Increase::Internal::Type::Enum + + # Release the inbound funds hold immediately. + RELEASE_IMMEDIATELY: :release_immediately + + # Release the inbound funds hold on the default schedule. + RELEASE_ON_DEFAULT_SCHEDULE: :release_on_default_schedule + + def self?.values: -> ::Array[Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior] + end end end end diff --git a/sig/increase/resources/simulations/ach_transfers.rbs b/sig/increase/resources/simulations/ach_transfers.rbs index 35ef74898..cce0d93dd 100644 --- a/sig/increase/resources/simulations/ach_transfers.rbs +++ b/sig/increase/resources/simulations/ach_transfers.rbs @@ -22,6 +22,7 @@ module Increase def settle: ( String ach_transfer_id, + ?inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior, ?request_options: Increase::request_opts ) -> Increase::ACHTransfer From 92fb673995309d065064a41a5c32014d2e19a2fc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 18:18:57 +0000 Subject: [PATCH 3/3] release: 1.59.0 --- .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 452fa092b..451b00c10 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.58.0" + ".": "1.59.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index eb6fa52bb..5aa19d1f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.59.0 (2025-08-28) + +Full Changelog: [v1.58.0...v1.59.0](https://github.com/Increase/increase-ruby/compare/v1.58.0...v1.59.0) + +### Features + +* **api:** api update ([281534f](https://github.com/Increase/increase-ruby/commit/281534fd972e76bc08d4ef4bfbce7665bfeca852)) + ## 1.58.0 (2025-08-28) Full Changelog: [v1.57.0...v1.58.0](https://github.com/Increase/increase-ruby/compare/v1.57.0...v1.58.0) diff --git a/Gemfile.lock b/Gemfile.lock index 858b06a9b..915fb6690 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.58.0) + increase (1.59.0) connection_pool GEM diff --git a/README.md b/README.md index e2c8f7996..d8263df15 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.58.0" +gem "increase", "~> 1.59.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 627eb93f7..34c227239 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.58.0" + VERSION = "1.59.0" end