37 lines
816 B
TypeScript
37 lines
816 B
TypeScript
|
|
import { Maybe } from '@/core';
|
||
|
|
|
||
|
|
export interface ICustomerRawResponse {
|
||
|
|
id: string;
|
||
|
|
type: string;
|
||
|
|
is_favorite: boolean;
|
||
|
|
created_at: string;
|
||
|
|
customer_individual: Maybe<CustomerIndividual>;
|
||
|
|
customer_legal: Maybe<CustomerLegal>;
|
||
|
|
}
|
||
|
|
export interface ICustomerResponse extends ICustomerRawResponse {}
|
||
|
|
|
||
|
|
export interface ICustomerRequest {}
|
||
|
|
|
||
|
|
export interface ICustomerIndividualRequest extends CustomerIndividual {
|
||
|
|
is_favorite: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface ICustomerLegalRequest extends CustomerLegal {
|
||
|
|
is_favorite: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
interface CustomerLegal {
|
||
|
|
company_name: string;
|
||
|
|
registration_number: string;
|
||
|
|
postal_code: string;
|
||
|
|
economic_code: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
interface CustomerIndividual {
|
||
|
|
first_name: string;
|
||
|
|
last_name: string;
|
||
|
|
national_id: string;
|
||
|
|
postal_code: string;
|
||
|
|
economic_code: string;
|
||
|
|
}
|