increase 1.362.0 → 1.364.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/README.md +1 -1
- data/lib/increase/client.rb +8 -16
- data/lib/increase/models/account_number.rb +51 -81
- data/lib/increase/models/account_number_create_params.rb +41 -75
- data/lib/increase/models/account_number_list_params.rb +39 -39
- data/lib/increase/models/account_number_update_params.rb +48 -79
- data/lib/increase/models/ach_transfer.rb +38 -23
- data/lib/increase/models/card_payment.rb +6 -0
- data/lib/increase/models/card_update_params.rb +12 -8
- data/lib/increase/models/check_transfer.rb +58 -44
- data/lib/increase/models/check_transfer_create_params.rb +35 -21
- data/lib/increase/models/checkbook.rb +352 -0
- data/lib/increase/models/checkbook_check.rb +100 -0
- data/lib/increase/models/checkbook_check_list_params.rb +61 -0
- data/lib/increase/models/checkbook_check_retrieve_params.rb +22 -0
- data/lib/increase/models/checkbook_check_stop_params.rb +22 -0
- data/lib/increase/models/checkbook_create_params.rb +111 -0
- data/lib/increase/models/checkbook_list_params.rb +104 -0
- data/lib/increase/models/checkbook_retrieve_params.rb +22 -0
- data/lib/increase/models/checkbook_stop_params.rb +22 -0
- data/lib/increase/models/declined_transaction.rb +10 -1
- data/lib/increase/models/entity.rb +1 -65
- data/lib/increase/models/entity_create_params.rb +1 -65
- data/lib/increase/models/entity_update_params.rb +1 -57
- data/lib/increase/models/export.rb +12 -1
- data/lib/increase/models/export_create_params.rb +26 -4
- data/lib/increase/models/inbound_ach_transfer.rb +6 -6
- data/lib/increase/models/inbound_check_deposit.rb +12 -1
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
- data/lib/increase/models/real_time_decision.rb +65 -1
- data/lib/increase/models/real_time_payments_transfer.rb +21 -1
- data/lib/increase/models/simulations/checkbook_mail_params.rb +24 -0
- data/lib/increase/models/transaction.rb +27 -5
- data/lib/increase/models.rb +21 -20
- data/lib/increase/resources/account_numbers.rb +19 -16
- data/lib/increase/resources/checkbook_checks.rb +90 -0
- data/lib/increase/resources/checkbooks.rb +127 -0
- data/lib/increase/resources/entities.rb +2 -12
- data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
- data/lib/increase/resources/simulations/checkbooks.rb +38 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +14 -14
- data/rbi/increase/client.rbi +6 -12
- data/rbi/increase/models/account_number.rbi +86 -173
- data/rbi/increase/models/account_number_create_params.rbi +87 -165
- data/rbi/increase/models/account_number_list_params.rbi +106 -105
- data/rbi/increase/models/account_number_update_params.rbi +105 -190
- data/rbi/increase/models/ach_transfer.rbi +35 -23
- data/rbi/increase/models/card_payment.rbi +14 -0
- data/rbi/increase/models/card_update_params.rbi +17 -15
- data/rbi/increase/models/check_transfer.rbi +72 -54
- data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
- data/rbi/increase/models/checkbook.rbi +507 -0
- data/rbi/increase/models/checkbook_check.rbi +142 -0
- data/rbi/increase/models/checkbook_check_list_params.rbi +96 -0
- data/rbi/increase/models/{oauth_connection_retrieve_params.rbi → checkbook_check_retrieve_params.rbi} +8 -8
- data/rbi/increase/models/{oauth_application_retrieve_params.rbi → checkbook_check_stop_params.rbi} +8 -11
- data/rbi/increase/models/checkbook_create_params.rbi +178 -0
- data/rbi/increase/models/checkbook_list_params.rbi +198 -0
- data/rbi/increase/models/checkbook_retrieve_params.rbi +40 -0
- data/rbi/increase/models/checkbook_stop_params.rbi +40 -0
- data/rbi/increase/models/declined_transaction.rbi +8 -0
- data/rbi/increase/models/entity.rbi +0 -97
- data/rbi/increase/models/entity_create_params.rbi +0 -119
- data/rbi/increase/models/entity_update_params.rbi +0 -108
- data/rbi/increase/models/export.rbi +15 -3
- data/rbi/increase/models/export_create_params.rbi +27 -3
- data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
- data/rbi/increase/models/inbound_check_deposit.rbi +10 -0
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
- data/rbi/increase/models/real_time_decision.rbi +134 -3
- data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
- data/rbi/increase/models/simulations/checkbook_mail_params.rbi +45 -0
- data/rbi/increase/models/transaction.rbi +33 -3
- data/rbi/increase/models.rbi +21 -22
- data/rbi/increase/resources/account_numbers.rbi +24 -19
- data/rbi/increase/resources/checkbook_checks.rbi +69 -0
- data/rbi/increase/resources/checkbooks.rbi +96 -0
- data/rbi/increase/resources/entities.rbi +0 -11
- data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
- data/rbi/increase/resources/simulations/checkbooks.rbi +30 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +4 -8
- data/sig/increase/models/account_number.rbs +34 -66
- data/sig/increase/models/account_number_create_params.rbs +30 -64
- data/sig/increase/models/account_number_list_params.rbs +44 -44
- data/sig/increase/models/account_number_update_params.rbs +39 -77
- data/sig/increase/models/ach_transfer.rbs +4 -4
- data/sig/increase/models/card_payment.rbs +8 -0
- data/sig/increase/models/card_update_params.rbs +7 -11
- data/sig/increase/models/check_transfer.rbs +59 -49
- data/sig/increase/models/check_transfer_create_params.rbs +20 -12
- data/sig/increase/models/checkbook.rbs +272 -0
- data/sig/increase/models/checkbook_check.rbs +76 -0
- data/sig/increase/models/checkbook_check_list_params.rbs +56 -0
- data/sig/increase/models/{oauth_connection_retrieve_params.rbs → checkbook_check_retrieve_params.rbs} +6 -6
- data/sig/increase/models/{oauth_application_retrieve_params.rbs → checkbook_check_stop_params.rbs} +6 -6
- data/sig/increase/models/checkbook_create_params.rbs +90 -0
- data/sig/increase/models/checkbook_list_params.rbs +97 -0
- data/sig/increase/models/checkbook_retrieve_params.rbs +23 -0
- data/sig/increase/models/checkbook_stop_params.rbs +23 -0
- data/sig/increase/models/declined_transaction.rbs +5 -0
- data/sig/increase/models/entity.rbs +0 -46
- data/sig/increase/models/entity_create_params.rbs +0 -55
- data/sig/increase/models/entity_update_params.rbs +0 -48
- data/sig/increase/models/export.rbs +13 -3
- data/sig/increase/models/export_create_params.rbs +7 -0
- data/sig/increase/models/inbound_check_deposit.rbs +5 -0
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
- data/sig/increase/models/real_time_decision.rbs +69 -3
- data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
- data/sig/increase/models/simulations/checkbook_mail_params.rbs +25 -0
- data/sig/increase/models/transaction.rbs +26 -5
- data/sig/increase/models.rbs +20 -20
- data/sig/increase/resources/account_numbers.rbs +5 -5
- data/sig/increase/resources/checkbook_checks.rbs +26 -0
- data/sig/increase/resources/checkbooks.rbs +33 -0
- data/sig/increase/resources/entities.rbs +0 -3
- data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
- data/sig/increase/resources/simulations/checkbooks.rbs +14 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +45 -45
- data/lib/increase/models/group.rb +0 -57
- data/lib/increase/models/group_retrieve_params.rb +0 -14
- data/lib/increase/models/oauth_application.rb +0 -111
- data/lib/increase/models/oauth_application_list_params.rb +0 -129
- data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_connection.rb +0 -107
- data/lib/increase/models/oauth_connection_list_params.rb +0 -88
- data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_token.rb +0 -76
- data/lib/increase/models/oauth_token_create_params.rb +0 -85
- data/lib/increase/resources/groups.rb +0 -32
- data/lib/increase/resources/oauth_applications.rb +0 -68
- data/lib/increase/resources/oauth_connections.rb +0 -70
- data/lib/increase/resources/oauth_tokens.rb +0 -54
- data/rbi/increase/models/group.rbi +0 -74
- data/rbi/increase/models/group_retrieve_params.rbi +0 -27
- data/rbi/increase/models/oauth_application.rbi +0 -146
- data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
- data/rbi/increase/models/oauth_connection.rbi +0 -142
- data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
- data/rbi/increase/models/oauth_token.rbi +0 -106
- data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
- data/rbi/increase/resources/groups.rbi +0 -21
- data/rbi/increase/resources/oauth_applications.rbi +0 -50
- data/rbi/increase/resources/oauth_connections.rbi +0 -52
- data/rbi/increase/resources/oauth_tokens.rbi +0 -44
- data/sig/increase/models/group.rbs +0 -36
- data/sig/increase/models/group_retrieve_params.rbs +0 -15
- data/sig/increase/models/oauth_application.rbs +0 -74
- data/sig/increase/models/oauth_application_list_params.rbs +0 -123
- data/sig/increase/models/oauth_connection.rbs +0 -74
- data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
- data/sig/increase/models/oauth_token.rbs +0 -55
- data/sig/increase/models/oauth_token_create_params.rbs +0 -68
- data/sig/increase/resources/groups.rbs +0 -11
- data/sig/increase/resources/oauth_applications.rbs +0 -20
- data/sig/increase/resources/oauth_connections.rbs +0 -20
- data/sig/increase/resources/oauth_tokens.rbs +0 -16
|
@@ -31,26 +31,11 @@ module Increase
|
|
|
31
31
|
sig { returns(T.nilable(String)) }
|
|
32
32
|
attr_accessor :idempotency_key
|
|
33
33
|
|
|
34
|
-
#
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
params(inbound_ach: Increase::AccountNumber::InboundACH::OrHash).void
|
|
40
|
-
end
|
|
41
|
-
attr_writer :inbound_ach
|
|
42
|
-
|
|
43
|
-
# Properties related to how this Account Number should handle inbound check
|
|
44
|
-
# withdrawals.
|
|
45
|
-
sig { returns(Increase::AccountNumber::InboundChecks) }
|
|
46
|
-
attr_reader :inbound_checks
|
|
47
|
-
|
|
48
|
-
sig do
|
|
49
|
-
params(
|
|
50
|
-
inbound_checks: Increase::AccountNumber::InboundChecks::OrHash
|
|
51
|
-
).void
|
|
52
|
-
end
|
|
53
|
-
attr_writer :inbound_checks
|
|
34
|
+
# Whether inbound ACH debits are allowed against this Account Number. Note that
|
|
35
|
+
# they will still be declined if this is `allowed` but the Account Number is not
|
|
36
|
+
# active.
|
|
37
|
+
sig { returns(Increase::AccountNumber::InboundACHDebits::TaggedSymbol) }
|
|
38
|
+
attr_accessor :inbound_ach_debits
|
|
54
39
|
|
|
55
40
|
# The name you choose for the Account Number.
|
|
56
41
|
sig { returns(String) }
|
|
@@ -69,6 +54,14 @@ module Increase
|
|
|
69
54
|
sig { returns(Increase::AccountNumber::Type::TaggedSymbol) }
|
|
70
55
|
attr_accessor :type
|
|
71
56
|
|
|
57
|
+
# Whether unregistered inbound checks for this Account Number can be deposited.
|
|
58
|
+
sig do
|
|
59
|
+
returns(
|
|
60
|
+
Increase::AccountNumber::UnregisteredInboundChecks::TaggedSymbol
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
attr_accessor :unregistered_inbound_checks
|
|
64
|
+
|
|
72
65
|
# Each account can have multiple account and routing numbers. We recommend that
|
|
73
66
|
# you use a set per vendor. This is similar to how you use different passwords for
|
|
74
67
|
# different websites. Account numbers can also be used to seamlessly reconcile
|
|
@@ -81,12 +74,14 @@ module Increase
|
|
|
81
74
|
account_number: String,
|
|
82
75
|
created_at: Time,
|
|
83
76
|
idempotency_key: T.nilable(String),
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
inbound_ach_debits:
|
|
78
|
+
Increase::AccountNumber::InboundACHDebits::OrSymbol,
|
|
86
79
|
name: String,
|
|
87
80
|
routing_number: String,
|
|
88
81
|
status: Increase::AccountNumber::Status::OrSymbol,
|
|
89
|
-
type: Increase::AccountNumber::Type::OrSymbol
|
|
82
|
+
type: Increase::AccountNumber::Type::OrSymbol,
|
|
83
|
+
unregistered_inbound_checks:
|
|
84
|
+
Increase::AccountNumber::UnregisteredInboundChecks::OrSymbol
|
|
90
85
|
).returns(T.attached_class)
|
|
91
86
|
end
|
|
92
87
|
def self.new(
|
|
@@ -103,11 +98,10 @@ module Increase
|
|
|
103
98
|
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
104
99
|
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
105
100
|
idempotency_key:,
|
|
106
|
-
#
|
|
107
|
-
|
|
108
|
-
#
|
|
109
|
-
|
|
110
|
-
inbound_checks:,
|
|
101
|
+
# Whether inbound ACH debits are allowed against this Account Number. Note that
|
|
102
|
+
# they will still be declined if this is `allowed` but the Account Number is not
|
|
103
|
+
# active.
|
|
104
|
+
inbound_ach_debits:,
|
|
111
105
|
# The name you choose for the Account Number.
|
|
112
106
|
name:,
|
|
113
107
|
# The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
|
@@ -116,7 +110,9 @@ module Increase
|
|
|
116
110
|
status:,
|
|
117
111
|
# A constant representing the object's type. For this resource it will always be
|
|
118
112
|
# `account_number`.
|
|
119
|
-
type
|
|
113
|
+
type:,
|
|
114
|
+
# Whether unregistered inbound checks for this Account Number can be deposited.
|
|
115
|
+
unregistered_inbound_checks:
|
|
120
116
|
)
|
|
121
117
|
end
|
|
122
118
|
|
|
@@ -128,170 +124,52 @@ module Increase
|
|
|
128
124
|
account_number: String,
|
|
129
125
|
created_at: Time,
|
|
130
126
|
idempotency_key: T.nilable(String),
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
inbound_ach_debits:
|
|
128
|
+
Increase::AccountNumber::InboundACHDebits::TaggedSymbol,
|
|
133
129
|
name: String,
|
|
134
130
|
routing_number: String,
|
|
135
131
|
status: Increase::AccountNumber::Status::TaggedSymbol,
|
|
136
|
-
type: Increase::AccountNumber::Type::TaggedSymbol
|
|
132
|
+
type: Increase::AccountNumber::Type::TaggedSymbol,
|
|
133
|
+
unregistered_inbound_checks:
|
|
134
|
+
Increase::AccountNumber::UnregisteredInboundChecks::TaggedSymbol
|
|
137
135
|
}
|
|
138
136
|
)
|
|
139
137
|
end
|
|
140
138
|
def to_hash
|
|
141
139
|
end
|
|
142
140
|
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
# Whether inbound ACH debits are allowed against this Account Number. Note that
|
|
142
|
+
# they will still be declined if this is `allowed` but the Account Number is not
|
|
143
|
+
# active.
|
|
144
|
+
module InboundACHDebits
|
|
145
|
+
extend Increase::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
TaggedSymbol =
|
|
145
148
|
T.type_alias do
|
|
146
|
-
T.
|
|
147
|
-
Increase::AccountNumber::InboundACH,
|
|
148
|
-
Increase::Internal::AnyHash
|
|
149
|
-
)
|
|
149
|
+
T.all(Symbol, Increase::AccountNumber::InboundACHDebits)
|
|
150
150
|
end
|
|
151
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
151
152
|
|
|
152
|
-
#
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Increase::AccountNumber::
|
|
153
|
+
# ACH Debits are allowed.
|
|
154
|
+
ALLOWED =
|
|
155
|
+
T.let(
|
|
156
|
+
:allowed,
|
|
157
|
+
Increase::AccountNumber::InboundACHDebits::TaggedSymbol
|
|
157
158
|
)
|
|
158
|
-
end
|
|
159
|
-
attr_accessor :debit_status
|
|
160
159
|
|
|
161
|
-
#
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
).returns(T.attached_class)
|
|
167
|
-
end
|
|
168
|
-
def self.new(
|
|
169
|
-
# Whether ACH debits are allowed against this Account Number. Note that they will
|
|
170
|
-
# still be declined if this is `allowed` but the Account Number is not active.
|
|
171
|
-
debit_status:
|
|
172
|
-
)
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
sig do
|
|
176
|
-
override.returns(
|
|
177
|
-
{
|
|
178
|
-
debit_status:
|
|
179
|
-
Increase::AccountNumber::InboundACH::DebitStatus::TaggedSymbol
|
|
180
|
-
}
|
|
160
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
161
|
+
BLOCKED =
|
|
162
|
+
T.let(
|
|
163
|
+
:blocked,
|
|
164
|
+
Increase::AccountNumber::InboundACHDebits::TaggedSymbol
|
|
181
165
|
)
|
|
182
|
-
end
|
|
183
|
-
def to_hash
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
# Whether ACH debits are allowed against this Account Number. Note that they will
|
|
187
|
-
# still be declined if this is `allowed` but the Account Number is not active.
|
|
188
|
-
module DebitStatus
|
|
189
|
-
extend Increase::Internal::Type::Enum
|
|
190
|
-
|
|
191
|
-
TaggedSymbol =
|
|
192
|
-
T.type_alias do
|
|
193
|
-
T.all(Symbol, Increase::AccountNumber::InboundACH::DebitStatus)
|
|
194
|
-
end
|
|
195
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
196
|
-
|
|
197
|
-
# ACH Debits are allowed.
|
|
198
|
-
ALLOWED =
|
|
199
|
-
T.let(
|
|
200
|
-
:allowed,
|
|
201
|
-
Increase::AccountNumber::InboundACH::DebitStatus::TaggedSymbol
|
|
202
|
-
)
|
|
203
|
-
|
|
204
|
-
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
205
|
-
BLOCKED =
|
|
206
|
-
T.let(
|
|
207
|
-
:blocked,
|
|
208
|
-
Increase::AccountNumber::InboundACH::DebitStatus::TaggedSymbol
|
|
209
|
-
)
|
|
210
|
-
|
|
211
|
-
sig do
|
|
212
|
-
override.returns(
|
|
213
|
-
T::Array[
|
|
214
|
-
Increase::AccountNumber::InboundACH::DebitStatus::TaggedSymbol
|
|
215
|
-
]
|
|
216
|
-
)
|
|
217
|
-
end
|
|
218
|
-
def self.values
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
class InboundChecks < Increase::Internal::Type::BaseModel
|
|
224
|
-
OrHash =
|
|
225
|
-
T.type_alias do
|
|
226
|
-
T.any(
|
|
227
|
-
Increase::AccountNumber::InboundChecks,
|
|
228
|
-
Increase::Internal::AnyHash
|
|
229
|
-
)
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
# How Increase should process checks with this account number printed on them.
|
|
233
|
-
sig do
|
|
234
|
-
returns(Increase::AccountNumber::InboundChecks::Status::TaggedSymbol)
|
|
235
|
-
end
|
|
236
|
-
attr_accessor :status
|
|
237
|
-
|
|
238
|
-
# Properties related to how this Account Number should handle inbound check
|
|
239
|
-
# withdrawals.
|
|
240
|
-
sig do
|
|
241
|
-
params(
|
|
242
|
-
status: Increase::AccountNumber::InboundChecks::Status::OrSymbol
|
|
243
|
-
).returns(T.attached_class)
|
|
244
|
-
end
|
|
245
|
-
def self.new(
|
|
246
|
-
# How Increase should process checks with this account number printed on them.
|
|
247
|
-
status:
|
|
248
|
-
)
|
|
249
|
-
end
|
|
250
166
|
|
|
251
167
|
sig do
|
|
252
168
|
override.returns(
|
|
253
|
-
|
|
254
|
-
status:
|
|
255
|
-
Increase::AccountNumber::InboundChecks::Status::TaggedSymbol
|
|
256
|
-
}
|
|
169
|
+
T::Array[Increase::AccountNumber::InboundACHDebits::TaggedSymbol]
|
|
257
170
|
)
|
|
258
171
|
end
|
|
259
|
-
def
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
# How Increase should process checks with this account number printed on them.
|
|
263
|
-
module Status
|
|
264
|
-
extend Increase::Internal::Type::Enum
|
|
265
|
-
|
|
266
|
-
TaggedSymbol =
|
|
267
|
-
T.type_alias do
|
|
268
|
-
T.all(Symbol, Increase::AccountNumber::InboundChecks::Status)
|
|
269
|
-
end
|
|
270
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
271
|
-
|
|
272
|
-
# Checks with this Account Number will be processed even if they are not associated with a Check Transfer.
|
|
273
|
-
ALLOWED =
|
|
274
|
-
T.let(
|
|
275
|
-
:allowed,
|
|
276
|
-
Increase::AccountNumber::InboundChecks::Status::TaggedSymbol
|
|
277
|
-
)
|
|
278
|
-
|
|
279
|
-
# Checks with this Account Number will be processed only if they can be matched to an existing Check Transfer.
|
|
280
|
-
CHECK_TRANSFERS_ONLY =
|
|
281
|
-
T.let(
|
|
282
|
-
:check_transfers_only,
|
|
283
|
-
Increase::AccountNumber::InboundChecks::Status::TaggedSymbol
|
|
284
|
-
)
|
|
285
|
-
|
|
286
|
-
sig do
|
|
287
|
-
override.returns(
|
|
288
|
-
T::Array[
|
|
289
|
-
Increase::AccountNumber::InboundChecks::Status::TaggedSymbol
|
|
290
|
-
]
|
|
291
|
-
)
|
|
292
|
-
end
|
|
293
|
-
def self.values
|
|
294
|
-
end
|
|
172
|
+
def self.values
|
|
295
173
|
end
|
|
296
174
|
end
|
|
297
175
|
|
|
@@ -343,6 +221,41 @@ module Increase
|
|
|
343
221
|
def self.values
|
|
344
222
|
end
|
|
345
223
|
end
|
|
224
|
+
|
|
225
|
+
# Whether unregistered inbound checks for this Account Number can be deposited.
|
|
226
|
+
module UnregisteredInboundChecks
|
|
227
|
+
extend Increase::Internal::Type::Enum
|
|
228
|
+
|
|
229
|
+
TaggedSymbol =
|
|
230
|
+
T.type_alias do
|
|
231
|
+
T.all(Symbol, Increase::AccountNumber::UnregisteredInboundChecks)
|
|
232
|
+
end
|
|
233
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
234
|
+
|
|
235
|
+
# Accept all Inbound Check Deposits, even if they are not associated with a Check Transfer or Checkbook Check.
|
|
236
|
+
ALLOWED =
|
|
237
|
+
T.let(
|
|
238
|
+
:allowed,
|
|
239
|
+
Increase::AccountNumber::UnregisteredInboundChecks::TaggedSymbol
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
# Only accept Inbound Check Deposits if they can be matched to a Check Transfer or Checkbook Check.
|
|
243
|
+
BLOCKED =
|
|
244
|
+
T.let(
|
|
245
|
+
:blocked,
|
|
246
|
+
Increase::AccountNumber::UnregisteredInboundChecks::TaggedSymbol
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
sig do
|
|
250
|
+
override.returns(
|
|
251
|
+
T::Array[
|
|
252
|
+
Increase::AccountNumber::UnregisteredInboundChecks::TaggedSymbol
|
|
253
|
+
]
|
|
254
|
+
)
|
|
255
|
+
end
|
|
256
|
+
def self.values
|
|
257
|
+
end
|
|
258
|
+
end
|
|
346
259
|
end
|
|
347
260
|
end
|
|
348
261
|
end
|
|
@@ -22,41 +22,53 @@ module Increase
|
|
|
22
22
|
sig { returns(String) }
|
|
23
23
|
attr_accessor :name
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# Whether inbound ACH debits are allowed against this Account Number. Note that
|
|
26
|
+
# ACH debits will be declined if this is `allowed` but the Account Number is not
|
|
27
|
+
# active. If you do not specify this field, the default is `allowed`.
|
|
26
28
|
sig do
|
|
27
|
-
returns(
|
|
29
|
+
returns(
|
|
30
|
+
T.nilable(
|
|
31
|
+
Increase::AccountNumberCreateParams::InboundACHDebits::OrSymbol
|
|
32
|
+
)
|
|
33
|
+
)
|
|
28
34
|
end
|
|
29
|
-
attr_reader :
|
|
35
|
+
attr_reader :inbound_ach_debits
|
|
30
36
|
|
|
31
37
|
sig do
|
|
32
38
|
params(
|
|
33
|
-
|
|
39
|
+
inbound_ach_debits:
|
|
40
|
+
Increase::AccountNumberCreateParams::InboundACHDebits::OrSymbol
|
|
34
41
|
).void
|
|
35
42
|
end
|
|
36
|
-
attr_writer :
|
|
43
|
+
attr_writer :inbound_ach_debits
|
|
37
44
|
|
|
38
|
-
#
|
|
39
|
-
#
|
|
45
|
+
# Whether unregistered inbound checks for this Account Number can be deposited. If
|
|
46
|
+
# you do not specify this field, the default is `blocked`.
|
|
40
47
|
sig do
|
|
41
|
-
returns(
|
|
48
|
+
returns(
|
|
49
|
+
T.nilable(
|
|
50
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks::OrSymbol
|
|
51
|
+
)
|
|
52
|
+
)
|
|
42
53
|
end
|
|
43
|
-
attr_reader :
|
|
54
|
+
attr_reader :unregistered_inbound_checks
|
|
44
55
|
|
|
45
56
|
sig do
|
|
46
57
|
params(
|
|
47
|
-
|
|
48
|
-
Increase::AccountNumberCreateParams::
|
|
58
|
+
unregistered_inbound_checks:
|
|
59
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks::OrSymbol
|
|
49
60
|
).void
|
|
50
61
|
end
|
|
51
|
-
attr_writer :
|
|
62
|
+
attr_writer :unregistered_inbound_checks
|
|
52
63
|
|
|
53
64
|
sig do
|
|
54
65
|
params(
|
|
55
66
|
account_id: String,
|
|
56
67
|
name: String,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
inbound_ach_debits:
|
|
69
|
+
Increase::AccountNumberCreateParams::InboundACHDebits::OrSymbol,
|
|
70
|
+
unregistered_inbound_checks:
|
|
71
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks::OrSymbol,
|
|
60
72
|
request_options: Increase::RequestOptions::OrHash
|
|
61
73
|
).returns(T.attached_class)
|
|
62
74
|
end
|
|
@@ -65,11 +77,13 @@ module Increase
|
|
|
65
77
|
account_id:,
|
|
66
78
|
# The name you choose for the Account Number.
|
|
67
79
|
name:,
|
|
68
|
-
#
|
|
69
|
-
|
|
70
|
-
#
|
|
71
|
-
|
|
72
|
-
|
|
80
|
+
# Whether inbound ACH debits are allowed against this Account Number. Note that
|
|
81
|
+
# ACH debits will be declined if this is `allowed` but the Account Number is not
|
|
82
|
+
# active. If you do not specify this field, the default is `allowed`.
|
|
83
|
+
inbound_ach_debits: nil,
|
|
84
|
+
# Whether unregistered inbound checks for this Account Number can be deposited. If
|
|
85
|
+
# you do not specify this field, the default is `blocked`.
|
|
86
|
+
unregistered_inbound_checks: nil,
|
|
73
87
|
request_options: {}
|
|
74
88
|
)
|
|
75
89
|
end
|
|
@@ -79,8 +93,10 @@ module Increase
|
|
|
79
93
|
{
|
|
80
94
|
account_id: String,
|
|
81
95
|
name: String,
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
inbound_ach_debits:
|
|
97
|
+
Increase::AccountNumberCreateParams::InboundACHDebits::OrSymbol,
|
|
98
|
+
unregistered_inbound_checks:
|
|
99
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks::OrSymbol,
|
|
84
100
|
request_options: Increase::RequestOptions
|
|
85
101
|
}
|
|
86
102
|
)
|
|
@@ -88,173 +104,79 @@ module Increase
|
|
|
88
104
|
def to_hash
|
|
89
105
|
end
|
|
90
106
|
|
|
91
|
-
|
|
92
|
-
|
|
107
|
+
# Whether inbound ACH debits are allowed against this Account Number. Note that
|
|
108
|
+
# ACH debits will be declined if this is `allowed` but the Account Number is not
|
|
109
|
+
# active. If you do not specify this field, the default is `allowed`.
|
|
110
|
+
module InboundACHDebits
|
|
111
|
+
extend Increase::Internal::Type::Enum
|
|
112
|
+
|
|
113
|
+
TaggedSymbol =
|
|
93
114
|
T.type_alias do
|
|
94
|
-
T.
|
|
95
|
-
Increase::AccountNumberCreateParams::InboundACH,
|
|
96
|
-
Increase::Internal::AnyHash
|
|
97
|
-
)
|
|
115
|
+
T.all(Symbol, Increase::AccountNumberCreateParams::InboundACHDebits)
|
|
98
116
|
end
|
|
117
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
99
118
|
|
|
100
|
-
#
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Increase::AccountNumberCreateParams::InboundACH::DebitStatus::OrSymbol
|
|
119
|
+
# ACH Debits are allowed.
|
|
120
|
+
ALLOWED =
|
|
121
|
+
T.let(
|
|
122
|
+
:allowed,
|
|
123
|
+
Increase::AccountNumberCreateParams::InboundACHDebits::TaggedSymbol
|
|
106
124
|
)
|
|
107
|
-
end
|
|
108
|
-
attr_accessor :debit_status
|
|
109
125
|
|
|
110
|
-
#
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
)
|
|
116
|
-
end
|
|
117
|
-
def self.new(
|
|
118
|
-
# Whether ACH debits are allowed against this Account Number. Note that ACH debits
|
|
119
|
-
# will be declined if this is `allowed` but the Account Number is not active. If
|
|
120
|
-
# you do not specify this field, the default is `allowed`.
|
|
121
|
-
debit_status:
|
|
122
|
-
)
|
|
123
|
-
end
|
|
126
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
127
|
+
BLOCKED =
|
|
128
|
+
T.let(
|
|
129
|
+
:blocked,
|
|
130
|
+
Increase::AccountNumberCreateParams::InboundACHDebits::TaggedSymbol
|
|
131
|
+
)
|
|
124
132
|
|
|
125
133
|
sig do
|
|
126
134
|
override.returns(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
135
|
+
T::Array[
|
|
136
|
+
Increase::AccountNumberCreateParams::InboundACHDebits::TaggedSymbol
|
|
137
|
+
]
|
|
131
138
|
)
|
|
132
139
|
end
|
|
133
|
-
def
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Whether ACH debits are allowed against this Account Number. Note that ACH debits
|
|
137
|
-
# will be declined if this is `allowed` but the Account Number is not active. If
|
|
138
|
-
# you do not specify this field, the default is `allowed`.
|
|
139
|
-
module DebitStatus
|
|
140
|
-
extend Increase::Internal::Type::Enum
|
|
141
|
-
|
|
142
|
-
TaggedSymbol =
|
|
143
|
-
T.type_alias do
|
|
144
|
-
T.all(
|
|
145
|
-
Symbol,
|
|
146
|
-
Increase::AccountNumberCreateParams::InboundACH::DebitStatus
|
|
147
|
-
)
|
|
148
|
-
end
|
|
149
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
150
|
-
|
|
151
|
-
# ACH Debits are allowed.
|
|
152
|
-
ALLOWED =
|
|
153
|
-
T.let(
|
|
154
|
-
:allowed,
|
|
155
|
-
Increase::AccountNumberCreateParams::InboundACH::DebitStatus::TaggedSymbol
|
|
156
|
-
)
|
|
157
|
-
|
|
158
|
-
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
159
|
-
BLOCKED =
|
|
160
|
-
T.let(
|
|
161
|
-
:blocked,
|
|
162
|
-
Increase::AccountNumberCreateParams::InboundACH::DebitStatus::TaggedSymbol
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
sig do
|
|
166
|
-
override.returns(
|
|
167
|
-
T::Array[
|
|
168
|
-
Increase::AccountNumberCreateParams::InboundACH::DebitStatus::TaggedSymbol
|
|
169
|
-
]
|
|
170
|
-
)
|
|
171
|
-
end
|
|
172
|
-
def self.values
|
|
173
|
-
end
|
|
140
|
+
def self.values
|
|
174
141
|
end
|
|
175
142
|
end
|
|
176
143
|
|
|
177
|
-
|
|
178
|
-
|
|
144
|
+
# Whether unregistered inbound checks for this Account Number can be deposited. If
|
|
145
|
+
# you do not specify this field, the default is `blocked`.
|
|
146
|
+
module UnregisteredInboundChecks
|
|
147
|
+
extend Increase::Internal::Type::Enum
|
|
148
|
+
|
|
149
|
+
TaggedSymbol =
|
|
179
150
|
T.type_alias do
|
|
180
|
-
T.
|
|
181
|
-
|
|
182
|
-
Increase::
|
|
151
|
+
T.all(
|
|
152
|
+
Symbol,
|
|
153
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks
|
|
183
154
|
)
|
|
184
155
|
end
|
|
156
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
185
157
|
|
|
186
|
-
#
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
Increase::AccountNumberCreateParams::
|
|
158
|
+
# Accept all Inbound Check Deposits, even if they are not associated with a Check Transfer or Checkbook Check.
|
|
159
|
+
ALLOWED =
|
|
160
|
+
T.let(
|
|
161
|
+
:allowed,
|
|
162
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks::TaggedSymbol
|
|
191
163
|
)
|
|
192
|
-
end
|
|
193
|
-
attr_accessor :status
|
|
194
164
|
|
|
195
|
-
#
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
).returns(T.attached_class)
|
|
202
|
-
end
|
|
203
|
-
def self.new(
|
|
204
|
-
# How Increase should process checks with this account number printed on them. If
|
|
205
|
-
# you do not specify this field, the default is `check_transfers_only`.
|
|
206
|
-
status:
|
|
207
|
-
)
|
|
208
|
-
end
|
|
165
|
+
# Only accept Inbound Check Deposits if they can be matched to a Check Transfer or Checkbook Check.
|
|
166
|
+
BLOCKED =
|
|
167
|
+
T.let(
|
|
168
|
+
:blocked,
|
|
169
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks::TaggedSymbol
|
|
170
|
+
)
|
|
209
171
|
|
|
210
172
|
sig do
|
|
211
173
|
override.returns(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
174
|
+
T::Array[
|
|
175
|
+
Increase::AccountNumberCreateParams::UnregisteredInboundChecks::TaggedSymbol
|
|
176
|
+
]
|
|
216
177
|
)
|
|
217
178
|
end
|
|
218
|
-
def
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# How Increase should process checks with this account number printed on them. If
|
|
222
|
-
# you do not specify this field, the default is `check_transfers_only`.
|
|
223
|
-
module Status
|
|
224
|
-
extend Increase::Internal::Type::Enum
|
|
225
|
-
|
|
226
|
-
TaggedSymbol =
|
|
227
|
-
T.type_alias do
|
|
228
|
-
T.all(
|
|
229
|
-
Symbol,
|
|
230
|
-
Increase::AccountNumberCreateParams::InboundChecks::Status
|
|
231
|
-
)
|
|
232
|
-
end
|
|
233
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
234
|
-
|
|
235
|
-
# Checks with this Account Number will be processed even if they are not associated with a Check Transfer.
|
|
236
|
-
ALLOWED =
|
|
237
|
-
T.let(
|
|
238
|
-
:allowed,
|
|
239
|
-
Increase::AccountNumberCreateParams::InboundChecks::Status::TaggedSymbol
|
|
240
|
-
)
|
|
241
|
-
|
|
242
|
-
# Checks with this Account Number will be processed only if they can be matched to an existing Check Transfer.
|
|
243
|
-
CHECK_TRANSFERS_ONLY =
|
|
244
|
-
T.let(
|
|
245
|
-
:check_transfers_only,
|
|
246
|
-
Increase::AccountNumberCreateParams::InboundChecks::Status::TaggedSymbol
|
|
247
|
-
)
|
|
248
|
-
|
|
249
|
-
sig do
|
|
250
|
-
override.returns(
|
|
251
|
-
T::Array[
|
|
252
|
-
Increase::AccountNumberCreateParams::InboundChecks::Status::TaggedSymbol
|
|
253
|
-
]
|
|
254
|
-
)
|
|
255
|
-
end
|
|
256
|
-
def self.values
|
|
257
|
-
end
|
|
179
|
+
def self.values
|
|
258
180
|
end
|
|
259
181
|
end
|
|
260
182
|
end
|