forked from dotnetcore/Alipay.AopSdk.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Zhima.Customer.Ep.Certification.*
- Loading branch information
Showing
9 changed files
with
509 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationCertifyModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Alipay.AopSdk.Core.Domain | ||
{ | ||
/// <summary> | ||
/// ZhimaCustomerEpCertificationCertifyModel Data Structure. | ||
/// </summary> | ||
[Serializable] | ||
public class ZhimaCustomerEpCertificationCertifyModel : AopObject | ||
{ | ||
/// <summary> | ||
/// 一次认证的唯一标识,在完成芝麻认证初始化后可以获取 | ||
/// </summary> | ||
[JsonProperty("biz_no")] | ||
public string BizNo { get; set; } | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationInitializeModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Alipay.AopSdk.Core.Domain | ||
{ | ||
/// <summary> | ||
/// ZhimaCustomerEpCertificationInitializeModel Data Structure. | ||
/// </summary> | ||
[Serializable] | ||
public class ZhimaCustomerEpCertificationInitializeModel : AopObject | ||
{ | ||
/// <summary> | ||
/// 认证场景码,支持的场景码有EP_ALIPAY_ACCOUNT。签约的协议决定了可以使用哪些场景。 | ||
/// </summary> | ||
[JsonProperty("biz_code")] | ||
public string BizCode { get; set; } | ||
|
||
/// <summary> | ||
/// 扩展业务参数,暂时没有用到,接口预留 | ||
/// </summary> | ||
[JsonProperty("ext_biz_param")] | ||
public string ExtBizParam { get; set; } | ||
|
||
/// <summary> | ||
/// 值为一个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 : 社会统一信用代码。 | ||
/// </summary> | ||
[JsonProperty("identity_param")] | ||
public string IdentityParam { get; set; } | ||
|
||
/// <summary> | ||
/// 产品码,直接使用[示例]给出的值 | ||
/// </summary> | ||
[JsonProperty("product_code")] | ||
public string ProductCode { get; set; } | ||
|
||
/// <summary> | ||
/// 商户请求的唯一标志,32位长度的字母数字下划线组合。该标识作为对账的关键信息,商户要保证其唯一性.建议:前面几位字符是商户自定义的简称,中间可以使用一段日期,结尾可以使用一个序列 | ||
/// </summary> | ||
[JsonProperty("transaction_id")] | ||
public string TransactionId { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
Alipay.AopSdk.Core/Domain/ZhimaCustomerEpCertificationQueryModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Alipay.AopSdk.Core.Domain | ||
{ | ||
/// <summary> | ||
/// ZhimaCustomerCertificationQueryModel Data Structure. | ||
/// </summary> | ||
[Serializable] | ||
public class ZhimaCustomerEpCertificationQueryModel : AopObject | ||
{ | ||
/// <summary> | ||
/// 一次认证的唯一标识,在商户调用认证初始化接口的时候获取 | ||
/// </summary> | ||
[JsonProperty("biz_no")] | ||
public string BizNo { get; set; } | ||
} | ||
} |
121 changes: 121 additions & 0 deletions
121
Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationCertifyRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
using System.Collections.Generic; | ||
using Alipay.AopSdk.Core.Response; | ||
|
||
namespace Alipay.AopSdk.Core.Request | ||
{ | ||
/// <summary> | ||
/// AOP API: zhima.customer.ep.certification.certify | ||
/// </summary> | ||
public class ZhimaCustomerEpCertificationCertifyRequest : IAopRequest<ZhimaCustomerEpCertificationCertifyResponse> | ||
{ | ||
/// <summary> | ||
/// 企业认证引导 | ||
/// </summary> | ||
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<string, string> 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 | ||
} | ||
} |
121 changes: 121 additions & 0 deletions
121
Alipay.AopSdk.Core/Request/ZhimaCustomerEpCertificationInitializeRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
using System.Collections.Generic; | ||
using Alipay.AopSdk.Core.Response; | ||
|
||
namespace Alipay.AopSdk.Core.Request | ||
{ | ||
/// <summary> | ||
/// AOP API: zhima.customer.ep.certification.initialize | ||
/// </summary> | ||
public class ZhimaCustomerEpCertificationInitializeRequest : IAopRequest<ZhimaCustomerEpCertificationInitializeResponse> | ||
{ | ||
/// <summary> | ||
/// 企业认证初始化 | ||
/// </summary> | ||
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<string, string> 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 | ||
} | ||
} |
Oops, something went wrong.