package com.red.circle.other.infra.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * BD 结算状态枚举.
 *
 * @author AI Assistant
 * @since 2025-10-29
 */
@Getter
@AllArgsConstructor
public enum BdSettlementStatus {

    /**
     * 待结算.
     */
    PENDING("待结算"),

    /**
     * 结算成功.
     */
    SUCCESS("结算成功"),

    /**
     * 结算失败.
     */
    FAILED("结算失败");

    /**
     * 描述.
     */
    private final String description;

    /**
     * 判断是否成功.
     */
    public boolean isSuccess() {
        return this == SUCCESS;
    }

    /**
     * 判断是否失败.
     */
    public boolean isFailed() {
        return this == FAILED;
    }

    /**
     * 判断是否待处理.
     */
    public boolean isPending() {
        return this == PENDING;
    }
}
