mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Upgrade Lightning lib * Lightning: Allow specifying explicit amount for invoices * Fix tests
23 lines
674 B
C#
23 lines
674 B
C#
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.JsonConverters;
|
|
using BTCPayServer.Lightning;
|
|
using NBitcoin;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class PayLightningInvoiceRequest
|
|
{
|
|
[JsonProperty("BOLT11")]
|
|
public string BOLT11 { get; set; }
|
|
|
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
|
public float? MaxFeePercent { get; set; }
|
|
|
|
[JsonConverter(typeof(MoneyJsonConverter))]
|
|
public Money MaxFeeFlat { get; set; }
|
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
public LightMoney Amount { get; set; }
|
|
}
|
|
}
|