Versions Compared

Key

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

...

TODO(lightbulb): deactivate old declaration.

Create link for attachments

All declaration with all authentication method has to have attached scan of declaration form. All attached documents are visible on Admin portal.

On `Create declaration request`

  1. create a link for declaration form with type `person.DECLARATION_FORM`

"urgent": {
"documents": [
{
"url": "https://storage.googleapis.com/declaration-requests-dev/9b927d34-77bf-4538-8bc8-923ca64376cd/declaration_request_person.TEMPORARY_CERTIFICATE.jpeg?GoogleAccessId=ael-dev@ehealth-162117.iam.gserviceaccount.com&Expires=1516013225&Signature=20hM7MFtCLjP8wePtggnbmOCfkpoMyYFQt1JKvj9GhEVWl6AQwH8WeBC%2FDdzPpTsbnHP0R5%2B0jLTEK%2BZacf9CEWW6McHjLHaTjWE9QSrYD4zCY9hqoOSLfCjDdIesxjFVMY8ta7yWNc36ZXz%2FSNk4YvKNPZfxY4CN96Z6JMRmvJQZMCI9p4fJL4D4j2WUbHzLip%2FCrpCtCUIyevjyeuiUuRe9sC9spoYKJ0X%2BCXvJ47AnOfbvIEOJcqmaum2dH1XHLw8wxHXawQVnmDrUEvagO68WWK9%2B%2FH7X78rYe0XDfzwzDaIeGUPX%2Bg43hkO8JiZyjfn8N3wbP8u8ACgjtnO%2Fw%3D%3D",
"type": "person.DECLARATION_FORM"
}
]}

On `Approve declaration request`

  1. check weather there is an attachment with type person.DECLARATION_FORM with created link with this declaration request  
    1. in case error return 409 -  "message": "Documents person.DECLARATION_FORM is not uploaded"

On `Get declaration by ID`

  1. return declaration with attached documents