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.59.0"
".": "1.60.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-a6d99e6e3e405acf3e592e273aa1c5d519ed4f1157d0f87f1dcf21e7710f59b5.yml
openapi_spec_hash: f1f21c7331c905f2e5549978454059dc
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7d240ad280fc9ed22a8bbe219835ed737b075963291d84b75efbbb38195eff8b.yml
openapi_spec_hash: f2a2cad4f01bf5ab66e1f3dcb719315a
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.60.0 (2025-08-29)

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

### Features

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

## 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)
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.59.0)
increase (1.60.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.59.0"
gem "increase", "~> 1.60.0"
```

<!-- x-release-please-end -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,48 @@ class InboundCheckDepositCreateParams < Increase::Internal::Type::BaseModel
# @return [String]
required :check_number, String

# @!method initialize(account_number_id:, amount:, check_number:, request_options: {})
# @!attribute payee_name_analysis
# Simulate the outcome of
# [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches).
# Defaults to `not_evaluated`.
#
# @return [Symbol, Increase::Models::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis, nil]
optional :payee_name_analysis,
enum: -> { Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis }

# @!method initialize(account_number_id:, amount:, check_number:, payee_name_analysis: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::Simulations::InboundCheckDepositCreateParams} for more
# details.
#
# @param account_number_id [String] The identifier of the Account Number the Inbound Check Deposit will be against.
#
# @param amount [Integer] The check amount in cents.
#
# @param check_number [String] The check number on the check to be deposited.
#
# @param payee_name_analysis [Symbol, Increase::Models::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis] Simulate the outcome of [payee name checking](https://increase.com/documentation
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

# Simulate the outcome of
# [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches).
# Defaults to `not_evaluated`.
module PayeeNameAnalysis
extend Increase::Internal::Type::Enum

# The details on the check match the recipient name of the check transfer.
NAME_MATCHES = :name_matches

# The details on the check do not match the recipient name of the check transfer.
DOES_NOT_MATCH = :does_not_match

# The payee name analysis was not evaluated.
NOT_EVALUATED = :not_evaluated

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
Expand Down
8 changes: 7 additions & 1 deletion lib/increase/resources/simulations/inbound_check_deposits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@ module Increase
module Resources
class Simulations
class InboundCheckDeposits
# Some parameter documentations has been truncated, see
# {Increase::Models::Simulations::InboundCheckDepositCreateParams} for more
# details.
#
# Simulates an Inbound Check Deposit against your account. This imitates someone
# depositing a check at their bank that was issued from your account. It may or
# may not be associated with a Check Transfer. Increase will evaluate the Check
# Deposit as we would in production and either create a Transaction or a Declined
# Transaction as a result. You can inspect the resulting Inbound Check Deposit
# object to see the result.
#
# @overload create(account_number_id:, amount:, check_number:, request_options: {})
# @overload create(account_number_id:, amount:, check_number:, payee_name_analysis: nil, request_options: {})
#
# @param account_number_id [String] The identifier of the Account Number the Inbound Check Deposit will be against.
#
# @param amount [Integer] The check amount in cents.
#
# @param check_number [String] The check number on the check to be deposited.
#
# @param payee_name_analysis [Symbol, Increase::Models::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis] Simulate the outcome of [payee name checking](https://increase.com/documentation
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::InboundCheckDeposit]
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.59.0"
VERSION = "1.60.0"
end
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,33 @@ module Increase
sig { returns(String) }
attr_accessor :check_number

# Simulate the outcome of
# [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches).
# Defaults to `not_evaluated`.
sig do
returns(
T.nilable(
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::OrSymbol
)
)
end
attr_reader :payee_name_analysis

sig do
params(
payee_name_analysis:
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::OrSymbol
).void
end
attr_writer :payee_name_analysis

sig do
params(
account_number_id: String,
amount: Integer,
check_number: String,
payee_name_analysis:
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::OrSymbol,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
Expand All @@ -42,6 +64,10 @@ module Increase
amount:,
# The check number on the check to be deposited.
check_number:,
# Simulate the outcome of
# [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches).
# Defaults to `not_evaluated`.
payee_name_analysis: nil,
request_options: {}
)
end
Expand All @@ -52,12 +78,61 @@ module Increase
account_number_id: String,
amount: Integer,
check_number: String,
payee_name_analysis:
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::OrSymbol,
request_options: Increase::RequestOptions
}
)
end
def to_hash
end

# Simulate the outcome of
# [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches).
# Defaults to `not_evaluated`.
module PayeeNameAnalysis
extend Increase::Internal::Type::Enum

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

# The details on the check match the recipient name of the check transfer.
NAME_MATCHES =
T.let(
:name_matches,
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::TaggedSymbol
)

# The details on the check do not match the recipient name of the check transfer.
DOES_NOT_MATCH =
T.let(
:does_not_match,
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::TaggedSymbol
)

# The payee name analysis was not evaluated.
NOT_EVALUATED =
T.let(
:not_evaluated,
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::TaggedSymbol
)

sig do
override.returns(
T::Array[
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::TaggedSymbol
]
)
end
def self.values
end
end
end
end
end
Expand Down
6 changes: 6 additions & 0 deletions rbi/increase/resources/simulations/inbound_check_deposits.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module Increase
account_number_id: String,
amount: Integer,
check_number: String,
payee_name_analysis:
Increase::Simulations::InboundCheckDepositCreateParams::PayeeNameAnalysis::OrSymbol,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::InboundCheckDeposit)
end
Expand All @@ -25,6 +27,10 @@ module Increase
amount:,
# The check number on the check to be deposited.
check_number:,
# Simulate the outcome of
# [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches).
# Defaults to `not_evaluated`.
payee_name_analysis: nil,
request_options: {}
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ module Increase
module Models
module Simulations
type inbound_check_deposit_create_params =
{ account_number_id: String, amount: Integer, check_number: String }
{
account_number_id: String,
amount: Integer,
check_number: String,
payee_name_analysis: Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis
}
& Increase::Internal::Type::request_parameters

class InboundCheckDepositCreateParams < Increase::Internal::Type::BaseModel
Expand All @@ -15,19 +20,45 @@ module Increase

attr_accessor check_number: String

attr_reader payee_name_analysis: Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis?

def payee_name_analysis=: (
Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis
) -> Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis

def initialize: (
account_number_id: String,
amount: Integer,
check_number: String,
?payee_name_analysis: Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis,
?request_options: Increase::request_opts
) -> void

def to_hash: -> {
account_number_id: String,
amount: Integer,
check_number: String,
payee_name_analysis: Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis,
request_options: Increase::RequestOptions
}

type payee_name_analysis =
:name_matches | :does_not_match | :not_evaluated

module PayeeNameAnalysis
extend Increase::Internal::Type::Enum

# The details on the check match the recipient name of the check transfer.
NAME_MATCHES: :name_matches

# The details on the check do not match the recipient name of the check transfer.
DOES_NOT_MATCH: :does_not_match

# The payee name analysis was not evaluated.
NOT_EVALUATED: :not_evaluated

def self?.values: -> ::Array[Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis]
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Increase
account_number_id: String,
amount: Integer,
check_number: String,
?payee_name_analysis: Increase::Models::Simulations::InboundCheckDepositCreateParams::payee_name_analysis,
?request_options: Increase::request_opts
) -> Increase::InboundCheckDeposit

Expand Down