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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55ac30f388550b8f685eb5bf5dce3a9ed1c506387fc9cb58b94746f41f103f5f
4
- data.tar.gz: 0275dc1471bbee9c227de6bbe30800bcb2dbab8c580b521c516d7c4e7c30539e
3
+ metadata.gz: 222a3a474a6fabf7445abcecbbe300845db445bc0d08b3bc399596cc760f24af
4
+ data.tar.gz: 10425bbfc0580d4df9cacbe14d13fe6122cbca7f84786c4eaad54ece99260d5f
5
5
  SHA512:
6
- metadata.gz: a9946430baa65f8a3375dd78f87256c1b99c7ee3ad81127381d59bad50449eeb92db6c1d76e8e1298eaf6b9a45c77e024e18dae38b961777c91e8689ad468306
7
- data.tar.gz: 4ca5d93ed5ed2900ae9997e212447f0e836842ce8d4cdcde2033e4f325e65745c5aa89e90ad96e71c2cab139792409ff431452fa034e755f24f65bc4eaa15d5d
6
+ metadata.gz: 1a92736d94243d471c75cd7d4e0fb50294474808b2d69f09f746920916f9d05b0655404f50b1c0a0c311c61aa315c2586e81ea552e958063191c5524e25047dd
7
+ data.tar.gz: d5cf59099d458e204f9942bfd3c4b05cd69ea5e494cb1e624dd7c0c376cdca60df686f89893fd525906b830e2c82f16ef1328099ddf736d098b35832aa08072c
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.362.0"
18
+ gem "increase", "~> 1.364.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -95,6 +95,12 @@ module Increase
95
95
  # @return [Increase::Resources::CheckTransfers]
96
96
  attr_reader :check_transfers
97
97
 
98
+ # @return [Increase::Resources::Checkbooks]
99
+ attr_reader :checkbooks
100
+
101
+ # @return [Increase::Resources::CheckbookChecks]
102
+ attr_reader :checkbook_checks
103
+
98
104
  # @return [Increase::Resources::InboundCheckDeposits]
99
105
  attr_reader :inbound_check_deposits
100
106
 
@@ -173,18 +179,6 @@ module Increase
173
179
  # @return [Increase::Resources::RealTimeDecisions]
174
180
  attr_reader :real_time_decisions
175
181
 
176
- # @return [Increase::Resources::Groups]
177
- attr_reader :groups
178
-
179
- # @return [Increase::Resources::OAuthApplications]
180
- attr_reader :oauth_applications
181
-
182
- # @return [Increase::Resources::OAuthConnections]
183
- attr_reader :oauth_connections
184
-
185
- # @return [Increase::Resources::OAuthTokens]
186
- attr_reader :oauth_tokens
187
-
188
182
  # @return [Increase::Resources::IntrafiAccountEnrollments]
189
183
  attr_reader :intrafi_account_enrollments
190
184
 
@@ -314,6 +308,8 @@ module Increase
314
308
  @wire_drawdown_requests = Increase::Resources::WireDrawdownRequests.new(client: self)
315
309
  @inbound_wire_drawdown_requests = Increase::Resources::InboundWireDrawdownRequests.new(client: self)
316
310
  @check_transfers = Increase::Resources::CheckTransfers.new(client: self)
311
+ @checkbooks = Increase::Resources::Checkbooks.new(client: self)
312
+ @checkbook_checks = Increase::Resources::CheckbookChecks.new(client: self)
317
313
  @inbound_check_deposits = Increase::Resources::InboundCheckDeposits.new(client: self)
318
314
  @real_time_payments_transfers = Increase::Resources::RealTimePaymentsTransfers.new(client: self)
319
315
  @inbound_real_time_payments_transfers =
@@ -343,10 +339,6 @@ module Increase
343
339
  @events = Increase::Resources::Events.new(client: self)
344
340
  @event_subscriptions = Increase::Resources::EventSubscriptions.new(client: self)
345
341
  @real_time_decisions = Increase::Resources::RealTimeDecisions.new(client: self)
346
- @groups = Increase::Resources::Groups.new(client: self)
347
- @oauth_applications = Increase::Resources::OAuthApplications.new(client: self)
348
- @oauth_connections = Increase::Resources::OAuthConnections.new(client: self)
349
- @oauth_tokens = Increase::Resources::OAuthTokens.new(client: self)
350
342
  @intrafi_account_enrollments = Increase::Resources::IntrafiAccountEnrollments.new(client: self)
