mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 15:41:29 +01:00
* Improve invoice filtering UI Closes #3664. * UI updates * Add app filter * Add indicator for active filters * updates text * Improve selected filter display * Apply suggestions from code review --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BTCPayServer.Services.Invoices;
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
{
|
|
public class InvoicesModel : BasePagingViewModel
|
|
{
|
|
public List<InvoiceModel> Invoices { get; set; } = new ();
|
|
public override int CurrentPageCount => Invoices.Count;
|
|
public string StoreId { get; set; }
|
|
|
|
public string SearchText { get; set; }
|
|
public SearchString Search { get; set; }
|
|
public List<InvoiceAppModel> Apps { get; set; }
|
|
}
|
|
|
|
public class InvoiceModel
|
|
{
|
|
public DateTimeOffset Date { get; set; }
|
|
|
|
public string OrderId { get; set; }
|
|
public string RedirectUrl { get; set; }
|
|
public string InvoiceId { get; set; }
|
|
|
|
public InvoiceState Status { get; set; }
|
|
public bool CanMarkSettled { get; set; }
|
|
public bool CanMarkInvalid { get; set; }
|
|
public bool CanMarkStatus => CanMarkSettled || CanMarkInvalid;
|
|
public bool ShowCheckout { get; set; }
|
|
public string ExceptionStatus { get; set; }
|
|
public decimal Amount { get; set; }
|
|
public string Currency { get; set; }
|
|
|
|
public InvoiceDetailsModel Details { get; set; }
|
|
public bool HasRefund { get; set; }
|
|
}
|
|
|
|
public class InvoiceAppModel
|
|
{
|
|
public string Id { get; set; }
|
|
public string AppName { get; set; }
|
|
public string AppType { get; set; }
|
|
public string AppOrderId { get; set; }
|
|
}
|
|
}
|