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.187.0"
".": "1.188.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: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3309070d0c282e00842afa3021c80774f8e1f3a4517959927adfd9ffaa81c94c.yml
openapi_spec_hash: 57927271c019ee8ddd428afa8a57baaf
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-994727afca8b769c05b3531b0e560cfc71b7d2c45a49b54e09bbf73d0dbcaa1f.yml
openapi_spec_hash: bb1c55d7e08fb038a7383976bba226d1
config_hash: 27e44ed36b9c5617b580ead7231a594a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.188.0 (2026-01-30)

Full Changelog: [v1.187.0...v1.188.0](https://github.com/Increase/increase-ruby/compare/v1.187.0...v1.188.0)

### Features

* **api:** api update ([edc7e8c](https://github.com/Increase/increase-ruby/commit/edc7e8c374bf5a108ea08346136ed22be11beca2))

## 1.187.0 (2026-01-30)

Full Changelog: [v1.186.0...v1.187.0](https://github.com/Increase/increase-ruby/compare/v1.186.0...v1.187.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.187.0)
increase (1.188.0)
cgi
connection_pool

Expand Down
18 changes: 9 additions & 9 deletions 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.187.0"
gem "increase", "~> 1.188.0"
```

<!-- x-release-please-end -->
Expand Down Expand Up @@ -273,25 +273,25 @@ increase.accounts.create(**params)
Since this library does not depend on `sorbet-runtime`, it cannot provide [`T::Enum`](https://sorbet.org/docs/tenum) instances. Instead, we provide "tagged symbols" instead, which is always a primitive at runtime:

```ruby
# :active
puts(Increase::AccountNumberUpdateParams::Status::ACTIVE)
# :loan
puts(Increase::AccountCreateParams::Funding::LOAN)

# Revealed type: `T.all(Increase::AccountNumberUpdateParams::Status, Symbol)`
T.reveal_type(Increase::AccountNumberUpdateParams::Status::ACTIVE)
# Revealed type: `T.all(Increase::AccountCreateParams::Funding, Symbol)`
T.reveal_type(Increase::AccountCreateParams::Funding::LOAN)
```

Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:

```ruby
# Using the enum constants preserves the tagged type information:
increase.account_numbers.update(
status: Increase::AccountNumberUpdateParams::Status::ACTIVE,
increase.accounts.create(
funding: Increase::AccountCreateParams::Funding::LOAN,
# …
)

# Literal values are also permissible:
increase.account_numbers.update(
status: :active,
increase.accounts.create(
funding: :loan,
# …
)
```
Expand Down
100 changes: 99 additions & 1 deletion lib/increase/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ class Account < Increase::Internal::Type::BaseModel
# @return [String]
required :entity_id, String

# @!attribute funding
# Whether the Account is funded by a loan or by deposits.
#
# @return [Symbol, Increase::Models::Account::Funding, nil]
required :funding, enum: -> { Increase::Account::Funding }, nil?: true

# @!attribute idempotency_key
# The idempotency key you chose for this object. This value is unique across
# Increase and is used to ensure that a request is only processed once. Learn more
Expand Down Expand Up @@ -89,6 +95,12 @@ class Account < Increase::Internal::Type::BaseModel
# @return [String]
required :interest_rate, String

# @!attribute loan
# The Account's loan-related information, if the Account is a loan account.
#
# @return [Increase::Models::Account::Loan, nil]
required :loan, -> { Increase::Account::Loan }, nil?: true

# @!attribute name
# The name you choose for the Account.
#
Expand All @@ -115,7 +127,7 @@ class Account < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::Account::Type]
required :type, enum: -> { Increase::Account::Type }

# @!method initialize(id:, account_revenue_rate:, bank:, closed_at:, created_at:, currency:, entity_id:, idempotency_key:, informational_entity_id:, interest_accrued:, interest_accrued_at:, interest_rate:, name:, program_id:, status:, type:)
# @!method initialize(id:, account_revenue_rate:, bank:, closed_at:, created_at:, currency:, entity_id:, funding:, idempotency_key:, informational_entity_id:, interest_accrued:, interest_accrued_at:, interest_rate:, loan:, name:, program_id:, status:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::Account} for more details.
#
Expand All @@ -136,6 +148,8 @@ class Account < Increase::Internal::Type::BaseModel
#
# @param entity_id [String] The identifier for the Entity the Account belongs to.
#
# @param funding [Symbol, Increase::Models::Account::Funding, nil] Whether the Account is funded by a loan or by deposits.
#
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
#
# @param informational_entity_id [String, nil] The identifier of an Entity that, while not owning the Account, is associated wi
Expand All @@ -146,6 +160,8 @@ class Account < Increase::Internal::Type::BaseModel
#
# @param interest_rate [String] The interest rate currently being earned on the account, as a string containing
#
# @param loan [Increase::Models::Account::Loan, nil] The Account's loan-related information, if the Account is a loan account.
#
# @param name [String] The name you choose for the Account.
#
# @param program_id [String] The identifier of the Program determining the compliance and commercial terms of
Expand Down Expand Up @@ -187,6 +203,88 @@ module Currency
# @return [Array<Symbol>]
end

# Whether the Account is funded by a loan or by deposits.
#
# @see Increase::Models::Account#funding
module Funding
extend Increase::Internal::Type::Enum

# An account funded by a loan. Before opening a loan account, contact support@increase.com to set up a loan program.
LOAN = :loan

# An account funded by deposits.
DEPOSITS = :deposits

# @!method self.values
# @return [Array<Symbol>]
end

# @see Increase::Models::Account#loan
class Loan < Increase::Internal::Type::BaseModel
# @!attribute credit_limit
# The maximum amount of money that can be borrowed on the Account.
#
# @return [Integer]
required :credit_limit, Integer

# @!attribute grace_period_days
# The number of days after the statement date that the Account can be past due
# before being considered delinquent.
#
# @return [Integer]
required :grace_period_days, Integer

# @!attribute maturity_date
# The date on which the loan matures.
#
# @return [Date, nil]
required :maturity_date, Date, nil?: true

# @!attribute statement_day_of_month
# The day of the month on which the loan statement is generated.
#
# @return [Integer]
required :statement_day_of_month, Integer

# @!attribute statement_payment_type
# The type of payment for the loan.
#
# @return [Symbol, Increase::Models::Account::Loan::StatementPaymentType]
required :statement_payment_type, enum: -> { Increase::Account::Loan::StatementPaymentType }

# @!method initialize(credit_limit:, grace_period_days:, maturity_date:, statement_day_of_month:, statement_payment_type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::Account::Loan} for more details.
#
# The Account's loan-related information, if the Account is a loan account.
#
# @param credit_limit [Integer] The maximum amount of money that can be borrowed on the Account.
#
# @param grace_period_days [Integer] The number of days after the statement date that the Account can be past due bef
#
# @param maturity_date [Date, nil] The date on which the loan matures.
#
# @param statement_day_of_month [Integer] The day of the month on which the loan statement is generated.
#
# @param statement_payment_type [Symbol, Increase::Models::Account::Loan::StatementPaymentType] The type of payment for the loan.

# The type of payment for the loan.
#
# @see Increase::Models::Account::Loan#statement_payment_type
module StatementPaymentType
extend Increase::Internal::Type::Enum

# The borrower must pay the full balance of the loan at the end of the statement period.
BALANCE = :balance

# The borrower must pay the accrued interest at the end of the statement period.
INTEREST_UNTIL_MATURITY = :interest_until_maturity

# @!method self.values
# @return [Array<Symbol>]
end
end

# The status of the Account.
#
# @see Increase::Models::Account#status
Expand Down
97 changes: 96 additions & 1 deletion lib/increase/models/account_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,128 @@ class AccountCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :entity_id, String

# @!attribute funding
# Whether the Account is funded by a loan or by deposits.
#
# @return [Symbol, Increase::Models::AccountCreateParams::Funding, nil]
optional :funding, enum: -> { Increase::AccountCreateParams::Funding }

# @!attribute informational_entity_id
# The identifier of an Entity that, while not owning the Account, is associated
# with its activity. This is generally the beneficiary of the funds.
#
# @return [String, nil]
optional :informational_entity_id, String

# @!attribute loan
# The loan details for the account.
#
# @return [Increase::Models::AccountCreateParams::Loan, nil]
optional :loan, -> { Increase::AccountCreateParams::Loan }

# @!attribute program_id
# The identifier for the Program that this Account falls under. Required if you
# operate more than one Program.
#
# @return [String, nil]
optional :program_id, String

# @!method initialize(name:, entity_id: nil, informational_entity_id: nil, program_id: nil, request_options: {})
# @!method initialize(name:, entity_id: nil, funding: nil, informational_entity_id: nil, loan: nil, program_id: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::AccountCreateParams} for more details.
#
# @param name [String] The name you choose for the Account.
#
# @param entity_id [String] The identifier for the Entity that will own the Account.
#
# @param funding [Symbol, Increase::Models::AccountCreateParams::Funding] Whether the Account is funded by a loan or by deposits.
#
# @param informational_entity_id [String] The identifier of an Entity that, while not owning the Account, is associated wi
#
# @param loan [Increase::Models::AccountCreateParams::Loan] The loan details for the account.
#
# @param program_id [String] The identifier for the Program that this Account falls under. Required if you op
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

# Whether the Account is funded by a loan or by deposits.
module Funding
extend Increase::Internal::Type::Enum

# An account funded by a loan. Before opening a loan account, contact support@increase.com to set up a loan program.
LOAN = :loan

# An account funded by deposits.
DEPOSITS = :deposits

# @!method self.values
# @return [Array<Symbol>]
end

class Loan < Increase::Internal::Type::BaseModel
# @!attribute credit_limit
# The maximum amount of money that can be drawn from the Account.
#
# @return [Integer]
required :credit_limit, Integer

# @!attribute grace_period_days
# The number of days after the statement date that the Account can be past due
# before being considered delinquent.
#
# @return [Integer]
required :grace_period_days, Integer

# @!attribute statement_day_of_month
# The day of the month on which the loan statement is generated.
#
# @return [Integer]
required :statement_day_of_month, Integer

# @!attribute statement_payment_type
# The type of statement payment for the account.
#
# @return [Symbol, Increase::Models::AccountCreateParams::Loan::StatementPaymentType]
required :statement_payment_type, enum: -> { Increase::AccountCreateParams::Loan::StatementPaymentType }

# @!attribute maturity_date
# The date on which the loan matures.
#
# @return [Date, nil]
optional :maturity_date, Date

# @!method initialize(credit_limit:, grace_period_days:, statement_day_of_month:, statement_payment_type:, maturity_date: nil)
# Some parameter documentations has been truncated, see
# {Increase::Models::AccountCreateParams::Loan} for more details.
#
# The loan details for the account.
#
# @param credit_limit [Integer] The maximum amount of money that can be drawn from the Account.
#
# @param grace_period_days [Integer] The number of days after the statement date that the Account can be past due bef
#
# @param statement_day_of_month [Integer] The day of the month on which the loan statement is generated.
#
# @param statement_payment_type [Symbol, Increase::Models::AccountCreateParams::Loan::StatementPaymentType] The type of statement payment for the account.
#
# @param maturity_date [Date] The date on which the loan matures.

# The type of statement payment for the account.
#
# @see Increase::Models::AccountCreateParams::Loan#statement_payment_type
module StatementPaymentType
extend Increase::Internal::Type::Enum

# The borrower must pay the full balance of the loan at the end of the statement period.
BALANCE = :balance

# The borrower must pay the accrued interest at the end of the statement period.
INTEREST_UNTIL_MATURITY = :interest_until_maturity

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
end
Loading