btcpayserver/BTCPayServer/Models/TokenRequest.cs

85 lines
1.8 KiB
C#
Raw Normal View History

2020-06-28 21:44:35 -05:00
using System;
2020-06-28 17:55:27 +09:00
using Newtonsoft.Json;
2018-05-26 18:26:02 +09:00
using Newtonsoft.Json.Linq;
2017-09-13 15:47:34 +09:00
namespace BTCPayServer.Models
{
public class TokenRequest
{
[JsonProperty(PropertyName = "id")]
public string Id
{
get; set;
}
2017-09-13 15:47:34 +09: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;
}
[JsonProperty(PropertyName = "pairingCode")]
public string PairingCode
{
get; set;
}
}
2017-09-13 15:47:34 +09:00
public class PairingCodeResponse
{
2018-05-26 18:29:57 +09:00
[JsonProperty(PropertyName = "policies")]
2018-05-26 18:26:02 +09:00
public JArray Policies { get; set; }
[JsonProperty(PropertyName = "pairingCode")]
public string PairingCode
{
get; set;
}
2017-09-13 15:47:34 +09:00
[JsonProperty(PropertyName = "pairingExpiration")]
[JsonConverter(typeof(DateTimeJsonConverter))]
public DateTimeOffset PairingExpiration
{
get; set;
}
2017-09-13 15:47:34 +09:00
[JsonProperty(PropertyName = "dateCreated")]
[JsonConverter(typeof(DateTimeJsonConverter))]
public DateTimeOffset DateCreated
{
get; set;
}
2017-09-13 15:47:34 +09:00
[JsonProperty(PropertyName = "facade")]
public string Facade
{
get;
set;
}
2017-09-13 15:47:34 +09:00
[JsonProperty(PropertyName = "token")]
public string Token
{
get;
set;
}
2017-09-13 15:47:34 +09:00
[JsonProperty(PropertyName = "label")]
public string Label
{
get;
set;
}
}
2017-09-13 15:47:34 +09:00
}