mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
21 lines
601 B
C#
21 lines
601 B
C#
namespace BTCPayServer.Events
|
|
{
|
|
public class InvoiceNewAddressEvent
|
|
{
|
|
public InvoiceNewAddressEvent(string invoiceId, string address, BTCPayNetworkBase network)
|
|
{
|
|
Address = address;
|
|
InvoiceId = invoiceId;
|
|
Network = network;
|
|
}
|
|
|
|
public string Address { get; set; }
|
|
public string InvoiceId { get; set; }
|
|
public BTCPayNetworkBase Network { get; set; }
|
|
public override string ToString()
|
|
{
|
|
return $"{Network.CryptoCode}: New address {Address} for invoice {InvoiceId}";
|
|
}
|
|
}
|
|
}
|