mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 10:32:13 +01:00
* [Greenfield]: Add DescriptionHashOnly to include a description hash in the BOLT11 * Add CLN test case * Improve description in Swagger file Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
31 lines
885 B
C#
31 lines
885 B
C#
using System;
|
|
using BTCPayServer.Lightning;
|
|
using NBitcoin;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class CreateLightningInvoiceRequest
|
|
{
|
|
public CreateLightningInvoiceRequest()
|
|
{
|
|
|
|
}
|
|
|
|
public CreateLightningInvoiceRequest(LightMoney amount, string description, TimeSpan expiry)
|
|
{
|
|
Amount = amount;
|
|
Description = description;
|
|
Expiry = expiry;
|
|
}
|
|
|
|
[JsonConverter(typeof(JsonConverters.LightMoneyJsonConverter))]
|
|
public LightMoney Amount { get; set; }
|
|
public string Description { get; set; }
|
|
public bool DescriptionHashOnly { get; set; }
|
|
[JsonConverter(typeof(JsonConverters.TimeSpanJsonConverter.Seconds))]
|
|
public TimeSpan Expiry { get; set; }
|
|
public bool PrivateRouteHints { get; set; }
|
|
|
|
}
|
|
}
|