VasSubscSearchRequest.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.subsc.search request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class VasSubscSearchRequest
{
/**
* 应用收费代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的收费代码
**/
private $articleCode;
/**
* 是否自动续费,true=自动续费 false=非自动续费 空=全部
**/
private $autosub;
/**
* 到期时间结束值
**/
private $endDeadline;
/**
* 是否到期提醒,true=到期提醒 false=非到期提醒 空=全部
**/
private $expireNotice;
/**
* 收费项目代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得收费项目代码
**/
private $itemCode;
/**
* 淘宝会员名
**/
private $nick;
/**
* 页码
**/
private $pageNo;
/**
* 一页包含的记录数
**/
private $pageSize;
/**
* 到期时间起始值(当start_deadline和end_deadline都不填写时,默认返回最近90天的数据)
**/
private $startDeadline;
/**
* 订购记录状态,1=有效 2=过期 空=全部
**/
private $status;
private $apiParas = array();
public function setArticleCode($articleCode)
{
$this->articleCode = $articleCode;
$this->apiParas["article_code"] = $articleCode;
}
public function getArticleCode()
{
return $this->articleCode;
}
public function setAutosub($autosub)
{
$this->autosub = $autosub;
$this->apiParas["autosub"] = $autosub;
}
public function getAutosub()
{
return $this->autosub;
}
public function setEndDeadline($endDeadline)
{
$this->endDeadline = $endDeadline;
$this->apiParas["end_deadline"] = $endDeadline;
}
public function getEndDeadline()
{
return $this->endDeadline;
}
public function setExpireNotice($expireNotice)
{
$this->expireNotice = $expireNotice;
$this->apiParas["expire_notice"] = $expireNotice;
}
public function getExpireNotice()
{
return $this->expireNotice;
}
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 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 setStartDeadline($startDeadline)
{
$this->startDeadline = $startDeadline;
$this->apiParas["start_deadline"] = $startDeadline;
}
public function getStartDeadline()
{
return $this->startDeadline;
}
public function setStatus($status)
{
$this->status = $status;
$this->apiParas["status"] = $status;
}
public function getStatus()
{
return $this->status;
}
public function getApiMethodName()
{
return "taobao.vas.subsc.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;
}
}