-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPaymentConfigurationViewModel.cs
More file actions
43 lines (38 loc) · 2.33 KB
/
PaymentConfigurationViewModel.cs
File metadata and controls
43 lines (38 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Unity.Payments.Web.Pages.PaymentConfigurations
{
public class PaymentConfigurationViewModel
{
[DisplayName("Ministry Client")]
[Required]
[RegularExpression("([a-zA-Z0-9]+)", ErrorMessage = "{0} does not match the pattern of only non-special characters.")]
[StringLength(3, MinimumLength = 3, ErrorMessage = "{0} must have a minimum of {1} characters.")]
[MaxLength(3, ErrorMessage = "{0} must have a max of {1} characters.")]
public string? MinistryClient { get; set; } = string.Empty;
[DisplayName("Responsibility")]
[Required]
[RegularExpression("([a-zA-Z0-9]+)", ErrorMessage = "{0} does not match the pattern of only non-special characters.")]
[StringLength(5, MinimumLength = 5, ErrorMessage = "{0} must have a minimum of {1} characters.")]
[MaxLength(5, ErrorMessage = "{0} must have a max of {1} characters.")]
public string? Responsibility { get; set; } = string.Empty;
[DisplayName("Service Line")]
[Required]
[RegularExpression("([a-zA-Z0-9]+)", ErrorMessage = "{0} does not match the pattern of only non-special characters.")]
[StringLength(5, MinimumLength = 5, ErrorMessage = "{0} must have a minimum of {1} characters.")]
[MaxLength(5, ErrorMessage = "{0} must have a minimum of {1} characters.")]
public string? ServiceLine { get; set; } = string.Empty;
[DisplayName("Stob")]
[Required]
[RegularExpression("([a-zA-Z0-9]+)", ErrorMessage = "{0} does not match the pattern of only non-special characters.")]
[StringLength(4, MinimumLength = 4, ErrorMessage = "{0} must have a minimum of {1} characters.")]
[MaxLength(4, ErrorMessage = "{0} must have a max of {1} characters.")]
public string? Stob { get; set; } = string.Empty;
[DisplayName("Project #")]
[Required]
[RegularExpression("([a-zA-Z0-9]+)", ErrorMessage = "{0} does not match the pattern of only non-special characters.")]
[StringLength(7, MinimumLength = 7, ErrorMessage = "{0} must have a minimum of {1} characters.")]
[MaxLength(7, ErrorMessage = "{0} must have a max of {1} characters.")]
public string? ProjectNumber { get; set; } = string.Empty;
}
}