increase 1.353.0 → 1.355.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 (152) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +18 -0
  4. data/lib/increase/models/ach_transfer.rb +3 -3
  5. data/lib/increase/models/beneficial_owner_create_params.rb +1 -1
  6. data/lib/increase/models/beneficial_owner_update_params.rb +1 -1
  7. data/lib/increase/models/card_create_details_token_params.rb +22 -0
  8. data/lib/increase/models/card_details_token.rb +57 -0
  9. data/lib/increase/models/card_payment.rb +29 -1
  10. data/lib/increase/models/declined_transaction.rb +3 -0
  11. data/lib/increase/models/digital_wallet_token.rb +18 -0
  12. data/lib/increase/models/digital_wallet_token_request.rb +307 -0
  13. data/lib/increase/models/digital_wallet_token_request_list_params.rb +99 -0
  14. data/lib/increase/models/digital_wallet_token_request_retrieve_params.rb +22 -0
  15. data/lib/increase/models/digital_wallet_token_transition_params.rb +48 -0
  16. data/lib/increase/models/entity.rb +35 -7
  17. data/lib/increase/models/entity_beneficial_owner.rb +1 -1
  18. data/lib/increase/models/entity_create_params.rb +1 -1
  19. data/lib/increase/models/export.rb +19 -19
  20. data/lib/increase/models/export_create_params.rb +15 -15
  21. data/lib/increase/models/export_list_params.rb +19 -19
  22. data/lib/increase/models/inbound_real_time_payments_request_for_payment.rb +318 -0
  23. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rb +113 -0
  24. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rb +25 -0
  25. data/lib/increase/models/inbound_wire_transfer.rb +10 -1
  26. data/lib/increase/models/physical_check_batch.rb +266 -0
  27. data/lib/increase/models/physical_check_batch_cancel_params.rb +22 -0
  28. data/lib/increase/models/physical_check_batch_complete_params.rb +22 -0
  29. data/lib/increase/models/physical_check_batch_create_params.rb +189 -0
  30. data/lib/increase/models/real_time_decision.rb +9 -0
  31. data/lib/increase/models/real_time_decision_action_params.rb +3 -0
  32. data/lib/increase/models/real_time_payments_request_for_payment.rb +658 -0
  33. data/lib/increase/models/real_time_payments_requests_for_payment_cancel_params.rb +64 -0
  34. data/lib/increase/models/real_time_payments_requests_for_payment_create_params.rb +194 -0
  35. data/lib/increase/models/real_time_payments_requests_for_payment_list_params.rb +117 -0
  36. data/lib/increase/models/real_time_payments_requests_for_payment_retrieve_params.rb +23 -0
  37. data/lib/increase/models/simulations/digital_wallet_token_request_create_response.rb +9 -0
  38. data/lib/increase/models/simulations/entity_update_validation_params.rb +3 -0
  39. data/lib/increase/models/simulations/fednow_transfer_complete_params.rb +103 -0
  40. data/lib/increase/models/simulations/inbound_check_deposit_accept_params.rb +24 -0
  41. data/lib/increase/models/transaction.rb +36 -2
  42. data/lib/increase/models.rb +42 -0
  43. data/lib/increase/resources/cards.rb +23 -0
  44. data/lib/increase/resources/digital_wallet_token_requests.rb +68 -0
  45. data/lib/increase/resources/digital_wallet_tokens.rb +28 -0
  46. data/lib/increase/resources/inbound_real_time_payments_requests_for_payment.rb +79 -0
  47. data/lib/increase/resources/physical_check_batches.rb +86 -0
  48. data/lib/increase/resources/real_time_payments_requests_for_payment.rb +159 -0
  49. data/lib/increase/resources/simulations/fednow_transfers.rb +43 -0
  50. data/lib/increase/resources/simulations/inbound_check_deposits.rb +22 -0
  51. data/lib/increase/resources/simulations.rb +4 -0
  52. data/lib/increase/version.rb +1 -1
  53. data/lib/increase.rb +25 -0
  54. data/rbi/increase/client.rbi +14 -0
  55. data/rbi/increase/models/ach_transfer.rbi +3 -3
  56. data/rbi/increase/models/beneficial_owner_create_params.rbi +1 -1
  57. data/rbi/increase/models/beneficial_owner_update_params.rbi +1 -1
  58. data/rbi/increase/models/card_create_details_token_params.rbi +43 -0
  59. data/rbi/increase/models/card_details_token.rbi +85 -0
  60. data/rbi/increase/models/card_payment.rbi +59 -0
  61. data/rbi/increase/models/declined_transaction.rbi +7 -0
  62. data/rbi/increase/models/digital_wallet_token.rbi +42 -0
  63. data/rbi/increase/models/digital_wallet_token_request.rbi +586 -0
  64. data/rbi/increase/models/digital_wallet_token_request_list_params.rbi +171 -0
  65. data/rbi/increase/models/digital_wallet_token_request_retrieve_params.rbi +46 -0
  66. data/rbi/increase/models/digital_wallet_token_transition_params.rbi +100 -0
  67. data/rbi/increase/models/entity.rbi +71 -6
  68. data/rbi/increase/models/entity_beneficial_owner.rbi +1 -1
  69. data/rbi/increase/models/entity_create_params.rbi +1 -1
  70. data/rbi/increase/models/export.rbi +32 -32
  71. data/rbi/increase/models/export_create_params.rbi +29 -29
  72. data/rbi/increase/models/export_list_params.rbi +37 -37
  73. data/rbi/increase/models/inbound_real_time_payments_request_for_payment.rbi +442 -0
  74. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbi +188 -0
  75. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbi +48 -0
  76. data/rbi/increase/models/inbound_wire_transfer.rbi +8 -0
  77. data/rbi/increase/models/physical_check_batch.rbi +382 -0
  78. data/rbi/increase/models/physical_check_batch_cancel_params.rbi +46 -0
  79. data/rbi/increase/models/physical_check_batch_complete_params.rbi +46 -0
  80. data/rbi/increase/models/physical_check_batch_create_params.rbi +326 -0
  81. data/rbi/increase/models/real_time_decision.rbi +21 -0
  82. data/rbi/increase/models/real_time_decision_action_params.rbi +7 -0
  83. data/rbi/increase/models/real_time_payments_request_for_payment.rbi +1166 -0
  84. data/rbi/increase/models/real_time_payments_requests_for_payment_cancel_params.rbi +136 -0
  85. data/rbi/increase/models/real_time_payments_requests_for_payment_create_params.rbi +303 -0
  86. data/rbi/increase/models/real_time_payments_requests_for_payment_list_params.rbi +192 -0
  87. data/rbi/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbi +46 -0
  88. data/rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi +21 -0
  89. data/rbi/increase/models/simulations/entity_update_validation_params.rbi +7 -0
  90. data/rbi/increase/models/simulations/fednow_transfer_complete_params.rbi +243 -0
  91. data/rbi/increase/models/simulations/inbound_check_deposit_accept_params.rbi +48 -0
  92. data/rbi/increase/models/transaction.rbi +60 -0
  93. data/rbi/increase/models.rbi +50 -0
  94. data/rbi/increase/resources/cards.rbi +17 -0
  95. data/rbi/increase/resources/digital_wallet_token_requests.rbi +52 -0
  96. data/rbi/increase/resources/digital_wallet_tokens.rbi +21 -0
  97. data/rbi/increase/resources/inbound_real_time_payments_requests_for_payment.rbi +62 -0
  98. data/rbi/increase/resources/physical_check_batches.rbi +66 -0
  99. data/rbi/increase/resources/real_time_payments_requests_for_payment.rbi +127 -0
  100. data/rbi/increase/resources/simulations/fednow_transfers.rbi +34 -0
  101. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +16 -0
  102. data/rbi/increase/resources/simulations.rbi +3 -0
  103. data/sig/increase/client.rbs +8 -0
  104. data/sig/increase/models/ach_transfer.rbs +4 -4
  105. data/sig/increase/models/beneficial_owner_create_params.rbs +1 -1
  106. data/sig/increase/models/beneficial_owner_update_params.rbs +1 -1
  107. data/sig/increase/models/card_create_details_token_params.rbs +23 -0
  108. data/sig/increase/models/card_details_token.rbs +40 -0
  109. data/sig/increase/models/card_payment.rbs +23 -0
  110. data/sig/increase/models/declined_transaction.rbs +4 -0
  111. data/sig/increase/models/digital_wallet_token.rbs +36 -3
  112. data/sig/increase/models/digital_wallet_token_request.rbs +260 -0
  113. data/sig/increase/models/digital_wallet_token_request_list_params.rbs +86 -0
  114. data/sig/increase/models/digital_wallet_token_request_retrieve_params.rbs +24 -0
  115. data/sig/increase/models/digital_wallet_token_transition_params.rbs +48 -0
  116. data/sig/increase/models/entity.rbs +25 -6
  117. data/sig/increase/models/entity_beneficial_owner.rbs +1 -1
  118. data/sig/increase/models/entity_create_params.rbs +1 -1
  119. data/sig/increase/models/export.rbs +28 -28
  120. data/sig/increase/models/export_create_params.rbs +22 -22
  121. data/sig/increase/models/export_list_params.rbs +28 -28
  122. data/sig/increase/models/inbound_real_time_payments_request_for_payment.rbs +200 -0
  123. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbs +93 -0
  124. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  125. data/sig/increase/models/inbound_wire_transfer.rbs +5 -0
  126. data/sig/increase/models/physical_check_batch.rbs +193 -0
  127. data/sig/increase/models/physical_check_batch_cancel_params.rbs +24 -0
  128. data/sig/increase/models/physical_check_batch_complete_params.rbs +24 -0
  129. data/sig/increase/models/physical_check_batch_create_params.rbs +156 -0
  130. data/sig/increase/models/real_time_decision.rbs +14 -2
  131. data/sig/increase/models/real_time_decision_action_params.rbs +4 -0
  132. data/sig/increase/models/real_time_payments_request_for_payment.rbs +513 -0
  133. data/sig/increase/models/real_time_payments_requests_for_payment_cancel_params.rbs +66 -0
  134. data/sig/increase/models/real_time_payments_requests_for_payment_create_params.rbs +149 -0
  135. data/sig/increase/models/real_time_payments_requests_for_payment_list_params.rbs +93 -0
  136. data/sig/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  137. data/sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs +12 -0
  138. data/sig/increase/models/simulations/entity_update_validation_params.rbs +4 -0
  139. data/sig/increase/models/simulations/fednow_transfer_complete_params.rbs +122 -0
  140. data/sig/increase/models/simulations/inbound_check_deposit_accept_params.rbs +26 -0
  141. data/sig/increase/models/transaction.rbs +24 -0
  142. data/sig/increase/models.rbs +36 -0
  143. data/sig/increase/resources/cards.rbs +5 -0
  144. data/sig/increase/resources/digital_wallet_token_requests.rbs +20 -0
  145. data/sig/increase/resources/digital_wallet_tokens.rbs +6 -0
  146. data/sig/increase/resources/inbound_real_time_payments_requests_for_payment.rbs +21 -0
  147. data/sig/increase/resources/physical_check_batches.rbs +24 -0
  148. data/sig/increase/resources/real_time_payments_requests_for_payment.rbs +41 -0
  149. data/sig/increase/resources/simulations/fednow_transfers.rbs +15 -0
  150. data/sig/increase/resources/simulations/inbound_check_deposits.rbs +5 -0
  151. data/sig/increase/resources/simulations.rbs +2 -0
  152. metadata +77 -2
