AlipayOpenAgentCommonsignConfirmRequest.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. using System;
  2. using Aop.Api.Domain;
  3. using System.Collections.Generic;
  4. using Aop.Api.Response;
  5. namespace Aop.Api.Request
  6. {
  7. /// <summary>
  8. /// AOP API: alipay.open.agent.commonsign.confirm
  9. /// </summary>
  10. public class AlipayOpenAgentCommonsignConfirmRequest : IAopRequest<AlipayOpenAgentCommonsignConfirmResponse>
  11. {
  12. /// <summary>
  13. /// 代商户签约,提交信息确认接口
  14. /// </summary>
  15. public string BizContent { get; set; }
  16. #region IAopRequest Members
  17. private bool needEncrypt=false;
  18. private string apiVersion = "1.0";
  19. private string terminalType;
  20. private string terminalInfo;
  21. private string prodCode;
  22. private string notifyUrl;
  23. private string returnUrl;
  24. private AopObject bizModel;
  25. private Dictionary<string, string> udfParams; //add user-defined text parameters
  26. public void SetNeedEncrypt(bool needEncrypt){
  27. this.needEncrypt=needEncrypt;
  28. }
  29. public bool GetNeedEncrypt(){
  30. return this.needEncrypt;
  31. }
  32. public void SetNotifyUrl(string notifyUrl){
  33. this.notifyUrl = notifyUrl;
  34. }
  35. public string GetNotifyUrl(){
  36. return this.notifyUrl;
  37. }
  38. public void SetReturnUrl(string returnUrl){
  39. this.returnUrl = returnUrl;
  40. }
  41. public string GetReturnUrl(){
  42. return this.returnUrl;
  43. }
  44. public void SetTerminalType(String terminalType){
  45. this.terminalType=terminalType;
  46. }
  47. public string GetTerminalType(){
  48. return this.terminalType;
  49. }
  50. public void SetTerminalInfo(String terminalInfo){
  51. this.terminalInfo=terminalInfo;
  52. }
  53. public string GetTerminalInfo(){
  54. return this.terminalInfo;
  55. }
  56. public void SetProdCode(String prodCode){
  57. this.prodCode=prodCode;
  58. }
  59. public string GetProdCode(){
  60. return this.prodCode;
  61. }
  62. public string GetApiName()
  63. {
  64. return "alipay.open.agent.commonsign.confirm";
  65. }
  66. public void SetApiVersion(string apiVersion){
  67. this.apiVersion=apiVersion;
  68. }
  69. public string GetApiVersion(){
  70. return this.apiVersion;
  71. }
  72. public void PutOtherTextParam(string key, string value)
  73. {
  74. if(this.udfParams == null)
  75. {
  76. this.udfParams = new Dictionary<string, string>();
  77. }
  78. this.udfParams.Add(key, value);
  79. }
  80. public IDictionary<string, string> GetParameters()
  81. {
  82. AopDictionary parameters = new AopDictionary();
  83. parameters.Add("biz_content", this.BizContent);
  84. if(udfParams != null)
  85. {
  86. foreach (string key in this.udfParams.Keys)
  87. {
  88. parameters.Add(key, this.udfParams[key]);
  89. }
  90. }
  91. return parameters;
  92. }
  93. public AopObject GetBizModel()
  94. {
  95. return this.bizModel;
  96. }
  97. public void SetBizModel(AopObject bizModel)
  98. {
  99. this.bizModel = bizModel;
  100. }
  101. #endregion
  102. }
  103. }