using System; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// /// AOP API: alipay.ebpp.pdeduct.pay /// public class AlipayEbppPdeductPayRequest : IAopRequest { /// /// 分配给外部机构发起扣款时的渠道码。朗新为LANGXIN /// public string AgentChannel { get; set; } /// /// 二级渠道码,预留字段 /// public string AgentCode { get; set; } /// /// 支付宝代扣协议Id /// public string AgreementId { get; set; } /// /// 账期 /// public string BillDate { get; set; } /// /// 户号 /// public string BillKey { get; set; } /// /// 扩展参数。必须以key value形式定义, 转为json为格式:{"key1":"value1","key2":"value2", "key3":"value3","key4":"value4"} 后端会直接转换为MAP对象,转换异常会报参数格式错误 /// public string ExtendField { get; set; } /// /// 滞纳金 /// public string FineAmount { get; set; } /// /// 备注信息 /// public string Memo { get; set; } /// /// 商户外部业务流水号 /// public string OutOrderNo { get; set; } /// /// 扣款金额,支付总金额,包含滞纳金 /// public string PayAmount { get; set; } /// /// 商户PartnerId /// public string Pid { get; set; } /// /// 通过服务窗拿到的openId /// public string UserId { get; set; } #region IAopRequest Members private string apiVersion = "1.0"; private string terminalType; private string terminalInfo; private string prodCode; private string notifyUrl; public void SetNotifyUrl(string notifyUrl){ this.notifyUrl = notifyUrl; } public string GetNotifyUrl(){ return this.notifyUrl; } 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.pay"; } public void SetApiVersion(string apiVersion){ this.apiVersion=apiVersion; } public string GetApiVersion(){ return this.apiVersion; } public IDictionary 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("bill_date", this.BillDate); parameters.Add("bill_key", this.BillKey); parameters.Add("extend_field", this.ExtendField); parameters.Add("fine_amount", this.FineAmount); parameters.Add("memo", this.Memo); parameters.Add("out_order_no", this.OutOrderNo); parameters.Add("pay_amount", this.PayAmount); parameters.Add("pid", this.Pid); parameters.Add("user_id", this.UserId); return parameters; } #endregion } }