2025.11.5: Added new method
This commit is contained in:
@@ -107,6 +107,27 @@ class FocusCompliance(Request):
|
||||
except KeyError:
|
||||
return {'success': False, 'result': 'Key Error'}
|
||||
|
||||
def full_legal_entity_sanctions_profile(self, profile_id_list: list) -> dict:
|
||||
"""Просмотр полной информации определенного санкционного профиля ЮЛ
|
||||
|
||||
:param profile_id_list: Идентификатор санкционного профиля ЮЛ. Идентификатор возвращается в методе
|
||||
«Поиск сводной информации по санкционным профилям ЮЛ» -
|
||||
GET /banks/{bankId}/companies/profiles/search
|
||||
:type profile_id_list: list
|
||||
:return: Полная информация по профилю ЮЛ
|
||||
:rtype: dict
|
||||
"""
|
||||
if not profile_id_list:
|
||||
return {'success': False, 'message': 'Не указан список ID профилей'}
|
||||
else:
|
||||
try:
|
||||
profile = profile_id_list[0]
|
||||
response = self.get(path=f'{self._focus_base_url}/companies/profiles/{profile}')
|
||||
|
||||
return {'success': True, 'result': response}
|
||||
except KeyError:
|
||||
return {'success': False, 'result': 'Ошибка в ID профиля.'}
|
||||
|
||||
def legal_entity_profile_report(self, profile_id_list: list, path: str = None) -> dict:
|
||||
"""Получение печатного отчета по профилю ЮЛ
|
||||
|
||||
|
||||
Reference in New Issue
Block a user