@@ -254,24 +254,24 @@ module Increase
254
254
  T.type_alias { T.all(Symbol, Increase::ExportCreateParams::Category) }
255
255
  OrSymbol = T.type_alias { T.any(Symbol, String) }
256
256
 
257
- # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account.
258
- ACCOUNT_STATEMENT_OFX =
257
+ # Export a BAI2 file of transactions and balances for a given date and optional Account.
258
+ ACCOUNT_STATEMENT_BAI2 =
259
259
  T.let(
260
- :account_statement_ofx,
260
+ :account_statement_bai2,
261
261
  Increase::ExportCreateParams::Category::TaggedSymbol
262
262
  )
263
263
 
264
- # Export a BAI2 file of transactions and balances for a given date and optional Account.
265
- ACCOUNT_STATEMENT_BAI2 =
264
+ # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account.
265
+ ACCOUNT_STATEMENT_OFX =
266
266
  T.let(
267
- :account_statement_bai2,
267
+ :account_statement_ofx,
268
268
  Increase::ExportCreateParams::Category::TaggedSymbol
269
269
  )
270
270
 
271
- # Export a CSV of all transactions for a given time range.
272
- TRANSACTION_CSV =
271
+ # A PDF of an account verification letter.
272
+ ACCOUNT_VERIFICATION_LETTER =
273
273
  T.let(
274
- :transaction_csv,
274
+ :account_verification_letter,
275
275
  Increase::ExportCreateParams::Category::TaggedSymbol
276
276
  )
