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.186.0"
".": "1.187.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-a822d0695f48967e594a88eef888b826cd51b62959bd4b3d0163b7d010bab969.yml
openapi_spec_hash: 95ea277ed84c04aefd25bcb63ae4e2e5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3309070d0c282e00842afa3021c80774f8e1f3a4517959927adfd9ffaa81c94c.yml
openapi_spec_hash: 57927271c019ee8ddd428afa8a57baaf
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.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)

### Features

* **api:** api update ([47c0b0d](https://github.com/Increase/increase-ruby/commit/47c0b0d6d71c02b51d865906d17e645302e68069))

## 1.186.0 (2026-01-28)

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

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.186.0"
gem "increase", "~> 1.187.0"
```

<!-- x-release-please-end -->
Expand Down
14 changes: 1 addition & 13 deletions lib/increase/models/account_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,13 @@ class AccountUpdateParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!attribute credit_limit
# The new credit limit of the Account, if and only if the Account is a loan
# account.
#
# @return [Integer, nil]
optional :credit_limit, Integer

# @!attribute name
# The new name of the Account.
#
# @return [String, nil]
optional :name, String

# @!method initialize(credit_limit: nil, name: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::AccountUpdateParams} for more details.
#
# @param credit_limit [Integer] The new credit limit of the Account, if and only if the Account is a loan accoun
#
# @!method initialize(name: nil, request_options: {})
# @param name [String] The new name of the Account.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
Expand Down
7 changes: 1 addition & 6 deletions lib/increase/resources/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,12 @@ def retrieve(account_id, params = {})
)
end

# Some parameter documentations has been truncated, see
# {Increase::Models::AccountUpdateParams} for more details.
#
# Update an Account
#
# @overload update(account_id, credit_limit: nil, name: nil, request_options: {})
# @overload update(account_id, name: nil, request_options: {})
#
# @param account_id [String] The identifier of the Account to update.
#
# @param credit_limit [Integer] The new credit limit of the Account, if and only if the Account is a loan accoun
#
# @param name [String] The new name of the Account.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
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.186.0"
VERSION = "1.187.0"
end
18 changes: 1 addition & 17 deletions rbi/increase/models/account_update_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ module Increase
T.any(Increase::AccountUpdateParams, Increase::Internal::AnyHash)
end

# The new credit limit of the Account, if and only if the Account is a loan
# account.
sig { returns(T.nilable(Integer)) }
attr_reader :credit_limit

sig { params(credit_limit: Integer).void }
attr_writer :credit_limit

# The new name of the Account.
sig { returns(T.nilable(String)) }
attr_reader :name
Expand All @@ -28,15 +20,11 @@ module Increase

sig do
params(
credit_limit: Integer,
name: String,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
# The new credit limit of the Account, if and only if the Account is a loan
# account.
credit_limit: nil,
# The new name of the Account.
name: nil,
request_options: {}
Expand All @@ -45,11 +33,7 @@ module Increase

sig do
override.returns(
{
credit_limit: Integer,
name: String,
request_options: Increase::RequestOptions
}
{ name: String, request_options: Increase::RequestOptions }
)
end
def to_hash
Expand Down
4 changes: 0 additions & 4 deletions rbi/increase/resources/accounts.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,13 @@ module Increase
sig do
params(
account_id: String,
credit_limit: Integer,
name: String,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::Account)
end
def update(
# The identifier of the Account to update.
account_id,
# The new credit limit of the Account, if and only if the Account is a loan
# account.
credit_limit: nil,
# The new name of the Account.
name: nil,
request_options: {}
Expand Down
9 changes: 1 addition & 8 deletions sig/increase/models/account_update_params.rbs
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
module Increase
module Models
type account_update_params =
{ credit_limit: Integer, name: String }
& Increase::Internal::Type::request_parameters
{ name: String } & Increase::Internal::Type::request_parameters

class AccountUpdateParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

attr_reader credit_limit: Integer?

def credit_limit=: (Integer) -> Integer

attr_reader name: String?

def name=: (String) -> String

def initialize: (
?credit_limit: Integer,
?name: String,
?request_options: Increase::request_opts
) -> void

def to_hash: -> {
credit_limit: Integer,
name: String,
request_options: Increase::RequestOptions
}
Expand Down
1 change: 0 additions & 1 deletion sig/increase/resources/accounts.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module Increase

def update: (
String account_id,
?credit_limit: Integer,
?name: String,
?request_options: Increase::request_opts
) -> Increase::Account
Expand Down