apidocs / com.srv4pos.server.api.infrastructure.exceptions.enums / UnprocessableEntityErrorType

UnprocessableEntityErrorType

enum class UnprocessableEntityErrorType

Enum describes error codes corresponding to com.srv4pos.server.api.exceptions.UnprocessableEntityJsonException.

Enum Values

TREASURER_IS_JOINED_TO_USER_ALREADY

Occurs on attempt to join treasurer which is joined already. Need to disjoin treasurer from user at first.

USER_HAS_TREASURER_WITH_SAME_SELLER_ID_ALREADY

Occurs on attempt to join treasurer, but user has treasurer with same seller id already.

TREASURER_IS_NOT_JOINED_TO_USER

Occurs on disjoin treasurer. Indicates that treasurer is not joined to any user and disjoin doesn't make any sense.

COMPANY_NAME_MUST_BE_SET_IF_NO_SELLER

Occurs if both passed seller wasn't found and company name wasn't set.

CU_LOCATION_MUST_BE_SET

Occurs on attempt to set control unit without com.srv4pos.server.api.activation.ActivationInfo.getControlUnitGeolocation info specified.

PRODUCTION_NUMBER_IS_OUT_OF_DATE

Indicates that installation is out of date with device since another instance of application was installed already. Probably there was reinstall of application and there is trying to use old installation.

CU_IS_MISSING_FOR_ACTIVATION

Indicates that control unit should be set if application is working with control unit (i.e. com.srv4pos.server.api.applicationDescription.ApplicationDescriptionInfo.isControlUnitRequired) set as true.

AUTO_ACTIVATE_IS_NOT_POSSIBLE_ON_NEW_CU

Occurs during com.srv4pos.server.api.activation.ActivationService.create Indicates the attempt to enable auto-activation upon not yet registered control unit.

PRODUCTION_NUMBER_AND_DEVICE_ID_MISMATCH

Occurs during com.srv4pos.server.api.activation.ActivationService.create Indicates that passed production number doesn't belong to device.

APPLICATION_PACKAGES_MISMATCH

Occurs during com.srv4pos.server.api.activation.ActivationService.create Indicates that passed application package in com.srv4pos.server.api.activation.InstallationInfo and another one identified by production number are not the same.

APP_DESC_HAS_REFERENCED_DATA

Occurs on attempt to remove application description which is referenced in another entities.

SOFTWARE_VENDOR_HAS_REFERENCED_DATA

Occurs on attempt to remove software vendor which is referenced in another entities.

SOFTWARE_VENDOR_IS_MISSING

Occurs on attempt to create/edit user with com.srv4pos.server.api.auth.UserRole.ROLE_SOFTWARE_VENDOR_ADMIN.

SERVER_SETTINGS_IS_MISSING

PROHIBITED_ORDER_STATUS_CHANGE

Occurs on attempt to change status of order which breaks conceived logic.

CU_HAS_REFERENCED_DATA

Occurs on attempt to delete the control unit which belongs to at least one activation.

DAY_IS_CLOSED

Occurs when current day is closed.

DAY_IS_NOT_CLOSED

Occurs when current day isn't closed.

RECEIPT_IS_PRINTED_ALREADY

Occurs when current receipt is printed already.

RECEIPT_IS_NOT_PRINTED

Occurs when current receipt is not printed yet.

REPORT_IS_PRINTED_ALREADY

Occurs when report is printed already.

REPORT_IS_NOT_PRINTED

Occurs when report is not printed yet.

REGISTRATION_IS_CLOSED_ALREADY

ACTIVATION_IS_CLOSED_ALREADY

ACTIVATION_IS_ACTIVE_ALREADY

ACTIVATION_IS_WORKING_ALREADY

TREASURER_IS_ALREADY_SET

SALE_VALIDATION_ERROR

ORDER_ALREADY_HAS_PRECEPT

CONTROL_UNIT_IS_CONNECTED_ALREADY

CONTROL_UNIT_IS_DISCONNECTED_ALREADY

SELLER_MUST_HAVE_CURRENCY

LATEST_SELLER_CAN_NOT_BE_DELETED

DEVICE_IS_ATTACHED_TO_NON_MULTI_TERMINAL

DEVICE_IS_ATTACHED

DEVICE_CANNOT_BE_DELETED

ENTITY_HAS_REFERENCED_DATA

CONFLICT_DATES

DEVICE_SHOULD_BE_DETACHED

DEVICE_IS_NOT_AVAILABLE

NEW_DEVICE_SHOULD_BE_SPECIFIED

Functions

message

abstract fun message(): String

Returns default human-readable message describing failure if any.