/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.guosen.bussinessProductQualInfo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-10-08
 */
@Data
@TableName("cyzh_bussiness_product_qual_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BussinessProductQualInfo对象", description = "BussinessProductQualInfo对象")
public class BussinessProductQualInfo extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* MCC码。商户类别码，开通pos产品必填
	*/
		@ApiModelProperty(value = "MCC码。商户类别码，开通pos产品必填")
		private String mcc;
	/**
	* 付款场景码，开通企业付款-实时/两小时/次日产品必传。涉及商户限额，请根据实际付款业务场景选择对应的CODE码
	*/
		@ApiModelProperty(value = "付款场景码，开通企业付款-实时/两小时/次日产品必传。涉及商户限额，请根据实际付款业务场景选择对应的CODE码")
		private String paymentScene;
	/**
	* 付款业务协议图片/附件，使用付款作业时与上下游签署的协议扫面件或者复印件或者照片压缩包等。开通企业付款-实时/两小时/次日产品选传，为增加商户审核通过率，建议上传。
	*/
		@ApiModelProperty(value = "付款业务协议图片/附件，使用付款作业时与上下游签署的协议扫面件或者复印件或者照片压缩包等。开通企业付款-实时/两小时/次日产品选传，为增加商户审核通过率，建议上传。")
	private String agreementPhotoUrl;
	/**
	* 付款业务系统截图/附件，使用到付款业务的系统截图等证明资料；开通企业付款-实时/两小时/次日产品选传，为增加商户审核通过率，建议上传。
	*/
		@ApiModelProperty(value = "付款业务系统截图/附件，使用到付款业务的系统截图等证明资料；开通企业付款-实时/两小时/次日产品选传，为增加商户审核通过率，建议上传。")
	private String systemScreenshotUrl;
	/**
	* 特批开通流程/截图，特定情况下，申请开通付款业务的易宝审批完成截图。开通企业付款-实时/两小时/次日产品选传
	*/
		@ApiModelProperty(value = "特批开通流程/截图，特定情况下，申请开通付款业务的易宝审批完成截图。开通企业付款-实时/两小时/次日产品选传")
	private String specialPermitProcessUrl;
	private Long bussinessInfoId;

	@TableField(exist = false)
	private String thirdAgreementPhotoUrl;

	@TableField(exist = false)
	private String thirdSystemScreenshotUrl;

	@TableField(exist = false)
	private String thirdSpecialPermitProcessUrl;

	public String toProductQualificationInfo() {
		return "{" +
				"\"paymentScene\":" + "\"" + paymentScene + '\"' +
				", \"agreementPhotoUrl\":" + "\"" + thirdAgreementPhotoUrl + '\"' +
				", \"systemScreenshotUrl\":" + "\"" + thirdSystemScreenshotUrl + '\"' +
				", \"specialPermitProcessUrl\":" + "\"" + thirdSpecialPermitProcessUrl + '\"' +
				'}';
	}
}
