2023-01-06 14:18:07 +01:00
|
|
|
using System.Collections.Generic;
|
2022-04-24 05:19:34 +02:00
|
|
|
using System.Threading.Tasks;
|
2023-02-21 15:06:34 +09:00
|
|
|
using BTCPayServer.Data;
|
2022-04-24 05:19:34 +02:00
|
|
|
using BTCPayServer.Payments;
|
2024-05-01 10:22:07 +09:00
|
|
|
using BTCPayServer.Payouts;
|
2022-04-24 05:19:34 +02:00
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
|
|
|
|
namespace BTCPayServer.PayoutProcessors;
|
|
|
|
|
|
|
|
public interface IPayoutProcessorFactory
|
|
|
|
{
|
2023-01-06 14:18:07 +01:00
|
|
|
public string Processor { get; }
|
|
|
|
public string FriendlyName { get; }
|
2024-05-01 10:22:07 +09:00
|
|
|
public string ConfigureLink(string storeId, PayoutMethodId payoutMethodId, HttpRequest request);
|
|
|
|
public IEnumerable<PayoutMethodId> GetSupportedPayoutMethods();
|
2022-04-24 05:19:34 +02:00
|
|
|
public Task<IHostedService> ConstructProcessor(PayoutProcessorData settings);
|
2023-05-15 09:49:01 +02:00
|
|
|
public Task<bool> CanRemove() => Task.FromResult(true);
|
2022-04-24 05:19:34 +02:00
|
|
|
}
|