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.

175 lines
4.7 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using Aop.Api.Response;
namespace Aop.Api.Request
{
/// <summary>
/// AOP API: alipay.ebpp.pdeduct.pay
/// </summary>
public class AlipayEbppPdeductPayRequest : IAopRequest<AlipayEbppPdeductPayResponse>
{
/// <summary>
/// 渠道码如用户通过机构通过服务窗进来签约则是PUBLICFORM此值可随意传只要不空就行
/// </summary>
public string AgentChannel { get; set; }
/// <summary>
/// 二级渠道码,预留字段
/// </summary>
public string AgentCode { get; set; }
/// <summary>
/// 支付宝代扣协议Id
/// </summary>
public string AgreementId { get; set; }
/// <summary>
/// 账期
/// </summary>
public string BillDate { get; set; }
/// <summary>
/// 户号,缴费单位用于标识每一户的唯一性的
/// </summary>
public string BillKey { get; set; }
/// <summary>
/// 扩展参数。必须以key value形式定义 转为json为格式{"key1":"value1","key2":"value2", "key3":"value3","key4":"value4"} 后端会直接转换为MAP对象转换异常会报参数格式错误
/// </summary>
public string ExtendField { get; set; }
/// <summary>
/// 滞纳金
/// </summary>
public string FineAmount { get; set; }
/// <summary>
/// 备注信息
/// </summary>
public string Memo { get; set; }
/// <summary>
/// 商户外部业务流水号
/// </summary>
public string OutOrderNo { get; set; }
/// <summary>
/// 扣款金额,支付总金额,包含滞纳金
/// </summary>
public string PayAmount { get; set; }
/// <summary>
/// 商户PartnerId
/// </summary>
public string Pid { 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.pay";
}
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("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
}
}