From 87e5fe0c02607735c9e1142f71bfa7f5bd85a610 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 14:07:19 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/wire_transfer.rb | 222 ++++++--- .../models/wire_transfer_create_params.rb | 228 ++++++--- lib/increase/resources/wire_transfers.rb | 22 +- rbi/increase/models/wire_transfer.rbi | 414 +++++++++++++--- .../models/wire_transfer_create_params.rbi | 467 ++++++++++++++---- rbi/increase/resources/wire_transfers.rbi | 42 +- sig/increase/models/wire_transfer.rbs | 173 +++++-- .../models/wire_transfer_create_params.rbs | 216 +++++--- sig/increase/resources/wire_transfers.rbs | 12 +- .../simulations/wire_transfers_test.rb | 22 +- .../increase/resources/wire_transfers_test.rb | 58 +-- 12 files changed, 1327 insertions(+), 553 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6a120e927..9256ec13b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2453598e129a8305006487bc7616f3ee69eb4355a6d3f185dd51404fa8142246.yml -openapi_spec_hash: e0b54d0015d39f9434659d8899bb2706 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7689739a12916f3e4cc15be2e057e78b4ede38202bf4cf5f9358ef10374db9b3.yml +openapi_spec_hash: 39b4a0d5d1441d03ed9de368335d78ec config_hash: fc8a0ae068f2feeac76f728ac6838543 diff --git a/lib/increase/models/wire_transfer.rb b/lib/increase/models/wire_transfer.rb index d1e02f331..5ca1f52b0 100644 --- a/lib/increase/models/wire_transfer.rb +++ b/lib/increase/models/wire_transfer.rb @@ -35,30 +35,6 @@ class WireTransfer < Increase::Internal::Type::BaseModel # @return [Increase::Models::WireTransfer::Approval, nil] required :approval, -> { Increase::WireTransfer::Approval }, nil?: true - # @!attribute beneficiary_address_line1 - # The beneficiary's address line 1. - # - # @return [String, nil] - required :beneficiary_address_line1, String, nil?: true - - # @!attribute beneficiary_address_line2 - # The beneficiary's address line 2. - # - # @return [String, nil] - required :beneficiary_address_line2, String, nil?: true - - # @!attribute beneficiary_address_line3 - # The beneficiary's address line 3. - # - # @return [String, nil] - required :beneficiary_address_line3, String, nil?: true - - # @!attribute beneficiary_name - # The beneficiary's name. - # - # @return [String, nil] - required :beneficiary_name, String, nil?: true - # @!attribute cancellation # If your account requires approvals for transfers and the transfer was not # approved, this will contain details of the cancellation. @@ -79,6 +55,12 @@ class WireTransfer < Increase::Internal::Type::BaseModel # @return [Increase::Models::WireTransfer::CreatedBy, nil] required :created_by, -> { Increase::WireTransfer::CreatedBy }, nil?: true + # @!attribute creditor + # The person or business that is receiving the funds from the transfer. + # + # @return [Increase::Models::WireTransfer::Creditor, nil] + required :creditor, -> { Increase::WireTransfer::Creditor }, nil?: true + # @!attribute currency # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For wire transfers this is always equal to `usd`. @@ -86,6 +68,12 @@ class WireTransfer < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::WireTransfer::Currency] required :currency, enum: -> { Increase::WireTransfer::Currency } + # @!attribute debtor + # The person or business whose funds are being transferred. + # + # @return [Increase::Models::WireTransfer::Debtor, nil] + required :debtor, -> { Increase::WireTransfer::Debtor }, nil?: true + # @!attribute external_account_id # The identifier of the External Account the transfer was made to, if any. # @@ -107,42 +95,12 @@ class WireTransfer < Increase::Internal::Type::BaseModel # @return [String, nil] required :inbound_wire_drawdown_request_id, String, nil?: true - # @!attribute message_to_recipient - # The message that will show on the recipient's bank statement. - # - # @return [String] - required :message_to_recipient, String - # @!attribute network # The transfer's network. # # @return [Symbol, Increase::Models::WireTransfer::Network] required :network, enum: -> { Increase::WireTransfer::Network } - # @!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 - - # @!attribute originator_name - # The originator's name. - # - # @return [String, nil] - required :originator_name, String, nil?: true - # @!attribute pending_transaction_id # The ID for the pending transaction representing the transfer. A pending # transaction is created when the transfer @@ -202,7 +160,7 @@ class WireTransfer < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::WireTransfer::Type] required :type, enum: -> { Increase::WireTransfer::Type } - # @!method initialize(id:, account_id:, account_number:, amount:, approval:, beneficiary_address_line1:, beneficiary_address_line2:, beneficiary_address_line3:, beneficiary_name:, cancellation:, created_at:, created_by:, currency:, external_account_id:, idempotency_key:, inbound_wire_drawdown_request_id:, message_to_recipient:, network:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, pending_transaction_id:, remittance:, reversal:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:) + # @!method initialize(id:, account_id:, account_number:, amount:, approval:, cancellation:, created_at:, created_by:, creditor:, currency:, debtor:, external_account_id:, idempotency_key:, inbound_wire_drawdown_request_id:, network:, pending_transaction_id:, remittance:, reversal:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::WireTransfer} for more details. # @@ -219,40 +177,26 @@ class WireTransfer < Increase::Internal::Type::BaseModel # # @param approval [Increase::Models::WireTransfer::Approval, nil] If your account requires approvals for transfers and the transfer was approved, # - # @param beneficiary_address_line1 [String, nil] The beneficiary's address line 1. - # - # @param beneficiary_address_line2 [String, nil] The beneficiary's address line 2. - # - # @param beneficiary_address_line3 [String, nil] The beneficiary's address line 3. - # - # @param beneficiary_name [String, nil] The beneficiary's name. - # # @param cancellation [Increase::Models::WireTransfer::Cancellation, nil] If your account requires approvals for transfers and the transfer was not approv # # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th # # @param created_by [Increase::Models::WireTransfer::CreatedBy, nil] What object created the transfer, either via the API or the dashboard. # + # @param creditor [Increase::Models::WireTransfer::Creditor, nil] The person or business that is receiving the funds from the transfer. + # # @param currency [Symbol, Increase::Models::WireTransfer::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's c # + # @param debtor [Increase::Models::WireTransfer::Debtor, nil] The person or business whose funds are being transferred. + # # @param external_account_id [String, nil] The identifier of the External Account the transfer was made to, if any. # # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre # # @param inbound_wire_drawdown_request_id [String, nil] The ID of an Inbound Wire Drawdown Request in response to which this transfer wa # - # @param message_to_recipient [String] The message that will show on the recipient's bank statement. - # # @param network [Symbol, Increase::Models::WireTransfer::Network] The transfer's network. # - # @param originator_address_line1 [String, nil] The originator's address line 1. - # - # @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 pending_transaction_id [String, nil] The ID for the pending transaction representing the transfer. A pending transact # # @param remittance [Increase::Models::WireTransfer::Remittance, nil] Remittance information sent with the wire transfer. @@ -426,6 +370,72 @@ class User < Increase::Internal::Type::BaseModel end end + # @see Increase::Models::WireTransfer#creditor + class Creditor < Increase::Internal::Type::BaseModel + # @!attribute address + # The person or business's address. + # + # @return [Increase::Models::WireTransfer::Creditor::Address, nil] + required :address, -> { Increase::WireTransfer::Creditor::Address }, nil?: true + + # @!attribute name + # The person or business's name. + # + # @return [String, nil] + required :name, String, nil?: true + + # @!method initialize(address:, name:) + # The person or business that is receiving the funds from the transfer. + # + # @param address [Increase::Models::WireTransfer::Creditor::Address, nil] The person or business's address. + # + # @param name [String, nil] The person or business's name. + + # @see Increase::Models::WireTransfer::Creditor#address + class Address < Increase::Internal::Type::BaseModel + # @!attribute unstructured + # Unstructured address lines. + # + # @return [Increase::Models::WireTransfer::Creditor::Address::Unstructured, nil] + required :unstructured, -> { Increase::WireTransfer::Creditor::Address::Unstructured }, nil?: true + + # @!method initialize(unstructured:) + # The person or business's address. + # + # @param unstructured [Increase::Models::WireTransfer::Creditor::Address::Unstructured, nil] Unstructured address lines. + + # @see Increase::Models::WireTransfer::Creditor::Address#unstructured + class Unstructured < Increase::Internal::Type::BaseModel + # @!attribute line1 + # The first line. + # + # @return [String, nil] + required :line1, String, nil?: true + + # @!attribute line2 + # The second line. + # + # @return [String, nil] + required :line2, String, nil?: true + + # @!attribute line3 + # The third line. + # + # @return [String, nil] + required :line3, String, nil?: true + + # @!method initialize(line1:, line2:, line3:) + # Unstructured address lines. + # + # @param line1 [String, nil] The first line. + # + # @param line2 [String, nil] The second line. + # + # @param line3 [String, nil] The third line. + end + end + end + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For wire transfers this is always equal to `usd`. # @@ -455,6 +465,72 @@ module Currency # @return [Array] end + # @see Increase::Models::WireTransfer#debtor + class Debtor < Increase::Internal::Type::BaseModel + # @!attribute address + # The person or business's address. + # + # @return [Increase::Models::WireTransfer::Debtor::Address, nil] + required :address, -> { Increase::WireTransfer::Debtor::Address }, nil?: true + + # @!attribute name + # The person or business's name. + # + # @return [String, nil] + required :name, String, nil?: true + + # @!method initialize(address:, name:) + # The person or business whose funds are being transferred. + # + # @param address [Increase::Models::WireTransfer::Debtor::Address, nil] The person or business's address. + # + # @param name [String, nil] The person or business's name. + + # @see Increase::Models::WireTransfer::Debtor#address + class Address < Increase::Internal::Type::BaseModel + # @!attribute unstructured + # Unstructured address lines. + # + # @return [Increase::Models::WireTransfer::Debtor::Address::Unstructured, nil] + required :unstructured, -> { Increase::WireTransfer::Debtor::Address::Unstructured }, nil?: true + + # @!method initialize(unstructured:) + # The person or business's address. + # + # @param unstructured [Increase::Models::WireTransfer::Debtor::Address::Unstructured, nil] Unstructured address lines. + + # @see Increase::Models::WireTransfer::Debtor::Address#unstructured + class Unstructured < Increase::Internal::Type::BaseModel + # @!attribute line1 + # The first line. + # + # @return [String, nil] + required :line1, String, nil?: true + + # @!attribute line2 + # The second line. + # + # @return [String, nil] + required :line2, String, nil?: true + + # @!attribute line3 + # The third line. + # + # @return [String, nil] + required :line3, String, nil?: true + + # @!method initialize(line1:, line2:, line3:) + # Unstructured address lines. + # + # @param line1 [String, nil] The first line. + # + # @param line2 [String, nil] The second line. + # + # @param line3 [String, nil] The third line. + end + end + end + # The transfer's network. # # @see Increase::Models::WireTransfer#network diff --git a/lib/increase/models/wire_transfer_create_params.rb b/lib/increase/models/wire_transfer_create_params.rb index 5ce176d5b..d19b797e7 100644 --- a/lib/increase/models/wire_transfer_create_params.rb +++ b/lib/increase/models/wire_transfer_create_params.rb @@ -19,11 +19,17 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel # @return [Integer] required :amount, Integer - # @!attribute beneficiary_name - # The beneficiary's name. + # @!attribute creditor + # The person or business that is receiving the funds from the transfer. # - # @return [String] - required :beneficiary_name, String + # @return [Increase::Models::WireTransferCreateParams::Creditor] + required :creditor, -> { Increase::WireTransferCreateParams::Creditor } + + # @!attribute remittance + # Additional remittance information related to the wire transfer. + # + # @return [Increase::Models::WireTransferCreateParams::Remittance] + required :remittance, -> { Increase::WireTransferCreateParams::Remittance } # @!attribute account_number # The account number for the destination account. @@ -31,23 +37,13 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :account_number, String - # @!attribute beneficiary_address_line1 - # The beneficiary's address line 1. - # - # @return [String, nil] - optional :beneficiary_address_line1, String - - # @!attribute beneficiary_address_line2 - # The beneficiary's address line 2. + # @!attribute debtor + # The person or business whose funds are being transferred. This is only necessary + # if you're transferring from a commingled account. Otherwise, we'll use the + # associated entity's details. # - # @return [String, nil] - optional :beneficiary_address_line2, String - - # @!attribute beneficiary_address_line3 - # The beneficiary's address line 3. - # - # @return [String, nil] - optional :beneficiary_address_line3, String + # @return [Increase::Models::WireTransferCreateParams::Debtor, nil] + optional :debtor, -> { Increase::WireTransferCreateParams::Debtor } # @!attribute external_account_id # The ID of an External Account to initiate a transfer to. If this parameter is @@ -63,40 +59,6 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :inbound_wire_drawdown_request_id, String - # @!attribute originator_address_line1 - # The originator's address line 1. This is only necessary if you're transferring - # from 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 originator's address line 2. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - # - # @return [String, nil] - optional :originator_address_line2, String - - # @!attribute originator_address_line3 - # The originator's address line 3. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - # - # @return [String, nil] - optional :originator_address_line3, String - - # @!attribute originator_name - # The originator's name. This is only necessary if you're transferring from a - # commingled account. Otherwise, we'll use the associated entity's details. - # - # @return [String, nil] - optional :originator_name, String - - # @!attribute remittance - # Additional remittance information related to the wire transfer. - # - # @return [Increase::Models::WireTransferCreateParams::Remittance, nil] - optional :remittance, -> { Increase::WireTransferCreateParams::Remittance } - # @!attribute require_approval # Whether the transfer requires explicit approval via the dashboard or API. # @@ -116,7 +78,7 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :source_account_number_id, String - # @!method initialize(account_id:, amount:, beneficiary_name:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, remittance: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {}) + # @!method initialize(account_id:, amount:, creditor:, remittance:, account_number: nil, debtor: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::WireTransferCreateParams} for more details. # @@ -124,30 +86,18 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel # # @param amount [Integer] The transfer amount in USD cents. # - # @param beneficiary_name [String] The beneficiary's name. + # @param creditor [Increase::Models::WireTransferCreateParams::Creditor] The person or business that is receiving the funds from the transfer. # - # @param account_number [String] The account number for the destination account. - # - # @param beneficiary_address_line1 [String] The beneficiary's address line 1. + # @param remittance [Increase::Models::WireTransferCreateParams::Remittance] Additional remittance information related to the wire transfer. # - # @param beneficiary_address_line2 [String] The beneficiary's address line 2. + # @param account_number [String] The account number for the destination account. # - # @param beneficiary_address_line3 [String] The beneficiary's address line 3. + # @param debtor [Increase::Models::WireTransferCreateParams::Debtor] The person or business whose funds are being transferred. This is only necessary # # @param external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr # # @param inbound_wire_drawdown_request_id [String] The ID of an Inbound Wire Drawdown Request in response to which this transfer is # - # @param originator_address_line1 [String] The originator's address line 1. This is only necessary if you're transferring f - # - # @param originator_address_line2 [String] The originator's address line 2. This is only necessary if you're transferring f - # - # @param originator_address_line3 [String] The originator's address line 3. This is only necessary if you're transferring f - # - # @param originator_name [String] The originator's name. This is only necessary if you're transferring from a comm - # - # @param remittance [Increase::Models::WireTransferCreateParams::Remittance] Additional remittance information related to the wire transfer. - # # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API. # # @param routing_number [String] The American Bankers' Association (ABA) Routing Transit Number (RTN) for the des @@ -156,6 +106,71 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + class Creditor < Increase::Internal::Type::BaseModel + # @!attribute name + # The person or business's name. + # + # @return [String] + required :name, String + + # @!attribute address + # The person or business's address. + # + # @return [Increase::Models::WireTransferCreateParams::Creditor::Address, nil] + optional :address, -> { Increase::WireTransferCreateParams::Creditor::Address } + + # @!method initialize(name:, address: nil) + # The person or business that is receiving the funds from the transfer. + # + # @param name [String] The person or business's name. + # + # @param address [Increase::Models::WireTransferCreateParams::Creditor::Address] The person or business's address. + + # @see Increase::Models::WireTransferCreateParams::Creditor#address + class Address < Increase::Internal::Type::BaseModel + # @!attribute unstructured + # Unstructured address lines. + # + # @return [Increase::Models::WireTransferCreateParams::Creditor::Address::Unstructured] + required :unstructured, -> { Increase::WireTransferCreateParams::Creditor::Address::Unstructured } + + # @!method initialize(unstructured:) + # The person or business's address. + # + # @param unstructured [Increase::Models::WireTransferCreateParams::Creditor::Address::Unstructured] Unstructured address lines. + + # @see Increase::Models::WireTransferCreateParams::Creditor::Address#unstructured + class Unstructured < Increase::Internal::Type::BaseModel + # @!attribute line1 + # The address line 1. + # + # @return [String] + required :line1, String + + # @!attribute line2 + # The address line 2. + # + # @return [String, nil] + optional :line2, String + + # @!attribute line3 + # The address line 3. + # + # @return [String, nil] + optional :line3, String + + # @!method initialize(line1:, line2: nil, line3: nil) + # Unstructured address lines. + # + # @param line1 [String] The address line 1. + # + # @param line2 [String] The address line 2. + # + # @param line3 [String] The address line 3. + end + end + end + class Remittance < Increase::Internal::Type::BaseModel # @!attribute category # The type of remittance information being passed. @@ -244,7 +259,7 @@ class Tax < Increase::Internal::Type::BaseModel # @see Increase::Models::WireTransferCreateParams::Remittance#unstructured class Unstructured < Increase::Internal::Type::BaseModel # @!attribute message - # The message to the beneficiary. + # The information. # # @return [String] required :message, String @@ -253,7 +268,74 @@ class Unstructured < Increase::Internal::Type::BaseModel # Unstructured remittance information. Required if `category` is equal to # `unstructured`. # - # @param message [String] The message to the beneficiary. + # @param message [String] The information. + end + end + + class Debtor < Increase::Internal::Type::BaseModel + # @!attribute name + # The person or business's name. + # + # @return [String] + required :name, String + + # @!attribute address + # The person or business's address. + # + # @return [Increase::Models::WireTransferCreateParams::Debtor::Address, nil] + optional :address, -> { Increase::WireTransferCreateParams::Debtor::Address } + + # @!method initialize(name:, address: nil) + # The person or business whose funds are being transferred. This is only necessary + # if you're transferring from a commingled account. Otherwise, we'll use the + # associated entity's details. + # + # @param name [String] The person or business's name. + # + # @param address [Increase::Models::WireTransferCreateParams::Debtor::Address] The person or business's address. + + # @see Increase::Models::WireTransferCreateParams::Debtor#address + class Address < Increase::Internal::Type::BaseModel + # @!attribute unstructured + # Unstructured address lines. + # + # @return [Increase::Models::WireTransferCreateParams::Debtor::Address::Unstructured] + required :unstructured, -> { Increase::WireTransferCreateParams::Debtor::Address::Unstructured } + + # @!method initialize(unstructured:) + # The person or business's address. + # + # @param unstructured [Increase::Models::WireTransferCreateParams::Debtor::Address::Unstructured] Unstructured address lines. + + # @see Increase::Models::WireTransferCreateParams::Debtor::Address#unstructured + class Unstructured < Increase::Internal::Type::BaseModel + # @!attribute line1 + # The address line 1. + # + # @return [String] + required :line1, String + + # @!attribute line2 + # The address line 2. + # + # @return [String, nil] + optional :line2, String + + # @!attribute line3 + # The address line 3. + # + # @return [String, nil] + optional :line3, String + + # @!method initialize(line1:, line2: nil, line3: nil) + # Unstructured address lines. + # + # @param line1 [String] The address line 1. + # + # @param line2 [String] The address line 2. + # + # @param line3 [String] The address line 3. + end end end end diff --git a/lib/increase/resources/wire_transfers.rb b/lib/increase/resources/wire_transfers.rb index 9941c7ac7..70a496c90 100644 --- a/lib/increase/resources/wire_transfers.rb +++ b/lib/increase/resources/wire_transfers.rb @@ -8,36 +8,24 @@ class WireTransfers # # Create a Wire Transfer # - # @overload create(account_id:, amount:, beneficiary_name:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, remittance: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {}) + # @overload create(account_id:, amount:, creditor:, remittance:, account_number: nil, debtor: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {}) # # @param account_id [String] The identifier for the account that will send the transfer. # # @param amount [Integer] The transfer amount in USD cents. # - # @param beneficiary_name [String] The beneficiary's name. + # @param creditor [Increase::Models::WireTransferCreateParams::Creditor] The person or business that is receiving the funds from the transfer. # - # @param account_number [String] The account number for the destination account. - # - # @param beneficiary_address_line1 [String] The beneficiary's address line 1. + # @param remittance [Increase::Models::WireTransferCreateParams::Remittance] Additional remittance information related to the wire transfer. # - # @param beneficiary_address_line2 [String] The beneficiary's address line 2. + # @param account_number [String] The account number for the destination account. # - # @param beneficiary_address_line3 [String] The beneficiary's address line 3. + # @param debtor [Increase::Models::WireTransferCreateParams::Debtor] The person or business whose funds are being transferred. This is only necessary # # @param external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr # # @param inbound_wire_drawdown_request_id [String] The ID of an Inbound Wire Drawdown Request in response to which this transfer is # - # @param originator_address_line1 [String] The originator's address line 1. This is only necessary if you're transferring f - # - # @param originator_address_line2 [String] The originator's address line 2. This is only necessary if you're transferring f - # - # @param originator_address_line3 [String] The originator's address line 3. This is only necessary if you're transferring f - # - # @param originator_name [String] The originator's name. This is only necessary if you're transferring from a comm - # - # @param remittance [Increase::Models::WireTransferCreateParams::Remittance] Additional remittance information related to the wire transfer. - # # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API. # # @param routing_number [String] The American Bankers' Association (ABA) Routing Transit Number (RTN) for the des diff --git a/rbi/increase/models/wire_transfer.rbi b/rbi/increase/models/wire_transfer.rbi index f7174ae3a..ded39115d 100644 --- a/rbi/increase/models/wire_transfer.rbi +++ b/rbi/increase/models/wire_transfer.rbi @@ -36,22 +36,6 @@ module Increase end attr_writer :approval - # The beneficiary's address line 1. - sig { returns(T.nilable(String)) } - attr_accessor :beneficiary_address_line1 - - # The beneficiary's address line 2. - sig { returns(T.nilable(String)) } - attr_accessor :beneficiary_address_line2 - - # The beneficiary's address line 3. - sig { returns(T.nilable(String)) } - attr_accessor :beneficiary_address_line3 - - # The beneficiary's name. - sig { returns(T.nilable(String)) } - attr_accessor :beneficiary_name - # If your account requires approvals for transfers and the transfer was not # approved, this will contain details of the cancellation. sig { returns(T.nilable(Increase::WireTransfer::Cancellation)) } @@ -80,11 +64,31 @@ module Increase end attr_writer :created_by + # The person or business that is receiving the funds from the transfer. + sig { returns(T.nilable(Increase::WireTransfer::Creditor)) } + attr_reader :creditor + + sig do + params( + creditor: T.nilable(Increase::WireTransfer::Creditor::OrHash) + ).void + end + attr_writer :creditor + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For wire transfers this is always equal to `usd`. sig { returns(Increase::WireTransfer::Currency::TaggedSymbol) } attr_accessor :currency + # The person or business whose funds are being transferred. + sig { returns(T.nilable(Increase::WireTransfer::Debtor)) } + attr_reader :debtor + + sig do + params(debtor: T.nilable(Increase::WireTransfer::Debtor::OrHash)).void + end + attr_writer :debtor + # The identifier of the External Account the transfer was made to, if any. sig { returns(T.nilable(String)) } attr_accessor :external_account_id @@ -100,30 +104,10 @@ module Increase sig { returns(T.nilable(String)) } attr_accessor :inbound_wire_drawdown_request_id - # The message that will show on the recipient's bank statement. - sig { returns(String) } - attr_accessor :message_to_recipient - # The transfer's network. sig { returns(Increase::WireTransfer::Network::TaggedSymbol) } attr_accessor :network - # The originator's address line 1. - sig { returns(T.nilable(String)) } - attr_accessor :originator_address_line1 - - # 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 - # The ID for the pending transaction representing the transfer. A pending # transaction is created when the transfer # [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals) @@ -195,23 +179,16 @@ module Increase account_number: String, amount: Integer, approval: T.nilable(Increase::WireTransfer::Approval::OrHash), - beneficiary_address_line1: T.nilable(String), - beneficiary_address_line2: T.nilable(String), - beneficiary_address_line3: T.nilable(String), - beneficiary_name: T.nilable(String), cancellation: T.nilable(Increase::WireTransfer::Cancellation::OrHash), created_at: Time, created_by: T.nilable(Increase::WireTransfer::CreatedBy::OrHash), + creditor: T.nilable(Increase::WireTransfer::Creditor::OrHash), currency: Increase::WireTransfer::Currency::OrSymbol, + debtor: T.nilable(Increase::WireTransfer::Debtor::OrHash), external_account_id: T.nilable(String), idempotency_key: T.nilable(String), inbound_wire_drawdown_request_id: T.nilable(String), - message_to_recipient: String, network: Increase::WireTransfer::Network::OrSymbol, - originator_address_line1: T.nilable(String), - originator_address_line2: T.nilable(String), - originator_address_line3: T.nilable(String), - originator_name: T.nilable(String), pending_transaction_id: T.nilable(String), remittance: T.nilable(Increase::WireTransfer::Remittance::OrHash), reversal: T.nilable(Increase::WireTransfer::Reversal::OrHash), @@ -235,14 +212,6 @@ module Increase # If your account requires approvals for transfers and the transfer was approved, # this will contain details of the approval. approval:, - # The beneficiary's address line 1. - beneficiary_address_line1:, - # The beneficiary's address line 2. - beneficiary_address_line2:, - # The beneficiary's address line 3. - beneficiary_address_line3:, - # The beneficiary's name. - beneficiary_name:, # If your account requires approvals for transfers and the transfer was not # approved, this will contain details of the cancellation. cancellation:, @@ -251,9 +220,13 @@ module Increase created_at:, # What object created the transfer, either via the API or the dashboard. created_by:, + # The person or business that is receiving the funds from the transfer. + creditor:, # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For wire transfers this is always equal to `usd`. currency:, + # The person or business whose funds are being transferred. + debtor:, # The identifier of the External Account the transfer was made to, if any. external_account_id:, # The idempotency key you chose for this object. This value is unique across @@ -263,18 +236,8 @@ module Increase # The ID of an Inbound Wire Drawdown Request in response to which this transfer # was sent. inbound_wire_drawdown_request_id:, - # The message that will show on the recipient's bank statement. - message_to_recipient:, # The transfer's network. network:, - # 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 ID for the pending transaction representing the transfer. A pending # transaction is created when the transfer # [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals) @@ -309,23 +272,16 @@ module Increase account_number: String, amount: Integer, approval: T.nilable(Increase::WireTransfer::Approval), - beneficiary_address_line1: T.nilable(String), - beneficiary_address_line2: T.nilable(String), - beneficiary_address_line3: T.nilable(String), - beneficiary_name: T.nilable(String), cancellation: T.nilable(Increase::WireTransfer::Cancellation), created_at: Time, created_by: T.nilable(Increase::WireTransfer::CreatedBy), + creditor: T.nilable(Increase::WireTransfer::Creditor), currency: Increase::WireTransfer::Currency::TaggedSymbol, + debtor: T.nilable(Increase::WireTransfer::Debtor), external_account_id: T.nilable(String), idempotency_key: T.nilable(String), inbound_wire_drawdown_request_id: T.nilable(String), - message_to_recipient: String, network: Increase::WireTransfer::Network::TaggedSymbol, - originator_address_line1: T.nilable(String), - originator_address_line2: T.nilable(String), - originator_address_line3: T.nilable(String), - originator_name: T.nilable(String), pending_transaction_id: T.nilable(String), remittance: T.nilable(Increase::WireTransfer::Remittance), reversal: T.nilable(Increase::WireTransfer::Reversal), @@ -647,6 +603,164 @@ module Increase end end + class Creditor < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Increase::WireTransfer::Creditor, Increase::Internal::AnyHash) + end + + # The person or business's address. + sig { returns(T.nilable(Increase::WireTransfer::Creditor::Address)) } + attr_reader :address + + sig do + params( + address: + T.nilable(Increase::WireTransfer::Creditor::Address::OrHash) + ).void + end + attr_writer :address + + # The person or business's name. + sig { returns(T.nilable(String)) } + attr_accessor :name + + # The person or business that is receiving the funds from the transfer. + sig do + params( + address: + T.nilable(Increase::WireTransfer::Creditor::Address::OrHash), + name: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The person or business's address. + address:, + # The person or business's name. + name: + ) + end + + sig do + override.returns( + { + address: T.nilable(Increase::WireTransfer::Creditor::Address), + name: T.nilable(String) + } + ) + end + def to_hash + end + + class Address < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransfer::Creditor::Address, + Increase::Internal::AnyHash + ) + end + + # Unstructured address lines. + sig do + returns( + T.nilable(Increase::WireTransfer::Creditor::Address::Unstructured) + ) + end + attr_reader :unstructured + + sig do + params( + unstructured: + T.nilable( + Increase::WireTransfer::Creditor::Address::Unstructured::OrHash + ) + ).void + end + attr_writer :unstructured + + # The person or business's address. + sig do + params( + unstructured: + T.nilable( + Increase::WireTransfer::Creditor::Address::Unstructured::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + # Unstructured address lines. + unstructured: + ) + end + + sig do + override.returns( + { + unstructured: + T.nilable( + Increase::WireTransfer::Creditor::Address::Unstructured + ) + } + ) + end + def to_hash + end + + class Unstructured < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransfer::Creditor::Address::Unstructured, + Increase::Internal::AnyHash + ) + end + + # The first line. + sig { returns(T.nilable(String)) } + attr_accessor :line1 + + # The second line. + sig { returns(T.nilable(String)) } + attr_accessor :line2 + + # The third line. + sig { returns(T.nilable(String)) } + attr_accessor :line3 + + # Unstructured address lines. + sig do + params( + line1: T.nilable(String), + line2: T.nilable(String), + line3: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The first line. + line1:, + # The second line. + line2:, + # The third line. + line3: + ) + end + + sig do + override.returns( + { + line1: T.nilable(String), + line2: T.nilable(String), + line3: T.nilable(String) + } + ) + end + def to_hash + end + end + end + end + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's # currency. For wire transfers this is always equal to `usd`. module Currency @@ -683,6 +797,162 @@ module Increase end end + class Debtor < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Increase::WireTransfer::Debtor, Increase::Internal::AnyHash) + end + + # The person or business's address. + sig { returns(T.nilable(Increase::WireTransfer::Debtor::Address)) } + attr_reader :address + + sig do + params( + address: T.nilable(Increase::WireTransfer::Debtor::Address::OrHash) + ).void + end + attr_writer :address + + # The person or business's name. + sig { returns(T.nilable(String)) } + attr_accessor :name + + # The person or business whose funds are being transferred. + sig do + params( + address: T.nilable(Increase::WireTransfer::Debtor::Address::OrHash), + name: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The person or business's address. + address:, + # The person or business's name. + name: + ) + end + + sig do + override.returns( + { + address: T.nilable(Increase::WireTransfer::Debtor::Address), + name: T.nilable(String) + } + ) + end + def to_hash + end + + class Address < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransfer::Debtor::Address, + Increase::Internal::AnyHash + ) + end + + # Unstructured address lines. + sig do + returns( + T.nilable(Increase::WireTransfer::Debtor::Address::Unstructured) + ) + end + attr_reader :unstructured + + sig do + params( + unstructured: + T.nilable( + Increase::WireTransfer::Debtor::Address::Unstructured::OrHash + ) + ).void + end + attr_writer :unstructured + + # The person or business's address. + sig do + params( + unstructured: + T.nilable( + Increase::WireTransfer::Debtor::Address::Unstructured::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + # Unstructured address lines. + unstructured: + ) + end + + sig do + override.returns( + { + unstructured: + T.nilable( + Increase::WireTransfer::Debtor::Address::Unstructured + ) + } + ) + end + def to_hash + end + + class Unstructured < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransfer::Debtor::Address::Unstructured, + Increase::Internal::AnyHash + ) + end + + # The first line. + sig { returns(T.nilable(String)) } + attr_accessor :line1 + + # The second line. + sig { returns(T.nilable(String)) } + attr_accessor :line2 + + # The third line. + sig { returns(T.nilable(String)) } + attr_accessor :line3 + + # Unstructured address lines. + sig do + params( + line1: T.nilable(String), + line2: T.nilable(String), + line3: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The first line. + line1:, + # The second line. + line2:, + # The third line. + line3: + ) + end + + sig do + override.returns( + { + line1: T.nilable(String), + line2: T.nilable(String), + line3: T.nilable(String) + } + ) + end + def to_hash + end + end + end + end + # The transfer's network. module Network extend Increase::Internal::Type::Enum diff --git a/rbi/increase/models/wire_transfer_create_params.rbi b/rbi/increase/models/wire_transfer_create_params.rbi index 375094138..5c5a39869 100644 --- a/rbi/increase/models/wire_transfer_create_params.rbi +++ b/rbi/increase/models/wire_transfer_create_params.rbi @@ -19,9 +19,27 @@ module Increase sig { returns(Integer) } attr_accessor :amount - # The beneficiary's name. - sig { returns(String) } - attr_accessor :beneficiary_name + # The person or business that is receiving the funds from the transfer. + sig { returns(Increase::WireTransferCreateParams::Creditor) } + attr_reader :creditor + + sig do + params( + creditor: Increase::WireTransferCreateParams::Creditor::OrHash + ).void + end + attr_writer :creditor + + # Additional remittance information related to the wire transfer. + sig { returns(Increase::WireTransferCreateParams::Remittance) } + attr_reader :remittance + + sig do + params( + remittance: Increase::WireTransferCreateParams::Remittance::OrHash + ).void + end + attr_writer :remittance # The account number for the destination account. sig { returns(T.nilable(String)) } @@ -30,26 +48,16 @@ module Increase sig { params(account_number: String).void } attr_writer :account_number - # The beneficiary's address line 1. - sig { returns(T.nilable(String)) } - attr_reader :beneficiary_address_line1 - - sig { params(beneficiary_address_line1: String).void } - attr_writer :beneficiary_address_line1 - - # The beneficiary's address line 2. - sig { returns(T.nilable(String)) } - attr_reader :beneficiary_address_line2 - - sig { params(beneficiary_address_line2: String).void } - attr_writer :beneficiary_address_line2 + # The person or business whose funds are being transferred. This is only necessary + # if you're transferring from a commingled account. Otherwise, we'll use the + # associated entity's details. + sig { returns(T.nilable(Increase::WireTransferCreateParams::Debtor)) } + attr_reader :debtor - # The beneficiary's address line 3. - sig { returns(T.nilable(String)) } - attr_reader :beneficiary_address_line3 - - sig { params(beneficiary_address_line3: String).void } - attr_writer :beneficiary_address_line3 + sig do + params(debtor: Increase::WireTransferCreateParams::Debtor::OrHash).void + end + attr_writer :debtor # The ID of an External Account to initiate a transfer to. If this parameter is # provided, `account_number` and `routing_number` must be absent. @@ -67,49 +75,6 @@ module Increase sig { params(inbound_wire_drawdown_request_id: String).void } attr_writer :inbound_wire_drawdown_request_id - # The originator's address line 1. This is only necessary if you're transferring - # from 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 originator's address line 2. This is only necessary if you're transferring - # from 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 originator's address line 3. This is only necessary if you're transferring - # from 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 originator's name. This is only necessary if you're transferring from 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 - - # Additional remittance information related to the wire transfer. - sig { returns(T.nilable(Increase::WireTransferCreateParams::Remittance)) } - attr_reader :remittance - - sig do - params( - remittance: Increase::WireTransferCreateParams::Remittance::OrHash - ).void - end - attr_writer :remittance - # Whether the transfer requires explicit approval via the dashboard or API. sig { returns(T.nilable(T::Boolean)) } attr_reader :require_approval @@ -136,18 +101,12 @@ module Increase params( account_id: String, amount: Integer, - beneficiary_name: String, + creditor: Increase::WireTransferCreateParams::Creditor::OrHash, + remittance: Increase::WireTransferCreateParams::Remittance::OrHash, account_number: String, - beneficiary_address_line1: String, - beneficiary_address_line2: String, - beneficiary_address_line3: String, + debtor: Increase::WireTransferCreateParams::Debtor::OrHash, external_account_id: String, inbound_wire_drawdown_request_id: String, - originator_address_line1: String, - originator_address_line2: String, - originator_address_line3: String, - originator_name: String, - remittance: Increase::WireTransferCreateParams::Remittance::OrHash, require_approval: T::Boolean, routing_number: String, source_account_number_id: String, @@ -159,36 +118,22 @@ module Increase account_id:, # The transfer amount in USD cents. amount:, - # The beneficiary's name. - beneficiary_name:, + # The person or business that is receiving the funds from the transfer. + creditor:, + # Additional remittance information related to the wire transfer. + remittance:, # The account number for the destination account. account_number: nil, - # The beneficiary's address line 1. - beneficiary_address_line1: nil, - # The beneficiary's address line 2. - beneficiary_address_line2: nil, - # The beneficiary's address line 3. - beneficiary_address_line3: nil, + # The person or business whose funds are being transferred. This is only necessary + # if you're transferring from a commingled account. Otherwise, we'll use the + # associated entity's details. + debtor: nil, # The ID of an External Account to initiate a transfer to. If this parameter is # provided, `account_number` and `routing_number` must be absent. external_account_id: nil, # The ID of an Inbound Wire Drawdown Request in response to which this transfer is # being sent. inbound_wire_drawdown_request_id: nil, - # The originator's address line 1. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - originator_address_line1: nil, - # The originator's address line 2. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - originator_address_line2: nil, - # The originator's address line 3. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - originator_address_line3: nil, - # The originator's name. This is only necessary if you're transferring from a - # commingled account. Otherwise, we'll use the associated entity's details. - originator_name: nil, - # Additional remittance information related to the wire transfer. - remittance: nil, # Whether the transfer requires explicit approval via the dashboard or API. require_approval: nil, # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the @@ -205,18 +150,12 @@ module Increase { account_id: String, amount: Integer, - beneficiary_name: String, + creditor: Increase::WireTransferCreateParams::Creditor, + remittance: Increase::WireTransferCreateParams::Remittance, account_number: String, - beneficiary_address_line1: String, - beneficiary_address_line2: String, - beneficiary_address_line3: String, + debtor: Increase::WireTransferCreateParams::Debtor, external_account_id: String, inbound_wire_drawdown_request_id: String, - originator_address_line1: String, - originator_address_line2: String, - originator_address_line3: String, - originator_name: String, - remittance: Increase::WireTransferCreateParams::Remittance, require_approval: T::Boolean, routing_number: String, source_account_number_id: String, @@ -227,6 +166,163 @@ module Increase def to_hash end + class Creditor < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransferCreateParams::Creditor, + Increase::Internal::AnyHash + ) + end + + # The person or business's name. + sig { returns(String) } + attr_accessor :name + + # The person or business's address. + sig do + returns( + T.nilable(Increase::WireTransferCreateParams::Creditor::Address) + ) + end + attr_reader :address + + sig do + params( + address: + Increase::WireTransferCreateParams::Creditor::Address::OrHash + ).void + end + attr_writer :address + + # The person or business that is receiving the funds from the transfer. + sig do + params( + name: String, + address: + Increase::WireTransferCreateParams::Creditor::Address::OrHash + ).returns(T.attached_class) + end + def self.new( + # The person or business's name. + name:, + # The person or business's address. + address: nil + ) + end + + sig do + override.returns( + { + name: String, + address: Increase::WireTransferCreateParams::Creditor::Address + } + ) + end + def to_hash + end + + class Address < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransferCreateParams::Creditor::Address, + Increase::Internal::AnyHash + ) + end + + # Unstructured address lines. + sig do + returns( + Increase::WireTransferCreateParams::Creditor::Address::Unstructured + ) + end + attr_reader :unstructured + + sig do + params( + unstructured: + Increase::WireTransferCreateParams::Creditor::Address::Unstructured::OrHash + ).void + end + attr_writer :unstructured + + # The person or business's address. + sig do + params( + unstructured: + Increase::WireTransferCreateParams::Creditor::Address::Unstructured::OrHash + ).returns(T.attached_class) + end + def self.new( + # Unstructured address lines. + unstructured: + ) + end + + sig do + override.returns( + { + unstructured: + Increase::WireTransferCreateParams::Creditor::Address::Unstructured + } + ) + end + def to_hash + end + + class Unstructured < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransferCreateParams::Creditor::Address::Unstructured, + Increase::Internal::AnyHash + ) + end + + # The address line 1. + sig { returns(String) } + attr_accessor :line1 + + # The address line 2. + sig { returns(T.nilable(String)) } + attr_reader :line2 + + sig { params(line2: String).void } + attr_writer :line2 + + # The address line 3. + sig { returns(T.nilable(String)) } + attr_reader :line3 + + sig { params(line3: String).void } + attr_writer :line3 + + # Unstructured address lines. + sig do + params(line1: String, line2: String, line3: String).returns( + T.attached_class + ) + end + def self.new( + # The address line 1. + line1:, + # The address line 2. + line2: nil, + # The address line 3. + line3: nil + ) + end + + sig do + override.returns({ line1: String, line2: String, line3: String }) + end + def to_hash + end + end + end + end + class Remittance < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -415,7 +511,7 @@ module Increase ) end - # The message to the beneficiary. + # The information. sig { returns(String) } attr_accessor :message @@ -423,7 +519,7 @@ module Increase # `unstructured`. sig { params(message: String).returns(T.attached_class) } def self.new( - # The message to the beneficiary. + # The information. message: ) end @@ -433,6 +529,163 @@ module Increase end end end + + class Debtor < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransferCreateParams::Debtor, + Increase::Internal::AnyHash + ) + end + + # The person or business's name. + sig { returns(String) } + attr_accessor :name + + # The person or business's address. + sig do + returns( + T.nilable(Increase::WireTransferCreateParams::Debtor::Address) + ) + end + attr_reader :address + + sig do + params( + address: Increase::WireTransferCreateParams::Debtor::Address::OrHash + ).void + end + attr_writer :address + + # The person or business whose funds are being transferred. This is only necessary + # if you're transferring from a commingled account. Otherwise, we'll use the + # associated entity's details. + sig do + params( + name: String, + address: Increase::WireTransferCreateParams::Debtor::Address::OrHash + ).returns(T.attached_class) + end + def self.new( + # The person or business's name. + name:, + # The person or business's address. + address: nil + ) + end + + sig do + override.returns( + { + name: String, + address: Increase::WireTransferCreateParams::Debtor::Address + } + ) + end + def to_hash + end + + class Address < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransferCreateParams::Debtor::Address, + Increase::Internal::AnyHash + ) + end + + # Unstructured address lines. + sig do + returns( + Increase::WireTransferCreateParams::Debtor::Address::Unstructured + ) + end + attr_reader :unstructured + + sig do + params( + unstructured: + Increase::WireTransferCreateParams::Debtor::Address::Unstructured::OrHash + ).void + end + attr_writer :unstructured + + # The person or business's address. + sig do + params( + unstructured: + Increase::WireTransferCreateParams::Debtor::Address::Unstructured::OrHash + ).returns(T.attached_class) + end + def self.new( + # Unstructured address lines. + unstructured: + ) + end + + sig do + override.returns( + { + unstructured: + Increase::WireTransferCreateParams::Debtor::Address::Unstructured + } + ) + end + def to_hash + end + + class Unstructured < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransferCreateParams::Debtor::Address::Unstructured, + Increase::Internal::AnyHash + ) + end + + # The address line 1. + sig { returns(String) } + attr_accessor :line1 + + # The address line 2. + sig { returns(T.nilable(String)) } + attr_reader :line2 + + sig { params(line2: String).void } + attr_writer :line2 + + # The address line 3. + sig { returns(T.nilable(String)) } + attr_reader :line3 + + sig { params(line3: String).void } + attr_writer :line3 + + # Unstructured address lines. + sig do + params(line1: String, line2: String, line3: String).returns( + T.attached_class + ) + end + def self.new( + # The address line 1. + line1:, + # The address line 2. + line2: nil, + # The address line 3. + line3: nil + ) + end + + sig do + override.returns({ line1: String, line2: String, line3: String }) + end + def to_hash + end + end + end + end end end end diff --git a/rbi/increase/resources/wire_transfers.rbi b/rbi/increase/resources/wire_transfers.rbi index 329c01322..b087a7bf8 100644 --- a/rbi/increase/resources/wire_transfers.rbi +++ b/rbi/increase/resources/wire_transfers.rbi @@ -8,18 +8,12 @@ module Increase params( account_id: String, amount: Integer, - beneficiary_name: String, + creditor: Increase::WireTransferCreateParams::Creditor::OrHash, + remittance: Increase::WireTransferCreateParams::Remittance::OrHash, account_number: String, - beneficiary_address_line1: String, - beneficiary_address_line2: String, - beneficiary_address_line3: String, + debtor: Increase::WireTransferCreateParams::Debtor::OrHash, external_account_id: String, inbound_wire_drawdown_request_id: String, - originator_address_line1: String, - originator_address_line2: String, - originator_address_line3: String, - originator_name: String, - remittance: Increase::WireTransferCreateParams::Remittance::OrHash, require_approval: T::Boolean, routing_number: String, source_account_number_id: String, @@ -31,36 +25,22 @@ module Increase account_id:, # The transfer amount in USD cents. amount:, - # The beneficiary's name. - beneficiary_name:, + # The person or business that is receiving the funds from the transfer. + creditor:, + # Additional remittance information related to the wire transfer. + remittance:, # The account number for the destination account. account_number: nil, - # The beneficiary's address line 1. - beneficiary_address_line1: nil, - # The beneficiary's address line 2. - beneficiary_address_line2: nil, - # The beneficiary's address line 3. - beneficiary_address_line3: nil, + # The person or business whose funds are being transferred. This is only necessary + # if you're transferring from a commingled account. Otherwise, we'll use the + # associated entity's details. + debtor: nil, # The ID of an External Account to initiate a transfer to. If this parameter is # provided, `account_number` and `routing_number` must be absent. external_account_id: nil, # The ID of an Inbound Wire Drawdown Request in response to which this transfer is # being sent. inbound_wire_drawdown_request_id: nil, - # The originator's address line 1. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - originator_address_line1: nil, - # The originator's address line 2. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - originator_address_line2: nil, - # The originator's address line 3. This is only necessary if you're transferring - # from a commingled account. Otherwise, we'll use the associated entity's details. - originator_address_line3: nil, - # The originator's name. This is only necessary if you're transferring from a - # commingled account. Otherwise, we'll use the associated entity's details. - originator_name: nil, - # Additional remittance information related to the wire transfer. - remittance: nil, # Whether the transfer requires explicit approval via the dashboard or API. require_approval: nil, # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the diff --git a/sig/increase/models/wire_transfer.rbs b/sig/increase/models/wire_transfer.rbs index 2d2f12d0e..920b09b9f 100644 --- a/sig/increase/models/wire_transfer.rbs +++ b/sig/increase/models/wire_transfer.rbs @@ -7,23 +7,16 @@ module Increase account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval?, - :beneficiary_address_line1 => String?, - :beneficiary_address_line2 => String?, - :beneficiary_address_line3 => String?, - beneficiary_name: String?, cancellation: Increase::WireTransfer::Cancellation?, created_at: Time, created_by: Increase::WireTransfer::CreatedBy?, + creditor: Increase::WireTransfer::Creditor?, currency: Increase::Models::WireTransfer::currency, + debtor: Increase::WireTransfer::Debtor?, external_account_id: String?, idempotency_key: String?, inbound_wire_drawdown_request_id: String?, - message_to_recipient: String, network: Increase::Models::WireTransfer::network, - :originator_address_line1 => String?, - :originator_address_line2 => String?, - :originator_address_line3 => String?, - originator_name: String?, pending_transaction_id: String?, remittance: Increase::WireTransfer::Remittance?, reversal: Increase::WireTransfer::Reversal?, @@ -46,40 +39,26 @@ module Increase attr_accessor approval: Increase::WireTransfer::Approval? - attr_accessor beneficiary_address_line1: String? - - attr_accessor beneficiary_address_line2: String? - - attr_accessor beneficiary_address_line3: String? - - attr_accessor beneficiary_name: String? - attr_accessor cancellation: Increase::WireTransfer::Cancellation? attr_accessor created_at: Time attr_accessor created_by: Increase::WireTransfer::CreatedBy? + attr_accessor creditor: Increase::WireTransfer::Creditor? + attr_accessor currency: Increase::Models::WireTransfer::currency + attr_accessor debtor: Increase::WireTransfer::Debtor? + attr_accessor external_account_id: String? attr_accessor idempotency_key: String? attr_accessor inbound_wire_drawdown_request_id: String? - attr_accessor message_to_recipient: String - attr_accessor network: Increase::Models::WireTransfer::network - attr_accessor originator_address_line1: String? - - attr_accessor originator_address_line2: String? - - attr_accessor originator_address_line3: String? - - attr_accessor originator_name: String? - attr_accessor pending_transaction_id: String? attr_accessor remittance: Increase::WireTransfer::Remittance? @@ -104,23 +83,16 @@ module Increase account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval?, - beneficiary_address_line1: String?, - beneficiary_address_line2: String?, - beneficiary_address_line3: String?, - beneficiary_name: String?, cancellation: Increase::WireTransfer::Cancellation?, created_at: Time, created_by: Increase::WireTransfer::CreatedBy?, + creditor: Increase::WireTransfer::Creditor?, currency: Increase::Models::WireTransfer::currency, + debtor: Increase::WireTransfer::Debtor?, external_account_id: String?, idempotency_key: String?, inbound_wire_drawdown_request_id: String?, - message_to_recipient: String, network: Increase::Models::WireTransfer::network, - originator_address_line1: String?, - originator_address_line2: String?, - originator_address_line3: String?, - originator_name: String?, pending_transaction_id: String?, remittance: Increase::WireTransfer::Remittance?, reversal: Increase::WireTransfer::Reversal?, @@ -138,23 +110,16 @@ module Increase account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval?, - :beneficiary_address_line1 => String?, - :beneficiary_address_line2 => String?, - :beneficiary_address_line3 => String?, - beneficiary_name: String?, cancellation: Increase::WireTransfer::Cancellation?, created_at: Time, created_by: Increase::WireTransfer::CreatedBy?, + creditor: Increase::WireTransfer::Creditor?, currency: Increase::Models::WireTransfer::currency, + debtor: Increase::WireTransfer::Debtor?, external_account_id: String?, idempotency_key: String?, inbound_wire_drawdown_request_id: String?, - message_to_recipient: String, network: Increase::Models::WireTransfer::network, - :originator_address_line1 => String?, - :originator_address_line2 => String?, - :originator_address_line3 => String?, - originator_name: String?, pending_transaction_id: String?, remittance: Increase::WireTransfer::Remittance?, reversal: Increase::WireTransfer::Reversal?, @@ -269,6 +234,65 @@ module Increase end end + type creditor = + { address: Increase::WireTransfer::Creditor::Address?, name: String? } + + class Creditor < Increase::Internal::Type::BaseModel + attr_accessor address: Increase::WireTransfer::Creditor::Address? + + attr_accessor name: String? + + def initialize: ( + address: Increase::WireTransfer::Creditor::Address?, + name: String? + ) -> void + + def to_hash: -> { + address: Increase::WireTransfer::Creditor::Address?, + name: String? + } + + type address = + { + unstructured: Increase::WireTransfer::Creditor::Address::Unstructured? + } + + class Address < Increase::Internal::Type::BaseModel + attr_accessor unstructured: Increase::WireTransfer::Creditor::Address::Unstructured? + + def initialize: ( + unstructured: Increase::WireTransfer::Creditor::Address::Unstructured? + ) -> void + + def to_hash: -> { + unstructured: Increase::WireTransfer::Creditor::Address::Unstructured? + } + + type unstructured = + { :line1 => String?, :line2 => String?, :line3 => String? } + + class Unstructured < Increase::Internal::Type::BaseModel + attr_accessor line1: String? + + attr_accessor line2: String? + + attr_accessor line3: String? + + def initialize: ( + line1: String?, + line2: String?, + line3: String? + ) -> void + + def to_hash: -> { + :line1 => String?, + :line2 => String?, + :line3 => String? + } + end + end + end + type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD module Currency @@ -295,6 +319,65 @@ module Increase def self?.values: -> ::Array[Increase::Models::WireTransfer::currency] end + type debtor = + { address: Increase::WireTransfer::Debtor::Address?, name: String? } + + class Debtor < Increase::Internal::Type::BaseModel + attr_accessor address: Increase::WireTransfer::Debtor::Address? + + attr_accessor name: String? + + def initialize: ( + address: Increase::WireTransfer::Debtor::Address?, + name: String? + ) -> void + + def to_hash: -> { + address: Increase::WireTransfer::Debtor::Address?, + name: String? + } + + type address = + { + unstructured: Increase::WireTransfer::Debtor::Address::Unstructured? + } + + class Address < Increase::Internal::Type::BaseModel + attr_accessor unstructured: Increase::WireTransfer::Debtor::Address::Unstructured? + + def initialize: ( + unstructured: Increase::WireTransfer::Debtor::Address::Unstructured? + ) -> void + + def to_hash: -> { + unstructured: Increase::WireTransfer::Debtor::Address::Unstructured? + } + + type unstructured = + { :line1 => String?, :line2 => String?, :line3 => String? } + + class Unstructured < Increase::Internal::Type::BaseModel + attr_accessor line1: String? + + attr_accessor line2: String? + + attr_accessor line3: String? + + def initialize: ( + line1: String?, + line2: String?, + line3: String? + ) -> void + + def to_hash: -> { + :line1 => String?, + :line2 => String?, + :line3 => String? + } + end + end + end + type network = :wire module Network diff --git a/sig/increase/models/wire_transfer_create_params.rbs b/sig/increase/models/wire_transfer_create_params.rbs index ae7b176a1..0d41e0e8d 100644 --- a/sig/increase/models/wire_transfer_create_params.rbs +++ b/sig/increase/models/wire_transfer_create_params.rbs @@ -4,18 +4,12 @@ module Increase { account_id: String, amount: Integer, - beneficiary_name: String, + creditor: Increase::WireTransferCreateParams::Creditor, + remittance: Increase::WireTransferCreateParams::Remittance, account_number: String, - :beneficiary_address_line1 => String, - :beneficiary_address_line2 => String, - :beneficiary_address_line3 => String, + debtor: Increase::WireTransferCreateParams::Debtor, external_account_id: String, inbound_wire_drawdown_request_id: String, - :originator_address_line1 => String, - :originator_address_line2 => String, - :originator_address_line3 => String, - originator_name: String, - remittance: Increase::WireTransferCreateParams::Remittance, require_approval: bool, routing_number: String, source_account_number_id: String @@ -30,23 +24,19 @@ module Increase attr_accessor amount: Integer - attr_accessor beneficiary_name: String + attr_accessor creditor: Increase::WireTransferCreateParams::Creditor + + attr_accessor remittance: Increase::WireTransferCreateParams::Remittance attr_reader account_number: String? def account_number=: (String) -> String - attr_reader beneficiary_address_line1: String? - - def beneficiary_address_line1=: (String) -> String - - attr_reader beneficiary_address_line2: String? - - def beneficiary_address_line2=: (String) -> String + attr_reader debtor: Increase::WireTransferCreateParams::Debtor? - attr_reader beneficiary_address_line3: String? - - def beneficiary_address_line3=: (String) -> String + def debtor=: ( + Increase::WireTransferCreateParams::Debtor + ) -> Increase::WireTransferCreateParams::Debtor attr_reader external_account_id: String? @@ -56,28 +46,6 @@ module Increase def inbound_wire_drawdown_request_id=: (String) -> String - attr_reader originator_address_line1: String? - - def originator_address_line1=: (String) -> String - - attr_reader originator_address_line2: String? - - def originator_address_line2=: (String) -> String - - attr_reader originator_address_line3: String? - - def originator_address_line3=: (String) -> String - - attr_reader originator_name: String? - - def originator_name=: (String) -> String - - attr_reader remittance: Increase::WireTransferCreateParams::Remittance? - - def remittance=: ( - Increase::WireTransferCreateParams::Remittance - ) -> Increase::WireTransferCreateParams::Remittance - attr_reader require_approval: bool? def require_approval=: (bool) -> bool @@ -93,18 +61,12 @@ module Increase def initialize: ( account_id: String, amount: Integer, - beneficiary_name: String, + creditor: Increase::WireTransferCreateParams::Creditor, + remittance: Increase::WireTransferCreateParams::Remittance, ?account_number: String, - ?beneficiary_address_line1: String, - ?beneficiary_address_line2: String, - ?beneficiary_address_line3: String, + ?debtor: Increase::WireTransferCreateParams::Debtor, ?external_account_id: String, ?inbound_wire_drawdown_request_id: String, - ?originator_address_line1: String, - ?originator_address_line2: String, - ?originator_address_line3: String, - ?originator_name: String, - ?remittance: Increase::WireTransferCreateParams::Remittance, ?require_approval: bool, ?routing_number: String, ?source_account_number_id: String, @@ -114,24 +76,88 @@ module Increase def to_hash: -> { account_id: String, amount: Integer, - beneficiary_name: String, + creditor: Increase::WireTransferCreateParams::Creditor, + remittance: Increase::WireTransferCreateParams::Remittance, account_number: String, - :beneficiary_address_line1 => String, - :beneficiary_address_line2 => String, - :beneficiary_address_line3 => String, + debtor: Increase::WireTransferCreateParams::Debtor, external_account_id: String, inbound_wire_drawdown_request_id: String, - :originator_address_line1 => String, - :originator_address_line2 => String, - :originator_address_line3 => String, - originator_name: String, - remittance: Increase::WireTransferCreateParams::Remittance, require_approval: bool, routing_number: String, source_account_number_id: String, request_options: Increase::RequestOptions } + type creditor = + { + name: String, + address: Increase::WireTransferCreateParams::Creditor::Address + } + + class Creditor < Increase::Internal::Type::BaseModel + attr_accessor name: String + + attr_reader address: Increase::WireTransferCreateParams::Creditor::Address? + + def address=: ( + Increase::WireTransferCreateParams::Creditor::Address + ) -> Increase::WireTransferCreateParams::Creditor::Address + + def initialize: ( + name: String, + ?address: Increase::WireTransferCreateParams::Creditor::Address + ) -> void + + def to_hash: -> { + name: String, + address: Increase::WireTransferCreateParams::Creditor::Address + } + + type address = + { + unstructured: Increase::WireTransferCreateParams::Creditor::Address::Unstructured + } + + class Address < Increase::Internal::Type::BaseModel + attr_accessor unstructured: Increase::WireTransferCreateParams::Creditor::Address::Unstructured + + def initialize: ( + unstructured: Increase::WireTransferCreateParams::Creditor::Address::Unstructured + ) -> void + + def to_hash: -> { + unstructured: Increase::WireTransferCreateParams::Creditor::Address::Unstructured + } + + type unstructured = + { :line1 => String, :line2 => String, :line3 => String } + + class Unstructured < Increase::Internal::Type::BaseModel + attr_accessor line1: String + + attr_reader line2: String? + + def line2=: (String) -> String + + attr_reader line3: String? + + def line3=: (String) -> String + + def initialize: ( + line1: String, + ?line2: String, + ?line3: String + ) -> void + + def to_hash: -> { + :line1 => String, + :line2 => String, + :line3 => String + } + end + end + end + type remittance = { category: Increase::Models::WireTransferCreateParams::Remittance::category, @@ -213,6 +239,76 @@ module Increase def to_hash: -> { message: String } end end + + type debtor = + { + name: String, + address: Increase::WireTransferCreateParams::Debtor::Address + } + + class Debtor < Increase::Internal::Type::BaseModel + attr_accessor name: String + + attr_reader address: Increase::WireTransferCreateParams::Debtor::Address? + + def address=: ( + Increase::WireTransferCreateParams::Debtor::Address + ) -> Increase::WireTransferCreateParams::Debtor::Address + + def initialize: ( + name: String, + ?address: Increase::WireTransferCreateParams::Debtor::Address + ) -> void + + def to_hash: -> { + name: String, + address: Increase::WireTransferCreateParams::Debtor::Address + } + + type address = + { + unstructured: Increase::WireTransferCreateParams::Debtor::Address::Unstructured + } + + class Address < Increase::Internal::Type::BaseModel + attr_accessor unstructured: Increase::WireTransferCreateParams::Debtor::Address::Unstructured + + def initialize: ( + unstructured: Increase::WireTransferCreateParams::Debtor::Address::Unstructured + ) -> void + + def to_hash: -> { + unstructured: Increase::WireTransferCreateParams::Debtor::Address::Unstructured + } + + type unstructured = + { :line1 => String, :line2 => String, :line3 => String } + + class Unstructured < Increase::Internal::Type::BaseModel + attr_accessor line1: String + + attr_reader line2: String? + + def line2=: (String) -> String + + attr_reader line3: String? + + def line3=: (String) -> String + + def initialize: ( + line1: String, + ?line2: String, + ?line3: String + ) -> void + + def to_hash: -> { + :line1 => String, + :line2 => String, + :line3 => String + } + end + end + end end end end diff --git a/sig/increase/resources/wire_transfers.rbs b/sig/increase/resources/wire_transfers.rbs index bc65b379c..5f4275548 100644 --- a/sig/increase/resources/wire_transfers.rbs +++ b/sig/increase/resources/wire_transfers.rbs @@ -4,18 +4,12 @@ module Increase def create: ( account_id: String, amount: Integer, - beneficiary_name: String, + creditor: Increase::WireTransferCreateParams::Creditor, + remittance: Increase::WireTransferCreateParams::Remittance, ?account_number: String, - ?beneficiary_address_line1: String, - ?beneficiary_address_line2: String, - ?beneficiary_address_line3: String, + ?debtor: Increase::WireTransferCreateParams::Debtor, ?external_account_id: String, ?inbound_wire_drawdown_request_id: String, - ?originator_address_line1: String, - ?originator_address_line2: String, - ?originator_address_line3: String, - ?originator_name: String, - ?remittance: Increase::WireTransferCreateParams::Remittance, ?require_approval: bool, ?routing_number: String, ?source_account_number_id: String, diff --git a/test/increase/resources/simulations/wire_transfers_test.rb b/test/increase/resources/simulations/wire_transfers_test.rb index 475a9dcbb..791ca7cce 100644 --- a/test/increase/resources/simulations/wire_transfers_test.rb +++ b/test/increase/resources/simulations/wire_transfers_test.rb @@ -17,23 +17,16 @@ def test_reverse account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval | nil, - beneficiary_address_line1: String | nil, - beneficiary_address_line2: String | nil, - beneficiary_address_line3: String | nil, - beneficiary_name: String | nil, cancellation: Increase::WireTransfer::Cancellation | nil, created_at: Time, created_by: Increase::WireTransfer::CreatedBy | nil, + creditor: Increase::WireTransfer::Creditor | nil, currency: Increase::WireTransfer::Currency, + debtor: Increase::WireTransfer::Debtor | nil, external_account_id: String | nil, idempotency_key: String | nil, inbound_wire_drawdown_request_id: String | nil, - message_to_recipient: String, network: Increase::WireTransfer::Network, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, pending_transaction_id: String | nil, remittance: Increase::WireTransfer::Remittance | nil, reversal: Increase::WireTransfer::Reversal | nil, @@ -61,23 +54,16 @@ def test_submit account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval | nil, - beneficiary_address_line1: String | nil, - beneficiary_address_line2: String | nil, - beneficiary_address_line3: String | nil, - beneficiary_name: String | nil, cancellation: Increase::WireTransfer::Cancellation | nil, created_at: Time, created_by: Increase::WireTransfer::CreatedBy | nil, + creditor: Increase::WireTransfer::Creditor | nil, currency: Increase::WireTransfer::Currency, + debtor: Increase::WireTransfer::Debtor | nil, external_account_id: String | nil, idempotency_key: String | nil, inbound_wire_drawdown_request_id: String | nil, - message_to_recipient: String, network: Increase::WireTransfer::Network, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, pending_transaction_id: String | nil, remittance: Increase::WireTransfer::Remittance | nil, reversal: Increase::WireTransfer::Reversal | nil, diff --git a/test/increase/resources/wire_transfers_test.rb b/test/increase/resources/wire_transfers_test.rb index b45205b28..c73c6fb07 100644 --- a/test/increase/resources/wire_transfers_test.rb +++ b/test/increase/resources/wire_transfers_test.rb @@ -8,7 +8,8 @@ def test_create_required_params @increase.wire_transfers.create( account_id: "account_in71c4amph0vgo2qllky", amount: 100, - beneficiary_name: "Ian Crease" + creditor: {name: "Ian Crease"}, + remittance: {category: :unstructured} ) assert_pattern do @@ -22,23 +23,16 @@ def test_create_required_params account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval | nil, - beneficiary_address_line1: String | nil, - beneficiary_address_line2: String | nil, - beneficiary_address_line3: String | nil, - beneficiary_name: String | nil, cancellation: Increase::WireTransfer::Cancellation | nil, created_at: Time, created_by: Increase::WireTransfer::CreatedBy | nil, + creditor: Increase::WireTransfer::Creditor | nil, currency: Increase::WireTransfer::Currency, + debtor: Increase::WireTransfer::Debtor | nil, external_account_id: String | nil, idempotency_key: String | nil, inbound_wire_drawdown_request_id: String | nil, - message_to_recipient: String, network: Increase::WireTransfer::Network, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, pending_transaction_id: String | nil, remittance: Increase::WireTransfer::Remittance | nil, reversal: Increase::WireTransfer::Reversal | nil, @@ -66,23 +60,16 @@ def test_retrieve account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval | nil, - beneficiary_address_line1: String | nil, - beneficiary_address_line2: String | nil, - beneficiary_address_line3: String | nil, - beneficiary_name: String | nil, cancellation: Increase::WireTransfer::Cancellation | nil, created_at: Time, created_by: Increase::WireTransfer::CreatedBy | nil, + creditor: Increase::WireTransfer::Creditor | nil, currency: Increase::WireTransfer::Currency, + debtor: Increase::WireTransfer::Debtor | nil, external_account_id: String | nil, idempotency_key: String | nil, inbound_wire_drawdown_request_id: String | nil, - message_to_recipient: String, network: Increase::WireTransfer::Network, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, pending_transaction_id: String | nil, remittance: Increase::WireTransfer::Remittance | nil, reversal: Increase::WireTransfer::Reversal | nil, @@ -117,23 +104,16 @@ def test_list account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval | nil, - beneficiary_address_line1: String | nil, - beneficiary_address_line2: String | nil, - beneficiary_address_line3: String | nil, - beneficiary_name: String | nil, cancellation: Increase::WireTransfer::Cancellation | nil, created_at: Time, created_by: Increase::WireTransfer::CreatedBy | nil, + creditor: Increase::WireTransfer::Creditor | nil, currency: Increase::WireTransfer::Currency, + debtor: Increase::WireTransfer::Debtor | nil, external_account_id: String | nil, idempotency_key: String | nil, inbound_wire_drawdown_request_id: String | nil, - message_to_recipient: String, network: Increase::WireTransfer::Network, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, pending_transaction_id: String | nil, remittance: Increase::WireTransfer::Remittance | nil, reversal: Increase::WireTransfer::Reversal | nil, @@ -161,23 +141,16 @@ def test_approve account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval | nil, - beneficiary_address_line1: String | nil, - beneficiary_address_line2: String | nil, - beneficiary_address_line3: String | nil, - beneficiary_name: String | nil, cancellation: Increase::WireTransfer::Cancellation | nil, created_at: Time, created_by: Increase::WireTransfer::CreatedBy | nil, + creditor: Increase::WireTransfer::Creditor | nil, currency: Increase::WireTransfer::Currency, + debtor: Increase::WireTransfer::Debtor | nil, external_account_id: String | nil, idempotency_key: String | nil, inbound_wire_drawdown_request_id: String | nil, - message_to_recipient: String, network: Increase::WireTransfer::Network, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, pending_transaction_id: String | nil, remittance: Increase::WireTransfer::Remittance | nil, reversal: Increase::WireTransfer::Reversal | nil, @@ -205,23 +178,16 @@ def test_cancel account_number: String, amount: Integer, approval: Increase::WireTransfer::Approval | nil, - beneficiary_address_line1: String | nil, - beneficiary_address_line2: String | nil, - beneficiary_address_line3: String | nil, - beneficiary_name: String | nil, cancellation: Increase::WireTransfer::Cancellation | nil, created_at: Time, created_by: Increase::WireTransfer::CreatedBy | nil, + creditor: Increase::WireTransfer::Creditor | nil, currency: Increase::WireTransfer::Currency, + debtor: Increase::WireTransfer::Debtor | nil, external_account_id: String | nil, idempotency_key: String | nil, inbound_wire_drawdown_request_id: String | nil, - message_to_recipient: String, network: Increase::WireTransfer::Network, - originator_address_line1: String | nil, - originator_address_line2: String | nil, - originator_address_line3: String | nil, - originator_name: String | nil, pending_transaction_id: String | nil, remittance: Increase::WireTransfer::Remittance | nil, reversal: Increase::WireTransfer::Reversal | nil, From 66289327b2c7f5a9c006ccb628d8d6ab4da8057d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 18:05:26 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 6 +- lib/increase/models/card_dispute.rb | 30 ++----- lib/increase/models/pending_transaction.rb | 8 +- rbi/increase/models/card_dispute.rbi | 98 ++------------------- rbi/increase/models/pending_transaction.rbi | 6 +- sig/increase/models/card_dispute.rbs | 32 ++----- sig/increase/models/pending_transaction.rbs | 8 +- 7 files changed, 37 insertions(+), 151 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9256ec13b..7f33565d1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7689739a12916f3e4cc15be2e057e78b4ede38202bf4cf5f9358ef10374db9b3.yml -openapi_spec_hash: 39b4a0d5d1441d03ed9de368335d78ec -config_hash: fc8a0ae068f2feeac76f728ac6838543 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fd1e9a0d66098ce0c20cb6c15bbb8c26a8662d52730907deb4a179aebd6b89d6.yml +openapi_spec_hash: 2139b75a9f653c413775fb96f70ba794 +config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/lib/increase/models/card_dispute.rb b/lib/increase/models/card_dispute.rb index 091667ef4..269d98b70 100644 --- a/lib/increase/models/card_dispute.rb +++ b/lib/increase/models/card_dispute.rb @@ -993,11 +993,9 @@ class Represented < Increase::Internal::Type::BaseModel # Non-fiat currency or non-fungible token as described details. Present if and # only if `reason` is `non_fiat_currency_or_non_fungible_token_as_described`. # - # @return [Increase::Models::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed, nil] + # @return [Object, nil] required :non_fiat_currency_or_non_fungible_token_as_described, - -> { - Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed - }, + Increase::Internal::Type::Unknown, nil?: true # @!attribute non_fiat_currency_or_non_fungible_token_received @@ -1052,7 +1050,7 @@ class Represented < Increase::Internal::Type::BaseModel # # @param invalid_dispute [Increase::Models::CardDispute::Visa::NetworkEvent::Represented::InvalidDispute, nil] Invalid dispute details. Present if and only if `reason` is `invalid_dispute`. # - # @param non_fiat_currency_or_non_fungible_token_as_described [Increase::Models::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed, nil] Non-fiat currency or non-fungible token as described details. Present if and onl + # @param non_fiat_currency_or_non_fungible_token_as_described [Object, nil] Non-fiat currency or non-fungible token as described details. Present if and onl # # @param non_fiat_currency_or_non_fungible_token_received [Increase::Models::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenReceived, nil] Non-fiat currency or non-fungible token received details. Present if and only if # @@ -1268,13 +1266,6 @@ module Reason end end - # @see Increase::Models::CardDispute::Visa::NetworkEvent::Represented#non_fiat_currency_or_non_fungible_token_as_described - class NonFiatCurrencyOrNonFungibleTokenAsDescribed < Increase::Internal::Type::BaseModel - # @!method initialize - # Non-fiat currency or non-fungible token as described details. Present if and - # only if `reason` is `non_fiat_currency_or_non_fungible_token_as_described`. - end - # @see Increase::Models::CardDispute::Visa::NetworkEvent::Represented#non_fiat_currency_or_non_fungible_token_received class NonFiatCurrencyOrNonFungibleTokenReceived < Increase::Internal::Type::BaseModel # @!attribute blockchain_transaction_hash @@ -1668,10 +1659,8 @@ class Chargeback < Increase::Internal::Type::BaseModel # Non-receipt of cash. Present if and only if `category` is # `consumer_non_receipt_of_cash`. # - # @return [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash, nil] - required :consumer_non_receipt_of_cash, - -> { Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash }, - nil?: true + # @return [Object, nil] + required :consumer_non_receipt_of_cash, Increase::Internal::Type::Unknown, nil?: true # @!attribute consumer_original_credit_transaction_not_accepted # Original Credit Transaction (OCT) not accepted. Present if and only if @@ -1783,7 +1772,7 @@ class Chargeback < Increase::Internal::Type::BaseModel # # @param consumer_merchandise_not_received [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotReceived, nil] Merchandise not received. Present if and only if `category` is `consumer_merchan # - # @param consumer_non_receipt_of_cash [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash, nil] Non-receipt of cash. Present if and only if `category` is `consumer*non_receipt* + # @param consumer_non_receipt_of_cash [Object, nil] Non-receipt of cash. Present if and only if `category` is `consumer*non_receipt* # # @param consumer_original_credit_transaction_not_accepted [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback::ConsumerOriginalCreditTransactionNotAccepted, nil] Original Credit Transaction (OCT) not accepted. Present if and only if `category # @@ -3686,13 +3675,6 @@ module MerchantResolutionAttempted end end - # @see Increase::Models::CardDispute::Visa::UserSubmission::Chargeback#consumer_non_receipt_of_cash - class ConsumerNonReceiptOfCash < Increase::Internal::Type::BaseModel - # @!method initialize - # Non-receipt of cash. Present if and only if `category` is - # `consumer_non_receipt_of_cash`. - end - # @see Increase::Models::CardDispute::Visa::UserSubmission::Chargeback#consumer_original_credit_transaction_not_accepted class ConsumerOriginalCreditTransactionNotAccepted < Increase::Internal::Type::BaseModel # @!attribute explanation diff --git a/lib/increase/models/pending_transaction.rb b/lib/increase/models/pending_transaction.rb index 36b54eaa6..fbfc771aa 100644 --- a/lib/increase/models/pending_transaction.rb +++ b/lib/increase/models/pending_transaction.rb @@ -327,8 +327,10 @@ class Source < Increase::Internal::Type::BaseModel # if and only if `category` is equal to `user_initiated_hold`. Created when a user # initiates a hold on funds in their account. # - # @return [Object, nil] - required :user_initiated_hold, Increase::Internal::Type::Unknown, nil?: true + # @return [Hash{Symbol=>Object}, nil] + required :user_initiated_hold, + Increase::Internal::Type::HashOf[Increase::Internal::Type::Unknown], + nil?: true # @!attribute wire_transfer_instruction # A Wire Transfer Instruction object. This field will be present in the JSON @@ -373,7 +375,7 @@ class Source < Increase::Internal::Type::BaseModel # # @param swift_transfer_instruction [Increase::Models::PendingTransaction::Source::SwiftTransferInstruction, nil] A Swift Transfer Instruction object. This field will be present in the JSON resp # - # @param user_initiated_hold [Object, nil] An User Initiated Hold object. This field will be present in the JSON response i + # @param user_initiated_hold [Hash{Symbol=>Object}, nil] An User Initiated Hold object. This field will be present in the JSON response i # # @param wire_transfer_instruction [Increase::Models::PendingTransaction::Source::WireTransferInstruction, nil] A Wire Transfer Instruction object. This field will be present in the JSON respo diff --git a/rbi/increase/models/card_dispute.rbi b/rbi/increase/models/card_dispute.rbi index c2c2dc8d4..b9bc40fd3 100644 --- a/rbi/increase/models/card_dispute.rbi +++ b/rbi/increase/models/card_dispute.rbi @@ -1838,24 +1838,8 @@ module Increase # Non-fiat currency or non-fungible token as described details. Present if and # only if `reason` is `non_fiat_currency_or_non_fungible_token_as_described`. - sig do - returns( - T.nilable( - Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed - ) - ) - end - attr_reader :non_fiat_currency_or_non_fungible_token_as_described - - sig do - params( - non_fiat_currency_or_non_fungible_token_as_described: - T.nilable( - Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed::OrHash - ) - ).void - end - attr_writer :non_fiat_currency_or_non_fungible_token_as_described + sig { returns(T.nilable(T.anything)) } + attr_accessor :non_fiat_currency_or_non_fungible_token_as_described # Non-fiat currency or non-fungible token received details. Present if and only if # `reason` is `non_fiat_currency_or_non_fungible_token_received`. @@ -1948,9 +1932,7 @@ module Increase Increase::CardDispute::Visa::NetworkEvent::Represented::InvalidDispute::OrHash ), non_fiat_currency_or_non_fungible_token_as_described: - T.nilable( - Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed::OrHash - ), + T.nilable(T.anything), non_fiat_currency_or_non_fungible_token_received: T.nilable( Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenReceived::OrHash @@ -2009,9 +1991,7 @@ module Increase Increase::CardDispute::Visa::NetworkEvent::Represented::InvalidDispute ), non_fiat_currency_or_non_fungible_token_as_described: - T.nilable( - Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed - ), + T.nilable(T.anything), non_fiat_currency_or_non_fungible_token_received: T.nilable( Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenReceived @@ -2440,26 +2420,6 @@ module Increase end end - class NonFiatCurrencyOrNonFungibleTokenAsDescribed < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed, - Increase::Internal::AnyHash - ) - end - - # Non-fiat currency or non-fungible token as described details. Present if and - # only if `reason` is `non_fiat_currency_or_non_fungible_token_as_described`. - sig { returns(T.attached_class) } - def self.new - end - - sig { override.returns({}) } - def to_hash - end - end - class NonFiatCurrencyOrNonFungibleTokenReceived < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -3239,24 +3199,8 @@ module Increase # Non-receipt of cash. Present if and only if `category` is # `consumer_non_receipt_of_cash`. - sig do - returns( - T.nilable( - Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash - ) - ) - end - attr_reader :consumer_non_receipt_of_cash - - sig do - params( - consumer_non_receipt_of_cash: - T.nilable( - Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash::OrHash - ) - ).void - end - attr_writer :consumer_non_receipt_of_cash + sig { returns(T.nilable(T.anything)) } + attr_accessor :consumer_non_receipt_of_cash # Original Credit Transaction (OCT) not accepted. Present if and only if # `category` is `consumer_original_credit_transaction_not_accepted`. @@ -3472,10 +3416,7 @@ module Increase T.nilable( Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotReceived::OrHash ), - consumer_non_receipt_of_cash: - T.nilable( - Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash::OrHash - ), + consumer_non_receipt_of_cash: T.nilable(T.anything), consumer_original_credit_transaction_not_accepted: T.nilable( Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerOriginalCreditTransactionNotAccepted::OrHash @@ -3615,10 +3556,7 @@ module Increase T.nilable( Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotReceived ), - consumer_non_receipt_of_cash: - T.nilable( - Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash - ), + consumer_non_receipt_of_cash: T.nilable(T.anything), consumer_original_credit_transaction_not_accepted: T.nilable( Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerOriginalCreditTransactionNotAccepted @@ -7404,26 +7342,6 @@ module Increase end end - class ConsumerNonReceiptOfCash < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash, - Increase::Internal::AnyHash - ) - end - - # Non-receipt of cash. Present if and only if `category` is - # `consumer_non_receipt_of_cash`. - sig { returns(T.attached_class) } - def self.new - end - - sig { override.returns({}) } - def to_hash - end - end - class ConsumerOriginalCreditTransactionNotAccepted < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/pending_transaction.rbi b/rbi/increase/models/pending_transaction.rbi index 3de3213f1..1d61723ca 100644 --- a/rbi/increase/models/pending_transaction.rbi +++ b/rbi/increase/models/pending_transaction.rbi @@ -532,7 +532,7 @@ module Increase # An User Initiated Hold object. This field will be present in the JSON response # if and only if `category` is equal to `user_initiated_hold`. Created when a user # initiates a hold on funds in their account. - sig { returns(T.nilable(T.anything)) } + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } attr_accessor :user_initiated_hold # A Wire Transfer Instruction object. This field will be present in the JSON @@ -607,7 +607,7 @@ module Increase T.nilable( Increase::PendingTransaction::Source::SwiftTransferInstruction::OrHash ), - user_initiated_hold: T.nilable(T.anything), + user_initiated_hold: T.nilable(T::Hash[Symbol, T.anything]), wire_transfer_instruction: T.nilable( Increase::PendingTransaction::Source::WireTransferInstruction::OrHash @@ -721,7 +721,7 @@ module Increase T.nilable( Increase::PendingTransaction::Source::SwiftTransferInstruction ), - user_initiated_hold: T.nilable(T.anything), + user_initiated_hold: T.nilable(T::Hash[Symbol, T.anything]), wire_transfer_instruction: T.nilable( Increase::PendingTransaction::Source::WireTransferInstruction diff --git a/sig/increase/models/card_dispute.rbs b/sig/increase/models/card_dispute.rbs index 8b03e9470..8906065cf 100644 --- a/sig/increase/models/card_dispute.rbs +++ b/sig/increase/models/card_dispute.rbs @@ -689,7 +689,7 @@ module Increase cardholder_no_longer_disputes: Increase::CardDispute::Visa::NetworkEvent::Represented::CardholderNoLongerDisputes?, credit_or_reversal_processed: Increase::CardDispute::Visa::NetworkEvent::Represented::CreditOrReversalProcessed?, invalid_dispute: Increase::CardDispute::Visa::NetworkEvent::Represented::InvalidDispute?, - non_fiat_currency_or_non_fungible_token_as_described: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed?, + non_fiat_currency_or_non_fungible_token_as_described: top?, non_fiat_currency_or_non_fungible_token_received: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenReceived?, proof_of_cash_disbursement: Increase::CardDispute::Visa::NetworkEvent::Represented::ProofOfCashDisbursement?, reason: Increase::Models::CardDispute::Visa::NetworkEvent::Represented::reason, @@ -703,7 +703,7 @@ module Increase attr_accessor invalid_dispute: Increase::CardDispute::Visa::NetworkEvent::Represented::InvalidDispute? - attr_accessor non_fiat_currency_or_non_fungible_token_as_described: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed? + attr_accessor non_fiat_currency_or_non_fungible_token_as_described: top? attr_accessor non_fiat_currency_or_non_fungible_token_received: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenReceived? @@ -717,7 +717,7 @@ module Increase cardholder_no_longer_disputes: Increase::CardDispute::Visa::NetworkEvent::Represented::CardholderNoLongerDisputes?, credit_or_reversal_processed: Increase::CardDispute::Visa::NetworkEvent::Represented::CreditOrReversalProcessed?, invalid_dispute: Increase::CardDispute::Visa::NetworkEvent::Represented::InvalidDispute?, - non_fiat_currency_or_non_fungible_token_as_described: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed?, + non_fiat_currency_or_non_fungible_token_as_described: top?, non_fiat_currency_or_non_fungible_token_received: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenReceived?, proof_of_cash_disbursement: Increase::CardDispute::Visa::NetworkEvent::Represented::ProofOfCashDisbursement?, reason: Increase::Models::CardDispute::Visa::NetworkEvent::Represented::reason, @@ -728,7 +728,7 @@ module Increase cardholder_no_longer_disputes: Increase::CardDispute::Visa::NetworkEvent::Represented::CardholderNoLongerDisputes?, credit_or_reversal_processed: Increase::CardDispute::Visa::NetworkEvent::Represented::CreditOrReversalProcessed?, invalid_dispute: Increase::CardDispute::Visa::NetworkEvent::Represented::InvalidDispute?, - non_fiat_currency_or_non_fungible_token_as_described: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenAsDescribed?, + non_fiat_currency_or_non_fungible_token_as_described: top?, non_fiat_currency_or_non_fungible_token_received: Increase::CardDispute::Visa::NetworkEvent::Represented::NonFiatCurrencyOrNonFungibleTokenReceived?, proof_of_cash_disbursement: Increase::CardDispute::Visa::NetworkEvent::Represented::ProofOfCashDisbursement?, reason: Increase::Models::CardDispute::Visa::NetworkEvent::Represented::reason, @@ -943,14 +943,6 @@ module Increase end end - type non_fiat_currency_or_non_fungible_token_as_described = { } - - class NonFiatCurrencyOrNonFungibleTokenAsDescribed < Increase::Internal::Type::BaseModel - def initialize: -> void - - def to_hash: -> { } - end - type non_fiat_currency_or_non_fungible_token_received = { blockchain_transaction_hash: String, @@ -1168,7 +1160,7 @@ module Increase consumer_merchandise_misrepresentation: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseMisrepresentation?, consumer_merchandise_not_as_described: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotAsDescribed?, consumer_merchandise_not_received: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotReceived?, - consumer_non_receipt_of_cash: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash?, + consumer_non_receipt_of_cash: top?, consumer_original_credit_transaction_not_accepted: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerOriginalCreditTransactionNotAccepted?, consumer_quality_merchandise: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerQualityMerchandise?, consumer_quality_services: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerQualityServices?, @@ -1202,7 +1194,7 @@ module Increase attr_accessor consumer_merchandise_not_received: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotReceived? - attr_accessor consumer_non_receipt_of_cash: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash? + attr_accessor consumer_non_receipt_of_cash: top? attr_accessor consumer_original_credit_transaction_not_accepted: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerOriginalCreditTransactionNotAccepted? @@ -1232,7 +1224,7 @@ module Increase consumer_merchandise_misrepresentation: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseMisrepresentation?, consumer_merchandise_not_as_described: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotAsDescribed?, consumer_merchandise_not_received: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotReceived?, - consumer_non_receipt_of_cash: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash?, + consumer_non_receipt_of_cash: top?, consumer_original_credit_transaction_not_accepted: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerOriginalCreditTransactionNotAccepted?, consumer_quality_merchandise: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerQualityMerchandise?, consumer_quality_services: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerQualityServices?, @@ -1255,7 +1247,7 @@ module Increase consumer_merchandise_misrepresentation: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseMisrepresentation?, consumer_merchandise_not_as_described: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotAsDescribed?, consumer_merchandise_not_received: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerMerchandiseNotReceived?, - consumer_non_receipt_of_cash: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerNonReceiptOfCash?, + consumer_non_receipt_of_cash: top?, consumer_original_credit_transaction_not_accepted: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerOriginalCreditTransactionNotAccepted?, consumer_quality_merchandise: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerQualityMerchandise?, consumer_quality_services: Increase::CardDispute::Visa::UserSubmission::Chargeback::ConsumerQualityServices?, @@ -2807,14 +2799,6 @@ module Increase end end - type consumer_non_receipt_of_cash = { } - - class ConsumerNonReceiptOfCash < Increase::Internal::Type::BaseModel - def initialize: -> void - - def to_hash: -> { } - end - type consumer_original_credit_transaction_not_accepted = { explanation: String, diff --git a/sig/increase/models/pending_transaction.rbs b/sig/increase/models/pending_transaction.rbs index 1f7bc3399..cef517a3e 100644 --- a/sig/increase/models/pending_transaction.rbs +++ b/sig/increase/models/pending_transaction.rbs @@ -148,7 +148,7 @@ module Increase other: top?, real_time_payments_transfer_instruction: Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction?, swift_transfer_instruction: Increase::PendingTransaction::Source::SwiftTransferInstruction?, - user_initiated_hold: top?, + user_initiated_hold: ::Hash[Symbol, top]?, wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? } @@ -179,7 +179,7 @@ module Increase attr_accessor swift_transfer_instruction: Increase::PendingTransaction::Source::SwiftTransferInstruction? - attr_accessor user_initiated_hold: top? + attr_accessor user_initiated_hold: ::Hash[Symbol, top]? attr_accessor wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? @@ -197,7 +197,7 @@ module Increase other: top?, real_time_payments_transfer_instruction: Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction?, swift_transfer_instruction: Increase::PendingTransaction::Source::SwiftTransferInstruction?, - user_initiated_hold: top?, + user_initiated_hold: ::Hash[Symbol, top]?, wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? ) -> void @@ -215,7 +215,7 @@ module Increase other: top?, real_time_payments_transfer_instruction: Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction?, swift_transfer_instruction: Increase::PendingTransaction::Source::SwiftTransferInstruction?, - user_initiated_hold: top?, + user_initiated_hold: ::Hash[Symbol, top]?, wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? } From f24c8c59b582222af717a984916305a511feca62 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 18:05:51 +0000 Subject: [PATCH 3/3] release: 1.123.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 9dd3fb4d4..a6f2adab2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.122.0" + ".": "1.123.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a18f37a0..919f6f609 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.123.0 (2025-10-30) + +Full Changelog: [v1.122.0...v1.123.0](https://github.com/Increase/increase-ruby/compare/v1.122.0...v1.123.0) + +### Features + +* **api:** api update ([6628932](https://github.com/Increase/increase-ruby/commit/66289327b2c7f5a9c006ccb628d8d6ab4da8057d)) +* **api:** api update ([87e5fe0](https://github.com/Increase/increase-ruby/commit/87e5fe0c02607735c9e1142f71bfa7f5bd85a610)) + ## 1.122.0 (2025-10-29) Full Changelog: [v1.121.0...v1.122.0](https://github.com/Increase/increase-ruby/compare/v1.121.0...v1.122.0) diff --git a/Gemfile.lock b/Gemfile.lock index 3bd3b7d03..29916cb50 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.122.0) + increase (1.123.0) connection_pool GEM diff --git a/README.md b/README.md index 40d634782..2d006d6a2 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.122.0" +gem "increase", "~> 1.123.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index eb22b242a..cdcc0f766 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.122.0" + VERSION = "1.123.0" end