优惠券订单及其他脚本

TbkOrderDetailsGetRequest.php 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.order.details.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.05.16
  7. */
  8. class TbkOrderDetailsGetRequest
  9. {
  10. /**
  11. * 订单查询结束时间
  12. **/
  13. private $endTime;
  14. /**
  15. * 跳转类型,当向前或者向后翻页必须提供,-1: 向前翻页,1:向后翻页
  16. **/
  17. private $jumpType;
  18. /**
  19. * 推广者角色类型,2:二方,3:三方,不传,表示所有角色
  20. **/
  21. private $memberType;
  22. /**
  23. * 场景订单场景类型,1:常规订单,2:渠道订单,3:会员运营订单,默认为1
  24. **/
  25. private $orderScene;
  26. /**
  27. * 第几页,默认1,1~100
  28. **/
  29. private $pageNo;
  30. /**
  31. * 页大小,默认20,1~100
  32. **/
  33. private $pageSize;
  34. /**
  35. * 位点,除第一页之外,都需要传递;前端原样返回。
  36. **/
  37. private $positionIndex;
  38. /**
  39. * 查询时间类型,1:按照订单淘客创建时间查询,2:按照订单淘客付款时间查询,3:按照订单淘客结算时间查询
  40. **/
  41. private $queryType;
  42. /**
  43. * 订单查询开始时间
  44. **/
  45. private $startTime;
  46. /**
  47. * 淘客订单状态,12-付款,13-关闭,14-确认收货,15-结算成功;不传,表示所有状态
  48. **/
  49. private $tkStatus;
  50. private $apiParas = array();
  51. public function setEndTime($endTime)
  52. {
  53. $this->endTime = $endTime;
  54. $this->apiParas["end_time"] = $endTime;
  55. }
  56. public function getEndTime()
  57. {
  58. return $this->endTime;
  59. }
  60. public function setJumpType($jumpType)
  61. {
  62. $this->jumpType = $jumpType;
  63. $this->apiParas["jump_type"] = $jumpType;
  64. }
  65. public function getJumpType()
  66. {
  67. return $this->jumpType;
  68. }
  69. public function setMemberType($memberType)
  70. {
  71. $this->memberType = $memberType;
  72. $this->apiParas["member_type"] = $memberType;
  73. }
  74. public function getMemberType()
  75. {
  76. return $this->memberType;
  77. }
  78. public function setOrderScene($orderScene)
  79. {
  80. $this->orderScene = $orderScene;
  81. $this->apiParas["order_scene"] = $orderScene;
  82. }
  83. public function getOrderScene()
  84. {
  85. return $this->orderScene;
  86. }
  87. public function setPageNo($pageNo)
  88. {
  89. $this->pageNo = $pageNo;
  90. $this->apiParas["page_no"] = $pageNo;
  91. }
  92. public function getPageNo()
  93. {
  94. return $this->pageNo;
  95. }
  96. public function setPageSize($pageSize)
  97. {
  98. $this->pageSize = $pageSize;
  99. $this->apiParas["page_size"] = $pageSize;
  100. }
  101. public function getPageSize()
  102. {
  103. return $this->pageSize;
  104. }
  105. public function setPositionIndex($positionIndex)
  106. {
  107. $this->positionIndex = $positionIndex;
  108. $this->apiParas["position_index"] = $positionIndex;
  109. }
  110. public function getPositionIndex()
  111. {
  112. return $this->positionIndex;
  113. }
  114. public function setQueryType($queryType)
  115. {
  116. $this->queryType = $queryType;
  117. $this->apiParas["query_type"] = $queryType;
  118. }
  119. public function getQueryType()
  120. {
  121. return $this->queryType;
  122. }
  123. public function setStartTime($startTime)
  124. {
  125. $this->startTime = $startTime;
  126. $this->apiParas["start_time"] = $startTime;
  127. }
  128. public function getStartTime()
  129. {
  130. return $this->startTime;
  131. }
  132. public function setTkStatus($tkStatus)
  133. {
  134. $this->tkStatus = $tkStatus;
  135. $this->apiParas["tk_status"] = $tkStatus;
  136. }
  137. public function getTkStatus()
  138. {
  139. return $this->tkStatus;
  140. }
  141. public function getApiMethodName()
  142. {
  143. return "taobao.tbk.order.details.get";
  144. }
  145. public function getApiParas()
  146. {
  147. return $this->apiParas;
  148. }
  149. public function check()
  150. {
  151. RequestCheckUtil::checkNotNull($this->endTime,"endTime");
  152. RequestCheckUtil::checkNotNull($this->startTime,"startTime");
  153. }
  154. public function putOtherTextParam($key, $value) {
  155. $this->apiParas[$key] = $value;
  156. $this->$key = $value;
  157. }
  158. }