mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
88 lines
1.8 KiB
C#
88 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using NBitcoin;
|
|
using Newtonsoft.Json;
|
|
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 = "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;
|
|
}
|
|
}
|
|
}
|