VasOrderSearchRequest.php
3.46 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
/**
* TOP API: taobao.vas.order.search request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class VasOrderSearchRequest
{
/**
* 应用收费代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的收费代码
**/
private $articleCode;
/**
* 订单号
**/
private $bizOrderId;
/**
* 订单类型,1=新订 2=续订 3=升级 4=后台赠送 5=后台自动续订 6=订单审核后生成订购关系(暂时用不到) 空=全部
**/
private $bizType;
/**
* 订单创建时间(订购时间)结束值
**/
private $endCreated;
/**
* 收费项目代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得收费项目代码
**/
private $itemCode;
/**
* 淘宝会员名
**/
private $nick;
/**
* 子订单号
**/
private $orderId;
/**
* 页码
**/
private $pageNo;
/**
* 一页包含的记录数
**/
private $pageSize;
/**
* 订单创建时间(订购时间)起始值(当start_created和end_created都不填写时,默认返回最近90天的数据)
**/
private $startCreated;
private $apiParas = array();
public function setArticleCode($articleCode)
{
$this->articleCode = $articleCode;
$this->apiParas["article_code"] = $articleCode;
}
public function getArticleCode()
{
return $this->articleCode;
}
public function setBizOrderId($bizOrderId)
{
$this->bizOrderId = $bizOrderId;
$this->apiParas["biz_order_id"] = $bizOrderId;
}
public function getBizOrderId()
{
return $this->bizOrderId;
}
public function setBizType($bizType)
{
$this->bizType = $bizType;
$this->apiParas["biz_type"] = $bizType;
}
public function getBizType()
{
return $this->bizType;
}
public function setEndCreated($endCreated)
{
$this->endCreated = $endCreated;
$this->apiParas["end_created"] = $endCreated;
}
public function getEndCreated()
{
return $this->endCreated;
}
public function setItemCode($itemCode)
{
$this->itemCode = $itemCode;
$this->apiParas["item_code"] = $itemCode;
}
public function getItemCode()
{
return $this->itemCode;
}
public function setNick($nick)
{
$this->nick = $nick;
$this->apiParas["nick"] = $nick;
}
public function getNick()
{
return $this->nick;
}
public function setOrderId($orderId)
{
$this->orderId = $orderId;
$this->apiParas["order_id"] = $orderId;
}
public function getOrderId()
{
return $this->orderId;
}
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 setStartCreated($startCreated)
{
$this->startCreated = $startCreated;
$this->apiParas["start_created"] = $startCreated;
}
public function getStartCreated()
{
return $this->startCreated;
}
public function getApiMethodName()
{
return "taobao.vas.order.search";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->articleCode,"articleCode");
RequestCheckUtil::checkMaxValue($this->pageSize,200,"pageSize");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}