You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
3.9 KiB
C#

9 months ago
using System;
using System.Collections.Generic;
using Aop.Api.Response;
namespace Aop.Api.Request
{
/// <summary>
/// AOP API: alipay.ebpp.pdeduct.sign.cancel
/// </summary>
public class AlipayEbppPdeductSignCancelRequest : IAopRequest<AlipayEbppPdeductSignCancelResponse>
{
/// <summary>
/// 此值只是供代扣中心做最后的渠道统计用,并不做值是什么的强校验,只要不为空就可以
/// </summary>
public string AgentChannel { get; set; }
/// <summary>
/// 标识发起方的ID从服务窗发起则为appId的值appId即开放平台分配给接入ISV的id此处也可以随便真其它值只要能标识唯一即可
/// </summary>
public string AgentCode { get; set; }
/// <summary>
/// 支付宝代扣协议ID
/// </summary>
public string AgreementId { get; set; }
/// <summary>
/// 需要用户首先处于登陆态然后访问https://ebppprod.alipay.com/deduct/enterMobileicPayPassword.htm?cb=自己指定的回跳连接地址,访问页面后会进到独立密码校验页用户输入密码校验成功后会生成token回调到指定的回跳地址如果设置cb=www.baidu.com则最后回调的内容是www.baidu.com?token=312314ADFDSFAS,然后签约时直接取得地址后token的值即可
/// </summary>
public string PayPasswordToken { get; set; }
/// <summary>
/// 用户ID
/// </summary>
public string UserId { 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 string GetApiName()
{
return "alipay.ebpp.pdeduct.sign.cancel";
}
public void SetApiVersion(string apiVersion){
this.apiVersion=apiVersion;
}
public string GetApiVersion(){
return this.apiVersion;
}
public IDictionary<string, string> GetParameters()
{
AopDictionary parameters = new AopDictionary();
parameters.Add("agent_channel", this.AgentChannel);
parameters.Add("agent_code", this.AgentCode);
parameters.Add("agreement_id", this.AgreementId);
parameters.Add("pay_password_token", this.PayPasswordToken);
parameters.Add("user_id", this.UserId);
return parameters;
}
public AopObject GetBizModel()
{
return this.bizModel;
}
public void SetBizModel(AopObject bizModel)
{
this.bizModel = bizModel;
}
#endregion
}
}