[GreenField] Add additional data to allow roundtrip of upper version fields

This commit is contained in:
nicolas.dorier 2020-05-31 11:51:36 +09:00
parent ebc99adc58
commit 5099f98d2a
No known key found for this signature in database
GPG key ID: 6618763EF09186FE
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,8 @@
using System;
using System.Collections.Generic;
using BTCPayServer.JsonConverters;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Client.Models
{
@ -17,5 +19,8 @@ namespace BTCPayServer.Client.Models
public string EmbeddedCSS { get; set; }
public string CustomCSSLink { get; set; }
public bool AllowCustomPaymentAmounts { get; set; }
[JsonExtensionData]
public IDictionary<string, JToken> AdditionalData { get; set; }
}
}

View file

@ -1,8 +1,10 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using BTCPayServer.Client.JsonConverters;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Client.Models
{
@ -54,6 +56,9 @@ namespace BTCPayServer.Client.Models
public bool PayJoinEnabled { get; set; }
public bool LightningPrivateRouteHints { get; set; }
[JsonExtensionData]
public IDictionary<string, JToken> AdditionalData { get; set; }
}
public enum NetworkFeeMode