Files
btcpayserver/BTCPayServer/Components/InvoiceStatus/InvoiceStatus.cs
2025-10-07 17:06:26 +09:00

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);
}
}
}