2017-09-13 08:47:34 +02:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using NBitcoin;
|
2018-05-26 11:26:02 +02:00
|
|
|
|
using Newtonsoft.Json.Linq;
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models
|
|
|
|
|
{
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public class TokenRequest
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty(PropertyName = "id")]
|
|
|
|
|
public string Id
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "guid")]
|
|
|
|
|
public string Guid
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
[JsonProperty(PropertyName = "count")]
|
|
|
|
|
public int Count
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
[JsonProperty(PropertyName = "label")]
|
|
|
|
|
public string Label
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-11 05:20:44 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "pairingCode")]
|
|
|
|
|
public string PairingCode
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public class PairingCodeResponse
|
|
|
|
|
{
|
2018-05-26 11:29:57 +02:00
|
|
|
|
[JsonProperty(PropertyName = "policies")]
|
2018-05-26 11:26:02 +02:00
|
|
|
|
public JArray Policies { get; set; }
|
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "pairingCode")]
|
|
|
|
|
public string PairingCode
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "pairingExpiration")]
|
|
|
|
|
[JsonConverter(typeof(DateTimeJsonConverter))]
|
|
|
|
|
public DateTimeOffset PairingExpiration
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "dateCreated")]
|
|
|
|
|
[JsonConverter(typeof(DateTimeJsonConverter))]
|
|
|
|
|
public DateTimeOffset DateCreated
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "facade")]
|
|
|
|
|
public string Facade
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "token")]
|
|
|
|
|
public string Token
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[JsonProperty(PropertyName = "label")]
|
|
|
|
|
public string Label
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
}
|