277
277
 
@@ -289,6 +289,13 @@ module Increase
289
289
  Increase::ExportCreateParams::Category::TaggedSymbol
290
290
  )
291
291
 
292
+ # Export a CSV of daily account balances with starting and ending balances for a given date range.
293
+ DAILY_ACCOUNT_BALANCE_CSV =
294
+ T.let(
295
+ :daily_account_balance_csv,
296
+ Increase::ExportCreateParams::Category::TaggedSymbol
297
+ )
298
+
292
299
  # Export a CSV of entities with a given status.
293
300
  ENTITY_CSV =
294
301
  T.let(
@@ -296,31 +303,31 @@ module Increase
296
303
  Increase::ExportCreateParams::Category::TaggedSymbol
297
304
  )
298
305
 
299
- # Export a CSV of vendors added to the third-party risk management dashboard.
300
- VENDOR_CSV =
306
+ # Export a CSV of fees. The time range must not include any fees that are part of an open fee statement.
307
+ FEE_CSV =
308
+ T.let(:fee_csv, Increase::ExportCreateParams::Category::TaggedSymbol)
309
+
310
+ # A PDF of funding instructions.
311
+ FUNDING_INSTRUCTIONS =
301
312
  T.let(
302
- :vendor_csv,
313
+ :funding_instructions,
303
314
  Increase::ExportCreateParams::Category::TaggedSymbol
304
315
  )
