mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 17:26:05 +01:00
* Rename Payouts Currency/OriginalCurrency * Rename Payout Processor PayoutMethodIds * Rename paymentMethods to payoutMethodIds * Rename payoutMethodIds to payoutMethods
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System;
|
|
using BTCPayServer.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
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 PayoutMethodId { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal OriginalAmount { get; set; }
|
|
public string OriginalCurrency { get; set; }
|
|
public string PayoutCurrency { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal? PayoutAmount { get; set; }
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public PayoutState State { get; set; }
|
|
public int Revision { get; set; }
|
|
public JObject PaymentProof { get; set; }
|
|
public JObject Metadata { get; set; }
|
|
}
|
|
}
|