increase 1.367.0 → 1.369.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/card_payment.rb +30 -0
  4. data/lib/increase/models/declined_transaction.rb +3 -0
  5. data/lib/increase/models/digital_wallet_token.rb +63 -1
  6. data/lib/increase/models/digital_wallet_token_request.rb +327 -1
  7. data/lib/increase/models/export.rb +19 -5
  8. data/lib/increase/models/export_create_params.rb +36 -13
  9. data/lib/increase/models/inbound_check_deposit.rb +0 -3
  10. data/lib/increase/models/inbound_fednow_transfer.rb +3 -0
  11. data/lib/increase/models/pending_transaction.rb +76 -1
  12. data/lib/increase/models/pending_transaction_list_params.rb +3 -0
  13. data/lib/increase/models/real_time_decision.rb +330 -1
  14. data/lib/increase/models/simulations/card_refund_create_params.rb +2 -2
  15. data/lib/increase/models/transaction.rb +86 -1
  16. data/lib/increase/models/transaction_list_params.rb +3 -0
  17. data/lib/increase/resources/exports.rb +5 -1
  18. data/lib/increase/resources/simulations/card_refunds.rb +1 -1
  19. data/lib/increase/version.rb +1 -1
  20. data/rbi/increase/models/card_payment.rbi +70 -0
  21. data/rbi/increase/models/declined_transaction.rbi +7 -0
  22. data/rbi/increase/models/digital_wallet_token.rbi +114 -3
  23. data/rbi/increase/models/digital_wallet_token_request.rbi +589 -3
  24. data/rbi/increase/models/export.rbi +18 -6
  25. data/rbi/increase/models/export_create_params.rbi +44 -15
  26. data/rbi/increase/models/inbound_check_deposit.rbi +0 -3
  27. data/rbi/increase/models/inbound_fednow_transfer.rbi +7 -0
  28. data/rbi/increase/models/pending_transaction.rbi +162 -0
  29. data/rbi/increase/models/pending_transaction_list_params.rbi +7 -0
  30. data/rbi/increase/models/real_time_decision.rbi +623 -3
  31. data/rbi/increase/models/simulations/card_refund_create_params.rbi +2 -2
  32. data/rbi/increase/models/transaction.rbi +179 -0
  33. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  34. data/rbi/increase/resources/exports.rbi +5 -1
  35. data/rbi/increase/resources/simulations/card_refunds.rbi +1 -1
  36. data/sig/increase/models/card_payment.rbs +40 -0
  37. data/sig/increase/models/declined_transaction.rbs +4 -0
  38. data/sig/increase/models/digital_wallet_token.rbs +40 -3
  39. data/sig/increase/models/digital_wallet_token_request.rbs +245 -3
  40. data/sig/increase/models/export.rbs +13 -4
  41. data/sig/increase/models/export_create_params.rbs +16 -5
  42. data/sig/increase/models/inbound_fednow_transfer.rbs +4 -0
  43. data/sig/increase/models/pending_transaction.rbs +63 -0
  44. data/sig/increase/models/pending_transaction_list_params.rbs +4 -0
  45. data/sig/increase/models/real_time_decision.rbs +245 -3
  46. data/sig/increase/models/transaction.rbs +71 -0
  47. data/sig/increase/models/transaction_list_params.rbs +4 -0
  48. metadata +2 -2
