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

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 xiaoyu
 *
 * @date 2022/12/8 9:26
 */
@Data
public class HnapayIsvsubMchParams extends IsvsubMchParams {

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


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