using SolutionErp.Domain.Master;

namespace SolutionErp.Application.Master.Suppliers.Dtos;

public record SupplierDto(
    Guid Id,
    string Code,
    string Name,
    SupplierType Type,
    string? TaxCode,
    string? Phone,
    string? Email,
    string? Address,
    string? ContactPerson,
    string? Note,
    string? PackageCategory,
    string? OfficeAddress,
    string? MailingAddress,
    string? Fax,
    string? BankAccount,
    string? SecondaryBankAccount,
    string? LegalRepresentative,
    string? LegalRepTitle,
    string? AuthorizationNote,
    string? LinkGuq,
    string? LinkGpkd,
    string? LinkHsnl,
    string? ContactTitle,
    string? ContactPhone,
    string? MailRecipient,
    string? ReferralSource,
    string? OwnerPmh,
    SupplierStatus? Status,
    // Import provenance (Supplier Phase B — cột 29-30 file Excel nguồn), KHÁC audit CreatedAt/UpdatedAt.
    DateTime? SourceUpdatedAt,
    string? SourceUpdatedBy,
    DateTime CreatedAt,
    DateTime? UpdatedAt,
    // Publish state (Mig 64, S113) — append CUỐI positional record. false = nháp/ẩn (thiếu Mã NCC).
    bool IsPublic);
