Files
psp_panel/src/app/domains/consumer/modules/customers/models/io.d.ts
T

46 lines
979 B
TypeScript
Raw Normal View History

2026-04-08 18:15:27 +03:30
import { Maybe } from '@/core';
export interface ICustomerRawResponse {
id: string;
type: string;
is_favorite: boolean;
created_at: string;
individual: Maybe<CustomerIndividual>;
legal: Maybe<CustomerLegal>;
2026-04-08 18:15:27 +03:30
}
export interface ICustomerResponse extends ICustomerRawResponse {}
export interface ICustomerRequest {}
export interface ICustomerIndividualRequest {
first_name?: string;
last_name?: string;
national_code?: string;
postal_code?: string;
economic_code?: string;
is_favorite?: boolean;
2026-04-08 18:15:27 +03:30
}
export interface ICustomerLegalRequest {
company_name?: string;
registration_number?: string;
postal_code?: string;
economic_code?: string;
is_favorite?: boolean;
2026-04-08 18:15:27 +03:30
}
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;
}