From c4222d890092bb99d6c7226667dcc73f3ecea48c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 Aug 2025 14:11:48 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../inbound_check_deposit_create_params.rb | 36 ++++++++- .../simulations/inbound_check_deposits.rb | 8 +- .../inbound_check_deposit_create_params.rbi | 75 +++++++++++++++++++ .../simulations/inbound_check_deposits.rbi | 6 ++ .../inbound_check_deposit_create_params.rbs | 33 +++++++- .../simulations/inbound_check_deposits.rbs | 1 + 7 files changed, 158 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 160b294b4..7d655a6dd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/lib/increase/models/simulations/inbound_check_deposit_create_params.rb b/lib/increase/models/simulations/inbound_check_deposit_create_params.rb index b440a316f..280256475 100644 --- a/lib/increase/models/simulations/inbound_check_deposit_create_params.rb +++ b/lib/increase/models/simulations/inbound_check_deposit_create_params.rb @@ -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] + end end end end diff --git a/lib/increase/resources/simulations/inbound_check_deposits.rb b/lib/increase/resources/simulations/inbound_check_deposits.rb index 3632861c6..c22e90ab1 100644 --- a/lib/increase/resources/simulations/inbound_check_deposits.rb +++ b/lib/increase/resources/simulations/inbound_check_deposits.rb @@ -4,6 +4,10 @@ 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 @@ -11,7 +15,7 @@ class InboundCheckDeposits # 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. # @@ -19,6 +23,8 @@ class InboundCheckDeposits # # @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] diff --git a/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi b/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi index 4a1c9ffd5..3cb2a10c4 100644 --- a/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi +++ b/rbi/increase/models/simulations/inbound_check_deposit_create_params.rbi @@ -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 @@ -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 @@ -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 diff --git a/rbi/increase/resources/simulations/inbound_check_deposits.rbi b/rbi/increase/resources/simulations/inbound_check_deposits.rbi index 5de17945b..5a06754dd 100644 --- a/rbi/increase/resources/simulations/inbound_check_deposits.rbi +++ b/rbi/increase/resources/simulations/inbound_check_deposits.rbi @@ -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 @@ -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 diff --git a/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs b/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs index 513869dcc..0b1c7dc1d 100644 --- a/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs +++ b/sig/increase/models/simulations/inbound_check_deposit_create_params.rbs @@ -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 @@ -15,10 +20,17 @@ 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 @@ -26,8 +38,27 @@ module Increase 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 diff --git a/sig/increase/resources/simulations/inbound_check_deposits.rbs b/sig/increase/resources/simulations/inbound_check_deposits.rbs index 02948f8d5..0979c1973 100644 --- a/sig/increase/resources/simulations/inbound_check_deposits.rbs +++ b/sig/increase/resources/simulations/inbound_check_deposits.rbs @@ -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 From 4ae3489791ddcd9a157e9bcab9b31e211ae91b6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 Aug 2025 14:12:10 +0000 Subject: [PATCH 2/2] release: 1.60.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 451b00c10..88c2f6498 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.59.0" + ".": "1.60.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aa19d1f7..8e5483491 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 915fb6690..0983177fe 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.59.0) + increase (1.60.0) connection_pool GEM diff --git a/README.md b/README.md index d8263df15..ab9f55bd6 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.59.0" +gem "increase", "~> 1.60.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 34c227239..e90462ce0 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.59.0" + VERSION = "1.60.0" end