increase 1.187.0 → 1.188.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +9 -9
- data/lib/increase/models/account.rb +99 -1
- data/lib/increase/models/account_create_params.rb +96 -1
- data/lib/increase/models/account_statement.rb +43 -1
- data/lib/increase/models/account_update_params.rb +22 -1
- data/lib/increase/models/balance_lookup.rb +43 -1
- data/lib/increase/models/program.rb +23 -1
- data/lib/increase/models/simulations/program_create_params.rb +9 -1
- data/lib/increase/resources/accounts.rb +8 -2
- data/lib/increase/resources/simulations/programs.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/account.rbi +146 -0
- data/rbi/increase/models/account_create_params.rbi +168 -0
- data/rbi/increase/models/account_statement.rbi +64 -0
- data/rbi/increase/models/account_update_params.rbi +41 -1
- data/rbi/increase/models/balance_lookup.rbi +64 -0
- data/rbi/increase/models/program.rbi +38 -0
- data/rbi/increase/models/simulations/program_create_params.rbi +11 -0
- data/rbi/increase/resources/accounts.rbi +9 -0
- data/rbi/increase/resources/simulations/programs.rbi +3 -0
- data/sig/increase/models/account.rbs +75 -0
- data/sig/increase/models/account_create_params.rbs +85 -0
- data/sig/increase/models/account_statement.rbs +28 -0
- data/sig/increase/models/account_update_params.rbs +20 -1
- data/sig/increase/models/balance_lookup.rbs +28 -0
- data/sig/increase/models/program.rbs +15 -0
- data/sig/increase/models/simulations/program_create_params.rbs +7 -0
- data/sig/increase/resources/accounts.rbs +3 -0
- data/sig/increase/resources/simulations/programs.rbs +1 -0
- metadata +1 -1
|
@@ -33,6 +33,15 @@ module Increase
|
|
|
33
33
|
sig { returns(String) }
|
|
34
34
|
attr_accessor :interest_rate
|
|
35
35
|
|
|
36
|
+
# The lending details for the program.
|
|
37
|
+
sig { returns(T.nilable(Increase::Program::Lending)) }
|
|
38
|
+
attr_reader :lending
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(lending: T.nilable(Increase::Program::Lending::OrHash)).void
|
|
42
|
+
end
|
|
43
|
+
attr_writer :lending
|
|
44
|
+
|
|
36
45
|
# The name of the Program.
|
|
37
46
|
sig { returns(String) }
|
|
38
47
|
attr_accessor :name
|
|
@@ -59,6 +68,7 @@ module Increase
|
|
|
59
68
|
created_at: Time,
|
|
60
69
|
default_digital_card_profile_id: T.nilable(String),
|
|
61
70
|
interest_rate: String,
|
|
71
|
+
lending: T.nilable(Increase::Program::Lending::OrHash),
|
|
62
72
|
name: String,
|
|
63
73
|
type: Increase::Program::Type::OrSymbol,
|
|
64
74
|
updated_at: Time
|
|
@@ -80,6 +90,8 @@ module Increase
|
|
|
80
90
|
# string containing a decimal number. For example, a 1% interest rate would be
|
|
81
91
|
# represented as "0.01".
|
|
82
92
|
interest_rate:,
|
|
93
|
+
# The lending details for the program.
|
|
94
|
+
lending:,
|
|
83
95
|
# The name of the Program.
|
|
84
96
|
name:,
|
|
85
97
|
# A constant representing the object's type. For this resource it will always be
|
|
@@ -100,6 +112,7 @@ module Increase
|
|
|
100
112
|
created_at: Time,
|
|
101
113
|
default_digital_card_profile_id: T.nilable(String),
|
|
102
114
|
interest_rate: String,
|
|
115
|
+
lending: T.nilable(Increase::Program::Lending),
|
|
103
116
|
name: String,
|
|
104
117
|
type: Increase::Program::Type::TaggedSymbol,
|
|
105
118
|
updated_at: Time
|
|
@@ -134,6 +147,31 @@ module Increase
|
|
|
134
147
|
end
|
|
135
148
|
end
|
|
136
149
|
|
|
150
|
+
class Lending < Increase::Internal::Type::BaseModel
|
|
151
|
+
OrHash =
|
|
152
|
+
T.type_alias do
|
|
153
|
+
T.any(Increase::Program::Lending, Increase::Internal::AnyHash)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# The maximum extendable credit of the program.
|
|
157
|
+
sig { returns(Integer) }
|
|
158
|
+
attr_accessor :maximum_extendable_credit
|
|
159
|
+
|
|
160
|
+
# The lending details for the program.
|
|
161
|
+
sig do
|
|
162
|
+
params(maximum_extendable_credit: Integer).returns(T.attached_class)
|
|
163
|
+
end
|
|
164
|
+
def self.new(
|
|
165
|
+
# The maximum extendable credit of the program.
|
|
166
|
+
maximum_extendable_credit:
|
|
167
|
+
)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
sig { override.returns({ maximum_extendable_credit: Integer }) }
|
|
171
|
+
def to_hash
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
137
175
|
# A constant representing the object's type. For this resource it will always be
|
|
138
176
|
# `program`.
|
|
139
177
|
module Type
|
|
@@ -36,6 +36,13 @@ module Increase
|
|
|
36
36
|
end
|
|
37
37
|
attr_writer :bank
|
|
38
38
|
|
|
39
|
+
# The maximum extendable credit of the program being added.
|
|
40
|
+
sig { returns(T.nilable(Integer)) }
|
|
41
|
+
attr_reader :lending_maximum_extendable_credit
|
|
42
|
+
|
|
43
|
+
sig { params(lending_maximum_extendable_credit: Integer).void }
|
|
44
|
+
attr_writer :lending_maximum_extendable_credit
|
|
45
|
+
|
|
39
46
|
# The identifier of the Account the Program should be added to is for.
|
|
40
47
|
sig { returns(T.nilable(String)) }
|
|
41
48
|
attr_reader :reserve_account_id
|
|
@@ -47,6 +54,7 @@ module Increase
|
|
|
47
54
|
params(
|
|
48
55
|
name: String,
|
|
49
56
|
bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
|
|
57
|
+
lending_maximum_extendable_credit: Integer,
|
|
50
58
|
reserve_account_id: String,
|
|
51
59
|
request_options: Increase::RequestOptions::OrHash
|
|
52
60
|
).returns(T.attached_class)
|
|
@@ -56,6 +64,8 @@ module Increase
|
|
|
56
64
|
name:,
|
|
57
65
|
# The bank for the program's accounts, defaults to First Internet Bank.
|
|
58
66
|
bank: nil,
|
|
67
|
+
# The maximum extendable credit of the program being added.
|
|
68
|
+
lending_maximum_extendable_credit: nil,
|
|
59
69
|
# The identifier of the Account the Program should be added to is for.
|
|
60
70
|
reserve_account_id: nil,
|
|
61
71
|
request_options: {}
|
|
@@ -67,6 +77,7 @@ module Increase
|
|
|
67
77
|
{
|
|
68
78
|
name: String,
|
|
69
79
|
bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
|
|
80
|
+
lending_maximum_extendable_credit: Integer,
|
|
70
81
|
reserve_account_id: String,
|
|
71
82
|
request_options: Increase::RequestOptions
|
|
72
83
|
}
|
|
@@ -8,7 +8,9 @@ module Increase
|
|
|
8
8
|
params(
|
|
9
9
|
name: String,
|
|
10
10
|
entity_id: String,
|
|
11
|
+
funding: Increase::AccountCreateParams::Funding::OrSymbol,
|
|
11
12
|
informational_entity_id: String,
|
|
13
|
+
loan: Increase::AccountCreateParams::Loan::OrHash,
|
|
12
14
|
program_id: String,
|
|
13
15
|
request_options: Increase::RequestOptions::OrHash
|
|
14
16
|
).returns(Increase::Account)
|
|
@@ -18,9 +20,13 @@ module Increase
|
|
|
18
20
|
name:,
|
|
19
21
|
# The identifier for the Entity that will own the Account.
|
|
20
22
|
entity_id: nil,
|
|
23
|
+
# Whether the Account is funded by a loan or by deposits.
|
|
24
|
+
funding: nil,
|
|
21
25
|
# The identifier of an Entity that, while not owning the Account, is associated
|
|
22
26
|
# with its activity. This is generally the beneficiary of the funds.
|
|
23
27
|
informational_entity_id: nil,
|
|
28
|
+
# The loan details for the account.
|
|
29
|
+
loan: nil,
|
|
24
30
|
# The identifier for the Program that this Account falls under. Required if you
|
|
25
31
|
# operate more than one Program.
|
|
26
32
|
program_id: nil,
|
|
@@ -46,6 +52,7 @@ module Increase
|
|
|
46
52
|
sig do
|
|
47
53
|
params(
|
|
48
54
|
account_id: String,
|
|
55
|
+
loan: Increase::AccountUpdateParams::Loan::OrHash,
|
|
49
56
|
name: String,
|
|
50
57
|
request_options: Increase::RequestOptions::OrHash
|
|
51
58
|
).returns(Increase::Account)
|
|
@@ -53,6 +60,8 @@ module Increase
|
|
|
53
60
|
def update(
|
|
54
61
|
# The identifier of the Account to update.
|
|
55
62
|
account_id,
|
|
63
|
+
# The loan details for the account.
|
|
64
|
+
loan: nil,
|
|
56
65
|
# The new name of the Account.
|
|
57
66
|
name: nil,
|
|
58
67
|
request_options: {}
|
|
@@ -12,6 +12,7 @@ module Increase
|
|
|
12
12
|
params(
|
|
13
13
|
name: String,
|
|
14
14
|
bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
|
|
15
|
+
lending_maximum_extendable_credit: Integer,
|
|
15
16
|
reserve_account_id: String,
|
|
16
17
|
request_options: Increase::RequestOptions::OrHash
|
|
17
18
|
).returns(Increase::Program)
|
|
@@ -21,6 +22,8 @@ module Increase
|
|
|
21
22
|
name:,
|
|
22
23
|
# The bank for the program's accounts, defaults to First Internet Bank.
|
|
23
24
|
bank: nil,
|
|
25
|
+
# The maximum extendable credit of the program being added.
|
|
26
|
+
lending_maximum_extendable_credit: nil,
|
|
24
27
|
# The identifier of the Account the Program should be added to is for.
|
|
25
28
|
reserve_account_id: nil,
|
|
26
29
|
request_options: {}
|
|
@@ -9,11 +9,13 @@ module Increase
|
|
|
9
9
|
created_at: Time,
|
|
10
10
|
currency: Increase::Models::Account::currency,
|
|
11
11
|
entity_id: String,
|
|
12
|
+
funding: Increase::Models::Account::funding?,
|
|
12
13
|
idempotency_key: String?,
|
|
13
14
|
informational_entity_id: String?,
|
|
14
15
|
interest_accrued: String,
|
|
15
16
|
interest_accrued_at: Date?,
|
|
16
17
|
interest_rate: String,
|
|
18
|
+
loan: Increase::Account::Loan?,
|
|
17
19
|
name: String,
|
|
18
20
|
program_id: String,
|
|
19
21
|
status: Increase::Models::Account::status,
|
|
@@ -35,6 +37,8 @@ module Increase
|
|
|
35
37
|
|
|
36
38
|
attr_accessor entity_id: String
|
|
37
39
|
|
|
40
|
+
attr_accessor funding: Increase::Models::Account::funding?
|
|
41
|
+
|
|
38
42
|
attr_accessor idempotency_key: String?
|
|
39
43
|
|
|
40
44
|
attr_accessor informational_entity_id: String?
|
|
@@ -45,6 +49,8 @@ module Increase
|
|
|
45
49
|
|
|
46
50
|
attr_accessor interest_rate: String
|
|
47
51
|
|
|
52
|
+
attr_accessor loan: Increase::Account::Loan?
|
|
53
|
+
|
|
48
54
|
attr_accessor name: String
|
|
49
55
|
|
|
50
56
|
attr_accessor program_id: String
|
|
@@ -61,11 +67,13 @@ module Increase
|
|
|
61
67
|
created_at: Time,
|
|
62
68
|
currency: Increase::Models::Account::currency,
|
|
63
69
|
entity_id: String,
|
|
70
|
+
funding: Increase::Models::Account::funding?,
|
|
64
71
|
idempotency_key: String?,
|
|
65
72
|
informational_entity_id: String?,
|
|
66
73
|
interest_accrued: String,
|
|
67
74
|
interest_accrued_at: Date?,
|
|
68
75
|
interest_rate: String,
|
|
76
|
+
loan: Increase::Account::Loan?,
|
|
69
77
|
name: String,
|
|
70
78
|
program_id: String,
|
|
71
79
|
status: Increase::Models::Account::status,
|
|
@@ -80,11 +88,13 @@ module Increase
|
|
|
80
88
|
created_at: Time,
|
|
81
89
|
currency: Increase::Models::Account::currency,
|
|
82
90
|
entity_id: String,
|
|
91
|
+
funding: Increase::Models::Account::funding?,
|
|
83
92
|
idempotency_key: String?,
|
|
84
93
|
informational_entity_id: String?,
|
|
85
94
|
interest_accrued: String,
|
|
86
95
|
interest_accrued_at: Date?,
|
|
87
96
|
interest_rate: String,
|
|
97
|
+
loan: Increase::Account::Loan?,
|
|
88
98
|
name: String,
|
|
89
99
|
program_id: String,
|
|
90
100
|
status: Increase::Models::Account::status,
|
|
@@ -119,6 +129,71 @@ module Increase
|
|
|
119
129
|
def self?.values: -> ::Array[Increase::Models::Account::currency]
|
|
120
130
|
end
|
|
121
131
|
|
|
132
|
+
type funding = :loan | :deposits
|
|
133
|
+
|
|
134
|
+
module Funding
|
|
135
|
+
extend Increase::Internal::Type::Enum
|
|
136
|
+
|
|
137
|
+
# An account funded by a loan. Before opening a loan account, contact support@increase.com to set up a loan program.
|
|
138
|
+
LOAN: :loan
|
|
139
|
+
|
|
140
|
+
# An account funded by deposits.
|
|
141
|
+
DEPOSITS: :deposits
|
|
142
|
+
|
|
143
|
+
def self?.values: -> ::Array[Increase::Models::Account::funding]
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
type loan =
|
|
147
|
+
{
|
|
148
|
+
credit_limit: Integer,
|
|
149
|
+
grace_period_days: Integer,
|
|
150
|
+
maturity_date: Date?,
|
|
151
|
+
statement_day_of_month: Integer,
|
|
152
|
+
statement_payment_type: Increase::Models::Account::Loan::statement_payment_type
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
class Loan < Increase::Internal::Type::BaseModel
|
|
156
|
+
attr_accessor credit_limit: Integer
|
|
157
|
+
|
|
158
|
+
attr_accessor grace_period_days: Integer
|
|
159
|
+
|
|
160
|
+
attr_accessor maturity_date: Date?
|
|
161
|
+
|
|
162
|
+
attr_accessor statement_day_of_month: Integer
|
|
163
|
+
|
|
164
|
+
attr_accessor statement_payment_type: Increase::Models::Account::Loan::statement_payment_type
|
|
165
|
+
|
|
166
|
+
def initialize: (
|
|
167
|
+
credit_limit: Integer,
|
|
168
|
+
grace_period_days: Integer,
|
|
169
|
+
maturity_date: Date?,
|
|
170
|
+
statement_day_of_month: Integer,
|
|
171
|
+
statement_payment_type: Increase::Models::Account::Loan::statement_payment_type
|
|
172
|
+
) -> void
|
|
173
|
+
|
|
174
|
+
def to_hash: -> {
|
|
175
|
+
credit_limit: Integer,
|
|
176
|
+
grace_period_days: Integer,
|
|
177
|
+
maturity_date: Date?,
|
|
178
|
+
statement_day_of_month: Integer,
|
|
179
|
+
statement_payment_type: Increase::Models::Account::Loan::statement_payment_type
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
type statement_payment_type = :balance | :interest_until_maturity
|
|
183
|
+
|
|
184
|
+
module StatementPaymentType
|
|
185
|
+
extend Increase::Internal::Type::Enum
|
|
186
|
+
|
|
187
|
+
# The borrower must pay the full balance of the loan at the end of the statement period.
|
|
188
|
+
BALANCE: :balance
|
|
189
|
+
|
|
190
|
+
# The borrower must pay the accrued interest at the end of the statement period.
|
|
191
|
+
INTEREST_UNTIL_MATURITY: :interest_until_maturity
|
|
192
|
+
|
|
193
|
+
def self?.values: -> ::Array[Increase::Models::Account::Loan::statement_payment_type]
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
122
197
|
type status = :closed | :open
|
|
123
198
|
|
|
124
199
|
module Status
|
|
@@ -4,7 +4,9 @@ module Increase
|
|
|
4
4
|
{
|
|
5
5
|
name: String,
|
|
6
6
|
entity_id: String,
|
|
7
|
+
funding: Increase::Models::AccountCreateParams::funding,
|
|
7
8
|
informational_entity_id: String,
|
|
9
|
+
loan: Increase::AccountCreateParams::Loan,
|
|
8
10
|
program_id: String
|
|
9
11
|
}
|
|
10
12
|
& Increase::Internal::Type::request_parameters
|
|
@@ -19,10 +21,22 @@ module Increase
|
|
|
19
21
|
|
|
20
22
|
def entity_id=: (String) -> String
|
|
21
23
|
|
|
24
|
+
attr_reader funding: Increase::Models::AccountCreateParams::funding?
|
|
25
|
+
|
|
26
|
+
def funding=: (
|
|
27
|
+
Increase::Models::AccountCreateParams::funding
|
|
28
|
+
) -> Increase::Models::AccountCreateParams::funding
|
|
29
|
+
|
|
22
30
|
attr_reader informational_entity_id: String?
|
|
23
31
|
|
|
24
32
|
def informational_entity_id=: (String) -> String
|
|
25
33
|
|
|
34
|
+
attr_reader loan: Increase::AccountCreateParams::Loan?
|
|
35
|
+
|
|
36
|
+
def loan=: (
|
|
37
|
+
Increase::AccountCreateParams::Loan
|
|
38
|
+
) -> Increase::AccountCreateParams::Loan
|
|
39
|
+
|
|
26
40
|
attr_reader program_id: String?
|
|
27
41
|
|
|
28
42
|
def program_id=: (String) -> String
|
|
@@ -30,7 +44,9 @@ module Increase
|
|
|
30
44
|
def initialize: (
|
|
31
45
|
name: String,
|
|
32
46
|
?entity_id: String,
|
|
47
|
+
?funding: Increase::Models::AccountCreateParams::funding,
|
|
33
48
|
?informational_entity_id: String,
|
|
49
|
+
?loan: Increase::AccountCreateParams::Loan,
|
|
34
50
|
?program_id: String,
|
|
35
51
|
?request_options: Increase::request_opts
|
|
36
52
|
) -> void
|
|
@@ -38,10 +54,79 @@ module Increase
|
|
|
38
54
|
def to_hash: -> {
|
|
39
55
|
name: String,
|
|
40
56
|
entity_id: String,
|
|
57
|
+
funding: Increase::Models::AccountCreateParams::funding,
|
|
41
58
|
informational_entity_id: String,
|
|
59
|
+
loan: Increase::AccountCreateParams::Loan,
|
|
42
60
|
program_id: String,
|
|
43
61
|
request_options: Increase::RequestOptions
|
|
44
62
|
}
|
|
63
|
+
|
|
64
|
+
type funding = :loan | :deposits
|
|
65
|
+
|
|
66
|
+
module Funding
|
|
67
|
+
extend Increase::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
# An account funded by a loan. Before opening a loan account, contact support@increase.com to set up a loan program.
|
|
70
|
+
LOAN: :loan
|
|
71
|
+
|
|
72
|
+
# An account funded by deposits.
|
|
73
|
+
DEPOSITS: :deposits
|
|
74
|
+
|
|
75
|
+
def self?.values: -> ::Array[Increase::Models::AccountCreateParams::funding]
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
type loan =
|
|
79
|
+
{
|
|
80
|
+
credit_limit: Integer,
|
|
81
|
+
grace_period_days: Integer,
|
|
82
|
+
statement_day_of_month: Integer,
|
|
83
|
+
statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type,
|
|
84
|
+
maturity_date: Date
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
class Loan < Increase::Internal::Type::BaseModel
|
|
88
|
+
attr_accessor credit_limit: Integer
|
|
89
|
+
|
|
90
|
+
attr_accessor grace_period_days: Integer
|
|
91
|
+
|
|
92
|
+
attr_accessor statement_day_of_month: Integer
|
|
93
|
+
|
|
94
|
+
attr_accessor statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type
|
|
95
|
+
|
|
96
|
+
attr_reader maturity_date: Date?
|
|
97
|
+
|
|
98
|
+
def maturity_date=: (Date) -> Date
|
|
99
|
+
|
|
100
|
+
def initialize: (
|
|
101
|
+
credit_limit: Integer,
|
|
102
|
+
grace_period_days: Integer,
|
|
103
|
+
statement_day_of_month: Integer,
|
|
104
|
+
statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type,
|
|
105
|
+
?maturity_date: Date
|
|
106
|
+
) -> void
|
|
107
|
+
|
|
108
|
+
def to_hash: -> {
|
|
109
|
+
credit_limit: Integer,
|
|
110
|
+
grace_period_days: Integer,
|
|
111
|
+
statement_day_of_month: Integer,
|
|
112
|
+
statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type,
|
|
113
|
+
maturity_date: Date
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
type statement_payment_type = :balance | :interest_until_maturity
|
|
117
|
+
|
|
118
|
+
module StatementPaymentType
|
|
119
|
+
extend Increase::Internal::Type::Enum
|
|
120
|
+
|
|
121
|
+
# The borrower must pay the full balance of the loan at the end of the statement period.
|
|
122
|
+
BALANCE: :balance
|
|
123
|
+
|
|
124
|
+
# The borrower must pay the accrued interest at the end of the statement period.
|
|
125
|
+
INTEREST_UNTIL_MATURITY: :interest_until_maturity
|
|
126
|
+
|
|
127
|
+
def self?.values: -> ::Array[Increase::Models::AccountCreateParams::Loan::statement_payment_type]
|
|
128
|
+
end
|
|
129
|
+
end
|
|
45
130
|
end
|
|
46
131
|
end
|
|
47
132
|
end
|
|
@@ -7,6 +7,7 @@ module Increase
|
|
|
7
7
|
created_at: Time,
|
|
8
8
|
ending_balance: Integer,
|
|
9
9
|
file_id: String,
|
|
10
|
+
loan: Increase::AccountStatement::Loan?,
|
|
10
11
|
starting_balance: Integer,
|
|
11
12
|
statement_period_end: Time,
|
|
12
13
|
statement_period_start: Time,
|
|
@@ -24,6 +25,8 @@ module Increase
|
|
|
24
25
|
|
|
25
26
|
attr_accessor file_id: String
|
|
26
27
|
|
|
28
|
+
attr_accessor loan: Increase::AccountStatement::Loan?
|
|
29
|
+
|
|
27
30
|
attr_accessor starting_balance: Integer
|
|
28
31
|
|
|
29
32
|
attr_accessor statement_period_end: Time
|
|
@@ -38,6 +41,7 @@ module Increase
|
|
|
38
41
|
created_at: Time,
|
|
39
42
|
ending_balance: Integer,
|
|
40
43
|
file_id: String,
|
|
44
|
+
loan: Increase::AccountStatement::Loan?,
|
|
41
45
|
starting_balance: Integer,
|
|
42
46
|
statement_period_end: Time,
|
|
43
47
|
statement_period_start: Time,
|
|
@@ -50,12 +54,36 @@ module Increase
|
|
|
50
54
|
created_at: Time,
|
|
51
55
|
ending_balance: Integer,
|
|
52
56
|
file_id: String,
|
|
57
|
+
loan: Increase::AccountStatement::Loan?,
|
|
53
58
|
starting_balance: Integer,
|
|
54
59
|
statement_period_end: Time,
|
|
55
60
|
statement_period_start: Time,
|
|
56
61
|
type: Increase::Models::AccountStatement::type_
|
|
57
62
|
}
|
|
58
63
|
|
|
64
|
+
type loan =
|
|
65
|
+
{ due_at: Time?, due_balance: Integer, past_due_balance: Integer }
|
|
66
|
+
|
|
67
|
+
class Loan < Increase::Internal::Type::BaseModel
|
|
68
|
+
attr_accessor due_at: Time?
|
|
69
|
+
|
|
70
|
+
attr_accessor due_balance: Integer
|
|
71
|
+
|
|
72
|
+
attr_accessor past_due_balance: Integer
|
|
73
|
+
|
|
74
|
+
def initialize: (
|
|
75
|
+
due_at: Time?,
|
|
76
|
+
due_balance: Integer,
|
|
77
|
+
past_due_balance: Integer
|
|
78
|
+
) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> {
|
|
81
|
+
due_at: Time?,
|
|
82
|
+
due_balance: Integer,
|
|
83
|
+
past_due_balance: Integer
|
|
84
|
+
}
|
|
85
|
+
end
|
|
86
|
+
|
|
59
87
|
type type_ = :account_statement
|
|
60
88
|
|
|
61
89
|
module Type
|
|
@@ -1,25 +1,44 @@
|
|
|
1
1
|
module Increase
|
|
2
2
|
module Models
|
|
3
3
|
type account_update_params =
|
|
4
|
-
{ name: String }
|
|
4
|
+
{ loan: Increase::AccountUpdateParams::Loan, 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 loan: Increase::AccountUpdateParams::Loan?
|
|
12
|
+
|
|
13
|
+
def loan=: (
|
|
14
|
+
Increase::AccountUpdateParams::Loan
|
|
15
|
+
) -> Increase::AccountUpdateParams::Loan
|
|
16
|
+
|
|
10
17
|
attr_reader name: String?
|
|
11
18
|
|
|
12
19
|
def name=: (String) -> String
|
|
13
20
|
|
|
14
21
|
def initialize: (
|
|
22
|
+
?loan: Increase::AccountUpdateParams::Loan,
|
|
15
23
|
?name: String,
|
|
16
24
|
?request_options: Increase::request_opts
|
|
17
25
|
) -> void
|
|
18
26
|
|
|
19
27
|
def to_hash: -> {
|
|
28
|
+
loan: Increase::AccountUpdateParams::Loan,
|
|
20
29
|
name: String,
|
|
21
30
|
request_options: Increase::RequestOptions
|
|
22
31
|
}
|
|
32
|
+
|
|
33
|
+
type loan = { credit_limit: Integer }
|
|
34
|
+
|
|
35
|
+
class Loan < Increase::Internal::Type::BaseModel
|
|
36
|
+
attr_accessor credit_limit: Integer
|
|
37
|
+
|
|
38
|
+
def initialize: (credit_limit: Integer) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> { credit_limit: Integer }
|
|
41
|
+
end
|
|
23
42
|
end
|
|
24
43
|
end
|
|
25
44
|
end
|
|
@@ -5,6 +5,7 @@ module Increase
|
|
|
5
5
|
account_id: String,
|
|
6
6
|
available_balance: Integer,
|
|
7
7
|
current_balance: Integer,
|
|
8
|
+
loan: Increase::BalanceLookup::Loan?,
|
|
8
9
|
type: Increase::Models::BalanceLookup::type_
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -15,12 +16,15 @@ module Increase
|
|
|
15
16
|
|
|
16
17
|
attr_accessor current_balance: Integer
|
|
17
18
|
|
|
19
|
+
attr_accessor loan: Increase::BalanceLookup::Loan?
|
|
20
|
+
|
|
18
21
|
attr_accessor type: Increase::Models::BalanceLookup::type_
|
|
19
22
|
|
|
20
23
|
def initialize: (
|
|
21
24
|
account_id: String,
|
|
22
25
|
available_balance: Integer,
|
|
23
26
|
current_balance: Integer,
|
|
27
|
+
loan: Increase::BalanceLookup::Loan?,
|
|
24
28
|
type: Increase::Models::BalanceLookup::type_
|
|
25
29
|
) -> void
|
|
26
30
|
|
|
@@ -28,9 +32,33 @@ module Increase
|
|
|
28
32
|
account_id: String,
|
|
29
33
|
available_balance: Integer,
|
|
30
34
|
current_balance: Integer,
|
|
35
|
+
loan: Increase::BalanceLookup::Loan?,
|
|
31
36
|
type: Increase::Models::BalanceLookup::type_
|
|
32
37
|
}
|
|
33
38
|
|
|
39
|
+
type loan =
|
|
40
|
+
{ due_at: Time?, due_balance: Integer, past_due_balance: Integer }
|
|
41
|
+
|
|
42
|
+
class Loan < Increase::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor due_at: Time?
|
|
44
|
+
|
|
45
|
+
attr_accessor due_balance: Integer
|
|
46
|
+
|
|
47
|
+
attr_accessor past_due_balance: Integer
|
|
48
|
+
|
|
49
|
+
def initialize: (
|
|
50
|
+
due_at: Time?,
|
|
51
|
+
due_balance: Integer,
|
|
52
|
+
past_due_balance: Integer
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
due_at: Time?,
|
|
57
|
+
due_balance: Integer,
|
|
58
|
+
past_due_balance: Integer
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
34
62
|
type type_ = :balance_lookup
|
|
35
63
|
|
|
36
64
|
module Type
|
|
@@ -8,6 +8,7 @@ module Increase
|
|
|
8
8
|
created_at: Time,
|
|
9
9
|
default_digital_card_profile_id: String?,
|
|
10
10
|
interest_rate: String,
|
|
11
|
+
lending: Increase::Program::Lending?,
|
|
11
12
|
name: String,
|
|
12
13
|
type: Increase::Models::Program::type_,
|
|
13
14
|
updated_at: Time
|
|
@@ -26,6 +27,8 @@ module Increase
|
|
|
26
27
|
|
|
27
28
|
attr_accessor interest_rate: String
|
|
28
29
|
|
|
30
|
+
attr_accessor lending: Increase::Program::Lending?
|
|
31
|
+
|
|
29
32
|
attr_accessor name: String
|
|
30
33
|
|
|
31
34
|
attr_accessor type: Increase::Models::Program::type_
|
|
@@ -39,6 +42,7 @@ module Increase
|
|
|
39
42
|
created_at: Time,
|
|
40
43
|
default_digital_card_profile_id: String?,
|
|
41
44
|
interest_rate: String,
|
|
45
|
+
lending: Increase::Program::Lending?,
|
|
42
46
|
name: String,
|
|
43
47
|
type: Increase::Models::Program::type_,
|
|
44
48
|
updated_at: Time
|
|
@@ -51,6 +55,7 @@ module Increase
|
|
|
51
55
|
created_at: Time,
|
|
52
56
|
default_digital_card_profile_id: String?,
|
|
53
57
|
interest_rate: String,
|
|
58
|
+
lending: Increase::Program::Lending?,
|
|
54
59
|
name: String,
|
|
55
60
|
type: Increase::Models::Program::type_,
|
|
56
61
|
updated_at: Time
|
|
@@ -73,6 +78,16 @@ module Increase
|
|
|
73
78
|
def self?.values: -> ::Array[Increase::Models::Program::bank]
|
|
74
79
|
end
|
|
75
80
|
|
|
81
|
+
type lending = { maximum_extendable_credit: Integer }
|
|
82
|
+
|
|
83
|
+
class Lending < Increase::Internal::Type::BaseModel
|
|
84
|
+
attr_accessor maximum_extendable_credit: Integer
|
|
85
|
+
|
|
86
|
+
def initialize: (maximum_extendable_credit: Integer) -> void
|
|
87
|
+
|
|
88
|
+
def to_hash: -> { maximum_extendable_credit: Integer }
|
|
89
|
+
end
|
|
90
|
+
|
|
76
91
|
type type_ = :program
|
|
77
92
|
|
|
78
93
|
module Type
|
|
@@ -5,6 +5,7 @@ module Increase
|
|
|
5
5
|
{
|
|
6
6
|
name: String,
|
|
7
7
|
bank: Increase::Models::Simulations::ProgramCreateParams::bank,
|
|
8
|
+
lending_maximum_extendable_credit: Integer,
|
|
8
9
|
reserve_account_id: String
|
|
9
10
|
}
|
|
10
11
|
& Increase::Internal::Type::request_parameters
|
|
@@ -21,6 +22,10 @@ module Increase
|
|
|
21
22
|
Increase::Models::Simulations::ProgramCreateParams::bank
|
|
22
23
|
) -> Increase::Models::Simulations::ProgramCreateParams::bank
|
|
23
24
|
|
|
25
|
+
attr_reader lending_maximum_extendable_credit: Integer?
|
|
26
|
+
|
|
27
|
+
def lending_maximum_extendable_credit=: (Integer) -> Integer
|
|
28
|
+
|
|
24
29
|
attr_reader reserve_account_id: String?
|
|
25
30
|
|
|
26
31
|
def reserve_account_id=: (String) -> String
|
|
@@ -28,6 +33,7 @@ module Increase
|
|
|
28
33
|
def initialize: (
|
|
29
34
|
name: String,
|
|
30
35
|
?bank: Increase::Models::Simulations::ProgramCreateParams::bank,
|
|
36
|
+
?lending_maximum_extendable_credit: Integer,
|
|
31
37
|
?reserve_account_id: String,
|
|
32
38
|
?request_options: Increase::request_opts
|
|
33
39
|
) -> void
|
|
@@ -35,6 +41,7 @@ module Increase
|
|
|
35
41
|
def to_hash: -> {
|
|
36
42
|
name: String,
|
|
37
43
|
bank: Increase::Models::Simulations::ProgramCreateParams::bank,
|
|
44
|
+
lending_maximum_extendable_credit: Integer,
|
|
38
45
|
reserve_account_id: String,
|
|
39
46
|
request_options: Increase::RequestOptions
|
|
40
47
|
}
|
|
@@ -4,7 +4,9 @@ module Increase
|
|
|
4
4
|
def create: (
|
|
5
5
|
name: String,
|
|
6
6
|
?entity_id: String,
|
|
7
|
+
?funding: Increase::Models::AccountCreateParams::funding,
|
|
7
8
|
?informational_entity_id: String,
|
|
9
|
+
?loan: Increase::AccountCreateParams::Loan,
|
|
8
10
|
?program_id: String,
|
|
9
11
|
?request_options: Increase::request_opts
|
|
10
12
|
) -> Increase::Account
|
|
@@ -16,6 +18,7 @@ module Increase
|
|
|
16
18
|
|
|
17
19
|
def update: (
|
|
18
20
|
String account_id,
|
|
21
|
+
?loan: Increase::AccountUpdateParams::Loan,
|
|
19
22
|
?name: String,
|
|
20
23
|
?request_options: Increase::request_opts
|
|
21
24
|
) -> Increase::Account
|