优惠券订单及其他脚本

TbkScNewuserOrderGetRequest.php 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.sc.newuser.order.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.12.27
  7. */
  8. class TbkScNewuserOrderGetRequest
  9. {
  10. /**
  11. * 活动id, 现有活动id包括: 2月手淘拉新:119013_2 3月手淘拉新:119013_3 4月手淘拉新:119013_4 拉手机支付宝新用户_赚赏金:200000_5
  12. **/
  13. private $activityId;
  14. /**
  15. * mm_xxx_xxx_xxx的第三位
  16. **/
  17. private $adzoneId;
  18. /**
  19. * 结束时间,当活动为淘宝活动,表示最晚结束时间;当活动为支付宝活动,表示最晚绑定时间;当活动为天猫活动,表示最晚领取红包的时间
  20. **/
  21. private $endTime;
  22. /**
  23. * 页码,默认1
  24. **/
  25. private $pageNo;
  26. /**
  27. * 页大小,默认20,1~100
  28. **/
  29. private $pageSize;
  30. /**
  31. * mm_xxx_xxx_xxx的第二位
  32. **/
  33. private $siteId;
  34. /**
  35. * 开始时间,当活动为淘宝活动,表示最早注册时间;当活动为支付宝活动,表示最早绑定时间;当活动为天猫活动,表示最早领取红包时间
  36. **/
  37. private $startTime;
  38. private $apiParas = array();
  39. public function setActivityId($activityId)
  40. {
  41. $this->activityId = $activityId;
  42. $this->apiParas["activity_id"] = $activityId;
  43. }
  44. public function getActivityId()
  45. {
  46. return $this->activityId;
  47. }
  48. public function setAdzoneId($adzoneId)
  49. {
  50. $this->adzoneId = $adzoneId;
  51. $this->apiParas["adzone_id"] = $adzoneId;
  52. }
  53. public function getAdzoneId()
  54. {
  55. return $this->adzoneId;
  56. }
  57. public function setEndTime($endTime)
  58. {
  59. $this->endTime = $endTime;
  60. $this->apiParas["end_time"] = $endTime;
  61. }
  62. public function getEndTime()
  63. {
  64. return $this->endTime;
  65. }
  66. public function setPageNo($pageNo)
  67. {
  68. $this->pageNo = $pageNo;
  69. $this->apiParas["page_no"] = $pageNo;
  70. }
  71. public function getPageNo()
  72. {
  73. return $this->pageNo;
  74. }
  75. public function setPageSize($pageSize)
  76. {
  77. $this->pageSize = $pageSize;
  78. $this->apiParas["page_size"] = $pageSize;
  79. }
  80. public function getPageSize()
  81. {
  82. return $this->pageSize;
  83. }
  84. public function setSiteId($siteId)
  85. {
  86. $this->siteId = $siteId;
  87. $this->apiParas["site_id"] = $siteId;
  88. }
  89. public function getSiteId()
  90. {
  91. return $this->siteId;
  92. }
  93. public function setStartTime($startTime)
  94. {
  95. $this->startTime = $startTime;
  96. $this->apiParas["start_time"] = $startTime;
  97. }
  98. public function getStartTime()
  99. {
  100. return $this->startTime;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "taobao.tbk.sc.newuser.order.get";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->activityId,"activityId");
  113. RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize");
  114. RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize");
  115. }
  116. public function putOtherTextParam($key, $value) {
  117. $this->apiParas[$key] = $value;
  118. $this->$key = $value;
  119. }
  120. }