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

Merge Legal Entities Tests

n/n
description
inputs
expected result
actual result
MLE1Merge legal entities without scopes
  • token
  • signed_content
200,  "code": "FORBIDDEN",
"message": "Your scope does not allow to access this resource"
200,  "code": "FORBIDDEN",
"message": "Your scope does not allow to access this resource"
MLE2Merge legal entities with invalid tax_id<>DRFO
  • token
  • signed_content
'Invalid DRFO'Invalid drfo
MLE3Merge legal entities 
with merged_to legal_entity status='CLOSED'
  • token
  • signed_content
'Merged to legal entity must be active''Merged to legal entity must be active'
MLE4Merge legal entities 
with merged_from legal_entity status='CLOSED'
  • token
  • signed_content
'Merged from legal entity must be active'"message": "Merged from legal entity must be active"
MLE5Merge legal entities 
with type<>'MSP'
  • token
  • signed_content
'Invalid legal entity type''Invalid legal entity type'
MLE6Merge legal entities 
with type1='MSP', type2<>MSP
  • token
  • signed_content
'Invalid legal entity type''Invalid legal entity type'
MLE7Merge legal entities 
with merged_to legal_entity incorrect name
  • token
  • signed_content
'Invalid legal entity name'"message": "Invalid merged to legal entity name"
MLE8Merge legal entities 
with merged_to legal_entity incorrect edrpou
  • token
  • signed_content
'Invalid legal entity edrpou'Invalid merged from legal entity edrpou
MLE9Merge legal entities 
with merged_from legal_entity incorrect name
  • token
  • signed_content
'Invalid legal entity name' "message": "Invalid merged from legal entity name"
MLE10Merge legal entities 
with merged_from legal_entity incorrect edrpou
  • token
  • signed_content
'Invalid legal entity edrpou'Invalid merged to legal entity edrpou
MLE11 merged_to legal entity is an active merged_from legal entity
  • token
  • signed_content
'Merged to legal entity is in the process of reorganisation itself''Merged to legal entity is in the process of reorganization itself'
MLE12merged from legal entity is in the process of reorganization
  • token
  • signed_content
'Merged from legal entity is already in the process of reorganisation''Merged from legal entity is already in the process of reorganization'
MLE13merge 2 valid legal entities 
  • token
  • signed_content

200, job is created

  1. dismiss employee by not matching party_id
  2. dismiss employee by not matching speciality 
  3. terminate declarations for dismissed employees
  4. client_type for merged_from legal entity is updated to MSP_LIMITED_ID
  5. content is saved to object storage
  6. record is inserted in table 


200, job is created
  1. done
  2. done
  3. done
  4. done
  5. done
  6. done
MLE14merge 2 already merged legal entities 
  • token
  • signed_content
Merged from legal entity is in the process of reorganisation itselfMerged from legal entity is in the process of reorganisation itself
MLE15merge same legal entity
  • token
  • signed_content

Legator and successor of legal entities must be different
MLE16merge 2 valid legal entities with declarations count=200 000 
  • token
  • signed_content

done
MLE17Sign without EDRPOU and match edrpou
  • token
  • signed_content
DRFO does not match signer drfoDRFO does not match signer drfo
MLE18Sign with match EDRPOU and not match DRFO
  • token
  • signed_content
Invalid drfoUNPROCESSABLE_ENTITY
Invalid drfo
MLE19Sign with not match EDRPOU and match DRFO
  • token
  • signed_content
EDRPOU does not match legal_entity edrpouEDRPOU does not match legal_entity edrpou
MLE20Sign without DRFO and match edrpou
  • token
  • signed_content
Invalid drfoInvalid drfo
MLE21Sign with match EDRPOU and match DRFO
  • token
  • signed_content
200200

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