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.46.0"
".": "1.47.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: 215
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b2b1b8766fa7146f21f8d4d52ff033e8650a6b25d1d161679959cca0d4153211.yml
openapi_spec_hash: 17af6a2d612ce076f58c585565f98c22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47271d8ef6b398d5273312e3c39405688f782f8ec811ddee55283f5c0bd1a355.yml
openapi_spec_hash: 304a3d8409f0cc03144052411acab7a1
config_hash: 0b0a2503208283b283fc5bc6df6a07a5
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.47.0 (2025-08-22)

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

### Features

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

## 1.46.0 (2025-08-22)

Full Changelog: [v1.45.0...v1.46.0](https://github.com/Increase/increase-ruby/compare/v1.45.0...v1.46.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.46.0)
increase (1.47.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.46.0"
gem "increase", "~> 1.47.0"
```

<!-- x-release-please-end -->
Expand Down
4 changes: 2 additions & 2 deletions lib/increase/internal/type/base_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ def deep_to_h = self.class.recursively_to_h(@data, convert: false)
# # `account` is a `Increase::Account`
# account => {
# id: id,
# bank: bank,
# closed_at: closed_at
# account_revenue_rate: account_revenue_rate,
# bank: bank
# }
def deconstruct_keys(keys)
(keys || self.class.known_fields.keys)
Expand Down
16 changes: 13 additions & 3 deletions lib/increase/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ class Account < Increase::Internal::Type::BaseModel
# @return [String]
required :id, String

# @!attribute account_revenue_rate
# The account revenue rate currently being earned on the account, as a string
# containing a decimal number. For example, a 1% account revenue rate would be
# represented as "0.01".
#
# @return [String, nil]
required :account_revenue_rate, String, nil?: true

# @!attribute bank
# The bank the Account is with.
#
Expand Down Expand Up @@ -73,7 +81,7 @@ class Account < Increase::Internal::Type::BaseModel
required :interest_accrued_at, Date, nil?: true

# @!attribute interest_rate
# The Interest Rate currently being earned on the account, as a string containing
# The interest rate currently being earned on the account, as a string containing
# a decimal number. For example, a 1% interest rate would be represented as
# "0.01".
#
Expand Down Expand Up @@ -106,7 +114,7 @@ class Account < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::Account::Type]
required :type, enum: -> { Increase::Account::Type }

# @!method initialize(id:, 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:, idempotency_key:, informational_entity_id:, interest_accrued:, interest_accrued_at:, interest_rate:, name:, program_id:, status:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::Account} for more details.
#
Expand All @@ -115,6 +123,8 @@ class Account < Increase::Internal::Type::BaseModel
#
# @param id [String] The Account identifier.
#
# @param account_revenue_rate [String, nil] The account revenue rate currently being earned on the account, as a string cont
#
# @param bank [Symbol, Increase::Models::Account::Bank] The bank the Account is with.
#
# @param closed_at [Time, nil] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Account
Expand All @@ -133,7 +143,7 @@ class Account < Increase::Internal::Type::BaseModel
#
# @param interest_accrued_at [Date, nil] The latest [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which inte
#
# @param interest_rate [String] The Interest Rate currently being earned on the account, as a string containing
# @param interest_rate [String] The interest rate currently being earned on the account, as a string containing
#
# @param name [String] The name you choose for the Account.
#
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.46.0"
VERSION = "1.47.0"
end
16 changes: 14 additions & 2 deletions rbi/increase/models/account.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ module Increase
sig { returns(String) }
attr_accessor :id

# The account revenue rate currently being earned on the account, as a string
# containing a decimal number. For example, a 1% account revenue rate would be
# represented as "0.01".
sig { returns(T.nilable(String)) }
attr_accessor :account_revenue_rate

# The bank the Account is with.
sig { returns(Increase::Account::Bank::TaggedSymbol) }
attr_accessor :bank
Expand Down Expand Up @@ -54,7 +60,7 @@ module Increase
sig { returns(T.nilable(Date)) }
attr_accessor :interest_accrued_at

# The Interest Rate currently being earned on the account, as a string containing
# The interest rate currently being earned on the account, as a string containing
# a decimal number. For example, a 1% interest rate would be represented as
# "0.01".
sig { returns(String) }
Expand Down Expand Up @@ -83,6 +89,7 @@ module Increase
sig do
params(
id: String,
account_revenue_rate: T.nilable(String),
bank: Increase::Account::Bank::OrSymbol,
closed_at: T.nilable(Time),
created_at: Time,
Expand All @@ -102,6 +109,10 @@ module Increase
def self.new(
# The Account identifier.
id:,
# The account revenue rate currently being earned on the account, as a string
# containing a decimal number. For example, a 1% account revenue rate would be
# represented as "0.01".
account_revenue_rate:,
# The bank the Account is with.
bank:,
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Account
Expand All @@ -128,7 +139,7 @@ module Increase
# The latest [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which
# interest was accrued.
interest_accrued_at:,
# The Interest Rate currently being earned on the account, as a string containing
# The interest rate currently being earned on the account, as a string containing
# a decimal number. For example, a 1% interest rate would be represented as
# "0.01".
interest_rate:,
Expand All @@ -149,6 +160,7 @@ module Increase
override.returns(
{
id: String,
account_revenue_rate: T.nilable(String),
bank: Increase::Account::Bank::TaggedSymbol,
closed_at: T.nilable(Time),
created_at: Time,
Expand Down
5 changes: 5 additions & 0 deletions sig/increase/models/account.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Increase
type account =
{
id: String,
account_revenue_rate: String?,
bank: Increase::Models::Account::bank,
closed_at: Time?,
created_at: Time,
Expand All @@ -22,6 +23,8 @@ module Increase
class Account < Increase::Internal::Type::BaseModel
attr_accessor id: String

attr_accessor account_revenue_rate: String?

attr_accessor bank: Increase::Models::Account::bank

attr_accessor closed_at: Time?
Expand Down Expand Up @@ -52,6 +55,7 @@ module Increase

def initialize: (
id: String,
account_revenue_rate: String?,
bank: Increase::Models::Account::bank,
closed_at: Time?,
created_at: Time,
Expand All @@ -70,6 +74,7 @@ module Increase

def to_hash: -> {
id: String,
account_revenue_rate: String?,
bank: Increase::Models::Account::bank,
closed_at: Time?,
created_at: Time,
Expand Down
5 changes: 5 additions & 0 deletions test/increase/resources/accounts_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def test_create_required_params
assert_pattern do
response => {
id: String,
account_revenue_rate: String | nil,
bank: Increase::Account::Bank,
closed_at: Time | nil,
created_at: Time,
Expand Down Expand Up @@ -41,6 +42,7 @@ def test_retrieve
assert_pattern do
response => {
id: String,
account_revenue_rate: String | nil,
bank: Increase::Account::Bank,
closed_at: Time | nil,
created_at: Time,
Expand Down Expand Up @@ -69,6 +71,7 @@ def test_update
assert_pattern do
response => {
id: String,
account_revenue_rate: String | nil,
bank: Increase::Account::Bank,
closed_at: Time | nil,
created_at: Time,
Expand Down Expand Up @@ -104,6 +107,7 @@ def test_list
assert_pattern do
row => {
id: String,
account_revenue_rate: String | nil,
bank: Increase::Account::Bank,
closed_at: Time | nil,
created_at: Time,
Expand Down Expand Up @@ -149,6 +153,7 @@ def test_close
assert_pattern do
response => {
id: String,
account_revenue_rate: String | nil,
bank: Increase::Account::Bank,
closed_at: Time | nil,
created_at: Time,
Expand Down