From aabb92ccae37972783253afb3506ff429cbedfb5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 20:49:28 +0000 Subject: [PATCH 1/3] chore: add json schema comment for rubocop.yml --- .rubocop.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index afb3557c2..c3139ead3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,4 @@ +# yaml-language-server: $schema=https://www.rubyschema.org/rubocop.json --- # Explicitly disable pending cops for now. This is the default behaviour but # this avoids a large warning every time we run it. @@ -8,7 +9,7 @@ AllCops: - "bin/*" NewCops: enable SuggestExtensions: false - TargetRubyVersion: 3.2.0 + TargetRubyVersion: 3.2 # Whether MFA is required or not should be left to the token configuration. Gemspec/RequireMFA: From 5bf108b6bb1dfa41a6d2e0e981edd099ffb13ef6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 15:01:56 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 8 ++--- lib/increase.rb | 1 + .../wire_drawdown_request_submit_params.rb | 16 ++++++++++ .../simulations/wire_drawdown_requests.rb | 20 ++++++++++++ .../wire_drawdown_request_submit_params.rbi | 32 +++++++++++++++++++ .../simulations/wire_drawdown_requests.rbi | 14 ++++++++ .../wire_drawdown_request_submit_params.rbs | 17 ++++++++++ .../simulations/wire_drawdown_requests.rbs | 5 +++ .../wire_drawdown_requests_test.rb | 31 ++++++++++++++++++ 9 files changed, 140 insertions(+), 4 deletions(-) create mode 100644 lib/increase/models/simulations/wire_drawdown_request_submit_params.rb create mode 100644 rbi/increase/models/simulations/wire_drawdown_request_submit_params.rbi create mode 100644 sig/increase/models/simulations/wire_drawdown_request_submit_params.rbs diff --git a/.stats.yml b/.stats.yml index 267b1ca2c..f4bfa5a9c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 215 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47271d8ef6b398d5273312e3c39405688f782f8ec811ddee55283f5c0bd1a355.yml -openapi_spec_hash: 304a3d8409f0cc03144052411acab7a1 -config_hash: 0b0a2503208283b283fc5bc6df6a07a5 +configured_endpoints: 216 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e692ae6a744df0b2e6df643237f2338fb9afc9f55d456afde4fc392bc61ac438.yml +openapi_spec_hash: 121549528ff41d1a1f7ddb76a3c391de +config_hash: 29e452035e915a07cd64333b10a83077 diff --git a/lib/increase.rb b/lib/increase.rb index 217f6fe3d..1d4c47504 100644 --- a/lib/increase.rb +++ b/lib/increase.rb @@ -311,6 +311,7 @@ require_relative "increase/models/simulations/program_create_params" require_relative "increase/models/simulations/real_time_payments_transfer_complete_params" require_relative "increase/models/simulations/wire_drawdown_request_refuse_params" +require_relative "increase/models/simulations/wire_drawdown_request_submit_params" require_relative "increase/models/simulations/wire_transfer_reverse_params" require_relative "increase/models/simulations/wire_transfer_submit_params" require_relative "increase/models/supplemental_document_create_params" diff --git a/lib/increase/models/simulations/wire_drawdown_request_submit_params.rb b/lib/increase/models/simulations/wire_drawdown_request_submit_params.rb new file mode 100644 index 000000000..44d8e4713 --- /dev/null +++ b/lib/increase/models/simulations/wire_drawdown_request_submit_params.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Increase + module Models + module Simulations + # @see Increase::Resources::Simulations::WireDrawdownRequests#submit + class WireDrawdownRequestSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + # @!method initialize(request_options: {}) + # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/increase/resources/simulations/wire_drawdown_requests.rb b/lib/increase/resources/simulations/wire_drawdown_requests.rb index 666c47dd5..1d8d3f254 100644 --- a/lib/increase/resources/simulations/wire_drawdown_requests.rb +++ b/lib/increase/resources/simulations/wire_drawdown_requests.rb @@ -24,6 +24,26 @@ def refuse(wire_drawdown_request_id, params = {}) ) end + # Simulates a Wire Drawdown Request being submitted to Fedwire. + # + # @overload submit(wire_drawdown_request_id, request_options: {}) + # + # @param wire_drawdown_request_id [String] The identifier of the Wire Drawdown Request you wish to submit. + # + # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Increase::Models::WireDrawdownRequest] + # + # @see Increase::Models::Simulations::WireDrawdownRequestSubmitParams + def submit(wire_drawdown_request_id, params = {}) + @client.request( + method: :post, + path: ["simulations/wire_drawdown_requests/%1$s/submit", wire_drawdown_request_id], + model: Increase::WireDrawdownRequest, + options: params[:request_options] + ) + end + # @api private # # @param client [Increase::Client] diff --git a/rbi/increase/models/simulations/wire_drawdown_request_submit_params.rbi b/rbi/increase/models/simulations/wire_drawdown_request_submit_params.rbi new file mode 100644 index 000000000..8e43d80d7 --- /dev/null +++ b/rbi/increase/models/simulations/wire_drawdown_request_submit_params.rbi @@ -0,0 +1,32 @@ +# typed: strong + +module Increase + module Models + module Simulations + class WireDrawdownRequestSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + Increase::Simulations::WireDrawdownRequestSubmitParams, + Increase::Internal::AnyHash + ) + end + + sig do + params(request_options: Increase::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) + end + + sig { override.returns({ request_options: Increase::RequestOptions }) } + def to_hash + end + end + end + end +end diff --git a/rbi/increase/resources/simulations/wire_drawdown_requests.rbi b/rbi/increase/resources/simulations/wire_drawdown_requests.rbi index 9178a5e52..b5809386e 100644 --- a/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +++ b/rbi/increase/resources/simulations/wire_drawdown_requests.rbi @@ -18,6 +18,20 @@ module Increase ) end + # Simulates a Wire Drawdown Request being submitted to Fedwire. + sig do + params( + wire_drawdown_request_id: String, + request_options: Increase::RequestOptions::OrHash + ).returns(Increase::WireDrawdownRequest) + end + def submit( + # The identifier of the Wire Drawdown Request you wish to submit. + wire_drawdown_request_id, + request_options: {} + ) + end + # @api private sig { params(client: Increase::Client).returns(T.attached_class) } def self.new(client:) diff --git a/sig/increase/models/simulations/wire_drawdown_request_submit_params.rbs b/sig/increase/models/simulations/wire_drawdown_request_submit_params.rbs new file mode 100644 index 000000000..644ee80ca --- /dev/null +++ b/sig/increase/models/simulations/wire_drawdown_request_submit_params.rbs @@ -0,0 +1,17 @@ +module Increase + module Models + module Simulations + type wire_drawdown_request_submit_params = + { } & Increase::Internal::Type::request_parameters + + class WireDrawdownRequestSubmitParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + def initialize: (?request_options: Increase::request_opts) -> void + + def to_hash: -> { request_options: Increase::RequestOptions } + end + end + end +end diff --git a/sig/increase/resources/simulations/wire_drawdown_requests.rbs b/sig/increase/resources/simulations/wire_drawdown_requests.rbs index ad588231a..c0f683319 100644 --- a/sig/increase/resources/simulations/wire_drawdown_requests.rbs +++ b/sig/increase/resources/simulations/wire_drawdown_requests.rbs @@ -7,6 +7,11 @@ module Increase ?request_options: Increase::request_opts ) -> Increase::WireDrawdownRequest + def submit: ( + String wire_drawdown_request_id, + ?request_options: Increase::request_opts + ) -> Increase::WireDrawdownRequest + def initialize: (client: Increase::Client) -> void end end diff --git a/test/increase/resources/simulations/wire_drawdown_requests_test.rb b/test/increase/resources/simulations/wire_drawdown_requests_test.rb index 0ffb028cf..9e5ab1f87 100644 --- a/test/increase/resources/simulations/wire_drawdown_requests_test.rb +++ b/test/increase/resources/simulations/wire_drawdown_requests_test.rb @@ -33,4 +33,35 @@ def test_refuse } end end + + def test_submit + response = @increase.simulations.wire_drawdown_requests.submit("wire_drawdown_request_id") + + assert_pattern do + response => Increase::WireDrawdownRequest + end + + assert_pattern do + response => { + id: String, + account_number_id: String, + amount: Integer, + created_at: Time, + creditor_address: Increase::WireDrawdownRequest::CreditorAddress, + creditor_name: String, + currency: String, + debtor_account_number: String, + debtor_address: Increase::WireDrawdownRequest::DebtorAddress, + debtor_external_account_id: String | nil, + debtor_name: String, + debtor_routing_number: String, + fulfillment_inbound_wire_transfer_id: String | nil, + idempotency_key: String | nil, + status: Increase::WireDrawdownRequest::Status, + submission: Increase::WireDrawdownRequest::Submission | nil, + type: Increase::WireDrawdownRequest::Type, + unstructured_remittance_information: String + } + end + end end From f56fd028feabfa8f7a2f305e028467a4558e25c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 15:02:23 +0000 Subject: [PATCH 3/3] release: 1.48.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index dc9bcb375..3f47f4bc2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.47.0" + ".": "1.48.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 06e6dfec1..5722f0725 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.48.0 (2025-08-25) + +Full Changelog: [v1.47.0...v1.48.0](https://github.com/Increase/increase-ruby/compare/v1.47.0...v1.48.0) + +### Features + +* **api:** api update ([5bf108b](https://github.com/Increase/increase-ruby/commit/5bf108b6bb1dfa41a6d2e0e981edd099ffb13ef6)) + + +### Chores + +* add json schema comment for rubocop.yml ([aabb92c](https://github.com/Increase/increase-ruby/commit/aabb92ccae37972783253afb3506ff429cbedfb5)) + ## 1.47.0 (2025-08-22) Full Changelog: [v1.46.0...v1.47.0](https://github.com/Increase/increase-ruby/compare/v1.46.0...v1.47.0) diff --git a/Gemfile.lock b/Gemfile.lock index 6d9d1d5c6..18eba3ee3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.47.0) + increase (1.48.0) connection_pool GEM diff --git a/README.md b/README.md index c78c8fca1..50d216795 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.47.0" +gem "increase", "~> 1.48.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 37cd7ccd7..8c8249339 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.47.0" + VERSION = "1.48.0" end