increase 1.354.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 (110) 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/card_create_details_token_params.rb +22 -0
  5. data/lib/increase/models/card_details_token.rb +57 -0
  6. data/lib/increase/models/card_payment.rb +26 -1
  7. data/lib/increase/models/digital_wallet_token.rb +3 -0
  8. data/lib/increase/models/digital_wallet_token_request.rb +307 -0
  9. data/lib/increase/models/digital_wallet_token_request_list_params.rb +99 -0
  10. data/lib/increase/models/digital_wallet_token_request_retrieve_params.rb +22 -0
  11. data/lib/increase/models/digital_wallet_token_transition_params.rb +48 -0
  12. data/lib/increase/models/inbound_real_time_payments_request_for_payment.rb +318 -0
  13. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rb +113 -0
  14. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rb +25 -0
  15. data/lib/increase/models/physical_check_batch.rb +266 -0
  16. data/lib/increase/models/physical_check_batch_cancel_params.rb +22 -0
  17. data/lib/increase/models/physical_check_batch_complete_params.rb +22 -0
  18. data/lib/increase/models/physical_check_batch_create_params.rb +189 -0
  19. data/lib/increase/models/real_time_decision.rb +6 -0
  20. data/lib/increase/models/real_time_payments_request_for_payment.rb +658 -0
  21. data/lib/increase/models/real_time_payments_requests_for_payment_cancel_params.rb +64 -0
  22. data/lib/increase/models/real_time_payments_requests_for_payment_create_params.rb +194 -0
  23. data/lib/increase/models/real_time_payments_requests_for_payment_list_params.rb +117 -0
  24. data/lib/increase/models/real_time_payments_requests_for_payment_retrieve_params.rb +23 -0
  25. data/lib/increase/models/simulations/fednow_transfer_complete_params.rb +103 -0
  26. data/lib/increase/models/simulations/inbound_check_deposit_accept_params.rb +24 -0
  27. data/lib/increase/models/transaction.rb +26 -1
  28. data/lib/increase/models.rb +42 -0
  29. data/lib/increase/resources/cards.rb +23 -0
  30. data/lib/increase/resources/digital_wallet_token_requests.rb +68 -0
  31. data/lib/increase/resources/digital_wallet_tokens.rb +28 -0
  32. data/lib/increase/resources/inbound_real_time_payments_requests_for_payment.rb +79 -0
  33. data/lib/increase/resources/physical_check_batches.rb +86 -0
  34. data/lib/increase/resources/real_time_payments_requests_for_payment.rb +159 -0
  35. data/lib/increase/resources/simulations/fednow_transfers.rb +43 -0
  36. data/lib/increase/resources/simulations/inbound_check_deposits.rb +22 -0
  37. data/lib/increase/resources/simulations.rb +4 -0
  38. data/lib/increase/version.rb +1 -1
  39. data/lib/increase.rb +25 -0
  40. data/rbi/increase/client.rbi +14 -0
  41. data/rbi/increase/models/card_create_details_token_params.rbi +43 -0
  42. data/rbi/increase/models/card_details_token.rbi +85 -0
  43. data/rbi/increase/models/card_payment.rbi +52 -0
  44. data/rbi/increase/models/digital_wallet_token.rbi +7 -0
  45. data/rbi/increase/models/digital_wallet_token_request.rbi +586 -0
  46. data/rbi/increase/models/digital_wallet_token_request_list_params.rbi +171 -0
  47. data/rbi/increase/models/digital_wallet_token_request_retrieve_params.rbi +46 -0
  48. data/rbi/increase/models/digital_wallet_token_transition_params.rbi +100 -0
  49. data/rbi/increase/models/inbound_real_time_payments_request_for_payment.rbi +442 -0
  50. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbi +188 -0
  51. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbi +48 -0
  52. data/rbi/increase/models/physical_check_batch.rbi +382 -0
  53. data/rbi/increase/models/physical_check_batch_cancel_params.rbi +46 -0
  54. data/rbi/increase/models/physical_check_batch_complete_params.rbi +46 -0
  55. data/rbi/increase/models/physical_check_batch_create_params.rbi +326 -0
  56. data/rbi/increase/models/real_time_decision.rbi +14 -0
  57. data/rbi/increase/models/real_time_payments_request_for_payment.rbi +1166 -0
  58. data/rbi/increase/models/real_time_payments_requests_for_payment_cancel_params.rbi +136 -0
  59. data/rbi/increase/models/real_time_payments_requests_for_payment_create_params.rbi +303 -0
  60. data/rbi/increase/models/real_time_payments_requests_for_payment_list_params.rbi +192 -0
  61. data/rbi/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbi +46 -0
  62. data/rbi/increase/models/simulations/fednow_transfer_complete_params.rbi +243 -0
  63. data/rbi/increase/models/simulations/inbound_check_deposit_accept_params.rbi +48 -0
  64. data/rbi/increase/models/transaction.rbi +52 -0
  65. data/rbi/increase/models.rbi +50 -0
  66. data/rbi/increase/resources/cards.rbi +17 -0
  67. data/rbi/increase/resources/digital_wallet_token_requests.rbi +52 -0
  68. data/rbi/increase/resources/digital_wallet_tokens.rbi +21 -0
  69. data/rbi/increase/resources/inbound_real_time_payments_requests_for_payment.rbi +62 -0
  70. data/rbi/increase/resources/physical_check_batches.rbi +66 -0
  71. data/rbi/increase/resources/real_time_payments_requests_for_payment.rbi +127 -0
  72. data/rbi/increase/resources/simulations/fednow_transfers.rbi +34 -0
  73. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +16 -0
  74. data/rbi/increase/resources/simulations.rbi +3 -0
  75. data/sig/increase/client.rbs +8 -0
  76. data/sig/increase/models/card_create_details_token_params.rbs +23 -0
  77. data/sig/increase/models/card_details_token.rbs +40 -0
  78. data/sig/increase/models/card_payment.rbs +19 -0
  79. data/sig/increase/models/digital_wallet_token.rbs +5 -1
  80. data/sig/increase/models/digital_wallet_token_request.rbs +260 -0
  81. data/sig/increase/models/digital_wallet_token_request_list_params.rbs +86 -0
  82. data/sig/increase/models/digital_wallet_token_request_retrieve_params.rbs +24 -0
  83. data/sig/increase/models/digital_wallet_token_transition_params.rbs +48 -0
  84. data/sig/increase/models/inbound_real_time_payments_request_for_payment.rbs +200 -0
  85. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbs +93 -0
  86. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  87. data/sig/increase/models/physical_check_batch.rbs +193 -0
  88. data/sig/increase/models/physical_check_batch_cancel_params.rbs +24 -0
  89. data/sig/increase/models/physical_check_batch_complete_params.rbs +24 -0
  90. data/sig/increase/models/physical_check_batch_create_params.rbs +156 -0
  91. data/sig/increase/models/real_time_decision.rbs +10 -2
  92. data/sig/increase/models/real_time_payments_request_for_payment.rbs +513 -0
  93. data/sig/increase/models/real_time_payments_requests_for_payment_cancel_params.rbs +66 -0
  94. data/sig/increase/models/real_time_payments_requests_for_payment_create_params.rbs +149 -0
  95. data/sig/increase/models/real_time_payments_requests_for_payment_list_params.rbs +93 -0
  96. data/sig/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  97. data/sig/increase/models/simulations/fednow_transfer_complete_params.rbs +122 -0
  98. data/sig/increase/models/simulations/inbound_check_deposit_accept_params.rbs +26 -0
  99. data/sig/increase/models/transaction.rbs +19 -0
  100. data/sig/increase/models.rbs +36 -0
  101. data/sig/increase/resources/cards.rbs +5 -0
  102. data/sig/increase/resources/digital_wallet_token_requests.rbs +20 -0
  103. data/sig/increase/resources/digital_wallet_tokens.rbs +6 -0
  104. data/sig/increase/resources/inbound_real_time_payments_requests_for_payment.rbs +21 -0
  105. data/sig/increase/resources/physical_check_batches.rbs +24 -0
  106. data/sig/increase/resources/real_time_payments_requests_for_payment.rbs +41 -0
  107. data/sig/increase/resources/simulations/fednow_transfers.rbs +15 -0
  108. data/sig/increase/resources/simulations/inbound_check_deposits.rbs +5 -0
  109. data/sig/increase/resources/simulations.rbs +2 -0
  110. metadata +77 -2
