import { AptlyAddress } from './address.js'; import { AptlyBaseSchema } from './extends.js'; import { AptlyUserSchema } from './user.js'; export type AptlyCustomer = AptlyCustomerSchema; export interface AptlyCustomerSchema extends Pick, '_id' | 'createdAt' | 'updatedAt'> { organization: ID; user?: ID | AptlyUserSchema | null; email: string; fullName: string; firstName: string; lastName: string; phone: string; shipping?: AptlyAddress | null; billing?: AptlyAddress | null; companyName: string; companyVat: string; } export type AptlyCustomerData = AptlyCustomerDataSchema; export interface AptlyCustomerDataSchema { customer?: ID | null; user?: ID | AptlyUserSchema | null; email: string; firstName: string; lastName: string; fullName?: string; phone?: string; companyName?: string; companyVat?: string; }