From be63516bf8582ce0bb6e44202324e4d7b504fc43 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 15:57:46 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/inbound_mail_item.rb | 29 ++++++++++- rbi/increase/models/inbound_mail_item.rbi | 62 +++++++++++++++++++++-- sig/increase/models/inbound_mail_item.rbs | 28 ++++++++-- 4 files changed, 114 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index f961ed3c..4b31e982 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/lib/increase/models/inbound_mail_item.rb b/lib/increase/models/inbound_mail_item.rb index 3ae3d225..96741066 100644 --- a/lib/increase/models/inbound_mail_item.rb +++ b/lib/increase/models/inbound_mail_item.rb @@ -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. @@ -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] + end end # If the mail item has been rejected, why it was rejected. diff --git a/rbi/increase/models/inbound_mail_item.rbi b/rbi/increase/models/inbound_mail_item.rbi index e8f8544c..6cd3bc4e 100644 --- a/rbi/increase/models/inbound_mail_item.rbi +++ b/rbi/increase/models/inbound_mail_item.rbi @@ -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( @@ -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 @@ -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. diff --git a/sig/increase/models/inbound_mail_item.rbs b/sig/increase/models/inbound_mail_item.rbs index 1a73d536..faf0fda0 100644 --- a/sig/increase/models/inbound_mail_item.rbs +++ b/sig/increase/models/inbound_mail_item.rbs @@ -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 @@ -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 = From 4c9fc7fe007a04175b16506de62b1a2785fddc0b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 15:58:09 +0000 Subject: [PATCH 2/2] release: 1.135.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 12b373a5..3d77fc09 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.134.0" + ".": "1.135.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c7f799dc..9960cab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index aaadbfa9..6438769f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.134.0) + increase (1.135.0) connection_pool GEM diff --git a/README.md b/README.md index c47e0ec8..023d6f3f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.134.0" +gem "increase", "~> 1.135.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index b4f3807e..1edf8a2c 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.134.0" + VERSION = "1.135.0" end