mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
33 lines
1021 B
C#
33 lines
1021 B
C#
using System;
|
|
using BTCPayServer.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public enum PayoutState
|
|
{
|
|
AwaitingApproval,
|
|
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(NumericStringJsonConverter))]
|
|
public decimal Amount { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal? PaymentMethodAmount { get; set; }
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public PayoutState State { get; set; }
|
|
public int Revision { get; set; }
|
|
}
|
|
}
|