351
343
  @intrafi_balances = Increase::Resources::IntrafiBalances.new(client: self)
352
344
  @intrafi_exclusions = Increase::Resources::IntrafiExclusions.new(client: self)
@@ -37,18 +37,13 @@ module Increase
37
37
  # @return [String, nil]
38
38
  required :idempotency_key, String, nil?: true
39
39
 
40
- # @!attribute inbound_ach
41
- # Properties related to how this Account Number handles inbound ACH transfers.
40
+ # @!attribute inbound_ach_debits
41
+ # Whether inbound ACH debits are allowed against this Account Number. Note that
42
+ # they will still be declined if this is `allowed` but the Account Number is not
43
+ # active.
42
44
  #
43
- # @return [Increase::Models::AccountNumber::InboundACH]
44
- required :inbound_ach, -> { Increase::AccountNumber::InboundACH }
45
-
46
- # @!attribute inbound_checks
47
- # Properties related to how this Account Number should handle inbound check
48
- # withdrawals.
49
- #
50
- # @return [Increase::Models::AccountNumber::InboundChecks]
51
- required :inbound_checks, -> { Increase::AccountNumber::InboundChecks }
45
+ # @return [Symbol, Increase::Models::AccountNumber::InboundACHDebits]
46
+ required :inbound_ach_debits, enum: -> { Increase::AccountNumber::InboundACHDebits }
52
47
 
53
48
  # @!attribute name
54
49
  # The name you choose for the Account Number.
@@ -75,7 +70,13 @@ module Increase
75
70
  # @return [Symbol, Increase::Models::AccountNumber::Type]
76
71
  required :type, enum: -> { Increase::AccountNumber::Type }
77
72
 
78
- # @!method initialize(id:, account_id:, account_number:, created_at:, idempotency_key:, inbound_ach:, inbound_checks:, name:, routing_number:, status:, type:)
73
+ # @!attribute unregistered_inbound_checks
74
+ # Whether unregistered inbound checks for this Account Number can be deposited.
75
+ #
76
+ # @return [Symbol, Increase::Models::AccountNumber::UnregisteredInboundChecks]
77
+ required :unregistered_inbound_checks, enum: -> { Increase::AccountNumber::UnregisteredInboundChecks }
78
+
79
+ # @!method initialize(id:, account_id:, account_number:, created_at:, idempotency_key:, inbound_ach_debits:, name:, routing_number:, status:, type:, unregistered_inbound_checks:)
79
80
  # Each account can have multiple account and routing numbers. We recommend that
80
81
  # you use a set per vendor. This is similar to how you use different passwords for
81
82
  # different websites. Account numbers can also be used to seamlessly reconcile
@@ -97,12 +98,10 @@ module Increase
97
98
  # Increase and is used to ensure that a request is only processed once. Learn more
98
99
  # about [idempotency](https://increase.com/documentation/idempotency-keys).
99
100
  #
100
- # @param inbound_ach [Increase::Models::AccountNumber::InboundACH]
101
- # Properties related to how this Account Number handles inbound ACH transfers.
102
- #
103
- # @param inbound_checks [Increase::Models::AccountNumber::InboundChecks]
104
- # Properties related to how this Account Number should handle inbound check
105
- # withdrawals.
101
+ # @param inbound_ach_debits [Symbol, Increase::Models::AccountNumber::InboundACHDebits]
102
+ # Whether inbound ACH debits are allowed against this Account Number. Note that
103
+ # they will still be declined if this is `allowed` but the Account Number is not
104
+ # active.
106
105
  #
107
106
  # @param name [String] The name you choose for the Account Number.
108
107
  #
@@ -114,71 +113,26 @@ module Increase
114
113
  # @param type [Symbol, Increase::Models::AccountNumber::Type]
115
114
  # A constant representing the object's type. For this resource it will always be
116
115
  # `account_number`.
116
+ #
117
+ # @param unregistered_inbound_checks [Symbol, Increase::Models::AccountNumber::UnregisteredInboundChecks]
118
+ # Whether unregistered inbound checks for this Account Number can be deposited.
117
119
 
