increase 1.12.0 → 1.14.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: f595c8f946a264b3c24014db8f93d85500632300faf708c0d9ee661e9ba7a976
4
+ data.tar.gz: 32a2c539015a955802866d58b07fe4b736958e8f091f103bcc8ac21c7008b3d4
5
5
  SHA512:
6
- metadata.gz: 60955e3ae07800220bb24a1d21df590540dae13d6f13add548f51a7421adb5b371f343757bae238e30689ecc96c527b4f7998e40bcfb627740a2223d950d4049
7
- data.tar.gz: 43213b2fda4e61cd24961fb0c53a3db1bdf70e93c396adb23d38715de07eb6e85eea4802725c8422d79a11f9101bf6693565e20f25e0c88dece633935ac62de6
6
+ metadata.gz: 9668ab5d9dc390abf56b875460f6774de06fa54ee7695cf595d99ac043ad16b77eb71797a14cca9ff2b182e600994181b2cb01bbc035f724cf7a31d8baf00e8b
7
+ data.tar.gz: a524e05fa057ce8cc3f4f3e3d9dd7d04ea89de26c7f3f4f41dcf20ecf2acfd398eda6152a93e189f8b0278613fc9905f9fa45c3bc5179589ce16562139dafb3d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.14.0 (2025-07-18)
4
+
5
+ Full Changelog: [v1.13.0...v1.14.0](https://github.com/Increase/increase-ruby/compare/v1.13.0...v1.14.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([aff39de](https://github.com/Increase/increase-ruby/commit/aff39de155a064d2c7b2640a6d31fcb400caf63b))
10
+
11
+ ## 1.13.0 (2025-07-11)
12
+
13
+ Full Changelog: [v1.12.0...v1.13.0](https://github.com/Increase/increase-ruby/compare/v1.12.0...v1.13.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([f7dd43e](https://github.com/Increase/increase-ruby/commit/f7dd43e2ddb588d2b2d837caee579ae1ba3c92a4))
18
+
3
19
  ## 1.12.0 (2025-07-10)
4
20
 
5
21
  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.14.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -7,13 +7,25 @@ module Increase
7
7
  extend Increase::Internal::Type::RequestParameters::Converter
8
8
  include Increase::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute credit_limit
11
+ # The new credit limit of the Account, if and only if the Account is a loan
12
+ # account.
13
+ #
14
+ # @return [Integer, nil]
15
+ optional :credit_limit, Integer
16
+
10
17
  # @!attribute name
11
18
  # The new name of the Account.
12
19
  #
13
20
  # @return [String, nil]
14
21
  optional :name, String
15
22
 
16
- # @!method initialize(name: nil, request_options: {})
23
+ # @!method initialize(credit_limit: nil, name: nil, request_options: {})
24
+ # Some parameter documentations has been truncated, see
25
+ # {Increase::Models::AccountUpdateParams} for more details.
26
+ #
27
+ # @param credit_limit [Integer] The new credit limit of the Account, if and only if the Account is a loan accoun
28
+ #
17
29
  # @param name [String] The new name of the Account.
18
30
  #
19
31
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
@@ -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
@@ -54,12 +54,17 @@ module Increase
54
54
  )
55
55
  end
56
56
 
57
+ # Some parameter documentations has been truncated, see
58
+ # {Increase::Models::AccountUpdateParams} for more details.
59
+ #
57
60
  # Update an Account
58
61
  #
59
- # @overload update(account_id, name: nil, request_options: {})
62
+ # @overload update(account_id, credit_limit: nil, name: nil, request_options: {})
60
63
  #
61
64
  # @param account_id [String] The identifier of the Account to update.
62
65
  #
66
+ # @param credit_limit [Integer] The new credit limit of the Account, if and only if the Account is a loan accoun
67
+ #
63
68
  # @param name [String] The new name of the Account.
64
69
  #
65
70
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -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.14.0"
5
5
  end
@@ -11,6 +11,14 @@ module Increase
11
11
  T.any(Increase::AccountUpdateParams, Increase::Internal::AnyHash)
12
12
  end
13
13
 
14
+ # The new credit limit of the Account, if and only if the Account is a loan
15
+ # account.
16
+ sig { returns(T.nilable(Integer)) }
17
+ attr_reader :credit_limit
18
+
19
+ sig { params(credit_limit: Integer).void }
20
+ attr_writer :credit_limit
21
+
14
22
  # The new name of the Account.
15
23
  sig { returns(T.nilable(String)) }
16
24
  attr_reader :name
@@ -20,11 +28,15 @@ module Increase
20
28
 
21
29
  sig do
22
30
  params(
31
+ credit_limit: Integer,
23
32
  name: String,
24
33
  request_options: Increase::RequestOptions::OrHash
25
34
  ).returns(T.attached_class)
26
35
  end
27
36
  def self.new(
37
+ # The new credit limit of the Account, if and only if the Account is a loan
38
+ # account.
39
+ credit_limit: nil,
28
40
  # The new name of the Account.
29
41
  name: nil,
30
42
  request_options: {}
@@ -33,7 +45,11 @@ module Increase
33
45
 
34
46
  sig do
35
47
  override.returns(
36
- { name: String, request_options: Increase::RequestOptions }
48
+ {
49
+ credit_limit: Integer,
50
+ name: String,
51
+ request_options: Increase::RequestOptions
52
+ }
37
53
  )
38
54
  end
39
55
  def to_hash
@@ -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
@@ -46,6 +46,7 @@ module Increase
46
46
  sig do
47
47
  params(
48
48
  account_id: String,
49
+ credit_limit: Integer,
49
50
  name: String,
50
51
  request_options: Increase::RequestOptions::OrHash
51
52
  ).returns(Increase::Account)
@@ -53,6 +54,9 @@ module Increase
53
54
  def update(
54
55
  # The identifier of the Account to update.
55
56
  account_id,
57
+ # The new credit limit of the Account, if and only if the Account is a loan
58
+ # account.
59
+ credit_limit: nil,
56
60
  # The new name of the Account.
57
61
  name: nil,
58
62
  request_options: {}
@@ -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: {}
@@ -1,22 +1,29 @@
1
1
  module Increase
2
2
  module Models
3
3
  type account_update_params =
4
- { name: String } & Increase::Internal::Type::request_parameters
4
+ { credit_limit: Integer, name: String }
5
+ & Increase::Internal::Type::request_parameters
5
6
 
6
7
  class AccountUpdateParams < Increase::Internal::Type::BaseModel
7
8
  extend Increase::Internal::Type::RequestParameters::Converter
8
9
  include Increase::Internal::Type::RequestParameters
9
10
 
11
+ attr_reader credit_limit: Integer?
12
+
13
+ def credit_limit=: (Integer) -> Integer
14
+
10
15
  attr_reader name: String?
11
16
 
12
17
  def name=: (String) -> String
13
18
 
14
19
  def initialize: (
20
+ ?credit_limit: Integer,
15
21
  ?name: String,
16
22
  ?request_options: Increase::request_opts
17
23
  ) -> void
18
24
 
19
25
  def to_hash: -> {
26
+ credit_limit: Integer,
20
27
  name: String,
21
28
  request_options: Increase::RequestOptions
22
29
  }
@@ -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
@@ -16,6 +16,7 @@ module Increase
16
16
 
17
17
  def update: (
18
18
  String account_id,
19
+ ?credit_limit: Integer,
19
20
  ?name: String,
20
21
  ?request_options: Increase::request_opts
21
22
  ) -> Increase::Account
@@ -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.14.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-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool