OapiDingpayBillBatchquerycountRequest.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.dingpay.bill.batchquerycount request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.01
  7. */
  8. class OapiDingpayBillBatchquerycountRequest
  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. * 支付渠道列表
  64. **/
  65. private $payChannelList;
  66. /**
  67. * 支付渠道方付款者实际出资UID
  68. **/
  69. private $payChannelPayerRealUid;
  70. /**
  71. * 收款者corpId或者userId
  72. **/
  73. private $payeeId;
  74. /**
  75. * 收款者类型
  76. **/
  77. private $payeeUserType;
  78. /**
  79. * 付款者corpId或者userId
  80. **/
  81. private $payerId;
  82. /**
  83. * 付款者类型
  84. **/
  85. private $payerUserType;
  86. /**
  87. * 收款人账户类型
  88. **/
  89. private $receiptorTypeList;
  90. /**
  91. * 状态列表
  92. **/
  93. private $statusList;
  94. /**
  95. * 中止支付原因
  96. **/
  97. private $terminationReason;
  98. /**
  99. * 标题
  100. **/
  101. private $title;
  102. private $apiParas = array();
  103. public function setApplyPayOperatorUserid($applyPayOperatorUserid)
  104. {
  105. $this->applyPayOperatorUserid = $applyPayOperatorUserid;
  106. $this->apiParas["apply_pay_operator_userid"] = $applyPayOperatorUserid;
  107. }
  108. public function getApplyPayOperatorUserid()
  109. {
  110. return $this->applyPayOperatorUserid;
  111. }
  112. public function setBillCategory($billCategory)
  113. {
  114. $this->billCategory = $billCategory;
  115. $this->apiParas["bill_category"] = $billCategory;
  116. }
  117. public function getBillCategory()
  118. {
  119. return $this->billCategory;
  120. }
  121. public function setBizCode($bizCode)
  122. {
  123. $this->bizCode = $bizCode;
  124. $this->apiParas["biz_code"] = $bizCode;
  125. }
  126. public function getBizCode()
  127. {
  128. return $this->bizCode;
  129. }
  130. public function setCreateOperatorUserid($createOperatorUserid)
  131. {
  132. $this->createOperatorUserid = $createOperatorUserid;
  133. $this->apiParas["create_operator_userid"] = $createOperatorUserid;
  134. }
  135. public function getCreateOperatorUserid()
  136. {
  137. return $this->createOperatorUserid;
  138. }
  139. public function setExtension($extension)
  140. {
  141. $this->extension = $extension;
  142. $this->apiParas["extension"] = $extension;
  143. }
  144. public function getExtension()
  145. {
  146. return $this->extension;
  147. }
  148. public function setGmtApplyPayBeginTime($gmtApplyPayBeginTime)
  149. {
  150. $this->gmtApplyPayBeginTime = $gmtApplyPayBeginTime;
  151. $this->apiParas["gmt_apply_pay_begin_time"] = $gmtApplyPayBeginTime;
  152. }
  153. public function getGmtApplyPayBeginTime()
  154. {
  155. return $this->gmtApplyPayBeginTime;
  156. }
  157. public function setGmtApplyPayEndTime($gmtApplyPayEndTime)
  158. {
  159. $this->gmtApplyPayEndTime = $gmtApplyPayEndTime;
  160. $this->apiParas["gmt_apply_pay_end_time"] = $gmtApplyPayEndTime;
  161. }
  162. public function getGmtApplyPayEndTime()
  163. {
  164. return $this->gmtApplyPayEndTime;
  165. }
  166. public function setGmtCreateBeginTime($gmtCreateBeginTime)
  167. {
  168. $this->gmtCreateBeginTime = $gmtCreateBeginTime;
  169. $this->apiParas["gmt_create_begin_time"] = $gmtCreateBeginTime;
  170. }
  171. public function getGmtCreateBeginTime()
  172. {
  173. return $this->gmtCreateBeginTime;
  174. }
  175. public function setGmtCreateEndTime($gmtCreateEndTime)
  176. {
  177. $this->gmtCreateEndTime = $gmtCreateEndTime;
  178. $this->apiParas["gmt_create_end_time"] = $gmtCreateEndTime;
  179. }
  180. public function getGmtCreateEndTime()
  181. {
  182. return $this->gmtCreateEndTime;
  183. }
  184. public function setGmtPayBeginTime($gmtPayBeginTime)
  185. {
  186. $this->gmtPayBeginTime = $gmtPayBeginTime;
  187. $this->apiParas["gmt_pay_begin_time"] = $gmtPayBeginTime;
  188. }
  189. public function getGmtPayBeginTime()
  190. {
  191. return $this->gmtPayBeginTime;
  192. }
  193. public function setGmtPayEndTime($gmtPayEndTime)
  194. {
  195. $this->gmtPayEndTime = $gmtPayEndTime;
  196. $this->apiParas["gmt_pay_end_time"] = $gmtPayEndTime;
  197. }
  198. public function getGmtPayEndTime()
  199. {
  200. return $this->gmtPayEndTime;
  201. }
  202. public function setMaxAmount($maxAmount)
  203. {
  204. $this->maxAmount = $maxAmount;
  205. $this->apiParas["max_amount"] = $maxAmount;
  206. }
  207. public function getMaxAmount()
  208. {
  209. return $this->maxAmount;
  210. }
  211. public function setMinAmount($minAmount)
  212. {
  213. $this->minAmount = $minAmount;
  214. $this->apiParas["min_amount"] = $minAmount;
  215. }
  216. public function getMinAmount()
  217. {
  218. return $this->minAmount;
  219. }
  220. public function setPayChannelList($payChannelList)
  221. {
  222. $this->payChannelList = $payChannelList;
  223. $this->apiParas["pay_channel_list"] = $payChannelList;
  224. }
  225. public function getPayChannelList()
  226. {
  227. return $this->payChannelList;
  228. }
  229. public function setPayChannelPayerRealUid($payChannelPayerRealUid)
  230. {
  231. $this->payChannelPayerRealUid = $payChannelPayerRealUid;
  232. $this->apiParas["pay_channel_payer_real_uid"] = $payChannelPayerRealUid;
  233. }
  234. public function getPayChannelPayerRealUid()
  235. {
  236. return $this->payChannelPayerRealUid;
  237. }
  238. public function setPayeeId($payeeId)
  239. {
  240. $this->payeeId = $payeeId;
  241. $this->apiParas["payee_id"] = $payeeId;
  242. }
  243. public function getPayeeId()
  244. {
  245. return $this->payeeId;
  246. }
  247. public function setPayeeUserType($payeeUserType)
  248. {
  249. $this->payeeUserType = $payeeUserType;
  250. $this->apiParas["payee_user_type"] = $payeeUserType;
  251. }
  252. public function getPayeeUserType()
  253. {
  254. return $this->payeeUserType;
  255. }
  256. public function setPayerId($payerId)
  257. {
  258. $this->payerId = $payerId;
  259. $this->apiParas["payer_id"] = $payerId;
  260. }
  261. public function getPayerId()
  262. {
  263. return $this->payerId;
  264. }
  265. public function setPayerUserType($payerUserType)
  266. {
  267. $this->payerUserType = $payerUserType;
  268. $this->apiParas["payer_user_type"] = $payerUserType;
  269. }
  270. public function getPayerUserType()
  271. {
  272. return $this->payerUserType;
  273. }
  274. public function setReceiptorTypeList($receiptorTypeList)
  275. {
  276. $this->receiptorTypeList = $receiptorTypeList;
  277. $this->apiParas["receiptor_type_list"] = $receiptorTypeList;
  278. }
  279. public function getReceiptorTypeList()
  280. {
  281. return $this->receiptorTypeList;
  282. }
  283. public function setStatusList($statusList)
  284. {
  285. $this->statusList = $statusList;
  286. $this->apiParas["status_list"] = $statusList;
  287. }
  288. public function getStatusList()
  289. {
  290. return $this->statusList;
  291. }
  292. public function setTerminationReason($terminationReason)
  293. {
  294. $this->terminationReason = $terminationReason;
  295. $this->apiParas["termination_reason"] = $terminationReason;
  296. }
  297. public function getTerminationReason()
  298. {
  299. return $this->terminationReason;
  300. }
  301. public function setTitle($title)
  302. {
  303. $this->title = $title;
  304. $this->apiParas["title"] = $title;
  305. }
  306. public function getTitle()
  307. {
  308. return $this->title;
  309. }
  310. public function getApiMethodName()
  311. {
  312. return "dingtalk.oapi.dingpay.bill.batchquerycount";
  313. }
  314. public function getApiParas()
  315. {
  316. return $this->apiParas;
  317. }
  318. public function check()
  319. {
  320. RequestCheckUtil::checkMaxListSize($this->payChannelList,20,"payChannelList");
  321. RequestCheckUtil::checkMaxListSize($this->receiptorTypeList,20,"receiptorTypeList");
  322. RequestCheckUtil::checkMaxListSize($this->statusList,20,"statusList");
  323. }
  324. public function putOtherTextParam($key, $value) {
  325. $this->apiParas[$key] = $value;
  326. $this->$key = $value;
  327. }
  328. }