package org.springblade.ldt.shop.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springblade.yeePay.common.YeepayApiConstant;

import java.util.List;

/**
 * @author July
 * @version 1.0.0
 * @ClassName WechatConfigQueryVO.java
 * @Description 公众号配置
 * @createTime 2021年10月15日 09:33:00
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WechatConfigQueryVO {
	@ApiModelProperty("报备商户号")
	private String reportMerchantNo;

	@ApiModelProperty("支付授权目录列表")
	private List<TradeAuthDir> tradeAuthDirList;

	@ApiModelProperty("报备商户号")
	private List<APPId> appIdList;

	@Builder
	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	private static class TradeAuthDir {
		@ApiModelProperty("失败原因")
		private String failReason;

		@ApiModelProperty("配置状态")
		private String status;

		@ApiModelProperty("支付授权目录")
		private String tradeAuthDir;
	}

	@Builder
	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	private static class APPId {
		@ApiModelProperty("支付appId")
		private String appId;

		@ApiModelProperty("支付appSecret")
		private String appSecret;

		@ApiModelProperty("appId类型")
		private YeepayApiConstant.appIdType appIdType;

		@ApiModelProperty("推荐关注appId")
		private String subscribeAppId;

		@ApiModelProperty("配置状态")
		private String status;

		@ApiModelProperty("失败原因")
		private String failReason;
	}
}
