mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 18:51:18 +01:00
1e3f62718d
* GreenField: Cross-implemenation Lightning Node API * switch to hard unrsstricted check * fix * set LightningPrivateRouteHints in swagger + stores api * add priv route hint * rename models and add swagger defs to models
29 lines
817 B
C#
29 lines
817 B
C#
using System;
|
|
using BTCPayServer.Lightning;
|
|
using BTCPayServer.Lightning.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class LightningInvoiceData
|
|
{
|
|
public string Id { get; set; }
|
|
|
|
[JsonProperty(ItemConverterType = typeof(StringEnumConverter))]
|
|
public LightningInvoiceStatus Status { get; set; }
|
|
|
|
public string BOLT11 { get; set; }
|
|
|
|
public DateTimeOffset? PaidAt { get; set; }
|
|
|
|
public DateTimeOffset ExpiresAt { get; set; }
|
|
|
|
[JsonProperty(ItemConverterType = typeof(LightMoneyJsonConverter))]
|
|
public LightMoney Amount { get; set; }
|
|
|
|
[JsonProperty(ItemConverterType = typeof(LightMoneyJsonConverter))]
|
|
public LightMoney AmountReceived { get; set; }
|
|
}
|
|
}
|