mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 02:22:22 +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
15 lines
404 B
C#
15 lines
404 B
C#
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.Lightning;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class LightningPaymentData
|
|
{
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
public LightMoney TotalAmount { get; set; }
|
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
public LightMoney FeeAmount { get; set; }
|
|
}
|
|
}
|