mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
23049439c0
Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
33 lines
962 B
C#
33 lines
962 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; }
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.UInt256JsonConverter))]
|
|
public uint256 DescriptionHash { get; set; }
|
|
[JsonConverter(typeof(JsonConverters.TimeSpanJsonConverter.Seconds))]
|
|
public TimeSpan Expiry { get; set; }
|
|
public bool PrivateRouteHints { get; set; }
|
|
|
|
}
|
|
}
|