btcpayserver/BTCPayServer/Events/InvoiceDataChangedEvent.cs

27 lines
715 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BTCPayServer.Events
{
public class InvoiceDataChangedEvent
{
public string InvoiceId { get; set; }
2018-01-14 13:48:23 +01:00
public string Status { get; internal set; }
public string ExceptionStatus { get; internal set; }
public override string ToString()
{
2018-01-14 13:48:23 +01:00
if (string.IsNullOrEmpty(ExceptionStatus) || ExceptionStatus == "false")
{
return $"Invoice status is {Status}";
}
else
{
return $"Invoice status is {Status} (Exception status: {ExceptionStatus})";
}
}
}
}