Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Purpose

This WS is designed to mark in error previously created Device request in case it was entered in error.

...

  1. Save signed content to media storage

  2. Update device request status to entered-in-error (update also updated_at, updated_by)

  3. Get person's authentication_method of MPI

  4. If authentication_method == OTP or THIRD_PERSON (with OTP),:

    1. Check if sms notifications are enabled:

      1. if device_request has a program specified

        1. check that the specified program has setting request_notification_disabled set in false or the setting is absent, else

      2. if device_request has no program specified

        1. check config parameter DEVICE_REQUESTS_SMS_ENABLED is set in true

  5. Generate text SMS with template MARK_IN_ERROR_DEVICE_REQUEST_SMS_TEMPLATE and send it

  6. Save internal information to corresponding DB

  7. Send StatusChangeEvent to the Event Manager