mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Once more an improvement for the receipt, which also fixes #5882: - Unify data displayed on the web and print version - Split cart and additional data and ensure additional data is displayed - Do not display extra subtotal row if there are no tips or discounts - Make PosData partial more universal and backwards-compatible by using case insensitive key lookups
25 lines
1 KiB
C#
25 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BTCPayServer.Client.Models;
|
|
using BTCPayServer.Models.PaymentRequestViewModels;
|
|
using static BTCPayServer.Client.Models.InvoiceDataBase;
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
{
|
|
public class InvoiceReceiptViewModel
|
|
{
|
|
public InvoiceStatus Status { get; set; }
|
|
public StoreBrandingViewModel StoreBranding { get; set; }
|
|
public string InvoiceId { get; set; }
|
|
public string OrderId { get; set; }
|
|
public string Currency { get; set; }
|
|
public string StoreName { get; set; }
|
|
public decimal Amount { get; set; }
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
public Dictionary<string, object> AdditionalData { get; set; }
|
|
public Dictionary<string, object> CartData { get; set; }
|
|
public ReceiptOptions ReceiptOptions { get; set; }
|
|
public List<ViewPaymentRequestViewModel.PaymentRequestInvoicePayment> Payments { get; set; }
|
|
public string OrderUrl { get; set; }
|
|
}
|
|
}
|