优惠券订单及其他脚本

TbkScNewuserOrderSumRequest.php 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.sc.newuser.order.sum request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.07.20
  7. */
  8. class TbkScNewuserOrderSumRequest
  9. {
  10. /**
  11. * 活动ID,现有活动id包括: 2月手淘拉新:119013_2;3月手淘拉新:119013_3;
  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. * 结算月份,需按照活动的结算月份传入具体的值:201807
  28. **/
  29. private $settleMonth;
  30. /**
  31. * mm_xxx_xxx_xxx的第二位
  32. **/
  33. private $siteId;
  34. private $apiParas = array();
  35. public function setActivityId($activityId)
  36. {
  37. $this->activityId = $activityId;
  38. $this->apiParas["activity_id"] = $activityId;
  39. }
  40. public function getActivityId()
  41. {
  42. return $this->activityId;
  43. }
  44. public function setAdzoneId($adzoneId)
  45. {
  46. $this->adzoneId = $adzoneId;
  47. $this->apiParas["adzone_id"] = $adzoneId;
  48. }
  49. public function getAdzoneId()
  50. {
  51. return $this->adzoneId;
  52. }
  53. public function setPageNo($pageNo)
  54. {
  55. $this->pageNo = $pageNo;
  56. $this->apiParas["page_no"] = $pageNo;
  57. }
  58. public function getPageNo()
  59. {
  60. return $this->pageNo;
  61. }
  62. public function setPageSize($pageSize)
  63. {
  64. $this->pageSize = $pageSize;
  65. $this->apiParas["page_size"] = $pageSize;
  66. }
  67. public function getPageSize()
  68. {
  69. return $this->pageSize;
  70. }
  71. public function setSettleMonth($settleMonth)
  72. {
  73. $this->settleMonth = $settleMonth;
  74. $this->apiParas["settle_month"] = $settleMonth;
  75. }
  76. public function getSettleMonth()
  77. {
  78. return $this->settleMonth;
  79. }
  80. public function setSiteId($siteId)
  81. {
  82. $this->siteId = $siteId;
  83. $this->apiParas["site_id"] = $siteId;
  84. }
  85. public function getSiteId()
  86. {
  87. return $this->siteId;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "taobao.tbk.sc.newuser.order.sum";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->activityId,"activityId");
  100. RequestCheckUtil::checkNotNull($this->pageNo,"pageNo");
  101. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  102. RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize");
  103. RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize");
  104. }
  105. public function putOtherTextParam($key, $value) {
  106. $this->apiParas[$key] = $value;
  107. $this->$key = $value;
  108. }
  109. }