@@ -4,14 +4,21 @@ module Increase
4
4
  {
5
5
  id: String,
6
6
  card_id: String,
7
+ cardholder: Increase::DigitalWalletTokenRequest::Cardholder,
7
8
  created_at: Time,
8
9
  declined: Increase::DigitalWalletTokenRequest::Declined?,
9
10
  device: Increase::DigitalWalletTokenRequest::Device,
11
+ network: Increase::Models::DigitalWalletTokenRequest::network,
10
12
  outcome: Increase::Models::DigitalWalletTokenRequest::outcome,
13
+ primary_account_number_source: Increase::Models::DigitalWalletTokenRequest::primary_account_number_source?,
11
14
  provisioned: Increase::DigitalWalletTokenRequest::Provisioned?,
12
15
  token_reference_identifier: String,
13
16
  token_requestor: Increase::Models::DigitalWalletTokenRequest::token_requestor,
14
- type: Increase::Models::DigitalWalletTokenRequest::type_
17
+ token_requestor_details: Increase::DigitalWalletTokenRequest::TokenRequestorDetails,
18
+ type: Increase::Models::DigitalWalletTokenRequest::type_,
19
+ verification: Increase::DigitalWalletTokenRequest::Verification,
20
+ visa: Increase::DigitalWalletTokenRequest::Visa?,
21
+ wallet: Increase::DigitalWalletTokenRequest::Wallet
15
22
  }
16
23
 
17
24
  class DigitalWalletTokenRequest < Increase::Internal::Type::BaseModel
@@ -19,48 +26,86 @@ module Increase
19
26
 
20
27
  attr_accessor card_id: String
21
28
 
29
+ attr_accessor cardholder: Increase::DigitalWalletTokenRequest::Cardholder
30
+
22
31
  attr_accessor created_at: Time
23
32
 
24
33
  attr_accessor declined: Increase::DigitalWalletTokenRequest::Declined?
25
34
 
26
35
  attr_accessor device: Increase::DigitalWalletTokenRequest::Device
27
36
 
37
+ attr_accessor network: Increase::Models::DigitalWalletTokenRequest::network
38
+
28
39
  attr_accessor outcome: Increase::Models::DigitalWalletTokenRequest::outcome
29
40
 
41
+ attr_accessor primary_account_number_source: Increase::Models::DigitalWalletTokenRequest::primary_account_number_source?
42
+
30
43
  attr_accessor provisioned: Increase::DigitalWalletTokenRequest::Provisioned?
31
44
 
32
45
  attr_accessor token_reference_identifier: String
33
46
 
34
47
  attr_accessor token_requestor: Increase::Models::DigitalWalletTokenRequest::token_requestor
35
48
 
49
+ attr_accessor token_requestor_details: Increase::DigitalWalletTokenRequest::TokenRequestorDetails
50
+
36
51
  attr_accessor type: Increase::Models::DigitalWalletTokenRequest::type_
37
52
 
53
+ attr_accessor verification: Increase::DigitalWalletTokenRequest::Verification
54
+
55
+ attr_accessor visa: Increase::DigitalWalletTokenRequest::Visa?
56
+
57
+ attr_accessor wallet: Increase::DigitalWalletTokenRequest::Wallet
58
+
38
59
  def initialize: (
39
60
  id: String,
40
61
  card_id: String,
62
+ cardholder: Increase::DigitalWalletTokenRequest::Cardholder,
41
63
  created_at: Time,
42
64
  declined: Increase::DigitalWalletTokenRequest::Declined?,
43
65
  device: Increase::DigitalWalletTokenRequest::Device,
66
+ network: Increase::Models::DigitalWalletTokenRequest::network,
44
67
  outcome: Increase::Models::DigitalWalletTokenRequest::outcome,
68
+ primary_account_number_source: Increase::Models::DigitalWalletTokenRequest::primary_account_number_source?,
45
69
  provisioned: Increase::DigitalWalletTokenRequest::Provisioned?,
46
70
  token_reference_identifier: String,
47
71
  token_requestor: Increase::Models::DigitalWalletTokenRequest::token_requestor,
48
- type: Increase::Models::DigitalWalletTokenRequest::type_
72
+ token_requestor_details: Increase::DigitalWalletTokenRequest::TokenRequestorDetails,
73
+ type: Increase::Models::DigitalWalletTokenRequest::type_,
74
+ verification: Increase::DigitalWalletTokenRequest::Verification,
75
+ visa: Increase::DigitalWalletTokenRequest::Visa?,
76
+ wallet: Increase::DigitalWalletTokenRequest::Wallet
49
77
  ) -> void
50
78
 
