export type CreateRealUserType = {
  phone: string;
  firstName: string;
  lastName: string;
  birthDate: string;
  nationalCode: string;
  gender: string;
  fatherName: string;
  nationality: string;
  address: string;
  postalCode: string;
  cityId: string | number;
};

export type CreateLegalUserType = {
  economicCode: string;
  registrationCode: string;
  registrationName: string;
  nationalIdentity: string;
  address: string;
  postalCode: string;
  cityId: string | number;
  phone: string;
};

export type ProvinesItemType = {
  id: string;
  name: string;
};

export type FinancialDataType = {
  user: {
    id: string;
    createdAt: string;
    updatedAt: string;
    email: string | null;
    phone: string;
    userName: string | null;
    firstName: string;
    lastName: string;
    birthDate: string;
    nationalCode: string;
    profilePic: string;
    emailVerified: boolean;
    userAddress: string;
    postalCode: string;
    realUser: CreateRealUserType | null;
    legalUser: CreateLegalUserType | null;
    address: {
      address: string;
      postalCode: string;
      city: {
        id: number;
        name: string;
        province: {
          id: number;
          name: string;
        };
      };
    } | null;
  };
};
