29 lines
658 B
TypeScript
29 lines
658 B
TypeScript
|
|
export interface IIndividualCustomer {
|
||
|
|
first_name: string;
|
||
|
|
last_name: string;
|
||
|
|
national_id: string;
|
||
|
|
postal_code: string;
|
||
|
|
economic_code: string;
|
||
|
|
is_favorite?: boolean;
|
||
|
|
}
|
||
|
|
export interface ILegalCustomer {
|
||
|
|
company_name: string;
|
||
|
|
economic_code: string;
|
||
|
|
registration_number: string;
|
||
|
|
postal_code: string;
|
||
|
|
is_favorite?: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IUnknownCustomer {
|
||
|
|
national_id: string;
|
||
|
|
name: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface ICustomer {
|
||
|
|
customerIndividuals?: IIndividualCustomer;
|
||
|
|
customerLegals?: ILegalCustomer;
|
||
|
|
customerUnknown?: IUnknownCustomer;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type TCustomerInfo = IIndividualCustomer | ILegalCustomer | IUnknownCustomer;
|