AlipayEbppBillAddRequest.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.bill.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-04-03 07:44:22
  7. */
  8. class AlipayEbppBillAddRequest
  9. {
  10. /**
  11. * 外部订单号
  12. **/
  13. private $bankBillNo;
  14. /**
  15. * 账单的账期,格式为 yyyyMMdd。例如:202012表示2020年12月的账单。
  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. * 支付宝订单类型。枚举支持:
  40. *JF:公共事业缴纳。
  41. *WUYE:物业缴费。
  42. *HK:信用卡还款。
  43. *TX:通讯缴费。
  44. **/
  45. private $orderType;
  46. /**
  47. * 拥有该账单的用户姓名
  48. **/
  49. private $ownerName;
  50. /**
  51. * 缴费金额。用户支付的总金额。单位为 元(人民币)。取值范围为[0.01,100000000.00],精确到小数点后两位。
  52. **/
  53. private $payAmount;
  54. /**
  55. * 账单的服务费。
  56. **/
  57. private $serviceAmount;
  58. /**
  59. * 子业务类型是业务类型的下一级概念。枚举支持:
  60. *WATER:缴水费。
  61. *ELECTRIC:缴电费。
  62. *GAS:缴燃气费。
  63. *COMMUN:缴固话宽带费。
  64. *CATV:缴有线电视费。
  65. *WUYE:缴物业费。
  66. *RC:定期还车贷代扣。
  67. *RH:定期还房贷代扣。
  68. *RR:定期还房租代扣。
  69. *RN:定期还网贷代扣。
  70. *CZ:手机充值代扣。
  71. 例如:WATER表示JF下面的水费。
  72. **/
  73. private $subOrderType;
  74. /**
  75. * 交通违章地点,sub_order_type=TRAFFIC时填写。
  76. **/
  77. private $trafficLocation;
  78. /**
  79. * 违章行为,sub_order_type=TRAFFIC时填写。
  80. **/
  81. private $trafficRegulations;
  82. private $apiParas = array();
  83. private $terminalType;
  84. private $terminalInfo;
  85. private $prodCode;
  86. private $apiVersion="1.0";
  87. private $notifyUrl;
  88. private $returnUrl;
  89. private $needEncrypt=false;
  90. public function setBankBillNo($bankBillNo)
  91. {
  92. $this->bankBillNo = $bankBillNo;
  93. $this->apiParas["bank_bill_no"] = $bankBillNo;
  94. }
  95. public function getBankBillNo()
  96. {
  97. return $this->bankBillNo;
  98. }
  99. public function setBillDate($billDate)
  100. {
  101. $this->billDate = $billDate;
  102. $this->apiParas["bill_date"] = $billDate;
  103. }
  104. public function getBillDate()
  105. {
  106. return $this->billDate;
  107. }
  108. public function setBillKey($billKey)
  109. {
  110. $this->billKey = $billKey;
  111. $this->apiParas["bill_key"] = $billKey;
  112. }
  113. public function getBillKey()
  114. {
  115. return $this->billKey;
  116. }
  117. public function setChargeInst($chargeInst)
  118. {
  119. $this->chargeInst = $chargeInst;
  120. $this->apiParas["charge_inst"] = $chargeInst;
  121. }
  122. public function getChargeInst()
  123. {
  124. return $this->chargeInst;
  125. }
  126. public function setExtendField($extendField)
  127. {
  128. $this->extendField = $extendField;
  129. $this->apiParas["extend_field"] = $extendField;
  130. }
  131. public function getExtendField()
  132. {
  133. return $this->extendField;
  134. }
  135. public function setMerchantOrderNo($merchantOrderNo)
  136. {
  137. $this->merchantOrderNo = $merchantOrderNo;
  138. $this->apiParas["merchant_order_no"] = $merchantOrderNo;
  139. }
  140. public function getMerchantOrderNo()
  141. {
  142. return $this->merchantOrderNo;
  143. }
  144. public function setMobile($mobile)
  145. {
  146. $this->mobile = $mobile;
  147. $this->apiParas["mobile"] = $mobile;
  148. }
  149. public function getMobile()
  150. {
  151. return $this->mobile;
  152. }
  153. public function setOrderType($orderType)
  154. {
  155. $this->orderType = $orderType;
  156. $this->apiParas["order_type"] = $orderType;
  157. }
  158. public function getOrderType()
  159. {
  160. return $this->orderType;
  161. }
  162. public function setOwnerName($ownerName)
  163. {
  164. $this->ownerName = $ownerName;
  165. $this->apiParas["owner_name"] = $ownerName;
  166. }
  167. public function getOwnerName()
  168. {
  169. return $this->ownerName;
  170. }
  171. public function setPayAmount($payAmount)
  172. {
  173. $this->payAmount = $payAmount;
  174. $this->apiParas["pay_amount"] = $payAmount;
  175. }
  176. public function getPayAmount()
  177. {
  178. return $this->payAmount;
  179. }
  180. public function setServiceAmount($serviceAmount)
  181. {
  182. $this->serviceAmount = $serviceAmount;
  183. $this->apiParas["service_amount"] = $serviceAmount;
  184. }
  185. public function getServiceAmount()
  186. {
  187. return $this->serviceAmount;
  188. }
  189. public function setSubOrderType($subOrderType)
  190. {
  191. $this->subOrderType = $subOrderType;
  192. $this->apiParas["sub_order_type"] = $subOrderType;
  193. }
  194. public function getSubOrderType()
  195. {
  196. return $this->subOrderType;
  197. }
  198. public function setTrafficLocation($trafficLocation)
  199. {
  200. $this->trafficLocation = $trafficLocation;
  201. $this->apiParas["traffic_location"] = $trafficLocation;
  202. }
  203. public function getTrafficLocation()
  204. {
  205. return $this->trafficLocation;
  206. }
  207. public function setTrafficRegulations($trafficRegulations)
  208. {
  209. $this->trafficRegulations = $trafficRegulations;
  210. $this->apiParas["traffic_regulations"] = $trafficRegulations;
  211. }
  212. public function getTrafficRegulations()
  213. {
  214. return $this->trafficRegulations;
  215. }
  216. public function getApiMethodName()
  217. {
  218. return "alipay.ebpp.bill.add";
  219. }
  220. public function setNotifyUrl($notifyUrl)
  221. {
  222. $this->notifyUrl=$notifyUrl;
  223. }
  224. public function getNotifyUrl()
  225. {
  226. return $this->notifyUrl;
  227. }
  228. public function setReturnUrl($returnUrl)
  229. {
  230. $this->returnUrl=$returnUrl;
  231. }
  232. public function getReturnUrl()
  233. {
  234. return $this->returnUrl;
  235. }
  236. public function getApiParas()
  237. {
  238. return $this->apiParas;
  239. }
  240. public function getTerminalType()
  241. {
  242. return $this->terminalType;
  243. }
  244. public function setTerminalType($terminalType)
  245. {
  246. $this->terminalType = $terminalType;
  247. }
  248. public function getTerminalInfo()
  249. {
  250. return $this->terminalInfo;
  251. }
  252. public function setTerminalInfo($terminalInfo)
  253. {
  254. $this->terminalInfo = $terminalInfo;
  255. }
  256. public function getProdCode()
  257. {
  258. return $this->prodCode;
  259. }
  260. public function setProdCode($prodCode)
  261. {
  262. $this->prodCode = $prodCode;
  263. }
  264. public function setApiVersion($apiVersion)
  265. {
  266. $this->apiVersion=$apiVersion;
  267. }
  268. public function getApiVersion()
  269. {
  270. return $this->apiVersion;
  271. }
  272. public function setNeedEncrypt($needEncrypt)
  273. {
  274. $this->needEncrypt=$needEncrypt;
  275. }
  276. public function getNeedEncrypt()
  277. {
  278. return $this->needEncrypt;
  279. }
  280. }