Skip to content

Commit 374c10e

Browse files
Merge pull request #652 from nofrixion/MOOV-4804-requester-vop
Added payee verification properties to beneficiary
2 parents 2ad83ae + ba192e7 commit 374c10e

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

src/NoFrixion.MoneyMoov/Enums/BeneficiaryEventTypeEnum.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,20 @@ public enum BeneficiaryEventTypeEnum
5151
/// <summary>
5252
/// An archive is a soft delete. It removes the beneficiary from the active list.
5353
/// </summary>
54-
Archive = 6
54+
Archive = 6,
55+
56+
/// <summary>
57+
/// Indicates that payee verification has been initiated for the beneficiary.
58+
/// </summary>
59+
PayeeVerificationInitiated = 7,
60+
61+
/// <summary>
62+
/// Indicates that payee verification has been completed successfully for the beneficiary.
63+
/// </summary>
64+
PayeeVerificationComplete = 8,
65+
66+
/// <summary>
67+
/// Indicates that payee verification has failed for the beneficiary.
68+
/// </summary>
69+
PayeeVerificationFailed = 9
5570
}

src/NoFrixion.MoneyMoov/Enums/PayoutEventTypesEnum.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,10 @@ public enum PayoutEventTypesEnum
112112
/// <summary>
113113
/// A payout's destination has been successfully verified.
114114
/// </summary>
115-
PayeeVerificationComplete = 18
115+
PayeeVerificationComplete = 18,
116+
117+
/// <summary>
118+
/// A payout's destination verification has failed.
119+
/// </summary>
120+
PayeeVerificationFailed = 19
116121
}

src/NoFrixion.MoneyMoov/Models/Beneficiary/BeneficiaryEvent.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// MIT.
1414
// -----------------------------------------------------------------------------
1515

16+
using JetBrains.Annotations;
1617
using NoFrixion.MoneyMoov.Enums;
1718

1819
namespace NoFrixion.MoneyMoov.Models;
@@ -66,6 +67,14 @@ public class BeneficiaryEvent
6667
public bool IsEnabled { get; set; }
6768

6869
public bool IsArchived { get; set; }
70+
71+
public string SupplierPayeeVerificationResult { get; set; }
72+
73+
/// <summary>
74+
/// If this event is a payee verification complete event and the result is a close match,
75+
/// this contains the actual verified name returned by the payee verification supplier.
76+
/// </summary>
77+
public string PayeeVerifiedAccountName { get; set; }
6978

7079
public User User { get; set; }
7180
}

src/NoFrixion.MoneyMoov/Models/Payouts/PayoutEvent.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,10 @@ public class PayoutEvent
5757
/// If this event is a payee verification event, this contains the result of the verification.
5858
/// </summary>
5959
public string? SupplierPayeeVerificationResult { get; set; }
60+
61+
/// <summary>
62+
/// If this event is a payee verification complete event and the result is a close match,
63+
/// this contains the actual verified name returned by the payee verification supplier.
64+
/// </summary>
65+
public string? PayeeVerifiedAccountName { get; set; }
6066
}

0 commit comments

Comments
 (0)