customer.interface.ts 550 B

123456789101112131415161718
  1. import { Address } from '../address/address.interface';
  2. import { User } from '../user/user.interface';
  3. /**
  4. * A customer, i.e. a user who has trasacted with the shop in some way. A Customer may also be associated with
  5. * a registered User, but in the case of anonymous checkouts, there will be no associated User.
  6. */
  7. export interface Customer {
  8. id: number;
  9. firstName: string;
  10. lastName: string;
  11. phoneNumber: string;
  12. emailAddress: string;
  13. addresses: Address[];
  14. user?: User;
  15. createdAt: string;
  16. updatedAt: string;
  17. }