123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- using System;
- using System.Collections.Generic;
- using Aop.Api.Response;
- using Aop.Api.Util;
- namespace Aop.Api.Request
- {
- /// <summary>
- /// AOP API: alipay.open.agent.common.sign
- /// </summary>
- public class AlipayOpenAgentCommonSignRequest : IAopUploadRequest<AlipayOpenAgentCommonSignResponse>
- {
- /// <summary>
- /// 支付宝生活号(原服务窗)名称(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
- /// </summary>
- public string AlipayLifeName { get; set; }
- /// <summary>
- /// APP demo,格式为.apk;或者应用说明文档, 格式为.doc .docx .pdf格式(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
- /// </summary>
- public FileItem AppDemo { get; set; }
- /// <summary>
- /// 商户的APP应用名称(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
- /// </summary>
- public string AppName { get; set; }
- /// <summary>
- /// 代商户操作事务编号,通过alipay.open.agent.create接口进行创建。
- /// </summary>
- public string BatchNo { get; set; }
- /// <summary>
- /// 营业执照授权函图片,个体工商户如果使用总公司或其他公司的营业执照认证需上传该授权函图片,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
- /// </summary>
- public FileItem BusinessLicenseAuthPic { get; set; }
- /// <summary>
- /// 营业执照号码
- /// </summary>
- public string BusinessLicenseNo { get; set; }
- /// <summary>
- /// 营业执照图片。被代创建商户运营主体为个人账户必填,企业账户无需填写。图片最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
- /// </summary>
- public FileItem BusinessLicensePic { get; set; }
- /// <summary>
- /// 营业期限
- /// </summary>
- public string DateLimitation { get; set; }
- /// <summary>
- /// 营业期限是否长期有效
- /// </summary>
- public Nullable<bool> LongTerm { get; set; }
- /// <summary>
- /// <a href="https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.59bgD2&treeId=222&articleId=105364&docType=1#s1">商家经营类目</a> 中的“经营类目编码”
- /// </summary>
- public string MccCode { get; set; }
- /// <summary>
- /// isv要代商户签约产品码,产品码是支付宝内部对产品的唯一标识
- /// </summary>
- public string ProductCode { get; set; }
- /// <summary>
- /// 店铺内景图片,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
- /// </summary>
- public FileItem ShopScenePic { get; set; }
- /// <summary>
- /// 店铺门头照图片,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
- /// </summary>
- public FileItem ShopSignBoardPic { get; set; }
- /// <summary>
- /// 企业特殊资质图片,可参考 <a href="https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.59bgD2&treeId=222&articleId=105364&docType=1#s1">商家经营类目</a> 中的“需要的特殊资质证书”。文件最小为 5KB,最大为5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
- /// </summary>
- public FileItem SpecialLicensePic { get; set; }
- /// <summary>
- /// 网站首页截图,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
- /// </summary>
- public FileItem WebHomeScreenshot { get; set; }
- /// <summary>
- /// 网站商品页截图,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
- /// </summary>
- public FileItem WebItemScreenshot { get; set; }
- /// <summary>
- /// 网站支付页截图,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
- /// </summary>
- public FileItem WebPayScreenshot { get; set; }
- /// <summary>
- /// 接入网址信息(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
- /// </summary>
- public List<string> WebSites { get; set; }
- /// <summary>
- /// 接入网址的授权涵,格式为.doc .docx .pdf格式
- /// </summary>
- public FileItem WebSitesLoa { get; set; }
- /// <summary>
- /// 网站状态,枚举值为:已上线,未上线
- /// </summary>
- public string WebStatus { get; set; }
- /// <summary>
- /// 可以登录此网站的测试账户
- /// </summary>
- public string WebTestAccount { get; set; }
- /// <summary>
- /// 可以登录此网站的账户的密码。对应web_test_account的登录密码
- /// </summary>
- public string WebTestAccountPassword { get; set; }
- /// <summary>
- /// 微信公众号名称(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
- /// </summary>
- public string WechatOfficialAccountName { 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;
- private Dictionary<string, string> udfParams; //add user-defined text parameters
- 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.agent.common.sign";
- }
- public void PutOtherTextParam(string key, string value)
- {
- if(this.udfParams == null)
- {
- this.udfParams = new Dictionary<string, string>();
- }
- this.udfParams.Add(key, value);
- }
- public IDictionary<string, string> GetParameters()
- {
- AopDictionary parameters = new AopDictionary();
- parameters.Add("alipay_life_name", this.AlipayLifeName);
- parameters.Add("app_name", this.AppName);
- parameters.Add("batch_no", this.BatchNo);
- parameters.Add("business_license_no", this.BusinessLicenseNo);
- parameters.Add("date_limitation", this.DateLimitation);
- parameters.Add("long_term", this.LongTerm);
- parameters.Add("mcc_code", this.MccCode);
- parameters.Add("product_code", this.ProductCode);
- parameters.Add("web_sites", this.WebSites);
- parameters.Add("web_status", this.WebStatus);
- parameters.Add("web_test_account", this.WebTestAccount);
- parameters.Add("web_test_account_password", this.WebTestAccountPassword);
- parameters.Add("wechat_official_account_name", this.WechatOfficialAccountName);
- if(udfParams != null)
- {
- foreach (string key in this.udfParams.Keys)
- {
- parameters.Add(key, this.udfParams[key]);
- }
- }
- return parameters;
- }
-
- public AopObject GetBizModel()
- {
- return this.bizModel;
- }
- public void SetBizModel(AopObject bizModel)
- {
- this.bizModel = bizModel;
- }
- #endregion
- #region IAopUploadRequest Members
- public IDictionary<string, FileItem> GetFileParameters()
- {
- IDictionary<string, FileItem> parameters = new Dictionary<string, FileItem>();
- parameters.Add("app_demo", this.AppDemo);
- parameters.Add("business_license_auth_pic", this.BusinessLicenseAuthPic);
- parameters.Add("business_license_pic", this.BusinessLicensePic);
- parameters.Add("shop_scene_pic", this.ShopScenePic);
- parameters.Add("shop_sign_board_pic", this.ShopSignBoardPic);
- parameters.Add("special_license_pic", this.SpecialLicensePic);
- parameters.Add("web_home_screenshot", this.WebHomeScreenshot);
- parameters.Add("web_item_screenshot", this.WebItemScreenshot);
- parameters.Add("web_pay_screenshot", this.WebPayScreenshot);
- parameters.Add("web_sites_loa", this.WebSitesLoa);
- return parameters;
- }
- #endregion
- }
- }
|