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

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;

import java.util.List;

@Data
public class KqpayIsvsubMchParams extends IsvsubMchParams {

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

    private String subMemberCode;

    /** 终端号**/
    private List<JSONObject> terminalInfos;

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