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

import lombok.Data;

/*
 * 汇聚支付 通用配置信息
 *
 * @author yurong
 *
 * @date 2022/7/18 9:49
 */
@Data
public class JoinpayConfig {
    //加密类型
    public static final String ENCRYPT_TYPE_MD5 = "1";    // MD5加密
    public static final String ENCRYPT_TYPE_RSA = "2";    // RSA加密

    //请求相关
    public static final String REQ_URL = "https://www.joinpay.com";           // 请求地址
    public static final String UNI_PAY_API = "/trade/uniPayApi.action";       // 下单
    public static final String QUERY_ORDER = "/trade/queryOrder.action";      // 订单查询
    public static final String REFUND = "/trade/refund.action";               // 退款
    public static final String QUERY_REFUND = "/trade/queryRefund.action";    // 退款查询

    //支付类型
    public static final String WEIXIN_NATIVE = "WEIXIN_NATIVE";     // 微信扫码
    public static final String WEIXIN_CARD = "WEIXIN_CARD";         // 微信条码
    public static final String WEIXIN_APP3 = "WEIXIN_APP3";         // 微信 APP+支付
    public static final String WEIXIN_H5_PLUS = "WEIXIN_H5_PLUS";   // 微信 H5 支付
    public static final String WEIXIN_GZH = "WEIXIN_GZH";           // 微信公众号
    public static final String WEIXIN_XCX = "WEIXIN_XCX";           // 微信小程序支付

    public static final String ALIPAY_NATIVE = "ALIPAY_NATIVE";     // 支付宝扫码(主扫)
    public static final String ALIPAY_CARD = "ALIPAY_CARD";         // 支付宝条码
    public static final String ALIPAY_H5 = "ALIPAY_H5";             // 支付宝 H5
    public static final String ALIPAY_FWC = "ALIPAY_FWC";           // 支付宝服务窗
    public static final String ALIPAY_SYT = "ALIPAY_SYT";           // 支付宝收银台

    //状态
    public static final String STATE_SUCCESS = "100";     // 成功
    public static final String STATE_FAIL = "101";        // 失败
    public static final String STATE_WAITING = "102";     // 订单处理中

    //其他常量
    public static final String VERSION = "2.1";                       // 汇聚版本号
    public static final String CNY = "1";                             // 货币种类  1：人民币
    public static final String KEY_ALGORITHM = "RSA";                 // 加密算法RSA
    public static final String SIGNATURE_ALGORITHM = "MD5withRSA";    // 签名算法
}
