diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a6f2adab..3f9da571 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.123.0" + ".": "1.124.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7f33565d..1c0a751d 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-fd1e9a0d66098ce0c20cb6c15bbb8c26a8662d52730907deb4a179aebd6b89d6.yml -openapi_spec_hash: 2139b75a9f653c413775fb96f70ba794 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-29da995f8b04baed0eb2b6b038bc14f3165a3e1eae15b7a1136cce323d132bfd.yml +openapi_spec_hash: ff369b84b7477f46c3f3e3edeecaf176 config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/CHANGELOG.md b/CHANGELOG.md index 919f6f60..d3b09da8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.124.0 (2025-10-30) + +Full Changelog: [v1.123.0...v1.124.0](https://github.com/Increase/increase-ruby/compare/v1.123.0...v1.124.0) + +### Features + +* **api:** api update ([47c2289](https://github.com/Increase/increase-ruby/commit/47c2289b57e327e94599112b37f716e6af2f5211)) + ## 1.123.0 (2025-10-30) Full Changelog: [v1.122.0...v1.123.0](https://github.com/Increase/increase-ruby/compare/v1.122.0...v1.123.0) diff --git a/Gemfile.lock b/Gemfile.lock index 29916cb5..ee92617c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.123.0) + increase (1.124.0) connection_pool GEM diff --git a/README.md b/README.md index 2d006d6a..d50daf13 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.123.0" +gem "increase", "~> 1.124.0" ``` diff --git a/lib/increase/models/check_transfer_create_params.rb b/lib/increase/models/check_transfer_create_params.rb index d03c4152..efc3fbc9 100644 --- a/lib/increase/models/check_transfer_create_params.rb +++ b/lib/increase/models/check_transfer_create_params.rb @@ -32,6 +32,13 @@ class CheckTransferCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :source_account_number_id, String + # @!attribute balance_check + # How the account's available balance should be checked. Please contact + # [support@increase.com](mailto:support@increase.com) to enable this parameter. + # + # @return [Symbol, Increase::Models::CheckTransferCreateParams::BalanceCheck, nil] + optional :balance_check, enum: -> { Increase::CheckTransferCreateParams::BalanceCheck } + # @!attribute check_number # The check number Increase should use for the check. This should not contain # leading zeroes and must be unique across the `source_account_number`. If this is @@ -62,7 +69,7 @@ class CheckTransferCreateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::CheckTransferCreateParams::ThirdParty, nil] optional :third_party, -> { Increase::CheckTransferCreateParams::ThirdParty } - # @!method initialize(account_id:, amount:, fulfillment_method:, source_account_number_id:, check_number: nil, physical_check: nil, require_approval: nil, third_party: nil, request_options: {}) + # @!method initialize(account_id:, amount:, fulfillment_method:, source_account_number_id:, balance_check: nil, check_number: nil, physical_check: nil, require_approval: nil, third_party: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::CheckTransferCreateParams} for more details. # @@ -74,6 +81,8 @@ class CheckTransferCreateParams < Increase::Internal::Type::BaseModel # # @param source_account_number_id [String] The identifier of the Account Number from which to send the transfer and print o # + # @param balance_check [Symbol, Increase::Models::CheckTransferCreateParams::BalanceCheck] How the account's available balance should be checked. Please contact [support@i + # # @param check_number [String] The check number Increase should use for the check. This should not contain lead # # @param physical_check [Increase::Models::CheckTransferCreateParams::PhysicalCheck] Details relating to the physical check that Increase will print and mail. This i @@ -98,6 +107,21 @@ module FulfillmentMethod # @return [Array] end + # How the account's available balance should be checked. Please contact + # [support@increase.com](mailto:support@increase.com) to enable this parameter. + module BalanceCheck + extend Increase::Internal::Type::Enum + + # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount. + FULL = :full + + # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created. + NONE = :none + + # @!method self.values + # @return [Array] + end + class PhysicalCheck < Increase::Internal::Type::BaseModel # @!attribute mailing_address # Details for where Increase will mail the check. diff --git a/lib/increase/resources/check_transfers.rb b/lib/increase/resources/check_transfers.rb index 0c438a39..f04bbebd 100644 --- a/lib/increase/resources/check_transfers.rb +++ b/lib/increase/resources/check_transfers.rb @@ -8,7 +8,7 @@ class CheckTransfers # # Create a Check Transfer # - # @overload create(account_id:, amount:, fulfillment_method:, source_account_number_id:, check_number: nil, physical_check: nil, require_approval: nil, third_party: nil, request_options: {}) + # @overload create(account_id:, amount:, fulfillment_method:, source_account_number_id:, balance_check: nil, check_number: nil, physical_check: nil, require_approval: nil, third_party: nil, request_options: {}) # # @param account_id [String] The identifier for the account that will send the transfer. # @@ -18,6 +18,8 @@ class CheckTransfers # # @param source_account_number_id [String] The identifier of the Account Number from which to send the transfer and print o # + # @param balance_check [Symbol, Increase::Models::CheckTransferCreateParams::BalanceCheck] How the account's available balance should be checked. Please contact [support@i + # # @param check_number [String] The check number Increase should use for the check. This should not contain lead # # @param physical_check [Increase::Models::CheckTransferCreateParams::PhysicalCheck] Details relating to the physical check that Increase will print and mail. This i diff --git a/lib/increase/version.rb b/lib/increase/version.rb index cdcc0f76..7cca0f68 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.123.0" + VERSION = "1.124.0" end diff --git a/rbi/increase/models/check_transfer_create_params.rbi b/rbi/increase/models/check_transfer_create_params.rbi index 13d80174..f192aab8 100644 --- a/rbi/increase/models/check_transfer_create_params.rbi +++ b/rbi/increase/models/check_transfer_create_params.rbi @@ -35,6 +35,23 @@ module Increase sig { returns(String) } attr_accessor :source_account_number_id + # How the account's available balance should be checked. Please contact + # [support@increase.com](mailto:support@increase.com) to enable this parameter. + sig do + returns( + T.nilable(Increase::CheckTransferCreateParams::BalanceCheck::OrSymbol) + ) + end + attr_reader :balance_check + + sig do + params( + balance_check: + Increase::CheckTransferCreateParams::BalanceCheck::OrSymbol + ).void + end + attr_writer :balance_check + # The check number Increase should use for the check. This should not contain # leading zeroes and must be unique across the `source_account_number`. If this is # omitted, Increase will generate a check number for you. @@ -89,6 +106,8 @@ module Increase fulfillment_method: Increase::CheckTransferCreateParams::FulfillmentMethod::OrSymbol, source_account_number_id: String, + balance_check: + Increase::CheckTransferCreateParams::BalanceCheck::OrSymbol, check_number: String, physical_check: Increase::CheckTransferCreateParams::PhysicalCheck::OrHash, @@ -107,6 +126,9 @@ module Increase # The identifier of the Account Number from which to send the transfer and print # on the check. source_account_number_id:, + # How the account's available balance should be checked. Please contact + # [support@increase.com](mailto:support@increase.com) to enable this parameter. + balance_check: nil, # The check number Increase should use for the check. This should not contain # leading zeroes and must be unique across the `source_account_number`. If this is # omitted, Increase will generate a check number for you. @@ -133,6 +155,8 @@ module Increase fulfillment_method: Increase::CheckTransferCreateParams::FulfillmentMethod::OrSymbol, source_account_number_id: String, + balance_check: + Increase::CheckTransferCreateParams::BalanceCheck::OrSymbol, check_number: String, physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, require_approval: T::Boolean, @@ -182,6 +206,42 @@ module Increase end end + # How the account's available balance should be checked. Please contact + # [support@increase.com](mailto:support@increase.com) to enable this parameter. + module BalanceCheck + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::CheckTransferCreateParams::BalanceCheck) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount. + FULL = + T.let( + :full, + Increase::CheckTransferCreateParams::BalanceCheck::TaggedSymbol + ) + + # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created. + NONE = + T.let( + :none, + Increase::CheckTransferCreateParams::BalanceCheck::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::CheckTransferCreateParams::BalanceCheck::TaggedSymbol + ] + ) + end + def self.values + end + end + class PhysicalCheck < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/resources/check_transfers.rbi b/rbi/increase/resources/check_transfers.rbi index bb65fe91..bd136835 100644 --- a/rbi/increase/resources/check_transfers.rbi +++ b/rbi/increase/resources/check_transfers.rbi @@ -11,6 +11,8 @@ module Increase fulfillment_method: Increase::CheckTransferCreateParams::FulfillmentMethod::OrSymbol, source_account_number_id: String, + balance_check: + Increase::CheckTransferCreateParams::BalanceCheck::OrSymbol, check_number: String, physical_check: Increase::CheckTransferCreateParams::PhysicalCheck::OrHash, @@ -29,6 +31,9 @@ module Increase # The identifier of the Account Number from which to send the transfer and print # on the check. source_account_number_id:, + # How the account's available balance should be checked. Please contact + # [support@increase.com](mailto:support@increase.com) to enable this parameter. + balance_check: nil, # The check number Increase should use for the check. This should not contain # leading zeroes and must be unique across the `source_account_number`. If this is # omitted, Increase will generate a check number for you. diff --git a/sig/increase/models/check_transfer_create_params.rbs b/sig/increase/models/check_transfer_create_params.rbs index 0e6bd38a..0c1e3372 100644 --- a/sig/increase/models/check_transfer_create_params.rbs +++ b/sig/increase/models/check_transfer_create_params.rbs @@ -6,6 +6,7 @@ module Increase amount: Integer, fulfillment_method: Increase::Models::CheckTransferCreateParams::fulfillment_method, source_account_number_id: String, + balance_check: Increase::Models::CheckTransferCreateParams::balance_check, check_number: String, physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, require_approval: bool, @@ -25,6 +26,12 @@ module Increase attr_accessor source_account_number_id: String + attr_reader balance_check: Increase::Models::CheckTransferCreateParams::balance_check? + + def balance_check=: ( + Increase::Models::CheckTransferCreateParams::balance_check + ) -> Increase::Models::CheckTransferCreateParams::balance_check + attr_reader check_number: String? def check_number=: (String) -> String @@ -50,6 +57,7 @@ module Increase amount: Integer, fulfillment_method: Increase::Models::CheckTransferCreateParams::fulfillment_method, source_account_number_id: String, + ?balance_check: Increase::Models::CheckTransferCreateParams::balance_check, ?check_number: String, ?physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, ?require_approval: bool, @@ -62,6 +70,7 @@ module Increase amount: Integer, fulfillment_method: Increase::Models::CheckTransferCreateParams::fulfillment_method, source_account_number_id: String, + balance_check: Increase::Models::CheckTransferCreateParams::balance_check, check_number: String, physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, require_approval: bool, @@ -83,6 +92,20 @@ module Increase def self?.values: -> ::Array[Increase::Models::CheckTransferCreateParams::fulfillment_method] end + type balance_check = :full | :none + + module BalanceCheck + extend Increase::Internal::Type::Enum + + # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount. + FULL: :full + + # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created. + NONE: :none + + def self?.values: -> ::Array[Increase::Models::CheckTransferCreateParams::balance_check] + end + type physical_check = { mailing_address: Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress, diff --git a/sig/increase/resources/check_transfers.rbs b/sig/increase/resources/check_transfers.rbs index 19aa9e4f..b175571c 100644 --- a/sig/increase/resources/check_transfers.rbs +++ b/sig/increase/resources/check_transfers.rbs @@ -6,6 +6,7 @@ module Increase amount: Integer, fulfillment_method: Increase::Models::CheckTransferCreateParams::fulfillment_method, source_account_number_id: String, + ?balance_check: Increase::Models::CheckTransferCreateParams::balance_check, ?check_number: String, ?physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, ?require_approval: bool,