118
- # @see Increase::Models::AccountNumber#inbound_ach
119
- class InboundACH < Increase::Internal::Type::BaseModel
120
- # @!attribute debit_status
121
- # Whether ACH debits are allowed against this Account Number. Note that they will
122
- # still be declined if this is `allowed` but the Account Number is not active.
123
- #
124
- # @return [Symbol, Increase::Models::AccountNumber::InboundACH::DebitStatus]
125
- required :debit_status, enum: -> { Increase::AccountNumber::InboundACH::DebitStatus }
126
-
127
- # @!method initialize(debit_status:)
128
- # Properties related to how this Account Number handles inbound ACH transfers.
129
- #
130
- # @param debit_status [Symbol, Increase::Models::AccountNumber::InboundACH::DebitStatus]
131
- # Whether ACH debits are allowed against this Account Number. Note that they will
132
- # still be declined if this is `allowed` but the Account Number is not active.
133
-
134
- # Whether ACH debits are allowed against this Account Number. Note that they will
135
- # still be declined if this is `allowed` but the Account Number is not active.
136
- #
137
- # @see Increase::Models::AccountNumber::InboundACH#debit_status
138
- module DebitStatus
139
- extend Increase::Internal::Type::Enum
140
-
141
- # ACH Debits are allowed.
142
- ALLOWED = :allowed
143
-
144
- # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
145
- BLOCKED = :blocked
146
-
147
- # @!method self.values
148
- # @return [Array<Symbol>]
149
- end
150
- end
120
+ # Whether inbound ACH debits are allowed against this Account Number. Note that
121
+ # they will still be declined if this is `allowed` but the Account Number is not
122
+ # active.
123
+ #
124
+ # @see Increase::Models::AccountNumber#inbound_ach_debits
125
+ module InboundACHDebits
126
+ extend Increase::Internal::Type::Enum
127
+
128
+ # ACH Debits are allowed.
129
+ ALLOWED = :allowed
130
+
131
+ # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
132
+ BLOCKED = :blocked
151
133
 
152
- # @see Increase::Models::AccountNumber#inbound_checks
153
- class InboundChecks < Increase::Internal::Type::BaseModel
154
- # @!attribute status
155
- # How Increase should process checks with this account number printed on them.
156
- #
157
- # @return [Symbol, Increase::Models::AccountNumber::InboundChecks::Status]
158
- required :status, enum: -> { Increase::AccountNumber::InboundChecks::Status }
159
-
160
- # @!method initialize(status:)
161
- # Properties related to how this Account Number should handle inbound check
162
- # withdrawals.
163
- #
164
- # @param status [Symbol, Increase::Models::AccountNumber::InboundChecks::Status]
165
- # How Increase should process checks with this account number printed on them.
166
-
167
- # How Increase should process checks with this account number printed on them.
168
- #
169
- # @see Increase::Models::AccountNumber::InboundChecks#status
170
- module Status
171
- extend Increase::Internal::Type::Enum
172
-
173
- # Checks with this Account Number will be processed even if they are not associated with a Check Transfer.
174
- ALLOWED = :allowed
175
-
176
- # Checks with this Account Number will be processed only if they can be matched to an existing Check Transfer.
177
- CHECK_TRANSFERS_ONLY = :check_transfers_only
178
-
179
- # @!method self.values
180
- # @return [Array<Symbol>]
181
- end
134
+ # @!method self.values
135
+ # @return [Array<Symbol>]
182
136
  end
183
137
 
184
138
  # This indicates if payments can be made to the Account Number.
@@ -212,6 +166,22 @@ module Increase
212
166
  # @!method self.values
213
167
  # @return [Array<Symbol>]
214
168
  end
169
+
170
+ # Whether unregistered inbound checks for this Account Number can be deposited.
171
+ #
172
+ # @see Increase::Models::AccountNumber#unregistered_inbound_checks
173
+ module UnregisteredInboundChecks
174
+ extend Increase::Internal::Type::Enum
175
+
176
+ # Accept all Inbound Check Deposits, even if they are not associated with a Check Transfer or Checkbook Check.
177
+ ALLOWED = :allowed
178
+
179
+ # Only accept Inbound Check Deposits if they can be matched to a Check Transfer or Checkbook Check.
180
+ BLOCKED = :blocked
181
+
182
+ # @!method self.values
183
+ # @return [Array<Symbol>]
184
+ end
215
185
  end
216
186
  end
217
187
  end
@@ -19,101 +19,67 @@ module Increase
19
19
  # @return [String]
20
20
  required :name, String
