btcpayserver/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs

42 lines
1.3 KiB
C#
Raw Normal View History

2017-09-13 15:47:34 +09:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
2019-05-01 15:33:46 -05:00
using BTCPayServer.Services.Invoices;
2017-09-13 15:47:34 +09:00
namespace BTCPayServer.Models.InvoicingModels
{
public class InvoicesModel
{
public int Skip { get; set; }
public int Count { get; set; }
public int Total { get; set; }
public string SearchTerm { get; set; }
public int? TimezoneOffset { get; set; }
2017-09-13 15:47:34 +09:00
public List<InvoiceModel> Invoices { get; set; } = new List<InvoiceModel>();
public string StatusMessage { 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
2019-05-01 15:33:46 -05:00
public InvoiceStatus Status { get; set; }
public string StatusString { get; set; }
2018-12-10 15:34:48 +09:00
public bool CanMarkComplete { get; set; }
public bool CanMarkInvalid { get; set; }
public bool CanMarkStatus => CanMarkComplete || CanMarkInvalid;
public bool ShowCheckout { get; set; }
public string ExceptionStatus { get; set; }
public string AmountCurrency { get; set; }
public string StatusMessage { get; set; }
public InvoiceDetailsModel Details { get; set; }
}
2017-09-13 15:47:34 +09:00
}