using System;
using System.Collections.Generic;
using Aop.Api.Response;
namespace Aop.Api.Request
{
///
/// AOP API: alipay.ebpp.pdeduct.pay
///
public class AlipayEbppPdeductPayRequest : IAopRequest
{
///
/// 渠道码,如用户通过机构通过服务窗进来签约则是PUBLICFORM,此值可随意传,只要不空就行
///
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; }
///
/// 用户ID
///
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.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;
}
public AopObject GetBizModel()
{
return this.bizModel;
}
public void SetBizModel(AopObject bizModel)
{
this.bizModel = bizModel;
}
#endregion
}
}