diff --git a/.release-please-manifest.json b/.release-please-manifest.json index de0960aba..f94eeca26 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.12.0" + ".": "1.13.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 083e8155e..076aae75a 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-f0b14ed0b6857930b2bbb80a8a0580dff2aad5510240f608ea9385a8b1d1b66b.yml -openapi_spec_hash: ea869bb98167424f60f8ef006da70945 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c9d527ceb849bd9a01edc968016381f25fcc375a1409eb113d7e876ae0f2f529.yml +openapi_spec_hash: c7820089282fc6db267d08eaa465075f config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fe621801..83f833139 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 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) + +### Features + +* **api:** api update ([f7dd43e](https://github.com/Increase/increase-ruby/commit/f7dd43e2ddb588d2b2d837caee579ae1ba3c92a4)) + ## 1.12.0 (2025-07-10) Full Changelog: [v1.11.0...v1.12.0](https://github.com/Increase/increase-ruby/compare/v1.11.0...v1.12.0) diff --git a/Gemfile.lock b/Gemfile.lock index 08a2bcd1c..b34b01f83 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.12.0) + increase (1.13.0) connection_pool GEM diff --git a/README.md b/README.md index 23228bf56..c8d971570 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.12.0" +gem "increase", "~> 1.13.0" ``` diff --git a/lib/increase/models/simulations/program_create_params.rb b/lib/increase/models/simulations/program_create_params.rb index 54e86e4f4..12b58a1c5 100644 --- a/lib/increase/models/simulations/program_create_params.rb +++ b/lib/increase/models/simulations/program_create_params.rb @@ -14,18 +14,49 @@ class ProgramCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :name, String + # @!attribute bank + # The bank for the program's accounts, defaults to First Internet Bank. + # + # @return [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank, nil] + optional :bank, enum: -> { Increase::Simulations::ProgramCreateParams::Bank } + # @!attribute reserve_account_id # The identifier of the Account the Program should be added to is for. # # @return [String, nil] optional :reserve_account_id, String - # @!method initialize(name:, reserve_account_id: nil, request_options: {}) + # @!method initialize(name:, bank: nil, reserve_account_id: nil, request_options: {}) # @param name [String] The name of the program being added. # + # @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank] The bank for the program's accounts, defaults to First Internet Bank. + # # @param reserve_account_id [String] The identifier of the Account the Program should be added to is for. # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + + # The bank for the program's accounts, defaults to First Internet Bank. + module Bank + extend Increase::Internal::Type::Enum + + # Blue Ridge Bank, N.A. + BLUE_RIDGE_BANK = :blue_ridge_bank + + # Core Bank + CORE_BANK = :core_bank + + # First Internet Bank of Indiana + FIRST_INTERNET_BANK = :first_internet_bank + + # Global Innovations Bank + GLOBAL_INNOVATIONS_BANK = :global_innovations_bank + + # Grasshopper Bank + GRASSHOPPER_BANK = :grasshopper_bank + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/increase/resources/simulations/programs.rb b/lib/increase/resources/simulations/programs.rb index e3cb994fa..766b0923e 100644 --- a/lib/increase/resources/simulations/programs.rb +++ b/lib/increase/resources/simulations/programs.rb @@ -9,10 +9,12 @@ class Programs # operates more than one program, `program_id` is a required field when creating # accounts. # - # @overload create(name:, reserve_account_id: nil, request_options: {}) + # @overload create(name:, bank: nil, reserve_account_id: nil, request_options: {}) # # @param name [String] The name of the program being added. # + # @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank] The bank for the program's accounts, defaults to First Internet Bank. + # # @param reserve_account_id [String] The identifier of the Account the Program should be added to is for. # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 2012297cc..ed341cc7d 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.12.0" + VERSION = "1.13.0" end diff --git a/rbi/increase/models/simulations/program_create_params.rbi b/rbi/increase/models/simulations/program_create_params.rbi index e75d91c09..0d6eb9a40 100644 --- a/rbi/increase/models/simulations/program_create_params.rbi +++ b/rbi/increase/models/simulations/program_create_params.rbi @@ -19,6 +19,23 @@ module Increase sig { returns(String) } attr_accessor :name + # The bank for the program's accounts, defaults to First Internet Bank. + sig do + returns( + T.nilable( + Increase::Simulations::ProgramCreateParams::Bank::OrSymbol + ) + ) + end + attr_reader :bank + + sig do + params( + bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol + ).void + end + attr_writer :bank + # The identifier of the Account the Program should be added to is for. sig { returns(T.nilable(String)) } attr_reader :reserve_account_id @@ -29,6 +46,7 @@ module Increase sig do params( name: String, + bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol, reserve_account_id: String, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) @@ -36,6 +54,8 @@ module Increase def self.new( # The name of the program being added. name:, + # The bank for the program's accounts, defaults to First Internet Bank. + bank: nil, # The identifier of the Account the Program should be added to is for. reserve_account_id: nil, request_options: {} @@ -46,6 +66,7 @@ module Increase override.returns( { name: String, + bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol, reserve_account_id: String, request_options: Increase::RequestOptions } @@ -53,6 +74,62 @@ module Increase end def to_hash end + + # The bank for the program's accounts, defaults to First Internet Bank. + module Bank + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::Simulations::ProgramCreateParams::Bank) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Blue Ridge Bank, N.A. + BLUE_RIDGE_BANK = + T.let( + :blue_ridge_bank, + Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol + ) + + # Core Bank + CORE_BANK = + T.let( + :core_bank, + Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol + ) + + # First Internet Bank of Indiana + FIRST_INTERNET_BANK = + T.let( + :first_internet_bank, + Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol + ) + + # Global Innovations Bank + GLOBAL_INNOVATIONS_BANK = + T.let( + :global_innovations_bank, + Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol + ) + + # Grasshopper Bank + GRASSHOPPER_BANK = + T.let( + :grasshopper_bank, + Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/increase/resources/simulations/programs.rbi b/rbi/increase/resources/simulations/programs.rbi index f7d640e8b..477dd4142 100644 --- a/rbi/increase/resources/simulations/programs.rbi +++ b/rbi/increase/resources/simulations/programs.rbi @@ -11,6 +11,7 @@ module Increase sig do params( name: String, + bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol, reserve_account_id: String, request_options: Increase::RequestOptions::OrHash ).returns(Increase::Program) @@ -18,6 +19,8 @@ module Increase def create( # The name of the program being added. name:, + # The bank for the program's accounts, defaults to First Internet Bank. + bank: nil, # The identifier of the Account the Program should be added to is for. reserve_account_id: nil, request_options: {} diff --git a/sig/increase/models/simulations/program_create_params.rbs b/sig/increase/models/simulations/program_create_params.rbs index c8047cf99..5fe500c84 100644 --- a/sig/increase/models/simulations/program_create_params.rbs +++ b/sig/increase/models/simulations/program_create_params.rbs @@ -2,7 +2,11 @@ module Increase module Models module Simulations type program_create_params = - { name: String, reserve_account_id: String } + { + name: String, + bank: Increase::Models::Simulations::ProgramCreateParams::bank, + reserve_account_id: String + } & Increase::Internal::Type::request_parameters class ProgramCreateParams < Increase::Internal::Type::BaseModel @@ -11,21 +15,57 @@ module Increase attr_accessor name: String + attr_reader bank: Increase::Models::Simulations::ProgramCreateParams::bank? + + def bank=: ( + Increase::Models::Simulations::ProgramCreateParams::bank + ) -> Increase::Models::Simulations::ProgramCreateParams::bank + attr_reader reserve_account_id: String? def reserve_account_id=: (String) -> String def initialize: ( name: String, + ?bank: Increase::Models::Simulations::ProgramCreateParams::bank, ?reserve_account_id: String, ?request_options: Increase::request_opts ) -> void def to_hash: -> { name: String, + bank: Increase::Models::Simulations::ProgramCreateParams::bank, reserve_account_id: String, request_options: Increase::RequestOptions } + + type bank = + :blue_ridge_bank + | :core_bank + | :first_internet_bank + | :global_innovations_bank + | :grasshopper_bank + + module Bank + extend Increase::Internal::Type::Enum + + # Blue Ridge Bank, N.A. + BLUE_RIDGE_BANK: :blue_ridge_bank + + # Core Bank + CORE_BANK: :core_bank + + # First Internet Bank of Indiana + FIRST_INTERNET_BANK: :first_internet_bank + + # Global Innovations Bank + GLOBAL_INNOVATIONS_BANK: :global_innovations_bank + + # Grasshopper Bank + GRASSHOPPER_BANK: :grasshopper_bank + + def self?.values: -> ::Array[Increase::Models::Simulations::ProgramCreateParams::bank] + end end end end diff --git a/sig/increase/resources/simulations/programs.rbs b/sig/increase/resources/simulations/programs.rbs index eb34240f0..0624e327c 100644 --- a/sig/increase/resources/simulations/programs.rbs +++ b/sig/increase/resources/simulations/programs.rbs @@ -4,6 +4,7 @@ module Increase class Programs def create: ( name: String, + ?bank: Increase::Models::Simulations::ProgramCreateParams::bank, ?reserve_account_id: String, ?request_options: Increase::request_opts ) -> Increase::Program