import { BaseMetadata, CreatedUser } from '@/types/api/api-general';

export type BaseCustomer = {
  id: number;
  name: string;
  pic_id: number;
  pic: CreatedUser;
  type: string;
  address: string;
  phone: string;
  email: string;
  account_number: string;
  bank_name: string;
};

export type Customer = BaseMetadata & BaseCustomer;

export type CreateCustomerPayload = {
  name: string;
  pic_id: number;
  type: string;
  address: string;
  phone: string;
  email: string;
  account_number: string;
  bank_name: string;
};

export type UpdateCustomerPayload = CreateCustomerPayload;
