package org.springblade.yeePay.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;


@Data
@Builder
@Validated
public class ConfigAppDto {
	String [] tradeAuthDirList;
	AppInfo [] appIdList;
	String parentMerchantNo;
	String merchantNo;

		@ApiModel("App信息实体类，包括小程序以及公众号")
		@Data
		@Valid
		public static class AppInfo{
			@NotBlank
			@ApiModelProperty(value = "公众号ID",required = true)
			String appId;
			@NotBlank
			@ApiModelProperty(value = "公众号秘钥",required = true)
			String appSecret;
			@NotBlank
			@ApiModelProperty(value = "appIdType appId类型（OFFICIAL_ACCOUNT:公众号；MINI_PROGRAM:小程序）",required = true)
			String appIdType ;
			@NotBlank
			@ApiModelProperty(value = "推荐关注的公众号ID",required = true)
			String subscribeAppId;
		}

}
