fun create(activationCreationInfo: ActivationCreationInfo): ActivationSecurityInfo
Creates activation. Seller and/or installation will be created, if it's needed.
activationCreationInfo
- information about activation
com.srv4pos.server.api.exceptions.ReferenceNotFoundJsonException
- if installation, application package or control unit are not found
com.srv4pos.server.api.exceptions.NonUniqueJsonException
- if cash register name is not unique within a seller
com.srv4pos.server.api.exceptions.InconsistentDataJsonException
- see:
InconsistentDataErrorType.ACTIVATION_CODE_ALREADY_EXISTS,
InconsistentDataErrorType.VALID_FROM_AND_VALID_TO_INCONSISTENCY,
InconsistentDataErrorType.SV_MISMATCH_IN_APP_DESC_AND_CU
InconsistentDataErrorType.ACTIVATION_APPLICATION_PACKAGE_MUST_BE_NULL_OR_EQUAL
InconsistentDataErrorType.ACTIVATION_PRODUCTION_NUMBER_SHOULD_BE_NULL_OR_EQUAL
com.srv4pos.server.api.exceptions.UnprocessableEntityJsonException
- see:
UnprocessableEntityErrorType.CU_LOCATION_MUST_BE_SET
UnprocessableEntityErrorType.PRODUCTION_NUMBER_IS_OUT_OF_DATE
Return
ActivationSecurity - entity contains unique secure random identifier which represents activation ordered, production number and activation id.