btcpayserver/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs

46 lines
1.4 KiB
C#
Raw Normal View History

2020-06-28 21:44:35 -05:00
using System;
2017-09-13 15:47:34 +09:00
using System.Collections.Generic;
2019-05-01 15:33:46 -05:00
using BTCPayServer.Services.Invoices;
2017-09-13 15:47:34 +09:00
namespace BTCPayServer.Models.InvoicingModels
{
2020-07-19 17:04:29 -05:00
public class InvoicesModel : BasePagingViewModel
2017-09-13 15:47:34 +09:00
{
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; }
}
2017-09-13 15:47:34 +09:00
public class InvoiceModel
{
public DateTimeOffset Date { get; set; }
2017-09-13 15:47:34 +09:00
public string OrderId { get; set; }
public string RedirectUrl { get; set; }
public string InvoiceId { get; set; }
2017-09-13 15:47:34 +09:00
public InvoiceState Status { get; set; }
public bool CanMarkSettled { get; set; }
2018-12-10 15:34:48 +09:00
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; }
}
2017-09-13 15:47:34 +09:00
}