123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <?php
- /**
- * TOP API: taobao.tbk.order.get request
- *
- * @author auto create
- * @since 1.0, 2018.10.24
- */
- class TbkOrderGetRequest
- {
- /**
- * 需返回的字段列表
- **/
- private $fields;
-
- /**
- * 订单数据统计类型,1: 2方订单,2: 3方订单,如果不设置,或者设置为1,表示2方订单
- **/
- private $orderCountType;
-
- /**
- * 订单查询类型,创建时间“create_time”,或结算时间“settle_time”。当查询渠道或会员运营订单时,建议入参创建时间“create_time”进行查询
- **/
- private $orderQueryType;
-
- /**
- * 订单场景类型,1:常规订单,2:渠道订单,3:会员运营订单,默认为1,通过设置订单场景类型,媒体可以查询指定场景下的订单信息,例如不设置,或者设置为1,表示查询常规订单,常规订单包含淘宝客所有的订单数据,含渠道,及会员运营订单,但不包含3方分成,及维权订单
- **/
- private $orderScene;
-
- /**
- * 第几页,默认1,1~100
- **/
- private $pageNo;
-
- /**
- * 页大小,默认20,1~100
- **/
- private $pageSize;
-
- /**
- * 订单查询时间范围,单位:秒,最小60,最大1200,如不填写,默认60。查询常规订单、三方订单、渠道,及会员订单时均需要设置此参数,直接通过设置page_size,page_no 翻页查询数据即可
- **/
- private $span;
-
- /**
- * 订单查询开始时间
- **/
- private $startTime;
-
- /**
- * 订单状态,1: 全部订单,3:订单结算,12:订单付款, 13:订单失效,14:订单成功; 订单查询类型为‘结算时间’时,只能查订单结算状态
- **/
- private $tkStatus;
-
- private $apiParas = array();
-
- public function setFields($fields)
- {
- $this->fields = $fields;
- $this->apiParas["fields"] = $fields;
- }
- public function getFields()
- {
- return $this->fields;
- }
- public function setOrderCountType($orderCountType)
- {
- $this->orderCountType = $orderCountType;
- $this->apiParas["order_count_type"] = $orderCountType;
- }
- public function getOrderCountType()
- {
- return $this->orderCountType;
- }
- public function setOrderQueryType($orderQueryType)
- {
- $this->orderQueryType = $orderQueryType;
- $this->apiParas["order_query_type"] = $orderQueryType;
- }
- public function getOrderQueryType()
- {
- return $this->orderQueryType;
- }
- 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 setSpan($span)
- {
- $this->span = $span;
- $this->apiParas["span"] = $span;
- }
- public function getSpan()
- {
- return $this->span;
- }
- 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.get";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->fields,"fields");
- RequestCheckUtil::checkNotNull($this->startTime,"startTime");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|