diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 5d4874c89..9a92b6b37 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.1 - 1.0.2.28 + 1.0.2.29 NU1701,CA1816,CA1308,CA1810,CA2208 diff --git a/BTCPayServer/Controllers/AccessTokenController.cs b/BTCPayServer/Controllers/AccessTokenController.cs index ab6f15028..3ae9494c8 100644 --- a/BTCPayServer/Controllers/AccessTokenController.cs +++ b/BTCPayServer/Controllers/AccessTokenController.cs @@ -77,6 +77,7 @@ namespace BTCPayServer.Controllers { new PairingCodeResponse() { + Policies = new Newtonsoft.Json.Linq.JArray(), PairingCode = pairingEntity.Id, PairingExpiration = pairingEntity.Expiration, DateCreated = pairingEntity.CreatedTime, diff --git a/BTCPayServer/Models/TokenRequest.cs b/BTCPayServer/Models/TokenRequest.cs index 2479af21c..13ac67fd2 100644 --- a/BTCPayServer/Models/TokenRequest.cs +++ b/BTCPayServer/Models/TokenRequest.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Text; using NBitcoin; +using Newtonsoft.Json.Linq; namespace BTCPayServer.Models { @@ -44,6 +45,9 @@ namespace BTCPayServer.Models public class PairingCodeResponse { + [JsonProperty(PropertyName = "pairingCode")] + public JArray Policies { get; set; } + [JsonProperty(PropertyName = "pairingCode")] public string PairingCode {