WlbItemUpdateRequest.php
5.15 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<?php
/**
* TOP API: taobao.wlb.item.update request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class WlbItemUpdateRequest
{
/**
* 商品颜色
**/
private $color;
/**
* 需要删除的商品属性key列表
**/
private $deletePropertyKeyList;
/**
* 商品货类
**/
private $goodsCat;
/**
* 商品高度,单位厘米
**/
private $height;
/**
* 要修改的商品id
**/
private $id;
/**
* 是否危险品
**/
private $isDangerous;
/**
* 是否易碎品
**/
private $isFriable;
/**
* 商品长度,单位厘米
**/
private $length;
/**
* 要修改的商品名称
**/
private $name;
/**
* 商品包装材料类型
**/
private $packageMaterial;
/**
* 商品计价货类
**/
private $pricingCat;
/**
* 要修改的商品备注
**/
private $remark;
/**
* 要修改的商品标题
**/
private $title;
/**
* 需要修改的商品属性值的列表,如果属性不存在,则新增属性
**/
private $updatePropertyKeyList;
/**
* 需要修改的属性值的列表
**/
private $updatePropertyValueList;
/**
* 商品体积,单位立方厘米
**/
private $volume;
/**
* 商品重量,单位G
**/
private $weight;
/**
* 商品宽度,单位厘米
**/
private $width;
private $apiParas = array();
public function setColor($color)
{
$this->color = $color;
$this->apiParas["color"] = $color;
}
public function getColor()
{
return $this->color;
}
public function setDeletePropertyKeyList($deletePropertyKeyList)
{
$this->deletePropertyKeyList = $deletePropertyKeyList;
$this->apiParas["delete_property_key_list"] = $deletePropertyKeyList;
}
public function getDeletePropertyKeyList()
{
return $this->deletePropertyKeyList;
}
public function setGoodsCat($goodsCat)
{
$this->goodsCat = $goodsCat;
$this->apiParas["goods_cat"] = $goodsCat;
}
public function getGoodsCat()
{
return $this->goodsCat;
}
public function setHeight($height)
{
$this->height = $height;
$this->apiParas["height"] = $height;
}
public function getHeight()
{
return $this->height;
}
public function setId($id)
{
$this->id = $id;
$this->apiParas["id"] = $id;
}
public function getId()
{
return $this->id;
}
public function setIsDangerous($isDangerous)
{
$this->isDangerous = $isDangerous;
$this->apiParas["is_dangerous"] = $isDangerous;
}
public function getIsDangerous()
{
return $this->isDangerous;
}
public function setIsFriable($isFriable)
{
$this->isFriable = $isFriable;
$this->apiParas["is_friable"] = $isFriable;
}
public function getIsFriable()
{
return $this->isFriable;
}
public function setLength($length)
{
$this->length = $length;
$this->apiParas["length"] = $length;
}
public function getLength()
{
return $this->length;
}
public function setName($name)
{
$this->name = $name;
$this->apiParas["name"] = $name;
}
public function getName()
{
return $this->name;
}
public function setPackageMaterial($packageMaterial)
{
$this->packageMaterial = $packageMaterial;
$this->apiParas["package_material"] = $packageMaterial;
}
public function getPackageMaterial()
{
return $this->packageMaterial;
}
public function setPricingCat($pricingCat)
{
$this->pricingCat = $pricingCat;
$this->apiParas["pricing_cat"] = $pricingCat;
}
public function getPricingCat()
{
return $this->pricingCat;
}
public function setRemark($remark)
{
$this->remark = $remark;
$this->apiParas["remark"] = $remark;
}
public function getRemark()
{
return $this->remark;
}
public function setTitle($title)
{
$this->title = $title;
$this->apiParas["title"] = $title;
}
public function getTitle()
{
return $this->title;
}
public function setUpdatePropertyKeyList($updatePropertyKeyList)
{
$this->updatePropertyKeyList = $updatePropertyKeyList;
$this->apiParas["update_property_key_list"] = $updatePropertyKeyList;
}
public function getUpdatePropertyKeyList()
{
return $this->updatePropertyKeyList;
}
public function setUpdatePropertyValueList($updatePropertyValueList)
{
$this->updatePropertyValueList = $updatePropertyValueList;
$this->apiParas["update_property_value_list"] = $updatePropertyValueList;
}
public function getUpdatePropertyValueList()
{
return $this->updatePropertyValueList;
}
public function setVolume($volume)
{
$this->volume = $volume;
$this->apiParas["volume"] = $volume;
}
public function getVolume()
{
return $this->volume;
}
public function setWeight($weight)
{
$this->weight = $weight;
$this->apiParas["weight"] = $weight;
}
public function getWeight()
{
return $this->weight;
}
public function setWidth($width)
{
$this->width = $width;
$this->apiParas["width"] = $width;
}
public function getWidth()
{
return $this->width;
}
public function getApiMethodName()
{
return "taobao.wlb.item.update";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->id,"id");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}