51
79
  def to_hash: -> {
52
80
  id: String,
53
81
  card_id: String,
82
+ cardholder: Increase::DigitalWalletTokenRequest::Cardholder,
54
83
  created_at: Time,
55
84
  declined: Increase::DigitalWalletTokenRequest::Declined?,
56
85
  device: Increase::DigitalWalletTokenRequest::Device,
86
+ network: Increase::Models::DigitalWalletTokenRequest::network,
57
87
  outcome: Increase::Models::DigitalWalletTokenRequest::outcome,
88
+ primary_account_number_source: Increase::Models::DigitalWalletTokenRequest::primary_account_number_source?,
58
89
  provisioned: Increase::DigitalWalletTokenRequest::Provisioned?,
59
90
  token_reference_identifier: String,
60
91
  token_requestor: Increase::Models::DigitalWalletTokenRequest::token_requestor,
61
- type: Increase::Models::DigitalWalletTokenRequest::type_
92
+ token_requestor_details: Increase::DigitalWalletTokenRequest::TokenRequestorDetails,
93
+ type: Increase::Models::DigitalWalletTokenRequest::type_,
94
+ verification: Increase::DigitalWalletTokenRequest::Verification,
95
+ visa: Increase::DigitalWalletTokenRequest::Visa?,
96
+ wallet: Increase::DigitalWalletTokenRequest::Wallet
62
97
  }
63
98
 
99
+ type cardholder = { name: String? }
100
+
101
+ class Cardholder < Increase::Internal::Type::BaseModel
102
+ attr_accessor name: String?
103
+
104
+ def initialize: (name: String?) -> void
105
+
106
+ def to_hash: -> { name: String? }
107
+ end
108
+
64
109
  type declined =
