diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f4b11163..cf729909 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.131.0" + ".": "1.132.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 748c5a91..ac4f56fb 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-f55c7bc0881d1c7bcc906156155a0e43c6b8866050f778db3befebe14d42208f.yml -openapi_spec_hash: 78c5274b08b5e7ae5e16da80d733bc10 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-39280e79454a4e6c0e7161b5d92520a3edfc335cce9b198565e57c94daa31b04.yml +openapi_spec_hash: f992030218a4415fcec934bf482cb7ae config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/CHANGELOG.md b/CHANGELOG.md index f59a5069..ebe79ca5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.132.0 (2025-11-06) + +Full Changelog: [v1.131.0...v1.132.0](https://github.com/Increase/increase-ruby/compare/v1.131.0...v1.132.0) + +### Features + +* **api:** api update ([7953810](https://github.com/Increase/increase-ruby/commit/79538102e81f8ec4156a2c5af06b128741a71d9c)) + ## 1.131.0 (2025-11-05) Full Changelog: [v1.130.0...v1.131.0](https://github.com/Increase/increase-ruby/compare/v1.130.0...v1.131.0) diff --git a/Gemfile.lock b/Gemfile.lock index 76dbcf06..f34a403e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.131.0) + increase (1.132.0) connection_pool GEM diff --git a/README.md b/README.md index 7e2538ba..50a3a005 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.131.0" +gem "increase", "~> 1.132.0" ``` diff --git a/lib/increase/models/check_transfer.rb b/lib/increase/models/check_transfer.rb index d973f17f..a467c0ab 100644 --- a/lib/increase/models/check_transfer.rb +++ b/lib/increase/models/check_transfer.rb @@ -164,7 +164,15 @@ class CheckTransfer < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::CheckTransfer::Type] required :type, enum: -> { Increase::CheckTransfer::Type } - # @!method initialize(id:, account_id:, account_number:, amount:, approval:, approved_inbound_check_deposit_id:, balance_check:, cancellation:, check_number:, created_at:, created_by:, currency:, fulfillment_method:, idempotency_key:, mailing:, pending_transaction_id:, physical_check:, routing_number:, source_account_number_id:, status:, stop_payment_request:, submission:, third_party:, type:) + # @!attribute valid_until_date + # If set, the check will be valid on or before this date. After this date, the + # check transfer will be stopped and deposits will not be accepted. For checks + # printed by Increase, this date is included on the check as its expiry. + # + # @return [Date, nil] + required :valid_until_date, Date, nil?: true + + # @!method initialize(id:, account_id:, account_number:, amount:, approval:, approved_inbound_check_deposit_id:, balance_check:, cancellation:, check_number:, created_at:, created_by:, currency:, fulfillment_method:, idempotency_key:, mailing:, pending_transaction_id:, physical_check:, routing_number:, source_account_number_id:, status:, stop_payment_request:, submission:, third_party:, type:, valid_until_date:) # Some parameter documentations has been truncated, see # {Increase::Models::CheckTransfer} for more details. # @@ -218,6 +226,8 @@ class CheckTransfer < Increase::Internal::Type::BaseModel # @param third_party [Increase::Models::CheckTransfer::ThirdParty, nil] Details relating to the custom fulfillment you will perform. Will be present if # # @param type [Symbol, Increase::Models::CheckTransfer::Type] A constant representing the object's type. For this resource it will always be ` + # + # @param valid_until_date [Date, nil] If set, the check will be valid on or before this date. After this date, the che # @see Increase::Models::CheckTransfer#approval class Approval < Increase::Internal::Type::BaseModel diff --git a/lib/increase/models/check_transfer_create_params.rb b/lib/increase/models/check_transfer_create_params.rb index cbe7c600..a3f084ed 100644 --- a/lib/increase/models/check_transfer_create_params.rb +++ b/lib/increase/models/check_transfer_create_params.rb @@ -69,7 +69,15 @@ 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:, balance_check: nil, check_number: nil, physical_check: nil, require_approval: nil, third_party: nil, request_options: {}) + # @!attribute valid_until_date + # If provided, the check will be valid on or before this date. After this date, + # the check transfer will be stopped and deposits will not be accepted. For checks + # printed by Increase, this date is included on the check as its expiry. + # + # @return [Date, nil] + optional :valid_until_date, Date + + # @!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, valid_until_date: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::CheckTransferCreateParams} for more details. # @@ -91,6 +99,8 @@ class CheckTransferCreateParams < Increase::Internal::Type::BaseModel # # @param third_party [Increase::Models::CheckTransferCreateParams::ThirdParty] Details relating to the custom fulfillment you will perform. This is required if # + # @param valid_until_date [Date] If provided, the check will be valid on or before this date. After this date, th + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # Whether Increase will print and mail the check or if you will do it yourself. diff --git a/lib/increase/resources/check_transfers.rb b/lib/increase/resources/check_transfers.rb index 1b512431..aa091b63 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:, balance_check: nil, 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, valid_until_date: nil, request_options: {}) # # @param account_id [String] The identifier for the account that will send the transfer. # @@ -28,6 +28,8 @@ class CheckTransfers # # @param third_party [Increase::Models::CheckTransferCreateParams::ThirdParty] Details relating to the custom fulfillment you will perform. This is required if # + # @param valid_until_date [Date] If provided, the check will be valid on or before this date. After this date, th + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Increase::Models::CheckTransfer] diff --git a/lib/increase/version.rb b/lib/increase/version.rb index dea1b9e5..05df3d28 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.131.0" + VERSION = "1.132.0" end diff --git a/rbi/increase/models/check_transfer.rbi b/rbi/increase/models/check_transfer.rbi index be7bee96..5ebcf0e9 100644 --- a/rbi/increase/models/check_transfer.rbi +++ b/rbi/increase/models/check_transfer.rbi @@ -180,6 +180,12 @@ module Increase sig { returns(Increase::CheckTransfer::Type::TaggedSymbol) } attr_accessor :type + # If set, the check will be valid on or before this date. After this date, the + # check transfer will be stopped and deposits will not be accepted. For checks + # printed by Increase, this date is included on the check as its expiry. + sig { returns(T.nilable(Date)) } + attr_accessor :valid_until_date + # Check Transfers move funds from your Increase account by mailing a physical # check. sig do @@ -212,7 +218,8 @@ module Increase T.nilable(Increase::CheckTransfer::StopPaymentRequest::OrHash), submission: T.nilable(Increase::CheckTransfer::Submission::OrHash), third_party: T.nilable(Increase::CheckTransfer::ThirdParty::OrHash), - type: Increase::CheckTransfer::Type::OrSymbol + type: Increase::CheckTransfer::Type::OrSymbol, + valid_until_date: T.nilable(Date) ).returns(T.attached_class) end def self.new( @@ -279,7 +286,11 @@ module Increase third_party:, # A constant representing the object's type. For this resource it will always be # `check_transfer`. - type: + type:, + # If set, the check will be valid on or before this date. After this date, the + # check transfer will be stopped and deposits will not be accepted. For checks + # printed by Increase, this date is included on the check as its expiry. + valid_until_date: ) end @@ -312,7 +323,8 @@ module Increase T.nilable(Increase::CheckTransfer::StopPaymentRequest), submission: T.nilable(Increase::CheckTransfer::Submission), third_party: T.nilable(Increase::CheckTransfer::ThirdParty), - type: Increase::CheckTransfer::Type::TaggedSymbol + type: Increase::CheckTransfer::Type::TaggedSymbol, + valid_until_date: T.nilable(Date) } ) end diff --git a/rbi/increase/models/check_transfer_create_params.rbi b/rbi/increase/models/check_transfer_create_params.rbi index a1f3c5eb..c30b53c3 100644 --- a/rbi/increase/models/check_transfer_create_params.rbi +++ b/rbi/increase/models/check_transfer_create_params.rbi @@ -99,6 +99,15 @@ module Increase end attr_writer :third_party + # If provided, the check will be valid on or before this date. After this date, + # the check transfer will be stopped and deposits will not be accepted. For checks + # printed by Increase, this date is included on the check as its expiry. + sig { returns(T.nilable(Date)) } + attr_reader :valid_until_date + + sig { params(valid_until_date: Date).void } + attr_writer :valid_until_date + sig do params( account_id: String, @@ -113,6 +122,7 @@ module Increase Increase::CheckTransferCreateParams::PhysicalCheck::OrHash, require_approval: T::Boolean, third_party: Increase::CheckTransferCreateParams::ThirdParty::OrHash, + valid_until_date: Date, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end @@ -143,6 +153,10 @@ module Increase # `fulfillment_method` is equal to `third_party`. It must not be included if any # other `fulfillment_method` is provided. third_party: nil, + # If provided, the check will be valid on or before this date. After this date, + # the check transfer will be stopped and deposits will not be accepted. For checks + # printed by Increase, this date is included on the check as its expiry. + valid_until_date: nil, request_options: {} ) end @@ -161,6 +175,7 @@ module Increase physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, require_approval: T::Boolean, third_party: Increase::CheckTransferCreateParams::ThirdParty, + valid_until_date: Date, request_options: Increase::RequestOptions } ) diff --git a/rbi/increase/resources/check_transfers.rbi b/rbi/increase/resources/check_transfers.rbi index 01da67f1..6e460fe3 100644 --- a/rbi/increase/resources/check_transfers.rbi +++ b/rbi/increase/resources/check_transfers.rbi @@ -18,6 +18,7 @@ module Increase Increase::CheckTransferCreateParams::PhysicalCheck::OrHash, require_approval: T::Boolean, third_party: Increase::CheckTransferCreateParams::ThirdParty::OrHash, + valid_until_date: Date, request_options: Increase::RequestOptions::OrHash ).returns(Increase::CheckTransfer) end @@ -48,6 +49,10 @@ module Increase # `fulfillment_method` is equal to `third_party`. It must not be included if any # other `fulfillment_method` is provided. third_party: nil, + # If provided, the check will be valid on or before this date. After this date, + # the check transfer will be stopped and deposits will not be accepted. For checks + # printed by Increase, this date is included on the check as its expiry. + valid_until_date: nil, request_options: {} ) end diff --git a/sig/increase/models/check_transfer.rbs b/sig/increase/models/check_transfer.rbs index e1e57f45..644af5e6 100644 --- a/sig/increase/models/check_transfer.rbs +++ b/sig/increase/models/check_transfer.rbs @@ -25,7 +25,8 @@ module Increase stop_payment_request: Increase::CheckTransfer::StopPaymentRequest?, submission: Increase::CheckTransfer::Submission?, third_party: Increase::CheckTransfer::ThirdParty?, - type: Increase::Models::CheckTransfer::type_ + type: Increase::Models::CheckTransfer::type_, + valid_until_date: Date? } class CheckTransfer < Increase::Internal::Type::BaseModel @@ -77,6 +78,8 @@ module Increase attr_accessor type: Increase::Models::CheckTransfer::type_ + attr_accessor valid_until_date: Date? + def initialize: ( id: String, account_id: String, @@ -101,7 +104,8 @@ module Increase stop_payment_request: Increase::CheckTransfer::StopPaymentRequest?, submission: Increase::CheckTransfer::Submission?, third_party: Increase::CheckTransfer::ThirdParty?, - type: Increase::Models::CheckTransfer::type_ + type: Increase::Models::CheckTransfer::type_, + valid_until_date: Date? ) -> void def to_hash: -> { @@ -128,7 +132,8 @@ module Increase stop_payment_request: Increase::CheckTransfer::StopPaymentRequest?, submission: Increase::CheckTransfer::Submission?, third_party: Increase::CheckTransfer::ThirdParty?, - type: Increase::Models::CheckTransfer::type_ + type: Increase::Models::CheckTransfer::type_, + valid_until_date: Date? } type approval = { approved_at: Time, approved_by: String? } diff --git a/sig/increase/models/check_transfer_create_params.rbs b/sig/increase/models/check_transfer_create_params.rbs index a4aa9bd8..11fa5bb5 100644 --- a/sig/increase/models/check_transfer_create_params.rbs +++ b/sig/increase/models/check_transfer_create_params.rbs @@ -10,7 +10,8 @@ module Increase check_number: String, physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, require_approval: bool, - third_party: Increase::CheckTransferCreateParams::ThirdParty + third_party: Increase::CheckTransferCreateParams::ThirdParty, + valid_until_date: Date } & Increase::Internal::Type::request_parameters @@ -52,6 +53,10 @@ module Increase Increase::CheckTransferCreateParams::ThirdParty ) -> Increase::CheckTransferCreateParams::ThirdParty + attr_reader valid_until_date: Date? + + def valid_until_date=: (Date) -> Date + def initialize: ( account_id: String, amount: Integer, @@ -62,6 +67,7 @@ module Increase ?physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, ?require_approval: bool, ?third_party: Increase::CheckTransferCreateParams::ThirdParty, + ?valid_until_date: Date, ?request_options: Increase::request_opts ) -> void @@ -75,6 +81,7 @@ module Increase physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, require_approval: bool, third_party: Increase::CheckTransferCreateParams::ThirdParty, + valid_until_date: Date, request_options: Increase::RequestOptions } diff --git a/sig/increase/resources/check_transfers.rbs b/sig/increase/resources/check_transfers.rbs index b175571c..e947cb99 100644 --- a/sig/increase/resources/check_transfers.rbs +++ b/sig/increase/resources/check_transfers.rbs @@ -11,6 +11,7 @@ module Increase ?physical_check: Increase::CheckTransferCreateParams::PhysicalCheck, ?require_approval: bool, ?third_party: Increase::CheckTransferCreateParams::ThirdParty, + ?valid_until_date: Date, ?request_options: Increase::request_opts ) -> Increase::CheckTransfer diff --git a/test/increase/resources/check_transfers_test.rb b/test/increase/resources/check_transfers_test.rb index dd8e9e4a..ede9bee7 100644 --- a/test/increase/resources/check_transfers_test.rb +++ b/test/increase/resources/check_transfers_test.rb @@ -41,7 +41,8 @@ def test_create_required_params stop_payment_request: Increase::CheckTransfer::StopPaymentRequest | nil, submission: Increase::CheckTransfer::Submission | nil, third_party: Increase::CheckTransfer::ThirdParty | nil, - type: Increase::CheckTransfer::Type + type: Increase::CheckTransfer::Type, + valid_until_date: Date | nil } end end @@ -78,7 +79,8 @@ def test_retrieve stop_payment_request: Increase::CheckTransfer::StopPaymentRequest | nil, submission: Increase::CheckTransfer::Submission | nil, third_party: Increase::CheckTransfer::ThirdParty | nil, - type: Increase::CheckTransfer::Type + type: Increase::CheckTransfer::Type, + valid_until_date: Date | nil } end end @@ -122,7 +124,8 @@ def test_list stop_payment_request: Increase::CheckTransfer::StopPaymentRequest | nil, submission: Increase::CheckTransfer::Submission | nil, third_party: Increase::CheckTransfer::ThirdParty | nil, - type: Increase::CheckTransfer::Type + type: Increase::CheckTransfer::Type, + valid_until_date: Date | nil } end end @@ -159,7 +162,8 @@ def test_approve stop_payment_request: Increase::CheckTransfer::StopPaymentRequest | nil, submission: Increase::CheckTransfer::Submission | nil, third_party: Increase::CheckTransfer::ThirdParty | nil, - type: Increase::CheckTransfer::Type + type: Increase::CheckTransfer::Type, + valid_until_date: Date | nil } end end @@ -196,7 +200,8 @@ def test_cancel stop_payment_request: Increase::CheckTransfer::StopPaymentRequest | nil, submission: Increase::CheckTransfer::Submission | nil, third_party: Increase::CheckTransfer::ThirdParty | nil, - type: Increase::CheckTransfer::Type + type: Increase::CheckTransfer::Type, + valid_until_date: Date | nil } end end @@ -233,7 +238,8 @@ def test_stop_payment stop_payment_request: Increase::CheckTransfer::StopPaymentRequest | nil, submission: Increase::CheckTransfer::Submission | nil, third_party: Increase::CheckTransfer::ThirdParty | nil, - type: Increase::CheckTransfer::Type + type: Increase::CheckTransfer::Type, + valid_until_date: Date | nil } end end diff --git a/test/increase/resources/simulations/check_transfers_test.rb b/test/increase/resources/simulations/check_transfers_test.rb index a060317d..48107305 100644 --- a/test/increase/resources/simulations/check_transfers_test.rb +++ b/test/increase/resources/simulations/check_transfers_test.rb @@ -35,7 +35,8 @@ def test_mail stop_payment_request: Increase::CheckTransfer::StopPaymentRequest | nil, submission: Increase::CheckTransfer::Submission | nil, third_party: Increase::CheckTransfer::ThirdParty | nil, - type: Increase::CheckTransfer::Type + type: Increase::CheckTransfer::Type, + valid_until_date: Date | nil } end end