mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
93 lines
1.9 KiB
C#
93 lines
1.9 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using NBitcoin;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace BTCPayServer.Models
|
|
{
|
|
public class TokenRequest
|
|
{
|
|
[JsonProperty(PropertyName = "id")]
|
|
public string Id
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[JsonProperty(PropertyName = "guid")]
|
|
public string Guid
|
|
{
|
|
get; set;
|
|
}
|
|
[JsonProperty(PropertyName = "facade")]
|
|
public string Facade
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
|
|
public class PairingCodeResponse
|
|
{
|
|
[JsonProperty(PropertyName = "policies")]
|
|
public JArray Policies { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "pairingCode")]
|
|
public string PairingCode
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[JsonProperty(PropertyName = "pairingExpiration")]
|
|
[JsonConverter(typeof(DateTimeJsonConverter))]
|
|
public DateTimeOffset PairingExpiration
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[JsonProperty(PropertyName = "dateCreated")]
|
|
[JsonConverter(typeof(DateTimeJsonConverter))]
|
|
public DateTimeOffset DateCreated
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[JsonProperty(PropertyName = "facade")]
|
|
public string Facade
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonProperty(PropertyName = "token")]
|
|
public string Token
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonProperty(PropertyName = "label")]
|
|
public string Label
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|