305
316
 
306
- # A PDF of an account verification letter.
307
- ACCOUNT_VERIFICATION_LETTER =
317
+ # Export a CSV of all transactions for a given time range.
318
+ TRANSACTION_CSV =
308
319
  T.let(
309
- :account_verification_letter,
320
+ :transaction_csv,
310
321
  Increase::ExportCreateParams::Category::TaggedSymbol
311
322
  )
312
323
 
313
- # A PDF of funding instructions.
314
- FUNDING_INSTRUCTIONS =
324
+ # Export a CSV of vendors added to the third-party risk management dashboard.
325
+ VENDOR_CSV =
315
326
  T.let(
316
- :funding_instructions,
327
+ :vendor_csv,
317
328
  Increase::ExportCreateParams::Category::TaggedSymbol
318
329
  )
319
330
 
320
- # Export a CSV of fees. The time range must not include any fees that are part of an open fee statement.
321
- FEE_CSV =
322
- T.let(:fee_csv, Increase::ExportCreateParams::Category::TaggedSymbol)
323
-
324
331
  # A PDF of a voided check.
325
332
  VOIDED_CHECK =
326
333
  T.let(
@@ -328,13 +335,6 @@ module Increase
328
335
  Increase::ExportCreateParams::Category::TaggedSymbol
329
336
  )
330
337
 
331
- # Export a CSV of daily account balances with starting and ending balances for a given date range.
332
- DAILY_ACCOUNT_BALANCE_CSV =
333
- T.let(
334
- :daily_account_balance_csv,
335
- Increase::ExportCreateParams::Category::TaggedSymbol
336
- )
337
-
338
338
  sig do
339
339
  override.returns(
340
340
  T::Array[Increase::ExportCreateParams::Category::TaggedSymbol]
@@ -143,24 +143,24 @@ module Increase
143
143
  T.type_alias { T.all(Symbol, Increase::ExportListParams::Category) }
144
144
  OrSymbol = T.type_alias { T.any(Symbol, String) }
145
145
 
146
- # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account.
147
- ACCOUNT_STATEMENT_OFX =
146
+ # Export a BAI2 file of transactions and balances for a given date and optional Account.
147
+ ACCOUNT_STATEMENT_BAI2 =
148
148
  T.let(
149
- :account_statement_ofx,
149
+ :account_statement_bai2,
150
150
  Increase::ExportListParams::Category::TaggedSymbol
151
151
  )
152
152
 
153
- # Export a BAI2 file of transactions and balances for a given date and optional Account.
154
- ACCOUNT_STATEMENT_BAI2 =
153
+ # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account.
154
+ ACCOUNT_STATEMENT_OFX =
155
155
  T.let(
156
- :account_statement_bai2,
156
+ :account_statement_ofx,
157
157
  Increase::ExportListParams::Category::TaggedSymbol
158
158
  )
159
159
 
160
- # Export a CSV of all transactions for a given time range.
161
- TRANSACTION_CSV =
160
+ # A PDF of an account verification letter.
161
+ ACCOUNT_VERIFICATION_LETTER =
162
162
  T.let(
163
- :transaction_csv,
163
+ :account_verification_letter,
164
164
  Increase::ExportListParams::Category::TaggedSymbol
165
165
  )
166
166
 
@@ -178,13 +178,12 @@ module Increase
178
178
  Increase::ExportListParams::Category::TaggedSymbol
179
179
  )
180
180
 
