Remove redundant payment methods from store settings (#3323)

* Add enabled toggle to wallet settings view

* Add enabled toggle to Lightning settings view

* Remove redundant payment methods from store settings

* Rename Payment Methods to Payments

* Adapt tests

* Fix invoice state toggle on details page

* Add spacing on Lightning sett8ings page
This commit is contained in:
d11n
2022-01-19 12:58:02 +01:00
committed by GitHub
parent 51c486c15a
commit c419ad68bb
29 changed files with 223 additions and 428 deletions

View File

@@ -0,0 +1,28 @@
using System.ComponentModel.DataAnnotations;
using BTCPayServer.Client.Models;
namespace BTCPayServer.Models.StoreViewModels
{
public class PaymentViewModel
{
public string Id { 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; }
}
}