# AccountStatusEnum.java

    package cloud.wconnect.finance.cons.pl;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

    /**
     * Account Type Enum
     *
     * @author lichen
     * @date 2025/9/26
     */
    @AllArgsConstructor
    @Getter
    public enum AccountStatusEnum {

        ACTIVE(true, "Active"),
        NOT_ACTIVE(false, "Not Active");

        private boolean status;

        private String m3AccountStatus;

        /**
         * 根据M3 Account Status获取Account Status
         *
         * @param m3AccountStatus M3 Account Status
         * @return java.lang.Boolean
         * @author lichen
         * @date 2025/9/26
         */
        public static Boolean getStatusByM3AccountStatus(String m3AccountStatus) {
            for (AccountStatusEnum value : values()) {
                if (value.m3AccountStatus.equals(m3AccountStatus)) {
                    return value.status;
                }
            }
            return null;
        }
    }