package com.jeequan.jeepay.core.model.rqrs.mch;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * TODO
 *
 * @author crystal
 * @date 2023/12/7 15:11
 */
@Data
public class ChannelMchRq {

    private String appid;

    private String jsapiPath;

    /**
     * 00:公众号 01：小程序 02：jsapi path设置
     */
    private String type;

    /**
     * 子商户号
     */
    private String subMchNo;

    @Getter
    @AllArgsConstructor
    public enum Type{

        PUBLIC("00"),

        APPLET("01"),

        PATH("02");

        private final String type;
    }

    public ChannelMchRq(String appid, String jsapiPath, String type,String subMchNo) {
        this.appid = appid;
        this.jsapiPath = jsapiPath;
        this.type = type;
        this.subMchNo = subMchNo;
    }
}
