123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?php
- /**
- * TOP API: taobao.tbk.order.details.get request
- *
- * @author auto create
- * @since 1.0, 2019.05.16
- */
- class TbkOrderDetailsGetRequest
- {
- /**
- * 订单查询结束时间
- **/
- private $endTime;
-
- /**
- * 跳转类型,当向前或者向后翻页必须提供,-1: 向前翻页,1:向后翻页
- **/
- private $jumpType;
-
- /**
- * 推广者角色类型,2:二方,3:三方,不传,表示所有角色
- **/
- private $memberType;
-
- /**
- * 场景订单场景类型,1:常规订单,2:渠道订单,3:会员运营订单,默认为1
- **/
- private $orderScene;
-
- /**
- * 第几页,默认1,1~100
- **/
- private $pageNo;
-
- /**
- * 页大小,默认20,1~100
- **/
- private $pageSize;
-
- /**
- * 位点,除第一页之外,都需要传递;前端原样返回。
- **/
- private $positionIndex;
-
- /**
- * 查询时间类型,1:按照订单淘客创建时间查询,2:按照订单淘客付款时间查询,3:按照订单淘客结算时间查询
- **/
- private $queryType;
-
- /**
- * 订单查询开始时间
- **/
- private $startTime;
-
- /**
- * 淘客订单状态,12-付款,13-关闭,14-确认收货,15-结算成功;不传,表示所有状态
- **/
- private $tkStatus;
-
- private $apiParas = array();
-
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- $this->apiParas["end_time"] = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setJumpType($jumpType)
- {
- $this->jumpType = $jumpType;
- $this->apiParas["jump_type"] = $jumpType;
- }
- public function getJumpType()
- {
- return $this->jumpType;
- }
- public function setMemberType($memberType)
- {
- $this->memberType = $memberType;
- $this->apiParas["member_type"] = $memberType;
- }
- public function getMemberType()
- {
- return $this->memberType;
- }
- public function setOrderScene($orderScene)
- {
- $this->orderScene = $orderScene;
- $this->apiParas["order_scene"] = $orderScene;
- }
- public function getOrderScene()
- {
- return $this->orderScene;
- }
- public function setPageNo($pageNo)
- {
- $this->pageNo = $pageNo;
- $this->apiParas["page_no"] = $pageNo;
- }
- public function getPageNo()
- {
- return $this->pageNo;
- }
- public function setPageSize($pageSize)
- {
- $this->pageSize = $pageSize;
- $this->apiParas["page_size"] = $pageSize;
- }
- public function getPageSize()
- {
- return $this->pageSize;
- }
- public function setPositionIndex($positionIndex)
- {
- $this->positionIndex = $positionIndex;
- $this->apiParas["position_index"] = $positionIndex;
- }
- public function getPositionIndex()
- {
- return $this->positionIndex;
- }
- public function setQueryType($queryType)
- {
- $this->queryType = $queryType;
- $this->apiParas["query_type"] = $queryType;
- }
- public function getQueryType()
- {
- return $this->queryType;
- }
- public function setStartTime($startTime)
- {
- $this->startTime = $startTime;
- $this->apiParas["start_time"] = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setTkStatus($tkStatus)
- {
- $this->tkStatus = $tkStatus;
- $this->apiParas["tk_status"] = $tkStatus;
- }
- public function getTkStatus()
- {
- return $this->tkStatus;
- }
- public function getApiMethodName()
- {
- return "taobao.tbk.order.details.get";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->endTime,"endTime");
- RequestCheckUtil::checkNotNull($this->startTime,"startTime");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|