Skip to content

Commit 81a2fbc

Browse files
authored
Adds default payment rail to account model and Target2 as a rail option. (#421)
1 parent 55c197d commit 81a2fbc

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

src/NoFrixion.MoneyMoov/Enums/PaymentRailEnum.cs

100644100755
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ public enum PaymentRailEnum
2929
SEPA_CT,
3030

3131
/// <summary>
32-
/// Single Euro Payments Area (SEPA) Instant scheme. Paymnets are processed 24/7 in
32+
/// Single Euro Payments Area (SEPA) Instant scheme. Payments are processed 24/7 in
3333
/// seconds. Not yet supported by all EU institutions.
3434
/// </summary>
35-
SEPA_INST
35+
SEPA_INST,
36+
37+
/// <summary>
38+
/// TARGET2 is the real-time gross settlement (RTGS) system for the Euro. Payments are processed
39+
/// in real-time and are used for high-value transfers within the EU.
40+
/// </summary>
41+
TARGET2
3642
}

src/NoFrixion.MoneyMoov/Enums/TransactionTypesEnum.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,8 @@ public enum TransactionTypesEnum
8484
/// The transaction type was not recognised.
8585
/// </summary>
8686
[Display(Name = "Unknown type")]
87-
Unknown = 12
87+
Unknown = 12,
88+
89+
[Display(Name = "TARGET2")]
90+
TARGET2 = 13
8891
}

src/NoFrixion.MoneyMoov/Models/Account/PaymentAccount.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ public string Summary
204204
[CanBeNull]
205205
public User CreatedBy { get; set; }
206206

207+
/// <summary>
208+
/// Indicates the default payment rail for this account. Normally it will be left as the
209+
/// default value but in some special cases it may be set to indicate payouts from this account
210+
/// should be attempted with a specific payment rail.
211+
/// </summary>
212+
public PaymentRailEnum DefaultPaymentRail { get; set; }
213+
207214
/// <summary>
208215
/// The list of rules associated with this account.
209216
/// </summary>

0 commit comments

Comments
 (0)