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.58.0"
".": "1.59.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: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5ecfd5d7d11e1ed73e093008b8ec107f9c1d0d455f660badf74e0a12d98805ed.yml
openapi_spec_hash: ec6f6ea0766c1c56085f9032da2a9e24
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a6d99e6e3e405acf3e592e273aa1c5d519ed4f1157d0f87f1dcf21e7710f59b5.yml
openapi_spec_hash: f1f21c7331c905f2e5549978454059dc
config_hash: 632b628b59d8f0b717153b3d8133f6cb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.59.0 (2025-08-28)

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

### Features

* **api:** api update ([281534f](https://github.com/Increase/increase-ruby/commit/281534fd972e76bc08d4ef4bfbce7665bfeca852))

## 1.58.0 (2025-08-28)

Full Changelog: [v1.57.0...v1.58.0](https://github.com/Increase/increase-ruby/compare/v1.57.0...v1.58.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.58.0)
increase (1.59.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.58.0"
gem "increase", "~> 1.59.0"
```

<!-- x-release-please-end -->
Expand Down
32 changes: 31 additions & 1 deletion lib/increase/models/simulations/ach_transfer_settle_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,38 @@ class ACHTransferSettleParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!method initialize(request_options: {})
# @!attribute inbound_funds_hold_behavior
# The behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
#
# @return [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior, nil]
optional :inbound_funds_hold_behavior,
enum: -> { Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior }

# @!method initialize(inbound_funds_hold_behavior: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::Simulations::ACHTransferSettleParams} for more details.
#
# @param inbound_funds_hold_behavior [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior] The behavior of the inbound funds hold that is created when the ACH Transfer is
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

# The behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
module InboundFundsHoldBehavior
extend Increase::Internal::Type::Enum

# Release the inbound funds hold immediately.
RELEASE_IMMEDIATELY = :release_immediately

# Release the inbound funds hold on the default schedule.
RELEASE_ON_DEFAULT_SCHEDULE = :release_on_default_schedule

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
Expand Down
16 changes: 13 additions & 3 deletions lib/increase/resources/simulations/ach_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,38 @@ def return_(ach_transfer_id, params = {})
)
end

# Some parameter documentations has been truncated, see
# {Increase::Models::Simulations::ACHTransferSettleParams} for more details.
#
# Simulates the settlement of an [ACH Transfer](#ach-transfers) by the Federal
# Reserve. This transfer must first have a `status` of `pending_submission` or
# `submitted`. For convenience, if the transfer is in `status`:
# `pending_submission`, the simulation will also submit the transfer. Without this
# simulation the transfer will eventually settle on its own following the same
# Federal Reserve timeline as in production.
# Federal Reserve timeline as in production. Additionally, you can specify the
# behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
#
# @overload settle(ach_transfer_id, request_options: {})
# @overload settle(ach_transfer_id, inbound_funds_hold_behavior: nil, request_options: {})
#
# @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to become settled.
#
# @param inbound_funds_hold_behavior [Symbol, Increase::Models::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior] The behavior of the inbound funds hold that is created when the ACH Transfer is
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::ACHTransfer]
#
# @see Increase::Models::Simulations::ACHTransferSettleParams
def settle(ach_transfer_id, params = {})
parsed, options = Increase::Simulations::ACHTransferSettleParams.dump_request(params)
@client.request(
method: :post,
path: ["simulations/ach_transfers/%1$s/settle", ach_transfer_id],
body: parsed,
model: Increase::ACHTransfer,
options: params[:request_options]
options: options
)
end

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.58.0"
VERSION = "1.59.0"
end
84 changes: 80 additions & 4 deletions rbi/increase/models/simulations/ach_transfer_settle_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,93 @@ module Increase
)
end

# The behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
sig do
params(request_options: Increase::RequestOptions::OrHash).returns(
T.attached_class
returns(
T.nilable(
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol
)
)
end
def self.new(request_options: {})
attr_reader :inbound_funds_hold_behavior

sig do
params(
inbound_funds_hold_behavior:
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol
).void
end
attr_writer :inbound_funds_hold_behavior

sig { override.returns({ request_options: Increase::RequestOptions }) }
sig do
params(
inbound_funds_hold_behavior:
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
# The behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
inbound_funds_hold_behavior: nil,
request_options: {}
)
end

sig do
override.returns(
{
inbound_funds_hold_behavior:
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol,
request_options: Increase::RequestOptions
}
)
end
def to_hash
end

# The behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
module InboundFundsHoldBehavior
extend Increase::Internal::Type::Enum

TaggedSymbol =
T.type_alias do
T.all(
Symbol,
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior
)
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# Release the inbound funds hold immediately.
RELEASE_IMMEDIATELY =
T.let(
:release_immediately,
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol
)

# Release the inbound funds hold on the default schedule.
RELEASE_ON_DEFAULT_SCHEDULE =
T.let(
:release_on_default_schedule,
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol
)

sig do
override.returns(
T::Array[
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::TaggedSymbol
]
)
end
def self.values
end
end
end
end
end
Expand Down
11 changes: 10 additions & 1 deletion rbi/increase/resources/simulations/ach_transfers.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,25 @@ module Increase
# `submitted`. For convenience, if the transfer is in `status`:
# `pending_submission`, the simulation will also submit the transfer. Without this
# simulation the transfer will eventually settle on its own following the same
# Federal Reserve timeline as in production.
# Federal Reserve timeline as in production. Additionally, you can specify the
# behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
sig do
params(
ach_transfer_id: String,
inbound_funds_hold_behavior:
Increase::Simulations::ACHTransferSettleParams::InboundFundsHoldBehavior::OrSymbol,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::ACHTransfer)
end
def settle(
# The identifier of the ACH Transfer you wish to become settled.
ach_transfer_id,
# The behavior of the inbound funds hold that is created when the ACH Transfer is
# settled. If no behavior is specified, the inbound funds hold will be released
# immediately in order for the funds to be available for use.
inbound_funds_hold_behavior: nil,
request_options: {}
)
end
Expand Down
36 changes: 33 additions & 3 deletions sig/increase/models/simulations/ach_transfer_settle_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,45 @@ module Increase
module Models
module Simulations
type ach_transfer_settle_params =
{ } & Increase::Internal::Type::request_parameters
{
inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior
}
& Increase::Internal::Type::request_parameters

class ACHTransferSettleParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

def initialize: (?request_options: Increase::request_opts) -> void
attr_reader inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior?

def to_hash: -> { request_options: Increase::RequestOptions }
def inbound_funds_hold_behavior=: (
Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior
) -> Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior

def initialize: (
?inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior,
?request_options: Increase::request_opts
) -> void

def to_hash: -> {
inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior,
request_options: Increase::RequestOptions
}

type inbound_funds_hold_behavior =
:release_immediately | :release_on_default_schedule

module InboundFundsHoldBehavior
extend Increase::Internal::Type::Enum

# Release the inbound funds hold immediately.
RELEASE_IMMEDIATELY: :release_immediately

# Release the inbound funds hold on the default schedule.
RELEASE_ON_DEFAULT_SCHEDULE: :release_on_default_schedule

def self?.values: -> ::Array[Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior]
end
end
end
end
Expand Down
1 change: 1 addition & 0 deletions sig/increase/resources/simulations/ach_transfers.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module Increase

def settle: (
String ach_transfer_id,
?inbound_funds_hold_behavior: Increase::Models::Simulations::ACHTransferSettleParams::inbound_funds_hold_behavior,
?request_options: Increase::request_opts
) -> Increase::ACHTransfer

Expand Down