ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Current »


Validate confidant person

If person age < prm.global_parameters.no_self_auth_age check existence of confidant_person

  • in case error return 422 - msg "Confidant person is mandatory for children"

Valide Document types

  • check person_documents.type is in config parameter:

    • if person age < prm.global_parameters.no_self_auth_age check existence DECLARATION_NO_SELF_AUTH_AGE_DOCUMENT_TYPES

      • in case error - return 422 ("For person <%{years}years declaration request can be create after added birth certificate”)

    • if person age > prm.global_parameters.no_self_auth_age check existence DECLARATION_SELF_AUTH_AGE_DOCUMENT_TYPES

      • in case error - return 422 ("Declaration request can’t be create for person with such document type, need one of %{document type from DECLARATION_SELF_AUTH_AGE_DOCUMENT_TYPES} ”)

Processing

  • No labels