mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
This allows external services to integrate with the payouts system to process payouts. This is also a step to allow plugins to provide payout processors. * It provides the payment proof through the greenfield payoust api. * It allows you to set the state of a payout outside of the usual flow: * When state is awaiting payment, allow setting to In progess or completed * When state is in progress, allow setting back to awaiting payment
35 lines
1.1 KiB
C#
35 lines
1.1 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 PaymentMethod { get; set; }
|
|
public string CryptoCode { 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; }
|
|
public JObject PaymentProof { get; set; }
|
|
}
|
|
}
|