AlipayEbppPdeductPayRequest.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.pdeduct.pay request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-04-03 07:56:53
  7. */
  8. class AlipayEbppPdeductPayRequest
  9. {
  10. /**
  11. * 渠道码,如用户通过机构通过服务窗进来签约则是PUBLICFORM,此值可随意传,只要不空就行
  12. **/
  13. private $agentChannel;
  14. /**
  15. * 二级渠道码,预留字段
  16. **/
  17. private $agentCode;
  18. /**
  19. * 支付宝代扣协议Id
  20. **/
  21. private $agreementId;
  22. /**
  23. * 账期
  24. **/
  25. private $billDate;
  26. /**
  27. * 户号,缴费单位用于标识每一户的唯一性的
  28. **/
  29. private $billKey;
  30. /**
  31. * 扩展参数。必须以key value形式定义,
  32. 转为json为格式:{"key1":"value1","key2":"value2",
  33. "key3":"value3","key4":"value4"}
  34. 后端会直接转换为MAP对象,转换异常会报参数格式错误
  35. **/
  36. private $extendField;
  37. /**
  38. * 滞纳金
  39. **/
  40. private $fineAmount;
  41. /**
  42. * 备注信息
  43. **/
  44. private $memo;
  45. /**
  46. * 用户UserId在应用AppId下的唯一用户标识
  47. **/
  48. private $openId;
  49. /**
  50. * 商户外部业务流水号
  51. **/
  52. private $outOrderNo;
  53. /**
  54. * 扣款金额,支付总金额,包含滞纳金
  55. **/
  56. private $payAmount;
  57. /**
  58. * 商户PartnerId
  59. **/
  60. private $pid;
  61. /**
  62. * 用户ID
  63. **/
  64. private $userId;
  65. private $apiParas = array();
  66. private $terminalType;
  67. private $terminalInfo;
  68. private $prodCode;
  69. private $apiVersion="1.0";
  70. private $notifyUrl;
  71. private $returnUrl;
  72. private $needEncrypt=false;
  73. public function setAgentChannel($agentChannel)
  74. {
  75. $this->agentChannel = $agentChannel;
  76. $this->apiParas["agent_channel"] = $agentChannel;
  77. }
  78. public function getAgentChannel()
  79. {
  80. return $this->agentChannel;
  81. }
  82. public function setAgentCode($agentCode)
  83. {
  84. $this->agentCode = $agentCode;
  85. $this->apiParas["agent_code"] = $agentCode;
  86. }
  87. public function getAgentCode()
  88. {
  89. return $this->agentCode;
  90. }
  91. public function setAgreementId($agreementId)
  92. {
  93. $this->agreementId = $agreementId;
  94. $this->apiParas["agreement_id"] = $agreementId;
  95. }
  96. public function getAgreementId()
  97. {
  98. return $this->agreementId;
  99. }
  100. public function setBillDate($billDate)
  101. {
  102. $this->billDate = $billDate;
  103. $this->apiParas["bill_date"] = $billDate;
  104. }
  105. public function getBillDate()
  106. {
  107. return $this->billDate;
  108. }
  109. public function setBillKey($billKey)
  110. {
  111. $this->billKey = $billKey;
  112. $this->apiParas["bill_key"] = $billKey;
  113. }
  114. public function getBillKey()
  115. {
  116. return $this->billKey;
  117. }
  118. public function setExtendField($extendField)
  119. {
  120. $this->extendField = $extendField;
  121. $this->apiParas["extend_field"] = $extendField;
  122. }
  123. public function getExtendField()
  124. {
  125. return $this->extendField;
  126. }
  127. public function setFineAmount($fineAmount)
  128. {
  129. $this->fineAmount = $fineAmount;
  130. $this->apiParas["fine_amount"] = $fineAmount;
  131. }
  132. public function getFineAmount()
  133. {
  134. return $this->fineAmount;
  135. }
  136. public function setMemo($memo)
  137. {
  138. $this->memo = $memo;
  139. $this->apiParas["memo"] = $memo;
  140. }
  141. public function getMemo()
  142. {
  143. return $this->memo;
  144. }
  145. public function setOpenId($openId)
  146. {
  147. $this->openId = $openId;
  148. $this->apiParas["open_id"] = $openId;
  149. }
  150. public function getOpenId()
  151. {
  152. return $this->openId;
  153. }
  154. public function setOutOrderNo($outOrderNo)
  155. {
  156. $this->outOrderNo = $outOrderNo;
  157. $this->apiParas["out_order_no"] = $outOrderNo;
  158. }
  159. public function getOutOrderNo()
  160. {
  161. return $this->outOrderNo;
  162. }
  163. public function setPayAmount($payAmount)
  164. {
  165. $this->payAmount = $payAmount;
  166. $this->apiParas["pay_amount"] = $payAmount;
  167. }
  168. public function getPayAmount()
  169. {
  170. return $this->payAmount;
  171. }
  172. public function setPid($pid)
  173. {
  174. $this->pid = $pid;
  175. $this->apiParas["pid"] = $pid;
  176. }
  177. public function getPid()
  178. {
  179. return $this->pid;
  180. }
  181. public function setUserId($userId)
  182. {
  183. $this->userId = $userId;
  184. $this->apiParas["user_id"] = $userId;
  185. }
  186. public function getUserId()
  187. {
  188. return $this->userId;
  189. }
  190. public function getApiMethodName()
  191. {
  192. return "alipay.ebpp.pdeduct.pay";
  193. }
  194. public function setNotifyUrl($notifyUrl)
  195. {
  196. $this->notifyUrl=$notifyUrl;
  197. }
  198. public function getNotifyUrl()
  199. {
  200. return $this->notifyUrl;
  201. }
  202. public function setReturnUrl($returnUrl)
  203. {
  204. $this->returnUrl=$returnUrl;
  205. }
  206. public function getReturnUrl()
  207. {
  208. return $this->returnUrl;
  209. }
  210. public function getApiParas()
  211. {
  212. return $this->apiParas;
  213. }
  214. public function getTerminalType()
  215. {
  216. return $this->terminalType;
  217. }
  218. public function setTerminalType($terminalType)
  219. {
  220. $this->terminalType = $terminalType;
  221. }
  222. public function getTerminalInfo()
  223. {
  224. return $this->terminalInfo;
  225. }
  226. public function setTerminalInfo($terminalInfo)
  227. {
  228. $this->terminalInfo = $terminalInfo;
  229. }
  230. public function getProdCode()
  231. {
  232. return $this->prodCode;
  233. }
  234. public function setProdCode($prodCode)
  235. {
  236. $this->prodCode = $prodCode;
  237. }
  238. public function setApiVersion($apiVersion)
  239. {
  240. $this->apiVersion=$apiVersion;
  241. }
  242. public function getApiVersion()
  243. {
  244. return $this->apiVersion;
  245. }
  246. public function setNeedEncrypt($needEncrypt)
  247. {
  248. $this->needEncrypt=$needEncrypt;
  249. }
  250. public function getNeedEncrypt()
  251. {
  252. return $this->needEncrypt;
  253. }
  254. }