import { IEnumTranslate } from '@/shared/models/enum_translate.type';

export interface IConsumerInfoRawResponse {
  id: string;
  partner: Partner;
  type: IEnumTranslate<'INDIVIDUAL' | 'LEGAL'>;
  status: IEnumTranslate<'ACTIVE' | 'INACTIVE'>;
  legal?: Legal;
  individual?: Individual;
  name: string;
}
export interface IConsumerInfoResponse extends IConsumerInfoRawResponse {}

interface Individual {
  first_name: string;
  last_name: string;
  mobile_number: string;
  national_code: string;
  fullname: string;
}

interface Legal {
  company_name: string;
  registration_number: string;
}

interface Partner {
  id: string;
  name: string;
  code: string;
}
