2020-05-29 02:00:13 +02:00
|
|
|
using System;
|
|
|
|
using BTCPayServer.Lightning;
|
|
|
|
using BTCPayServer.Lightning.JsonConverters;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class CreateLightningInvoiceRequest
|
|
|
|
{
|
2020-06-08 23:40:58 +09:00
|
|
|
public CreateLightningInvoiceRequest()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
public CreateLightningInvoiceRequest(LightMoney amount, string description, TimeSpan expiry)
|
|
|
|
{
|
|
|
|
Amount = amount;
|
|
|
|
Description = description;
|
|
|
|
Expiry = expiry;
|
|
|
|
}
|
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
2020-05-29 02:00:13 +02:00
|
|
|
public LightMoney Amount { get; set; }
|
|
|
|
public string Description { get; set; }
|
2020-08-26 14:01:39 +09:00
|
|
|
[JsonConverter(typeof(JsonConverters.TimeSpanJsonConverter.Seconds))]
|
2020-05-29 02:00:13 +02:00
|
|
|
public TimeSpan Expiry { get; set; }
|
2020-05-29 09:03:07 +09:00
|
|
|
public bool PrivateRouteHints { get; set; }
|
2020-06-28 17:55:27 +09:00
|
|
|
|
2020-05-29 02:00:13 +02:00
|
|
|
}
|
|
|
|
}
|