AlibabaLogisticsOrderConsignRequest.php
15.8 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
<?php
/**
* TOP API: alibaba.logistics.order.consign request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class AlibabaLogisticsOrderConsignRequest
{
/**
* 货物描述
**/
private $cargoDescription;
/**
* 货物名称
**/
private $cargoName;
/**
* 物流订单id
**/
private $orderId;
/**
* 付款方式。0:发货人支付;1:收货人支付;2:双方支付
**/
private $payType;
/**
* 收件人地址
**/
private $receiverAddress;
/**
* 收件人地区编码
**/
private $receiverAreaId;
/**
* 收件人城市名
**/
private $receiverCityName;
/**
* 收件人公司名称
**/
private $receiverCorpName;
/**
* 收件人区名
**/
private $receiverCountyName;
/**
* 收件人手机号
**/
private $receiverMobile;
/**
* 收件人名
**/
private $receiverName;
/**
* 收件人电话区号
**/
private $receiverPhoneAreaCode;
/**
* 收件人电话号码
**/
private $receiverPhoneTel;
/**
* 收件人电话分机号
**/
private $receiverPhoneTelExt;
/**
* 收件人邮编
**/
private $receiverPostcode;
/**
* 收件人省名
**/
private $receiverProvinceName;
/**
* 收件人旺旺号
**/
private $receiverWangwangNo;
/**
* 退货接收人地址
**/
private $refunderAddress;
/**
* 退货接收人地区id
**/
private $refunderAreaId;
/**
* 退货接收人城市名
**/
private $refunderCityName;
/**
* 退货接收人公司名称
**/
private $refunderCorpName;
/**
* 退货接收人区名
**/
private $refunderCountyName;
/**
* 退货接收人手机号码
**/
private $refunderMobile;
/**
* 退货接收人姓名
**/
private $refunderName;
/**
* 退货接收人电话区号
**/
private $refunderPhoneAreaCode;
/**
* 退货接收人电话号码
**/
private $refunderPhoneTel;
/**
* 退货接收人电话分机号
**/
private $refunderPhoneTelExt;
/**
* 退货接收人邮编
**/
private $refunderPostcode;
/**
* 退货接收人省名
**/
private $refunderProvinceName;
/**
* 退货接收人旺旺id
**/
private $refunderWangwangNo;
/**
* 发货备注
**/
private $remark;
/**
* 线路code,线路的业务标识。
**/
private $routeCode;
/**
* 发货人地址
**/
private $senderAddress;
/**
* 发货地区编码
**/
private $senderAreaId;
/**
* 发货人城市名
**/
private $senderCityName;
/**
* 发货人公司名称
**/
private $senderCorpName;
/**
* 发货人区名
**/
private $senderCountyName;
/**
* 发货人手机号
**/
private $senderMobile;
/**
* 发货人姓名
**/
private $senderName;
/**
* 发货人电话区号
**/
private $senderPhoneAreaCode;
/**
* 发货人电话
**/
private $senderPhoneTel;
/**
* 发货人电话分机号
**/
private $senderPhoneTelExt;
/**
* 发货人地区邮编
**/
private $senderPostcode;
/**
* 发货人省名
**/
private $senderProvinceName;
/**
* 发货人旺旺号
**/
private $senderWangwangNo;
/**
* top开放的来源。默认都使用:TAOBAO_TOP。
**/
private $source;
/**
* 货物件数
**/
private $totalNumber;
/**
* 货物体积
**/
private $totalVolume;
/**
* 货物重量
**/
private $totalWeight;
/**
* 下单选中的增值服务
**/
private $vasList;
private $apiParas = array();
public function setCargoDescription($cargoDescription)
{
$this->cargoDescription = $cargoDescription;
$this->apiParas["cargo_description"] = $cargoDescription;
}
public function getCargoDescription()
{
return $this->cargoDescription;
}
public function setCargoName($cargoName)
{
$this->cargoName = $cargoName;
$this->apiParas["cargo_name"] = $cargoName;
}
public function getCargoName()
{
return $this->cargoName;
}
public function setOrderId($orderId)
{
$this->orderId = $orderId;
$this->apiParas["order_id"] = $orderId;
}
public function getOrderId()
{
return $this->orderId;
}
public function setPayType($payType)
{
$this->payType = $payType;
$this->apiParas["pay_type"] = $payType;
}
public function getPayType()
{
return $this->payType;
}
public function setReceiverAddress($receiverAddress)
{
$this->receiverAddress = $receiverAddress;
$this->apiParas["receiver_address"] = $receiverAddress;
}
public function getReceiverAddress()
{
return $this->receiverAddress;
}
public function setReceiverAreaId($receiverAreaId)
{
$this->receiverAreaId = $receiverAreaId;
$this->apiParas["receiver_area_id"] = $receiverAreaId;
}
public function getReceiverAreaId()
{
return $this->receiverAreaId;
}
public function setReceiverCityName($receiverCityName)
{
$this->receiverCityName = $receiverCityName;
$this->apiParas["receiver_city_name"] = $receiverCityName;
}
public function getReceiverCityName()
{
return $this->receiverCityName;
}
public function setReceiverCorpName($receiverCorpName)
{
$this->receiverCorpName = $receiverCorpName;
$this->apiParas["receiver_corp_name"] = $receiverCorpName;
}
public function getReceiverCorpName()
{
return $this->receiverCorpName;
}
public function setReceiverCountyName($receiverCountyName)
{
$this->receiverCountyName = $receiverCountyName;
$this->apiParas["receiver_county_name"] = $receiverCountyName;
}
public function getReceiverCountyName()
{
return $this->receiverCountyName;
}
public function setReceiverMobile($receiverMobile)
{
$this->receiverMobile = $receiverMobile;
$this->apiParas["receiver_mobile"] = $receiverMobile;
}
public function getReceiverMobile()
{
return $this->receiverMobile;
}
public function setReceiverName($receiverName)
{
$this->receiverName = $receiverName;
$this->apiParas["receiver_name"] = $receiverName;
}
public function getReceiverName()
{
return $this->receiverName;
}
public function setReceiverPhoneAreaCode($receiverPhoneAreaCode)
{
$this->receiverPhoneAreaCode = $receiverPhoneAreaCode;
$this->apiParas["receiver_phone_area_code"] = $receiverPhoneAreaCode;
}
public function getReceiverPhoneAreaCode()
{
return $this->receiverPhoneAreaCode;
}
public function setReceiverPhoneTel($receiverPhoneTel)
{
$this->receiverPhoneTel = $receiverPhoneTel;
$this->apiParas["receiver_phone_tel"] = $receiverPhoneTel;
}
public function getReceiverPhoneTel()
{
return $this->receiverPhoneTel;
}
public function setReceiverPhoneTelExt($receiverPhoneTelExt)
{
$this->receiverPhoneTelExt = $receiverPhoneTelExt;
$this->apiParas["receiver_phone_tel_ext"] = $receiverPhoneTelExt;
}
public function getReceiverPhoneTelExt()
{
return $this->receiverPhoneTelExt;
}
public function setReceiverPostcode($receiverPostcode)
{
$this->receiverPostcode = $receiverPostcode;
$this->apiParas["receiver_postcode"] = $receiverPostcode;
}
public function getReceiverPostcode()
{
return $this->receiverPostcode;
}
public function setReceiverProvinceName($receiverProvinceName)
{
$this->receiverProvinceName = $receiverProvinceName;
$this->apiParas["receiver_province_name"] = $receiverProvinceName;
}
public function getReceiverProvinceName()
{
return $this->receiverProvinceName;
}
public function setReceiverWangwangNo($receiverWangwangNo)
{
$this->receiverWangwangNo = $receiverWangwangNo;
$this->apiParas["receiver_wangwang_no"] = $receiverWangwangNo;
}
public function getReceiverWangwangNo()
{
return $this->receiverWangwangNo;
}
public function setRefunderAddress($refunderAddress)
{
$this->refunderAddress = $refunderAddress;
$this->apiParas["refunder_address"] = $refunderAddress;
}
public function getRefunderAddress()
{
return $this->refunderAddress;
}
public function setRefunderAreaId($refunderAreaId)
{
$this->refunderAreaId = $refunderAreaId;
$this->apiParas["refunder_area_id"] = $refunderAreaId;
}
public function getRefunderAreaId()
{
return $this->refunderAreaId;
}
public function setRefunderCityName($refunderCityName)
{
$this->refunderCityName = $refunderCityName;
$this->apiParas["refunder_city_name"] = $refunderCityName;
}
public function getRefunderCityName()
{
return $this->refunderCityName;
}
public function setRefunderCorpName($refunderCorpName)
{
$this->refunderCorpName = $refunderCorpName;
$this->apiParas["refunder_corp_name"] = $refunderCorpName;
}
public function getRefunderCorpName()
{
return $this->refunderCorpName;
}
public function setRefunderCountyName($refunderCountyName)
{
$this->refunderCountyName = $refunderCountyName;
$this->apiParas["refunder_county_name"] = $refunderCountyName;
}
public function getRefunderCountyName()
{
return $this->refunderCountyName;
}
public function setRefunderMobile($refunderMobile)
{
$this->refunderMobile = $refunderMobile;
$this->apiParas["refunder_mobile"] = $refunderMobile;
}
public function getRefunderMobile()
{
return $this->refunderMobile;
}
public function setRefunderName($refunderName)
{
$this->refunderName = $refunderName;
$this->apiParas["refunder_name"] = $refunderName;
}
public function getRefunderName()
{
return $this->refunderName;
}
public function setRefunderPhoneAreaCode($refunderPhoneAreaCode)
{
$this->refunderPhoneAreaCode = $refunderPhoneAreaCode;
$this->apiParas["refunder_phone_area_code"] = $refunderPhoneAreaCode;
}
public function getRefunderPhoneAreaCode()
{
return $this->refunderPhoneAreaCode;
}
public function setRefunderPhoneTel($refunderPhoneTel)
{
$this->refunderPhoneTel = $refunderPhoneTel;
$this->apiParas["refunder_phone_tel"] = $refunderPhoneTel;
}
public function getRefunderPhoneTel()
{
return $this->refunderPhoneTel;
}
public function setRefunderPhoneTelExt($refunderPhoneTelExt)
{
$this->refunderPhoneTelExt = $refunderPhoneTelExt;
$this->apiParas["refunder_phone_tel_ext"] = $refunderPhoneTelExt;
}
public function getRefunderPhoneTelExt()
{
return $this->refunderPhoneTelExt;
}
public function setRefunderPostcode($refunderPostcode)
{
$this->refunderPostcode = $refunderPostcode;
$this->apiParas["refunder_postcode"] = $refunderPostcode;
}
public function getRefunderPostcode()
{
return $this->refunderPostcode;
}
public function setRefunderProvinceName($refunderProvinceName)
{
$this->refunderProvinceName = $refunderProvinceName;
$this->apiParas["refunder_province_name"] = $refunderProvinceName;
}
public function getRefunderProvinceName()
{
return $this->refunderProvinceName;
}
public function setRefunderWangwangNo($refunderWangwangNo)
{
$this->refunderWangwangNo = $refunderWangwangNo;
$this->apiParas["refunder_wangwang_no"] = $refunderWangwangNo;
}
public function getRefunderWangwangNo()
{
return $this->refunderWangwangNo;
}
public function setRemark($remark)
{
$this->remark = $remark;
$this->apiParas["remark"] = $remark;
}
public function getRemark()
{
return $this->remark;
}
public function setRouteCode($routeCode)
{
$this->routeCode = $routeCode;
$this->apiParas["route_code"] = $routeCode;
}
public function getRouteCode()
{
return $this->routeCode;
}
public function setSenderAddress($senderAddress)
{
$this->senderAddress = $senderAddress;
$this->apiParas["sender_address"] = $senderAddress;
}
public function getSenderAddress()
{
return $this->senderAddress;
}
public function setSenderAreaId($senderAreaId)
{
$this->senderAreaId = $senderAreaId;
$this->apiParas["sender_area_id"] = $senderAreaId;
}
public function getSenderAreaId()
{
return $this->senderAreaId;
}
public function setSenderCityName($senderCityName)
{
$this->senderCityName = $senderCityName;
$this->apiParas["sender_city_name"] = $senderCityName;
}
public function getSenderCityName()
{
return $this->senderCityName;
}
public function setSenderCorpName($senderCorpName)
{
$this->senderCorpName = $senderCorpName;
$this->apiParas["sender_corp_name"] = $senderCorpName;
}
public function getSenderCorpName()
{
return $this->senderCorpName;
}
public function setSenderCountyName($senderCountyName)
{
$this->senderCountyName = $senderCountyName;
$this->apiParas["sender_county_name"] = $senderCountyName;
}
public function getSenderCountyName()
{
return $this->senderCountyName;
}
public function setSenderMobile($senderMobile)
{
$this->senderMobile = $senderMobile;
$this->apiParas["sender_mobile"] = $senderMobile;
}
public function getSenderMobile()
{
return $this->senderMobile;
}
public function setSenderName($senderName)
{
$this->senderName = $senderName;
$this->apiParas["sender_name"] = $senderName;
}
public function getSenderName()
{
return $this->senderName;
}
public function setSenderPhoneAreaCode($senderPhoneAreaCode)
{
$this->senderPhoneAreaCode = $senderPhoneAreaCode;
$this->apiParas["sender_phone_area_code"] = $senderPhoneAreaCode;
}
public function getSenderPhoneAreaCode()
{
return $this->senderPhoneAreaCode;
}
public function setSenderPhoneTel($senderPhoneTel)
{
$this->senderPhoneTel = $senderPhoneTel;
$this->apiParas["sender_phone_tel"] = $senderPhoneTel;
}
public function getSenderPhoneTel()
{
return $this->senderPhoneTel;
}
public function setSenderPhoneTelExt($senderPhoneTelExt)
{
$this->senderPhoneTelExt = $senderPhoneTelExt;
$this->apiParas["sender_phone_tel_ext"] = $senderPhoneTelExt;
}
public function getSenderPhoneTelExt()
{
return $this->senderPhoneTelExt;
}
public function setSenderPostcode($senderPostcode)
{
$this->senderPostcode = $senderPostcode;
$this->apiParas["sender_postcode"] = $senderPostcode;
}
public function getSenderPostcode()
{
return $this->senderPostcode;
}
public function setSenderProvinceName($senderProvinceName)
{
$this->senderProvinceName = $senderProvinceName;
$this->apiParas["sender_province_name"] = $senderProvinceName;
}
public function getSenderProvinceName()
{
return $this->senderProvinceName;
}
public function setSenderWangwangNo($senderWangwangNo)
{
$this->senderWangwangNo = $senderWangwangNo;
$this->apiParas["sender_wangwang_no"] = $senderWangwangNo;
}
public function getSenderWangwangNo()
{
return $this->senderWangwangNo;
}
public function setSource($source)
{
$this->source = $source;
$this->apiParas["source"] = $source;
}
public function getSource()
{
return $this->source;
}
public function setTotalNumber($totalNumber)
{
$this->totalNumber = $totalNumber;
$this->apiParas["total_number"] = $totalNumber;
}
public function getTotalNumber()
{
return $this->totalNumber;
}
public function setTotalVolume($totalVolume)
{
$this->totalVolume = $totalVolume;
$this->apiParas["total_volume"] = $totalVolume;
}
public function getTotalVolume()
{
return $this->totalVolume;
}
public function setTotalWeight($totalWeight)
{
$this->totalWeight = $totalWeight;
$this->apiParas["total_weight"] = $totalWeight;
}
public function getTotalWeight()
{
return $this->totalWeight;
}
public function setVasList($vasList)
{
$this->vasList = $vasList;
$this->apiParas["vas_list"] = $vasList;
}
public function getVasList()
{
return $this->vasList;
}
public function getApiMethodName()
{
return "alibaba.logistics.order.consign";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->cargoName,"cargoName");
RequestCheckUtil::checkNotNull($this->orderId,"orderId");
RequestCheckUtil::checkNotNull($this->payType,"payType");
RequestCheckUtil::checkNotNull($this->routeCode,"routeCode");
RequestCheckUtil::checkNotNull($this->source,"source");
RequestCheckUtil::checkNotNull($this->totalNumber,"totalNumber");
RequestCheckUtil::checkMaxListSize($this->vasList,12,"vasList");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}