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.12.0"
".": "1.13.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: 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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.12.0)
increase (1.13.0)
connection_pool

GEM
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.12.0"
gem "increase", "~> 1.13.0"
```

<!-- x-release-please-end -->
Expand Down
33 changes: 32 additions & 1 deletion lib/increase/models/simulations/program_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<Symbol>]
end
end
end
end
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/simulations/programs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
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.12.0"
VERSION = "1.13.0"
end
77 changes: 77 additions & 0 deletions rbi/increase/models/simulations/program_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,13 +46,16 @@ 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)
end
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: {}
Expand All @@ -46,13 +66,70 @@ module Increase
override.returns(
{
name: String,
bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
reserve_account_id: String,
request_options: Increase::RequestOptions
}
)
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
Expand Down
3 changes: 3 additions & 0 deletions rbi/increase/resources/simulations/programs.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ 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)
end
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: {}
Expand Down
42 changes: 41 additions & 1 deletion sig/increase/models/simulations/program_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions sig/increase/resources/simulations/programs.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down