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

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jeequan.jeepay.core.annotate.ChannelMchId;
import com.jeequan.jeepay.core.constants.ChannelMchIdTypeEnum;
import com.jeequan.jeepay.core.model.params.IsvParams;
import lombok.Data;

/**
 * 易宝 isv参数定义
 *
 * @author xiaoyu
 * @site https://www.jeequan.com
 * @date 2022/7/8 11:02
 */
@Data
public class YbpayIsvParams extends IsvParams {

    /** 加密方式 RSA/SM */
    private String signType;

    /**
     * 易宝APPId
     */
    private String appId;

    /**
     * 摘要
     */
    private String keyContent;


    private String privateKey;


    private String publicKey;


    private String privateKeyFile;


    private String publicKeyFile;

    @Override
    public String deSenData() {
        YbpayIsvParams isvParams = this;
        return ((JSONObject) JSON.toJSON(isvParams)).toJSONString();
    }
}
