# CaseErrorCons.java

    package cloud.wconnect.finance.cons.chargeback;

    /**
     * @author: yyt
     * 2024-08-26
     */
    public class CaseErrorCons {

        /**
         * 51002 之前导入的Case数据仍在处理中，不支持重复导入
         */
        public static final String CB_CASES_STILL_IMPORTING = "cb-cases-still-importing";

        /**
         * 51004 当日已经通知过一次了，不可以重复操作
         */
        public static final String CB_NOTIFY_REPEAT = "cb-notify-repeat";

        /**
         * 51005 通知人已经审批过了，无需通知
         */
        public static final String CB_ALREADY_APPROVED = "cb-already-approved";

        /**
         * 51007 当 overdue 阶段选择 action 以后，酒店表态阶段选择的 action 必须跟 overdue 阶段选择一致
         */
        public static final String CB_SAVE_ACTION_FAIL = "cb-save-action-fail";

        /**
         * 51008 case 提醒处理时，未配置阶段处理人
         */
        public static final String CB_NOTIFY_STAGE_HANDLER_FAIL = "cb-notify-stage-handler-fail";

        /**
         * case 提醒处理时，审批配置中当前阶段是关闭状态，请开启后再操作。
         */
        public static final String CB_STAGE_IS_CLOSED = "cb-stage-is-closed";

        /**
         *
         * 51009 case 未走过酒店表态阶段，不能完结
         */
        public static final String CB_CLOSE_FAIL = "cb-close-fail";

        /**
         * 请先删除 adj
         */
        public static final String DELETE_ADJ_FIRST = "cb.delete-adj-first";

        /**
         * 阶段必须是酒店运营或逾期，状态是初始化，才可以操作。
         */
        public static final String OPERATION_ACTION_FAIL_STAGE_STATUS = "cb.operation-action-fail-stage-status";

        /**
         * 结果不能是成功和失败，才可以操作。
         */
        public static final String OPERATION_ACTION_FAIL_RESULT = "cb.operation-action-fail-result";

        /**
         * 阶段必须是逾期或补丁，审批状态是待审批或审批拒绝，才可以操作
         */
        public static final String OPERATION_ACTION_FAIL_STAGE_APPROVE = "cb.operation-action-fail-stage-approve";

        /**
         * 阶段必须是酒店运营或补丁，审批状态是待审批或拒绝，才可以操作。
         */
        public static final String OPERATION_ADJ_FAIL_STAGE_APPROVE = "cb.operation-adj-fail-stage-approve";

        /**
         * 阶段是入口网站 (Portal)或补丁或最后，才可以操作。
         */
        public static final String OPERATION_RESULT_FAIL_STAGE = "cb.operation-result-fail-stage";

        /**
         * 阶段必须是补丁且未发布审批，才可以变更结果。
         */
        public static final String OPERATION_RESULT_FAIL_CHANGE_RESULT = "cb.operation-result-fail-change-result";

        /**
         * action 为 accept 时 case 填写 Bank Receiving/Write-off Date
         * 阶段必须是最后且动作选择的是接受，才可以操作。
         */
        public static final String OPERATION_BANK_RECEIVING_DATE_FAIL = "cb.operation-bank-receiving-date-fail";

        /**
         * 发布失败
         * 阶段必须是初始化，状态是草稿，还未发布审批或审批拒绝，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_INITIAL = "cb.operation-publish-fail-stage-initial";

        /**
         * 发布失败
         * 阶段必须是逾期，状态是接受或争议，还未发布审批或审批拒绝，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_OVERDUE = "cb.operation-publish-fail-stage-overdue";

        /**
         * 发布失败
         * 阶段必须是入口网站 (Portal)，状态是成功或失败，还未发布审批或审批拒绝，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_PORTAL = "cb.operation-publish-fail-stage-portal";

        /**
         * 发布失败
         * 请先填写裁决日期，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_PORTAL_RESULT_DATE = "cb.operation-publish-fail-stage-portal-result-date";

        /**
         * 发布失败
         * 阶段必须是最后，还未发布审批或审批拒绝，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_LAST = "cb.operation-publish-fail-stage-last";

        /**
         * 发布失败
         * 银行收款/核销日期必须填写，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_LAST_BANK_RECEIVING_DATE = "cb.operation-publish-fail-stage-last-bank-receiving-date";

        /**
         * 发布失败
         * 阶段必须是酒店运营，状态是接受或争议，还未发布审批或审批拒绝，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_HOTEL_OPERATION = "cb.operation-publish-fail-stage-hotel-operation";

        /**
         * 发布失败
         * 请先填写调账表单，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_HOTEL_OPERATION_ADJ = "cb.operation-publish-fail-stage-hotel-operation-adj";

        /**
         * 发布失败
         * 阶段必须是补丁，状态是填写调整表，还未发布审批或审批拒绝，才可以操作。
         */
        public static final String OPERATION_PUBLISH_FAIL_STAGE_PATCH = "cb.operation-publish-fail-stage-patch";

        /**
         * 审批相关操作（撤销、审批）
         * 必须是审批中，才可以操作。
         */
        public static final String OPERATION_FAIL_STATUS_MUST_APPROVING = "cb.operation-fail-status-must-approving";

        /**
         * 审批配置
         * 处理人配置不可以删除。
         */
        public static final String OPERATION_FAIL_CONFIG_HANDLER_CANNOT_DELETE = "cb.operation-fail-config-handler-cannot-delete";

        /**
         * 编辑 case
         * 草稿状态且还未发布审批或审批拒绝时，才可以操作。
         */
        public static final String OPERATION_FAIL_STATUS_MUST_DRAFT = "cb.operation-fail-status-must-draft";

        /**
         * 撤回忽略
         * 只有忽略状态才可以撤回忽略。
         */
        public static final String OPERATION_FAIL_STATUS_MUST_IGNORED = "cb.operation-fail-status-must-ignored";

        /**
         * 调账已绑定case
         */
        public static final String ADJUSTMENT_ALREADY_BIND_CASE = "cb.adjustment-already-bind-case";

    }