2025.12.0: Added new method, updated docs
Check if company in sanctions lists, added new docs theme
This commit is contained in:
@@ -79,6 +79,38 @@ class FocusCompliance(Request):
|
||||
|
||||
return fal_data
|
||||
|
||||
def company_in_sanctions_lists(self) -> dict:
|
||||
"""Вхождение организации и ее руководителей в санкционные списки
|
||||
|
||||
:return: Признак присутствия или отсутствия в санкционных списках:\n
|
||||
.. code-block:: python\n
|
||||
{'company_in_list': False, 'persons_in_company_in_list': False}
|
||||
:rtype: dict
|
||||
"""
|
||||
response = self.get(path=f'{self._focus_base_url}/companies/lists')
|
||||
sanctions_list = response['sanctionsList']
|
||||
company_in_list = []
|
||||
persons_in_company_in_list = []
|
||||
|
||||
for company in sanctions_list['uls']:
|
||||
if company['listItemStatus'] == 'NotInList':
|
||||
continue
|
||||
else:
|
||||
company_in_list.append(company)
|
||||
|
||||
for person in sanctions_list['fls']:
|
||||
if person['listItemStatus'] == 'NotInList':
|
||||
continue
|
||||
else:
|
||||
persons_in_company_in_list.append(person)
|
||||
|
||||
sanctions_lists_data = {
|
||||
'company_in_list': True if company_in_list else False,
|
||||
'persons_in_company_in_list': True if persons_in_company_in_list else False
|
||||
}
|
||||
|
||||
return sanctions_lists_data
|
||||
|
||||
def search_global_company_profiles_id(self, company_name: str = None, search_accuracy: str = 'Max') -> list:
|
||||
"""Поиск сводной информации по санкционным профилям ЮЛ
|
||||
|
||||
|
||||
Reference in New Issue
Block a user