package com.jeequan.jeepay.core.model.params.cloudpay;

/**
 * @author yangjun
 * @version CloudpayConfig.java, v 0.1 2022-09-27 21:14 yangjun
 */
public class CloudpayConfig {

    /**
     * 重复核销-标识
     */
    public static final String ERROR_VERIFY = "USED_REDEEM_CODE";

    /**
     * 网关成功code
     */
    public static final String GW_CODE_SUCCESS = "10000";

    /**
     * 系统未知异常（下层功能域调用失败） 需要轮询
     */
    public static final String GW_CODE_QUERY = "20000";

    /**
     * 业务结果：01 查询成功
     */
    public static final String RESULT_CODE_SUCCESS = "01";
    /**
     * 业务结果：02 查询失败
     */
    public static final String RESULT_CODE_FAIL = "02";
    /**
     * 01成功
     */
    public static final String PAY_SUCCESS = "01";
    /**
     * 02失败
     */
    public static final String PAY_FAIL = "02";
    /**
     * 03支付中
     */
    public static final String PAY_ING = "03";
    /**
     * 99该条码暂不支持支付类型自动匹配
     */
    public static final String PAY_ERROR = "99";

    /**
     * 订单状态
     */
    public static final String ORDER_SUCCESS = "ORDER_SUCCESS";
    public static final String ORDER_CLOSED = "ORDER_CLOSED";
    public static final String WAIT_PAY = "WAIT_PAY";
    /**
     * 退款订单状态
     * REFUND_INIT：退款中
     * REFUND_SUCCESS：退款成功
     * REFUND_FAIL：退款失败
     */
    public static final String ORDER_REFUND_SUCCESS = "REFUND_SUCCESS";
    public static final String ORDER_REFUND_FAIL = "REFUND_FAIL";
    public static final String ORDER_REFUND_REFUNDING = "REFUND_INIT";
    /**
     * 云支付请求地址
     */
    public static String PROD_SERVER_URL = "https://ecogateway.alipay-eco.com/gateway.do";
    public static String SANDBOX_SERVER_URL = "http://ecogatewaysit.alipay-eco.com/gateway.do";
    /**
     * 刷卡支付
     */
    public static String BAR_CODE_PAY = "ant.antfin.eco.cloudpay.trade.pay";
    public static String TRADE_CREATE_PAY = "ant.antfin.eco.cloudpay.trade.create";
    /**
     * 订单查询
     */
    public static String ORDER_QUERY = "ant.antfin.eco.cloudpay.trade.query";
    /**
     * 退款申请
     */
    public static String ORDER_REFUND = "ant.antfin.eco.cloudpay.trade.refund";
    /**
     * 退款查询
     */
    public static String ORDER_QUERY_REFUND = "ant.antfin.eco.cloudpay.trade.refund.query";
    /**
     * 多维度订单列表查询
     */
    public static String ORDER_LIST_QUERY = "ant.antfin.eco.cloudpay.trade.batchquery";
    /**
     * 多维度订单汇总查询
     */
    public static String ORDER_TOTAL_QUERY = "ant.antfin.eco.cloudpay.trade.summary";
    /**
     * 云支付线上订单核销
     */
    public static String REDEEM_CODE_VERIFY = "ant.antfin.eco.cloudpayprod.redeem.code.verify";

    /**
     * 云支付退款通知标识
     */
    public static final String TRADE_TYPE_REFUND_MARK = "REFUND_SYNC";
}