2022-11-02 13:03:34 +01:00
|
|
|
using System;
|
2022-02-17 10:01:39 +01:00
|
|
|
using BTCPayServer.Client.JsonConverters;
|
|
|
|
using BTCPayServer.JsonConverters;
|
2022-05-18 07:57:36 +02:00
|
|
|
using BTCPayServer.Lightning;
|
2022-02-17 10:01:39 +01:00
|
|
|
using NBitcoin;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
2020-05-29 02:00:13 +02:00
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class PayLightningInvoiceRequest
|
|
|
|
{
|
2022-02-17 10:01:39 +01:00
|
|
|
[JsonProperty("BOLT11")]
|
2020-06-08 16:40:58 +02:00
|
|
|
public string BOLT11 { get; set; }
|
2023-01-06 14:18:07 +01:00
|
|
|
|
2022-02-17 10:01:39 +01:00
|
|
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
|
|
|
public float? MaxFeePercent { get; set; }
|
2023-01-06 14:18:07 +01:00
|
|
|
|
2022-02-17 10:01:39 +01:00
|
|
|
[JsonConverter(typeof(MoneyJsonConverter))]
|
2022-04-24 05:19:34 +02:00
|
|
|
public Money MaxFeeFlat { get; set; }
|
2023-01-06 14:18:07 +01:00
|
|
|
|
2022-05-18 07:57:36 +02:00
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
|
|
public LightMoney Amount { get; set; }
|
2022-11-02 13:03:34 +01:00
|
|
|
|
|
|
|
[JsonConverter(typeof(TimeSpanJsonConverter.Seconds))]
|
|
|
|
public TimeSpan? SendTimeout { get; set; }
|
2020-05-29 02:00:13 +02:00
|
|
|
}
|
|
|
|
}
|