From 4875d8772019de4cdbd528c277c2bf4b4b125570 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:10:59 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +-- lib/increase/models/export_create_params.rb | 11 +++++++- rbi/increase/models/export_create_params.rbi | 27 ++++++++++++++++---- sig/increase/models/export_create_params.rbs | 19 +++++++++++--- 4 files changed, 50 insertions(+), 11 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8014bc2c8..7ca08cf6a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3d5a35f67916cc1c9e9e4df38edbf72b926effa0faf60ea5cb7047a4a2d7f3c7.yml -openapi_spec_hash: 33c55e463f9bf747f502bdb38d5e2622 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-44b5f1aa7877231cd00051536df52b79d7cdc9cdd18194e9d58416a23c0e3080.yml +openapi_spec_hash: 60f0bd1ca37c9a57996238e105cca091 config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/lib/increase/models/export_create_params.rb b/lib/increase/models/export_create_params.rb index 333b1b4ff..49ab6efe5 100644 --- a/lib/increase/models/export_create_params.rb +++ b/lib/increase/models/export_create_params.rb @@ -131,7 +131,14 @@ class AccountStatementBai2 < Increase::Internal::Type::BaseModel # @return [Date, nil] optional :effective_date, Date - # @!method initialize(account_id: nil, effective_date: nil) + # @!attribute program_id + # The Program to create a BAI2 report for. If not provided, all open accounts will + # be included. + # + # @return [String, nil] + optional :program_id, String + + # @!method initialize(account_id: nil, effective_date: nil, program_id: nil) # Some parameter documentations has been truncated, see # {Increase::Models::ExportCreateParams::AccountStatementBai2} for more details. # @@ -141,6 +148,8 @@ class AccountStatementBai2 < Increase::Internal::Type::BaseModel # @param account_id [String] The Account to create a BAI2 report for. If not provided, all open accounts will # # @param effective_date [Date] The date to create a BAI2 report for. If not provided, the current date will be + # + # @param program_id [String] The Program to create a BAI2 report for. If not provided, all open accounts will end class AccountStatementOfx < Increase::Internal::Type::BaseModel diff --git a/rbi/increase/models/export_create_params.rbi b/rbi/increase/models/export_create_params.rbi index 80ad6dfc4..3289386f5 100644 --- a/rbi/increase/models/export_create_params.rbi +++ b/rbi/increase/models/export_create_params.rbi @@ -258,12 +258,22 @@ module Increase sig { params(effective_date: Date).void } attr_writer :effective_date + # The Program to create a BAI2 report for. If not provided, all open accounts will + # be included. + sig { returns(T.nilable(String)) } + attr_reader :program_id + + sig { params(program_id: String).void } + attr_writer :program_id + # Options for the created export. Required if `category` is equal to # `account_statement_bai2`. sig do - params(account_id: String, effective_date: Date).returns( - T.attached_class - ) + params( + account_id: String, + effective_date: Date, + program_id: String + ).returns(T.attached_class) end def self.new( # The Account to create a BAI2 report for. If not provided, all open accounts will @@ -273,11 +283,18 @@ module Increase # used. The timezone is UTC. If the current date is used, the report will include # intraday balances, otherwise it will include end-of-day balances for the # provided date. - effective_date: nil + effective_date: nil, + # The Program to create a BAI2 report for. If not provided, all open accounts will + # be included. + program_id: nil ) end - sig { override.returns({ account_id: String, effective_date: Date }) } + sig do + override.returns( + { account_id: String, effective_date: Date, program_id: String } + ) + end def to_hash end end diff --git a/sig/increase/models/export_create_params.rbs b/sig/increase/models/export_create_params.rbs index 323a7ff20..a01bcac6d 100644 --- a/sig/increase/models/export_create_params.rbs +++ b/sig/increase/models/export_create_params.rbs @@ -119,7 +119,8 @@ module Increase def self?.values: -> ::Array[Increase::Models::ExportCreateParams::category] end - type account_statement_bai2 = { account_id: String, effective_date: Date } + type account_statement_bai2 = + { account_id: String, effective_date: Date, program_id: String } class AccountStatementBai2 < Increase::Internal::Type::BaseModel attr_reader account_id: String? @@ -130,9 +131,21 @@ module Increase def effective_date=: (Date) -> Date - def initialize: (?account_id: String, ?effective_date: Date) -> void + attr_reader program_id: String? + + def program_id=: (String) -> String + + def initialize: ( + ?account_id: String, + ?effective_date: Date, + ?program_id: String + ) -> void - def to_hash: -> { account_id: String, effective_date: Date } + def to_hash: -> { + account_id: String, + effective_date: Date, + program_id: String + } end type account_statement_ofx = From 3810e22e38ea3b506ce835dd6fb47e6f9a3d9437 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:11:23 +0000 Subject: [PATCH 2/2] release: 1.126.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 cfcd55ba2..f32ceed27 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.125.0" + ".": "1.126.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b84c7ed2..645317baa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.126.0 (2025-10-31) + +Full Changelog: [v1.125.0...v1.126.0](https://github.com/Increase/increase-ruby/compare/v1.125.0...v1.126.0) + +### Features + +* **api:** api update ([4875d87](https://github.com/Increase/increase-ruby/commit/4875d8772019de4cdbd528c277c2bf4b4b125570)) + ## 1.125.0 (2025-10-31) Full Changelog: [v1.124.0...v1.125.0](https://github.com/Increase/increase-ruby/compare/v1.124.0...v1.125.0) diff --git a/Gemfile.lock b/Gemfile.lock index 60fd37b7a..f5dc61228 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.125.0) + increase (1.126.0) connection_pool GEM diff --git a/README.md b/README.md index 6e35c54e7..78b56dbf1 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.125.0" +gem "increase", "~> 1.126.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index e05205817..2e6acf3f4 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.125.0" + VERSION = "1.126.0" end