package com.hzs.third.pay.constants;

/**
 * 京东支付常量类
 */
public class JdPayConstants {

    /**
     * 终端标记（暂用京东注册手机号）
     */
    public static final String TERMINAL_ID = "18246334501";
    /**
     * 用户注册账号（暂用京东注册手机号）
     */
    public static final String USER_ACCOUNT = "18246334501";
    /**
     * 应用名称
     */
    public static final String APP_NAME = "盛美源";

    // TODO 上面3项考试动态化配置

    /**
     * 订单状态 - 交易处理中
     */
    public static final String ORDER_INT = "INT";
    /**
     * 订单状态 - 成功
     */
    public static final String ORDER_SUCCESS = "SUCCESS";

    /**
     * 查询状态 - 交易处理中
     */
    public static final String QUERY_INIT = "INIT";
    /**
     * 查询状态 - 成功
     */
    public static final String QUERY_SUCCESS = "SUCCESS";
    /**
     * 查询状态 - 失败
     */
    public static final String QUERY_FAIL = "FAIL";

    /**
     * 处理成功
     */
    public static final String RESULT_SUCCESS = "success";

    /**
     * 处理成功业务响应码
     */
    public static final String RESULT_SUCCESS_CODE = "C000000";

    /**
     * 银行卡交易不支持错误编码
     */
    public static final String RESULT_FAIL_CODE_6 = "C000006";

    /**
     * 请求成功
     */
    public static final String SUCCESS = "true";

    /**
     * 返回成功
     */
    public static final String RETURN_SUCCESS = "200";
    /**
     * 返回失败
     */
    public static final String RETURN_FAIL = "500";

    /**
     * 支付接口版本
     */
    public static final String PAY_VERSION = "V4.0";

    /**
     * 绑卡类型： 身份证
     */
    public static final String ID_CARD_TYPE = "IDCARD";

    /**
     * 快捷支付标准业务场景
     */
    public static final String FAST_TRADESCENE_QUICKPAY = "QUICKPAY";

    /**
     * 代付业务类型
     */
    public static final String AGENT_BUSINESS_TYPE = "DEFY";

    /**
     * 代付支付方式
     */
    public static final String AGENT_BANK_TYPE = "DEFY";

    /**
     * 支付地址
     */
    public static final String PAY_URL = "https://openapi.duolabao.com";

    /**
     * 扫码支付调用方法
     */
    public static final String METHOD_SCAN = "/v3/order/payurl/create";

    /**
     * 快捷支付绑卡方法
     */
    public static final String METHOD_BIND_CARD = "/api/applyBindCard";

    /**
     * 快捷支付绑卡确认方法
     */
    public static final String METHOD_CONFIRM_BIND = "/api/confirmBindCard";

    /**
     * 快捷支付解绑方法
     */
    public static final String METHOD_UNBIND = "/api/unBindCard";

    /**
     * 快捷支付预下单
     */
    public static final String METHOD_PRE_ORDER = "/api/applyQuickPayWithCheck";

    /**
     * 快捷支付确认订单
     */
    public static final String METHOD_CONFIRM_ORDER = "/api/confirmQuickPay";

    /**
     * 京东代付余额查询方法
     */
    public static final String METHOD_QUERY_BALANCE = "/api/queryBalance";

    /**
     * 京东代付调用方法
     */
    public static final String METHOD_AGENT = "/api/payWithCheck";

    /**
     * 京东查询订单路径
     */
    public static final String QUERY_ORDER = "/v3/order/query";

    /**
     * 京东退款路径
     */
    public static final String REFUND_ORDER = "/v3/order/refund/part";

}
