Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.77.0"
".": "1.78.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 217
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e81b9b39563d895c47a1eceb9fd7cac6bc3f8e6f21c57c1d01ae2cdf360b73ce.yml
openapi_spec_hash: 9eee6e29a9d53623d380e8afae9ef482
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d19e08b9b1b9aa23a3a0c86db6eb3500b3a4aaf2d9f549a0177c5bebe67d098.yml
openapi_spec_hash: eec4190f1aca04351de8891c6a9b37da
config_hash: e1885b38eded054b77308a024c5d80cc
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.78.0 (2025-09-16)

Full Changelog: [v1.77.0...v1.78.0](https://github.com/Increase/increase-ruby/compare/v1.77.0...v1.78.0)

### Features

* **api:** api update ([a643e15](https://github.com/Increase/increase-ruby/commit/a643e1536b7cdfb7e311d9f6cfd18eaef9a4db7d))

## 1.77.0 (2025-09-16)

Full Changelog: [v1.76.0...v1.77.0](https://github.com/Increase/increase-ruby/compare/v1.76.0...v1.77.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
increase (1.77.0)
increase (1.78.0)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "increase", "~> 1.77.0"
gem "increase", "~> 1.78.0"
```

<!-- x-release-please-end -->
Expand Down
118 changes: 114 additions & 4 deletions lib/increase/models/wire_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class WireTransfer < Increase::Internal::Type::BaseModel
# @!attribute message_to_recipient
# The message that will show on the recipient's bank statement.
#
# @return [String, nil]
required :message_to_recipient, String, nil?: true
# @return [String]
required :message_to_recipient, String

# @!attribute network
# The transfer's network.
Expand Down Expand Up @@ -152,6 +152,12 @@ class WireTransfer < Increase::Internal::Type::BaseModel
# @return [String, nil]
required :pending_transaction_id, String, nil?: true

# @!attribute remittance
# Remittance information sent with the wire transfer.
#
# @return [Increase::Models::WireTransfer::Remittance, nil]
required :remittance, -> { Increase::WireTransfer::Remittance }, nil?: true

# @!attribute reversal
# If your transfer is reversed, this will contain details of the reversal.
#
Expand Down Expand Up @@ -196,7 +202,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:, reversal:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, 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:)
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransfer} for more details.
#
Expand Down Expand Up @@ -235,7 +241,7 @@ class WireTransfer < Increase::Internal::Type::BaseModel
#
# @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, nil] The message that will show on the recipient's bank statement.
# @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.
#
Expand All @@ -249,6 +255,8 @@ class WireTransfer < Increase::Internal::Type::BaseModel
#
# @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.
#
# @param reversal [Increase::Models::WireTransfer::Reversal, nil] If your transfer is reversed, this will contain details of the reversal.
#
# @param routing_number [String] The American Bankers' Association (ABA) Routing Transit Number (RTN).
Expand Down Expand Up @@ -459,6 +467,108 @@ module Network
# @return [Array<Symbol>]
end

# @see Increase::Models::WireTransfer#remittance
class Remittance < Increase::Internal::Type::BaseModel
# @!attribute category
# The type of remittance information being passed.
#
# @return [Symbol, Increase::Models::WireTransfer::Remittance::Category]
required :category, enum: -> { Increase::WireTransfer::Remittance::Category }

# @!attribute tax
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
# is equal to `tax`.
#
# @return [Increase::Models::WireTransfer::Remittance::Tax, nil]
required :tax, -> { Increase::WireTransfer::Remittance::Tax }, nil?: true

# @!attribute unstructured
# Unstructured remittance information. Required if `category` is equal to
# `unstructured`.
#
# @return [Increase::Models::WireTransfer::Remittance::Unstructured, nil]
required :unstructured, -> { Increase::WireTransfer::Remittance::Unstructured }, nil?: true

# @!method initialize(category:, tax:, unstructured:)
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransfer::Remittance} for more details.
#
# Remittance information sent with the wire transfer.
#
# @param category [Symbol, Increase::Models::WireTransfer::Remittance::Category] The type of remittance information being passed.
#
# @param tax [Increase::Models::WireTransfer::Remittance::Tax, nil] Internal Revenue Service (IRS) tax repayment information. Required if `category`
#
# @param unstructured [Increase::Models::WireTransfer::Remittance::Unstructured, nil] Unstructured remittance information. Required if `category` is equal to `unstruc

# The type of remittance information being passed.
#
# @see Increase::Models::WireTransfer::Remittance#category
module Category
extend Increase::Internal::Type::Enum

# The wire transfer contains unstructured remittance information.
UNSTRUCTURED = :unstructured

# The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
TAX = :tax

# @!method self.values
# @return [Array<Symbol>]
end

# @see Increase::Models::WireTransfer::Remittance#tax
class Tax < Increase::Internal::Type::BaseModel
# @!attribute date
# The month and year the tax payment is for, in YYYY-MM-DD format. The day is
# ignored.
#
# @return [Date]
required :date, Date

# @!attribute identification_number
# The 9-digit Tax Identification Number (TIN) or Employer Identification Number
# (EIN).
#
# @return [String]
required :identification_number, String

# @!attribute type_code
# The 5-character tax type code.
#
# @return [String]
required :type_code, String

# @!method initialize(date:, identification_number:, type_code:)
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransfer::Remittance::Tax} for more details.
#
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
# is equal to `tax`.
#
# @param date [Date] The month and year the tax payment is for, in YYYY-MM-DD format. The day is igno
#
# @param identification_number [String] The 9-digit Tax Identification Number (TIN) or Employer Identification Number (E
#
# @param type_code [String] The 5-character tax type code.
end

# @see Increase::Models::WireTransfer::Remittance#unstructured
class Unstructured < Increase::Internal::Type::BaseModel
# @!attribute message
# The message to the beneficiary.
#
# @return [String]
required :message, String

# @!method initialize(message:)
# Unstructured remittance information. Required if `category` is equal to
# `unstructured`.
#
# @param message [String] The message to the beneficiary.
end
end

# @see Increase::Models::WireTransfer#reversal
class Reversal < Increase::Internal::Type::BaseModel
# @!attribute amount
Expand Down
119 changes: 110 additions & 9 deletions lib/increase/models/wire_transfer_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
# @return [String]
required :beneficiary_name, String

# @!attribute message_to_recipient
# The message that will show on the recipient's bank statement.
#
# @return [String]
required :message_to_recipient, String

# @!attribute account_number
# The account number for the destination account.
#
Expand Down Expand Up @@ -97,6 +91,12 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
# @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.
#
Expand All @@ -116,7 +116,7 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :source_account_number_id, String

# @!method initialize(account_id:, amount:, beneficiary_name:, message_to_recipient:, 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, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
# @!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: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransferCreateParams} for more details.
#
Expand All @@ -126,8 +126,6 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
#
# @param beneficiary_name [String] The beneficiary's name.
#
# @param message_to_recipient [String] The message that will show on the recipient's bank statement.
#
# @param account_number [String] The account number for the destination account.
#
# @param beneficiary_address_line1 [String] The beneficiary's address line 1.
Expand All @@ -148,13 +146,116 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
#
# @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
#
# @param source_account_number_id [String] The ID of an Account Number that will be passed to the wire's recipient
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

class Remittance < Increase::Internal::Type::BaseModel
# @!attribute category
# The type of remittance information being passed.
#
# @return [Symbol, Increase::Models::WireTransferCreateParams::Remittance::Category]
required :category, enum: -> { Increase::WireTransferCreateParams::Remittance::Category }

# @!attribute tax
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
# is equal to `tax`.
#
# @return [Increase::Models::WireTransferCreateParams::Remittance::Tax, nil]
optional :tax, -> { Increase::WireTransferCreateParams::Remittance::Tax }

# @!attribute unstructured
# Unstructured remittance information. Required if `category` is equal to
# `unstructured`.
#
# @return [Increase::Models::WireTransferCreateParams::Remittance::Unstructured, nil]
optional :unstructured, -> { Increase::WireTransferCreateParams::Remittance::Unstructured }

# @!method initialize(category:, tax: nil, unstructured: nil)
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransferCreateParams::Remittance} for more details.
#
# Additional remittance information related to the wire transfer.
#
# @param category [Symbol, Increase::Models::WireTransferCreateParams::Remittance::Category] The type of remittance information being passed.
#
# @param tax [Increase::Models::WireTransferCreateParams::Remittance::Tax] Internal Revenue Service (IRS) tax repayment information. Required if `category`
#
# @param unstructured [Increase::Models::WireTransferCreateParams::Remittance::Unstructured] Unstructured remittance information. Required if `category` is equal to `unstruc

# The type of remittance information being passed.
#
# @see Increase::Models::WireTransferCreateParams::Remittance#category
module Category
extend Increase::Internal::Type::Enum

# The wire transfer contains unstructured remittance information.
UNSTRUCTURED = :unstructured

# The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
TAX = :tax

# @!method self.values
# @return [Array<Symbol>]
end

# @see Increase::Models::WireTransferCreateParams::Remittance#tax
class Tax < Increase::Internal::Type::BaseModel
# @!attribute date
# The month and year the tax payment is for, in YYYY-MM-DD format. The day is
# ignored.
#
# @return [Date]
required :date, Date

# @!attribute identification_number
# The 9-digit Tax Identification Number (TIN) or Employer Identification Number
# (EIN).
#
# @return [String]
required :identification_number, String

# @!attribute type_code
# The 5-character tax type code.
#
# @return [String]
required :type_code, String

# @!method initialize(date:, identification_number:, type_code:)
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransferCreateParams::Remittance::Tax} for more details.
#
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
# is equal to `tax`.
#
# @param date [Date] The month and year the tax payment is for, in YYYY-MM-DD format. The day is igno
#
# @param identification_number [String] The 9-digit Tax Identification Number (TIN) or Employer Identification Number (E
#
# @param type_code [String] The 5-character tax type code.
end

# @see Increase::Models::WireTransferCreateParams::Remittance#unstructured
class Unstructured < Increase::Internal::Type::BaseModel
# @!attribute message
# The message to the beneficiary.
#
# @return [String]
required :message, String

# @!method initialize(message:)
# Unstructured remittance information. Required if `category` is equal to
# `unstructured`.
#
# @param message [String] The message to the beneficiary.
end
end
end
end
end
6 changes: 3 additions & 3 deletions lib/increase/resources/wire_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ class WireTransfers
#
# Create a Wire Transfer
#
# @overload create(account_id:, amount:, beneficiary_name:, message_to_recipient:, 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, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
# @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: {})
#
# @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 message_to_recipient [String] The message that will show on the recipient's bank statement.
#
# @param account_number [String] The account number for the destination account.
#
# @param beneficiary_address_line1 [String] The beneficiary's address line 1.
Expand All @@ -38,6 +36,8 @@ class WireTransfers
#
# @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
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "1.77.0"
VERSION = "1.78.0"
end
Loading