NewGaoKaoApi/PaymentSDK/AliPay/Request/AlipayOpenPublicLifeAgentCr...

216 lines
6.9 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using Aop.Api.Response;
using Aop.Api.Util;
namespace Aop.Api.Request
{
/// <summary>
/// AOP API: alipay.open.public.life.agent.create
/// </summary>
public class AlipayOpenPublicLifeAgentCreateRequest : IAopUploadRequest<AlipayOpenPublicLifeAgentCreateResponse>
{
/// <summary>
/// isv代开通生活号的商户支付宝账号或者商户支付宝账号pid2088开头16位长度的字符串账号需通过实名认证
/// </summary>
public string Account { get; set; }
/// <summary>
/// 生活号背景图片
/// </summary>
public FileItem BackgroundPic { get; set; }
/// <summary>
/// 营业执照授权函图片,个体工商户如果使用总公司或其他公司的营业执照认证需上传该授权函图片
/// </summary>
public FileItem BusinessLicenseAuthPic { get; set; }
/// <summary>
/// 营业执照号码。被代创建商户运营主体为个人账户必填,企业账户无需填写
/// </summary>
public string BusinessLicenseNo { get; set; }
/// <summary>
/// 营业执照图片。被代创建商户运营主体为个人账户必填,企业账户无需填写
/// </summary>
public FileItem BusinessLicensePic { get; set; }
/// <summary>
/// 联系人邮箱
/// </summary>
public string ContactEmail { get; set; }
/// <summary>
/// 联系人手机号
/// </summary>
public string ContactMobile { get; set; }
/// <summary>
/// 联系人名称
/// </summary>
public string ContactName { get; set; }
/// <summary>
/// 生活号头像
/// </summary>
public FileItem LogoPic { get; set; }
/// <summary>
/// 所属MCCCode详情可参考 <a href="https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.INIZWb&articleId=105364&docType=1">商家经营类目</a> 中的“经营类目编码”
/// </summary>
public string MccCode { get; set; }
/// <summary>
/// 外部入驻申请单据号,由开发者生成,并需保证在开发者端不重复。另,如果代创建被驳回,需更换新的申请号,原申请号不能再次使用
/// </summary>
public string OutBizNo { get; set; }
/// <summary>
/// 自有知识产权证书图片
/// </summary>
public FileItem OwnIntellectualPic { get; set; }
/// <summary>
/// 生活号简介
/// </summary>
public string PublicDesc { get; set; }
/// <summary>
/// 生活号名称
/// </summary>
public string PublicName { get; set; }
/// <summary>
/// 店铺内景图片,被代创建商户运营主体为个人账户必填,企业账户选填
/// </summary>
public FileItem ShopScenePic { get; set; }
/// <summary>
/// 店铺门头照图片,被代创建商户运营主体为个人账户必填,企业账户选填
/// </summary>
public FileItem ShopSignBoardPic { get; set; }
/// <summary>
/// 企业特殊资质图片,可参考 <a href="https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.INIZWb&articleId=105364&docType=1">商家经营类目</a> 中的 “需要的特殊资质证书”
/// </summary>
public FileItem SpecialLicensePic { 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.public.life.agent.create";
}
public IDictionary<string, string> GetParameters()
{
AopDictionary parameters = new AopDictionary();
parameters.Add("account", this.Account);
parameters.Add("business_license_no", this.BusinessLicenseNo);
parameters.Add("contact_email", this.ContactEmail);
parameters.Add("contact_mobile", this.ContactMobile);
parameters.Add("contact_name", this.ContactName);
parameters.Add("mcc_code", this.MccCode);
parameters.Add("out_biz_no", this.OutBizNo);
parameters.Add("public_desc", this.PublicDesc);
parameters.Add("public_name", this.PublicName);
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("background_pic", this.BackgroundPic);
parameters.Add("business_license_auth_pic", this.BusinessLicenseAuthPic);
parameters.Add("business_license_pic", this.BusinessLicensePic);
parameters.Add("logo_pic", this.LogoPic);
parameters.Add("own_intellectual_pic", this.OwnIntellectualPic);
parameters.Add("shop_scene_pic", this.ShopScenePic);
parameters.Add("shop_sign_board_pic", this.ShopSignBoardPic);
parameters.Add("special_license_pic", this.SpecialLicensePic);
return parameters;
}
#endregion
}
}