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

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.IsvsubMchParams;
import lombok.Data;

/**
 * 易票联 特约商户参数定义
 *
 * @author yr
 *
 * @date 2023/3/27 9:06
 */
@Data
public class EpspayIsvsubMchParams extends IsvsubMchParams {

    /** 商户编号 */
    @ChannelMchId(type = ChannelMchIdTypeEnum.MCH_NO)
    private String customerCode;

    /**
     * 商户经营地区
     */
    private String areaInfo;

    /** 子商户公众号AppId(置空表示使用服务商) **/
    private String subMchAppId;
    /** 子商户小程序AppId(置空表示使用服务商) **/
    private String subMchLiteAppId;

    public String deSenData() {
        EpspayIsvsubMchParams epspayIsvsubMchParams = this;
        return ((JSONObject) JSON.toJSON(epspayIsvsubMchParams)).toJSONString();
    }
}
