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
|
|
|
{
|
2023-05-19 03:42:09 +02:00
|
|
|
public List<InvoiceModel> Invoices { get; set; } = new ();
|
2022-05-02 16:35:28 +09:00
|
|
|
public override int CurrentPageCount => Invoices.Count;
|
2021-12-11 04:32:23 +01:00
|
|
|
public string StoreId { get; set; }
|
2023-05-19 03:42:09 +02:00
|
|
|
|
|
|
|
public string SearchText { get; set; }
|
|
|
|
public SearchString Search { get; set; }
|
|
|
|
public List<InvoiceAppModel> Apps { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2017-09-13 15:47:34 +09:00
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
public class InvoiceModel
|
|
|
|
{
|
2018-05-26 09:32:20 -05:00
|
|
|
public DateTimeOffset Date { get; set; }
|
2017-09-13 15:47:34 +09:00
|
|
|
|
2018-02-28 19:03:23 +09:00
|
|
|
public string OrderId { get; set; }
|
2018-03-13 09:13:16 +09:00
|
|
|
public string RedirectUrl { get; set; }
|
2019-04-25 18:13:17 -05:00
|
|
|
public string InvoiceId { get; set; }
|
2017-09-13 15:47:34 +09:00
|
|
|
|
2020-10-08 08:42:45 +02:00
|
|
|
public InvoiceState Status { get; set; }
|
2021-11-26 16:13:41 +02:00
|
|
|
public bool CanMarkSettled { get; set; }
|
2018-12-10 15:34:48 +09:00
|
|
|
public bool CanMarkInvalid { get; set; }
|
2021-11-26 16:13:41 +02:00
|
|
|
public bool CanMarkStatus => CanMarkSettled || CanMarkInvalid;
|
2018-05-05 23:25:09 +09:00
|
|
|
public bool ShowCheckout { get; set; }
|
|
|
|
public string ExceptionStatus { get; set; }
|
2023-03-13 02:12:58 +01:00
|
|
|
public decimal Amount { get; set; }
|
|
|
|
public string Currency { get; set; }
|
2019-04-29 22:45:33 -05:00
|
|
|
|
|
|
|
public InvoiceDetailsModel Details { get; set; }
|
2022-07-01 06:26:00 +02:00
|
|
|
public bool HasRefund { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2023-05-19 03:42:09 +02:00
|
|
|
|
|
|
|
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
|
|
|
}
|