using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; using Aop.Api.Util; namespace Aop.Api.Request { /// /// AOP API: alipay.open.mini.version.audit.apply /// public class AlipayOpenMiniVersionAuditApplyRequest : IAopUploadRequest { /// /// 小程序类目,格式为 第一个一级类目_第一个二级类目;第二个一级类目_第二个二级类目,详细类目可以通过 https://docs.open.alipay.com/api_49/alipay.open.mini.category.query接口查询,如果不填默认采用当前小程序应用类目。使用默认应用类目后不需要再次上传营业执照号、营业执照名、营业执照截图、营业执照有效期。 /// public string AppCategoryIds { get; set; } /// /// 小程序应用描述,20-200个字,如果不填默认采用当前小程序的应用描述 /// public string AppDesc { get; set; } /// /// 小程序应用英文名称,如果不填默认采用当前小程序应用英文名称,3~30个字符;小程序英文名称只允许英文和数字 /// public string AppEnglishName { get; set; } /// /// 小程序logo图标,图片格式必须为:png、jpeg、jpg,建议上传像素为180*180,如果不填默认采用当前小程序应用logo图标;logo图片最大256KB /// public FileItem AppLogo { get; set; } /// /// 小程序应用名称,如果不填默认采用当前小程序应用名称 小程序中文名称限制为3-20个字符 小程序中文名称只能包含中文、数字、英文及下划线 /// public string AppName { get; set; } /// /// 小程序应用简介,一句话描述小程序功能,如果不填默认采用当前小程序应用简介,10~32个字符 /// public string AppSlogan { get; set; } /// /// 小程序版本号;请在开发版上执行提交审核操作 /// public string AppVersion { get; set; } /// /// 小程序投放的端参数,例如投放到支付宝钱包是支付宝端。该参数可选,默认支付宝端 com.alipay.alipaywallet:支付宝端 /// public string BundleId { get; set; } /// /// 第五张营业执照照片,不能超过4MB,图片格式只支持jpg,png,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序第五张营业执照照片;最大宽度2160,最大高度3840 /// public FileItem FifthLicensePic { get; set; } /// /// 小程序第五张应用截图,不能超过4MB,图片格式只支持jpg,png;小程序截图数量最小为2,最大为5 最大宽度2160,最大高度3840 /// public FileItem FifthScreenShot { get; set; } /// /// 第一张营业执照照片,不能超过4MB,图片格式只支持jpg,png,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序第一张营业执照照片;最大宽度2160,最大高度3840 /// public FileItem FirstLicensePic { get; set; } /// /// 实例化的小程序可以不用传第一张应用截图,小程序第一张应用截图,不能超过4MB,图片格式只支持jpg,png;小程序截图数量最小为2,最大为5 最大宽度2160,最大高度3840 /// public FileItem FirstScreenShot { get; set; } /// /// 第一张特殊资质图片,不能超过4MB,图片格式只支持jpg、png、jepg,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material 中是否需要特殊资质,如果不填默认采用当前小程序第一张特殊资质 /// public FileItem FirstSpecialLicensePic { get; set; } /// /// 第四张营业执照照片,不能超过4MB,图片格式只支持jpg,png,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序第四张营业执照照片;最大宽度2160,最大高度3840 /// public FileItem FourthLicensePic { get; set; } /// /// 小程序第四张应用截图,不能超过4MB,图片格式只支持jpg,png;小程序截图数量最小为2,最大为5 最大宽度2160,最大高度3840 /// public FileItem FourthScreenShot { get; set; } /// /// 营业执照名称,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填类目采用当前小程序应用营业执照名称。 /// public string LicenseName { get; set; } /// /// 营业执照号,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序应用营业执照号。 /// public string LicenseNo { get; set; } /// /// 营业执照有效期,格式为yyyy-MM-dd,9999-12-31表示长期,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序营业执照有效期 /// public string LicenseValidDate { get; set; } /// /// 小程序备注;小程序备注最多500字符 /// public string Memo { get; set; } /// /// 新小程序前台类目,格式为 第一个一级类目_第一个二级类目;第二个一级类目_第二个二级类目_第二个三级类目,详细类目可以通过 https://docs.open.alipay.com/api_49/alipay.open.mini.category.query接口查询mini_category_list,如果不填默认采用当前小程序应用类目。使用默认应用类目后不需要再次上传营业执照号、营业执照名、营业执照截图、营业执照有效期。使用后不再读取app_category_ids值,老前台类目将废弃 /// public string MiniCategoryIds { get; set; } /// /// 门头照图片,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序门头照图片;门头照支持扩展名为jpg, png;门头照最大4MB,宽度2160,高度3840 /// public FileItem OutDoorPic { get; set; } /// /// 小程序服务区域类型,GLOBAL-全球,CHINA-中国,LOCATION-指定区域 /// public string RegionType { get; set; } /// /// 第二张营业执照照片,不能超过4MB,图片格式只支持jpg,png,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序第二张营业执照照片;最大宽度2160,最大高度3840 /// public FileItem SecondLicensePic { get; set; } /// /// 实例化的小程序可以不用传第二张应用截图,小程序第二张应用截图,不能超过4MB,图片格式只支持jpg,png;小程序截图数量最小为2,最大为5 最大宽度2160,最大高度3840 /// public FileItem SecondScreenShot { get; set; } /// /// 第二张特殊资质图片文件,不能超过4MB,图片格式只支持jpg、png、jepg,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material 中是否需要特殊资质,如果不填默认采用当前小程序第二张特殊资质图片 /// public FileItem SecondSpecialLicensePic { get; set; } /// /// 小程序客服邮箱,如果不填默认采用当前小程序的应用客服邮箱;小程序客服电话和邮箱至少输入一个 /// public string ServiceEmail { get; set; } /// /// 小程序客服电话,如果不填默认采用当前小程序的应用客服电话;小程序客服电话和邮箱至少输入一个 只允许包含数字和-,5-30个字符 /// public string ServicePhone { get; set; } /// /// 省市区信息,当区域类型为LOCATION时,不能为空,province_code不能为空,当填写city_code时,province_code不能为空,当填写area_code时,province_code和city_code不能为空。只填province_code时,该省全部选择;province_code和city_code都填时,该市全部选择。province_code,city_code和area_code都填时,该县全部选择。 /// public List ServiceRegionInfo { get; set; } /// /// 测试账号 /// public string TestAccout { get; set; } /// /// 测试附件,请上传10M以内附件,支持格式zip,rar /// public FileItem TestFileName { get; set; } /// /// 测试账号密码 /// public string TestPassword { get; set; } /// /// 第三张营业执照照片,不能超过4MB,图片格式只支持jpg,png,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要营业执照信息,如果不填默认采用当前小程序第三张营业执照照片;最大宽度2160,最大高度3840 /// public FileItem ThirdLicensePic { get; set; } /// /// 小程序第三张应用截图,不能超过4MB,图片格式只支持jpg,png;小程序截图数量最小为2,最大为5 最大宽度2160,最大高度3840 /// public FileItem ThirdScreenShot { get; set; } /// /// 第三张特殊资质图片文件,不能超过4MB,图片格式只支持jpg、png、jepg,部分小程序类目需要提交,参照https://opendocs.alipay.com/mini/operation/material中是否需要特殊资质,如果不填默认采用当前小程序第三张特殊资质 /// public FileItem ThirdSpecialLicensePic { get; set; } /// /// 小程序版本描述,30-500个字符 /// public string VersionDesc { get; set; } #region IAopRequest Members private bool needEncrypt=false; private string apiVersion = "1.0"; private string terminalType; private string terminalInfo; private string prodCode; private string notifyUrl; private string returnUrl; private AopObject bizModel; public void SetNeedEncrypt(bool needEncrypt){ this.needEncrypt=needEncrypt; } public bool GetNeedEncrypt(){ return this.needEncrypt; } public void SetNotifyUrl(string notifyUrl){ this.notifyUrl = notifyUrl; } public string GetNotifyUrl(){ return this.notifyUrl; } public void SetReturnUrl(string returnUrl){ this.returnUrl = returnUrl; } public string GetReturnUrl(){ return this.returnUrl; } public void SetTerminalType(String terminalType){ this.terminalType=terminalType; } public string GetTerminalType(){ return this.terminalType; } public void SetTerminalInfo(String terminalInfo){ this.terminalInfo=terminalInfo; } public string GetTerminalInfo(){ return this.terminalInfo; } public void SetProdCode(String prodCode){ this.prodCode=prodCode; } public string GetProdCode(){ return this.prodCode; } public void SetApiVersion(string apiVersion){ this.apiVersion=apiVersion; } public string GetApiVersion(){ return this.apiVersion; } public string GetApiName() { return "alipay.open.mini.version.audit.apply"; } public IDictionary GetParameters() { AopDictionary parameters = new AopDictionary(); parameters.Add("app_category_ids", this.AppCategoryIds); parameters.Add("app_desc", this.AppDesc); parameters.Add("app_english_name", this.AppEnglishName); parameters.Add("app_name", this.AppName); parameters.Add("app_slogan", this.AppSlogan); parameters.Add("app_version", this.AppVersion); parameters.Add("bundle_id", this.BundleId); parameters.Add("license_name", this.LicenseName); parameters.Add("license_no", this.LicenseNo); parameters.Add("license_valid_date", this.LicenseValidDate); parameters.Add("memo", this.Memo); parameters.Add("mini_category_ids", this.MiniCategoryIds); parameters.Add("region_type", this.RegionType); parameters.Add("service_email", this.ServiceEmail); parameters.Add("service_phone", this.ServicePhone); parameters.Add("service_region_info", this.ServiceRegionInfo); parameters.Add("test_accout", this.TestAccout); parameters.Add("test_password", this.TestPassword); parameters.Add("version_desc", this.VersionDesc); return parameters; } public AopObject GetBizModel() { return this.bizModel; } public void SetBizModel(AopObject bizModel) { this.bizModel = bizModel; } #endregion #region IAopUploadRequest Members public IDictionary GetFileParameters() { IDictionary parameters = new Dictionary(); parameters.Add("app_logo", this.AppLogo); parameters.Add("fifth_license_pic", this.FifthLicensePic); parameters.Add("fifth_screen_shot", this.FifthScreenShot); parameters.Add("first_license_pic", this.FirstLicensePic); parameters.Add("first_screen_shot", this.FirstScreenShot); parameters.Add("first_special_license_pic", this.FirstSpecialLicensePic); parameters.Add("fourth_license_pic", this.FourthLicensePic); parameters.Add("fourth_screen_shot", this.FourthScreenShot); parameters.Add("out_door_pic", this.OutDoorPic); parameters.Add("second_license_pic", this.SecondLicensePic); parameters.Add("second_screen_shot", this.SecondScreenShot); parameters.Add("second_special_license_pic", this.SecondSpecialLicensePic); parameters.Add("test_file_name", this.TestFileName); parameters.Add("third_license_pic", this.ThirdLicensePic); parameters.Add("third_screen_shot", this.ThirdScreenShot); parameters.Add("third_special_license_pic", this.ThirdSpecialLicensePic); return parameters; } #endregion } }