@@ -0,0 +1,658 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::RealTimePaymentsRequestsForPayment#create
6
+ class RealTimePaymentsRequestForPayment < Increase::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The Real-Time Payments Request for Payment's identifier.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute account_id
14
+ # The Account in which a successful transfer will arrive.
15
+ #
16
+ # @return [String]
17
+ required :account_id, String
18
+
19
+ # @!attribute account_number_id
20
+ # The Account Number in which a successful transfer will arrive.
21
+ #
22
+ # @return [String]
23
+ required :account_number_id, String
24
+
25
+ # @!attribute amount
26
+ # The transfer amount in USD cents.
27
+ #
28
+ # @return [Integer]
29
+ required :amount, Integer
30
+
31
+ # @!attribute cancellation
32
+ # If a cancellation has been requested, this will contain supplemental details.
33
+ # The request for payment moves to `canceled` once the recipient bank acknowledges
34
+ # the cancellation.
35
+ #
36
+ # @return [Increase::Models::RealTimePaymentsRequestForPayment::Cancellation, nil]
37
+ required :cancellation, -> { Increase::RealTimePaymentsRequestForPayment::Cancellation }, nil?: true
38
+
39
+ # @!attribute created_at
40
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
41
+ # the request for payment was created.
42
+ #
43
+ # @return [Time]
44
+ required :created_at, Time
45
+
46
+ # @!attribute creditor_name
47
+ # The name of the creditor requesting the payment.
48
+ #
49
+ # @return [String]
50
+ required :creditor_name, String
51
+
52
+ # @!attribute currency
53
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
54
+ # currency. For real-time payments transfers this is always equal to `USD`.
55
+ #
56
+ # @return [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Currency]
57
+ required :currency, enum: -> { Increase::RealTimePaymentsRequestForPayment::Currency }
58
+
59
+ # @!attribute debtor
60
+ # Details of the person being requested to pay.
61
+ #
62
+ # @return [Increase::Models::RealTimePaymentsRequestForPayment::Debtor]
63
+ required :debtor, -> { Increase::RealTimePaymentsRequestForPayment::Debtor }
64
+
65
+ # @!attribute debtor_account_number
66
+ # The debtor's account number, which the request is sent to.
67
+ #
68
+ # @return [String]
69
+ required :debtor_account_number, String
70
+
71
+ # @!attribute debtor_routing_number
72
+ # The debtor's American Bankers' Association (ABA) Routing Transit Number (RTN).
73
+ #
74
+ # @return [String]
75
+ required :debtor_routing_number, String
76
+
77
+ # @!attribute expires_at
78
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time after which
79
+ # the request for payment is no longer valid. After this time the debtor's bank
80
+ # should no longer allow the debtor to pay it.
81
+ #
82
+ # @return [Time]
83
+ required :expires_at, Time
84
+
85
+ # @!attribute fulfillment_inbound_real_time_payments_transfer_id
86
+ # The identifier of the Inbound Real-Time Payments Transfer that fulfilled this
87
+ # request.
88
+ #
89
+ # @return [String, nil]
90
+ required :fulfillment_inbound_real_time_payments_transfer_id, String, nil?: true
91
+
92
+ # @!attribute idempotency_key
93
+ # The idempotency key you chose for this object. This value is unique across
94
+ # Increase and is used to ensure that a request is only processed once. Learn more
95
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
96
+ #
97
+ # @return [String, nil]
98
+ required :idempotency_key, String, nil?: true
99
+
100
+ # @!attribute refusal
101
+ # If the request for payment is refused by the destination financial institution
102
+ # or the receiving customer, this will contain supplemental details.
103
+ #
104
+ # @return [Increase::Models::RealTimePaymentsRequestForPayment::Refusal, nil]
105
+ required :refusal, -> { Increase::RealTimePaymentsRequestForPayment::Refusal }, nil?: true
106
+
107
+ # @!attribute rejection
108
+ # If the request for payment is rejected by Real-Time Payments or the destination
109
+ # financial institution, this will contain supplemental details.
110
+ #
111
+ # @return [Increase::Models::RealTimePaymentsRequestForPayment::Rejection, nil]
112
+ required :rejection, -> { Increase::RealTimePaymentsRequestForPayment::Rejection }, nil?: true
113
+
114
+ # @!attribute requested_execution_at
115
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time by which
116
+ # the payment was requested to be made.
117
+ #
118
+ # @return [Time, nil]
119
+ required :requested_execution_at, Time, nil?: true
120
+
121
+ # @!attribute status
122
+ # The lifecycle status of the request for payment.
123
+ #
124
+ # @return [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Status]
125
+ required :status, enum: -> { Increase::RealTimePaymentsRequestForPayment::Status }
126
+
127
+ # @!attribute submission
128
+ # After the request for payment is submitted to Real-Time Payments, this will
129
+ # contain supplemental details.
130
+ #
131
+ # @return [Increase::Models::RealTimePaymentsRequestForPayment::Submission, nil]
132
+ required :submission, -> { Increase::RealTimePaymentsRequestForPayment::Submission }, nil?: true
133
+
134
+ # @!attribute type
135
+ # A constant representing the object's type. For this resource it will always be
136
+ # `real_time_payments_request_for_payment`.
137
+ #
138
+ # @return [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Type]
139
+ required :type, enum: -> { Increase::RealTimePaymentsRequestForPayment::Type }
140
+
141
+ # @!attribute unstructured_remittance_information
142
+ # Unstructured information that will show on the recipient's bank statement.
143
+ #
144
+ # @return [String]
145
+ required :unstructured_remittance_information, String
146
+
147
+ # @!method initialize(id:, account_id:, account_number_id:, amount:, cancellation:, created_at:, creditor_name:, currency:, debtor:, debtor_account_number:, debtor_routing_number:, expires_at:, fulfillment_inbound_real_time_payments_transfer_id:, idempotency_key:, refusal:, rejection:, requested_execution_at:, status:, submission:, type:, unstructured_remittance_information:)
148
+ # Real-Time Payments transfers move funds, within seconds, between your Increase
149
+ # account and any other account on the Real-Time Payments network. A request for
150
+ # payment is a request to the receiver to send funds to your account. The
151
+ # permitted uses of Requests For Payment are limited by the Real-Time Payments
152
+ # network to business-to-business payments and transfers between two accounts at
153
+ # different banks owned by the same individual. Please contact
154
+ # [support@increase.com](mailto:support@increase.com) to enable this API for your
155
+ # team.
156
+ #
157
+ # @param id [String] The Real-Time Payments Request for Payment's identifier.
158
+ #
159
+ # @param account_id [String] The Account in which a successful transfer will arrive.
160
+ #
161
+ # @param account_number_id [String] The Account Number in which a successful transfer will arrive.
162
+ #
163
+ # @param amount [Integer] The transfer amount in USD cents.
164
+ #
165
+ # @param cancellation [Increase::Models::RealTimePaymentsRequestForPayment::Cancellation, nil]
166
+ # If a cancellation has been requested, this will contain supplemental details.
167
+ # The request for payment moves to `canceled` once the recipient bank acknowledges
168
+ # the cancellation.
169
+ #
170
+ # @param created_at [Time]
171
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
172
+ # the request for payment was created.
173
+ #
174
+ # @param creditor_name [String] The name of the creditor requesting the payment.
175
+ #
176
+ # @param currency [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Currency]
177
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
178
+ # currency. For real-time payments transfers this is always equal to `USD`.
179
+ #
180
+ # @param debtor [Increase::Models::RealTimePaymentsRequestForPayment::Debtor]
181
+ # Details of the person being requested to pay.
182
+ #
183
+ # @param debtor_account_number [String] The debtor's account number, which the request is sent to.
184
+ #
185
+ # @param debtor_routing_number [String]
186
+ # The debtor's American Bankers' Association (ABA) Routing Transit Number (RTN).
187
+ #
188
+ # @param expires_at [Time]
189
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time after which
190
+ # the request for payment is no longer valid. After this time the debtor's bank
191
+ # should no longer allow the debtor to pay it.
192
+ #
193
+ # @param fulfillment_inbound_real_time_payments_transfer_id [String, nil]
194
+ # The identifier of the Inbound Real-Time Payments Transfer that fulfilled this
195
+ # request.
196
+ #
197
+ # @param idempotency_key [String, nil]
198
+ # The idempotency key you chose for this object. This value is unique across
199
+ # Increase and is used to ensure that a request is only processed once. Learn more
200
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
201
+ #
202
+ # @param refusal [Increase::Models::RealTimePaymentsRequestForPayment::Refusal, nil]
203
+ # If the request for payment is refused by the destination financial institution
204
+ # or the receiving customer, this will contain supplemental details.
205
+ #
206
+ # @param rejection [Increase::Models::RealTimePaymentsRequestForPayment::Rejection, nil]
207
+ # If the request for payment is rejected by Real-Time Payments or the destination
208
+ # financial institution, this will contain supplemental details.
209
+ #
210
+ # @param requested_execution_at [Time, nil]
211
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time by which
212
+ # the payment was requested to be made.
213
+ #
214
+ # @param status [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Status]
215
+ # The lifecycle status of the request for payment.
216
+ #
217
+ # @param submission [Increase::Models::RealTimePaymentsRequestForPayment::Submission, nil]
218
+ # After the request for payment is submitted to Real-Time Payments, this will
219
+ # contain supplemental details.
220
+ #
221
+ # @param type [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Type]
222
+ # A constant representing the object's type. For this resource it will always be
223
+ # `real_time_payments_request_for_payment`.
224
+ #
225
+ # @param unstructured_remittance_information [String]
226
+ # Unstructured information that will show on the recipient's bank statement.
227
+
228
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#cancellation
229
+ class Cancellation < Increase::Internal::Type::BaseModel
230
+ # @!attribute additional_information
231
+ # Additional information about the cancellation, sent on to the recipient bank.
232
+ #
233
+ # @return [String, nil]
234
+ required :additional_information, String, nil?: true
235
+
236
+ # @!attribute canceled_at
237
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
238
+ # the cancellation was requested.
239
+ #
240
+ # @return [Time]
241
+ required :canceled_at, Time
242
+
243
+ # @!attribute reason
244
+ # The reason the request for payment was canceled.
245
+ #
246
+ # @return [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Cancellation::Reason]
247
+ required :reason, enum: -> { Increase::RealTimePaymentsRequestForPayment::Cancellation::Reason }
248
+
249
+ # @!method initialize(additional_information:, canceled_at:, reason:)
250
+ # If a cancellation has been requested, this will contain supplemental details.
251
+ # The request for payment moves to `canceled` once the recipient bank acknowledges
252
+ # the cancellation.
253
+ #
254
+ # @param additional_information [String, nil]
255
+ # Additional information about the cancellation, sent on to the recipient bank.
256
+ #
257
+ # @param canceled_at [Time]
258
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
259
+ # the cancellation was requested.
260
+ #
261
+ # @param reason [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Cancellation::Reason]
262
+ # The reason the request for payment was canceled.
263
+
264
+ # The reason the request for payment was canceled.
265
+ #
266
+ # @see Increase::Models::RealTimePaymentsRequestForPayment::Cancellation#reason
267
+ module Reason
268
+ extend Increase::Internal::Type::Enum
269
+
270
+ # The creditor no longer wants to be paid. Corresponds to the Real-Time Payments reason code `CUST`.
271
+ REQUESTED_BY_CUSTOMER = :requested_by_customer
272
+
273
+ # The requested payment has already been made through another channel. Corresponds to the Real-Time Payments reason code `UPAY`.
274
+ PAID_BY_OTHER_MEANS = :paid_by_other_means
275
+
276
+ # The request for payment duplicated another request for payment. Corresponds to the Real-Time Payments reason code `DUPL`.
277
+ DUPLICATE = :duplicate
278
+
279
+ # The request for payment was sent for the wrong amount. Corresponds to the Real-Time Payments reason code `AM09`.
280
+ WRONG_AMOUNT = :wrong_amount
281
+
282
+ # @!method self.values
283
+ # @return [Array<Symbol>]
284
+ end
285
+ end
286
+
287
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
288
+ # currency. For real-time payments transfers this is always equal to `USD`.
289
+ #
290
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#currency
291
+ module Currency
292
+ extend Increase::Internal::Type::Enum
293
+
294
+ # US Dollar (USD)
295
+ USD = :USD
296
+
297
+ # @!method self.values
298
+ # @return [Array<Symbol>]
299
+ end
300
+
301
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#debtor
302
+ class Debtor < Increase::Internal::Type::BaseModel
303
+ # @!attribute address
304
+ # Address of the debtor.
305
+ #
306
+ # @return [Increase::Models::RealTimePaymentsRequestForPayment::Debtor::Address]
307
+ required :address, -> { Increase::RealTimePaymentsRequestForPayment::Debtor::Address }
308
+
309
+ # @!attribute name
310
+ # The name of the debtor.
311
+ #
312
+ # @return [String]
313
+ required :name, String
314
+
315
+ # @!method initialize(address:, name:)
316
+ # Details of the person being requested to pay.
317
+ #
318
+ # @param address [Increase::Models::RealTimePaymentsRequestForPayment::Debtor::Address]
319
+ # Address of the debtor.
320
+ #
321
+ # @param name [String] The name of the debtor.
322
+
323
+ # @see Increase::Models::RealTimePaymentsRequestForPayment::Debtor#address
324
+ class Address < Increase::Internal::Type::BaseModel
325
+ # @!attribute address_line2
326
+ # A second address line, such as an apartment or suite number. The first address
327
+ # line is separated into `building_number` and `street_name`.
328
+ #
329
+ # @return [String, nil]
330
+ required :address_line2, String, nil?: true
331
+
332
+ # @!attribute building_number
333
+ # The number identifying the position of the building on the street.
334
+ #
335
+ # @return [String, nil]
336
+ required :building_number, String, nil?: true
337
+
338
+ # @!attribute city
339
+ # The town or city.
340
+ #
341
+ # @return [String, nil]
342
+ required :city, String, nil?: true
343
+
344
+ # @!attribute country
345
+ # The ISO 3166, Alpha-2 country code.
346
+ #
347
+ # @return [String, nil]
348
+ required :country, String, nil?: true
349
+
350
+ # @!attribute postal_code
351
+ # The postal code or zip.
352
+ #
353
+ # @return [String, nil]
354
+ required :postal_code, String, nil?: true
355
+
356
+ # @!attribute state
357
+ # The US state component of the address.
358
+ #
359
+ # @return [String, nil]
360
+ required :state, String, nil?: true
361
+
362
+ # @!attribute street_name
363
+ # The street name without the street number.
364
+ #
365
+ # @return [String, nil]
366
+ required :street_name, String, nil?: true
367
+
368
+ # @!method initialize(address_line2:, building_number:, city:, country:, postal_code:, state:, street_name:)
369
+ # Address of the debtor.
370
+ #
371
+ # @param address_line2 [String, nil]
372
+ # A second address line, such as an apartment or suite number. The first address
373
+ # line is separated into `building_number` and `street_name`.
374
+ #
375
+ # @param building_number [String, nil] The number identifying the position of the building on the street.
376
+ #
377
+ # @param city [String, nil] The town or city.
378
+ #
379
+ # @param country [String, nil] The ISO 3166, Alpha-2 country code.
380
+ #
381
+ # @param postal_code [String, nil] The postal code or zip.
382
+ #
383
+ # @param state [String, nil] The US state component of the address.
384
+ #
385
+ # @param street_name [String, nil] The street name without the street number.
386
+ end
387
+ end
388
+
389
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#refusal
390
+ class Refusal < Increase::Internal::Type::BaseModel
391
+ # @!attribute refusal_reason_additional_information
392
+ # Additional information about the refusal provided by the recipient bank or the
393
+ # customer. This is typically present when the `refusal_reason_code` is `other`.
394
+ #
395
+ # @return [String, nil]
396
+ required :refusal_reason_additional_information, String, nil?: true
397
+
398
+ # @!attribute refusal_reason_code
399
+ # The reason the request for payment was refused as provided by the recipient bank
400
+ # or the customer.
401
+ #
402
+ # @return [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Refusal::RefusalReasonCode]
403
+ required :refusal_reason_code,
404
+ enum: -> { Increase::RealTimePaymentsRequestForPayment::Refusal::RefusalReasonCode }
405
+
406
+ # @!attribute refused_at
407
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
408
+ # the request for payment was refused.
409
+ #
410
+ # @return [Time, nil]
411
+ required :refused_at, Time, nil?: true
412
+
413
+ # @!method initialize(refusal_reason_additional_information:, refusal_reason_code:, refused_at:)
414
+ # If the request for payment is refused by the destination financial institution
415
+ # or the receiving customer, this will contain supplemental details.
416
+ #
417
+ # @param refusal_reason_additional_information [String, nil]
418
+ # Additional information about the refusal provided by the recipient bank or the
419
+ # customer. This is typically present when the `refusal_reason_code` is `other`.
420
+ #
421
+ # @param refusal_reason_code [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Refusal::RefusalReasonCode]
422
+ # The reason the request for payment was refused as provided by the recipient bank
423
+ # or the customer.
424
+ #
425
+ # @param refused_at [Time, nil]
426
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
427
+ # the request for payment was refused.
428
+
429
+ # The reason the request for payment was refused as provided by the recipient bank
430
+ # or the customer.
431
+ #
432
+ # @see Increase::Models::RealTimePaymentsRequestForPayment::Refusal#refusal_reason_code
433
+ module RefusalReasonCode
434
+ extend Increase::Internal::Type::Enum
435
+
436
+ # The destination account is currently blocked from receiving transactions. Corresponds to the Real-Time Payments reason code `AC06`.
437
+ ACCOUNT_BLOCKED = :account_blocked
438
+
439
+ # Real-Time Payments transfers are not allowed to the destination account. Corresponds to the Real-Time Payments reason code `AG01`.
440
+ TRANSACTION_FORBIDDEN = :transaction_forbidden
441
+
442
+ # Real-Time Payments transfers are not enabled for the destination account. Corresponds to the Real-Time Payments reason code `AG03`.
443
+ TRANSACTION_TYPE_NOT_SUPPORTED = :transaction_type_not_supported
444
+
445
+ # The amount of the transfer is different than expected by the recipient. Corresponds to the Real-Time Payments reason code `AM09`.
446
+ UNEXPECTED_AMOUNT = :unexpected_amount
447
+
448
+ # The amount is higher than the recipient is authorized to send or receive. Corresponds to the Real-Time Payments reason code `AM14`.
449
+ AMOUNT_EXCEEDS_BANK_LIMITS = :amount_exceeds_bank_limits
450
+
451
+ # The debtor's address is required, but missing or invalid. Corresponds to the Real-Time Payments reason code `BE07`.
452
+ INVALID_DEBTOR_ADDRESS = :invalid_debtor_address
453
+
454
+ # The creditor's address is required, but missing or invalid. Corresponds to the Real-Time Payments reason code `BE04`.
455
+ INVALID_CREDITOR_ADDRESS = :invalid_creditor_address
456
+
457
+ # Creditor identifier incorrect. Corresponds to the Real-Time Payments reason code `CH11`.
458
+ CREDITOR_IDENTIFIER_INCORRECT = :creditor_identifier_incorrect
459
+
460
+ # The customer refused the request. Corresponds to the Real-Time Payments reason code `CUST`.
461
+ REQUESTED_BY_CUSTOMER = :requested_by_customer
462
+
463
+ # The order was rejected. Corresponds to the Real-Time Payments reason code `DS04`.
464
+ ORDER_REJECTED = :order_rejected
465
+
466
+ # The destination account holder is deceased. Corresponds to the Real-Time Payments reason code `MD07`.
467
+ END_CUSTOMER_DECEASED = :end_customer_deceased
468
+
469
+ # The customer has opted out of receiving requests for payments from this creditor. Corresponds to the Real-Time Payments reason code `SL12`.
470
+ CUSTOMER_HAS_OPTED_OUT = :customer_has_opted_out
471
+
472
+ # Some other error or issue has occurred.
473
+ OTHER = :other
474
+
475
+ # @!method self.values
476
+ # @return [Array<Symbol>]
477
+ end
478
+ end
479
+
480
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#rejection
481
+ class Rejection < Increase::Internal::Type::BaseModel
482
+ # @!attribute reject_reason_additional_information
483
+ # Additional information about the rejection provided by the recipient bank or the
484
+ # Real-Time Payments network. This is typically present when the
485
+ # `reject_reason_code` is `narrative`.
486
+ #
487
+ # @return [String, nil]
488
+ required :reject_reason_additional_information, String, nil?: true
489
+
490
+ # @!attribute reject_reason_code
491
+ # The reason the request for payment was rejected as provided by the recipient
492
+ # bank or the Real-Time Payments network.
493
+ #
494
+ # @return [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Rejection::RejectReasonCode]
495
+ required :reject_reason_code,
496
+ enum: -> { Increase::RealTimePaymentsRequestForPayment::Rejection::RejectReasonCode }
497
+
498
+ # @!attribute rejected_at
499
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
500
+ # the request for payment was rejected.
501
+ #
502
+ # @return [Time, nil]
503
+ required :rejected_at, Time, nil?: true
504
+
505
+ # @!method initialize(reject_reason_additional_information:, reject_reason_code:, rejected_at:)
506
+ # If the request for payment is rejected by Real-Time Payments or the destination
507
+ # financial institution, this will contain supplemental details.
508
+ #
509
+ # @param reject_reason_additional_information [String, nil]
510
+ # Additional information about the rejection provided by the recipient bank or the
511
+ # Real-Time Payments network. This is typically present when the
512
+ # `reject_reason_code` is `narrative`.
513
+ #
514
+ # @param reject_reason_code [Symbol, Increase::Models::RealTimePaymentsRequestForPayment::Rejection::RejectReasonCode]
515
+ # The reason the request for payment was rejected as provided by the recipient
516
+ # bank or the Real-Time Payments network.
517
+ #
518
+ # @param rejected_at [Time, nil]
519
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
520
+ # the request for payment was rejected.
521
+
522
+ # The reason the request for payment was rejected as provided by the recipient
523
+ # bank or the Real-Time Payments network.
524
+ #
525
+ # @see Increase::Models::RealTimePaymentsRequestForPayment::Rejection#reject_reason_code
526
+ module RejectReasonCode
527
+ extend Increase::Internal::Type::Enum
528
+
529
+ # The destination account is closed. Corresponds to the Real-Time Payments reason code "AC04".
530
+ ACCOUNT_CLOSED = :account_closed
531
+
532
+ # The destination account is currently blocked from receiving transactions. Corresponds to the Real-Time Payments reason code "AC06".
533
+ ACCOUNT_BLOCKED = :account_blocked
534
+
535
+ # The destination account is ineligible to receive Real-Time Payments transfers. Corresponds to the Real-Time Payments reason code "AC14".
536
+ INVALID_CREDITOR_ACCOUNT_TYPE = :invalid_creditor_account_type
537
+
538
+ # The destination account does not exist. Corresponds to the Real-Time Payments reason code "AC03".
539
+ INVALID_CREDITOR_ACCOUNT_NUMBER = :invalid_creditor_account_number
540
+
541
+ # The destination routing number is invalid. Corresponds to the Real-Time Payments reason code "RC04".
542
+ INVALID_CREDITOR_FINANCIAL_INSTITUTION_IDENTIFIER = :invalid_creditor_financial_institution_identifier
543
+
544
+ # The destination account holder is deceased. Corresponds to the Real-Time Payments reason code "MD07".
545
+ END_CUSTOMER_DECEASED = :end_customer_deceased
546
+
547
+ # The reason is provided as narrative information in the additional information field.
548
+ NARRATIVE = :narrative
549
+
550
+ # Real-Time Payments transfers are not allowed to the destination account. Corresponds to the Real-Time Payments reason code "AG01".
551
+ TRANSACTION_FORBIDDEN = :transaction_forbidden
552
+
553
+ # Real-Time Payments transfers are not enabled for the destination account. Corresponds to the Real-Time Payments reason code "AG03".
554
+ TRANSACTION_TYPE_NOT_SUPPORTED = :transaction_type_not_supported
555
+
556
+ # The amount of the transfer is different than expected by the recipient. Corresponds to the Real-Time Payments reason code "AM09".
557
+ UNEXPECTED_AMOUNT = :unexpected_amount
558
+
559
+ # The amount is higher than the recipient is authorized to send or receive. Corresponds to the Real-Time Payments reason code "AM14".
560
+ AMOUNT_EXCEEDS_BANK_LIMITS = :amount_exceeds_bank_limits
561
+
562
+ # The creditor's address is required, but missing or invalid. Corresponds to the Real-Time Payments reason code "BE04".
563
+ INVALID_CREDITOR_ADDRESS = :invalid_creditor_address
564
+
565
+ # The specified creditor is unknown. Corresponds to the Real-Time Payments reason code "BE06".
566
+ UNKNOWN_END_CUSTOMER = :unknown_end_customer
567
+
568
+ # The debtor's address is required, but missing or invalid. Corresponds to the Real-Time Payments reason code "BE07".
569
+ INVALID_DEBTOR_ADDRESS = :invalid_debtor_address
570
+
571
+ # There was a timeout processing the transfer. Corresponds to the Real-Time Payments reason code "DS24".
572
+ TIMEOUT = :timeout
573
+
574
+ # Real-Time Payments transfers are not enabled for the destination account. Corresponds to the Real-Time Payments reason code "NOAT".
575
+ UNSUPPORTED_MESSAGE_FOR_RECIPIENT = :unsupported_message_for_recipient
576
+
577
+ # The destination financial institution is currently not connected to Real-Time Payments. Corresponds to the Real-Time Payments reason code "9912".
578
+ RECIPIENT_CONNECTION_NOT_AVAILABLE = :recipient_connection_not_available
579
+
580
+ # Real-Time Payments is currently unavailable. Corresponds to the Real-Time Payments reason code "9948".
581
+ REAL_TIME_PAYMENTS_SUSPENDED = :real_time_payments_suspended
582
+
583
+ # The destination financial institution is currently signed off of Real-Time Payments. Corresponds to the Real-Time Payments reason code "9910".
584
+ INSTRUCTED_AGENT_SIGNED_OFF = :instructed_agent_signed_off
585
+
586
+ # The transfer was rejected due to an internal Increase issue. We have been notified.
587
+ PROCESSING_ERROR = :processing_error
588
+
589
+ # Some other error or issue has occurred.
590
+ OTHER = :other
591
+
592
+ # @!method self.values
593
+ # @return [Array<Symbol>]
594
+ end
595
+ end
596
+
597
+ # The lifecycle status of the request for payment.
598
+ #
599
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#status
600
+ module Status
601
+ extend Increase::Internal::Type::Enum
602
+
603
+ # The request for payment is queued to be submitted to Real-Time Payments.
604
+ PENDING_SUBMISSION = :pending_submission
605
+
606
+ # The request for payment has been submitted and is pending a response from Real-Time Payments.
607
+ PENDING_RESPONSE = :pending_response
608
+
609
+ # The request for payment was rejected by the network or the recipient.
610
+ REJECTED = :rejected
611
+
612
+ # The request for payment was accepted by the recipient but has not yet been paid.
613
+ ACCEPTED = :accepted
614
+
615
+ # The request for payment was refused by the recipient.
616
+ REFUSED = :refused
617
+
618
+ # The request for payment was fulfilled by the receiver.
619
+ FULFILLED = :fulfilled
620
+
621
+ # The request for payment was canceled and can no longer be paid.
622
+ CANCELED = :canceled
623
+
624
+ # @!method self.values
625
+ # @return [Array<Symbol>]
626
+ end
627
+
628
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#submission
629
+ class Submission < Increase::Internal::Type::BaseModel
630
+ # @!attribute payment_information_identification
631
+ # The Real-Time Payments payment information identification of the request.
632
+ #
633
+ # @return [String]
634
+ required :payment_information_identification, String
635
+
636
+ # @!method initialize(payment_information_identification:)
637
+ # After the request for payment is submitted to Real-Time Payments, this will
638
+ # contain supplemental details.
639
+ #
640
+ # @param payment_information_identification [String]
641
+ # The Real-Time Payments payment information identification of the request.
642
+ end
643
+
644
+ # A constant representing the object's type. For this resource it will always be
645
+ # `real_time_payments_request_for_payment`.
646
+ #
647
+ # @see Increase::Models::RealTimePaymentsRequestForPayment#type
648
+ module Type
649
+ extend Increase::Internal::Type::Enum
650
+
651
+ REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT = :real_time_payments_request_for_payment
652
+
653
+ # @!method self.values
654
+ # @return [Array<Symbol>]
655
+ end
656
+ end
657
+ end
658
+ end