btcpayserver/BTCPayServer/Payments/IPaymentModelExtension.cs
2024-04-04 16:31:04 +09:00

24 lines
688 B
C#

using BTCPayServer.Models.InvoicingModels;
using BTCPayServer.Services.Invoices;
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Payments
{
public record PaymentModelContext(
PaymentModel Model,
Data.StoreData Store,
Data.StoreBlob StoreBlob,
InvoiceEntity InvoiceEntity,
IUrlHelper UrlHelper,
PaymentPrompt Prompt,
IPaymentMethodHandler Handler);
public interface IPaymentModelExtension
{
public PaymentMethodId PaymentMethodId { get; }
string DisplayName { get; }
string Image { get; }
string Badge { get; }
void ModifyPaymentModel(PaymentModelContext context);
}
}