Add Lightmoney json converter + do swagger defs for ln api

This commit is contained in:
Kukks
2020-05-29 10:04:28 +02:00
parent 1e3f62718d
commit 37f4b34b5e
7 changed files with 1060 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using BTCPayServer.Client.JsonConverters;
using BTCPayServer.Lightning;
using NBitcoin;
using NBitcoin.JsonConverters;
@@ -20,10 +21,10 @@ namespace BTCPayServer.Client.Models
public bool IsActive { get; set; }
[JsonProperty(ItemConverterType = typeof(MoneyJsonConverter))]
[JsonProperty(ItemConverterType = typeof(LightMoneyJsonConverter))]
public LightMoney Capacity { get; set; }
[JsonProperty(ItemConverterType = typeof(MoneyJsonConverter))]
[JsonProperty(ItemConverterType = typeof(LightMoneyJsonConverter))]
public LightMoney LocalBalance { get; set; }
public string ChannelPoint { get; set; }