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

Reject declaration (tests)

n/n
description
inputs
expected result GraphQlactual result GraphQl
TD1Reject declaration without scopes
  • token
missing allowance declaration:rejectmissing allowance declaration:reject
TD2Reject declaration  by doctor 
  • doctor token
403401, Invalid access token
TD3Reject declaration  by ID doesn't exist
  • token
  • invalid id 
not_found"code": "BAD_REQUEST",
"exception": "%{\"error\" => %{\"type\" => \"not_found\"}, \"meta\" => %{\"code\" => 404, \"request_id\" => \"86aceff7-7039-41d5-b6b4-161fdb77f360#15195\", \"type\" => \"object\", \"url\" => \"http://graphql-svc.il/declarations/c33a08eb-5162-4d56-9d57-7b49a4c93a42\"}}"
TD4Reject active declaration
  • token
CONFLICT invalid status

Validation error, Incorrect status transition.

TD5Reject inactive declaration 
  • token
  • status - inactive
CONFLICT invalid statusValidation error, Incorrect status transition
TD6Reject pending verification declaration 
  • token
  • valid person id
200, status = `REJECTED`, reason = `manual_person`

200, status= `REJECTED`

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