package com.haha.common.constant;

import java.math.BigDecimal;

/**
 * 支付相关常量
 */
public final class PaymentConstants {

    private PaymentConstants() {}

    /** 元→分 换算因子 */
    public static final BigDecimal YUAN_TO_FEN = BigDecimal.valueOf(100);

    /** AI 识别置信度阈值 */
    public static final BigDecimal CONFIDENCE_THRESHOLD = new BigDecimal("0.8");

    /** 折扣换算除数（8表示8折） */
    public static final BigDecimal DISCOUNT_DIVISOR = new BigDecimal("10");

    /** 退款截止天数 */
    public static final int REFUND_MAX_DAYS = 7;

    /** 退款单号前缀 */
    public static final String REFUND_ORDER_PREFIX = "RF";

    /** 支付分订单号前缀 */
    public static final String PAYSCORE_ORDER_PREFIX = "PS";

    /** 默认币种 */
    public static final String DEFAULT_CURRENCY = "CNY";

    /** Redis 缓存默认超时（分钟） */
    public static final int REDIS_DEFAULT_TIMEOUT_MINUTES = 30;
}
