...
- validate person_id is UUID
- in case error return 422
- search person by person_id in MPI
- in case error return 422, "such person doesn't exist"
- validate person be deduplication model (if score > ONLINE PERSON_ONLINE_PERSONDEDUPLICATION_UPDATEMATCH_SCORE, then add mpi_id to declaration request)
- else return error 409, "such person can't be updated. New person should be created instead"
...
- search persons in mpi, which have the same tax_id or documents.number or authentication number.
. Then we create pairs of new person with people from cluster and send to the model.- in case deduplication model gave score < ONLINE PERSON_ONLINE_PERSONDEDUPLICATION_UPDATEMATCH_SCORE, create new person
- else return error 409, "such person with $.
person_id
is in mpi. Update this person.
...