Table of Contents |
---|
Service logic
- Only authenticated and authorized user can use this service
- Only NEW person request can be activated
- The request can be activated only by the employee who works in the same legal entity in which the request was made.
...
If person have block confidant_person
- check uploaded the confidant person's document and the document which confirms the guardianship.
If person's authentication_method == OFFLINE - check uploaded documents
...
- Change entity status in IL_DB.person_request to APPROVED
Set updated_at - now() (Get current date-time)
Set updated_by - user_id (Extract user from token)