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

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/9/20 14:16
 */
@Data
public class MbpayIsvsubMchParams extends IsvsubMchParams {

    /** 商户标识 */
    @ChannelMchId(type = ChannelMchIdTypeEnum.MCH_NO)
    private String merAccount;

    /** 用户编号 */
    private String merNo;

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