increase 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb36996c735515817285f0cd8fc49c989108ca5beb5947a8c14082d0b1db5d63
4
- data.tar.gz: 4892b072c4e58d5e4110e41e3303a559066708124b43909a85ee89926e0558e7
3
+ metadata.gz: ece4d3cf918019593b1dfab5ba866efd85a926b92144139dd2806627ec58fe1b
4
+ data.tar.gz: e4d4d85a17024ecf5e3faf121ddc33f2cf105302bfdade8dd53cc53196e040f2
5
5
  SHA512:
6
- metadata.gz: 60955e3ae07800220bb24a1d21df590540dae13d6f13add548f51a7421adb5b371f343757bae238e30689ecc96c527b4f7998e40bcfb627740a2223d950d4049
7
- data.tar.gz: 43213b2fda4e61cd24961fb0c53a3db1bdf70e93c396adb23d38715de07eb6e85eea4802725c8422d79a11f9101bf6693565e20f25e0c88dece633935ac62de6
6
+ metadata.gz: 50c59462a18edd24f059ef419022ceae3d502ca1bfd4cc3180bfbb23dc44c3d94ee40b948bc8a5912ba87578410230e479633c5ce69ccd3d1b480e18590f83bf
7
+ data.tar.gz: 3633c02bebc6bf90ba4a4e765a25b11cf82d449aa8a03bd4ad16afffe11717c58bf74537417e9bf72e6dc998354d96ee2af78fd2ccee1f47eb5606a4303c8447
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.13.0 (2025-07-11)
4
+
5
+ Full Changelog: [v1.12.0...v1.13.0](https://github.com/Increase/increase-ruby/compare/v1.12.0...v1.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f7dd43e](https://github.com/Increase/increase-ruby/commit/f7dd43e2ddb588d2b2d837caee579ae1ba3c92a4))
10
+
3
11
  ## 1.12.0 (2025-07-10)
4
12
 
5
13
  Full Changelog: [v1.11.0...v1.12.0](https://github.com/Increase/increase-ruby/compare/v1.11.0...v1.12.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.12.0"
18
+ gem "increase", "~> 1.13.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -14,18 +14,49 @@ module Increase
14
14
  # @return [String]
15
15
  required :name, String
16
16
 
17
+ # @!attribute bank
18
+ # The bank for the program's accounts, defaults to First Internet Bank.
19
+ #
20
+ # @return [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank, nil]
21
+ optional :bank, enum: -> { Increase::Simulations::ProgramCreateParams::Bank }
22
+
17
23
  # @!attribute reserve_account_id
18
24
  # The identifier of the Account the Program should be added to is for.
19
25
  #
20
26
  # @return [String, nil]
21
27
  optional :reserve_account_id, String
22
28
 
23
- # @!method initialize(name:, reserve_account_id: nil, request_options: {})
29
+ # @!method initialize(name:, bank: nil, reserve_account_id: nil, request_options: {})
24
30
  # @param name [String] The name of the program being added.
25
31
  #
32
+ # @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank] The bank for the program's accounts, defaults to First Internet Bank.
33
+ #
26
34
  # @param reserve_account_id [String] The identifier of the Account the Program should be added to is for.
27
35
  #
28
36
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
37
+
38
+ # The bank for the program's accounts, defaults to First Internet Bank.
39
+ module Bank
40
+ extend Increase::Internal::Type::Enum
41
+
42
+ # Blue Ridge Bank, N.A.
43
+ BLUE_RIDGE_BANK = :blue_ridge_bank
44
+
45
+ # Core Bank
46
+ CORE_BANK = :core_bank
47
+
48
+ # First Internet Bank of Indiana
49
+ FIRST_INTERNET_BANK = :first_internet_bank
50
+
51
+ # Global Innovations Bank
52
+ GLOBAL_INNOVATIONS_BANK = :global_innovations_bank
53
+
54
+ # Grasshopper Bank
55
+ GRASSHOPPER_BANK = :grasshopper_bank
56
+
57
+ # @!method self.values
58
+ # @return [Array<Symbol>]
59
+ end
29
60
  end
30
61
  end
31
62
  end
@@ -9,10 +9,12 @@ module Increase
9
9
  # operates more than one program, `program_id` is a required field when creating
10
10
  # accounts.
11
11
  #
12
- # @overload create(name:, reserve_account_id: nil, request_options: {})
12
+ # @overload create(name:, bank: nil, reserve_account_id: nil, request_options: {})
13
13
  #
14
14
  # @param name [String] The name of the program being added.
15
15
  #
16
+ # @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank] The bank for the program's accounts, defaults to First Internet Bank.
17
+ #
16
18
  # @param reserve_account_id [String] The identifier of the Account the Program should be added to is for.
17
19
  #
18
20
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.12.0"
4
+ VERSION = "1.13.0"
5
5
  end
@@ -19,6 +19,23 @@ module Increase
19
19
  sig { returns(String) }
20
20
  attr_accessor :name
21
21
 
22
+ # The bank for the program's accounts, defaults to First Internet Bank.
23
+ sig do
24
+ returns(
25
+ T.nilable(
26
+ Increase::Simulations::ProgramCreateParams::Bank::OrSymbol
27
+ )
28
+ )
29
+ end
30
+ attr_reader :bank
31
+
32
+ sig do
33
+ params(
34
+ bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol
35
+ ).void
36
+ end
37
+ attr_writer :bank
38
+
22
39
  # The identifier of the Account the Program should be added to is for.
23
40
  sig { returns(T.nilable(String)) }
24
41
  attr_reader :reserve_account_id
@@ -29,6 +46,7 @@ module Increase
29
46
  sig do
30
47
  params(
31
48
  name: String,
49
+ bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
32
50
  reserve_account_id: String,
33
51
  request_options: Increase::RequestOptions::OrHash
34
52
  ).returns(T.attached_class)
@@ -36,6 +54,8 @@ module Increase
36
54
  def self.new(
37
55
  # The name of the program being added.
38
56
  name:,
57
+ # The bank for the program's accounts, defaults to First Internet Bank.
58
+ bank: nil,
39
59
  # The identifier of the Account the Program should be added to is for.
40
60
  reserve_account_id: nil,
41
61
  request_options: {}
@@ -46,6 +66,7 @@ module Increase
46
66
  override.returns(
47
67
  {
48
68
  name: String,
69
+ bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
49
70
  reserve_account_id: String,
50
71
  request_options: Increase::RequestOptions
51
72
  }
@@ -53,6 +74,62 @@ module Increase
53
74
  end
54
75
  def to_hash
55
76
  end
77
+
78
+ # The bank for the program's accounts, defaults to First Internet Bank.
79
+ module Bank
80
+ extend Increase::Internal::Type::Enum
81
+
82
+ TaggedSymbol =
83
+ T.type_alias do
84
+ T.all(Symbol, Increase::Simulations::ProgramCreateParams::Bank)
85
+ end
86
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
87
+
88
+ # Blue Ridge Bank, N.A.
89
+ BLUE_RIDGE_BANK =
90
+ T.let(
91
+ :blue_ridge_bank,
92
+ Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
93
+ )
94
+
95
+ # Core Bank
96
+ CORE_BANK =
97
+ T.let(
98
+ :core_bank,
99
+ Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
100
+ )
101
+
102
+ # First Internet Bank of Indiana
103
+ FIRST_INTERNET_BANK =
104
+ T.let(
105
+ :first_internet_bank,
106
+ Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
107
+ )
108
+
109
+ # Global Innovations Bank
110
+ GLOBAL_INNOVATIONS_BANK =
111
+ T.let(
112
+ :global_innovations_bank,
113
+ Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
114
+ )
115
+
116
+ # Grasshopper Bank
117
+ GRASSHOPPER_BANK =
118
+ T.let(
119
+ :grasshopper_bank,
120
+ Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
121
+ )
122
+
123
+ sig do
124
+ override.returns(
125
+ T::Array[
126
+ Increase::Simulations::ProgramCreateParams::Bank::TaggedSymbol
127
+ ]
128
+ )
129
+ end
130
+ def self.values
131
+ end
132
+ end
56
133
  end
57
134
  end
58
135
  end
@@ -11,6 +11,7 @@ module Increase
11
11
  sig do
12
12
  params(
13
13
  name: String,
14
+ bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
14
15
  reserve_account_id: String,
15
16
  request_options: Increase::RequestOptions::OrHash
16
17
  ).returns(Increase::Program)
@@ -18,6 +19,8 @@ module Increase
18
19
  def create(
19
20
  # The name of the program being added.
20
21
  name:,
22
+ # The bank for the program's accounts, defaults to First Internet Bank.
23
+ bank: nil,
21
24
  # The identifier of the Account the Program should be added to is for.
22
25
  reserve_account_id: nil,
23
26
  request_options: {}
@@ -2,7 +2,11 @@ module Increase
2
2
  module Models
3
3
  module Simulations
4
4
  type program_create_params =
5
- { name: String, reserve_account_id: String }
5
+ {
6
+ name: String,
7
+ bank: Increase::Models::Simulations::ProgramCreateParams::bank,
8
+ reserve_account_id: String
9
+ }
6
10
  & Increase::Internal::Type::request_parameters
7
11
 
8
12
  class ProgramCreateParams < Increase::Internal::Type::BaseModel
@@ -11,21 +15,57 @@ module Increase
11
15
 
12
16
  attr_accessor name: String
13
17
 
18
+ attr_reader bank: Increase::Models::Simulations::ProgramCreateParams::bank?
19
+
20
+ def bank=: (
21
+ Increase::Models::Simulations::ProgramCreateParams::bank
22
+ ) -> Increase::Models::Simulations::ProgramCreateParams::bank
23
+
14
24
  attr_reader reserve_account_id: String?
15
25
 
16
26
  def reserve_account_id=: (String) -> String
17
27
 
18
28
  def initialize: (
19
29
  name: String,
30
+ ?bank: Increase::Models::Simulations::ProgramCreateParams::bank,
20
31
  ?reserve_account_id: String,
21
32
  ?request_options: Increase::request_opts
22
33
  ) -> void
23
34
 
24
35
  def to_hash: -> {
25
36
  name: String,
37
+ bank: Increase::Models::Simulations::ProgramCreateParams::bank,
26
38
  reserve_account_id: String,
27
39
  request_options: Increase::RequestOptions
28
40
  }
41
+
42
+ type bank =
43
+ :blue_ridge_bank
44
+ | :core_bank
45
+ | :first_internet_bank
46
+ | :global_innovations_bank
47
+ | :grasshopper_bank
48
+
49
+ module Bank
50
+ extend Increase::Internal::Type::Enum
51
+
52
+ # Blue Ridge Bank, N.A.
53
+ BLUE_RIDGE_BANK: :blue_ridge_bank
54
+
55
+ # Core Bank
56
+ CORE_BANK: :core_bank
57
+
58
+ # First Internet Bank of Indiana
59
+ FIRST_INTERNET_BANK: :first_internet_bank
60
+
61
+ # Global Innovations Bank
62
+ GLOBAL_INNOVATIONS_BANK: :global_innovations_bank
63
+
64
+ # Grasshopper Bank
65
+ GRASSHOPPER_BANK: :grasshopper_bank
66
+
67
+ def self?.values: -> ::Array[Increase::Models::Simulations::ProgramCreateParams::bank]
68
+ end
29
69
  end
30
70
  end
31
71
  end
@@ -4,6 +4,7 @@ module Increase
4
4
  class Programs
5
5
  def create: (
6
6
  name: String,
7
+ ?bank: Increase::Models::Simulations::ProgramCreateParams::bank,
7
8
  ?reserve_account_id: String,
8
9
  ?request_options: Increase::request_opts
9
10
  ) -> Increase::Program
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-11 00:00:00.000000000 Z
11
+ date: 2025-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool