mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Add dummy policies field
This commit is contained in:
parent
d75e5b8b12
commit
6a46d02fc6
3 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue