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

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 2023/01/03
 */
@Data
public class EasypayIsvsubMchParams extends IsvsubMchParams {

    /** 结算方式 1- T1 2-D1 3-D0 0-取服务商配置 */
    private String settType;

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

    /** 终端号 */
    private String orgTermNo;

    /** 微信子商户号 */
    private String wechatId;



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