CreatePaymentRequest.java 2.41 KB
package cn.com.glsx.entmicro.request.payment;

import cn.com.glsx.entmicro.request.DefaultRequest;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class CreatePaymentRequest extends DefaultRequest {

    /**
     * 滴加商户号
     */
    @ApiModelProperty(name = "merchantNo", notes = "商户id", dataType = "int")
    private Integer merchantNo;

    /**
     * 滴加商户名称
     */
    @ApiModelProperty(name = "merchantName", notes = "滴加商户名称", dataType = "String")
    private String merchantName;

    /**
     * 微信支付商户号
     */
    @ApiModelProperty(name = "mchId", notes = "微信商户号", dataType = "String")
    @NotEmpty
    private String mchId;

    /**
     * 微信商户名称
     */
    @ApiModelProperty(name = "mchName", notes = "微信商户名称", dataType = "String")
    private String mchName;

    /**
     * 账号所属,0-广联,1-服务商,2-流量方
     */
    @ApiModelProperty(name = "mchBelong", notes = "账号所属,0-广联,1-服务商,2-流量方", dataType = "int")
    private Integer mchBelong;

    /**
     * 应用类型,App,小程序,公众号,H5,多个用逗号分割
     */
    @ApiModelProperty(name = "appTypes", notes = "应用类型,MINIAPP-微信小程序,BIZ-微信公众号,多个用逗号分割", dataType = "String")
    @NotEmpty
    private String appTypes;

    /**
     * 商户证书序列号
     */
    @ApiModelProperty(name = "merchantSerialNo", notes = "商户证书序列号", dataType = "String")
    @NotEmpty
    private String merchantSerialNo;

    /**
     * API秘钥
     */
    @ApiModelProperty(name = "apiKey", notes = "API秘钥", dataType = "String")
    @NotEmpty
    private String apiKey;

    /**
     * apiclient_key.pem证书本地路径
     */
    @ApiModelProperty(name = "apiclientKeyPemPath", notes = "apiclient_key.pem证书本地路径", dataType = "String")
    @NotEmpty(message = "apiclient_key.pem证书不能为空")
    private String apiclientKeyPemPath;

    /**
     * apiclient_cert.pem证书本地路径
     */
    @ApiModelProperty(name = "apiclientCertPemPath", notes = "apiclient_cert.pem证书本地路径", dataType = "String")
    @NotEmpty(message = "apiclient_cert.pem证书不能为空")
    private String apiclientCertPemPath;
}