Source code for abstract_api.company_enrichment.company_enrichment_response

from functools import cached_property
from typing import Optional

from ..core.bases import JSONResponse


[docs] class CompanyEnrichmentResponse(JSONResponse): """Company enrichment service response.""" @cached_property def name(self) -> Optional[str]: """The name of the company.""" return self._get_response_field("name") @cached_property def domain(self) -> Optional[str]: """The domain the company website is hosted on.""" return self._get_response_field("domain") @cached_property def year_founded(self) -> Optional[int]: """The year the company was founded.""" return self._get_response_field("year_founded") @cached_property def industry(self) -> Optional[str]: """The industry the company is operating in.""" return self._get_response_field("industry") @cached_property def employees_count(self) -> Optional[int]: """The approximate number of employees of the company.""" return self._get_response_field("employees_count") @cached_property def locality(self) -> Optional[str]: """The city or region the company headquarter is based in.""" return self._get_response_field("locality") @cached_property def country(self) -> Optional[str]: """The country the company is based in.""" return self._get_response_field("country") @cached_property def linkedin_url(self) -> Optional[str]: """The LinkedIn URL of the company.""" return self._get_response_field("linkedin_url")