Refactor token handling, support server-initiated pairing

This commit is contained in:
nicolas.dorier
2017-10-11 12:20:44 +09:00
parent 7d8c3c1c81
commit 6d3ea65e03
24 changed files with 985 additions and 228 deletions

View File

@@ -6,7 +6,7 @@ using NBitcoin;
namespace BTCPayServer.Models
{
public class PairingCodeRequest
public class TokenRequest
{
[JsonProperty(PropertyName = "id")]
public string Id
@@ -34,6 +34,12 @@ namespace BTCPayServer.Models
{
get; set;
}
[JsonProperty(PropertyName = "pairingCode")]
public string PairingCode
{
get; set;
}
}
public class PairingCodeResponse