65
110
  {
66
111
  reason: Increase::Models::DigitalWalletTokenRequest::Declined::reason
@@ -202,6 +247,17 @@ module Increase
202
247
  end
203
248
  end
204
249
 
250
+ type network = :visa
251
+
252
+ module Network
253
+ extend Increase::Internal::Type::Enum
254
+
255
+ # Visa
256
+ VISA: :visa
257
+
258
+ def self?.values: -> ::Array[Increase::Models::DigitalWalletTokenRequest::network]
259
+ end
260
+
205
261
  type outcome = :provisioned | :declined
206
262
 
207
263
  module Outcome
@@ -216,6 +272,38 @@ module Increase
216
272
  def self?.values: -> ::Array[Increase::Models::DigitalWalletTokenRequest::outcome]
217
273
  end
218
274
 
275
+ type primary_account_number_source =
276
+ :key_entered
277
+ | :on_file
278
+ | :mobile_app
279
+ | :token
280
+ | :chip_dip
281
+ | :contactless_tap
282
+
283
+ module PrimaryAccountNumberSource
284
+ extend Increase::Internal::Type::Enum
285
+
286
+ # The cardholder entered the card number manually.
287
+ KEY_ENTERED: :key_entered
288
+
289
+ # The card number was already on file with the token requestor.
290
+ ON_FILE: :on_file
291
+
292
+ # The card was added from your mobile app using push provisioning.
293
+ MOBILE_APP: :mobile_app
294
+
295
+ # The card number was sourced from an existing token.
296
+ TOKEN: :token
297
+
298
+ # The card number was read from the chip of the physical card.
299
+ CHIP_DIP: :chip_dip
300
+
301
+ # The card number was read by tapping the physical card on the device.
302
+ CONTACTLESS_TAP: :contactless_tap
303
+
304
+ def self?.values: -> ::Array[Increase::Models::DigitalWalletTokenRequest::primary_account_number_source]
305
+ end
306
+
219
307
  type provisioned = { digital_wallet_token_id: String }
220
308
 
221
309
  class Provisioned < Increase::Internal::Type::BaseModel
@@ -250,6 +338,18 @@ module Increase
250
338
  def self?.values: -> ::Array[Increase::Models::DigitalWalletTokenRequest::token_requestor]
251
339
  end
252
340
 
341
+ type token_requestor_details = { identifier: String, name: String? }
342
+
343
+ class TokenRequestorDetails < Increase::Internal::Type::BaseModel
344
+ attr_accessor identifier: String
345
+
346
+ attr_accessor name: String?
347
+
348
+ def initialize: (identifier: String, name: String?) -> void
349
+
350
+ def to_hash: -> { identifier: String, name: String? }
351
+ end
352
+
253
353
  type type_ = :digital_wallet_token_request
254
354
 
255
355
  module Type
@@ -259,6 +359,148 @@ module Increase
259
359
 
260
360
  def self?.values: -> ::Array[Increase::Models::DigitalWalletTokenRequest::type_]
261
361
  end
362
+
363
+ type verification =
364
+ {
365
+ cardholder_address: Increase::DigitalWalletTokenRequest::Verification::CardholderAddress
366
+ }
367
+
368
+ class Verification < Increase::Internal::Type::BaseModel
369
+ attr_accessor cardholder_address: Increase::DigitalWalletTokenRequest::Verification::CardholderAddress
370
+
371
+ def initialize: (
372
+ cardholder_address: Increase::DigitalWalletTokenRequest::Verification::CardholderAddress
373
+ ) -> void
374
+
375
+ def to_hash: -> {
376
+ cardholder_address: Increase::DigitalWalletTokenRequest::Verification::CardholderAddress
377
+ }
378
+
379
+ type cardholder_address =
380
+ {
381
+ :actual_line1 => String?,
382
+ actual_postal_code: String?,
383
+ :provided_line1 => String?,
384
+ provided_postal_code: String?,
385
+ result: Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress::result
386
+ }
387
+
388
+ class CardholderAddress < Increase::Internal::Type::BaseModel
389
+ attr_accessor actual_line1: String?
390
+
391
+ attr_accessor actual_postal_code: String?
392
+
393
+ attr_accessor provided_line1: String?
394
+
395
+ attr_accessor provided_postal_code: String?
396
+
397
+ attr_accessor result: Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress::result
398
+
399
+ def initialize: (
400
+ actual_line1: String?,
401
+ actual_postal_code: String?,
402
+ provided_line1: String?,
403
+ provided_postal_code: String?,
404
+ result: Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress::result
405
+ ) -> void
406
+
407
+ def to_hash: -> {
408
+ :actual_line1 => String?,
409
+ actual_postal_code: String?,
410
+ :provided_line1 => String?,
411
+ provided_postal_code: String?,
412
+ result: Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress::result
413
+ }
414
+
415
+ type result =
416
+ :not_checked
417
+ | :postal_code_match_address_no_match
418
+ | :postal_code_no_match_address_match
419
+ | :match
420
+ | :no_match
421
+ | :postal_code_match_address_not_checked
422
+
423
+ module Result
424
+ extend Increase::Internal::Type::Enum
425
+
426
+ # No address information was provided in the authorization request.
427
+ NOT_CHECKED: :not_checked
428
+
429
+ # Postal code matches, but the street address does not match or was not provided.
430
+ POSTAL_CODE_MATCH_ADDRESS_NO_MATCH: :postal_code_match_address_no_match
431
+
432
+ # Postal code does not match, but the street address matches or was not provided.
433
+ POSTAL_CODE_NO_MATCH_ADDRESS_MATCH: :postal_code_no_match_address_match
434
+
435
+ # Postal code and street address match.
436
+ MATCH: :match
437
+
438
+ # Postal code and street address do not match.
439
+ NO_MATCH: :no_match
440
+
441
+ # Postal code matches, but the street address was not verified. (deprecated)
442
+ POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED: :postal_code_match_address_not_checked
443
+
444
+ def self?.values: -> ::Array[Increase::Models::DigitalWalletTokenRequest::Verification::CardholderAddress::result]
445
+ end
446
+ end
447
+ end
448
+
449
+ type visa =
450
+ { network_risk_score: Integer?, provisioning_risk_score: Integer? }
451
+
452
+ class Visa < Increase::Internal::Type::BaseModel
453
+ attr_accessor network_risk_score: Integer?
454
+
455
+ attr_accessor provisioning_risk_score: Integer?
456
+
457
+ def initialize: (
458
+ network_risk_score: Integer?,
459
+ provisioning_risk_score: Integer?
460
+ ) -> void
461
+
462
+ def to_hash: -> {
463
+ network_risk_score: Integer?,
464
+ provisioning_risk_score: Integer?
465
+ }
466
+ end
467
+
468
+ type wallet =
469
+ {
470
+ account_email_age_days: Integer?,
471
+ account_identifier: String?,
472
+ account_score: Integer?,
473
+ device_score: Integer?,
474
+ email_hash: String?
475
+ }
476
+
477
+ class Wallet < Increase::Internal::Type::BaseModel
478
+ attr_accessor account_email_age_days: Integer?
479
+
480
+ attr_accessor account_identifier: String?
481
+
482
+ attr_accessor account_score: Integer?
483
+
484
+ attr_accessor device_score: Integer?
485
+
486
+ attr_accessor email_hash: String?
487
+
488
+ def initialize: (
489
+ account_email_age_days: Integer?,
490
+ account_identifier: String?,
491
+ account_score: Integer?,
492
+ device_score: Integer?,
493
+ email_hash: String?
494
+ ) -> void
495
+
496
+ def to_hash: -> {
497
+ account_email_age_days: Integer?,
498
+ account_identifier: String?,
499
+ account_score: Integer?,
500
+ device_score: Integer?,
501
+ email_hash: String?
502
+ }
503
+ end
262
504
  end
263
505
  end
264
506
  end
@@ -122,24 +122,33 @@ module Increase
122
122
  }
