OapiDingpayBillBatchqueryRequest.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.dingpay.bill.batchquery request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.01
  7. */
  8. class OapiDingpayBillBatchqueryRequest
  9. {
  10. /**
  11. * 申请支付者userid
  12. **/
  13. private $applyPayOperatorUserid;
  14. /**
  15. * INCOME收入、EXPENSE支出
  16. **/
  17. private $billCategory;
  18. /**
  19. * 业务代码
  20. **/
  21. private $bizCode;
  22. /**
  23. * 创单者userid
  24. **/
  25. private $createOperatorUserid;
  26. /**
  27. * 扩展属性
  28. **/
  29. private $extension;
  30. /**
  31. * 申请付款开始时间
  32. **/
  33. private $gmtApplyPayBeginTime;
  34. /**
  35. * 申请付款截止时间
  36. **/
  37. private $gmtApplyPayEndTime;
  38. /**
  39. * 创单开始时间
  40. **/
  41. private $gmtCreateBeginTime;
  42. /**
  43. * 创单截止时间
  44. **/
  45. private $gmtCreateEndTime;
  46. /**
  47. * 完成付款开始时间
  48. **/
  49. private $gmtPayBeginTime;
  50. /**
  51. * 完成付款截止时间
  52. **/
  53. private $gmtPayEndTime;
  54. /**
  55. * 最大金额(单位:分)
  56. **/
  57. private $maxAmount;
  58. /**
  59. * 最小金额(单位:分)
  60. **/
  61. private $minAmount;
  62. /**
  63. * 第一次调用传空,后面翻页根据上次response的nextKey回传
  64. **/
  65. private $nextKey;
  66. /**
  67. * 页码,从1开始
  68. **/
  69. private $pageNum;
  70. /**
  71. * 每页大小
  72. **/
  73. private $pageSize;
  74. /**
  75. * 支付渠道列表
  76. **/
  77. private $payChannelList;
  78. /**
  79. * 支付渠道方付款者实际出资UID
  80. **/
  81. private $payChannelPayerRealUid;
  82. /**
  83. * 收款者corpId或者userId
  84. **/
  85. private $payeeId;
  86. /**
  87. * 收款者类型
  88. **/
  89. private $payeeUserType;
  90. /**
  91. * 付款者corpId或者userId
  92. **/
  93. private $payerId;
  94. /**
  95. * 付款者类型
  96. **/
  97. private $payerUserType;
  98. /**
  99. * 收款人账户类型
  100. **/
  101. private $receiptorTypeList;
  102. /**
  103. * 查询的条目数
  104. **/
  105. private $size;
  106. /**
  107. * 状态列表
  108. **/
  109. private $statusList;
  110. /**
  111. * 中止支付原因
  112. **/
  113. private $terminationReason;
  114. /**
  115. * 标题
  116. **/
  117. private $title;
  118. private $apiParas = array();
  119. public function setApplyPayOperatorUserid($applyPayOperatorUserid)
  120. {
  121. $this->applyPayOperatorUserid = $applyPayOperatorUserid;
  122. $this->apiParas["apply_pay_operator_userid"] = $applyPayOperatorUserid;
  123. }
  124. public function getApplyPayOperatorUserid()
  125. {
  126. return $this->applyPayOperatorUserid;
  127. }
  128. public function setBillCategory($billCategory)
  129. {
  130. $this->billCategory = $billCategory;
  131. $this->apiParas["bill_category"] = $billCategory;
  132. }
  133. public function getBillCategory()
  134. {
  135. return $this->billCategory;
  136. }
  137. public function setBizCode($bizCode)
  138. {
  139. $this->bizCode = $bizCode;
  140. $this->apiParas["biz_code"] = $bizCode;
  141. }
  142. public function getBizCode()
  143. {
  144. return $this->bizCode;
  145. }
  146. public function setCreateOperatorUserid($createOperatorUserid)
  147. {
  148. $this->createOperatorUserid = $createOperatorUserid;
  149. $this->apiParas["create_operator_userid"] = $createOperatorUserid;
  150. }
  151. public function getCreateOperatorUserid()
  152. {
  153. return $this->createOperatorUserid;
  154. }
  155. public function setExtension($extension)
  156. {
  157. $this->extension = $extension;
  158. $this->apiParas["extension"] = $extension;
  159. }
  160. public function getExtension()
  161. {
  162. return $this->extension;
  163. }
  164. public function setGmtApplyPayBeginTime($gmtApplyPayBeginTime)
  165. {
  166. $this->gmtApplyPayBeginTime = $gmtApplyPayBeginTime;
  167. $this->apiParas["gmt_apply_pay_begin_time"] = $gmtApplyPayBeginTime;
  168. }
  169. public function getGmtApplyPayBeginTime()
  170. {
  171. return $this->gmtApplyPayBeginTime;
  172. }
  173. public function setGmtApplyPayEndTime($gmtApplyPayEndTime)
  174. {
  175. $this->gmtApplyPayEndTime = $gmtApplyPayEndTime;
  176. $this->apiParas["gmt_apply_pay_end_time"] = $gmtApplyPayEndTime;
  177. }
  178. public function getGmtApplyPayEndTime()
  179. {
  180. return $this->gmtApplyPayEndTime;
  181. }
  182. public function setGmtCreateBeginTime($gmtCreateBeginTime)
  183. {
  184. $this->gmtCreateBeginTime = $gmtCreateBeginTime;
  185. $this->apiParas["gmt_create_begin_time"] = $gmtCreateBeginTime;
  186. }
  187. public function getGmtCreateBeginTime()
  188. {
  189. return $this->gmtCreateBeginTime;
  190. }
  191. public function setGmtCreateEndTime($gmtCreateEndTime)
  192. {
  193. $this->gmtCreateEndTime = $gmtCreateEndTime;
  194. $this->apiParas["gmt_create_end_time"] = $gmtCreateEndTime;
  195. }
  196. public function getGmtCreateEndTime()
  197. {
  198. return $this->gmtCreateEndTime;
  199. }
  200. public function setGmtPayBeginTime($gmtPayBeginTime)
  201. {
  202. $this->gmtPayBeginTime = $gmtPayBeginTime;
  203. $this->apiParas["gmt_pay_begin_time"] = $gmtPayBeginTime;
  204. }
  205. public function getGmtPayBeginTime()
  206. {
  207. return $this->gmtPayBeginTime;
  208. }
  209. public function setGmtPayEndTime($gmtPayEndTime)
  210. {
  211. $this->gmtPayEndTime = $gmtPayEndTime;
  212. $this->apiParas["gmt_pay_end_time"] = $gmtPayEndTime;
  213. }
  214. public function getGmtPayEndTime()
  215. {
  216. return $this->gmtPayEndTime;
  217. }
  218. public function setMaxAmount($maxAmount)
  219. {
  220. $this->maxAmount = $maxAmount;
  221. $this->apiParas["max_amount"] = $maxAmount;
  222. }
  223. public function getMaxAmount()
  224. {
  225. return $this->maxAmount;
  226. }
  227. public function setMinAmount($minAmount)
  228. {
  229. $this->minAmount = $minAmount;
  230. $this->apiParas["min_amount"] = $minAmount;
  231. }
  232. public function getMinAmount()
  233. {
  234. return $this->minAmount;
  235. }
  236. public function setNextKey($nextKey)
  237. {
  238. $this->nextKey = $nextKey;
  239. $this->apiParas["next_key"] = $nextKey;
  240. }
  241. public function getNextKey()
  242. {
  243. return $this->nextKey;
  244. }
  245. public function setPageNum($pageNum)
  246. {
  247. $this->pageNum = $pageNum;
  248. $this->apiParas["page_num"] = $pageNum;
  249. }
  250. public function getPageNum()
  251. {
  252. return $this->pageNum;
  253. }
  254. public function setPageSize($pageSize)
  255. {
  256. $this->pageSize = $pageSize;
  257. $this->apiParas["page_size"] = $pageSize;
  258. }
  259. public function getPageSize()
  260. {
  261. return $this->pageSize;
  262. }
  263. public function setPayChannelList($payChannelList)
  264. {
  265. $this->payChannelList = $payChannelList;
  266. $this->apiParas["pay_channel_list"] = $payChannelList;
  267. }
  268. public function getPayChannelList()
  269. {
  270. return $this->payChannelList;
  271. }
  272. public function setPayChannelPayerRealUid($payChannelPayerRealUid)
  273. {
  274. $this->payChannelPayerRealUid = $payChannelPayerRealUid;
  275. $this->apiParas["pay_channel_payer_real_uid"] = $payChannelPayerRealUid;
  276. }
  277. public function getPayChannelPayerRealUid()
  278. {
  279. return $this->payChannelPayerRealUid;
  280. }
  281. public function setPayeeId($payeeId)
  282. {
  283. $this->payeeId = $payeeId;
  284. $this->apiParas["payee_id"] = $payeeId;
  285. }
  286. public function getPayeeId()
  287. {
  288. return $this->payeeId;
  289. }
  290. public function setPayeeUserType($payeeUserType)
  291. {
  292. $this->payeeUserType = $payeeUserType;
  293. $this->apiParas["payee_user_type"] = $payeeUserType;
  294. }
  295. public function getPayeeUserType()
  296. {
  297. return $this->payeeUserType;
  298. }
  299. public function setPayerId($payerId)
  300. {
  301. $this->payerId = $payerId;
  302. $this->apiParas["payer_id"] = $payerId;
  303. }
  304. public function getPayerId()
  305. {
  306. return $this->payerId;
  307. }
  308. public function setPayerUserType($payerUserType)
  309. {
  310. $this->payerUserType = $payerUserType;
  311. $this->apiParas["payer_user_type"] = $payerUserType;
  312. }
  313. public function getPayerUserType()
  314. {
  315. return $this->payerUserType;
  316. }
  317. public function setReceiptorTypeList($receiptorTypeList)
  318. {
  319. $this->receiptorTypeList = $receiptorTypeList;
  320. $this->apiParas["receiptor_type_list"] = $receiptorTypeList;
  321. }
  322. public function getReceiptorTypeList()
  323. {
  324. return $this->receiptorTypeList;
  325. }
  326. public function setSize($size)
  327. {
  328. $this->size = $size;
  329. $this->apiParas["size"] = $size;
  330. }
  331. public function getSize()
  332. {
  333. return $this->size;
  334. }
  335. public function setStatusList($statusList)
  336. {
  337. $this->statusList = $statusList;
  338. $this->apiParas["status_list"] = $statusList;
  339. }
  340. public function getStatusList()
  341. {
  342. return $this->statusList;
  343. }
  344. public function setTerminationReason($terminationReason)
  345. {
  346. $this->terminationReason = $terminationReason;
  347. $this->apiParas["termination_reason"] = $terminationReason;
  348. }
  349. public function getTerminationReason()
  350. {
  351. return $this->terminationReason;
  352. }
  353. public function setTitle($title)
  354. {
  355. $this->title = $title;
  356. $this->apiParas["title"] = $title;
  357. }
  358. public function getTitle()
  359. {
  360. return $this->title;
  361. }
  362. public function getApiMethodName()
  363. {
  364. return "dingtalk.oapi.dingpay.bill.batchquery";
  365. }
  366. public function getApiParas()
  367. {
  368. return $this->apiParas;
  369. }
  370. public function check()
  371. {
  372. RequestCheckUtil::checkMaxListSize($this->payChannelList,20,"payChannelList");
  373. RequestCheckUtil::checkMaxListSize($this->receiptorTypeList,20,"receiptorTypeList");
  374. RequestCheckUtil::checkMaxListSize($this->statusList,20,"statusList");
  375. }
  376. public function putOtherTextParam($key, $value) {
  377. $this->apiParas[$key] = $value;
  378. $this->$key = $value;
  379. }
  380. }