PromotionLimitdiscountGetRequest.php
2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* TOP API: taobao.promotion.limitdiscount.get request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class PromotionLimitdiscountGetRequest
{
/**
* 限时打折结束时间。输入的时间会被截取,年月日有效,时分秒忽略。
**/
private $endTime;
/**
* 限时打折ID。这个针对查询唯一限时打折情况。若此字段不为空,则说明操作为单条限时打折记录查询,其他字段忽略。若想分页按条件查询,这个字段置为空。
**/
private $limitDiscountId;
/**
* 分页页号。默认1。当页数大于最大页数时,结果为最大页数的数据。
**/
private $pageNumber;
/**
* 限时打折开始时间。输入的时间会被截取,年月日有效,时分秒忽略。
**/
private $startTime;
/**
* 限时打折活动状态。ALL:全部状态;OVER:已结束;DOING:进行中;PROPARE:未开始(只支持大写)。当limit_discount_id为空时,为空时,默认为全部的状态。
**/
private $status;
private $apiParas = array();
public function setEndTime($endTime)
{
$this->endTime = $endTime;
$this->apiParas["end_time"] = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setLimitDiscountId($limitDiscountId)
{
$this->limitDiscountId = $limitDiscountId;
$this->apiParas["limit_discount_id"] = $limitDiscountId;
}
public function getLimitDiscountId()
{
return $this->limitDiscountId;
}
public function setPageNumber($pageNumber)
{
$this->pageNumber = $pageNumber;
$this->apiParas["page_number"] = $pageNumber;
}
public function getPageNumber()
{
return $this->pageNumber;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
$this->apiParas["start_time"] = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setStatus($status)
{
$this->status = $status;
$this->apiParas["status"] = $status;
}
public function getStatus()
{
return $this->status;
}
public function getApiMethodName()
{
return "taobao.promotion.limitdiscount.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}