21
21
 
22
- # @!attribute inbound_ach
23
- # Options related to how this Account Number should handle inbound ACH transfers.
22
+ # @!attribute inbound_ach_debits
23
+ # Whether inbound ACH debits are allowed against this Account Number. Note that
24
+ # ACH debits will be declined if this is `allowed` but the Account Number is not
25
+ # active. If you do not specify this field, the default is `allowed`.
24
26
  #
25
- # @return [Increase::Models::AccountNumberCreateParams::InboundACH, nil]
26
- optional :inbound_ach, -> { Increase::AccountNumberCreateParams::InboundACH }
27
+ # @return [Symbol, Increase::Models::AccountNumberCreateParams::InboundACHDebits, nil]
28
+ optional :inbound_ach_debits, enum: -> { Increase::AccountNumberCreateParams::InboundACHDebits }
27
29
 
28
- # @!attribute inbound_checks
29
- # Options related to how this Account Number should handle inbound check
30
- # withdrawals.
30
+ # @!attribute unregistered_inbound_checks
31
+ # Whether unregistered inbound checks for this Account Number can be deposited. If
32
+ # you do not specify this field, the default is `blocked`.
31
33
  #
32
- # @return [Increase::Models::AccountNumberCreateParams::InboundChecks, nil]
33
- optional :inbound_checks, -> { Increase::AccountNumberCreateParams::InboundChecks }
34
+ # @return [Symbol, Increase::Models::AccountNumberCreateParams::UnregisteredInboundChecks, nil]
35
+ optional :unregistered_inbound_checks,
36
+ enum: -> { Increase::AccountNumberCreateParams::UnregisteredInboundChecks }
34
37
 
35
- # @!method initialize(account_id:, name:, inbound_ach: nil, inbound_checks: nil, request_options: {})
38
+ # @!method initialize(account_id:, name:, inbound_ach_debits: nil, unregistered_inbound_checks: nil, request_options: {})
36
39
  # @param account_id [String] The Account the Account Number should belong to.
37
40
  #
38
41
  # @param name [String] The name you choose for the Account Number.
39
42
  #
40
- # @param inbound_ach [Increase::Models::AccountNumberCreateParams::InboundACH]
41
- # Options related to how this Account Number should handle inbound ACH transfers.
43
+ # @param inbound_ach_debits [Symbol, Increase::Models::AccountNumberCreateParams::InboundACHDebits]
44
+ # Whether inbound ACH debits are allowed against this Account Number. Note that
45
+ # ACH debits will be declined if this is `allowed` but the Account Number is not
46
+ # active. If you do not specify this field, the default is `allowed`.
42
47
  #
43
- # @param inbound_checks [Increase::Models::AccountNumberCreateParams::InboundChecks]
44
- # Options related to how this Account Number should handle inbound check
45
- # withdrawals.
48
+ # @param unregistered_inbound_checks [Symbol, Increase::Models::AccountNumberCreateParams::UnregisteredInboundChecks]
49
+ # Whether unregistered inbound checks for this Account Number can be deposited. If
50
+ # you do not specify this field, the default is `blocked`.
46
51
  #
47
52
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
48
53
 
49
- class InboundACH < Increase::Internal::Type::BaseModel
50
- # @!attribute debit_status
51
- # Whether ACH debits are allowed against this Account Number. Note that ACH debits
52
- # will be declined if this is `allowed` but the Account Number is not active. If
53
- # you do not specify this field, the default is `allowed`.
54
- #
55
- # @return [Symbol, Increase::Models::AccountNumberCreateParams::InboundACH::DebitStatus]
56
- required :debit_status, enum: -> { Increase::AccountNumberCreateParams::InboundACH::DebitStatus }
54
+ # Whether inbound ACH debits are allowed against this Account Number. Note that
55
+ # ACH debits will be declined if this is `allowed` but the Account Number is not
56
+ # active. If you do not specify this field, the default is `allowed`.
57
+ module InboundACHDebits
58
+ extend Increase::Internal::Type::Enum
57
59
 
58
- # @!method initialize(debit_status:)
59
- # Options related to how this Account Number should handle inbound ACH transfers.
60
- #
61
- # @param debit_status [Symbol, Increase::Models::AccountNumberCreateParams::InboundACH::DebitStatus]
62
- # Whether ACH debits are allowed against this Account Number. Note that ACH debits
63
- # will be declined if this is `allowed` but the Account Number is not active. If
64
- # you do not specify this field, the default is `allowed`.
60
+ # ACH Debits are allowed.
61
+ ALLOWED = :allowed
65
62
 
