2021-10-29 08:25:43 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
|
|
{
|
|
|
|
public class LightningSettingsViewModel : LightningNodeViewModel
|
|
|
|
{
|
|
|
|
// Payment
|
|
|
|
[Display(Name = "Display Lightning payment amounts in Satoshis")]
|
|
|
|
public bool LightningAmountInSatoshi { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Add hop hints for private channels to the Lightning invoice")]
|
|
|
|
public bool LightningPrivateRouteHints { get; set; }
|
|
|
|
|
2022-11-24 00:53:32 +01:00
|
|
|
[Display(Name = "Unify on-chain and lightning payment URL/QR code")]
|
2021-10-29 08:25:43 +02:00
|
|
|
public bool OnChainWithLnInvoiceFallback { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Description template of the lightning invoice")]
|
|
|
|
public string LightningDescriptionTemplate { get; set; }
|
2021-12-31 16:59:02 +09:00
|
|
|
|
2021-10-29 08:25:43 +02:00
|
|
|
// LNURL
|
|
|
|
[Display(Name = "Enable LNURL")]
|
|
|
|
public bool LNURLEnabled { get; set; }
|
2021-12-31 16:59:02 +09:00
|
|
|
|
2021-10-29 08:25:43 +02:00
|
|
|
[Display(Name = "LNURL Classic Mode")]
|
|
|
|
public bool LNURLBech32Mode { get; set; } = true;
|
|
|
|
|
|
|
|
[Display(Name = "Allow payee to pass a comment")]
|
|
|
|
public bool LUD12Enabled { get; set; }
|
|
|
|
}
|
|
|
|
}
|