123
123
 
124
124
  type account_statement_bai2 =
125
- { account_id: String?, effective_date: Date?, program_id: String? }
125
+ {
126
+ account_id: String?,
127
+ on_or_after_date: Date?,
128
+ on_or_before_date: Date?,
129
+ program_id: String?
130
+ }
126
131
 
127
132
  class AccountStatementBai2 < Increase::Internal::Type::BaseModel
128
133
  attr_accessor account_id: String?
129
134
 
130
- attr_accessor effective_date: Date?
135
+ attr_accessor on_or_after_date: Date?
136
+
137
+ attr_accessor on_or_before_date: Date?
131
138
 
132
139
  attr_accessor program_id: String?
133
140
 
134
141
  def initialize: (
135
142
  account_id: String?,
136
- effective_date: Date?,
143
+ on_or_after_date: Date?,
144
+ on_or_before_date: Date?,
137
145
  program_id: String?
138
146
  ) -> void
139
147
 
140
148
  def to_hash: -> {
141
149
  account_id: String?,
142
- effective_date: Date?,
150
+ on_or_after_date: Date?,
151
+ on_or_before_date: Date?,
143
152
  program_id: String?
144
153
  }
145
154
  end
@@ -178,16 +178,25 @@ module Increase
178
178
  end
179
179
 
180
180
  type account_statement_bai2 =
181
- { account_id: String, effective_date: Date, program_id: String }
181
+ {
182
+ account_id: String,
183
+ on_or_after_date: Date,
184
+ on_or_before_date: Date,
185
+ program_id: String
186
+ }
182
187
 
183
188
  class AccountStatementBai2 < Increase::Internal::Type::BaseModel
184
189
  attr_reader account_id: String?
185
190
 
186
191
  def account_id=: (String) -> String
187
192
 
188
- attr_reader effective_date: Date?
193
+ attr_reader on_or_after_date: Date?
189
194
 
190
- def effective_date=: (Date) -> Date
195
+ def on_or_after_date=: (Date) -> Date
196
+
197
+ attr_reader on_or_before_date: Date?
198
+
199
+ def on_or_before_date=: (Date) -> Date
191
200
 
192
201
  attr_reader program_id: String?
193
202
 
