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.209.0"
".": "1.210.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: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1127bb6ee64bebab1bbf8ecbd9ec71c0deb5ca8552fd454fa2ec120fd9eac14a.yml
openapi_spec_hash: 9fedc9dc133202e4d39bf7bffe4839d9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7da80155087dd9d883acaa10229e34ed5a3097f884c77b5f28c4c76a62b82432.yml
openapi_spec_hash: c5050ba45eb587316583060c1efef8a8
config_hash: 4b562e97b3d8b4cba758a87d4927a76d
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.210.0 (2026-02-18)

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

### Features

* **api:** api update ([94b287f](https://github.com/Increase/increase-ruby/commit/94b287fcab61f856bc45512b38346d33d943771f))

## 1.209.0 (2026-02-14)

Full Changelog: [v1.208.0...v1.209.0](https://github.com/Increase/increase-ruby/compare/v1.208.0...v1.209.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.209.0)
increase (1.210.0)
cgi
connection_pool

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.209.0"
gem "increase", "~> 1.210.0"
```

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

# @!method initialize(request_options: {})
# @!attribute scan
# If set, the simulation will use these values for the check's scanned MICR data.
#
# @return [Increase::Models::Simulations::CheckDepositSubmitParams::Scan, nil]
optional :scan, -> { Increase::Simulations::CheckDepositSubmitParams::Scan }

# @!method initialize(scan: nil, request_options: {})
# @param scan [Increase::Models::Simulations::CheckDepositSubmitParams::Scan] If set, the simulation will use these values for the check's scanned MICR data.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

class Scan < Increase::Internal::Type::BaseModel
# @!attribute account_number
# The account number to be returned in the check deposit's scan data.
#
# @return [String]
required :account_number, String

# @!attribute routing_number
# The routing number to be returned in the check deposit's scan data.
#
# @return [String]
required :routing_number, String

# @!attribute auxiliary_on_us
# The auxiliary on-us data to be returned in the check deposit's scan data.
#
# @return [String, nil]
optional :auxiliary_on_us, String

# @!method initialize(account_number:, routing_number:, auxiliary_on_us: nil)
# If set, the simulation will use these values for the check's scanned MICR data.
#
# @param account_number [String] The account number to be returned in the check deposit's scan data.
#
# @param routing_number [String] The routing number to be returned in the check deposit's scan data.
#
# @param auxiliary_on_us [String] The auxiliary on-us data to be returned in the check deposit's scan data.
end
end
end
end
Expand Down
8 changes: 6 additions & 2 deletions lib/increase/resources/simulations/check_deposits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,25 @@ def return_(check_deposit_id, params = {})
# Simulates the submission of a [Check Deposit](#check-deposits) to the Federal
# Reserve. This Check Deposit must first have a `status` of `pending`.
#
# @overload submit(check_deposit_id, request_options: {})
# @overload submit(check_deposit_id, scan: nil, request_options: {})
#
# @param check_deposit_id [String] The identifier of the Check Deposit you wish to submit.
#
# @param scan [Increase::Models::Simulations::CheckDepositSubmitParams::Scan] If set, the simulation will use these values for the check's scanned MICR data.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::CheckDeposit]
#
# @see Increase::Models::Simulations::CheckDepositSubmitParams
def submit(check_deposit_id, params = {})
parsed, options = Increase::Simulations::CheckDepositSubmitParams.dump_request(params)
@client.request(
method: :post,
path: ["simulations/check_deposits/%1$s/submit", check_deposit_id],
body: parsed,
model: Increase::CheckDeposit,
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.209.0"
VERSION = "1.210.0"
end
90 changes: 86 additions & 4 deletions rbi/increase/models/simulations/check_deposit_submit_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,99 @@ module Increase
)
end

# If set, the simulation will use these values for the check's scanned MICR data.
sig do
params(request_options: Increase::RequestOptions::OrHash).returns(
T.attached_class
returns(
T.nilable(Increase::Simulations::CheckDepositSubmitParams::Scan)
)
end
def self.new(request_options: {})
attr_reader :scan

sig do
params(
scan: Increase::Simulations::CheckDepositSubmitParams::Scan::OrHash
).void
end
attr_writer :scan

sig do
params(
scan: Increase::Simulations::CheckDepositSubmitParams::Scan::OrHash,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
# If set, the simulation will use these values for the check's scanned MICR data.
scan: nil,
request_options: {}
)
end

sig { override.returns({ request_options: Increase::RequestOptions }) }
sig do
override.returns(
{
scan: Increase::Simulations::CheckDepositSubmitParams::Scan,
request_options: Increase::RequestOptions
}
)
end
def to_hash
end

class Scan < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(
Increase::Simulations::CheckDepositSubmitParams::Scan,
Increase::Internal::AnyHash
)
end

# The account number to be returned in the check deposit's scan data.
sig { returns(String) }
attr_accessor :account_number

# The routing number to be returned in the check deposit's scan data.
sig { returns(String) }
attr_accessor :routing_number

# The auxiliary on-us data to be returned in the check deposit's scan data.
sig { returns(T.nilable(String)) }
attr_reader :auxiliary_on_us

sig { params(auxiliary_on_us: String).void }
attr_writer :auxiliary_on_us

# If set, the simulation will use these values for the check's scanned MICR data.
sig do
params(
account_number: String,
routing_number: String,
auxiliary_on_us: String
).returns(T.attached_class)
end
def self.new(
# The account number to be returned in the check deposit's scan data.
account_number:,
# The routing number to be returned in the check deposit's scan data.
routing_number:,
# The auxiliary on-us data to be returned in the check deposit's scan data.
auxiliary_on_us: nil
)
end

sig do
override.returns(
{
account_number: String,
routing_number: String,
auxiliary_on_us: String
}
)
end
def to_hash
end
end
end
end
end
Expand Down
3 changes: 3 additions & 0 deletions rbi/increase/resources/simulations/check_deposits.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ module Increase
sig do
params(
check_deposit_id: String,
scan: Increase::Simulations::CheckDepositSubmitParams::Scan::OrHash,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::CheckDeposit)
end
def submit(
# The identifier of the Check Deposit you wish to submit.
check_deposit_id,
# If set, the simulation will use these values for the check's scanned MICR data.
scan: nil,
request_options: {}
)
end
Expand Down
48 changes: 45 additions & 3 deletions sig/increase/models/simulations/check_deposit_submit_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,57 @@ module Increase
module Models
module Simulations
type check_deposit_submit_params =
{ } & Increase::Internal::Type::request_parameters
{ scan: Increase::Simulations::CheckDepositSubmitParams::Scan }
& Increase::Internal::Type::request_parameters

class CheckDepositSubmitParams < 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 scan: Increase::Simulations::CheckDepositSubmitParams::Scan?

def to_hash: -> { request_options: Increase::RequestOptions }
def scan=: (
Increase::Simulations::CheckDepositSubmitParams::Scan
) -> Increase::Simulations::CheckDepositSubmitParams::Scan

def initialize: (
?scan: Increase::Simulations::CheckDepositSubmitParams::Scan,
?request_options: Increase::request_opts
) -> void

def to_hash: -> {
scan: Increase::Simulations::CheckDepositSubmitParams::Scan,
request_options: Increase::RequestOptions
}

type scan =
{
account_number: String,
routing_number: String,
auxiliary_on_us: String
}

class Scan < Increase::Internal::Type::BaseModel
attr_accessor account_number: String

attr_accessor routing_number: String

attr_reader auxiliary_on_us: String?

def auxiliary_on_us=: (String) -> String

def initialize: (
account_number: String,
routing_number: String,
?auxiliary_on_us: String
) -> void

def to_hash: -> {
account_number: String,
routing_number: String,
auxiliary_on_us: String
}
end
end
end
end
Expand Down
1 change: 1 addition & 0 deletions sig/increase/resources/simulations/check_deposits.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module Increase

def submit: (
String check_deposit_id,
?scan: Increase::Simulations::CheckDepositSubmitParams::Scan,
?request_options: Increase::request_opts
) -> Increase::CheckDeposit

Expand Down