From bde025b5a1b255929e2a409fd6581d2db4f0ffe0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 22 Aug 2025 16:23:28 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- lib/increase/internal/type/base_model.rb | 4 ++-- lib/increase/models/account.rb | 16 +++++++++++++--- rbi/increase/models/account.rbi | 16 ++++++++++++++-- sig/increase/models/account.rbs | 5 +++++ test/increase/resources/accounts_test.rb | 5 +++++ 6 files changed, 41 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ff82d3b6..267b1ca2c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/lib/increase/internal/type/base_model.rb b/lib/increase/internal/type/base_model.rb index 561910e40..a8935461b 100644 --- a/lib/increase/internal/type/base_model.rb +++ b/lib/increase/internal/type/base_model.rb @@ -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) diff --git a/lib/increase/models/account.rb b/lib/increase/models/account.rb index 1d6bedb3f..4cf2ffd70 100644 --- a/lib/increase/models/account.rb +++ b/lib/increase/models/account.rb @@ -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. # @@ -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". # @@ -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. # @@ -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 @@ -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. # diff --git a/rbi/increase/models/account.rbi b/rbi/increase/models/account.rbi index 20e2ca6a9..4e5dc437b 100644 --- a/rbi/increase/models/account.rbi +++ b/rbi/increase/models/account.rbi @@ -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 @@ -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) } @@ -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, @@ -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 @@ -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:, @@ -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, diff --git a/sig/increase/models/account.rbs b/sig/increase/models/account.rbs index 88c11de58..472b2cf10 100644 --- a/sig/increase/models/account.rbs +++ b/sig/increase/models/account.rbs @@ -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, @@ -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? @@ -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, @@ -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, diff --git a/test/increase/resources/accounts_test.rb b/test/increase/resources/accounts_test.rb index 8031c0d9a..4614bc94f 100644 --- a/test/increase/resources/accounts_test.rb +++ b/test/increase/resources/accounts_test.rb @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, From 1ee33c277e19f16eb2d3a50539729125fe6eb5bb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 22 Aug 2025 16:23:50 +0000 Subject: [PATCH 2/2] release: 1.47.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4b6cc3c89..dc9bcb375 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.46.0" + ".": "1.47.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 87fc8758a..06e6dfec1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 3ffc9d55a..6d9d1d5c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.46.0) + increase (1.47.0) connection_pool GEM diff --git a/README.md b/README.md index fc3a44ab2..c78c8fca1 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.46.0" +gem "increase", "~> 1.47.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 83554fa8d..37cd7ccd7 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.46.0" + VERSION = "1.47.0" end