2020-06-28 21:44:35 -05:00
|
|
|
using System;
|
2020-06-24 10:34:09 +09:00
|
|
|
using BTCPayServer.JsonConverters;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public enum PayoutState
|
|
|
|
{
|
2020-06-24 13:44:26 +09:00
|
|
|
AwaitingApproval,
|
2020-06-24 10:34:09 +09:00
|
|
|
AwaitingPayment,
|
|
|
|
InProgress,
|
|
|
|
Completed,
|
|
|
|
Cancelled
|
|
|
|
}
|
|
|
|
public class PayoutData
|
|
|
|
{
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset Date { get; set; }
|
|
|
|
public string Id { get; set; }
|
|
|
|
public string PullPaymentId { get; set; }
|
|
|
|
public string Destination { get; set; }
|
|
|
|
public string PaymentMethod { get; set; }
|
|
|
|
[JsonConverter(typeof(DecimalStringJsonConverter))]
|
|
|
|
public decimal Amount { get; set; }
|
|
|
|
[JsonConverter(typeof(DecimalStringJsonConverter))]
|
2020-06-24 13:44:26 +09:00
|
|
|
public decimal? PaymentMethodAmount { get; set; }
|
2020-06-24 10:34:09 +09:00
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
|
|
public PayoutState State { get; set; }
|
2020-06-24 13:44:26 +09:00
|
|
|
public int Revision { get; set; }
|
2020-06-24 10:34:09 +09:00
|
|
|
}
|
|
|
|
}
|