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

import lombok.Data;

/**
 * 付呗 通用配置信息
 *
 * @author xiaoyu
 *
 * @date 2022/5/13 10:19
 */
@Data
public class FbpayConfig {

    /** 网关地址 */
    public static String PROD_SERVER_URL = "https://shq-api.51fubei.com/gateway/agent";

    /** 上游返回订单状态 SUCCESS-成功 USERPAYING-支付中 **/
    public static final String ORDER_STATE_SUCCESS = "SUCCESS";
    public static final String ORDER_STATE_ING = "USERPAYING";
    public static final String ORDER_STATE_CLOSED = "CLOSED";

    /** 上游返回退款状态 REFUND_PROCESSING-退款中 REFUND_SUCCESS-退款成功 REFUND_FAIL-退款失败 **/
    public static final String REFUND_STATE_ING = "REFUND_PROCESSING";
    public static final String REFUND_STATE_SUCCESS = "REFUND_SUCCESS";
    public static final String REFUND_STATE_FAIL = "REFUND_FAIL";

    /** 支付接口 **/
    public static final String INTERFACE_TYPE_ORDER_PAY = "fbpay.order.pay";        // 付款码支付
    public static final String INTERFACE_TYPE_ORDER_CREATE = "fbpay.order.create";  // 统一下单
    public static final String INTERFACE_TYPE_ORDER_QUERY = "fbpay.order.query";  // 订单查询
    public static final String INTERFACE_TYPE_ORDER_CLOSE = "fbpay.order.close";  // 订单关闭
    public static final String INTERFACE_TYPE_ORDER_REFUND = "fbpay.order.refund";  // 退款
    public static final String INTERFACE_TYPE_ORDER_REFUND_QUERY = "fbpay.order.refund.query";  // 退款查询

}
