btcpayserver/BTCPayServer/Models/InvoicingModels/InvoiceReceiptViewModel.cs
d11n 56d57bbd84
Improve data display on receipt (#5896)
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
2024-04-24 10:22:00 +02:00

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; }
}
}