Versions Compared

Key

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

...

...


n/n
Description
Inputs
expected result
actual  result
SCR_NHS1Sign Contract Request without scope
  • token
  • id
  • signed_content
403

...

403, "Your scope does not allow to access this resource. Missing allowances: contract_request:sign"
SCR_NHS2Sign Contract request by MSP
  • token msp
  • id
  • signed_content
403

403,Your scope does not allow to access this resource. Missing allowances: contract_request:sign

  • should be other error message - contract request is not signed by NHS
SCR_NHS3Sign Contract Reuqest in status<>'APPROVED'
  • token 
  • id request in status<>APPROVED
  • signed_content
422422, Incorrect status of contract_request to modify it
SCR_NHS4Sign Contract Reuqest with ID doesn't exist
  • token
  • id doesn't exist
404404
SCR_NHS5Sign contract request with drfo<>nhs_signer_id.party.tax_id
  • token
  • id 
  • invalid drfo
422

422, Does not match the signer drfo
$.nhs_signer_id

SCR_NHS6Sign contract request with renamed division
  • token
  • id 
  • renamed division
422200,
there is no compare to saved data
SCR_NHS7Sign Signed contract request
  • token
  • id
  • status='NHS_SIGNED'
422422,
The contract was already signed by NHS
SCR_NHS8Sign contract request with invalid start_date
  • token
  • id
  • issue city absent 
422422,
Start date must be greater than create date
SCR_NHS9Sign contract request with token by NHS and not signer
  • token
  • id
  • signed content
200

200

SCR_NHS10Sign contract request with contract_number and terminated contract by this contract_number
  • token
  • id
  • json with signed content
422200
SCR

...

_NHS11Sign contract request with contract_number (existing contract in status='VERIFIED) and contractor_employee_divisions
  • token
  • id
  • json with signed content

422,

contractor_employee_divisions can't be updated via contract_request

200