mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
25 lines
707 B
C#
25 lines
707 B
C#
|
using BTCPayServer.Payments;
|
||
|
using BTCPayServer.Services.Invoices;
|
||
|
|
||
|
namespace BTCPayServer.Events
|
||
|
{
|
||
|
public class InvoicePaymentMethodActivated : IHasInvoiceId
|
||
|
{
|
||
|
public PaymentMethodId PaymentMethodId { get; }
|
||
|
public InvoiceEntity InvoiceEntity { get; }
|
||
|
|
||
|
public InvoicePaymentMethodActivated(PaymentMethodId paymentMethodId, InvoiceEntity invoiceEntity)
|
||
|
{
|
||
|
PaymentMethodId = paymentMethodId;
|
||
|
InvoiceEntity = invoiceEntity;
|
||
|
}
|
||
|
|
||
|
public string InvoiceId => InvoiceEntity.Id;
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return $"Invoice {InvoiceId} activated payment method {PaymentMethodId}";
|
||
|
}
|
||
|
}
|
||
|
}
|