using FiscalFlow.Core.Entities; namespace FiscalFlow.Application.DTOs; public record InvoiceListItemDto( Guid Id, string Status, string Provider, string FileName, string? SupplierName, decimal? AmountTotal, DateTime? InvoiceDate, VoucherInfoDto? Voucher, DateTime CreatedAt); public record VoucherInfoDto( string? Series, string? Number, string? Url); public record InvoiceDetailDto( Guid Id, string Status, string Provider, FileInfoDto File, ExtractionDataDto Extraction, SupplierMatchDto? SupplierMatch, VoucherPreviewDto? VoucherPreview, DateTime CreatedAt); public record FileInfoDto( string Name, long? Size, string Url); public record ExtractionDataDto( string? SupplierName, string? SupplierOrgNumber, string? InvoiceNumber, DateTime? InvoiceDate, DateTime? DueDate, decimal? AmountTotal, decimal? AmountVat, int? VatRate, string? OcrNumber, string? Bankgiro, string? Plusgiro, string Currency, decimal? Confidence); public record SupplierMatchDto( string Action, string? SupplierNumber, string? SupplierName, decimal? Confidence); public record VoucherPreviewDto( string? Series, List Rows); public record VoucherRowDto( int Account, string? AccountName, decimal Debit, decimal Credit, string? Description);