Updated sanctions lists output
This commit is contained in:
1 parent
97cc810363
commit
65c04d1578
7 files changed
+22
-10
No files matched your search
@@ -80,15 +80,18 @@ 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}
|
||||
{'company_in_list': False, \n
|
||||
'persons_in_company_in_list': False, \n
|
||||
'lists_dates': [{'type': 'Sema', 'date': '2025-12-15T00:00:00'}]}
|
||||
:rtype: dict
|
||||
"""
|
||||
response = self.get(path=f'{self._focus_base_url}/companies/lists')
|
||||
sanctions_list = response['sanctionsList']
|
||||
lists_data = response['globalSanctionsList']['listDates']
|
||||
company_in_list = []
|
||||
persons_in_company_in_list = []
|
||||
|
||||
@@ -106,7 +109,8 @@ class FocusCompliance(Request):
|
||||
|
||||
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
|
||||
'persons_in_company_in_list': True if persons_in_company_in_list else False,
|
||||
'lists_data': lists_data
|
||||
}
|
||||
|
||||
return sanctions_lists_data
|
||||
|
||||
Reference in new issue
Block a user