AlipayEbppBillAddRequest.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.bill.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018-01-22 21:21:47
  7. */
  8. class AlipayEbppBillAddRequest
  9. {
  10. /**
  11. * 外部订单号
  12. **/
  13. private $bankBillNo;
  14. /**
  15. * 账单的账期,例如201203表示2012年3月的账单。
  16. **/
  17. private $billDate;
  18. /**
  19. * 账单单据号,例如水费单号,手机号,电费号,信用卡卡号。没有唯一性要求。
  20. **/
  21. private $billKey;
  22. /**
  23. * 支付宝给每个出账机构指定了一个对应的英文短名称来唯一表示该收费单位。
  24. **/
  25. private $chargeInst;
  26. /**
  27. * 扩展属性
  28. **/
  29. private $extendField;
  30. /**
  31. * 输出机构的业务流水号,需要保证唯一性
  32. **/
  33. private $merchantOrderNo;
  34. /**
  35. * 用户的手机号
  36. **/
  37. private $mobile;
  38. /**
  39. * 支付宝订单类型。公共事业缴纳JF,信用卡还款HK
  40. **/
  41. private $orderType;
  42. /**
  43. * 拥有该账单的用户姓名
  44. **/
  45. private $ownerName;
  46. /**
  47. * 缴费金额。用户支付的总金额。单位为:RMB Yuan。取值范围为[0.01,100000000.00],精确到小数点后两位。
  48. **/
  49. private $payAmount;
  50. /**
  51. * 账单的服务费。
  52. **/
  53. private $serviceAmount;
  54. /**
  55. * 子业务类型是业务类型的下一级概念,例如:WATER表示JF下面的水费,ELECTRIC表示JF下面的电费,GAS表示JF下面的燃气费。
  56. **/
  57. private $subOrderType;
  58. /**
  59. * 交通违章地点,sub_order_type=TRAFFIC时填写。
  60. **/
  61. private $trafficLocation;
  62. /**
  63. * 违章行为,sub_order_type=TRAFFIC时填写。
  64. **/
  65. private $trafficRegulations;
  66. private $apiParas = array();
  67. private $terminalType;
  68. private $terminalInfo;
  69. private $prodCode;
  70. private $apiVersion="1.0";
  71. private $notifyUrl;
  72. private $returnUrl;
  73. private $needEncrypt=false;
  74. public function setBankBillNo($bankBillNo)
  75. {
  76. $this->bankBillNo = $bankBillNo;
  77. $this->apiParas["bank_bill_no"] = $bankBillNo;
  78. }
  79. public function getBankBillNo()
  80. {
  81. return $this->bankBillNo;
  82. }
  83. public function setBillDate($billDate)
  84. {
  85. $this->billDate = $billDate;
  86. $this->apiParas["bill_date"] = $billDate;
  87. }
  88. public function getBillDate()
  89. {
  90. return $this->billDate;
  91. }
  92. public function setBillKey($billKey)
  93. {
  94. $this->billKey = $billKey;
  95. $this->apiParas["bill_key"] = $billKey;
  96. }
  97. public function getBillKey()
  98. {
  99. return $this->billKey;
  100. }
  101. public function setChargeInst($chargeInst)
  102. {
  103. $this->chargeInst = $chargeInst;
  104. $this->apiParas["charge_inst"] = $chargeInst;
  105. }
  106. public function getChargeInst()
  107. {
  108. return $this->chargeInst;
  109. }
  110. public function setExtendField($extendField)
  111. {
  112. $this->extendField = $extendField;
  113. $this->apiParas["extend_field"] = $extendField;
  114. }
  115. public function getExtendField()
  116. {
  117. return $this->extendField;
  118. }
  119. public function setMerchantOrderNo($merchantOrderNo)
  120. {
  121. $this->merchantOrderNo = $merchantOrderNo;
  122. $this->apiParas["merchant_order_no"] = $merchantOrderNo;
  123. }
  124. public function getMerchantOrderNo()
  125. {
  126. return $this->merchantOrderNo;
  127. }
  128. public function setMobile($mobile)
  129. {
  130. $this->mobile = $mobile;
  131. $this->apiParas["mobile"] = $mobile;
  132. }
  133. public function getMobile()
  134. {
  135. return $this->mobile;
  136. }
  137. public function setOrderType($orderType)
  138. {
  139. $this->orderType = $orderType;
  140. $this->apiParas["order_type"] = $orderType;
  141. }
  142. public function getOrderType()
  143. {
  144. return $this->orderType;
  145. }
  146. public function setOwnerName($ownerName)
  147. {
  148. $this->ownerName = $ownerName;
  149. $this->apiParas["owner_name"] = $ownerName;
  150. }
  151. public function getOwnerName()
  152. {
  153. return $this->ownerName;
  154. }
  155. public function setPayAmount($payAmount)
  156. {
  157. $this->payAmount = $payAmount;
  158. $this->apiParas["pay_amount"] = $payAmount;
  159. }
  160. public function getPayAmount()
  161. {
  162. return $this->payAmount;
  163. }
  164. public function setServiceAmount($serviceAmount)
  165. {
  166. $this->serviceAmount = $serviceAmount;
  167. $this->apiParas["service_amount"] = $serviceAmount;
  168. }
  169. public function getServiceAmount()
  170. {
  171. return $this->serviceAmount;
  172. }
  173. public function setSubOrderType($subOrderType)
  174. {
  175. $this->subOrderType = $subOrderType;
  176. $this->apiParas["sub_order_type"] = $subOrderType;
  177. }
  178. public function getSubOrderType()
  179. {
  180. return $this->subOrderType;
  181. }
  182. public function setTrafficLocation($trafficLocation)
  183. {
  184. $this->trafficLocation = $trafficLocation;
  185. $this->apiParas["traffic_location"] = $trafficLocation;
  186. }
  187. public function getTrafficLocation()
  188. {
  189. return $this->trafficLocation;
  190. }
  191. public function setTrafficRegulations($trafficRegulations)
  192. {
  193. $this->trafficRegulations = $trafficRegulations;
  194. $this->apiParas["traffic_regulations"] = $trafficRegulations;
  195. }
  196. public function getTrafficRegulations()
  197. {
  198. return $this->trafficRegulations;
  199. }
  200. public function getApiMethodName()
  201. {
  202. return "alipay.ebpp.bill.add";
  203. }
  204. public function setNotifyUrl($notifyUrl)
  205. {
  206. $this->notifyUrl=$notifyUrl;
  207. }
  208. public function getNotifyUrl()
  209. {
  210. return $this->notifyUrl;
  211. }
  212. public function setReturnUrl($returnUrl)
  213. {
  214. $this->returnUrl=$returnUrl;
  215. }
  216. public function getReturnUrl()
  217. {
  218. return $this->returnUrl;
  219. }
  220. public function getApiParas()
  221. {
  222. return $this->apiParas;
  223. }
  224. public function getTerminalType()
  225. {
  226. return $this->terminalType;
  227. }
  228. public function setTerminalType($terminalType)
  229. {
  230. $this->terminalType = $terminalType;
  231. }
  232. public function getTerminalInfo()
  233. {
  234. return $this->terminalInfo;
  235. }
  236. public function setTerminalInfo($terminalInfo)
  237. {
  238. $this->terminalInfo = $terminalInfo;
  239. }
  240. public function getProdCode()
  241. {
  242. return $this->prodCode;
  243. }
  244. public function setProdCode($prodCode)
  245. {
  246. $this->prodCode = $prodCode;
  247. }
  248. public function setApiVersion($apiVersion)
  249. {
  250. $this->apiVersion=$apiVersion;
  251. }
  252. public function getApiVersion()
  253. {
  254. return $this->apiVersion;
  255. }
  256. public function setNeedEncrypt($needEncrypt)
  257. {
  258. $this->needEncrypt=$needEncrypt;
  259. }
  260. public function getNeedEncrypt()
  261. {
  262. return $this->needEncrypt;
  263. }
  264. }