mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
28 lines
819 B
C#
28 lines
819 B
C#
using System;
|
|
using BTCPayServer.Lightning;
|
|
using BTCPayServer.Lightning.JsonConverters;
|
|
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(LightMoneyJsonConverter))]
|
|
public LightMoney Amount { get; set; }
|
|
public string Description { get; set; }
|
|
[JsonConverter(typeof(JsonConverters.TimeSpanJsonConverter))]
|
|
public TimeSpan Expiry { get; set; }
|
|
public bool PrivateRouteHints { get; set; }
|
|
|
|
}
|
|
}
|