AlipayPassTplContentAddRequest.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.pass.tpl.content.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayPassTplContentAddRequest
  9. {
  10. /**
  11. * 支付宝用户识别信息:
  12. 当 recognition_type=1时, recognition_info={“partner_id”:”2088102114633762”,“out_trade_no”:”1234567”};
  13. 当recognition_type=3时,recognition_info={“mobile”:”136XXXXXXXX“}
  14. 当recognition_type=4时, recognition_info={“open_id”:”afbd8d9bb12fc02c5094d8ea89d1fae8“}
  15. **/
  16. private $recognitionInfo;
  17. /**
  18. * Alipass添加对象识别类型【1--订单信息;3--支付宝用户绑定手机号;4--支付宝OpenId;】
  19. **/
  20. private $recognitionType;
  21. /**
  22. * 支付宝pass模版ID
  23. **/
  24. private $tplId;
  25. /**
  26. * 模版动态参数信息【支付宝pass模版参数键值对JSON字符串】
  27. **/
  28. private $tplParams;
  29. private $apiParas = array();
  30. private $terminalType;
  31. private $terminalInfo;
  32. private $prodCode;
  33. private $apiVersion="1.0";
  34. private $notifyUrl;
  35. private $returnUrl;
  36. private $needEncrypt=false;
  37. public function setRecognitionInfo($recognitionInfo)
  38. {
  39. $this->recognitionInfo = $recognitionInfo;
  40. $this->apiParas["recognition_info"] = $recognitionInfo;
  41. }
  42. public function getRecognitionInfo()
  43. {
  44. return $this->recognitionInfo;
  45. }
  46. public function setRecognitionType($recognitionType)
  47. {
  48. $this->recognitionType = $recognitionType;
  49. $this->apiParas["recognition_type"] = $recognitionType;
  50. }
  51. public function getRecognitionType()
  52. {
  53. return $this->recognitionType;
  54. }
  55. public function setTplId($tplId)
  56. {
  57. $this->tplId = $tplId;
  58. $this->apiParas["tpl_id"] = $tplId;
  59. }
  60. public function getTplId()
  61. {
  62. return $this->tplId;
  63. }
  64. public function setTplParams($tplParams)
  65. {
  66. $this->tplParams = $tplParams;
  67. $this->apiParas["tpl_params"] = $tplParams;
  68. }
  69. public function getTplParams()
  70. {
  71. return $this->tplParams;
  72. }
  73. public function getApiMethodName()
  74. {
  75. return "alipay.pass.tpl.content.add";
  76. }
  77. public function setNotifyUrl($notifyUrl)
  78. {
  79. $this->notifyUrl=$notifyUrl;
  80. }
  81. public function getNotifyUrl()
  82. {
  83. return $this->notifyUrl;
  84. }
  85. public function setReturnUrl($returnUrl)
  86. {
  87. $this->returnUrl=$returnUrl;
  88. }
  89. public function getReturnUrl()
  90. {
  91. return $this->returnUrl;
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function getTerminalType()
  98. {
  99. return $this->terminalType;
  100. }
  101. public function setTerminalType($terminalType)
  102. {
  103. $this->terminalType = $terminalType;
  104. }
  105. public function getTerminalInfo()
  106. {
  107. return $this->terminalInfo;
  108. }
  109. public function setTerminalInfo($terminalInfo)
  110. {
  111. $this->terminalInfo = $terminalInfo;
  112. }
  113. public function getProdCode()
  114. {
  115. return $this->prodCode;
  116. }
  117. public function setProdCode($prodCode)
  118. {
  119. $this->prodCode = $prodCode;
  120. }
  121. public function setApiVersion($apiVersion)
  122. {
  123. $this->apiVersion=$apiVersion;
  124. }
  125. public function getApiVersion()
  126. {
  127. return $this->apiVersion;
  128. }
  129. public function setNeedEncrypt($needEncrypt)
  130. {
  131. $this->needEncrypt=$needEncrypt;
  132. }
  133. public function getNeedEncrypt()
  134. {
  135. return $this->needEncrypt;
  136. }
  137. }