66
- # Whether ACH debits are allowed against this Account Number. Note that ACH debits
67
- # will be declined if this is `allowed` but the Account Number is not active. If
68
- # you do not specify this field, the default is `allowed`.
69
- #
70
- # @see Increase::Models::AccountNumberCreateParams::InboundACH#debit_status
71
- module DebitStatus
72
- extend Increase::Internal::Type::Enum
63
+ # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
64
+ BLOCKED = :blocked
73
65
 
74
- # ACH Debits are allowed.
75
- ALLOWED = :allowed
76
-
77
- # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
78
- BLOCKED = :blocked
79
-
80
- # @!method self.values
81
- # @return [Array<Symbol>]
82
- end
66
+ # @!method self.values
67
+ # @return [Array<Symbol>]
83
68
  end
84
69
 
85
- class InboundChecks < Increase::Internal::Type::BaseModel
86
- # @!attribute status
87
- # How Increase should process checks with this account number printed on them. If
88
- # you do not specify this field, the default is `check_transfers_only`.
89
- #
90
- # @return [Symbol, Increase::Models::AccountNumberCreateParams::InboundChecks::Status]
91
- required :status, enum: -> { Increase::AccountNumberCreateParams::InboundChecks::Status }
92
-
93
- # @!method initialize(status:)
94
- # Options related to how this Account Number should handle inbound check
95
- # withdrawals.
96
- #
97
- # @param status [Symbol, Increase::Models::AccountNumberCreateParams::InboundChecks::Status]
98
- # How Increase should process checks with this account number printed on them. If
99
- # you do not specify this field, the default is `check_transfers_only`.
100
-
101
- # How Increase should process checks with this account number printed on them. If
102
- # you do not specify this field, the default is `check_transfers_only`.
103
- #
104
- # @see Increase::Models::AccountNumberCreateParams::InboundChecks#status
105
- module Status
106
- extend Increase::Internal::Type::Enum
70
+ # Whether unregistered inbound checks for this Account Number can be deposited. If
71
+ # you do not specify this field, the default is `blocked`.
72
+ module UnregisteredInboundChecks
73
+ extend Increase::Internal::Type::Enum
107
74
 
108
- # Checks with this Account Number will be processed even if they are not associated with a Check Transfer.
109
- ALLOWED = :allowed
75
+ # Accept all Inbound Check Deposits, even if they are not associated with a Check Transfer or Checkbook Check.
76
+ ALLOWED = :allowed
110
77
 
111
- # Checks with this Account Number will be processed only if they can be matched to an existing Check Transfer.
112
- CHECK_TRANSFERS_ONLY = :check_transfers_only
78
+ # Only accept Inbound Check Deposits if they can be matched to a Check Transfer or Checkbook Check.
79
+ BLOCKED = :blocked
113
80
 
114
- # @!method self.values
115
- # @return [Array<Symbol>]
116
- end
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
117
83
  end
118
84
  end
119
85
  end
@@ -13,11 +13,6 @@ module Increase
13
13
  # @return [String, nil]
14
14
  optional :account_id, String
15
15
 
16
- # @!attribute ach_debit_status
17
- #
18
- # @return [Increase::Models::AccountNumberListParams::ACHDebitStatus, nil]
19
- optional :ach_debit_status, -> { Increase::AccountNumberListParams::ACHDebitStatus }
20
-
21
16
  # @!attribute created_at
22
17
  #
23
18
  # @return [Increase::Models::AccountNumberListParams::CreatedAt, nil]
@@ -38,6 +33,11 @@ module Increase
38
33
  # @return [String, nil]
39
34
  optional :idempotency_key, String
40
35
 
36
+ # @!attribute inbound_ach_debits
37
+ #
38
+ # @return [Increase::Models::AccountNumberListParams::InboundACHDebits, nil]
39
+ optional :inbound_ach_debits, -> { Increase::AccountNumberListParams::InboundACHDebits }
40
+
41
41
  # @!attribute limit
42
42
  # Limit the size of the list that is returned. The default (and maximum) is 100
43
43
  # objects.
@@ -52,11 +52,9 @@ module Increase
52
52
  # @return [Increase::Models::AccountNumberListParams::Status, nil]
