diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f94eeca26..e72f11310 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.13.0" + ".": "1.14.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 076aae75a..b26d90908 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c9d527ceb849bd9a01edc968016381f25fcc375a1409eb113d7e876ae0f2f529.yml -openapi_spec_hash: c7820089282fc6db267d08eaa465075f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7f26440e2137fb4f39521c361e76d56bad7c56d81cd06d0677d7735e73f7c160.yml +openapi_spec_hash: aa475d425f493e41eb8485ae17a3d0f9 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/CHANGELOG.md b/CHANGELOG.md index 83f833139..d68ba999d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.14.0 (2025-07-18) + +Full Changelog: [v1.13.0...v1.14.0](https://github.com/Increase/increase-ruby/compare/v1.13.0...v1.14.0) + +### Features + +* **api:** api update ([aff39de](https://github.com/Increase/increase-ruby/commit/aff39de155a064d2c7b2640a6d31fcb400caf63b)) + ## 1.13.0 (2025-07-11) Full Changelog: [v1.12.0...v1.13.0](https://github.com/Increase/increase-ruby/compare/v1.12.0...v1.13.0) diff --git a/Gemfile.lock b/Gemfile.lock index b34b01f83..3bab1f0ac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.13.0) + increase (1.14.0) connection_pool GEM diff --git a/README.md b/README.md index c8d971570..9dcf1e82b 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.13.0" +gem "increase", "~> 1.14.0" ``` diff --git a/lib/increase/models/account_update_params.rb b/lib/increase/models/account_update_params.rb index 344104bcf..8f75643db 100644 --- a/lib/increase/models/account_update_params.rb +++ b/lib/increase/models/account_update_params.rb @@ -7,13 +7,25 @@ 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(name: nil, request_options: {}) + # @!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 + # # @param name [String] The new name of the Account. # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/increase/resources/accounts.rb b/lib/increase/resources/accounts.rb index 067ab836c..41270d80b 100644 --- a/lib/increase/resources/accounts.rb +++ b/lib/increase/resources/accounts.rb @@ -54,12 +54,17 @@ 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, name: nil, request_options: {}) + # @overload update(account_id, credit_limit: nil, 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] diff --git a/lib/increase/version.rb b/lib/increase/version.rb index ed341cc7d..79f3d932f 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.13.0" + VERSION = "1.14.0" end diff --git a/rbi/increase/models/account_update_params.rbi b/rbi/increase/models/account_update_params.rbi index 81cf5c0a8..33df42d2b 100644 --- a/rbi/increase/models/account_update_params.rbi +++ b/rbi/increase/models/account_update_params.rbi @@ -11,6 +11,14 @@ 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 @@ -20,11 +28,15 @@ 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: {} @@ -33,7 +45,11 @@ module Increase sig do override.returns( - { name: String, request_options: Increase::RequestOptions } + { + credit_limit: Integer, + name: String, + request_options: Increase::RequestOptions + } ) end def to_hash diff --git a/rbi/increase/resources/accounts.rbi b/rbi/increase/resources/accounts.rbi index 21ab1bd07..2aebed77b 100644 --- a/rbi/increase/resources/accounts.rbi +++ b/rbi/increase/resources/accounts.rbi @@ -46,6 +46,7 @@ module Increase sig do params( account_id: String, + credit_limit: Integer, name: String, request_options: Increase::RequestOptions::OrHash ).returns(Increase::Account) @@ -53,6 +54,9 @@ module Increase 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: {} diff --git a/sig/increase/models/account_update_params.rbs b/sig/increase/models/account_update_params.rbs index c72443515..33cb839e9 100644 --- a/sig/increase/models/account_update_params.rbs +++ b/sig/increase/models/account_update_params.rbs @@ -1,22 +1,29 @@ module Increase module Models type account_update_params = - { name: String } & Increase::Internal::Type::request_parameters + { credit_limit: Integer, 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 } diff --git a/sig/increase/resources/accounts.rbs b/sig/increase/resources/accounts.rbs index 99070a3aa..a9114738a 100644 --- a/sig/increase/resources/accounts.rbs +++ b/sig/increase/resources/accounts.rbs @@ -16,6 +16,7 @@ module Increase def update: ( String account_id, + ?credit_limit: Integer, ?name: String, ?request_options: Increase::request_opts ) -> Increase::Account