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