mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
31 lines
959 B
C#
31 lines
959 B
C#
using System;
|
|
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.Lightning;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class LightningInvoiceData
|
|
{
|
|
public string Id { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public LightningInvoiceStatus Status { get; set; }
|
|
|
|
[JsonProperty("BOLT11")]
|
|
public string BOLT11 { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset? PaidAt { get; set; }
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset ExpiresAt { get; set; }
|
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
public LightMoney Amount { get; set; }
|
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
public LightMoney AmountReceived { get; set; }
|
|
}
|
|
}
|