53
53
  optional :status, -> { Increase::AccountNumberListParams::Status }
54
54
 
55
- # @!method initialize(account_id: nil, ach_debit_status: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
55
+ # @!method initialize(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, inbound_ach_debits: nil, limit: nil, status: nil, request_options: {})
56
56
  # @param account_id [String] Filter Account Numbers to those belonging to the specified Account.
57
57
  #
58
- # @param ach_debit_status [Increase::Models::AccountNumberListParams::ACHDebitStatus]
59
- #
60
58
  # @param created_at [Increase::Models::AccountNumberListParams::CreatedAt]
61
59
  #
62
60
  # @param cursor [String] Return the page of entries after this one.
@@ -67,6 +65,8 @@ module Increase
67
65
  # request is only processed once. Learn more about
68
66
  # [idempotency](https://increase.com/documentation/idempotency-keys).
69
67
  #
68
+ # @param inbound_ach_debits [Increase::Models::AccountNumberListParams::InboundACHDebits]
69
+ #
70
70
  # @param limit [Integer]
71
71
  # Limit the size of the list that is returned. The default (and maximum) is 100
72
72
  # objects.
@@ -77,37 +77,6 @@ module Increase
77
77
  #
78
78
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
79
79
 
80
- class ACHDebitStatus < Increase::Internal::Type::BaseModel
81
- # @!attribute in_
82
- # The ACH Debit status to retrieve Account Numbers for. For GET requests, this
83
- # should be encoded as a comma-delimited string, such as `?in=one,two,three`.
84
- #
85
- # @return [Array<Symbol, Increase::Models::AccountNumberListParams::ACHDebitStatus::In>, nil]
86
- optional :in_,
87
- -> {
88
- Increase::Internal::Type::ArrayOf[enum: Increase::AccountNumberListParams::ACHDebitStatus::In]
89
- },
90
- api_name: :in
91
-
92
- # @!method initialize(in_: nil)
93
- # @param in_ [Array<Symbol, Increase::Models::AccountNumberListParams::ACHDebitStatus::In>]
94
- # The ACH Debit status to retrieve Account Numbers for. For GET requests, this
95
- # should be encoded as a comma-delimited string, such as `?in=one,two,three`.
96
-
97
- module In
98
- extend Increase::Internal::Type::Enum
99
-
100
- # ACH Debits are allowed.
101
- ALLOWED = :allowed
102
-
103
- # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
104
- BLOCKED = :blocked
105
-
106
- # @!method self.values
107
- # @return [Array<Symbol>]
108
- end
109
- end
110
-
111
80
  class CreatedAt < Increase::Internal::Type::BaseModel
112
81
  # @!attribute after
113
82
  # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
@@ -155,6 +124,37 @@ module Increase
155
124
  # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
156
125
  end
157
126
 
127
+ class InboundACHDebits < Increase::Internal::Type::BaseModel
128
+ # @!attribute in_
129
+ # The inbound ACH debits status to retrieve Account Numbers for. For GET requests,
130
+ # this should be encoded as a comma-delimited string, such as `?in=one,two,three`.
131
+ #
132
+ # @return [Array<Symbol, Increase::Models::AccountNumberListParams::InboundACHDebits::In>, nil]
133
+ optional :in_,
134
+ -> {
135
+ Increase::Internal::Type::ArrayOf[enum: Increase::AccountNumberListParams::InboundACHDebits::In]
136
+ },
137
+ api_name: :in
138
+
139
+ # @!method initialize(in_: nil)
140
+ # @param in_ [Array<Symbol, Increase::Models::AccountNumberListParams::InboundACHDebits::In>]
141
+ # The inbound ACH debits status to retrieve Account Numbers for. For GET requests,
142
+ # this should be encoded as a comma-delimited string, such as `?in=one,two,three`.
143
+
144
+ module In
145
+ extend Increase::Internal::Type::Enum
146
+
147
+ # ACH Debits are allowed.
148
+ ALLOWED = :allowed
149
+
150
+ # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
151
+ BLOCKED = :blocked
152
+
153
+ # @!method self.values
154
+ # @return [Array<Symbol>]
155
+ end
156
+ end
157
+
158
158
  class Status < Increase::Internal::Type::BaseModel
159
159
  # @!attribute in_
160
160
  # The status to retrieve Account Numbers for. For GET requests, this should be