diff --git a/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationCertifyModel.cs b/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationCertifyModel.cs new file mode 100644 index 00000000..5dadbe05 --- /dev/null +++ b/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationCertifyModel.cs @@ -0,0 +1,18 @@ +using System; +using Newtonsoft.Json; + +namespace Alipay.AopSdk.Core.Domain +{ + /// + /// ZhimaCustomerEpCertificationCertifyModel Data Structure. + /// + [Serializable] + public class ZhimaCustomerEpCertificationCertifyModel : AopObject + { + /// + /// 一次认证的唯一标识,在完成芝麻认证初始化后可以获取 + /// + [JsonProperty("biz_no")] + public string BizNo { get; set; } + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationInitializeModel.cs b/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationInitializeModel.cs new file mode 100644 index 00000000..cb1eac1a --- /dev/null +++ b/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationInitializeModel.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +namespace Alipay.AopSdk.Core.Domain +{ + /// + /// ZhimaCustomerEpCertificationInitializeModel Data Structure. + /// + [Serializable] + public class ZhimaCustomerEpCertificationInitializeModel : AopObject + { + /// + /// 认证场景码,支持的场景码有EP_ALIPAY_ACCOUNT。签约的协议决定了可以使用哪些场景。 + /// + [JsonProperty("biz_code")] + public string BizCode { get; set; } + + /// + /// 扩展业务参数,暂时没有用到,接口预留 + /// + [JsonProperty("ext_biz_param")] + public string ExtBizParam { get; set; } + + /// + /// 值为一个json串,无入参时值为"{}",有入参时必须指定身份类型identity_type,不同的身份类型对应的身份信息不同。 + /// 当前支持的identity_type=EP_CERT_INFO ,身份信息为法人证件三要素与企业证件三要素,如 {"identity_type": "EP_CERT_INFO", "cert_type": "IDENTITY_CARD", "cert_name": "收委", "cert_no":"260104197909275964", "ep_cert_type": "NATIONAL_LEGAL_MERGE", "ep_cert_name": "xxx有限公司", "ep_cert_no":"91330000327827106L"}。 + /// 备注:上述json串中的 ep_cert_type 属性仅支持2种类型: NATIONAL_LEGAL:工商注册号;NATIONAL_LEGAL_MERGE : 社会统一信用代码。 + /// + [JsonProperty("identity_param")] + public string IdentityParam { get; set; } + + /// + /// 产品码,直接使用[示例]给出的值 + /// + [JsonProperty("product_code")] + public string ProductCode { get; set; } + + /// + /// 商户请求的唯一标志,32位长度的字母数字下划线组合。该标识作为对账的关键信息,商户要保证其唯一性.建议:前面几位字符是商户自定义的简称,中间可以使用一段日期,结尾可以使用一个序列 + /// + [JsonProperty("transaction_id")] + public string TransactionId { get; set; } + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationQueryModel.cs b/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationQueryModel.cs new file mode 100644 index 00000000..8de009a3 --- /dev/null +++ b/Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationQueryModel.cs @@ -0,0 +1,18 @@ +using System; +using Newtonsoft.Json; + +namespace Alipay.AopSdk.Core.Domain +{ + /// + /// ZhimaCustomerCertificationQueryModel Data Structure. + /// + [Serializable] + public class ZhimaCustomerEpCertificationQueryModel : AopObject + { + /// + /// 一次认证的唯一标识,在商户调用认证初始化接口的时候获取 + /// + [JsonProperty("biz_no")] + public string BizNo { get; set; } + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationCertifyRequest.cs b/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationCertifyRequest.cs new file mode 100644 index 00000000..7f3f85b1 --- /dev/null +++ b/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationCertifyRequest.cs @@ -0,0 +1,121 @@ +using System.Collections.Generic; +using Alipay.AopSdk.Core.Response; + +namespace Alipay.AopSdk.Core.Request +{ + /// + /// AOP API: zhima.customer.ep.certification.certify + /// + public class ZhimaCustomerEpCertificationCertifyRequest : IAopRequest + { + /// + /// 企业认证引导 + /// + public string BizContent { get; set; } + + #region IAopRequest Members + + private bool needEncrypt; + 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 needEncrypt; + } + + public void SetNotifyUrl(string notifyUrl) + { + this.notifyUrl = notifyUrl; + } + + public string GetNotifyUrl() + { + return notifyUrl; + } + + public void SetReturnUrl(string returnUrl) + { + this.returnUrl = returnUrl; + } + + public string GetReturnUrl() + { + return returnUrl; + } + + public void SetTerminalType(string terminalType) + { + this.terminalType = terminalType; + } + + public string GetTerminalType() + { + return terminalType; + } + + public void SetTerminalInfo(string terminalInfo) + { + this.terminalInfo = terminalInfo; + } + + public string GetTerminalInfo() + { + return terminalInfo; + } + + public void SetProdCode(string prodCode) + { + this.prodCode = prodCode; + } + + public string GetProdCode() + { + return prodCode; + } + + public string GetApiName() + { + return "zhima.customer.ep.certification.certify"; + } + + public void SetApiVersion(string apiVersion) + { + this.apiVersion = apiVersion; + } + + public string GetApiVersion() + { + return apiVersion; + } + + public IDictionary GetParameters() + { + var parameters = new AopDictionary(); + parameters.Add("biz_content", BizContent); + return parameters; + } + + public AopObject GetBizModel() + { + return bizModel; + } + + public void SetBizModel(AopObject bizModel) + { + this.bizModel = bizModel; + } + + #endregion + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationInitializeRequest.cs b/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationInitializeRequest.cs new file mode 100644 index 00000000..8c581c7c --- /dev/null +++ b/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationInitializeRequest.cs @@ -0,0 +1,121 @@ +using System.Collections.Generic; +using Alipay.AopSdk.Core.Response; + +namespace Alipay.AopSdk.Core.Request +{ + /// + /// AOP API: zhima.customer.ep.certification.initialize + /// + public class ZhimaCustomerEpCertificationInitializeRequest : IAopRequest + { + /// + /// 企业认证初始化 + /// + public string BizContent { get; set; } + + #region IAopRequest Members + + private bool needEncrypt; + 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 needEncrypt; + } + + public void SetNotifyUrl(string notifyUrl) + { + this.notifyUrl = notifyUrl; + } + + public string GetNotifyUrl() + { + return notifyUrl; + } + + public void SetReturnUrl(string returnUrl) + { + this.returnUrl = returnUrl; + } + + public string GetReturnUrl() + { + return returnUrl; + } + + public void SetTerminalType(string terminalType) + { + this.terminalType = terminalType; + } + + public string GetTerminalType() + { + return terminalType; + } + + public void SetTerminalInfo(string terminalInfo) + { + this.terminalInfo = terminalInfo; + } + + public string GetTerminalInfo() + { + return terminalInfo; + } + + public void SetProdCode(string prodCode) + { + this.prodCode = prodCode; + } + + public string GetProdCode() + { + return prodCode; + } + + public string GetApiName() + { + return "zhima.customer.ep.certification.initialize"; + } + + public void SetApiVersion(string apiVersion) + { + this.apiVersion = apiVersion; + } + + public string GetApiVersion() + { + return apiVersion; + } + + public IDictionary GetParameters() + { + var parameters = new AopDictionary(); + parameters.Add("biz_content", BizContent); + return parameters; + } + + public AopObject GetBizModel() + { + return bizModel; + } + + public void SetBizModel(AopObject bizModel) + { + this.bizModel = bizModel; + } + + #endregion + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationQueryRequest.cs b/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationQueryRequest.cs new file mode 100644 index 00000000..342d2beb --- /dev/null +++ b/Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationQueryRequest.cs @@ -0,0 +1,121 @@ +using System.Collections.Generic; +using Alipay.AopSdk.Core.Response; + +namespace Alipay.AopSdk.Core.Request +{ + /// + /// AOP API: zhima.customer.ep.certification.query + /// + public class ZhimaCustomerEpCertificationQueryRequest : IAopRequest + { + /// + /// 企业认证查询 + /// + public string BizContent { get; set; } + + #region IAopRequest Members + + private bool needEncrypt; + 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 needEncrypt; + } + + public void SetNotifyUrl(string notifyUrl) + { + this.notifyUrl = notifyUrl; + } + + public string GetNotifyUrl() + { + return notifyUrl; + } + + public void SetReturnUrl(string returnUrl) + { + this.returnUrl = returnUrl; + } + + public string GetReturnUrl() + { + return returnUrl; + } + + public void SetTerminalType(string terminalType) + { + this.terminalType = terminalType; + } + + public string GetTerminalType() + { + return terminalType; + } + + public void SetTerminalInfo(string terminalInfo) + { + this.terminalInfo = terminalInfo; + } + + public string GetTerminalInfo() + { + return terminalInfo; + } + + public void SetProdCode(string prodCode) + { + this.prodCode = prodCode; + } + + public string GetProdCode() + { + return prodCode; + } + + public string GetApiName() + { + return "zhima.customer.ep.certification.query"; + } + + public void SetApiVersion(string apiVersion) + { + this.apiVersion = apiVersion; + } + + public string GetApiVersion() + { + return apiVersion; + } + + public IDictionary GetParameters() + { + var parameters = new AopDictionary(); + parameters.Add("biz_content", BizContent); + return parameters; + } + + public AopObject GetBizModel() + { + return bizModel; + } + + public void SetBizModel(AopObject bizModel) + { + this.bizModel = bizModel; + } + + #endregion + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationCertifyResponse.cs b/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationCertifyResponse.cs new file mode 100644 index 00000000..36408c71 --- /dev/null +++ b/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationCertifyResponse.cs @@ -0,0 +1,28 @@ +using Newtonsoft.Json; + +namespace Alipay.AopSdk.Core.Response +{ + /// + /// ZhimaCustomerCertificationCertifyResponse. + /// + public class ZhimaCustomerEpCertificationCertifyResponse : AopResponse + { + /// + /// 一次认证的唯一标识,在商户调用认证初始化接口的时候获取,认证完成返回的biz_no和请求的一致 + /// + [JsonProperty("biz_no")] + public string BizNo { get; set; } + + /// + /// 如果认证没有通过会显示失败原因,如果需要详细的失败原因请使用认证查询接口 + /// + [JsonProperty("failed_reason")] + public string FailedReason { get; set; } + + /// + /// 认证是否通过,通过为true,不通过为false + /// + [JsonProperty("passed")] + public string Passed { get; set; } + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationInitializeResponse.cs b/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationInitializeResponse.cs new file mode 100644 index 00000000..629a39f9 --- /dev/null +++ b/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationInitializeResponse.cs @@ -0,0 +1,16 @@ +using Newtonsoft.Json; + +namespace Alipay.AopSdk.Core.Response +{ + /// + /// ZhimaCustomerCertificationInitializeResponse. + /// + public class ZhimaCustomerEpCertificationInitializeResponse : AopResponse + { + /// + /// 本次认证的唯一标识,商户需要记录 + /// + [JsonProperty("biz_no")] + public string BizNo { get; set; } + } +} \ No newline at end of file diff --git a/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationQueryResponse.cs b/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationQueryResponse.cs new file mode 100644 index 00000000..b56bac7c --- /dev/null +++ b/Alipay.AopSdk.Core/Response/ZhimaCustomerEpCertificationQueryResponse.cs @@ -0,0 +1,22 @@ +using Newtonsoft.Json; + +namespace Alipay.AopSdk.Core.Response +{ + /// + /// ZhimaCustomerCertificationQueryResponse. + /// + public class ZhimaCustomerEpCertificationQueryResponse : AopResponse + { + /// + /// 如果认证没有通过会显示失败原因,更详细的情况在channel_statuses参数里面 + /// + [JsonProperty("failed_reason")] + public string FailedReason { get; set; } + + /// + /// 认证是否通过,通过为true,不通过为false + /// + [JsonProperty("passed")] + public string Passed { get; set; } + } +} \ No newline at end of file