mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
* PaymentReq "Created" is not really a unix timestamp in JSON. Also renamed to "CreatedTime" like with invoices * Renamed field so it is not a breaking change * Update swagger.template.payment-requests.json
24 lines
672 B
C#
24 lines
672 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class PaymentRequestData : PaymentRequestBaseData
|
|
{
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public PaymentRequestData.PaymentRequestStatus Status { get; set; }
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset Created { get; set; }
|
|
public string Id { get; set; }
|
|
public bool Archived { get; set; }
|
|
|
|
public enum PaymentRequestStatus
|
|
{
|
|
Pending = 0,
|
|
Completed = 1,
|
|
Expired = 2
|
|
}
|
|
}
|
|
}
|