mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
17 lines
416 B
C#
17 lines
416 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Services.Invoices;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
public static class InvoiceDataExtensions
|
|
{
|
|
public static InvoiceState GetInvoiceState(this InvoiceData invoiceData)
|
|
{
|
|
return new InvoiceState(invoiceData.Status, invoiceData.ExceptionStatus);
|
|
}
|
|
}
|
|
}
|