mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* Update price display As proposed by @dstrukt in #4364. * Update format * Unify price display across the app * Add DisplayFormatter * Replace DisplayFormatCurrency method * Use symbol currency format for invoice * Unify currency formats on backend pages * Revert recent changes * Do not show exchange rate and fiat order amount for crypto denominations * Fix test and add test cases
37 lines
1.2 KiB
C#
37 lines
1.2 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 override int CurrentPageCount => Invoices.Count;
|
|
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 decimal Amount { get; set; }
|
|
public string Currency { get; set; }
|
|
|
|
public InvoiceDetailsModel Details { get; set; }
|
|
public bool HasRefund { get; set; }
|
|
}
|
|
}
|