mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
23 lines
727 B
C#
23 lines
727 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.Services.Invoices;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace BTCPayServer.Components.InvoiceStatus
|
|
{
|
|
public class InvoiceStatus : ViewComponent
|
|
{
|
|
public IViewComponentResult Invoke(InvoiceState state, List<PaymentEntity> payments = null, string invoiceId = null, bool isArchived = false, bool hasRefund = false)
|
|
{
|
|
var vm = new InvoiceStatusViewModel
|
|
{
|
|
State = state,
|
|
Payments = payments ?? new(),
|
|
InvoiceId = invoiceId ?? string.Empty,
|
|
IsArchived = isArchived,
|
|
HasRefund = hasRefund
|
|
};
|
|
return View(vm);
|
|
}
|
|
}
|
|
}
|