using System.ComponentModel; namespace Nop.Services.Common.Pdf; /// /// Represents the data source for the invoice /// public partial class InvoiceSource : DocumentSource { #region Ctor public InvoiceSource() { Products = new(); Totals = new(); FooterTextColumn1 = new(); FooterTextColumn2 = new(); } #endregion #region Properties /// /// Gets or sets the logo binary /// public byte[] LogoData { get; set; } /// /// Gets or sets the date and time of order creation /// [DisplayName("Pdf.OrderDate")] public DateTime OrderDateUser { get; set; } /// /// Gets or sets the order number /// [DisplayName("Pdf.Order")] public string OrderNumberText { get; set; } /// /// Gets or sets store location /// public string StoreUrl { get; set; } /// /// Gets or sets a collection of order items /// public List Products { get; set; } /// /// Gets or sets the billing address /// [DisplayName("Pdf.BillingInformation")] public AddressItem BillingAddress { get; set; } /// /// Gets or sets the shipping address /// [DisplayName("Pdf.ShippingInformation")] public AddressItem ShippingAddress { get; set; } /// /// Gets or sets a value indicating whether to display product SKU in the invoice document /// public bool ShowSkuInProductList { get; set; } /// /// Gets or sets a value indicating whether to display vendor name in the invoice document /// public bool ShowVendorInProductList { get; set; } /// /// Gets or sets the checkout attribute description /// public string CheckoutAttributes { get; set; } /// /// Gets or sets order totals /// public InvoiceTotals Totals { get; set; } /// /// Gets or sets order notes /// [DisplayName("Pdf.OrderNotes")] public List<(string, string)> OrderNotes { get; set; } /// /// Gets or sets the text that will appear at the bottom of invoice (column 1) /// public List FooterTextColumn1 { get; set; } /// /// Gets or sets the text that will appear at the bottom of invoice (column 2) /// public List FooterTextColumn2 { get; set; } #endregion }