mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-31 20:54:31 +01:00
29 lines
740 B
C#
29 lines
740 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Services.Invoices;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class InvoicePaymentEvent
|
|
{
|
|
|
|
public InvoicePaymentEvent(string invoiceId, string cryptoCode, string address)
|
|
{
|
|
InvoiceId = invoiceId;
|
|
Address = address;
|
|
CryptoCode = cryptoCode;
|
|
}
|
|
|
|
public string Address { get; set; }
|
|
public string CryptoCode { get; private set; }
|
|
public string InvoiceId { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{CryptoCode}: Invoice {InvoiceId} received a payment on {Address}";
|
|
}
|
|
}
|
|
}
|