mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
25 lines
784 B
C#
25 lines
784 B
C#
using BTCPayServer.Payments;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class InvoiceNewPaymentDetailsEvent
|
|
{
|
|
|
|
public InvoiceNewPaymentDetailsEvent(string invoiceId, IPaymentMethodDetails details, PaymentMethodId paymentMethodId)
|
|
{
|
|
InvoiceId = invoiceId;
|
|
Details = details;
|
|
PaymentMethodId = paymentMethodId;
|
|
}
|
|
|
|
public string Address { get; set; }
|
|
public string InvoiceId { get; set; }
|
|
public IPaymentMethodDetails Details { get; }
|
|
public PaymentMethodId PaymentMethodId { get; }
|
|
public override string ToString()
|
|
{
|
|
return $"{PaymentMethodId.ToPrettyString()}: New payment details {Details.GetPaymentDestination()} for invoice {InvoiceId}";
|
|
}
|
|
}
|
|
}
|