2017-09-13 23:50:36 +09:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-06-28 17:55:27 +09:00
|
|
|
using BTCPayServer.Validation;
|
2017-09-13 23:50:36 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
|
|
{
|
2021-10-29 08:25:43 +02:00
|
|
|
public class GeneralSettingsViewModel
|
2017-09-13 23:50:36 +09:00
|
|
|
{
|
2021-10-25 08:18:02 +02:00
|
|
|
|
2020-10-23 17:15:07 +02:00
|
|
|
[Display(Name = "Store ID")]
|
2017-12-03 23:35:52 +09:00
|
|
|
public string Id { get; set; }
|
2021-10-25 08:18:02 +02:00
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
[Display(Name = "Store Name")]
|
|
|
|
[Required]
|
|
|
|
[MaxLength(50)]
|
|
|
|
[MinLength(1)]
|
2021-10-25 08:18:02 +02:00
|
|
|
public string StoreName { get; set; }
|
2017-09-13 23:50:36 +09:00
|
|
|
|
2018-05-14 09:32:04 +02:00
|
|
|
[Uri]
|
2017-10-27 17:53:04 +09:00
|
|
|
[Display(Name = "Store Website")]
|
|
|
|
[MaxLength(500)]
|
2021-10-25 08:18:02 +02:00
|
|
|
public string StoreWebsite { get; set; }
|
2021-10-29 08:25:43 +02:00
|
|
|
|
|
|
|
public bool CanDelete { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2017-09-13 23:50:36 +09:00
|
|
|
}
|