/**
 * cljpay.com
 * Copyright (C) 2015-2022 All Rights Reserved.
 */package com.jeequan.jeepay.core.model.params.leshuapay;

import lombok.Data;

/**
 * @author yangjun
 * @version LeshuapayConfig.java, v 0.1 2022-10-26 17:28 yangjun
 */
@Data
public class LeshuapayConfig {

    /** 交易网关地址 */
    public static String PAY_SANDBOX_URL = "https://t-paygate.lepass.cn/cgi-bin/lepos_pay_gateway.cgi"; // 测试
    public static String PAY_URL = "https://paygate.leshuazf.com/cgi-bin/lepos_pay_gateway.cgi"; // 正式
    /** 商户网关地址（进件） */
    public static String MCH_SANDBOX_URL = "http://t-saas-mch.lepass.cn/apiv2";
    public static String MCH_URL = "https://saas-mch.leshuazf.com/apiv2";

    /**
     * 成功状态码
     */
    public static final String PAY_SUCCESS_CODE = "0";
    /**
     * 成功状态码
     */
    public static final String SHARE_SUCCESS_CODE = "000000";
    public static final String SHARE_AUDITING_CODE = "000011";
    public static final String SHARE_AUTOMATIC_AUDITING_CODE = "000022";
    public static final String SHARE_ERROR_CODE = "000019";

    /**
     * 超时时间
     */
    public static final Integer LESHUA_MERCHANT_GATEWAY_TIMEOUT = 10000;


    /**
     * 0-支付宝Native扫码支付、银联Native扫码支付、数字货币支付
     */
    public static final String QR_JSPAY_FLAG = "0";

    /**
     * 1-微信JSAPI、支付宝JSAPI支付、银联JSAPI支付
     */
    public static final String JS_JSPAY_FLAG = "1";

    /**
     * 2-微信、支付宝简易支付<跳转乐刷收银台支付>；（jspay_flag=2时必传jump_url，否则会报错）
     */
    public static final String EASY_JSPAY_FLAG = "2";

    /**
     * 3-微信小程序支付、支付宝小程序支付
     */
    public static final String LITE_JSPAY_FLAG = "3";


    /**
     * 退款标识
     */
    public static final String TRADE_TYPE_REFUND_MARK = "leshua_refund_id";

    /**
     * alipayjsapi 支付宝订单号
     */
    public static final String TRADE_TYPE_ALIPAY_JSAPI_TRADE_NO_MARK = "tradeNO";

    /**
     * 微信支付订单回传门店编码
     */
    public static final String TRADE_WX_SCENE_INFO = "{\"store_info\":{\"id\":\"{}\"}}";

    /**
     * 商户进件相关请求地址
     */
    public static final String LESHUA_PIC_UPLOAD = "/picture/upload";                   // 图片上传
    public static final String LESHUA_MCH_APPLY = "/merchant/register";                 // 进件
    public static final String LESHUA_APPLY_RATE = "/merchant/open";                    // 商户设置费率
    public static final String LESHUA_AUDIT_QUERY = "/merchant/audit_qry";              //商户审核查询
    public static final String LESHUA_WECHAT_WXPAYCONFIG = "/wechat/wxpayconfig";               //微信支付配置
    public static final String LESHUA_WECHAT_WXPAYCONFIG_QUERY = "/wechat/wxpayconfig_qry";     //查询微信支付配置
    public static final String LESHUA_WX_VERIFY_QUERY = "/submch/getauthorizestateByWxMerId";   //微信授权状态查询
    public static final String LESHUA_ALI_VERIFY_QUERY = "/zfbVerify/queryMchStatus";           //支付宝子商户授权状态查询
    public static final String LESHUA_APPLY_UPDATE = "/merchant/update";                    //商户信息修改


    /***
     * 乐刷进件结果查询状态
     */

    public static final String REJECTED = "REJECTED"; //退回
    public static final String REVIEW = "REVIEW"; //待人工检查
    public static final String PASSED = "PASSED"; //通过
    public static final String UNKNOWN = "UNKNOWN"; //未知
    public static final String ADD_INFO = "ADD_INFO"; //待完善资料
    public static final String AUDITING = "AUDITING"; //待审核

}