Files
btcpayserver/BTCPayServer/Models/StoreViewModels/CreateStoreViewModel.cs
Nicolas Dorier 1e79730c6e Implement store templates (#6704)
* Implement store templates

* Use the template for the default rate rules

* Polish messages

* Do not show exchange selection if template has a script
2025-05-09 15:58:24 +09:00

28 lines
733 B
C#

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace BTCPayServer.Models.StoreViewModels
{
public class CreateStoreViewModel
{
public bool IsFirstStore { get; set; }
[Required]
[MaxLength(50)]
[MinLength(1)]
[Display(Name = "Name")]
public string Name { get; set; }
[Required]
[MaxLength(10)]
[Display(Name = "Default currency")]
public string DefaultCurrency { get; set; }
[Display(Name = "Preferred Price Source")]
public string PreferredExchange { get; set; }
public SelectList Exchanges { get; set; }
public bool CanEditPreferredExchange { get; set; }
}
}