2026-03-29 18:07:10 +03:30
|
|
|
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 {
|
2026-03-30 13:17:34 +03:30
|
|
|
customer_individual?: IIndividualCustomer;
|
|
|
|
|
customer_legal?: ILegalCustomer;
|
|
|
|
|
customer_unknown?: IUnknownCustomer;
|
2026-03-29 18:07:10 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TCustomerInfo = IIndividualCustomer | ILegalCustomer | IUnknownCustomer;
|