Skip to content

Commit fd217a1

Browse files
authored
Merge pull request #425 from nofrixion/bugfix/MOOV-3743-accountnumber-sortcode
MOOV-3743: Change DD mandate account number and sort code to string
2 parents 938fa74 + 6bcb38b commit fd217a1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/NoFrixion.MoneyMoov/Models/Mandates/Mandate.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ public class Mandate
9292
/// <summary>
9393
/// Customer's account number in case of GBP account.
9494
/// </summary>
95-
public int? CustomerAccountNumber { get; set; }
95+
public string? CustomerAccountNumber { get; set; }
9696

9797
/// <summary>
9898
/// Customer's sort code in case of GBP account.
9999
/// </summary>
100-
public int? CustomerSortCode { get; set; }
100+
public string? CustomerSortCode { get; set; }
101101

102102
/// <summary>
103103
/// Reference assigned to this mandate.

src/NoFrixion.MoneyMoov/Models/Mandates/MandateCreate.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ public class MandateCreate
8989
/// Account number of the customer's bank account in case of GBP account.
9090
/// </summary>
9191
[MaxLength(8)]
92-
[RegularExpression("^[a-zA-Z0-9\\-,'. ]+$", ErrorMessage = "Please, provide a valid account number.")]
93-
public int? AccountNumber { get; set; }
92+
[RegularExpression("^[0-9]*$", ErrorMessage = "Please, provide a valid account number.")]
93+
public string? AccountNumber { get; set; }
9494

9595
/// <summary>
9696
/// Sort code of the customer's bank account in case of GBP account.
9797
/// </summary>
9898
[MaxLength(6)]
99-
[RegularExpression("^[a-zA-Z0-9\\-,'. ]+$", ErrorMessage = "Please, provide a valid sort code.")]
100-
public int? SortCode { get; set; }
99+
[RegularExpression("^[0-9\\-]*$", ErrorMessage = "Please, provide a valid sort code.")]
100+
public string? SortCode { get; set; }
101101

102102
/// <summary>
103103
/// Customer's email address.

0 commit comments

Comments
 (0)