mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 23:49:57 +01:00
* Refactor and decouple Payout logic So that we can support lightning and more complex flows like allowing external payments to payouts. * fix dropdown align * switch to simpler buttons * rebase fixes add some comments * rebase fixes add some comments * simplify enum caveman logic * reduce code duplication and db round trips * Fix pull payment date format * fix issue with payouts to send page not working correctly * try fix some style issue * fix bip21parse
17 lines
825 B
C#
17 lines
825 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Data;
|
|
using BTCPayServer.Payments;
|
|
|
|
public interface IPayoutHandler
|
|
{
|
|
public bool CanHandle(PaymentMethodId paymentMethod);
|
|
//Allows payout handler to parse payout destinations on its own
|
|
public Task<IClaimDestination> ParseClaimDestination(PaymentMethodId paymentMethodId, string destination);
|
|
public IPayoutProof ParseProof(PayoutData payout);
|
|
//Allows you to subscribe the main pull payment hosted service to events and prepare the handler
|
|
void StartBackgroundCheck(Action<Type[]> subscribe);
|
|
//allows you to process events that the main pull payment hosted service is subscribed to
|
|
Task BackgroundCheck(object o);
|
|
Task<decimal> GetMinimumPayoutAmount(PaymentMethodId paymentMethod, IClaimDestination claimDestination);
|
|
}
|