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

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 2022/11/30
 */
@Data
public class HkpayIsvsubMchParams extends IsvsubMchParams {

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

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

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