Store: Combine General and Payment settings

This commit is contained in:
Dennis Reimann
2022-01-20 12:52:31 +01:00
parent 74037fd605
commit 723a38da68
21 changed files with 136 additions and 169 deletions

View File

@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using BTCPayServer.Client.Models;
using BTCPayServer.Validation;
namespace BTCPayServer.Models.StoreViewModels
@@ -21,5 +22,27 @@ namespace BTCPayServer.Models.StoreViewModels
public string StoreWebsite { get; set; }
public bool CanDelete { get; set; }
[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; }
[Display(Name = "Default currency")]
[MaxLength(10)]
public string DefaultCurrency { get; set; }
[Display(Name = "Minimum acceptable expiration time for BOLT11 for refunds")]
[Range(1, 365 * 10)]
public long BOLT11Expiration { get; set; }
}
}