btcpayserver/BTCPayServer/Data/Payouts/LightningLike/PayoutLightningBlob.cs
Andrew Camilleri 2d23819944
Greenfield: Allow marking payout status and payment proofs (#4244)
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
2022-11-15 18:40:57 +09:00

13 lines
454 B
C#

namespace BTCPayServer.Data.Payouts.LightningLike
{
public class PayoutLightningBlob : IPayoutProof
{
public string PaymentHash { get; set; }
public static string PayoutLightningBlobProofType = "PayoutLightningBlob";
public string ProofType { get; } = PayoutLightningBlobProofType;
public string Link { get; } = null;
public string Id => PaymentHash;
public string Preimage { get; set; }
}
}