暂无描述

TbkScNewuserOrderSumRequest.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.sc.newuser.order.sum request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.04.28
  7. */
  8. class TbkScNewuserOrderSumRequest
  9. {
  10. /**
  11. * 活动ID
  12. **/
  13. private $activityId;
  14. /**
  15. * mm_xxx_xxx_xxx的第三位
  16. **/
  17. private $adzoneId;
  18. /**
  19. * 页码,默认1
  20. **/
  21. private $pageNo;
  22. /**
  23. * 页大小,默认20,1~100
  24. **/
  25. private $pageSize;
  26. /**
  27. * mm_xxx_xxx_xxx的第二位
  28. **/
  29. private $siteId;
  30. private $apiParas = array();
  31. public function setActivityId($activityId)
  32. {
  33. $this->activityId = $activityId;
  34. $this->apiParas["activity_id"] = $activityId;
  35. }
  36. public function getActivityId()
  37. {
  38. return $this->activityId;
  39. }
  40. public function setAdzoneId($adzoneId)
  41. {
  42. $this->adzoneId = $adzoneId;
  43. $this->apiParas["adzone_id"] = $adzoneId;
  44. }
  45. public function getAdzoneId()
  46. {
  47. return $this->adzoneId;
  48. }
  49. public function setPageNo($pageNo)
  50. {
  51. $this->pageNo = $pageNo;
  52. $this->apiParas["page_no"] = $pageNo;
  53. }
  54. public function getPageNo()
  55. {
  56. return $this->pageNo;
  57. }
  58. public function setPageSize($pageSize)
  59. {
  60. $this->pageSize = $pageSize;
  61. $this->apiParas["page_size"] = $pageSize;
  62. }
  63. public function getPageSize()
  64. {
  65. return $this->pageSize;
  66. }
  67. public function setSiteId($siteId)
  68. {
  69. $this->siteId = $siteId;
  70. $this->apiParas["site_id"] = $siteId;
  71. }
  72. public function getSiteId()
  73. {
  74. return $this->siteId;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "taobao.tbk.sc.newuser.order.sum";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->activityId,"activityId");
  87. RequestCheckUtil::checkNotNull($this->pageNo,"pageNo");
  88. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  89. RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize");
  90. RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize");
  91. }
  92. public function putOtherTextParam($key, $value) {
  93. $this->apiParas[$key] = $value;
  94. $this->$key = $value;
  95. }
  96. }