mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
60 lines
1.1 KiB
C#
60 lines
1.1 KiB
C#
using BTCPayServer.Services.Invoices;
|
|
using BTCPayServer.Validations;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
{
|
|
public class StoreViewModel
|
|
{
|
|
[Display(Name = "Store Name")]
|
|
[Required]
|
|
[MaxLength(50)]
|
|
[MinLength(1)]
|
|
public string StoreName
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Url]
|
|
[Display(Name = "Store Website")]
|
|
[MaxLength(500)]
|
|
public string StoreWebsite
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DerivationStrategyValidator]
|
|
public string DerivationScheme
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Display(Name = "Consider the invoice confirmed when the payment transaction...")]
|
|
public SpeedPolicy SpeedPolicy
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Display(Name = "Add network fee to invoice (vary with mining fees)")]
|
|
public bool NetworkFee
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public List<(string KeyPath, string Address)> AddressSamples
|
|
{
|
|
get; set;
|
|
} = new List<(string KeyPath, string Address)>();
|
|
|
|
public string StatusMessage
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
}
|