namespace DXApp.TemplateKitProject.Models
{
    public class ZugferdInvoice
    {
        public int Id { get; set; }
        public string InvoiceNumber { get; set; } = string.Empty;
        public DateTime InvoiceDate { get; set; }
        public string SellerName { get; set; } = string.Empty;
        public string SellerTaxId { get; set; } = string.Empty;
        public string BuyerName { get; set; } = string.Empty;
        public decimal TotalAmount { get; set; }
        public decimal TaxAmount { get; set; }
        public string CurrencyCode { get; set; } = string.Empty;
        public string Iban { get; set; } = string.Empty;
        public string RawXml { get; set; } = string.Empty;          // Original-XML zur Sicherheit
        public DateTime ImportedAt { get; set; }
        public string SourceType { get; set; } = string.Empty;      // "Upload" oder "Email"
        public string ResultFilePath { get; set; } = string.Empty;  // Pfad der Result-PDF
        public string GuidelineId { get; set; } = string.Empty;     // ZUGFeRD Guideline-ID aus XMP

        // Navigation Property
        public List<InvoiceAttachment> Attachments { get; set; } = [];
    }
}