Add display attributes. Fix #98 (#990)

This commit is contained in:
Lucas Cullen 2019-08-25 00:06:34 +10:00 committed by Nicolas Dorier
parent 3e9bee2d44
commit 7ea3312534

View file

@ -5,6 +5,7 @@ using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using BTCPayServer.Validation; using BTCPayServer.Validation;
using System.ComponentModel;
namespace BTCPayServer.Models.InvoicingModels namespace BTCPayServer.Models.InvoicingModels
{ {
@ -37,11 +38,13 @@ namespace BTCPayServer.Models.InvoicingModels
get; set; get; set;
} }
[DisplayName("Item Description")]
public string ItemDesc public string ItemDesc
{ {
get; set; get; set;
} }
[DisplayName("POS Data")]
public string PosData public string PosData
{ {
get; set; get; set;
@ -54,12 +57,14 @@ namespace BTCPayServer.Models.InvoicingModels
} }
[EmailAddress] [EmailAddress]
[DisplayName("Notification Email")]
public string NotificationEmail public string NotificationEmail
{ {
get; set; get; set;
} }
[Uri] [Uri]
[DisplayName("Notification Url")]
public string NotificationUrl public string NotificationUrl
{ {
get; set; get; set;
@ -70,12 +75,15 @@ namespace BTCPayServer.Models.InvoicingModels
get; get;
set; set;
} }
[DisplayName("Supported Transaction Currencies")]
public List<string> SupportedTransactionCurrencies public List<string> SupportedTransactionCurrencies
{ {
get; get;
set; set;
} }
[DisplayName("Available Payment Methods")]
public SelectList AvailablePaymentMethods public SelectList AvailablePaymentMethods
{ {
get; get;