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

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/8/23 16:00
 */
@Data
public class RyxpayIsvsubMchParams extends IsvsubMchParams {

    /** 瑞银信商编 */
    @ChannelMchId(type = ChannelMchIdTypeEnum.MCH_NO)
    private String merchantCode;

    /** 商户内部编号 */
    private String merInId;

    /** 终端编号 */
    private String termId;

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