822bf96966
- Implemented CompanyNameComponent, DescriptionComponent, DeviceIdComponent, EconomicCodeComponent, EmailComponent, FirstNameComponent, FiscalCodeComponent, GuildIdComponent, LastNameComponent, LegalNameComponent, LicenseStartsAtComponent, MobileComponent, MobileNumberComponent, ModelComponent, NameComponent, NationalCodeComponent, NationalIdComponent, PartnerTokenComponent, PosTypeComponent, PostalCodeComponent, ProviderIdComponent, QuantityComponent, RegistrationCodeComponent, RegistrationNumberComponent, SerialNumberComponent, SetOffComponent, SkuComponent, TerminalComponent, UnitPriceComponent, UsernameComponent. - Added field control configurations for new fields in the form. - Updated routing and branding configurations for TIS tenant. - Created consumer type models for handling individual and legal consumer data.
46 lines
979 B
TypeScript
46 lines
979 B
TypeScript
import { Maybe } from '@/core';
|
|
|
|
export interface ICustomerRawResponse {
|
|
id: string;
|
|
type: string;
|
|
is_favorite: boolean;
|
|
created_at: string;
|
|
individual: Maybe<CustomerIndividual>;
|
|
legal: Maybe<CustomerLegal>;
|
|
}
|
|
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;
|
|
}
|
|
|
|
export interface ICustomerLegalRequest {
|
|
company_name?: string;
|
|
registration_number?: string;
|
|
postal_code?: string;
|
|
economic_code?: string;
|
|
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;
|
|
}
|