package com.jeesharp.business.modules.pay.paysubmerchantapplyment.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 修改结算账户 · 审核状态（微信 application 查询接口）。
 *
 * @author jeesharp
 * @since 2026-06-12
 */
@Getter
@AllArgsConstructor
public enum PaySubMerchantSettlementModifyAuditEnum {

    /** 审核中 */
    AUDITING("AUDITING", "审核中"),

    /** 审核通过 */
    AUDIT_SUCCESS("AUDIT_SUCCESS", "审核通过"),

    /** 审核驳回 */
    AUDIT_FAIL("AUDIT_FAIL", "审核驳回");

    private final String value;
    private final String desc;

    public static PaySubMerchantSettlementModifyAuditEnum fromValue(String value) {
        if (value == null) {
            return null;
        }
        for (PaySubMerchantSettlementModifyAuditEnum e : values()) {
            if (e.getValue().equals(value)) {
                return e;
            }
        }
        return null;
    }

    public static String getDescByValue(String value) {
        PaySubMerchantSettlementModifyAuditEnum e = fromValue(value);
        return e != null ? e.getDesc() : "";
    }
}
