package com.iformall.enums;


/**
 * @author gongbiao
 */

public enum EnumBillAction {
    SELF_SERVICE_PAY(1, "自助缴费"),
    UPDATE_BILL(2, "变更账单"),
    OFFLINE_PAY(3, "线下缴费"),
    DEPOSIT_PAY(4, "押金缴费"),
    DEPOSIT_RETURN(5, "押金退款"),
    DEPOSIT_MODIFY(6, "押金变更"),
    IMPORT_PAY(6, "导入缴费"),
    UPDATE_LATE_PAY_MONEY(7, "滞纳金变更"),
    UPDATE_SETTLE_MONEY(8, "结算单清算"),
    UPDATE_SERVICE_MONEY(9, "手续费变更");

    public static EnumBillAction getEnum(Integer code) {
        for (EnumBillAction value : values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

    private Integer code;
    private String message;

    EnumBillAction(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
