ItemUpdateRequest.php
30.6 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
<?php
/**
* TOP API: taobao.item.update request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class ItemUpdateRequest
{
/**
* 售后服务说明模板id
**/
private $afterSaleId;
/**
* 商品上传后的状态。可选值:onsale(出售中),instock(库中),如果同时更新商品状态为出售中及list_time为将来的时间,则商品还是处于定时上架的状态, 此时item.is_timing为true
**/
private $approveStatus;
/**
* 商品的积分返点比例。如:5 表示返点比例0.5%. 注意:返点比例必须是>0的整数,而且最大是90,即为9%.B商家在发布非虚拟商品时,返点必须是 5的倍数,即0.5%的倍数。其它是1的倍数,即0.1%的倍数。无名良品商家发布商品时,复用该字段记录积分宝返点比例,返点必须是对应类目的返点步长的整数倍,默认是5,即0.5%。注意此时该字段值依旧必须是>0的整数,注意此时该字段值依旧必须是>0的整数,最高值不超过500,即50%
**/
private $auctionPoint;
/**
* 代充商品类型。只有少数类目下的商品可以标记上此字段,具体哪些类目可以上传可以通过taobao.itemcat.features.get获得。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型:
no_mark(不做类型标记)
time_card(点卡软件代充)
fee_card(话费软件代充)
**/
private $autoFill;
/**
* 叶子类目id
**/
private $cid;
/**
* 货到付款运费模板ID
**/
private $codPostageId;
/**
* 商品描述. 字数要大于5个字符,小于25000个字符 ,受违禁词控制
**/
private $desc;
/**
* 支持宝贝信息的删除,如需删除对应的食品安全信息中的储藏方法、保质期, 则应该设置此参数的值为:food_security.plan_storage,food_security.period; 各个参数的名称之间用【,】分割, 如果对应的参数有设置过值,即使在这个列表中,也不会被删除; 目前支持此功能的宝贝信息如下:食品安全信息所有字段、电子交易凭证字段(locality_life,locality_life.verification,locality_life.refund_ratio,locality_life.network_id )
**/
private $emptyFields;
/**
* ems费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:25.07,表示:25元7分
**/
private $emsFee;
/**
* 快递费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:15.07,表示:15元7分
**/
private $expressFee;
/**
* 厂家联系方式
**/
private $foodSecurityContact;
/**
* 产品标准号
**/
private $foodSecurityDesignCode;
/**
* 厂名
**/
private $foodSecurityFactory;
/**
* 厂址
**/
private $foodSecurityFactorySite;
/**
* 食品添加剂
**/
private $foodSecurityFoodAdditive;
/**
* 配料表
**/
private $foodSecurityMix;
/**
* 保质期
**/
private $foodSecurityPeriod;
/**
* 储藏方法
**/
private $foodSecurityPlanStorage;
/**
* 生产许可证号
**/
private $foodSecurityPrdLicenseNo;
/**
* 生产结束日期,格式必须为yyyy-MM-dd
**/
private $foodSecurityProductDateEnd;
/**
* 生产开始日期,格式必须为yyyy-MM-dd
**/
private $foodSecurityProductDateStart;
/**
* 进货结束日期,要在生产日期之后,格式必须为yyyy-MM-dd
**/
private $foodSecurityStockDateEnd;
/**
* 进货开始日期,要在生产日期之后,格式必须为yyyy-MM-dd
**/
private $foodSecurityStockDateStart;
/**
* 供货商
**/
private $foodSecuritySupplier;
/**
* 运费承担方式。运费承担方式。可选值:seller(卖家承担),buyer(买家承担);
**/
private $freightPayer;
/**
* 针对全球购卖家的库存类型业务,
有两种库存类型:现货和代购
参数值为1时代表现货,值为2时代表代购
如果传值为这两个值之外的值,会报错;
如果不是全球购卖家,这两个值即使设置也不会处理
**/
private $globalStockType;
/**
* 支持会员打折。可选值:true,false;
**/
private $hasDiscount;
/**
* 是否有发票。可选值:true,false (商城卖家此字段必须为true)
**/
private $hasInvoice;
/**
* 橱窗推荐。可选值:true,false;
**/
private $hasShowcase;
/**
* 是否有保修。可选值:true,false;
**/
private $hasWarranty;
/**
* 商品图片。类型:JPG,GIF;最大长度:500k
**/
private $image;
/**
* 加价幅度 如果为0,代表系统代理幅度
**/
private $increment;
/**
* 用户自行输入的类目属性ID串,结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。
**/
private $inputPids;
/**
* 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5,Nike乔丹鞋;乔丹系列;乔丹鞋系列;乔丹鞋系列;json5”,多个自定义属性用','分割,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过3999字节。此处不可以使用“其他”、“其它”和“其她”这三个词。
**/
private $inputStr;
/**
* 是否是3D
**/
private $is3D;
/**
* 是否在外店显示
**/
private $isEx;
/**
* 实物闪电发货。注意:在售的闪电发货产品不允许取消闪电发货,需要先下架商品才能取消闪电发货标记
**/
private $isLightningConsignment;
/**
* 是否替换sku
**/
private $isReplaceSku;
/**
* 是否在淘宝上显示(如果传FALSE,则在淘宝主站无法显示该商品)
**/
private $isTaobao;
/**
* 商品是否为新品。只有在当前类目开通新品,并且当前用户拥有该类目下发布新品权限时才能设置is_xinpin为true,否则设置true后会返回错误码:isv.invalid-permission:xinpin。同时只有一口价全新的宝贝才能设置为新品,否则会返回错误码:isv.invalid-parameter:xinpin。不设置参数就保持原有值。
**/
private $isXinpin;
/**
* 表示商品的体积,如果需要使用按体积计费的运费模板,一定要设置这个值。该值的单位为立方米(m3),如果是其他单位,请转换成成立方米。
该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:length:10;breadth:10;height:10,单位为米(m)。体积和长宽高都支持小数类型。
在传入体积或长宽高时候,不能带单位。体积的单位默认为立方米(m3),长宽高的单位默认为米(m)
在编辑的时候,如果需要删除体积属性,请设置该值为0,如bulk:0
**/
private $itemSize;
/**
* 商品的重量,用于按重量计费的运费模板。注意:单位为kg。 只能传入数值类型(包含小数),不能带单位,单位默认为kg。 在编辑时候,如果需要在商品里删除重量的信息,就需要将值设置为0
**/
private $itemWeight;
/**
* 商品文字的版本,繁体传入”zh_HK”,简体传入”zh_CN”
**/
private $lang;
/**
* 上架时间。大于当前时间则宝贝会下架进入定时上架的宝贝中。
**/
private $listTime;
/**
* 编辑电子凭证宝贝时候表示是否使用邮寄
0: 代表不使用邮寄;
1:代表使用邮寄;
如果不设置这个值,代表不使用邮寄
**/
private $localityLifeChooseLogis;
/**
* 本地生活电子交易凭证业务,目前此字段只涉及到的信息为有效期;
如果有效期为起止日期类型,此值为2012-08-06,2012-08-16
如果有效期为【购买成功日 至】类型则格式为2012-08-16
如果有效期为天数类型则格式为15
**/
private $localityLifeExpirydate;
/**
* 码商信息,格式为 码商id:nick
**/
private $localityLifeMerchant;
/**
* 网点ID,在参数empty_fields里设置locality_life.network_id可删除网点ID
**/
private $localityLifeNetworkId;
/**
* 退款比例,百分比%前的数字,1-100的正整数值; 在参数empty_fields里设置locality_life.refund_ratio可删除退款比例
**/
private $localityLifeRefundRatio;
/**
* 核销打款,1代表核销打款 0代表非核销打款; 在参数empty_fields里设置locality_life.verification可删除核销打款
**/
private $localityLifeVerification;
/**
* 所在地城市。如杭州 具体可以下载http://dl.open.taobao.com/sdk/商品城市列表.rar 取到
**/
private $locationCity;
/**
* 所在地省份。如浙江 具体可以下载http://dl.open.taobao.com/sdk/商品城市列表.rar 取到
**/
private $locationState;
/**
* 商品数量,取值范围:0-999999的整数。且需要等于Sku所有数量的和
**/
private $num;
/**
* 商品数字ID,该参数必须
**/
private $numIid;
/**
* 商家编码
**/
private $outerId;
/**
* 商品主图需要关联的图片空间的相对url。这个url所对应的图片必须要属于当前用户。pic_path和image只需要传入一个,如果两个都传,默认选择pic_path
**/
private $picPath;
/**
* 平邮费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:5.07,表示:5元7分, 注:post_fee,express_fee,ems_fee需一起填写
**/
private $postFee;
/**
* 宝贝所属的运费模板ID。取值范围:整数且必须是该卖家的运费模板的ID(可通过taobao.postages.get获得当前会话用户的所有邮费模板)
**/
private $postageId;
/**
* 商品价格。取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。需要在正确的价格区间内。
**/
private $price;
/**
* 商品所属的产品ID(B商家发布商品需要用)
**/
private $productId;
/**
* 属性值别名。如pid:vid:别名;pid1:vid1:别名1, pid:属性id vid:值id。总长度不超过512字节
**/
private $propertyAlias;
/**
* 商品属性列表。格式:pid:vid;pid:vid。属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。 如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对。所有属性加起来包括分割符不能超过549字节,单个属性没有限制。 如果有属性是可输入的话,则用字段input_str填入属性的值。
**/
private $props;
/**
* 景区门票在选择订金支付时候,需要交的预订费。传入的值是1到20之间的数值,小数点后最多可以保留两位(多余的部分将做四舍五入的处理)。这个数值表示的是预订费的比例,最终的预订费为 scenic_ticket_book_cost乘一口价除以100
**/
private $scenicTicketBookCost;
/**
* 景区门票类宝贝编辑时候,当卖家签订了支付宝代扣协议时候,需要选择支付方式:全额支付和订金支付。当scenic_ticket_pay_way为1时表示全额支付,为2时表示订金支付
**/
private $scenicTicketPayWay;
/**
* 是否承诺退换货服务!虚拟商品无须设置此项!
**/
private $sellPromise;
/**
* 重新关联商品与店铺类目,结构:",cid1,cid2,...,",如果店铺类目存在二级类目,必须传入子类目cids。
**/
private $sellerCids;
/**
* Sku的外部id串,结构如:1234,1342,… sku_properties, sku_quantities, sku_prices, sku_outer_ids在输入数据时要一一对应,如果没有sku_outer_ids也要写上这个参数,入参是","(这个是两个sku的示列,逗号数应该是sku个数减1);该参数最大长度是512个字节
**/
private $skuOuterIds;
/**
* 更新的Sku的价格串,结构如:10.00,5.00,… 精确到2位小数;单位:元。如:200.07,表示:200元7分
**/
private $skuPrices;
/**
* 更新的Sku的属性串,调用taobao.itemprops.get获取类目属性,如果属性是销售属性,再用taobao.itempropvalues.get取得vid。格式:pid:vid;pid:vid,多个sku之间用逗号分隔。该字段内的销售属性(自定义的除外)也需要在props字段填写 . 规则:如果该SKU存在旧商品,则修改;否则新增Sku。如果更新时有对Sku进行操作,则Sku的properties一定要传入。如果存在自定义销售属性,则格式为pid:vid;pid2:vid2;$pText:vText,其中$pText:vText为自定义属性。限制:其中$pText的’$’前缀不能少,且pText和vText文本中不可以存在 冒号:和分号;以及逗号
**/
private $skuProperties;
/**
* 更新的Sku的数量串,结构如:num1,num2,num3 如:2,3,4
**/
private $skuQuantities;
/**
* 商品新旧程度。可选值:new(全新),unused(闲置),second(二手)。
**/
private $stuffStatus;
/**
* 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改
集市卖家默认拍下减库存;
商城卖家默认付款减库存
**/
private $subStock;
/**
* 宝贝标题. 不能超过60字符,受违禁词控制
**/
private $title;
/**
* 有效期。可选值:7,14;单位:天;
**/
private $validThru;
/**
* 商品的重量(商超卖家专用字段)
**/
private $weight;
private $apiParas = array();
public function setAfterSaleId($afterSaleId)
{
$this->afterSaleId = $afterSaleId;
$this->apiParas["after_sale_id"] = $afterSaleId;
}
public function getAfterSaleId()
{
return $this->afterSaleId;
}
public function setApproveStatus($approveStatus)
{
$this->approveStatus = $approveStatus;
$this->apiParas["approve_status"] = $approveStatus;
}
public function getApproveStatus()
{
return $this->approveStatus;
}
public function setAuctionPoint($auctionPoint)
{
$this->auctionPoint = $auctionPoint;
$this->apiParas["auction_point"] = $auctionPoint;
}
public function getAuctionPoint()
{
return $this->auctionPoint;
}
public function setAutoFill($autoFill)
{
$this->autoFill = $autoFill;
$this->apiParas["auto_fill"] = $autoFill;
}
public function getAutoFill()
{
return $this->autoFill;
}
public function setCid($cid)
{
$this->cid = $cid;
$this->apiParas["cid"] = $cid;
}
public function getCid()
{
return $this->cid;
}
public function setCodPostageId($codPostageId)
{
$this->codPostageId = $codPostageId;
$this->apiParas["cod_postage_id"] = $codPostageId;
}
public function getCodPostageId()
{
return $this->codPostageId;
}
public function setDesc($desc)
{
$this->desc = $desc;
$this->apiParas["desc"] = $desc;
}
public function getDesc()
{
return $this->desc;
}
public function setEmptyFields($emptyFields)
{
$this->emptyFields = $emptyFields;
$this->apiParas["empty_fields"] = $emptyFields;
}
public function getEmptyFields()
{
return $this->emptyFields;
}
public function setEmsFee($emsFee)
{
$this->emsFee = $emsFee;
$this->apiParas["ems_fee"] = $emsFee;
}
public function getEmsFee()
{
return $this->emsFee;
}
public function setExpressFee($expressFee)
{
$this->expressFee = $expressFee;
$this->apiParas["express_fee"] = $expressFee;
}
public function getExpressFee()
{
return $this->expressFee;
}
public function setFoodSecurityContact($foodSecurityContact)
{
$this->foodSecurityContact = $foodSecurityContact;
$this->apiParas["food_security.contact"] = $foodSecurityContact;
}
public function getFoodSecurityContact()
{
return $this->foodSecurityContact;
}
public function setFoodSecurityDesignCode($foodSecurityDesignCode)
{
$this->foodSecurityDesignCode = $foodSecurityDesignCode;
$this->apiParas["food_security.design_code"] = $foodSecurityDesignCode;
}
public function getFoodSecurityDesignCode()
{
return $this->foodSecurityDesignCode;
}
public function setFoodSecurityFactory($foodSecurityFactory)
{
$this->foodSecurityFactory = $foodSecurityFactory;
$this->apiParas["food_security.factory"] = $foodSecurityFactory;
}
public function getFoodSecurityFactory()
{
return $this->foodSecurityFactory;
}
public function setFoodSecurityFactorySite($foodSecurityFactorySite)
{
$this->foodSecurityFactorySite = $foodSecurityFactorySite;
$this->apiParas["food_security.factory_site"] = $foodSecurityFactorySite;
}
public function getFoodSecurityFactorySite()
{
return $this->foodSecurityFactorySite;
}
public function setFoodSecurityFoodAdditive($foodSecurityFoodAdditive)
{
$this->foodSecurityFoodAdditive = $foodSecurityFoodAdditive;
$this->apiParas["food_security.food_additive"] = $foodSecurityFoodAdditive;
}
public function getFoodSecurityFoodAdditive()
{
return $this->foodSecurityFoodAdditive;
}
public function setFoodSecurityMix($foodSecurityMix)
{
$this->foodSecurityMix = $foodSecurityMix;
$this->apiParas["food_security.mix"] = $foodSecurityMix;
}
public function getFoodSecurityMix()
{
return $this->foodSecurityMix;
}
public function setFoodSecurityPeriod($foodSecurityPeriod)
{
$this->foodSecurityPeriod = $foodSecurityPeriod;
$this->apiParas["food_security.period"] = $foodSecurityPeriod;
}
public function getFoodSecurityPeriod()
{
return $this->foodSecurityPeriod;
}
public function setFoodSecurityPlanStorage($foodSecurityPlanStorage)
{
$this->foodSecurityPlanStorage = $foodSecurityPlanStorage;
$this->apiParas["food_security.plan_storage"] = $foodSecurityPlanStorage;
}
public function getFoodSecurityPlanStorage()
{
return $this->foodSecurityPlanStorage;
}
public function setFoodSecurityPrdLicenseNo($foodSecurityPrdLicenseNo)
{
$this->foodSecurityPrdLicenseNo = $foodSecurityPrdLicenseNo;
$this->apiParas["food_security.prd_license_no"] = $foodSecurityPrdLicenseNo;
}
public function getFoodSecurityPrdLicenseNo()
{
return $this->foodSecurityPrdLicenseNo;
}
public function setFoodSecurityProductDateEnd($foodSecurityProductDateEnd)
{
$this->foodSecurityProductDateEnd = $foodSecurityProductDateEnd;
$this->apiParas["food_security.product_date_end"] = $foodSecurityProductDateEnd;
}
public function getFoodSecurityProductDateEnd()
{
return $this->foodSecurityProductDateEnd;
}
public function setFoodSecurityProductDateStart($foodSecurityProductDateStart)
{
$this->foodSecurityProductDateStart = $foodSecurityProductDateStart;
$this->apiParas["food_security.product_date_start"] = $foodSecurityProductDateStart;
}
public function getFoodSecurityProductDateStart()
{
return $this->foodSecurityProductDateStart;
}
public function setFoodSecurityStockDateEnd($foodSecurityStockDateEnd)
{
$this->foodSecurityStockDateEnd = $foodSecurityStockDateEnd;
$this->apiParas["food_security.stock_date_end"] = $foodSecurityStockDateEnd;
}
public function getFoodSecurityStockDateEnd()
{
return $this->foodSecurityStockDateEnd;
}
public function setFoodSecurityStockDateStart($foodSecurityStockDateStart)
{
$this->foodSecurityStockDateStart = $foodSecurityStockDateStart;
$this->apiParas["food_security.stock_date_start"] = $foodSecurityStockDateStart;
}
public function getFoodSecurityStockDateStart()
{
return $this->foodSecurityStockDateStart;
}
public function setFoodSecuritySupplier($foodSecuritySupplier)
{
$this->foodSecuritySupplier = $foodSecuritySupplier;
$this->apiParas["food_security.supplier"] = $foodSecuritySupplier;
}
public function getFoodSecuritySupplier()
{
return $this->foodSecuritySupplier;
}
public function setFreightPayer($freightPayer)
{
$this->freightPayer = $freightPayer;
$this->apiParas["freight_payer"] = $freightPayer;
}
public function getFreightPayer()
{
return $this->freightPayer;
}
public function setGlobalStockType($globalStockType)
{
$this->globalStockType = $globalStockType;
$this->apiParas["global_stock_type"] = $globalStockType;
}
public function getGlobalStockType()
{
return $this->globalStockType;
}
public function setHasDiscount($hasDiscount)
{
$this->hasDiscount = $hasDiscount;
$this->apiParas["has_discount"] = $hasDiscount;
}
public function getHasDiscount()
{
return $this->hasDiscount;
}
public function setHasInvoice($hasInvoice)
{
$this->hasInvoice = $hasInvoice;
$this->apiParas["has_invoice"] = $hasInvoice;
}
public function getHasInvoice()
{
return $this->hasInvoice;
}
public function setHasShowcase($hasShowcase)
{
$this->hasShowcase = $hasShowcase;
$this->apiParas["has_showcase"] = $hasShowcase;
}
public function getHasShowcase()
{
return $this->hasShowcase;
}
public function setHasWarranty($hasWarranty)
{
$this->hasWarranty = $hasWarranty;
$this->apiParas["has_warranty"] = $hasWarranty;
}
public function getHasWarranty()
{
return $this->hasWarranty;
}
public function setImage($image)
{
$this->image = $image;
$this->apiParas["image"] = $image;
}
public function getImage()
{
return $this->image;
}
public function setIncrement($increment)
{
$this->increment = $increment;
$this->apiParas["increment"] = $increment;
}
public function getIncrement()
{
return $this->increment;
}
public function setInputPids($inputPids)
{
$this->inputPids = $inputPids;
$this->apiParas["input_pids"] = $inputPids;
}
public function getInputPids()
{
return $this->inputPids;
}
public function setInputStr($inputStr)
{
$this->inputStr = $inputStr;
$this->apiParas["input_str"] = $inputStr;
}
public function getInputStr()
{
return $this->inputStr;
}
public function setIs3D($is3D)
{
$this->is3D = $is3D;
$this->apiParas["is_3D"] = $is3D;
}
public function getIs3D()
{
return $this->is3D;
}
public function setIsEx($isEx)
{
$this->isEx = $isEx;
$this->apiParas["is_ex"] = $isEx;
}
public function getIsEx()
{
return $this->isEx;
}
public function setIsLightningConsignment($isLightningConsignment)
{
$this->isLightningConsignment = $isLightningConsignment;
$this->apiParas["is_lightning_consignment"] = $isLightningConsignment;
}
public function getIsLightningConsignment()
{
return $this->isLightningConsignment;
}
public function setIsReplaceSku($isReplaceSku)
{
$this->isReplaceSku = $isReplaceSku;
$this->apiParas["is_replace_sku"] = $isReplaceSku;
}
public function getIsReplaceSku()
{
return $this->isReplaceSku;
}
public function setIsTaobao($isTaobao)
{
$this->isTaobao = $isTaobao;
$this->apiParas["is_taobao"] = $isTaobao;
}
public function getIsTaobao()
{
return $this->isTaobao;
}
public function setIsXinpin($isXinpin)
{
$this->isXinpin = $isXinpin;
$this->apiParas["is_xinpin"] = $isXinpin;
}
public function getIsXinpin()
{
return $this->isXinpin;
}
public function setItemSize($itemSize)
{
$this->itemSize = $itemSize;
$this->apiParas["item_size"] = $itemSize;
}
public function getItemSize()
{
return $this->itemSize;
}
public function setItemWeight($itemWeight)
{
$this->itemWeight = $itemWeight;
$this->apiParas["item_weight"] = $itemWeight;
}
public function getItemWeight()
{
return $this->itemWeight;
}
public function setLang($lang)
{
$this->lang = $lang;
$this->apiParas["lang"] = $lang;
}
public function getLang()
{
return $this->lang;
}
public function setListTime($listTime)
{
$this->listTime = $listTime;
$this->apiParas["list_time"] = $listTime;
}
public function getListTime()
{
return $this->listTime;
}
public function setLocalityLifeChooseLogis($localityLifeChooseLogis)
{
$this->localityLifeChooseLogis = $localityLifeChooseLogis;
$this->apiParas["locality_life.choose_logis"] = $localityLifeChooseLogis;
}
public function getLocalityLifeChooseLogis()
{
return $this->localityLifeChooseLogis;
}
public function setLocalityLifeExpirydate($localityLifeExpirydate)
{
$this->localityLifeExpirydate = $localityLifeExpirydate;
$this->apiParas["locality_life.expirydate"] = $localityLifeExpirydate;
}
public function getLocalityLifeExpirydate()
{
return $this->localityLifeExpirydate;
}
public function setLocalityLifeMerchant($localityLifeMerchant)
{
$this->localityLifeMerchant = $localityLifeMerchant;
$this->apiParas["locality_life.merchant"] = $localityLifeMerchant;
}
public function getLocalityLifeMerchant()
{
return $this->localityLifeMerchant;
}
public function setLocalityLifeNetworkId($localityLifeNetworkId)
{
$this->localityLifeNetworkId = $localityLifeNetworkId;
$this->apiParas["locality_life.network_id"] = $localityLifeNetworkId;
}
public function getLocalityLifeNetworkId()
{
return $this->localityLifeNetworkId;
}
public function setLocalityLifeRefundRatio($localityLifeRefundRatio)
{
$this->localityLifeRefundRatio = $localityLifeRefundRatio;
$this->apiParas["locality_life.refund_ratio"] = $localityLifeRefundRatio;
}
public function getLocalityLifeRefundRatio()
{
return $this->localityLifeRefundRatio;
}
public function setLocalityLifeVerification($localityLifeVerification)
{
$this->localityLifeVerification = $localityLifeVerification;
$this->apiParas["locality_life.verification"] = $localityLifeVerification;
}
public function getLocalityLifeVerification()
{
return $this->localityLifeVerification;
}
public function setLocationCity($locationCity)
{
$this->locationCity = $locationCity;
$this->apiParas["location.city"] = $locationCity;
}
public function getLocationCity()
{
return $this->locationCity;
}
public function setLocationState($locationState)
{
$this->locationState = $locationState;
$this->apiParas["location.state"] = $locationState;
}
public function getLocationState()
{
return $this->locationState;
}
public function setNum($num)
{
$this->num = $num;
$this->apiParas["num"] = $num;
}
public function getNum()
{
return $this->num;
}
public function setNumIid($numIid)
{
$this->numIid = $numIid;
$this->apiParas["num_iid"] = $numIid;
}
public function getNumIid()
{
return $this->numIid;
}
public function setOuterId($outerId)
{
$this->outerId = $outerId;
$this->apiParas["outer_id"] = $outerId;
}
public function getOuterId()
{
return $this->outerId;
}
public function setPicPath($picPath)
{
$this->picPath = $picPath;
$this->apiParas["pic_path"] = $picPath;
}
public function getPicPath()
{
return $this->picPath;
}
public function setPostFee($postFee)
{
$this->postFee = $postFee;
$this->apiParas["post_fee"] = $postFee;
}
public function getPostFee()
{
return $this->postFee;
}
public function setPostageId($postageId)
{
$this->postageId = $postageId;
$this->apiParas["postage_id"] = $postageId;
}
public function getPostageId()
{
return $this->postageId;
}
public function setPrice($price)
{
$this->price = $price;
$this->apiParas["price"] = $price;
}
public function getPrice()
{
return $this->price;
}
public function setProductId($productId)
{
$this->productId = $productId;
$this->apiParas["product_id"] = $productId;
}
public function getProductId()
{
return $this->productId;
}
public function setPropertyAlias($propertyAlias)
{
$this->propertyAlias = $propertyAlias;
$this->apiParas["property_alias"] = $propertyAlias;
}
public function getPropertyAlias()
{
return $this->propertyAlias;
}
public function setProps($props)
{
$this->props = $props;
$this->apiParas["props"] = $props;
}
public function getProps()
{
return $this->props;
}
public function setScenicTicketBookCost($scenicTicketBookCost)
{
$this->scenicTicketBookCost = $scenicTicketBookCost;
$this->apiParas["scenic_ticket_book_cost"] = $scenicTicketBookCost;
}
public function getScenicTicketBookCost()
{
return $this->scenicTicketBookCost;
}
public function setScenicTicketPayWay($scenicTicketPayWay)
{
$this->scenicTicketPayWay = $scenicTicketPayWay;
$this->apiParas["scenic_ticket_pay_way"] = $scenicTicketPayWay;
}
public function getScenicTicketPayWay()
{
return $this->scenicTicketPayWay;
}
public function setSellPromise($sellPromise)
{
$this->sellPromise = $sellPromise;
$this->apiParas["sell_promise"] = $sellPromise;
}
public function getSellPromise()
{
return $this->sellPromise;
}
public function setSellerCids($sellerCids)
{
$this->sellerCids = $sellerCids;
$this->apiParas["seller_cids"] = $sellerCids;
}
public function getSellerCids()
{
return $this->sellerCids;
}
public function setSkuOuterIds($skuOuterIds)
{
$this->skuOuterIds = $skuOuterIds;
$this->apiParas["sku_outer_ids"] = $skuOuterIds;
}
public function getSkuOuterIds()
{
return $this->skuOuterIds;
}
public function setSkuPrices($skuPrices)
{
$this->skuPrices = $skuPrices;
$this->apiParas["sku_prices"] = $skuPrices;
}
public function getSkuPrices()
{
return $this->skuPrices;
}
public function setSkuProperties($skuProperties)
{
$this->skuProperties = $skuProperties;
$this->apiParas["sku_properties"] = $skuProperties;
}
public function getSkuProperties()
{
return $this->skuProperties;
}
public function setSkuQuantities($skuQuantities)
{
$this->skuQuantities = $skuQuantities;
$this->apiParas["sku_quantities"] = $skuQuantities;
}
public function getSkuQuantities()
{
return $this->skuQuantities;
}
public function setStuffStatus($stuffStatus)
{
$this->stuffStatus = $stuffStatus;
$this->apiParas["stuff_status"] = $stuffStatus;
}
public function getStuffStatus()
{
return $this->stuffStatus;
}
public function setSubStock($subStock)
{
$this->subStock = $subStock;
$this->apiParas["sub_stock"] = $subStock;
}
public function getSubStock()
{
return $this->subStock;
}
public function setTitle($title)
{
$this->title = $title;
$this->apiParas["title"] = $title;
}
public function getTitle()
{
return $this->title;
}
public function setValidThru($validThru)
{
$this->validThru = $validThru;
$this->apiParas["valid_thru"] = $validThru;
}
public function getValidThru()
{
return $this->validThru;
}
public function setWeight($weight)
{
$this->weight = $weight;
$this->apiParas["weight"] = $weight;
}
public function getWeight()
{
return $this->weight;
}
public function getApiMethodName()
{
return "taobao.item.update";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkMinValue($this->cid,0,"cid");
RequestCheckUtil::checkMaxLength($this->desc,200000,"desc");
RequestCheckUtil::checkMaxValue($this->num,999999,"num");
RequestCheckUtil::checkMinValue($this->num,0,"num");
RequestCheckUtil::checkNotNull($this->numIid,"numIid");
RequestCheckUtil::checkMinValue($this->numIid,1,"numIid");
RequestCheckUtil::checkMaxListSize($this->sellerCids,10,"sellerCids");
RequestCheckUtil::checkMaxLength($this->title,60,"title");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}