OapiAppstoreInternalUnfinishedorderListRequest.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.appstore.internal.unfinishedorder.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.01
  7. */
  8. class OapiAppstoreInternalUnfinishedorderListRequest
  9. {
  10. /**
  11. * 商品规格码
  12. **/
  13. private $itemCode;
  14. /**
  15. * 分页查询页码,其实页码为1
  16. **/
  17. private $page;
  18. /**
  19. * 分页查询每页大小,最大限制100
  20. **/
  21. private $pageSize;
  22. private $apiParas = array();
  23. public function setItemCode($itemCode)
  24. {
  25. $this->itemCode = $itemCode;
  26. $this->apiParas["item_code"] = $itemCode;
  27. }
  28. public function getItemCode()
  29. {
  30. return $this->itemCode;
  31. }
  32. public function setPage($page)
  33. {
  34. $this->page = $page;
  35. $this->apiParas["page"] = $page;
  36. }
  37. public function getPage()
  38. {
  39. return $this->page;
  40. }
  41. public function setPageSize($pageSize)
  42. {
  43. $this->pageSize = $pageSize;
  44. $this->apiParas["page_size"] = $pageSize;
  45. }
  46. public function getPageSize()
  47. {
  48. return $this->pageSize;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.appstore.internal.unfinishedorder.list";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->page,"page");
  61. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  62. }
  63. public function putOtherTextParam($key, $value) {
  64. $this->apiParas[$key] = $value;
  65. $this->$key = $value;
  66. }
  67. }