181
- # Export a CSV of entities with a given status.
182
- ENTITY_CSV =
183
- T.let(:entity_csv, Increase::ExportListParams::Category::TaggedSymbol)
184
-
185
- # Export a CSV of vendors added to the third-party risk management dashboard.
186
- VENDOR_CSV =
187
- T.let(:vendor_csv, Increase::ExportListParams::Category::TaggedSymbol)
181
+ # Export a CSV of daily account balances with starting and ending balances for a given date range.
182
+ DAILY_ACCOUNT_BALANCE_CSV =
183
+ T.let(
184
+ :daily_account_balance_csv,
185
+ Increase::ExportListParams::Category::TaggedSymbol
186
+ )
188
187
 
189
188
  # Certain dashboard tables are available as CSV exports. This export cannot be created via the API.
190
189
  DASHBOARD_TABLE_CSV =
@@ -193,19 +192,13 @@ module Increase
193
192
  Increase::ExportListParams::Category::TaggedSymbol
194
193
  )
195
194
 
196
- # A PDF of an account verification letter.
197
- ACCOUNT_VERIFICATION_LETTER =
198
- T.let(
199
- :account_verification_letter,
200
- Increase::ExportListParams::Category::TaggedSymbol
201
- )
195
+ # Export a CSV of entities with a given status.
196
+ ENTITY_CSV =
197
+ T.let(:entity_csv, Increase::ExportListParams::Category::TaggedSymbol)
202
198
 
203
- # A PDF of funding instructions.
204
- FUNDING_INSTRUCTIONS =
205
- T.let(
206
- :funding_instructions,
207
- Increase::ExportListParams::Category::TaggedSymbol
208
- )
199
+ # Export a CSV of fees. The time range must not include any fees that are part of an open fee statement.
200
+ FEE_CSV =
201
+ T.let(:fee_csv, Increase::ExportListParams::Category::TaggedSymbol)
209
202
 
210
203
  # A PDF of an Internal Revenue Service Form 1099-INT.
211
204
  FORM_1099_INT =
@@ -221,21 +214,28 @@ module Increase
221
214
  Increase::ExportListParams::Category::TaggedSymbol
222
215
  )
223
216
 
224
- # Export a CSV of fees. The time range must not include any fees that are part of an open fee statement.
225
- FEE_CSV =
226
- T.let(:fee_csv, Increase::ExportListParams::Category::TaggedSymbol)
217
+ # A PDF of funding instructions.
218
+ FUNDING_INSTRUCTIONS =
219
+ T.let(
220
+ :funding_instructions,
221
+ Increase::ExportListParams::Category::TaggedSymbol
222
+ )
227
223
 
228
- # A PDF of a voided check.
229
- VOIDED_CHECK =
224
+ # Export a CSV of all transactions for a given time range.
225
+ TRANSACTION_CSV =
230
226
  T.let(
231
- :voided_check,
227
+ :transaction_csv,
232
228
  Increase::ExportListParams::Category::TaggedSymbol
233
229
  )
234
230
 
235
- # Export a CSV of daily account balances with starting and ending balances for a given date range.
236
- DAILY_ACCOUNT_BALANCE_CSV =
231
+ # Export a CSV of vendors added to the third-party risk management dashboard.
232
+ VENDOR_CSV =
233
+ T.let(:vendor_csv, Increase::ExportListParams::Category::TaggedSymbol)
234
+
235
+ # A PDF of a voided check.
236
+ VOIDED_CHECK =
237
237
  T.let(
238
- :daily_account_balance_csv,
238
+ :voided_check,
239
239
  Increase::ExportListParams::Category::TaggedSymbol
240
240
  )
241
241
 
