From c873f32a202b3db985d36d07a933467c7c45f472 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 23:36:13 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 ++-- lib/increase/models/card_payment.rb | 3 +++ lib/increase/models/declined_transaction.rb | 3 +++ .../models/simulations/card_authorization_create_params.rb | 3 +++ rbi/increase/models/card_payment.rbi | 7 +++++++ rbi/increase/models/declined_transaction.rbi | 7 +++++++ .../simulations/card_authorization_create_params.rbi | 7 +++++++ sig/increase/models/card_payment.rbs | 4 ++++ sig/increase/models/declined_transaction.rbs | 4 ++++ .../simulations/card_authorization_create_params.rbs | 4 ++++ 10 files changed, 44 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 724183797..a7be6ee39 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aacfe98109b9754d30676d3e95714223190bca5543e8060a90d7b946589f1c16.yml -openapi_spec_hash: d6a090b406bd5936e2d939ce9b9e061b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fa06f0029b2f1cf3d611a6cb6c7fabdbf09dba80d0953e49dd4395bbd3bc3107.yml +openapi_spec_hash: 724b6c1c0e7c9e28f35e9ad66e3fe54e config_hash: 97774f946585cecb19181a1817870d0b diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index dc4fe460d..08bfef516 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -2186,6 +2186,9 @@ module Reason # The transaction was declined because the 3DS authentication failed. FAILED_3DS_AUTHENTICATION = :failed_3ds_authentication + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING = :suspected_card_testing + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD = :suspected_fraud diff --git a/lib/increase/models/declined_transaction.rb b/lib/increase/models/declined_transaction.rb index 4c1806ef2..de867df4f 100644 --- a/lib/increase/models/declined_transaction.rb +++ b/lib/increase/models/declined_transaction.rb @@ -1098,6 +1098,9 @@ module Reason # The transaction was declined because the 3DS authentication failed. FAILED_3DS_AUTHENTICATION = :failed_3ds_authentication + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING = :suspected_card_testing + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD = :suspected_fraud diff --git a/lib/increase/models/simulations/card_authorization_create_params.rb b/lib/increase/models/simulations/card_authorization_create_params.rb index 019ff05e2..dce1dab37 100644 --- a/lib/increase/models/simulations/card_authorization_create_params.rb +++ b/lib/increase/models/simulations/card_authorization_create_params.rb @@ -222,6 +222,9 @@ module DeclineReason # The transaction was declined because the 3DS authentication failed. FAILED_3DS_AUTHENTICATION = :failed_3ds_authentication + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING = :suspected_card_testing + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD = :suspected_fraud diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index 54d303b7e..ab1449b5b 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -4151,6 +4151,13 @@ module Increase Increase::CardPayment::Element::CardDecline::Reason::TaggedSymbol ) + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING = + T.let( + :suspected_card_testing, + Increase::CardPayment::Element::CardDecline::Reason::TaggedSymbol + ) + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD = T.let( diff --git a/rbi/increase/models/declined_transaction.rbi b/rbi/increase/models/declined_transaction.rbi index 5956893d8..bd7343ff5 100644 --- a/rbi/increase/models/declined_transaction.rbi +++ b/rbi/increase/models/declined_transaction.rbi @@ -2066,6 +2066,13 @@ module Increase Increase::DeclinedTransaction::Source::CardDecline::Reason::TaggedSymbol ) + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING = + T.let( + :suspected_card_testing, + Increase::DeclinedTransaction::Source::CardDecline::Reason::TaggedSymbol + ) + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD = T.let( diff --git a/rbi/increase/models/simulations/card_authorization_create_params.rbi b/rbi/increase/models/simulations/card_authorization_create_params.rbi index fde5de9ba..86b579589 100644 --- a/rbi/increase/models/simulations/card_authorization_create_params.rbi +++ b/rbi/increase/models/simulations/card_authorization_create_params.rbi @@ -418,6 +418,13 @@ module Increase Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::TaggedSymbol ) + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING = + T.let( + :suspected_card_testing, + Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::TaggedSymbol + ) + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD = T.let( diff --git a/sig/increase/models/card_payment.rbs b/sig/increase/models/card_payment.rbs index 0010b8ab9..dc596e902 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -1628,6 +1628,7 @@ module Increase | :invalid_physical_card | :missing_original_authorization | :failed_3ds_authentication + | :suspected_card_testing | :suspected_fraud module Reason @@ -1687,6 +1688,9 @@ module Increase # The transaction was declined because the 3DS authentication failed. FAILED_3DS_AUTHENTICATION: :failed_3ds_authentication + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING: :suspected_card_testing + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD: :suspected_fraud diff --git a/sig/increase/models/declined_transaction.rbs b/sig/increase/models/declined_transaction.rbs index b5f7221e0..c20530769 100644 --- a/sig/increase/models/declined_transaction.rbs +++ b/sig/increase/models/declined_transaction.rbs @@ -822,6 +822,7 @@ module Increase | :invalid_physical_card | :missing_original_authorization | :failed_3ds_authentication + | :suspected_card_testing | :suspected_fraud module Reason @@ -881,6 +882,9 @@ module Increase # The transaction was declined because the 3DS authentication failed. FAILED_3DS_AUTHENTICATION: :failed_3ds_authentication + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING: :suspected_card_testing + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD: :suspected_fraud diff --git a/sig/increase/models/simulations/card_authorization_create_params.rbs b/sig/increase/models/simulations/card_authorization_create_params.rbs index 17035289c..584fc7a49 100644 --- a/sig/increase/models/simulations/card_authorization_create_params.rbs +++ b/sig/increase/models/simulations/card_authorization_create_params.rbs @@ -160,6 +160,7 @@ module Increase | :invalid_physical_card | :missing_original_authorization | :failed_3ds_authentication + | :suspected_card_testing | :suspected_fraud module DeclineReason @@ -219,6 +220,9 @@ module Increase # The transaction was declined because the 3DS authentication failed. FAILED_3DS_AUTHENTICATION: :failed_3ds_authentication + # The transaction was suspected to be used by a card tester to test for valid card numbers. + SUSPECTED_CARD_TESTING: :suspected_card_testing + # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information. SUSPECTED_FRAUD: :suspected_fraud From 2e576426eaf44efb61af1d5012820b83ed36d059 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:14:20 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/wire_drawdown_request.rb | 262 ++++++++----- .../wire_drawdown_request_create_params.rb | 237 +++++++---- .../resources/wire_drawdown_requests.rb | 31 +- rbi/increase/models/wire_drawdown_request.rbi | 334 +++++++++++----- .../wire_drawdown_request_create_params.rbi | 367 ++++++++++++------ .../resources/wire_drawdown_requests.rbi | 68 ++-- sig/increase/models/wire_drawdown_request.rbs | 174 ++++++--- .../wire_drawdown_request_create_params.rbs | 184 ++++++--- .../resources/wire_drawdown_requests.rbs | 18 +- .../resources/wire_drawdown_requests_test.rb | 71 ++-- 11 files changed, 1135 insertions(+), 615 deletions(-) diff --git a/.stats.yml b/.stats.yml index a7be6ee39..327b8df67 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fa06f0029b2f1cf3d611a6cb6c7fabdbf09dba80d0953e49dd4395bbd3bc3107.yml -openapi_spec_hash: 724b6c1c0e7c9e28f35e9ad66e3fe54e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e25bdcd9c9cd987962f1507200b619dc7c32f91b940e5ca9110f24bdb294b14a.yml +openapi_spec_hash: 693a205b039e410d9a6b49a5b0ccc72c config_hash: 97774f946585cecb19181a1817870d0b diff --git a/lib/increase/models/wire_drawdown_request.rb b/lib/increase/models/wire_drawdown_request.rb index 09ccf5dd3..5313b82d9 100644 --- a/lib/increase/models/wire_drawdown_request.rb +++ b/lib/increase/models/wire_drawdown_request.rb @@ -11,8 +11,8 @@ class WireDrawdownRequest < Increase::Internal::Type::BaseModel required :id, String # @!attribute account_number_id - # The Account Number to which the recipient of this request is being requested to - # send funds. + # The Account Number to which the debtor—the recipient of this request—is being + # requested to send funds. # # @return [String] required :account_number_id, String @@ -30,6 +30,18 @@ class WireDrawdownRequest < Increase::Internal::Type::BaseModel # @return [Time] required :created_at, Time + # @!attribute creditor_address + # The creditor's address. + # + # @return [Increase::Models::WireDrawdownRequest::CreditorAddress] + required :creditor_address, -> { Increase::WireDrawdownRequest::CreditorAddress } + + # @!attribute creditor_name + # The creditor's name. + # + # @return [String] + required :creditor_name, String + # @!attribute currency # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being # requested. Will always be "USD". @@ -37,86 +49,44 @@ class WireDrawdownRequest < Increase::Internal::Type::BaseModel # @return [String] required :currency, String - # @!attribute fulfillment_inbound_wire_transfer_id - # If the recipient fulfills the drawdown request by sending funds, then this will - # be the identifier of the corresponding Transaction. - # - # @return [String, nil] - required :fulfillment_inbound_wire_transfer_id, String, nil?: true - - # @!attribute idempotency_key - # The idempotency key you chose for this object. This value is unique across - # Increase and is used to ensure that a request is only processed once. Learn more - # about [idempotency](https://increase.com/documentation/idempotency-keys). - # - # @return [String, nil] - required :idempotency_key, String, nil?: true - - # @!attribute message_to_recipient - # The message the recipient will see as part of the drawdown request. + # @!attribute debtor_account_number + # The debtor's account number. # # @return [String] - required :message_to_recipient, String - - # @!attribute originator_address_line1 - # The originator's address line 1. - # - # @return [String, nil] - required :originator_address_line1, String, nil?: true - - # @!attribute originator_address_line2 - # The originator's address line 2. - # - # @return [String, nil] - required :originator_address_line2, String, nil?: true - - # @!attribute originator_address_line3 - # The originator's address line 3. - # - # @return [String, nil] - required :originator_address_line3, String, nil?: true + required :debtor_account_number, String - # @!attribute originator_name - # The originator's name. + # @!attribute debtor_address + # The debtor's address. # - # @return [String, nil] - required :originator_name, String, nil?: true + # @return [Increase::Models::WireDrawdownRequest::DebtorAddress] + required :debtor_address, -> { Increase::WireDrawdownRequest::DebtorAddress } - # @!attribute recipient_account_number - # The drawdown request's recipient's account number. + # @!attribute debtor_name + # The debtor's name. # # @return [String] - required :recipient_account_number, String + required :debtor_name, String - # @!attribute recipient_address_line1 - # Line 1 of the drawdown request's recipient's address. + # @!attribute debtor_routing_number + # The debtor's routing number. # - # @return [String, nil] - required :recipient_address_line1, String, nil?: true - - # @!attribute recipient_address_line2 - # Line 2 of the drawdown request's recipient's address. - # - # @return [String, nil] - required :recipient_address_line2, String, nil?: true + # @return [String] + required :debtor_routing_number, String - # @!attribute recipient_address_line3 - # Line 3 of the drawdown request's recipient's address. + # @!attribute fulfillment_inbound_wire_transfer_id + # If the recipient fulfills the drawdown request by sending funds, then this will + # be the identifier of the corresponding Transaction. # # @return [String, nil] - required :recipient_address_line3, String, nil?: true + required :fulfillment_inbound_wire_transfer_id, String, nil?: true - # @!attribute recipient_name - # The drawdown request's recipient's name. + # @!attribute idempotency_key + # The idempotency key you chose for this object. This value is unique across + # Increase and is used to ensure that a request is only processed once. Learn more + # about [idempotency](https://increase.com/documentation/idempotency-keys). # # @return [String, nil] - required :recipient_name, String, nil?: true - - # @!attribute recipient_routing_number - # The drawdown request's recipient's routing number. - # - # @return [String] - required :recipient_routing_number, String + required :idempotency_key, String, nil?: true # @!attribute status # The lifecycle status of the drawdown request. @@ -138,7 +108,13 @@ class WireDrawdownRequest < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::WireDrawdownRequest::Type] required :type, enum: -> { Increase::WireDrawdownRequest::Type } - # @!method initialize(id:, account_number_id:, amount:, created_at:, currency:, fulfillment_inbound_wire_transfer_id:, idempotency_key:, message_to_recipient:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, recipient_account_number:, recipient_address_line1:, recipient_address_line2:, recipient_address_line3:, recipient_name:, recipient_routing_number:, status:, submission:, type:) + # @!attribute unstructured_remittance_information + # Remittance information the debtor will see as part of the drawdown request. + # + # @return [String] + required :unstructured_remittance_information, String + + # @!method initialize(id:, account_number_id:, amount:, created_at:, creditor_address:, creditor_name:, currency:, debtor_account_number:, debtor_address:, debtor_name:, debtor_routing_number:, fulfillment_inbound_wire_transfer_id:, idempotency_key:, status:, submission:, type:, unstructured_remittance_information:) # Some parameter documentations has been truncated, see # {Increase::Models::WireDrawdownRequest} for more details. # @@ -151,45 +127,155 @@ class WireDrawdownRequest < Increase::Internal::Type::BaseModel # # @param id [String] The Wire drawdown request identifier. # - # @param account_number_id [String] The Account Number to which the recipient of this request is being requested to + # @param account_number_id [String] The Account Number to which the debtor—the recipient of this request—is being re # # @param amount [Integer] The amount being requested in cents. # # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th # - # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being - # - # @param fulfillment_inbound_wire_transfer_id [String, nil] If the recipient fulfills the drawdown request by sending funds, then this will - # - # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre - # - # @param message_to_recipient [String] The message the recipient will see as part of the drawdown request. + # @param creditor_address [Increase::Models::WireDrawdownRequest::CreditorAddress] The creditor's address. # - # @param originator_address_line1 [String, nil] The originator's address line 1. + # @param creditor_name [String] The creditor's name. # - # @param originator_address_line2 [String, nil] The originator's address line 2. - # - # @param originator_address_line3 [String, nil] The originator's address line 3. - # - # @param originator_name [String, nil] The originator's name. + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being # - # @param recipient_account_number [String] The drawdown request's recipient's account number. + # @param debtor_account_number [String] The debtor's account number. # - # @param recipient_address_line1 [String, nil] Line 1 of the drawdown request's recipient's address. + # @param debtor_address [Increase::Models::WireDrawdownRequest::DebtorAddress] The debtor's address. # - # @param recipient_address_line2 [String, nil] Line 2 of the drawdown request's recipient's address. + # @param debtor_name [String] The debtor's name. # - # @param recipient_address_line3 [String, nil] Line 3 of the drawdown request's recipient's address. + # @param debtor_routing_number [String] The debtor's routing number. # - # @param recipient_name [String, nil] The drawdown request's recipient's name. + # @param fulfillment_inbound_wire_transfer_id [String, nil] If the recipient fulfills the drawdown request by sending funds, then this will # - # @param recipient_routing_number [String] The drawdown request's recipient's routing number. + # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre # # @param status [Symbol, Increase::Models::WireDrawdownRequest::Status] The lifecycle status of the drawdown request. # # @param submission [Increase::Models::WireDrawdownRequest::Submission, nil] After the drawdown request is submitted to Fedwire, this will contain supplement # # @param type [Symbol, Increase::Models::WireDrawdownRequest::Type] A constant representing the object's type. For this resource it will always be ` + # + # @param unstructured_remittance_information [String] Remittance information the debtor will see as part of the drawdown request. + + # @see Increase::Models::WireDrawdownRequest#creditor_address + class CreditorAddress < Increase::Internal::Type::BaseModel + # @!attribute city + # The city, district, town, or village of the address. + # + # @return [String] + required :city, String + + # @!attribute country + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + # + # @return [String] + required :country, String + + # @!attribute line1 + # The first line of the address. + # + # @return [String] + required :line1, String + + # @!attribute line2 + # The second line of the address. + # + # @return [String, nil] + required :line2, String, nil?: true + + # @!attribute postal_code + # The ZIP code of the address. + # + # @return [String, nil] + required :postal_code, String, nil?: true + + # @!attribute state + # The address state. + # + # @return [String, nil] + required :state, String, nil?: true + + # @!method initialize(city:, country:, line1:, line2:, postal_code:, state:) + # Some parameter documentations has been truncated, see + # {Increase::Models::WireDrawdownRequest::CreditorAddress} for more details. + # + # The creditor's address. + # + # @param city [String] The city, district, town, or village of the address. + # + # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp + # + # @param line1 [String] The first line of the address. + # + # @param line2 [String, nil] The second line of the address. + # + # @param postal_code [String, nil] The ZIP code of the address. + # + # @param state [String, nil] The address state. + end + + # @see Increase::Models::WireDrawdownRequest#debtor_address + class DebtorAddress < Increase::Internal::Type::BaseModel + # @!attribute city + # The city, district, town, or village of the address. + # + # @return [String] + required :city, String + + # @!attribute country + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + # + # @return [String] + required :country, String + + # @!attribute line1 + # The first line of the address. + # + # @return [String] + required :line1, String + + # @!attribute line2 + # The second line of the address. + # + # @return [String, nil] + required :line2, String, nil?: true + + # @!attribute postal_code + # The ZIP code of the address. + # + # @return [String, nil] + required :postal_code, String, nil?: true + + # @!attribute state + # The address state. + # + # @return [String, nil] + required :state, String, nil?: true + + # @!method initialize(city:, country:, line1:, line2:, postal_code:, state:) + # Some parameter documentations has been truncated, see + # {Increase::Models::WireDrawdownRequest::DebtorAddress} for more details. + # + # The debtor's address. + # + # @param city [String] The city, district, town, or village of the address. + # + # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp + # + # @param line1 [String] The first line of the address. + # + # @param line2 [String, nil] The second line of the address. + # + # @param postal_code [String, nil] The ZIP code of the address. + # + # @param state [String, nil] The address state. + end # The lifecycle status of the drawdown request. # diff --git a/lib/increase/models/wire_drawdown_request_create_params.rb b/lib/increase/models/wire_drawdown_request_create_params.rb index 73983a881..bfe6adc01 100644 --- a/lib/increase/models/wire_drawdown_request_create_params.rb +++ b/lib/increase/models/wire_drawdown_request_create_params.rb @@ -8,122 +8,197 @@ class WireDrawdownRequestCreateParams < Increase::Internal::Type::BaseModel include Increase::Internal::Type::RequestParameters # @!attribute account_number_id - # The Account Number to which the recipient should send funds. + # The Account Number to which the debtor should send funds. # # @return [String] required :account_number_id, String # @!attribute amount - # The amount requested from the recipient, in USD cents. + # The amount requested from the debtor, in USD cents. # # @return [Integer] required :amount, Integer - # @!attribute message_to_recipient - # A message the recipient will see as part of the request. + # @!attribute creditor_address + # The creditor's address. # - # @return [String] - required :message_to_recipient, String - - # @!attribute recipient_account_number - # The drawdown request's recipient's account number. - # - # @return [String] - required :recipient_account_number, String + # @return [Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress] + required :creditor_address, -> { Increase::WireDrawdownRequestCreateParams::CreditorAddress } - # @!attribute recipient_name - # The drawdown request's recipient's name. + # @!attribute creditor_name + # The creditor's name. # # @return [String] - required :recipient_name, String + required :creditor_name, String - # @!attribute recipient_routing_number - # The drawdown request's recipient's routing number. + # @!attribute debtor_account_number + # The debtor's account number. # # @return [String] - required :recipient_routing_number, String - - # @!attribute originator_address_line1 - # The drawdown request originator's address line 1. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - # - # @return [String, nil] - optional :originator_address_line1, String - - # @!attribute originator_address_line2 - # The drawdown request originator's address line 2. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - # - # @return [String, nil] - optional :originator_address_line2, String + required :debtor_account_number, String - # @!attribute originator_address_line3 - # The drawdown request originator's address line 3. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. + # @!attribute debtor_address + # The debtor's address. # - # @return [String, nil] - optional :originator_address_line3, String + # @return [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress] + required :debtor_address, -> { Increase::WireDrawdownRequestCreateParams::DebtorAddress } - # @!attribute originator_name - # The drawdown request originator's name. This is only necessary if you're - # requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. + # @!attribute debtor_name + # The debtor's name. # - # @return [String, nil] - optional :originator_name, String - - # @!attribute recipient_address_line1 - # Line 1 of the drawdown request's recipient's address. - # - # @return [String, nil] - optional :recipient_address_line1, String + # @return [String] + required :debtor_name, String - # @!attribute recipient_address_line2 - # Line 2 of the drawdown request's recipient's address. + # @!attribute debtor_routing_number + # The debtor's routing number. # - # @return [String, nil] - optional :recipient_address_line2, String + # @return [String] + required :debtor_routing_number, String - # @!attribute recipient_address_line3 - # Line 3 of the drawdown request's recipient's address. + # @!attribute unstructured_remittance_information + # Remittance information the debtor will see as part of the request. # - # @return [String, nil] - optional :recipient_address_line3, String + # @return [String] + required :unstructured_remittance_information, String - # @!method initialize(account_number_id:, amount:, message_to_recipient:, recipient_account_number:, recipient_name:, recipient_routing_number:, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, recipient_address_line1: nil, recipient_address_line2: nil, recipient_address_line3: 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 recipient should send funds. - # - # @param amount [Integer] The amount requested from the recipient, in USD cents. - # - # @param message_to_recipient [String] A message the recipient will see as part of the request. + # @!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: {}) + # @param account_number_id [String] The Account Number to which the debtor should send funds. # - # @param recipient_account_number [String] The drawdown request's recipient's account number. + # @param amount [Integer] The amount requested from the debtor, in USD cents. # - # @param recipient_name [String] The drawdown request's recipient's name. + # @param creditor_address [Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress] The creditor's address. # - # @param recipient_routing_number [String] The drawdown request's recipient's routing number. + # @param creditor_name [String] The creditor's name. # - # @param originator_address_line1 [String] The drawdown request originator's address line 1. This is only necessary if you' + # @param debtor_account_number [String] The debtor's account number. # - # @param originator_address_line2 [String] The drawdown request originator's address line 2. This is only necessary if you' + # @param debtor_address [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress] The debtor's address. # - # @param originator_address_line3 [String] The drawdown request originator's address line 3. This is only necessary if you' + # @param debtor_name [String] The debtor's name. # - # @param originator_name [String] The drawdown request originator's name. This is only necessary if you're request + # @param debtor_routing_number [String] The debtor's routing number. # - # @param recipient_address_line1 [String] Line 1 of the drawdown request's recipient's address. - # - # @param recipient_address_line2 [String] Line 2 of the drawdown request's recipient's address. - # - # @param recipient_address_line3 [String] Line 3 of the drawdown request's recipient's address. + # @param unstructured_remittance_information [String] Remittance information the debtor will see as part of the request. # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + + class CreditorAddress < Increase::Internal::Type::BaseModel + # @!attribute city + # The city, district, town, or village of the address. + # + # @return [String] + required :city, String + + # @!attribute country + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + # + # @return [String] + required :country, String + + # @!attribute line1 + # The first line of the address. This is usually the street number and street. + # + # @return [String] + required :line1, String + + # @!attribute line2 + # The second line of the address. This might be the floor or room number. + # + # @return [String, nil] + optional :line2, String + + # @!attribute postal_code + # The ZIP code of the address. + # + # @return [String, nil] + optional :postal_code, String + + # @!attribute state + # The address state. + # + # @return [String, nil] + optional :state, String + + # @!method initialize(city:, country:, line1:, line2: nil, postal_code: nil, state: nil) + # Some parameter documentations has been truncated, see + # {Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress} for more + # details. + # + # The creditor's address. + # + # @param city [String] The city, district, town, or village of the address. + # + # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp + # + # @param line1 [String] The first line of the address. This is usually the street number and street. + # + # @param line2 [String] The second line of the address. This might be the floor or room number. + # + # @param postal_code [String] The ZIP code of the address. + # + # @param state [String] The address state. + end + + class DebtorAddress < Increase::Internal::Type::BaseModel + # @!attribute city + # The city, district, town, or village of the address. + # + # @return [String] + required :city, String + + # @!attribute country + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + # + # @return [String] + required :country, String + + # @!attribute line1 + # The first line of the address. This is usually the street number and street. + # + # @return [String] + required :line1, String + + # @!attribute line2 + # The second line of the address. This might be the floor or room number. + # + # @return [String, nil] + optional :line2, String + + # @!attribute postal_code + # The ZIP code of the address. + # + # @return [String, nil] + optional :postal_code, String + + # @!attribute state + # The address state. + # + # @return [String, nil] + optional :state, String + + # @!method initialize(city:, country:, line1:, line2: nil, postal_code: nil, state: nil) + # Some parameter documentations has been truncated, see + # {Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress} for more + # details. + # + # The debtor's address. + # + # @param city [String] The city, district, town, or village of the address. + # + # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp + # + # @param line1 [String] The first line of the address. This is usually the street number and street. + # + # @param line2 [String] The second line of the address. This might be the floor or room number. + # + # @param postal_code [String] The ZIP code of the address. + # + # @param state [String] The address state. + end end end end diff --git a/lib/increase/resources/wire_drawdown_requests.rb b/lib/increase/resources/wire_drawdown_requests.rb index 52e3ac137..056f0a0ec 100644 --- a/lib/increase/resources/wire_drawdown_requests.rb +++ b/lib/increase/resources/wire_drawdown_requests.rb @@ -3,38 +3,27 @@ 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:, message_to_recipient:, recipient_account_number:, recipient_name:, recipient_routing_number:, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, recipient_address_line1: nil, recipient_address_line2: nil, recipient_address_line3: nil, request_options: {}) - # - # @param account_number_id [String] The Account Number to which the recipient should send funds. - # - # @param amount [Integer] The amount requested from the recipient, in USD cents. - # - # @param message_to_recipient [String] A message the recipient will see as part of the request. - # - # @param recipient_account_number [String] The drawdown request's recipient's account number. + # @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: {}) # - # @param recipient_name [String] The drawdown request's recipient's name. + # @param account_number_id [String] The Account Number to which the debtor should send funds. # - # @param recipient_routing_number [String] The drawdown request's recipient's routing number. + # @param amount [Integer] The amount requested from the debtor, in USD cents. # - # @param originator_address_line1 [String] The drawdown request originator's address line 1. This is only necessary if you' + # @param creditor_address [Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress] The creditor's address. # - # @param originator_address_line2 [String] The drawdown request originator's address line 2. This is only necessary if you' + # @param creditor_name [String] The creditor's name. # - # @param originator_address_line3 [String] The drawdown request originator's address line 3. This is only necessary if you' + # @param debtor_account_number [String] The debtor's account number. # - # @param originator_name [String] The drawdown request originator's name. This is only necessary if you're request + # @param debtor_address [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress] The debtor's address. # - # @param recipient_address_line1 [String] Line 1 of the drawdown request's recipient's address. + # @param debtor_name [String] The debtor's name. # - # @param recipient_address_line2 [String] Line 2 of the drawdown request's recipient's address. + # @param debtor_routing_number [String] The debtor's routing number. # - # @param recipient_address_line3 [String] Line 3 of the drawdown request's recipient's address. + # @param unstructured_remittance_information [String] Remittance information the debtor will see as part of the request. # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # diff --git a/rbi/increase/models/wire_drawdown_request.rbi b/rbi/increase/models/wire_drawdown_request.rbi index 2ee3958fd..c212c346d 100644 --- a/rbi/increase/models/wire_drawdown_request.rbi +++ b/rbi/increase/models/wire_drawdown_request.rbi @@ -12,8 +12,8 @@ module Increase sig { returns(String) } attr_accessor :id - # The Account Number to which the recipient of this request is being requested to - # send funds. + # The Account Number to which the debtor—the recipient of this request—is being + # requested to send funds. sig { returns(String) } attr_accessor :account_number_id @@ -26,65 +26,60 @@ module Increase sig { returns(Time) } attr_accessor :created_at + # The creditor's address. + sig { returns(Increase::WireDrawdownRequest::CreditorAddress) } + attr_reader :creditor_address + + sig do + params( + creditor_address: + Increase::WireDrawdownRequest::CreditorAddress::OrHash + ).void + end + attr_writer :creditor_address + + # The creditor's name. + sig { returns(String) } + attr_accessor :creditor_name + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being # requested. Will always be "USD". sig { returns(String) } attr_accessor :currency - # If the recipient fulfills the drawdown request by sending funds, then this will - # be the identifier of the corresponding Transaction. - sig { returns(T.nilable(String)) } - attr_accessor :fulfillment_inbound_wire_transfer_id - - # The idempotency key you chose for this object. This value is unique across - # Increase and is used to ensure that a request is only processed once. Learn more - # about [idempotency](https://increase.com/documentation/idempotency-keys). - sig { returns(T.nilable(String)) } - attr_accessor :idempotency_key - - # The message the recipient will see as part of the drawdown request. + # The debtor's account number. sig { returns(String) } - attr_accessor :message_to_recipient + attr_accessor :debtor_account_number - # The originator's address line 1. - sig { returns(T.nilable(String)) } - attr_accessor :originator_address_line1 + # The debtor's address. + sig { returns(Increase::WireDrawdownRequest::DebtorAddress) } + attr_reader :debtor_address - # The originator's address line 2. - sig { returns(T.nilable(String)) } - attr_accessor :originator_address_line2 - - # The originator's address line 3. - sig { returns(T.nilable(String)) } - attr_accessor :originator_address_line3 - - # The originator's name. - sig { returns(T.nilable(String)) } - attr_accessor :originator_name + sig do + params( + debtor_address: Increase::WireDrawdownRequest::DebtorAddress::OrHash + ).void + end + attr_writer :debtor_address - # The drawdown request's recipient's account number. + # The debtor's name. sig { returns(String) } - attr_accessor :recipient_account_number + attr_accessor :debtor_name - # Line 1 of the drawdown request's recipient's address. - sig { returns(T.nilable(String)) } - attr_accessor :recipient_address_line1 - - # Line 2 of the drawdown request's recipient's address. - sig { returns(T.nilable(String)) } - attr_accessor :recipient_address_line2 + # The debtor's routing number. + sig { returns(String) } + attr_accessor :debtor_routing_number - # Line 3 of the drawdown request's recipient's address. + # If the recipient fulfills the drawdown request by sending funds, then this will + # be the identifier of the corresponding Transaction. sig { returns(T.nilable(String)) } - attr_accessor :recipient_address_line3 + attr_accessor :fulfillment_inbound_wire_transfer_id - # The drawdown request's recipient's name. + # The idempotency key you chose for this object. This value is unique across + # Increase and is used to ensure that a request is only processed once. Learn more + # about [idempotency](https://increase.com/documentation/idempotency-keys). sig { returns(T.nilable(String)) } - attr_accessor :recipient_name - - # The drawdown request's recipient's routing number. - sig { returns(String) } - attr_accessor :recipient_routing_number + attr_accessor :idempotency_key # The lifecycle status of the drawdown request. sig { returns(Increase::WireDrawdownRequest::Status::TaggedSymbol) } @@ -108,6 +103,10 @@ module Increase sig { returns(Increase::WireDrawdownRequest::Type::TaggedSymbol) } attr_accessor :type + # Remittance information the debtor will see as part of the drawdown request. + sig { returns(String) } + attr_accessor :unstructured_remittance_information + # Wire drawdown requests enable you to request that someone else send you a wire. # Because there is nuance to making sure your counterparty's bank processes these # correctly, we ask that you reach out to @@ -120,40 +119,49 @@ module Increase account_number_id: String, amount: Integer, created_at: Time, + creditor_address: + Increase::WireDrawdownRequest::CreditorAddress::OrHash, + creditor_name: String, currency: String, + debtor_account_number: String, + debtor_address: Increase::WireDrawdownRequest::DebtorAddress::OrHash, + debtor_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: T.nilable(String), idempotency_key: T.nilable(String), - message_to_recipient: String, - originator_address_line1: T.nilable(String), - originator_address_line2: T.nilable(String), - originator_address_line3: T.nilable(String), - originator_name: T.nilable(String), - recipient_account_number: String, - recipient_address_line1: T.nilable(String), - recipient_address_line2: T.nilable(String), - recipient_address_line3: T.nilable(String), - recipient_name: T.nilable(String), - recipient_routing_number: String, status: Increase::WireDrawdownRequest::Status::OrSymbol, submission: T.nilable(Increase::WireDrawdownRequest::Submission::OrHash), - type: Increase::WireDrawdownRequest::Type::OrSymbol + type: Increase::WireDrawdownRequest::Type::OrSymbol, + unstructured_remittance_information: String ).returns(T.attached_class) end def self.new( # The Wire drawdown request identifier. id:, - # The Account Number to which the recipient of this request is being requested to - # send funds. + # The Account Number to which the debtor—the recipient of this request—is being + # requested to send funds. account_number_id:, # The amount being requested in cents. amount:, # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the wire drawdown request was created. created_at:, + # The creditor's address. + creditor_address:, + # The creditor's name. + creditor_name:, # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being # requested. Will always be "USD". currency:, + # 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:, # If the recipient fulfills the drawdown request by sending funds, then this will # be the identifier of the corresponding Transaction. fulfillment_inbound_wire_transfer_id:, @@ -161,28 +169,6 @@ module Increase # Increase and is used to ensure that a request is only processed once. Learn more # about [idempotency](https://increase.com/documentation/idempotency-keys). idempotency_key:, - # The message the recipient will see as part of the drawdown request. - message_to_recipient:, - # The originator's address line 1. - originator_address_line1:, - # The originator's address line 2. - originator_address_line2:, - # The originator's address line 3. - originator_address_line3:, - # The originator's name. - originator_name:, - # The drawdown request's recipient's account number. - recipient_account_number:, - # Line 1 of the drawdown request's recipient's address. - recipient_address_line1:, - # Line 2 of the drawdown request's recipient's address. - recipient_address_line2:, - # Line 3 of the drawdown request's recipient's address. - recipient_address_line3:, - # The drawdown request's recipient's name. - recipient_name:, - # The drawdown request's recipient's routing number. - recipient_routing_number:, # The lifecycle status of the drawdown request. status:, # After the drawdown request is submitted to Fedwire, this will contain @@ -190,7 +176,9 @@ module Increase submission:, # A constant representing the object's type. For this resource it will always be # `wire_drawdown_request`. - type: + type:, + # Remittance information the debtor will see as part of the drawdown request. + unstructured_remittance_information: ) end @@ -201,29 +189,185 @@ module Increase 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_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: T.nilable(String), idempotency_key: T.nilable(String), - message_to_recipient: String, - originator_address_line1: T.nilable(String), - originator_address_line2: T.nilable(String), - originator_address_line3: T.nilable(String), - originator_name: T.nilable(String), - recipient_account_number: String, - recipient_address_line1: T.nilable(String), - recipient_address_line2: T.nilable(String), - recipient_address_line3: T.nilable(String), - recipient_name: T.nilable(String), - recipient_routing_number: String, status: Increase::WireDrawdownRequest::Status::TaggedSymbol, submission: T.nilable(Increase::WireDrawdownRequest::Submission), - type: Increase::WireDrawdownRequest::Type::TaggedSymbol + type: Increase::WireDrawdownRequest::Type::TaggedSymbol, + unstructured_remittance_information: String } ) end def to_hash end + class CreditorAddress < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireDrawdownRequest::CreditorAddress, + Increase::Internal::AnyHash + ) + end + + # The city, district, town, or village of the address. + sig { returns(String) } + attr_accessor :city + + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + sig { returns(String) } + attr_accessor :country + + # The first line of the address. + sig { returns(String) } + attr_accessor :line1 + + # The second line of the address. + sig { returns(T.nilable(String)) } + attr_accessor :line2 + + # The ZIP code of the address. + sig { returns(T.nilable(String)) } + attr_accessor :postal_code + + # The address state. + sig { returns(T.nilable(String)) } + attr_accessor :state + + # The creditor's address. + sig do + params( + city: String, + country: String, + line1: String, + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The city, district, town, or village of the address. + city:, + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + country:, + # The first line of the address. + line1:, + # The second line of the address. + line2:, + # The ZIP code of the address. + postal_code:, + # The address state. + state: + ) + end + + sig do + override.returns( + { + city: String, + country: String, + line1: String, + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end + end + + class DebtorAddress < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireDrawdownRequest::DebtorAddress, + Increase::Internal::AnyHash + ) + end + + # The city, district, town, or village of the address. + sig { returns(String) } + attr_accessor :city + + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + sig { returns(String) } + attr_accessor :country + + # The first line of the address. + sig { returns(String) } + attr_accessor :line1 + + # The second line of the address. + sig { returns(T.nilable(String)) } + attr_accessor :line2 + + # The ZIP code of the address. + sig { returns(T.nilable(String)) } + attr_accessor :postal_code + + # The address state. + sig { returns(T.nilable(String)) } + attr_accessor :state + + # The debtor's address. + sig do + params( + city: String, + country: String, + line1: String, + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The city, district, town, or village of the address. + city:, + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + country:, + # The first line of the address. + line1:, + # The second line of the address. + line2:, + # The ZIP code of the address. + postal_code:, + # The address state. + state: + ) + end + + sig do + override.returns( + { + city: String, + country: String, + line1: String, + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end + end + # The lifecycle status of the drawdown request. module Status extend Increase::Internal::Type::Enum diff --git a/rbi/increase/models/wire_drawdown_request_create_params.rbi b/rbi/increase/models/wire_drawdown_request_create_params.rbi index 4bb93a2c4..3412bc7c2 100644 --- a/rbi/increase/models/wire_drawdown_request_create_params.rbi +++ b/rbi/increase/models/wire_drawdown_request_create_params.rbi @@ -14,140 +14,95 @@ module Increase ) end - # The Account Number to which the recipient should send funds. + # The Account Number to which the debtor should send funds. sig { returns(String) } attr_accessor :account_number_id - # The amount requested from the recipient, in USD cents. + # The amount requested from the debtor, in USD cents. sig { returns(Integer) } attr_accessor :amount - # A message the recipient will see as part of the request. - sig { returns(String) } - attr_accessor :message_to_recipient + # The creditor's address. + sig do + returns(Increase::WireDrawdownRequestCreateParams::CreditorAddress) + end + attr_reader :creditor_address - # The drawdown request's recipient's account number. - sig { returns(String) } - attr_accessor :recipient_account_number + sig do + params( + creditor_address: + Increase::WireDrawdownRequestCreateParams::CreditorAddress::OrHash + ).void + end + attr_writer :creditor_address - # The drawdown request's recipient's name. + # The creditor's name. sig { returns(String) } - attr_accessor :recipient_name + attr_accessor :creditor_name - # The drawdown request's recipient's routing number. + # The debtor's account number. sig { returns(String) } - attr_accessor :recipient_routing_number - - # The drawdown request originator's address line 1. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - sig { returns(T.nilable(String)) } - attr_reader :originator_address_line1 - - sig { params(originator_address_line1: String).void } - attr_writer :originator_address_line1 - - # The drawdown request originator's address line 2. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - sig { returns(T.nilable(String)) } - attr_reader :originator_address_line2 - - sig { params(originator_address_line2: String).void } - attr_writer :originator_address_line2 - - # The drawdown request originator's address line 3. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - sig { returns(T.nilable(String)) } - attr_reader :originator_address_line3 - - sig { params(originator_address_line3: String).void } - attr_writer :originator_address_line3 - - # The drawdown request originator's name. This is only necessary if you're - # requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - sig { returns(T.nilable(String)) } - attr_reader :originator_name - - sig { params(originator_name: String).void } - attr_writer :originator_name + attr_accessor :debtor_account_number - # Line 1 of the drawdown request's recipient's address. - sig { returns(T.nilable(String)) } - attr_reader :recipient_address_line1 + # The debtor's address. + sig { returns(Increase::WireDrawdownRequestCreateParams::DebtorAddress) } + attr_reader :debtor_address - sig { params(recipient_address_line1: String).void } - attr_writer :recipient_address_line1 - - # Line 2 of the drawdown request's recipient's address. - sig { returns(T.nilable(String)) } - attr_reader :recipient_address_line2 + sig do + params( + debtor_address: + Increase::WireDrawdownRequestCreateParams::DebtorAddress::OrHash + ).void + end + attr_writer :debtor_address - sig { params(recipient_address_line2: String).void } - attr_writer :recipient_address_line2 + # The debtor's name. + sig { returns(String) } + attr_accessor :debtor_name - # Line 3 of the drawdown request's recipient's address. - sig { returns(T.nilable(String)) } - attr_reader :recipient_address_line3 + # The debtor's routing number. + sig { returns(String) } + attr_accessor :debtor_routing_number - sig { params(recipient_address_line3: String).void } - attr_writer :recipient_address_line3 + # Remittance information the debtor will see as part of the request. + sig { returns(String) } + attr_accessor :unstructured_remittance_information sig do params( account_number_id: String, amount: Integer, - message_to_recipient: String, - recipient_account_number: String, - recipient_name: String, - recipient_routing_number: String, - originator_address_line1: String, - originator_address_line2: String, - originator_address_line3: String, - originator_name: String, - recipient_address_line1: String, - recipient_address_line2: String, - recipient_address_line3: String, + 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, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( - # The Account Number to which the recipient should send funds. + # The Account Number to which the debtor should send funds. account_number_id:, - # The amount requested from the recipient, in USD cents. + # The amount requested from the debtor, in USD cents. amount:, - # A message the recipient will see as part of the request. - message_to_recipient:, - # The drawdown request's recipient's account number. - recipient_account_number:, - # The drawdown request's recipient's name. - recipient_name:, - # The drawdown request's recipient's routing number. - recipient_routing_number:, - # The drawdown request originator's address line 1. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_address_line1: nil, - # The drawdown request originator's address line 2. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_address_line2: nil, - # The drawdown request originator's address line 3. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_address_line3: nil, - # The drawdown request originator's name. This is only necessary if you're - # requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_name: nil, - # Line 1 of the drawdown request's recipient's address. - recipient_address_line1: nil, - # Line 2 of the drawdown request's recipient's address. - recipient_address_line2: nil, - # Line 3 of the drawdown request's recipient's address. - recipient_address_line3: nil, + # The creditor's address. + 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:, request_options: {} ) end @@ -157,23 +112,199 @@ module Increase { account_number_id: String, amount: Integer, - message_to_recipient: String, - recipient_account_number: String, - recipient_name: String, - recipient_routing_number: String, - originator_address_line1: String, - originator_address_line2: String, - originator_address_line3: String, - originator_name: String, - recipient_address_line1: String, - recipient_address_line2: String, - recipient_address_line3: String, + 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, request_options: Increase::RequestOptions } ) end def to_hash end + + class CreditorAddress < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireDrawdownRequestCreateParams::CreditorAddress, + Increase::Internal::AnyHash + ) + end + + # The city, district, town, or village of the address. + sig { returns(String) } + attr_accessor :city + + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + sig { returns(String) } + attr_accessor :country + + # The first line of the address. This is usually the street number and street. + sig { returns(String) } + attr_accessor :line1 + + # The second line of the address. This might be the floor or room number. + sig { returns(T.nilable(String)) } + attr_reader :line2 + + sig { params(line2: String).void } + attr_writer :line2 + + # The ZIP code of the address. + sig { returns(T.nilable(String)) } + attr_reader :postal_code + + sig { params(postal_code: String).void } + attr_writer :postal_code + + # The address state. + sig { returns(T.nilable(String)) } + attr_reader :state + + sig { params(state: String).void } + attr_writer :state + + # The creditor's address. + sig do + params( + city: String, + country: String, + line1: String, + line2: String, + postal_code: String, + state: String + ).returns(T.attached_class) + end + def self.new( + # The city, district, town, or village of the address. + city:, + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + country:, + # The first line of the address. This is usually the street number and street. + line1:, + # The second line of the address. This might be the floor or room number. + line2: nil, + # The ZIP code of the address. + postal_code: nil, + # The address state. + state: nil + ) + end + + sig do + override.returns( + { + city: String, + country: String, + line1: String, + line2: String, + postal_code: String, + state: String + } + ) + end + def to_hash + end + end + + class DebtorAddress < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireDrawdownRequestCreateParams::DebtorAddress, + Increase::Internal::AnyHash + ) + end + + # The city, district, town, or village of the address. + sig { returns(String) } + attr_accessor :city + + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + sig { returns(String) } + attr_accessor :country + + # The first line of the address. This is usually the street number and street. + sig { returns(String) } + attr_accessor :line1 + + # The second line of the address. This might be the floor or room number. + sig { returns(T.nilable(String)) } + attr_reader :line2 + + sig { params(line2: String).void } + attr_writer :line2 + + # The ZIP code of the address. + sig { returns(T.nilable(String)) } + attr_reader :postal_code + + sig { params(postal_code: String).void } + attr_writer :postal_code + + # The address state. + sig { returns(T.nilable(String)) } + attr_reader :state + + sig { params(state: String).void } + attr_writer :state + + # The debtor's address. + sig do + params( + city: String, + country: String, + line1: String, + line2: String, + postal_code: String, + state: String + ).returns(T.attached_class) + end + def self.new( + # The city, district, town, or village of the address. + city:, + # The two-letter + # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + # the country of the address. + country:, + # The first line of the address. This is usually the street number and street. + line1:, + # The second line of the address. This might be the floor or room number. + line2: nil, + # The ZIP code of the address. + postal_code: nil, + # The address state. + state: nil + ) + end + + sig do + override.returns( + { + city: String, + country: String, + line1: String, + line2: String, + postal_code: String, + state: String + } + ) + end + def to_hash + end + end end end end diff --git a/rbi/increase/resources/wire_drawdown_requests.rbi b/rbi/increase/resources/wire_drawdown_requests.rbi index 6522d13da..84ac10540 100644 --- a/rbi/increase/resources/wire_drawdown_requests.rbi +++ b/rbi/increase/resources/wire_drawdown_requests.rbi @@ -8,55 +8,37 @@ module Increase params( account_number_id: String, amount: Integer, - message_to_recipient: String, - recipient_account_number: String, - recipient_name: String, - recipient_routing_number: String, - originator_address_line1: String, - originator_address_line2: String, - originator_address_line3: String, - originator_name: String, - recipient_address_line1: String, - recipient_address_line2: String, - recipient_address_line3: String, + 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, request_options: Increase::RequestOptions::OrHash ).returns(Increase::WireDrawdownRequest) end def create( - # The Account Number to which the recipient should send funds. + # The Account Number to which the debtor should send funds. account_number_id:, - # The amount requested from the recipient, in USD cents. + # The amount requested from the debtor, in USD cents. amount:, - # A message the recipient will see as part of the request. - message_to_recipient:, - # The drawdown request's recipient's account number. - recipient_account_number:, - # The drawdown request's recipient's name. - recipient_name:, - # The drawdown request's recipient's routing number. - recipient_routing_number:, - # The drawdown request originator's address line 1. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_address_line1: nil, - # The drawdown request originator's address line 2. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_address_line2: nil, - # The drawdown request originator's address line 3. This is only necessary if - # you're requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_address_line3: nil, - # The drawdown request originator's name. This is only necessary if you're - # requesting a payment to a commingled account. Otherwise, we'll use the - # associated entity's details. - originator_name: nil, - # Line 1 of the drawdown request's recipient's address. - recipient_address_line1: nil, - # Line 2 of the drawdown request's recipient's address. - recipient_address_line2: nil, - # Line 3 of the drawdown request's recipient's address. - recipient_address_line3: nil, + # The creditor's address. + 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:, request_options: {} ) end diff --git a/sig/increase/models/wire_drawdown_request.rbs b/sig/increase/models/wire_drawdown_request.rbs index 8a8d5a7d1..39ad406fb 100644 --- a/sig/increase/models/wire_drawdown_request.rbs +++ b/sig/increase/models/wire_drawdown_request.rbs @@ -6,23 +6,19 @@ module Increase 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_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: String?, idempotency_key: String?, - message_to_recipient: String, - :originator_address_line1 => String?, - :originator_address_line2 => String?, - :originator_address_line3 => String?, - originator_name: String?, - recipient_account_number: String, - :recipient_address_line1 => String?, - :recipient_address_line2 => String?, - :recipient_address_line3 => String?, - recipient_name: String?, - recipient_routing_number: String, status: Increase::Models::WireDrawdownRequest::status, submission: Increase::WireDrawdownRequest::Submission?, - type: Increase::Models::WireDrawdownRequest::type_ + type: Increase::Models::WireDrawdownRequest::type_, + unstructured_remittance_information: String } class WireDrawdownRequest < Increase::Internal::Type::BaseModel @@ -34,33 +30,23 @@ module Increase attr_accessor created_at: Time - attr_accessor currency: String - - attr_accessor fulfillment_inbound_wire_transfer_id: String? - - attr_accessor idempotency_key: String? - - attr_accessor message_to_recipient: String - - attr_accessor originator_address_line1: String? - - attr_accessor originator_address_line2: String? + attr_accessor creditor_address: Increase::WireDrawdownRequest::CreditorAddress - attr_accessor originator_address_line3: String? + attr_accessor creditor_name: String - attr_accessor originator_name: String? + attr_accessor currency: String - attr_accessor recipient_account_number: String + attr_accessor debtor_account_number: String - attr_accessor recipient_address_line1: String? + attr_accessor debtor_address: Increase::WireDrawdownRequest::DebtorAddress - attr_accessor recipient_address_line2: String? + attr_accessor debtor_name: String - attr_accessor recipient_address_line3: String? + attr_accessor debtor_routing_number: String - attr_accessor recipient_name: String? + attr_accessor fulfillment_inbound_wire_transfer_id: String? - attr_accessor recipient_routing_number: String + attr_accessor idempotency_key: String? attr_accessor status: Increase::Models::WireDrawdownRequest::status @@ -68,28 +54,26 @@ module Increase attr_accessor type: Increase::Models::WireDrawdownRequest::type_ + attr_accessor unstructured_remittance_information: String + def initialize: ( 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_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: String?, idempotency_key: String?, - message_to_recipient: String, - originator_address_line1: String?, - originator_address_line2: String?, - originator_address_line3: String?, - originator_name: String?, - recipient_account_number: String, - recipient_address_line1: String?, - recipient_address_line2: String?, - recipient_address_line3: String?, - recipient_name: String?, - recipient_routing_number: String, status: Increase::Models::WireDrawdownRequest::status, submission: Increase::WireDrawdownRequest::Submission?, - type: Increase::Models::WireDrawdownRequest::type_ + type: Increase::Models::WireDrawdownRequest::type_, + unstructured_remittance_information: String ) -> void def to_hash: -> { @@ -97,25 +81,105 @@ module Increase 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_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: String?, idempotency_key: String?, - message_to_recipient: String, - :originator_address_line1 => String?, - :originator_address_line2 => String?, - :originator_address_line3 => String?, - originator_name: String?, - recipient_account_number: String, - :recipient_address_line1 => String?, - :recipient_address_line2 => String?, - :recipient_address_line3 => String?, - recipient_name: String?, - recipient_routing_number: String, status: Increase::Models::WireDrawdownRequest::status, submission: Increase::WireDrawdownRequest::Submission?, - type: Increase::Models::WireDrawdownRequest::type_ + type: Increase::Models::WireDrawdownRequest::type_, + unstructured_remittance_information: String } + type creditor_address = + { + city: String, + country: String, + :line1 => String, + :line2 => String?, + postal_code: String?, + state: String? + } + + class CreditorAddress < Increase::Internal::Type::BaseModel + attr_accessor city: String + + attr_accessor country: String + + attr_accessor line1: String + + attr_accessor line2: String? + + attr_accessor postal_code: String? + + attr_accessor state: String? + + def initialize: ( + city: String, + country: String, + line1: String, + line2: String?, + postal_code: String?, + state: String? + ) -> void + + def to_hash: -> { + city: String, + country: String, + :line1 => String, + :line2 => String?, + postal_code: String?, + state: String? + } + end + + type debtor_address = + { + city: String, + country: String, + :line1 => String, + :line2 => String?, + postal_code: String?, + state: String? + } + + class DebtorAddress < Increase::Internal::Type::BaseModel + attr_accessor city: String + + attr_accessor country: String + + attr_accessor line1: String + + attr_accessor line2: String? + + attr_accessor postal_code: String? + + attr_accessor state: String? + + def initialize: ( + city: String, + country: String, + line1: String, + line2: String?, + postal_code: String?, + state: String? + ) -> void + + def to_hash: -> { + city: String, + country: String, + :line1 => String, + :line2 => String?, + postal_code: String?, + state: String? + } + end + type status = :pending_submission | :pending_response | :fulfilled | :refused diff --git a/sig/increase/models/wire_drawdown_request_create_params.rbs b/sig/increase/models/wire_drawdown_request_create_params.rbs index 5acbf7db9..ccc69775d 100644 --- a/sig/increase/models/wire_drawdown_request_create_params.rbs +++ b/sig/increase/models/wire_drawdown_request_create_params.rbs @@ -4,17 +4,13 @@ module Increase { account_number_id: String, amount: Integer, - message_to_recipient: String, - recipient_account_number: String, - recipient_name: String, - recipient_routing_number: String, - :originator_address_line1 => String, - :originator_address_line2 => String, - :originator_address_line3 => String, - originator_name: String, - :recipient_address_line1 => String, - :recipient_address_line2 => String, - :recipient_address_line3 => String + 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 } & Increase::Internal::Type::request_parameters @@ -26,75 +22,141 @@ module Increase attr_accessor amount: Integer - attr_accessor message_to_recipient: String + attr_accessor creditor_address: Increase::WireDrawdownRequestCreateParams::CreditorAddress - attr_accessor recipient_account_number: String + attr_accessor creditor_name: String - attr_accessor recipient_name: String + attr_accessor debtor_account_number: String - attr_accessor recipient_routing_number: String + attr_accessor debtor_address: Increase::WireDrawdownRequestCreateParams::DebtorAddress - attr_reader originator_address_line1: String? + attr_accessor debtor_name: String - def originator_address_line1=: (String) -> String + attr_accessor debtor_routing_number: String - attr_reader originator_address_line2: String? + attr_accessor unstructured_remittance_information: String - def originator_address_line2=: (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, + ?request_options: Increase::request_opts + ) -> void - attr_reader originator_address_line3: String? + def to_hash: -> { + 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, + request_options: Increase::RequestOptions + } - def originator_address_line3=: (String) -> String + type creditor_address = + { + city: String, + country: String, + :line1 => String, + :line2 => String, + postal_code: String, + state: String + } - attr_reader originator_name: String? + class CreditorAddress < Increase::Internal::Type::BaseModel + attr_accessor city: String - def originator_name=: (String) -> String + attr_accessor country: String - attr_reader recipient_address_line1: String? + attr_accessor line1: String - def recipient_address_line1=: (String) -> String + attr_reader line2: String? - attr_reader recipient_address_line2: String? + def line2=: (String) -> String - def recipient_address_line2=: (String) -> String + attr_reader postal_code: String? - attr_reader recipient_address_line3: String? + def postal_code=: (String) -> String - def recipient_address_line3=: (String) -> String + attr_reader state: String? - def initialize: ( - account_number_id: String, - amount: Integer, - message_to_recipient: String, - recipient_account_number: String, - recipient_name: String, - recipient_routing_number: String, - ?originator_address_line1: String, - ?originator_address_line2: String, - ?originator_address_line3: String, - ?originator_name: String, - ?recipient_address_line1: String, - ?recipient_address_line2: String, - ?recipient_address_line3: String, - ?request_options: Increase::request_opts - ) -> void + def state=: (String) -> String - def to_hash: -> { - account_number_id: String, - amount: Integer, - message_to_recipient: String, - recipient_account_number: String, - recipient_name: String, - recipient_routing_number: String, - :originator_address_line1 => String, - :originator_address_line2 => String, - :originator_address_line3 => String, - originator_name: String, - :recipient_address_line1 => String, - :recipient_address_line2 => String, - :recipient_address_line3 => String, - request_options: Increase::RequestOptions - } + def initialize: ( + city: String, + country: String, + line1: String, + ?line2: String, + ?postal_code: String, + ?state: String + ) -> void + + def to_hash: -> { + city: String, + country: String, + :line1 => String, + :line2 => String, + postal_code: String, + state: String + } + end + + type debtor_address = + { + city: String, + country: String, + :line1 => String, + :line2 => String, + postal_code: String, + state: String + } + + class DebtorAddress < Increase::Internal::Type::BaseModel + attr_accessor city: String + + attr_accessor country: String + + attr_accessor line1: String + + attr_reader line2: String? + + def line2=: (String) -> String + + attr_reader postal_code: String? + + def postal_code=: (String) -> String + + attr_reader state: String? + + def state=: (String) -> String + + def initialize: ( + city: String, + country: String, + line1: String, + ?line2: String, + ?postal_code: String, + ?state: String + ) -> void + + def to_hash: -> { + city: String, + country: String, + :line1 => String, + :line2 => String, + postal_code: String, + state: String + } + end end end end diff --git a/sig/increase/resources/wire_drawdown_requests.rbs b/sig/increase/resources/wire_drawdown_requests.rbs index 28e6d6bc2..e3c303ff8 100644 --- a/sig/increase/resources/wire_drawdown_requests.rbs +++ b/sig/increase/resources/wire_drawdown_requests.rbs @@ -4,17 +4,13 @@ module Increase def create: ( account_number_id: String, amount: Integer, - message_to_recipient: String, - recipient_account_number: String, - recipient_name: String, - recipient_routing_number: String, - ?originator_address_line1: String, - ?originator_address_line2: String, - ?originator_address_line3: String, - ?originator_name: String, - ?recipient_address_line1: String, - ?recipient_address_line2: String, - ?recipient_address_line3: String, + 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, ?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 ea9517860..b0a914120 100644 --- a/test/increase/resources/wire_drawdown_requests_test.rb +++ b/test/increase/resources/wire_drawdown_requests_test.rb @@ -8,10 +8,13 @@ def test_create_required_params @increase.wire_drawdown_requests.create( account_number_id: "account_number_v18nkfqm6afpsrvy82b2", amount: 10_000, - message_to_recipient: "Invoice 29582", - recipient_account_number: "987654321", - recipient_name: "Ian Crease", - recipient_routing_number: "101050001" + 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" ) assert_pattern do @@ -24,23 +27,19 @@ def test_create_required_params 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_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: String | nil, idempotency_key: String | nil, - message_to_recipient: String, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, - recipient_account_number: String, - recipient_address_line1: String | nil, - recipient_address_line2: String | nil, - recipient_address_line3: String | nil, - recipient_name: String | nil, - recipient_routing_number: String, status: Increase::WireDrawdownRequest::Status, submission: Increase::WireDrawdownRequest::Submission | nil, - type: Increase::WireDrawdownRequest::Type + type: Increase::WireDrawdownRequest::Type, + unstructured_remittance_information: String } end end @@ -58,23 +57,19 @@ def test_retrieve 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_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: String | nil, idempotency_key: String | nil, - message_to_recipient: String, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, - recipient_account_number: String, - recipient_address_line1: String | nil, - recipient_address_line2: String | nil, - recipient_address_line3: String | nil, - recipient_name: String | nil, - recipient_routing_number: String, status: Increase::WireDrawdownRequest::Status, submission: Increase::WireDrawdownRequest::Submission | nil, - type: Increase::WireDrawdownRequest::Type + type: Increase::WireDrawdownRequest::Type, + unstructured_remittance_information: String } end end @@ -99,23 +94,19 @@ def test_list 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_name: String, + debtor_routing_number: String, fulfillment_inbound_wire_transfer_id: String | nil, idempotency_key: String | nil, - message_to_recipient: String, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, - recipient_account_number: String, - recipient_address_line1: String | nil, - recipient_address_line2: String | nil, - recipient_address_line3: String | nil, - recipient_name: String | nil, - recipient_routing_number: String, status: Increase::WireDrawdownRequest::Status, submission: Increase::WireDrawdownRequest::Submission | nil, - type: Increase::WireDrawdownRequest::Type + type: Increase::WireDrawdownRequest::Type, + unstructured_remittance_information: String } end end From c573b449817226070220cb6951f7330df3be8525 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:14:39 +0000 Subject: [PATCH 3/3] release: 1.10.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c3c95522a..eb4e0dba7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.9.0" + ".": "1.10.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5439cef17..f42e4c961 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.10.0 (2025-07-08) + +Full Changelog: [v1.9.0...v1.10.0](https://github.com/Increase/increase-ruby/compare/v1.9.0...v1.10.0) + +### Features + +* **api:** api update ([2e57642](https://github.com/Increase/increase-ruby/commit/2e576426eaf44efb61af1d5012820b83ed36d059)) +* **api:** api update ([c873f32](https://github.com/Increase/increase-ruby/commit/c873f32a202b3db985d36d07a933467c7c45f472)) + ## 1.9.0 (2025-07-04) Full Changelog: [v1.8.0...v1.9.0](https://github.com/Increase/increase-ruby/compare/v1.8.0...v1.9.0) diff --git a/Gemfile.lock b/Gemfile.lock index 69b726318..86b6e5708 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.9.0) + increase (1.10.0) connection_pool GEM diff --git a/README.md b/README.md index 5c7dd7c6a..14db7c23b 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.9.0" +gem "increase", "~> 1.10.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index e4214dec8..c435242a7 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.9.0" + VERSION = "1.10.0" end