@@ -195,13 +204,15 @@ module Increase
195
204
 
196
205
  def initialize: (
197
206
  ?account_id: String,
198
- ?effective_date: Date,
207
+ ?on_or_after_date: Date,
208
+ ?on_or_before_date: Date,
199
209
  ?program_id: String
200
210
  ) -> void
201
211
 
202
212
  def to_hash: -> {
203
213
  account_id: String,
204
- effective_date: Date,
214
+ on_or_after_date: Date,
215
+ on_or_before_date: Date,
205
216
  program_id: String
206
217
  }
207
218
  end
@@ -195,6 +195,7 @@ module Increase
195
195
  | :timed_out
196
196
  | :confirmed
197
197
  | :declined
198
+ | :returned
198
199
  | :requires_attention
199
200
 
200
201
  module Status
@@ -212,6 +213,9 @@ module Increase
212
213
  # The transfer has been declined.
213
214
  DECLINED: :declined
214
215
 
216
+ # The transfer has been returned, in full or in part, to its sender.
217
+ RETURNED: :returned
218
+
215
219
  # The transfer requires attention from an Increase operator.
216
220
  REQUIRES_ATTENTION: :requires_attention
217
221
 
@@ -116,6 +116,7 @@ module Increase
116
116
  check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?,
117
117
  check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?,
118
118
  fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?,
119
+ inbound_fednow_transfer_return: Increase::PendingTransaction::Source::InboundFednowTransferReturn?,
119
120
  inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?,
120
121
  inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?,
121
122
  other: Increase::PendingTransaction::Source::Other?,
@@ -148,6 +149,8 @@ module Increase
148
149
 
149
150
  attr_accessor fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?
150
151
 
152
+ attr_accessor inbound_fednow_transfer_return: Increase::PendingTransaction::Source::InboundFednowTransferReturn?
153
+
151
154
  attr_accessor inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?
152
155
 
153
156
  attr_accessor inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?
@@ -177,6 +180,7 @@ module Increase
177
180
  ?check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?,
178
181
  ?check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?,
179
182
  ?fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?,
183
+ ?inbound_fednow_transfer_return: Increase::PendingTransaction::Source::InboundFednowTransferReturn?,
180
184
  ?inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?,
181
185
  ?inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?,
182
186
  ?other: Increase::PendingTransaction::Source::Other?,
@@ -199,6 +203,7 @@ module Increase
199
203
  check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?,
200
204
  check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?,
201
205
  fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?,
206
+ inbound_fednow_transfer_return: Increase::PendingTransaction::Source::InboundFednowTransferReturn?,
202
207
  inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?,
203
208
  inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?,
204
209
  other: Increase::PendingTransaction::Source::Other?,
@@ -217,6 +222,7 @@ module Increase
217
222
  | :check_deposit_instruction
218
223
  | :check_transfer_instruction
219
224
  | :fednow_transfer_instruction
225
+ | :inbound_fednow_transfer_return
220
226
  | :inbound_funds_hold
221
227
  | :user_initiated_hold
222
228
  | :real_time_payments_transfer_instruction
@@ -251,6 +257,9 @@ module Increase
251
257
  # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object.
252
258
  FEDNOW_TRANSFER_INSTRUCTION: :fednow_transfer_instruction
253
259
 
260
+ # Inbound FedNow Transfer Return: details will be under the `inbound_fednow_transfer_return` object.
261
+ INBOUND_FEDNOW_TRANSFER_RETURN: :inbound_fednow_transfer_return
262
+
254
263
  # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
255
264
  INBOUND_FUNDS_HOLD: :inbound_funds_hold
256
265
 
@@ -1303,6 +1312,7 @@ module Increase
1303
1312
  | :visa_atm_cash_withdrawal_international
1304
1313
  | :visa_atm_cash_deposit_domestic
1305
1314
  | :pulse_switch_fee
1315
+ | :pulse_switch_fee_credit
1306
1316
  | :pulse_tokenization_fee
1307
1317
 
1308
1318
  module FeeType
