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

<!-- x-release-please-end -->
Expand Down
26 changes: 25 additions & 1 deletion lib/increase/models/check_transfer_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
#
Expand All @@ -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
Expand All @@ -98,6 +107,21 @@ module FulfillmentMethod
# @return [Array<Symbol>]
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<Symbol>]
end

class PhysicalCheck < Increase::Internal::Type::BaseModel
# @!attribute mailing_address
# Details for where Increase will mail the check.
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:, 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.
#
Expand All @@ -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
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.123.0"
VERSION = "1.124.0"
end
60 changes: 60 additions & 0 deletions rbi/increase/models/check_transfer_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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,
Expand Down Expand Up @@ -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
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 @@ -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,
Expand All @@ -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.
Expand Down
23 changes: 23 additions & 0 deletions sig/increase/models/check_transfer_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
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 @@ -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,
Expand Down