From 21675e15c34881c0b835625503cd2a50f6725963 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:22:19 +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 2adac204c..35b80bba7 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-70837ed2f8d4ade9021fc0f50bf3cd77cdf05f308c4ed75b2b4dcc42f1ec2378.yml -openapi_spec_hash: 09cf1c77dce2927cb41426a287a15437 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e861c5dc0fe5d8ac8a5099eff9f99482ce5510988a1c3dd056f954c7709ae194.yml +openapi_spec_hash: da9c977849121632540be2bb9fa7571b config_hash: b0b366d8c705ea0efe62093bae953e5a From f4a3611e6b295f9527cb3b0b0670e4e88c582a6e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 17:47:36 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +- .../wire_drawdown_request_create_params.rb | 46 ++++++++++------- .../resources/wire_drawdown_requests.rb | 15 ++++-- .../wire_drawdown_request_create_params.rbi | 51 +++++++++++++------ .../resources/wire_drawdown_requests.rbi | 16 +++--- .../wire_drawdown_request_create_params.rbs | 33 ++++++++---- .../resources/wire_drawdown_requests.rbs | 5 +- .../resources/wire_drawdown_requests_test.rb | 2 - 8 files changed, 111 insertions(+), 61 deletions(-) diff --git a/.stats.yml b/.stats.yml index 35b80bba7..31cc203c9 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-e861c5dc0fe5d8ac8a5099eff9f99482ce5510988a1c3dd056f954c7709ae194.yml -openapi_spec_hash: da9c977849121632540be2bb9fa7571b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b232355836603d9dbb0ca86d4a946b458726531675db3fa1c4feeee10ff41011.yml +openapi_spec_hash: e986bdc1f77192e14e9075a7b1eac0f9 config_hash: b0b366d8c705ea0efe62093bae953e5a diff --git a/lib/increase/models/wire_drawdown_request_create_params.rb b/lib/increase/models/wire_drawdown_request_create_params.rb index bfe6adc01..7e1d0cdcb 100644 --- a/lib/increase/models/wire_drawdown_request_create_params.rb +++ b/lib/increase/models/wire_drawdown_request_create_params.rb @@ -31,12 +31,6 @@ class WireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :creditor_name, String - # @!attribute debtor_account_number - # The debtor's account number. - # - # @return [String] - required :debtor_account_number, String - # @!attribute debtor_address # The debtor's address. # @@ -49,19 +43,35 @@ class WireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :debtor_name, String - # @!attribute debtor_routing_number - # The debtor's routing number. - # - # @return [String] - required :debtor_routing_number, String - # @!attribute unstructured_remittance_information # Remittance information the debtor will see as part of the request. # # @return [String] required :unstructured_remittance_information, String - # @!method initialize(account_number_id:, amount:, creditor_address:, creditor_name:, debtor_account_number:, debtor_address:, debtor_name:, debtor_routing_number:, unstructured_remittance_information:, request_options: {}) + # @!attribute debtor_account_number + # The debtor's account number. + # + # @return [String, nil] + optional :debtor_account_number, String + + # @!attribute debtor_external_account_id + # The ID of an External Account to initiate a transfer to. If this parameter is + # provided, `debtor_account_number` and `debtor_routing_number` must be absent. + # + # @return [String, nil] + optional :debtor_external_account_id, String + + # @!attribute debtor_routing_number + # The debtor's routing number. + # + # @return [String, nil] + optional :debtor_routing_number, String + + # @!method initialize(account_number_id:, amount:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, unstructured_remittance_information:, debtor_account_number: nil, debtor_external_account_id: nil, debtor_routing_number: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Increase::Models::WireDrawdownRequestCreateParams} for more details. + # # @param account_number_id [String] The Account Number to which the debtor should send funds. # # @param amount [Integer] The amount requested from the debtor, in USD cents. @@ -70,16 +80,18 @@ class WireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel # # @param creditor_name [String] The creditor's name. # - # @param debtor_account_number [String] The debtor's account number. - # # @param debtor_address [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress] The debtor's address. # # @param debtor_name [String] The debtor's name. # - # @param debtor_routing_number [String] The debtor's routing number. - # # @param unstructured_remittance_information [String] Remittance information the debtor will see as part of the request. # + # @param debtor_account_number [String] The debtor's account number. + # + # @param debtor_external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr + # + # @param debtor_routing_number [String] The debtor's routing number. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] class CreditorAddress < Increase::Internal::Type::BaseModel diff --git a/lib/increase/resources/wire_drawdown_requests.rb b/lib/increase/resources/wire_drawdown_requests.rb index 056f0a0ec..491dc064e 100644 --- a/lib/increase/resources/wire_drawdown_requests.rb +++ b/lib/increase/resources/wire_drawdown_requests.rb @@ -3,9 +3,12 @@ module Increase module Resources class WireDrawdownRequests + # Some parameter documentations has been truncated, see + # {Increase::Models::WireDrawdownRequestCreateParams} for more details. + # # Create a Wire Drawdown Request # - # @overload create(account_number_id:, amount:, creditor_address:, creditor_name:, debtor_account_number:, debtor_address:, debtor_name:, debtor_routing_number:, unstructured_remittance_information:, request_options: {}) + # @overload create(account_number_id:, amount:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, unstructured_remittance_information:, debtor_account_number: nil, debtor_external_account_id: nil, debtor_routing_number: nil, request_options: {}) # # @param account_number_id [String] The Account Number to which the debtor should send funds. # @@ -15,16 +18,18 @@ class WireDrawdownRequests # # @param creditor_name [String] The creditor's name. # - # @param debtor_account_number [String] The debtor's account number. - # # @param debtor_address [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress] The debtor's address. # # @param debtor_name [String] The debtor's name. # - # @param debtor_routing_number [String] The debtor's routing number. - # # @param unstructured_remittance_information [String] Remittance information the debtor will see as part of the request. # + # @param debtor_account_number [String] The debtor's account number. + # + # @param debtor_external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr + # + # @param debtor_routing_number [String] The debtor's routing number. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Increase::Models::WireDrawdownRequest] diff --git a/rbi/increase/models/wire_drawdown_request_create_params.rbi b/rbi/increase/models/wire_drawdown_request_create_params.rbi index 3412bc7c2..dc44a31c1 100644 --- a/rbi/increase/models/wire_drawdown_request_create_params.rbi +++ b/rbi/increase/models/wire_drawdown_request_create_params.rbi @@ -40,10 +40,6 @@ module Increase sig { returns(String) } attr_accessor :creditor_name - # The debtor's account number. - sig { returns(String) } - attr_accessor :debtor_account_number - # The debtor's address. sig { returns(Increase::WireDrawdownRequestCreateParams::DebtorAddress) } attr_reader :debtor_address @@ -60,14 +56,32 @@ module Increase sig { returns(String) } attr_accessor :debtor_name - # The debtor's routing number. - sig { returns(String) } - attr_accessor :debtor_routing_number - # Remittance information the debtor will see as part of the request. sig { returns(String) } attr_accessor :unstructured_remittance_information + # The debtor's account number. + sig { returns(T.nilable(String)) } + attr_reader :debtor_account_number + + sig { params(debtor_account_number: String).void } + attr_writer :debtor_account_number + + # The ID of an External Account to initiate a transfer to. If this parameter is + # provided, `debtor_account_number` and `debtor_routing_number` must be absent. + sig { returns(T.nilable(String)) } + attr_reader :debtor_external_account_id + + sig { params(debtor_external_account_id: String).void } + attr_writer :debtor_external_account_id + + # The debtor's routing number. + sig { returns(T.nilable(String)) } + attr_reader :debtor_routing_number + + sig { params(debtor_routing_number: String).void } + attr_writer :debtor_routing_number + sig do params( account_number_id: String, @@ -75,12 +89,13 @@ module Increase creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress::OrHash, creditor_name: String, - debtor_account_number: String, debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress::OrHash, debtor_name: String, - debtor_routing_number: String, unstructured_remittance_information: String, + debtor_account_number: String, + debtor_external_account_id: String, + debtor_routing_number: String, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end @@ -93,16 +108,19 @@ module Increase creditor_address:, # The creditor's name. creditor_name:, - # The debtor's account number. - debtor_account_number:, # The debtor's address. debtor_address:, # The debtor's name. debtor_name:, - # The debtor's routing number. - debtor_routing_number:, # Remittance information the debtor will see as part of the request. unstructured_remittance_information:, + # The debtor's account number. + debtor_account_number: nil, + # The ID of an External Account to initiate a transfer to. If this parameter is + # provided, `debtor_account_number` and `debtor_routing_number` must be absent. + debtor_external_account_id: nil, + # The debtor's routing number. + debtor_routing_number: nil, request_options: {} ) end @@ -115,12 +133,13 @@ module Increase creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress, creditor_name: String, - debtor_account_number: String, debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress, debtor_name: String, - debtor_routing_number: String, unstructured_remittance_information: String, + debtor_account_number: String, + debtor_external_account_id: String, + debtor_routing_number: String, request_options: Increase::RequestOptions } ) diff --git a/rbi/increase/resources/wire_drawdown_requests.rbi b/rbi/increase/resources/wire_drawdown_requests.rbi index 84ac10540..f8892cf06 100644 --- a/rbi/increase/resources/wire_drawdown_requests.rbi +++ b/rbi/increase/resources/wire_drawdown_requests.rbi @@ -11,12 +11,13 @@ module Increase creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress::OrHash, creditor_name: String, - debtor_account_number: String, debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress::OrHash, debtor_name: String, - debtor_routing_number: String, unstructured_remittance_information: String, + debtor_account_number: String, + debtor_external_account_id: String, + debtor_routing_number: String, request_options: Increase::RequestOptions::OrHash ).returns(Increase::WireDrawdownRequest) end @@ -29,16 +30,19 @@ module Increase creditor_address:, # The creditor's name. creditor_name:, - # The debtor's account number. - debtor_account_number:, # The debtor's address. debtor_address:, # The debtor's name. debtor_name:, - # The debtor's routing number. - debtor_routing_number:, # Remittance information the debtor will see as part of the request. unstructured_remittance_information:, + # The debtor's account number. + debtor_account_number: nil, + # The ID of an External Account to initiate a transfer to. If this parameter is + # provided, `debtor_account_number` and `debtor_routing_number` must be absent. + debtor_external_account_id: nil, + # The debtor's routing number. + debtor_routing_number: nil, request_options: {} ) end diff --git a/sig/increase/models/wire_drawdown_request_create_params.rbs b/sig/increase/models/wire_drawdown_request_create_params.rbs index ccc69775d..91c96b5fe 100644 --- a/sig/increase/models/wire_drawdown_request_create_params.rbs +++ b/sig/increase/models/wire_drawdown_request_create_params.rbs @@ -6,11 +6,12 @@ module Increase amount: Integer, creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress, creditor_name: String, - debtor_account_number: String, debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress, debtor_name: String, - debtor_routing_number: String, - unstructured_remittance_information: String + unstructured_remittance_information: String, + debtor_account_number: String, + debtor_external_account_id: String, + debtor_routing_number: String } & Increase::Internal::Type::request_parameters @@ -26,26 +27,35 @@ module Increase attr_accessor creditor_name: String - attr_accessor debtor_account_number: String - attr_accessor debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress attr_accessor debtor_name: String - attr_accessor debtor_routing_number: String - attr_accessor unstructured_remittance_information: String + attr_reader debtor_account_number: String? + + def debtor_account_number=: (String) -> String + + attr_reader debtor_external_account_id: String? + + def debtor_external_account_id=: (String) -> String + + attr_reader debtor_routing_number: String? + + def debtor_routing_number=: (String) -> String + def initialize: ( account_number_id: String, amount: Integer, creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress, creditor_name: String, - debtor_account_number: String, debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress, debtor_name: String, - debtor_routing_number: String, unstructured_remittance_information: String, + ?debtor_account_number: String, + ?debtor_external_account_id: String, + ?debtor_routing_number: String, ?request_options: Increase::request_opts ) -> void @@ -54,11 +64,12 @@ module Increase amount: Integer, creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress, creditor_name: String, - debtor_account_number: String, debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress, debtor_name: String, - debtor_routing_number: String, unstructured_remittance_information: String, + debtor_account_number: String, + debtor_external_account_id: String, + debtor_routing_number: String, request_options: Increase::RequestOptions } diff --git a/sig/increase/resources/wire_drawdown_requests.rbs b/sig/increase/resources/wire_drawdown_requests.rbs index e3c303ff8..497582e9f 100644 --- a/sig/increase/resources/wire_drawdown_requests.rbs +++ b/sig/increase/resources/wire_drawdown_requests.rbs @@ -6,11 +6,12 @@ module Increase amount: Integer, creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress, creditor_name: String, - debtor_account_number: String, debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress, debtor_name: String, - debtor_routing_number: String, unstructured_remittance_information: String, + ?debtor_account_number: String, + ?debtor_external_account_id: String, + ?debtor_routing_number: String, ?request_options: Increase::request_opts ) -> Increase::WireDrawdownRequest diff --git a/test/increase/resources/wire_drawdown_requests_test.rb b/test/increase/resources/wire_drawdown_requests_test.rb index b0a914120..7d46350b8 100644 --- a/test/increase/resources/wire_drawdown_requests_test.rb +++ b/test/increase/resources/wire_drawdown_requests_test.rb @@ -10,10 +10,8 @@ def test_create_required_params amount: 10_000, creditor_address: {city: "New York", country: "US", line1: "33 Liberty Street"}, creditor_name: "National Phonograph Company", - debtor_account_number: "987654321", debtor_address: {city: "New York", country: "US", line1: "33 Liberty Street"}, debtor_name: "Ian Crease", - debtor_routing_number: "101050001", unstructured_remittance_information: "Invoice 29582" ) From 454e5d0bf756147924acdb4e54610e3287759585 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 17:47:57 +0000 Subject: [PATCH 3/3] release: 1.36.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 44959ac41..f29e96b89 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.35.0" + ".": "1.36.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c2f875bed..417788c58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.36.0 (2025-08-18) + +Full Changelog: [v1.35.0...v1.36.0](https://github.com/Increase/increase-ruby/compare/v1.35.0...v1.36.0) + +### Features + +* **api:** api update ([f4a3611](https://github.com/Increase/increase-ruby/commit/f4a3611e6b295f9527cb3b0b0670e4e88c582a6e)) + ## 1.35.0 (2025-08-15) Full Changelog: [v1.34.0...v1.35.0](https://github.com/Increase/increase-ruby/compare/v1.34.0...v1.35.0) diff --git a/Gemfile.lock b/Gemfile.lock index b7beaad28..6285337b7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.35.0) + increase (1.36.0) connection_pool GEM diff --git a/README.md b/README.md index aff0f1af7..f8107f6fd 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.35.0" +gem "increase", "~> 1.36.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 97a3f2fc1..b9b17de93 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.35.0" + VERSION = "1.36.0" end