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.134.0"
".": "1.135.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: 228
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-029ea9e6c4067d483991aa9c3f62773ffaf56ac0b765749983afc182074e834d.yml
openapi_spec_hash: 4b3f58b1324441e24b4c2b4dfa391d74
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-0cbadaf8bea9237be21194a1039047af135bbcec657db6fc9d6b6697a17c2e37.yml
openapi_spec_hash: dbffc2b4874015f957526d1086861435
config_hash: eb2035151c7b49c2f12caf55469b8f9a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.135.0 (2025-11-07)

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

### Features

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

## 1.134.0 (2025-11-07)

Full Changelog: [v1.133.0...v1.134.0](https://github.com/Increase/increase-ruby/compare/v1.133.0...v1.134.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.134.0)
increase (1.135.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.134.0"
gem "increase", "~> 1.135.0"
```

<!-- x-release-please-end -->
Expand Down
29 changes: 28 additions & 1 deletion lib/increase/models/inbound_mail_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ class Check < Increase::Internal::Type::BaseModel
# @return [String, nil]
required :front_file_id, String, nil?: true

# @!method initialize(amount:, back_file_id:, check_deposit_id:, front_file_id:)
# @!attribute status
# The status of the Inbound Mail Item Check.
#
# @return [Symbol, Increase::Models::InboundMailItem::Check::Status, nil]
required :status, enum: -> { Increase::InboundMailItem::Check::Status }, nil?: true

# @!method initialize(amount:, back_file_id:, check_deposit_id:, front_file_id:, status:)
# Inbound Mail Item Checks represent the checks in an Inbound Mail Item.
#
# @param amount [Integer] The amount of the check.
Expand All @@ -120,6 +126,27 @@ class Check < Increase::Internal::Type::BaseModel
# @param check_deposit_id [String, nil] The identifier of the Check Deposit if this check was deposited.
#
# @param front_file_id [String, nil] The identifier for the File containing the front of the check.
#
# @param status [Symbol, Increase::Models::InboundMailItem::Check::Status, nil] The status of the Inbound Mail Item Check.

# The status of the Inbound Mail Item Check.
#
# @see Increase::Models::InboundMailItem::Check#status
module Status
extend Increase::Internal::Type::Enum

# The check is pending processing.
PENDING = :pending

# The check has been deposited.
DEPOSITED = :deposited

# The check has been ignored.
IGNORED = :ignored

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

# If the mail item has been rejected, why it was rejected.
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.134.0"
VERSION = "1.135.0"
end
62 changes: 59 additions & 3 deletions rbi/increase/models/inbound_mail_item.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,23 @@ module Increase
sig { returns(T.nilable(String)) }
attr_accessor :front_file_id

# The status of the Inbound Mail Item Check.
sig do
returns(
T.nilable(Increase::InboundMailItem::Check::Status::TaggedSymbol)
)
end
attr_accessor :status

# Inbound Mail Item Checks represent the checks in an Inbound Mail Item.
sig do
params(
amount: Integer,
back_file_id: T.nilable(String),
check_deposit_id: T.nilable(String),
front_file_id: T.nilable(String)
front_file_id: T.nilable(String),
status:
T.nilable(Increase::InboundMailItem::Check::Status::OrSymbol)
).returns(T.attached_class)
end
def self.new(
Expand All @@ -151,7 +161,9 @@ module Increase
# The identifier of the Check Deposit if this check was deposited.
check_deposit_id:,
# The identifier for the File containing the front of the check.
front_file_id:
front_file_id:,
# The status of the Inbound Mail Item Check.
status:
)
end

Expand All @@ -161,12 +173,56 @@ module Increase
amount: Integer,
back_file_id: T.nilable(String),
check_deposit_id: T.nilable(String),
front_file_id: T.nilable(String)
front_file_id: T.nilable(String),
status:
T.nilable(
Increase::InboundMailItem::Check::Status::TaggedSymbol
)
}
)
end
def to_hash
end

# The status of the Inbound Mail Item Check.
module Status
extend Increase::Internal::Type::Enum

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

# The check is pending processing.
PENDING =
T.let(
:pending,
Increase::InboundMailItem::Check::Status::TaggedSymbol
)

# The check has been deposited.
DEPOSITED =
T.let(
:deposited,
Increase::InboundMailItem::Check::Status::TaggedSymbol
)

# The check has been ignored.
IGNORED =
T.let(
:ignored,
Increase::InboundMailItem::Check::Status::TaggedSymbol
)

sig do
override.returns(
T::Array[Increase::InboundMailItem::Check::Status::TaggedSymbol]
)
end
def self.values
end
end
end

# If the mail item has been rejected, why it was rejected.
Expand Down
28 changes: 25 additions & 3 deletions sig/increase/models/inbound_mail_item.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ module Increase
amount: Integer,
back_file_id: String?,
check_deposit_id: String?,
front_file_id: String?
front_file_id: String?,
status: Increase::Models::InboundMailItem::Check::status?
}

class Check < Increase::Internal::Type::BaseModel
Expand All @@ -73,19 +74,40 @@ module Increase

attr_accessor front_file_id: String?

attr_accessor status: Increase::Models::InboundMailItem::Check::status?

def initialize: (
amount: Integer,
back_file_id: String?,
check_deposit_id: String?,
front_file_id: String?
front_file_id: String?,
status: Increase::Models::InboundMailItem::Check::status?
) -> void

def to_hash: -> {
amount: Integer,
back_file_id: String?,
check_deposit_id: String?,
front_file_id: String?
front_file_id: String?,
status: Increase::Models::InboundMailItem::Check::status?
}

type status = :pending | :deposited | :ignored

module Status
extend Increase::Internal::Type::Enum

# The check is pending processing.
PENDING: :pending

# The check has been deposited.
DEPOSITED: :deposited

# The check has been ignored.
IGNORED: :ignored

def self?.values: -> ::Array[Increase::Models::InboundMailItem::Check::status]
end
end

type rejection_reason =
Expand Down