mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
21 lines
487 B
C#
21 lines
487 B
C#
using BTCPayServer.Services.Invoices;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class InvoiceDataChangedEvent
|
|
{
|
|
public InvoiceDataChangedEvent(InvoiceEntity invoice)
|
|
{
|
|
InvoiceId = invoice.Id;
|
|
State = invoice.GetInvoiceState();
|
|
}
|
|
public string InvoiceId { get; }
|
|
public InvoiceState State { get; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Invoice status is {State}";
|
|
}
|
|
}
|
|
}
|