btcpayserver/BTCPayServer/PayoutProcessors/IPayoutProcessorFactory.cs

19 lines
667 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Payments;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Hosting;
namespace BTCPayServer.PayoutProcessors;
public interface IPayoutProcessorFactory
{
public string Processor { get; }
public string FriendlyName { get; }
public string ConfigureLink(string storeId, PaymentMethodId paymentMethodId, HttpRequest request);
public IEnumerable<PaymentMethodId> GetSupportedPaymentMethods();
public Task<IHostedService> ConstructProcessor(PayoutProcessorData settings);
public Task<bool> CanRemove() => Task.FromResult(true);
}