package com.jeesharp.business.modules.pay.util;

/**
 * 微信支付 V3 异步通知应答 JSON（非 V2 XML）。
 *
 * @author jeesharp
 * @since 2026-05-25
 */
public final class WechatPayV3NotifyResponse {

    private WechatPayV3NotifyResponse() {
    }

    public static String success() {
        return "{\"code\":\"SUCCESS\",\"message\":\"成功\"}";
    }

    public static String fail(String message) {
        String msg = message == null || message.isBlank() ? "失败" : message.replace("\"", "'");
        return "{\"code\":\"FAIL\",\"message\":\"" + msg + "\"}";
    }
}
