2021-10-29 08:25:43 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using BTCPayServer.Client.Models;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
|
|
{
|
2022-01-19 12:58:02 +01:00
|
|
|
public class PaymentViewModel
|
2021-10-29 08:25:43 +02:00
|
|
|
{
|
|
|
|
public string Id { get; set; }
|
2021-12-31 16:59:02 +09:00
|
|
|
|
2021-10-29 08:25:43 +02:00
|
|
|
[Display(Name = "Allow anyone to create invoice")]
|
|
|
|
public bool AnyoneCanCreateInvoice { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Invoice expires if the full amount has not been paid after …")]
|
|
|
|
[Range(1, 60 * 24 * 24)]
|
|
|
|
public int InvoiceExpiration { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Add additional fee (network fee) to invoice …")]
|
|
|
|
public NetworkFeeMode NetworkFeeMode { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Consider the invoice paid even if the paid amount is ... % less than expected")]
|
|
|
|
[Range(0, 100)]
|
|
|
|
public double PaymentTolerance { get; set; }
|
2021-12-31 16:59:02 +09:00
|
|
|
|
2021-10-29 08:25:43 +02:00
|
|
|
[Display(Name = "Default currency")]
|
|
|
|
[MaxLength(10)]
|
|
|
|
public string DefaultCurrency { get; set; }
|
2022-01-24 20:17:09 +09:00
|
|
|
|
|
|
|
[Display(Name = "Minimum acceptable expiration time for BOLT11 for refunds")]
|
|
|
|
[Range(1, 365 * 10)]
|
|
|
|
public long BOLT11Expiration { get; set; }
|
2021-10-29 08:25:43 +02:00
|
|
|
}
|
|
|
|
}
|