mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-28 08:54:13 +01:00
* updates create invoice * updates invoice list * formats * updates row * updates * Improve invoice list markup and fix mass action form * Responsive invoice table * Improve spacing on invoice detail view * Improve archive message * Responsive status change partial * Add test case for mass archiving * Add mass unarchiving Closes #3270. Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com> Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BTCPayServer.Client.Models;
|
|
using BTCPayServer.Services.Invoices;
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
{
|
|
public class InvoicesModel : BasePagingViewModel
|
|
{
|
|
public List<InvoiceModel> Invoices { get; set; } = new List<InvoiceModel>();
|
|
public string[] StoreIds { get; set; }
|
|
public string StoreId { get; set; }
|
|
public bool IncludeArchived { 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 string AmountCurrency { get; set; }
|
|
|
|
public InvoiceDetailsModel Details { get; set; }
|
|
}
|
|
}
|