@@ -1404,6 +1414,9 @@ module Increase
1404
1414
  # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.
1405
1415
  PULSE_SWITCH_FEE: :pulse_switch_fee
1406
1416
 
1417
+ # Pulse Switch Fee Credit is a credit of the Pulse Switch Fee charged for an authorization that was subsequently reversed in full.
1418
+ PULSE_SWITCH_FEE_CREDIT: :pulse_switch_fee_credit
1419
+
1407
1420
  # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
1408
1421
  PULSE_TOKENIZATION_FEE: :pulse_tokenization_fee
1409
1422
 
@@ -1688,6 +1701,56 @@ module Increase
1688
1701
  def to_hash: -> { transfer_id: String }
1689
1702
  end
1690
1703
 
1704
+ type inbound_fednow_transfer_return =
1705
+ {
1706
+ inbound_fednow_transfer_id: String,
1707
+ reason: Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn::reason
1708
+ }
1709
+
1710
+ class InboundFednowTransferReturn < Increase::Internal::Type::BaseModel
1711
+ attr_accessor inbound_fednow_transfer_id: String
1712
+
1713
+ attr_accessor reason: Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn::reason
1714
+
1715
+ def initialize: (
1716
+ inbound_fednow_transfer_id: String,
1717
+ reason: Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn::reason
1718
+ ) -> void
1719
+
1720
+ def to_hash: -> {
1721
+ inbound_fednow_transfer_id: String,
1722
+ reason: Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn::reason
1723
+ }
1724
+
1725
+ type reason =
1726
+ :duplicate
1727
+ | :creditor_request
1728
+ | :wrong_amount
1729
+ | :undue_payment
1730
+ | :fraud
1731
+
1732
+ module Reason
1733
+ extend Increase::Internal::Type::Enum
1734
+
1735
+ # The inbound FedNow transfer was a duplicate. Corresponds to the FedNow reason code `DUPL`.
1736
+ DUPLICATE: :duplicate
1737
+
1738
+ # The recipient of the inbound FedNow transfer requested the funds be returned to the sender. Corresponds to the FedNow reason code `CUST`.
1739
+ CREDITOR_REQUEST: :creditor_request
1740
+
1741
+ # The inbound FedNow transfer was for the wrong amount. Corresponds to the FedNow reason code `AM09`.
1742
+ WRONG_AMOUNT: :wrong_amount
1743
+
1744
+ # The recipient of the inbound FedNow transfer was not owed the funds. Corresponds to the FedNow reason code `UPAY`.
1745
+ UNDUE_PAYMENT: :undue_payment
1746
+
1747
+ # The inbound FedNow transfer was determined to be fraudulent. Corresponds to the FedNow reason code `FR01`, and reports the fraud to the Federal Reserve and the sending bank.
1748
+ FRAUD: :fraud
1749
+
1750
+ def self?.values: -> ::Array[Increase::Models::PendingTransaction::Source::InboundFednowTransferReturn::reason]
1751
+ end
1752
+ end
1753
+
1691
1754
  type inbound_funds_hold =
1692
1755
  {
1693
1756
  amount: Integer,
@@ -99,6 +99,7 @@ module Increase
99
99
  | :check_deposit_instruction
100
100
  | :check_transfer_instruction
101
101
  | :fednow_transfer_instruction
102
+ | :inbound_fednow_transfer_return
102
103
  | :inbound_funds_hold
103
104
  | :user_initiated_hold
104
105
  | :real_time_payments_transfer_instruction
@@ -133,6 +134,9 @@ module Increase
133
134
  # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object.
134
135
  FEDNOW_TRANSFER_INSTRUCTION: :fednow_transfer_instruction
135
136
 
137
+ # Inbound FedNow Transfer Return: details will be under the `inbound_fednow_transfer_return` object.
138
+ INBOUND_FEDNOW_TRANSFER_RETURN: :inbound_fednow_transfer_return
139
+
136
140
  # Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
137
141
  INBOUND_FUNDS_HOLD: :inbound_funds_hold
138
142