Add dummy policies field

This commit is contained in:
nicolas.dorier 2018-05-26 18:26:02 +09:00
parent d75e5b8b12
commit 6a46d02fc6
3 changed files with 6 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework> <TargetFramework>netcoreapp2.1</TargetFramework>
<Version>1.0.2.28</Version> <Version>1.0.2.29</Version>
<NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn> <NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -77,6 +77,7 @@ namespace BTCPayServer.Controllers
{ {
new PairingCodeResponse() new PairingCodeResponse()
{ {
Policies = new Newtonsoft.Json.Linq.JArray(),
PairingCode = pairingEntity.Id, PairingCode = pairingEntity.Id,
PairingExpiration = pairingEntity.Expiration, PairingExpiration = pairingEntity.Expiration,
DateCreated = pairingEntity.CreatedTime, DateCreated = pairingEntity.CreatedTime,

View file

@ -3,6 +3,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using NBitcoin; using NBitcoin;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Models namespace BTCPayServer.Models
{ {
@ -44,6 +45,9 @@ namespace BTCPayServer.Models
public class PairingCodeResponse public class PairingCodeResponse
{ {
[JsonProperty(PropertyName = "pairingCode")]
public JArray Policies { get; set; }
[JsonProperty(PropertyName = "pairingCode")] [JsonProperty(PropertyName = "pairingCode")]
public string PairingCode public string PairingCode
{ {