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.139.0"
".": "1.140.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 228
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b6b193549e9c795e807b299e7161628dc1e504d43d6be27113b1f3a1e491914f.yml
openapi_spec_hash: 9d0ff6cc1ec60a6772598cff20f8db1d
config_hash: eb2035151c7b49c2f12caf55469b8f9a
configured_endpoints: 229
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a0eb4b9ef698e80be2fc9e995d6096b96de35e4985c8586e0773fa55a6b50943.yml
openapi_spec_hash: a36c0bee01bf3af40ebcd7075308f170
config_hash: ca1425272e17fa23d4466d33492334fa
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.140.0 (2025-11-12)

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

### Features

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

## 1.139.0 (2025-11-10)

Full Changelog: [v1.138.0...v1.139.0](https://github.com/Increase/increase-ruby/compare/v1.138.0...v1.139.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.139.0)
increase (1.140.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.139.0"
gem "increase", "~> 1.140.0"
```

<!-- x-release-please-end -->
Expand Down
1 change: 1 addition & 0 deletions lib/increase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
require_relative "increase/models/inbound_fednow_transfer_list_params"
require_relative "increase/models/inbound_fednow_transfer_retrieve_params"
require_relative "increase/models/inbound_mail_item"
require_relative "increase/models/inbound_mail_item_action_params"
require_relative "increase/models/inbound_mail_item_list_params"
require_relative "increase/models/inbound_mail_item_retrieve_params"
require_relative "increase/models/inbound_real_time_payments_transfer"
Expand Down
2 changes: 2 additions & 0 deletions lib/increase/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ module Increase

InboundMailItem = Increase::Models::InboundMailItem

InboundMailItemActionParams = Increase::Models::InboundMailItemActionParams

InboundMailItemListParams = Increase::Models::InboundMailItemListParams

InboundMailItemRetrieveParams = Increase::Models::InboundMailItemRetrieveParams
Expand Down
61 changes: 61 additions & 0 deletions lib/increase/models/inbound_mail_item_action_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# frozen_string_literal: true

module Increase
module Models
# @see Increase::Resources::InboundMailItems#action
class InboundMailItemActionParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!attribute checks
# The actions to perform on the Inbound Mail Item.
#
# @return [Array<Increase::Models::InboundMailItemActionParams::Check>]
required :checks, -> { Increase::Internal::Type::ArrayOf[Increase::InboundMailItemActionParams::Check] }

# @!method initialize(checks:, request_options: {})
# @param checks [Array<Increase::Models::InboundMailItemActionParams::Check>] The actions to perform on the Inbound Mail Item.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

class Check < Increase::Internal::Type::BaseModel
# @!attribute action
# The action to perform on the Inbound Mail Item.
#
# @return [Symbol, Increase::Models::InboundMailItemActionParams::Check::Action]
required :action, enum: -> { Increase::InboundMailItemActionParams::Check::Action }

# @!attribute account
# The identifier of the Account to deposit the check into. If not provided, the
# check will be deposited into the Account associated with the Lockbox.
#
# @return [String, nil]
optional :account, String

# @!method initialize(action:, account: nil)
# Some parameter documentations has been truncated, see
# {Increase::Models::InboundMailItemActionParams::Check} for more details.
#
# @param action [Symbol, Increase::Models::InboundMailItemActionParams::Check::Action] The action to perform on the Inbound Mail Item.
#
# @param account [String] The identifier of the Account to deposit the check into. If not provided, the ch

# The action to perform on the Inbound Mail Item.
#
# @see Increase::Models::InboundMailItemActionParams::Check#action
module Action
extend Increase::Internal::Type::Enum

# The check will be deposited.
DEPOSIT = :deposit

# The check will be ignored.
IGNORE = :ignore

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
end
3 changes: 3 additions & 0 deletions lib/increase/models/lockbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ module CheckDepositBehavior
# Checks mailed to this Lockbox will not be deposited.
DISABLED = :disabled

# Checks mailed to this Lockbox will be pending until actioned.
PEND_FOR_PROCESSING = :pend_for_processing

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/lockbox_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ module CheckDepositBehavior
# Checks mailed to this Lockbox will not be deposited.
DISABLED = :disabled

# Checks mailed to this Lockbox will be pending until actioned.
PEND_FOR_PROCESSING = :pend_for_processing

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
24 changes: 24 additions & 0 deletions lib/increase/resources/inbound_mail_items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,30 @@ def list(params = {})
)
end

# Action a Inbound Mail Item
#
# @overload action(inbound_mail_item_id, checks:, request_options: {})
#
# @param inbound_mail_item_id [String] The identifier of the Inbound Mail Item to action.
#
# @param checks [Array<Increase::Models::InboundMailItemActionParams::Check>] The actions to perform on the Inbound Mail Item.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::InboundMailItem]
#
# @see Increase::Models::InboundMailItemActionParams
def action(inbound_mail_item_id, params)
parsed, options = Increase::InboundMailItemActionParams.dump_request(params)
@client.request(
method: :post,
path: ["inbound_mail_items/%1$s/action", inbound_mail_item_id],
body: parsed,
model: Increase::InboundMailItem,
options: options
)
end

# @api private
#
# @param client [Increase::Client]
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.139.0"
VERSION = "1.140.0"
end
2 changes: 2 additions & 0 deletions rbi/increase/models.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ module Increase

InboundMailItem = Increase::Models::InboundMailItem

InboundMailItemActionParams = Increase::Models::InboundMailItemActionParams

InboundMailItemListParams = Increase::Models::InboundMailItemListParams

InboundMailItemRetrieveParams =
Expand Down
139 changes: 139 additions & 0 deletions rbi/increase/models/inbound_mail_item_action_params.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# typed: strong

module Increase
module Models
class InboundMailItemActionParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

OrHash =
T.type_alias do
T.any(
Increase::InboundMailItemActionParams,
Increase::Internal::AnyHash
)
end

# The actions to perform on the Inbound Mail Item.
sig { returns(T::Array[Increase::InboundMailItemActionParams::Check]) }
attr_accessor :checks

sig do
params(
checks:
T::Array[Increase::InboundMailItemActionParams::Check::OrHash],
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
# The actions to perform on the Inbound Mail Item.
checks:,
request_options: {}
)
end

sig do
override.returns(
{
checks: T::Array[Increase::InboundMailItemActionParams::Check],
request_options: Increase::RequestOptions
}
)
end
def to_hash
end

class Check < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(
Increase::InboundMailItemActionParams::Check,
Increase::Internal::AnyHash
)
end

# The action to perform on the Inbound Mail Item.
sig do
returns(
Increase::InboundMailItemActionParams::Check::Action::OrSymbol
)
end
attr_accessor :action

# The identifier of the Account to deposit the check into. If not provided, the
# check will be deposited into the Account associated with the Lockbox.
sig { returns(T.nilable(String)) }
attr_reader :account

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

sig do
params(
action:
Increase::InboundMailItemActionParams::Check::Action::OrSymbol,
account: String
).returns(T.attached_class)
end
def self.new(
# The action to perform on the Inbound Mail Item.
action:,
# The identifier of the Account to deposit the check into. If not provided, the
# check will be deposited into the Account associated with the Lockbox.
account: nil
)
end

sig do
override.returns(
{
action:
Increase::InboundMailItemActionParams::Check::Action::OrSymbol,
account: String
}
)
end
def to_hash
end

# The action to perform on the Inbound Mail Item.
module Action
extend Increase::Internal::Type::Enum

TaggedSymbol =
T.type_alias do
T.all(
Symbol,
Increase::InboundMailItemActionParams::Check::Action
)
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# The check will be deposited.
DEPOSIT =
T.let(
:deposit,
Increase::InboundMailItemActionParams::Check::Action::TaggedSymbol
)

# The check will be ignored.
IGNORE =
T.let(
:ignore,
Increase::InboundMailItemActionParams::Check::Action::TaggedSymbol
)

sig do
override.returns(
T::Array[
Increase::InboundMailItemActionParams::Check::Action::TaggedSymbol
]
)
end
def self.values
end
end
end
end
end
end
7 changes: 7 additions & 0 deletions rbi/increase/models/lockbox.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ module Increase
Increase::Lockbox::CheckDepositBehavior::TaggedSymbol
)

# Checks mailed to this Lockbox will be pending until actioned.
PEND_FOR_PROCESSING =
T.let(
:pend_for_processing,
Increase::Lockbox::CheckDepositBehavior::TaggedSymbol
)

sig do
override.returns(
T::Array[Increase::Lockbox::CheckDepositBehavior::TaggedSymbol]
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/lockbox_update_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ module Increase
Increase::LockboxUpdateParams::CheckDepositBehavior::TaggedSymbol
)

# Checks mailed to this Lockbox will be pending until actioned.
PEND_FOR_PROCESSING =
T.let(
:pend_for_processing,
Increase::LockboxUpdateParams::CheckDepositBehavior::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
18 changes: 18 additions & 0 deletions rbi/increase/resources/inbound_mail_items.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,24 @@ module Increase
)
end

# Action a Inbound Mail Item
sig do
params(
inbound_mail_item_id: String,
checks:
T::Array[Increase::InboundMailItemActionParams::Check::OrHash],
request_options: Increase::RequestOptions::OrHash
).returns(Increase::InboundMailItem)
end
def action(
# The identifier of the Inbound Mail Item to action.
inbound_mail_item_id,
# The actions to perform on the Inbound Mail Item.
checks:,
request_options: {}
)
end

# @api private
sig { params(client: Increase::Client).returns(T.attached_class) }
def self.new(client:)
Expand Down
2 changes: 2 additions & 0 deletions sig/increase/models.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ module Increase

class InboundMailItem = Increase::Models::InboundMailItem

class InboundMailItemActionParams = Increase::Models::InboundMailItemActionParams

class InboundMailItemListParams = Increase::Models::InboundMailItemListParams

class InboundMailItemRetrieveParams = Increase::Models::InboundMailItemRetrieveParams
Expand Down
Loading