Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

approve_request.graphml

Table of Contents
Specification

Apiary

Service logic

  1. Only authenticated and authorized user can use this service
  2. Only NEW person request can be activated
  3. 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

...

  1. Change entity status in IL_DB.person_request to APPROVED
  2. Set updated_at - now() (Get current date-time)

  3. Set updated_by - user_id (Extract user from token)