...
Fiend value
is person.id
in case error return 422
search person by person_.id in MPI
in case error return 422, "Such person doesn't exist"
Validate
Use GET persom/{id}/ authentication_method to find authentication method' id of person
if action =
delete
Field
type
must bethird_person
. (where person_auth_method.id = $aythentication_method.id)If person < 14, validate that count(auth_method, where person.auth_methods.person_id = $.person_id) >=1
If delete auth_method where field
is_primary
= True, then the method that was last added has a flagis_primary
= True
if action =
insert
if type = OTP or OFFLINE, person’s auth method that was before (off or offline) becomes inactive
if action =
update
if the transferred method is the main one (is_primary = TRUE), method that had this flag
is_primary = TRUE
now hasis_primary = FALSE
Generate verification code
...