Uecko_ERP/modules/customers/src/common/features/customer-selection/entities/customer-selection-option.entity.ts
2026-07-03 09:37:12 +02:00

29 lines
704 B
TypeScript

/**
* Representa un cliente seleccionable desde cualquier módulo.
* Debe ser lo suficientemente rico para mostrar en UI,
* pero sin arrastrar todo el shape de Customer.
*
* No usar objetos de dominio, todo tipos primitivos y strings,
* para desacoplar de la capa de dominio.
*/
export interface CustomerSelectionOption {
id: string;
status: string;
isCompany: boolean;
name: string;
tradeName: string | null;
tin: string | null;
street: string | null;
street2: string | null;
city: string | null;
province: string | null;
postalCode: string | null;
country: string | null;
primaryEmail: string | null;
primaryPhone: string | null;
primaryMobile: string | null;
}