AlipayEbppPdeductPayRequest.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.pdeduct.pay request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018-05-18 17:15:00
  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. * 商户外部业务流水号
  47. **/
  48. private $outOrderNo;
  49. /**
  50. * 扣款金额,支付总金额,包含滞纳金
  51. **/
  52. private $payAmount;
  53. /**
  54. * 商户PartnerId
  55. **/
  56. private $pid;
  57. /**
  58. * 用户ID
  59. **/
  60. private $userId;
  61. private $apiParas = array();
  62. private $terminalType;
  63. private $terminalInfo;
  64. private $prodCode;
  65. private $apiVersion="1.0";
  66. private $notifyUrl;
  67. private $returnUrl;
  68. private $needEncrypt=false;
  69. public function setAgentChannel($agentChannel)
  70. {
  71. $this->agentChannel = $agentChannel;
  72. $this->apiParas["agent_channel"] = $agentChannel;
  73. }
  74. public function getAgentChannel()
  75. {
  76. return $this->agentChannel;
  77. }
  78. public function setAgentCode($agentCode)
  79. {
  80. $this->agentCode = $agentCode;
  81. $this->apiParas["agent_code"] = $agentCode;
  82. }
  83. public function getAgentCode()
  84. {
  85. return $this->agentCode;
  86. }
  87. public function setAgreementId($agreementId)
  88. {
  89. $this->agreementId = $agreementId;
  90. $this->apiParas["agreement_id"] = $agreementId;
  91. }
  92. public function getAgreementId()
  93. {
  94. return $this->agreementId;
  95. }
  96. public function setBillDate($billDate)
  97. {
  98. $this->billDate = $billDate;
  99. $this->apiParas["bill_date"] = $billDate;
  100. }
  101. public function getBillDate()
  102. {
  103. return $this->billDate;
  104. }
  105. public function setBillKey($billKey)
  106. {
  107. $this->billKey = $billKey;
  108. $this->apiParas["bill_key"] = $billKey;
  109. }
  110. public function getBillKey()
  111. {
  112. return $this->billKey;
  113. }
  114. public function setExtendField($extendField)
  115. {
  116. $this->extendField = $extendField;
  117. $this->apiParas["extend_field"] = $extendField;
  118. }
  119. public function getExtendField()
  120. {
  121. return $this->extendField;
  122. }
  123. public function setFineAmount($fineAmount)
  124. {
  125. $this->fineAmount = $fineAmount;
  126. $this->apiParas["fine_amount"] = $fineAmount;
  127. }
  128. public function getFineAmount()
  129. {
  130. return $this->fineAmount;
  131. }
  132. public function setMemo($memo)
  133. {
  134. $this->memo = $memo;
  135. $this->apiParas["memo"] = $memo;
  136. }
  137. public function getMemo()
  138. {
  139. return $this->memo;
  140. }
  141. public function setOutOrderNo($outOrderNo)
  142. {
  143. $this->outOrderNo = $outOrderNo;
  144. $this->apiParas["out_order_no"] = $outOrderNo;
  145. }
  146. public function getOutOrderNo()
  147. {
  148. return $this->outOrderNo;
  149. }
  150. public function setPayAmount($payAmount)
  151. {
  152. $this->payAmount = $payAmount;
  153. $this->apiParas["pay_amount"] = $payAmount;
  154. }
  155. public function getPayAmount()
  156. {
  157. return $this->payAmount;
  158. }
  159. public function setPid($pid)
  160. {
  161. $this->pid = $pid;
  162. $this->apiParas["pid"] = $pid;
  163. }
  164. public function getPid()
  165. {
  166. return $this->pid;
  167. }
  168. public function setUserId($userId)
  169. {
  170. $this->userId = $userId;
  171. $this->apiParas["user_id"] = $userId;
  172. }
  173. public function getUserId()
  174. {
  175. return $this->userId;
  176. }
  177. public function getApiMethodName()
  178. {
  179. return "alipay.ebpp.pdeduct.pay";
  180. }
  181. public function setNotifyUrl($notifyUrl)
  182. {
  183. $this->notifyUrl=$notifyUrl;
  184. }
  185. public function getNotifyUrl()
  186. {
  187. return $this->notifyUrl;
  188. }
  189. public function setReturnUrl($returnUrl)
  190. {
  191. $this->returnUrl=$returnUrl;
  192. }
  193. public function getReturnUrl()
  194. {
  195. return $this->returnUrl;
  196. }
  197. public function getApiParas()
  198. {
  199. return $this->apiParas;
  200. }
  201. public function getTerminalType()
  202. {
  203. return $this->terminalType;
  204. }
  205. public function setTerminalType($terminalType)
  206. {
  207. $this->terminalType = $terminalType;
  208. }
  209. public function getTerminalInfo()
  210. {
  211. return $this->terminalInfo;
  212. }
  213. public function setTerminalInfo($terminalInfo)
  214. {
  215. $this->terminalInfo = $terminalInfo;
  216. }
  217. public function getProdCode()
  218. {
  219. return $this->prodCode;
  220. }
  221. public function setProdCode($prodCode)
  222. {
  223. $this->prodCode = $prodCode;
  224. }
  225. public function setApiVersion($apiVersion)
  226. {
  227. $this->apiVersion=$apiVersion;
  228. }
  229. public function getApiVersion()
  230. {
  231. return $this->apiVersion;
  232. }
  233. public function setNeedEncrypt($needEncrypt)
  234. {
  235. $this->needEncrypt=$needEncrypt;
  236. }
  237. public function getNeedEncrypt()
  238. {
  239. return $this->needEncrypt;
  240. }
  241. }