btcpayserver/BTCPayServer/Models/TokenRequest.cs

88 lines
1.8 KiB
C#
Raw Normal View History

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
{
public class TokenRequest
{
[JsonProperty(PropertyName = "id")]
public string Id
{
get; set;
}
2017-09-13 08:47:34 +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;
}
[JsonProperty(PropertyName = "pairingCode")]
public string PairingCode
{
get; set;
}
}
2017-09-13 08:47:34 +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; }
[JsonProperty(PropertyName = "pairingCode")]
public string PairingCode
{
get; set;
}
2017-09-13 08:47:34 +02:00
[JsonProperty(PropertyName = "pairingExpiration")]
[JsonConverter(typeof(DateTimeJsonConverter))]
public DateTimeOffset PairingExpiration
{
get; set;
}
2017-09-13 08:47:34 +02:00
[JsonProperty(PropertyName = "dateCreated")]
[JsonConverter(typeof(DateTimeJsonConverter))]
public DateTimeOffset DateCreated
{
get; set;
}
2017-09-13 08:47:34 +02:00
[JsonProperty(PropertyName = "facade")]
public string Facade
{
get;
set;
}
2017-09-13 08:47:34 +02:00
[JsonProperty(PropertyName = "token")]
public string Token
{
get;
set;
}
2017-09-13 08:47:34 +02:00
[JsonProperty(PropertyName = "label")]
public string Label
{
get;
set;
}
}
2017-09-13 08:47:34 +02:00
}