btcpayserver/BTCPayServer/Events/InvoiceDataChangedEvent.cs
2021-12-31 16:59:02 +09:00

21 lines
503 B
C#

using BTCPayServer.Services.Invoices;
namespace BTCPayServer.Events
{
public class InvoiceDataChangedEvent : IHasInvoiceId
{
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}";
}
}
}