Versions Compared

Key

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


n/n
Description
Inputs
expected result
actual  result
SCR_MSP1Sign Contract Request without scope
  • token
  • id
  • signed_content
403403, Your scope does not allow to access this resource. Missing allowances: contract_request:sign
SCR_MSP2Sign Contract request by NHS
  • token msp
  • id
  • signed_content
403403, Your scope does not allow to access this resource. Missing allowances: contract_request:sign
SCR_MSP3Sign Contract Reuqest in status<>'NHS_SIGNED'
  • token 
  • id request in status<>NHS_SIGNED
  • signed_content
422422, Incorrect status for signing
SCR_MSP4Sign Contract Reuqest with ID doesn't exist
  • token
  • id doesn't exist
404404, not_found
SCR_MSP5Sign contract request with drfo<>contractor_owner_id.party.tax_id
  • token
  • id 
  • invalid drfo
422

422, Does not match the signer drfo

SCR_MSP6Sign contract request with renamed division
  • token
  • id 
  • renamed division
422422,
in case division was renamed after Get_contract_request_ details WS was called get 200
SCR_MSP7Sign Signed contract request
  • token
  • id
  • status='SIGNED'
422422, Incorrect status for signing
SCR_MSP8Sign contract request with start_date < current_date (for contract request that doesn`t related with existing contract)
  • token
  • id
  • invalid start_date 
422

422, Start date must be greater than create date

should be "Start date must be greater than current date"

SCR_MSP9Sign contract request with token by MSP and not signer
  • token
  • id
  • signed content
200

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

SCR_MSP10Sign contract request with contract_number and terminated contract by this contract_number
  • token
  • id
  • json with signed content
422500
SCR_MSP11Sign contract request with contract_number (existing contract in status='VERIFIED) and contractor_employee_divisions
  • token
  • id
  • json with signed content

422

500
SCR_MSP12Sign contract request with token of another legal entity
  • token
  • id
  • json with signed content
422403, User is not allowed to perform this action
SCR_MSP13Update existing contract by signing new contract request 
  • token
  • id
  • json with signed content
200, 
copy employee_divisions
500

SCR_MSPsign CR by MSP with correct tax_id and surname
  • token
  • id
  • json with signed content
  • surname
  • drfo
200
SCR_MSPsign CR by MSP with correct tax_id and surname but with CR previously signed not by NHS
  • token
  • id
  • json with signed content
  • surname
  • drfo
422
SCR_MSPsign CR by MSP with correct tax_id and different surname in DS
  • token
  • id
  • json with signed content
  • surname
  • drfo
422
SCR_MSPsign CR by MSP with incorrect tax_id and correct surname in DS
  • token
  • id
  • json with signed content
  • surname
  • drfo
422
SCR_MSPsing changed CR by MSP with correct tax_id and surname
  • token
  • id
  • json with signed content
  • surname
  • drfo
422