mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 10:32:13 +01:00
* Lightning payment info and fee handling Builds on the additions in btcpayserver/BTCPayServer.Lightning#59 and btcpayserver/BTCPayServer.Lightning#61. Adds payment information (total amount and fees) to the API response and allows to set an optional maximum fee percentage when paying. * Add max fee flat
20 lines
553 B
C#
20 lines
553 B
C#
#nullable enable
|
|
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.JsonConverters;
|
|
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; }
|
|
}
|
|
}
|