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.131.0"
".": "1.132.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-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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.131.0)
increase (1.132.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.131.0"
gem "increase", "~> 1.132.0"
```

<!-- x-release-please-end -->
Expand Down
12 changes: 11 additions & 1 deletion lib/increase/models/check_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion lib/increase/models/check_transfer_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/check_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -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]
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.131.0"
VERSION = "1.132.0"
end
18 changes: 15 additions & 3 deletions rbi/increase/models/check_transfer.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions rbi/increase/models/check_transfer_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
}
)
Expand Down
5 changes: 5 additions & 0 deletions rbi/increase/resources/check_transfers.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
11 changes: 8 additions & 3 deletions sig/increase/models/check_transfer.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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: -> {
Expand All @@ -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? }
Expand Down
9 changes: 8 additions & 1 deletion sig/increase/models/check_transfer_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand All @@ -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

Expand All @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions sig/increase/resources/check_transfers.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 12 additions & 6 deletions test/increase/resources/check_transfers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion test/increase/resources/simulations/check_transfers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down