@@ -0,0 +1,442 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class InboundRealTimePaymentsRequestForPayment < Increase::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Increase::InboundRealTimePaymentsRequestForPayment,
10
+ Increase::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The inbound Real-Time Payments request for payment's identifier.
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # The Account the request for payment is for.
19
+ sig { returns(String) }
20
+ attr_accessor :account_id
21
+
22
+ # The identifier of the Account Number the request for payment is for.
23
+ sig { returns(String) }
24
+ attr_accessor :account_number_id
25
+
26
+ # The requested amount in USD cents.
27
+ sig { returns(Integer) }
28
+ attr_accessor :amount
29
+
30
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
31
+ # the request for payment was created.
32
+ sig { returns(Time) }
33
+ attr_accessor :created_at
34
+
35
+ # Details of the party requesting payment.
36
+ sig do
37
+ returns(Increase::InboundRealTimePaymentsRequestForPayment::Creditor)
38
+ end
39
+ attr_reader :creditor
40
+
41
+ sig do
42
+ params(
43
+ creditor:
44
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor::OrHash
45
+ ).void
46
+ end
47
+ attr_writer :creditor
48
+
49
+ # The creditor's account number.
50
+ sig { returns(String) }
51
+ attr_accessor :creditor_account_number
52
+
53
+ # The creditor's American Bankers' Association (ABA) Routing Transit Number (RTN).
54
+ sig { returns(String) }
55
+ attr_accessor :creditor_routing_number
56
+
57
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the requested
58
+ # currency. This will always be "USD" for a Real-Time Payments request for
59
+ # payment.
60
+ sig do
61
+ returns(
62
+ Increase::InboundRealTimePaymentsRequestForPayment::Currency::TaggedSymbol
63
+ )
64
+ end
65
+ attr_accessor :currency
66
+
67
+ # The name of the account holder the payment is requested from, as provided by the
68
+ # creditor.
69
+ sig { returns(String) }
70
+ attr_accessor :debtor_name
71
+
72
+ # A free-form reference string set by the creditor, to help identify the request
73
+ # for payment.
74
+ sig { returns(String) }
75
+ attr_accessor :end_to_end_identification
76
+
77
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time after which
78
+ # the request for payment is no longer valid and should no longer be paid.
79
+ sig { returns(Time) }
80
+ attr_accessor :expires_at
81
+
82
+ # The identifier of the Real-Time Payments Transfer that fulfilled this request
83
+ # for payment. This is set once a transfer sent in response to the request for
84
+ # payment has been acknowledged by the Real-Time Payments network.
85
+ sig { returns(T.nilable(String)) }
86
+ attr_accessor :fulfillment_real_time_payments_transfer_id
87
+
88
+ # An identifier for the party that issued the invoice, for requests for payment
89
+ # sent on behalf of another party.
90
+ sig { returns(T.nilable(String)) }
91
+ attr_accessor :invoicer_identification
92
+
93
+ # The Real-Time Payments network identification of the request for payment.
94
+ sig { returns(String) }
95
+ attr_accessor :payment_information_identification
96
+
97
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time by which
98
+ # the creditor requests the payment to be made.
99
+ sig { returns(T.nilable(Time)) }
100
+ attr_accessor :requested_execution_at
101
+
102
+ # A constant representing the object's type. For this resource it will always be
103
+ # `inbound_real_time_payments_request_for_payment`.
104
+ sig do
105
+ returns(
106
+ Increase::InboundRealTimePaymentsRequestForPayment::Type::TaggedSymbol
107
+ )
108
+ end
109
+ attr_accessor :type
110
+
111
+ # Unstructured information included with the request for payment.
112
+ sig { returns(T.nilable(String)) }
113
+ attr_accessor :unstructured_remittance_information
114
+
115
+ # An Inbound Real-Time Payments Request for Payment is a request initiated outside
116
+ # of Increase for one of your accounts to send a Real-Time Payments transfer.
117
+ sig do
118
+ params(
119
+ id: String,
120
+ account_id: String,
121
+ account_number_id: String,
122
+ amount: Integer,
123
+ created_at: Time,
124
+ creditor:
125
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor::OrHash,
126
+ creditor_account_number: String,
127
+ creditor_routing_number: String,
128
+ currency:
129
+ Increase::InboundRealTimePaymentsRequestForPayment::Currency::OrSymbol,
130
+ debtor_name: String,
131
+ end_to_end_identification: String,
132
+ expires_at: Time,
133
+ fulfillment_real_time_payments_transfer_id: T.nilable(String),
134
+ invoicer_identification: T.nilable(String),
135
+ payment_information_identification: String,
136
+ requested_execution_at: T.nilable(Time),
137
+ type:
138
+ Increase::InboundRealTimePaymentsRequestForPayment::Type::OrSymbol,
139
+ unstructured_remittance_information: T.nilable(String)
140
+ ).returns(T.attached_class)
141
+ end
142
+ def self.new(
143
+ # The inbound Real-Time Payments request for payment's identifier.
144
+ id:,
145
+ # The Account the request for payment is for.
146
+ account_id:,
147
+ # The identifier of the Account Number the request for payment is for.
148
+ account_number_id:,
149
+ # The requested amount in USD cents.
150
+ amount:,
151
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
152
+ # the request for payment was created.
153
+ created_at:,
154
+ # Details of the party requesting payment.
155
+ creditor:,
156
+ # The creditor's account number.
157
+ creditor_account_number:,
158
+ # The creditor's American Bankers' Association (ABA) Routing Transit Number (RTN).
159
+ creditor_routing_number:,
160
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the requested
161
+ # currency. This will always be "USD" for a Real-Time Payments request for
162
+ # payment.
163
+ currency:,
164
+ # The name of the account holder the payment is requested from, as provided by the
165
+ # creditor.
166
+ debtor_name:,
167
+ # A free-form reference string set by the creditor, to help identify the request
168
+ # for payment.
169
+ end_to_end_identification:,
170
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time after which
171
+ # the request for payment is no longer valid and should no longer be paid.
172
+ expires_at:,
173
+ # The identifier of the Real-Time Payments Transfer that fulfilled this request
174
+ # for payment. This is set once a transfer sent in response to the request for
175
+ # payment has been acknowledged by the Real-Time Payments network.
176
+ fulfillment_real_time_payments_transfer_id:,
177
+ # An identifier for the party that issued the invoice, for requests for payment
178
+ # sent on behalf of another party.
179
+ invoicer_identification:,
180
+ # The Real-Time Payments network identification of the request for payment.
181
+ payment_information_identification:,
182
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time by which
183
+ # the creditor requests the payment to be made.
184
+ requested_execution_at:,
185
+ # A constant representing the object's type. For this resource it will always be
186
+ # `inbound_real_time_payments_request_for_payment`.
187
+ type:,
188
+ # Unstructured information included with the request for payment.
189
+ unstructured_remittance_information:
190
+ )
191
+ end
192
+
193
+ sig do
194
+ override.returns(
195
+ {
196
+ id: String,
197
+ account_id: String,
198
+ account_number_id: String,
199
+ amount: Integer,
200
+ created_at: Time,
201
+ creditor:
202
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor,
203
+ creditor_account_number: String,
204
+ creditor_routing_number: String,
205
+ currency:
206
+ Increase::InboundRealTimePaymentsRequestForPayment::Currency::TaggedSymbol,
207
+ debtor_name: String,
208
+ end_to_end_identification: String,
209
+ expires_at: Time,
210
+ fulfillment_real_time_payments_transfer_id: T.nilable(String),
211
+ invoicer_identification: T.nilable(String),
212
+ payment_information_identification: String,
213
+ requested_execution_at: T.nilable(Time),
214
+ type:
215
+ Increase::InboundRealTimePaymentsRequestForPayment::Type::TaggedSymbol,
216
+ unstructured_remittance_information: T.nilable(String)
217
+ }
218
+ )
219
+ end
220
+ def to_hash
221
+ end
222
+
223
+ class Creditor < Increase::Internal::Type::BaseModel
224
+ OrHash =
225
+ T.type_alias do
226
+ T.any(
227
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor,
228
+ Increase::Internal::AnyHash
229
+ )
230
+ end
231
+
232
+ # The name of the account that would receive the payment, as provided by the
233
+ # creditor.
234
+ sig { returns(T.nilable(String)) }
235
+ attr_accessor :account_name
236
+
237
+ # Address of the creditor.
238
+ sig do
239
+ returns(
240
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor::Address
241
+ )
242
+ end
243
+ attr_reader :address
244
+
245
+ sig do
246
+ params(
247
+ address:
248
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor::Address::OrHash
249
+ ).void
250
+ end
251
+ attr_writer :address
252
+
253
+ # The name of the creditor.
254
+ sig { returns(String) }
255
+ attr_accessor :name
256
+
257
+ # Details of the party requesting payment.
258
+ sig do
259
+ params(
260
+ account_name: T.nilable(String),
261
+ address:
262
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor::Address::OrHash,
263
+ name: String
264
+ ).returns(T.attached_class)
265
+ end
266
+ def self.new(
267
+ # The name of the account that would receive the payment, as provided by the
268
+ # creditor.
269
+ account_name:,
270
+ # Address of the creditor.
271
+ address:,
272
+ # The name of the creditor.
273
+ name:
274
+ )
275
+ end
276
+
277
+ sig do
278
+ override.returns(
279
+ {
280
+ account_name: T.nilable(String),
281
+ address:
282
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor::Address,
283
+ name: String
284
+ }
285
+ )
286
+ end
287
+ def to_hash
288
+ end
289
+
290
+ class Address < Increase::Internal::Type::BaseModel
291
+ OrHash =
292
+ T.type_alias do
293
+ T.any(
294
+ Increase::InboundRealTimePaymentsRequestForPayment::Creditor::Address,
295
+ Increase::Internal::AnyHash
296
+ )
297
+ end
298
+
299
+ # A second address line, such as an apartment or suite number. The first address
300
+ # line is separated into `building_number` and `street_name`.
301
+ sig { returns(T.nilable(String)) }
302
+ attr_accessor :address_line2
303
+
304
+ # The number identifying the position of the building on the street.
305
+ sig { returns(T.nilable(String)) }
306
+ attr_accessor :building_number
307
+
308
+ # The town or city.
309
+ sig { returns(T.nilable(String)) }
310
+ attr_accessor :city
311
+
312
+ # The ISO 3166, Alpha-2 country code.
313
+ sig { returns(T.nilable(String)) }
314
+ attr_accessor :country
315
+
316
+ # The postal code or zip.
317
+ sig { returns(T.nilable(String)) }
318
+ attr_accessor :postal_code
319
+
320
+ # The US state component of the address.
321
+ sig { returns(T.nilable(String)) }
322
+ attr_accessor :state
323
+
324
+ # The street name without the street number.
325
+ sig { returns(T.nilable(String)) }
326
+ attr_accessor :street_name
327
+
328
+ # Address of the creditor.
329
+ sig do
330
+ params(
331
+ address_line2: T.nilable(String),
332
+ building_number: T.nilable(String),
333
+ city: T.nilable(String),
334
+ country: T.nilable(String),
335
+ postal_code: T.nilable(String),
336
+ state: T.nilable(String),
337
+ street_name: T.nilable(String)
338
+ ).returns(T.attached_class)
339
+ end
340
+ def self.new(
341
+ # A second address line, such as an apartment or suite number. The first address
342
+ # line is separated into `building_number` and `street_name`.
343
+ address_line2:,
344
+ # The number identifying the position of the building on the street.
345
+ building_number:,
346
+ # The town or city.
347
+ city:,
348
+ # The ISO 3166, Alpha-2 country code.
349
+ country:,
350
+ # The postal code or zip.
351
+ postal_code:,
352
+ # The US state component of the address.
353
+ state:,
354
+ # The street name without the street number.
355
+ street_name:
356
+ )
357
+ end
358
+
359
+ sig do
360
+ override.returns(
361
+ {
362
+ address_line2: T.nilable(String),
363
+ building_number: T.nilable(String),
364
+ city: T.nilable(String),
365
+ country: T.nilable(String),
366
+ postal_code: T.nilable(String),
367
+ state: T.nilable(String),
368
+ street_name: T.nilable(String)
369
+ }
370
+ )
371
+ end
372
+ def to_hash
373
+ end
374
+ end
375
+ end
376
+
377
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the requested
378
+ # currency. This will always be "USD" for a Real-Time Payments request for
379
+ # payment.
380
+ module Currency
381
+ extend Increase::Internal::Type::Enum
382
+
383
+ TaggedSymbol =
384
+ T.type_alias do
385
+ T.all(
386
+ Symbol,
387
+ Increase::InboundRealTimePaymentsRequestForPayment::Currency
388
+ )
389
+ end
390
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
391
+
392
+ # US Dollar (USD)
393
+ USD =
394
+ T.let(
395
+ :USD,
396
+ Increase::InboundRealTimePaymentsRequestForPayment::Currency::TaggedSymbol
397
+ )
398
+
399
+ sig do
400
+ override.returns(
401
+ T::Array[
402
+ Increase::InboundRealTimePaymentsRequestForPayment::Currency::TaggedSymbol
403
+ ]
404
+ )
405
+ end
406
+ def self.values
407
+ end
408
+ end
409
+
410
+ # A constant representing the object's type. For this resource it will always be
411
+ # `inbound_real_time_payments_request_for_payment`.
412
+ module Type
413
+ extend Increase::Internal::Type::Enum
414
+
415
+ TaggedSymbol =
416
+ T.type_alias do
417
+ T.all(
418
+ Symbol,
419
+ Increase::InboundRealTimePaymentsRequestForPayment::Type
420
+ )
421
+ end
422
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
423
+
424
+ INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT =
425
+ T.let(
426
+ :inbound_real_time_payments_request_for_payment,
427
+ Increase::InboundRealTimePaymentsRequestForPayment::Type::TaggedSymbol
428
+ )
429
+
430
+ sig do
431
+ override.returns(
432
+ T::Array[
433
+ Increase::InboundRealTimePaymentsRequestForPayment::Type::TaggedSymbol
434
+ ]
435
+ )
436
+ end
437
+ def self.values
438
+ end
439
+ end
440
+ end
441
+ end
442
+ end