1
|
|
|
<?php |
2
|
|
|
namespace Com\Pdd\Pop\Sdk\Api\Request; |
3
|
|
|
|
4
|
|
|
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest; |
5
|
|
|
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity; |
6
|
|
|
|
7
|
|
|
class PddWaybillGetRequest extends PopBaseHttpRequest |
8
|
|
|
{ |
9
|
|
|
public function __construct() |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
} |
13
|
|
|
/** |
14
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest, "param_waybill_cloud_print_apply_new_request") |
15
|
|
|
*/ |
16
|
|
|
private $paramWaybillCloudPrintApplyNewRequest; |
17
|
|
|
|
18
|
|
|
protected function setUserParams(&$params) |
19
|
|
|
{ |
20
|
|
|
$this->setUserParam($params, "param_waybill_cloud_print_apply_new_request", $this->paramWaybillCloudPrintApplyNewRequest); |
21
|
|
|
|
22
|
|
|
} |
23
|
|
|
|
24
|
|
|
public function getVersion() |
25
|
|
|
{ |
26
|
|
|
return "V1"; |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
public function getDataType() |
30
|
|
|
{ |
31
|
|
|
return "JSON"; |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
public function getType() |
35
|
|
|
{ |
36
|
|
|
return "pdd.waybill.get"; |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
public function setParamWaybillCloudPrintApplyNewRequest($paramWaybillCloudPrintApplyNewRequest) |
40
|
|
|
{ |
41
|
|
|
$this->paramWaybillCloudPrintApplyNewRequest = $paramWaybillCloudPrintApplyNewRequest; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest extends PopBaseJsonEntity |
47
|
|
|
{ |
48
|
|
|
|
49
|
|
|
public function __construct() |
50
|
|
|
{ |
51
|
|
|
|
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @JsonProperty(Boolean, "need_encrypt") |
56
|
|
|
*/ |
57
|
|
|
private $needEncrypt; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender, "sender") |
61
|
|
|
*/ |
62
|
|
|
private $sender; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos") |
66
|
|
|
*/ |
67
|
|
|
private $tradeOrderInfoDtos; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @JsonProperty(String, "wp_code") |
71
|
|
|
*/ |
72
|
|
|
private $wpCode; |
73
|
|
|
|
74
|
|
|
public function setNeedEncrypt($needEncrypt) |
75
|
|
|
{ |
76
|
|
|
$this->needEncrypt = $needEncrypt; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function setSender($sender) |
80
|
|
|
{ |
81
|
|
|
$this->sender = $sender; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function setTradeOrderInfoDtos($tradeOrderInfoDtos) |
85
|
|
|
{ |
86
|
|
|
$this->tradeOrderInfoDtos = $tradeOrderInfoDtos; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function setWpCode($wpCode) |
90
|
|
|
{ |
91
|
|
|
$this->wpCode = $wpCode; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender extends PopBaseJsonEntity |
97
|
|
|
{ |
98
|
|
|
|
99
|
|
|
public function __construct() |
100
|
|
|
{ |
101
|
|
|
|
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress, "address") |
106
|
|
|
*/ |
107
|
|
|
private $address; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @JsonProperty(String, "mobile") |
111
|
|
|
*/ |
112
|
|
|
private $mobile; |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @JsonProperty(String, "name") |
116
|
|
|
*/ |
117
|
|
|
private $name; |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @JsonProperty(String, "phone") |
121
|
|
|
*/ |
122
|
|
|
private $phone; |
123
|
|
|
|
124
|
|
|
public function setAddress($address) |
125
|
|
|
{ |
126
|
|
|
$this->address = $address; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
public function setMobile($mobile) |
130
|
|
|
{ |
131
|
|
|
$this->mobile = $mobile; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function setName($name) |
135
|
|
|
{ |
136
|
|
|
$this->name = $name; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
public function setPhone($phone) |
140
|
|
|
{ |
141
|
|
|
$this->phone = $phone; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress extends PopBaseJsonEntity |
147
|
|
|
{ |
148
|
|
|
|
149
|
|
|
public function __construct() |
150
|
|
|
{ |
151
|
|
|
|
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* @JsonProperty(String, "city") |
156
|
|
|
*/ |
157
|
|
|
private $city; |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @JsonProperty(String, "detail") |
161
|
|
|
*/ |
162
|
|
|
private $detail; |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @JsonProperty(String, "district") |
166
|
|
|
*/ |
167
|
|
|
private $district; |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @JsonProperty(String, "province") |
171
|
|
|
*/ |
172
|
|
|
private $province; |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @JsonProperty(String, "town") |
176
|
|
|
*/ |
177
|
|
|
private $town; |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* @JsonProperty(String, "country") |
181
|
|
|
*/ |
182
|
|
|
private $country; |
183
|
|
|
|
184
|
|
|
public function setCity($city) |
185
|
|
|
{ |
186
|
|
|
$this->city = $city; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
public function setDetail($detail) |
190
|
|
|
{ |
191
|
|
|
$this->detail = $detail; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
public function setDistrict($district) |
195
|
|
|
{ |
196
|
|
|
$this->district = $district; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
public function setProvince($province) |
200
|
|
|
{ |
201
|
|
|
$this->province = $province; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
public function setTown($town) |
205
|
|
|
{ |
206
|
|
|
$this->town = $town; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
public function setCountry($country) |
210
|
|
|
{ |
211
|
|
|
$this->country = $country; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity |
217
|
|
|
{ |
218
|
|
|
|
219
|
|
|
public function __construct() |
220
|
|
|
{ |
221
|
|
|
|
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @JsonProperty(String, "logistics_services") |
226
|
|
|
*/ |
227
|
|
|
private $logisticsServices; |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* @JsonProperty(String, "object_id") |
231
|
|
|
*/ |
232
|
|
|
private $objectId; |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo, "order_info") |
236
|
|
|
*/ |
237
|
|
|
private $orderInfo; |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo, "package_info") |
241
|
|
|
*/ |
242
|
|
|
private $packageInfo; |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient, "recipient") |
246
|
|
|
*/ |
247
|
|
|
private $recipient; |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* @JsonProperty(String, "template_url") |
251
|
|
|
*/ |
252
|
|
|
private $templateUrl; |
253
|
|
|
|
254
|
|
|
/** |
255
|
|
|
* @JsonProperty(Long, "user_id") |
256
|
|
|
*/ |
257
|
|
|
private $userId; |
258
|
|
|
|
259
|
|
|
public function setLogisticsServices($logisticsServices) |
260
|
|
|
{ |
261
|
|
|
$this->logisticsServices = $logisticsServices; |
262
|
|
|
} |
263
|
|
|
|
264
|
|
|
public function setObjectId($objectId) |
265
|
|
|
{ |
266
|
|
|
$this->objectId = $objectId; |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
public function setOrderInfo($orderInfo) |
270
|
|
|
{ |
271
|
|
|
$this->orderInfo = $orderInfo; |
272
|
|
|
} |
273
|
|
|
|
274
|
|
|
public function setPackageInfo($packageInfo) |
275
|
|
|
{ |
276
|
|
|
$this->packageInfo = $packageInfo; |
277
|
|
|
} |
278
|
|
|
|
279
|
|
|
public function setRecipient($recipient) |
280
|
|
|
{ |
281
|
|
|
$this->recipient = $recipient; |
282
|
|
|
} |
283
|
|
|
|
284
|
|
|
public function setTemplateUrl($templateUrl) |
285
|
|
|
{ |
286
|
|
|
$this->templateUrl = $templateUrl; |
287
|
|
|
} |
288
|
|
|
|
289
|
|
|
public function setUserId($userId) |
290
|
|
|
{ |
291
|
|
|
$this->userId = $userId; |
292
|
|
|
} |
293
|
|
|
|
294
|
|
|
} |
295
|
|
|
|
296
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity |
297
|
|
|
{ |
298
|
|
|
|
299
|
|
|
public function __construct() |
300
|
|
|
{ |
301
|
|
|
|
302
|
|
|
} |
303
|
|
|
|
304
|
|
|
/** |
305
|
|
|
* @JsonProperty(String, "order_channels_type") |
306
|
|
|
*/ |
307
|
|
|
private $orderChannelsType; |
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @JsonProperty(List<String>, "trade_order_list") |
311
|
|
|
*/ |
312
|
|
|
private $tradeOrderList; |
313
|
|
|
|
314
|
|
|
public function setOrderChannelsType($orderChannelsType) |
315
|
|
|
{ |
316
|
|
|
$this->orderChannelsType = $orderChannelsType; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
public function setTradeOrderList($tradeOrderList) |
320
|
|
|
{ |
321
|
|
|
$this->tradeOrderList = $tradeOrderList; |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
} |
325
|
|
|
|
326
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity |
327
|
|
|
{ |
328
|
|
|
|
329
|
|
|
public function __construct() |
330
|
|
|
{ |
331
|
|
|
|
332
|
|
|
} |
333
|
|
|
|
334
|
|
|
/** |
335
|
|
|
* @JsonProperty(String, "goods_description") |
336
|
|
|
*/ |
337
|
|
|
private $goodsDescription; |
338
|
|
|
|
339
|
|
|
/** |
340
|
|
|
* @JsonProperty(String, "id") |
341
|
|
|
*/ |
342
|
|
|
private $id; |
343
|
|
|
|
344
|
|
|
/** |
345
|
|
|
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items") |
346
|
|
|
*/ |
347
|
|
|
private $items; |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* @JsonProperty(String, "packaging_description") |
351
|
|
|
*/ |
352
|
|
|
private $packagingDescription; |
353
|
|
|
|
354
|
|
|
/** |
355
|
|
|
* @JsonProperty(Integer, "total_packages_count") |
356
|
|
|
*/ |
357
|
|
|
private $totalPackagesCount; |
358
|
|
|
|
359
|
|
|
/** |
360
|
|
|
* @JsonProperty(Long, "volume") |
361
|
|
|
*/ |
362
|
|
|
private $volume; |
363
|
|
|
|
364
|
|
|
/** |
365
|
|
|
* @JsonProperty(Long, "weight") |
366
|
|
|
*/ |
367
|
|
|
private $weight; |
368
|
|
|
|
369
|
|
|
public function setGoodsDescription($goodsDescription) |
370
|
|
|
{ |
371
|
|
|
$this->goodsDescription = $goodsDescription; |
372
|
|
|
} |
373
|
|
|
|
374
|
|
|
public function setId($id) |
375
|
|
|
{ |
376
|
|
|
$this->id = $id; |
377
|
|
|
} |
378
|
|
|
|
379
|
|
|
public function setItems($items) |
380
|
|
|
{ |
381
|
|
|
$this->items = $items; |
382
|
|
|
} |
383
|
|
|
|
384
|
|
|
public function setPackagingDescription($packagingDescription) |
385
|
|
|
{ |
386
|
|
|
$this->packagingDescription = $packagingDescription; |
387
|
|
|
} |
388
|
|
|
|
389
|
|
|
public function setTotalPackagesCount($totalPackagesCount) |
390
|
|
|
{ |
391
|
|
|
$this->totalPackagesCount = $totalPackagesCount; |
392
|
|
|
} |
393
|
|
|
|
394
|
|
|
public function setVolume($volume) |
395
|
|
|
{ |
396
|
|
|
$this->volume = $volume; |
397
|
|
|
} |
398
|
|
|
|
399
|
|
|
public function setWeight($weight) |
400
|
|
|
{ |
401
|
|
|
$this->weight = $weight; |
402
|
|
|
} |
403
|
|
|
|
404
|
|
|
} |
405
|
|
|
|
406
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity |
407
|
|
|
{ |
408
|
|
|
|
409
|
|
|
public function __construct() |
410
|
|
|
{ |
411
|
|
|
|
412
|
|
|
} |
413
|
|
|
|
414
|
|
|
/** |
415
|
|
|
* @JsonProperty(Integer, "count") |
416
|
|
|
*/ |
417
|
|
|
private $count; |
418
|
|
|
|
419
|
|
|
/** |
420
|
|
|
* @JsonProperty(String, "name") |
421
|
|
|
*/ |
422
|
|
|
private $name; |
423
|
|
|
|
424
|
|
|
public function setCount($count) |
425
|
|
|
{ |
426
|
|
|
$this->count = $count; |
427
|
|
|
} |
428
|
|
|
|
429
|
|
|
public function setName($name) |
430
|
|
|
{ |
431
|
|
|
$this->name = $name; |
432
|
|
|
} |
433
|
|
|
|
434
|
|
|
} |
435
|
|
|
|
436
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient extends PopBaseJsonEntity |
437
|
|
|
{ |
438
|
|
|
|
439
|
|
|
public function __construct() |
440
|
|
|
{ |
441
|
|
|
|
442
|
|
|
} |
443
|
|
|
|
444
|
|
|
/** |
445
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress, "address") |
446
|
|
|
*/ |
447
|
|
|
private $address; |
448
|
|
|
|
449
|
|
|
/** |
450
|
|
|
* @JsonProperty(String, "mobile") |
451
|
|
|
*/ |
452
|
|
|
private $mobile; |
453
|
|
|
|
454
|
|
|
/** |
455
|
|
|
* @JsonProperty(String, "name") |
456
|
|
|
*/ |
457
|
|
|
private $name; |
458
|
|
|
|
459
|
|
|
/** |
460
|
|
|
* @JsonProperty(String, "phone") |
461
|
|
|
*/ |
462
|
|
|
private $phone; |
463
|
|
|
|
464
|
|
|
public function setAddress($address) |
465
|
|
|
{ |
466
|
|
|
$this->address = $address; |
467
|
|
|
} |
468
|
|
|
|
469
|
|
|
public function setMobile($mobile) |
470
|
|
|
{ |
471
|
|
|
$this->mobile = $mobile; |
472
|
|
|
} |
473
|
|
|
|
474
|
|
|
public function setName($name) |
475
|
|
|
{ |
476
|
|
|
$this->name = $name; |
477
|
|
|
} |
478
|
|
|
|
479
|
|
|
public function setPhone($phone) |
480
|
|
|
{ |
481
|
|
|
$this->phone = $phone; |
482
|
|
|
} |
483
|
|
|
|
484
|
|
|
} |
485
|
|
|
|
486
|
|
|
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress extends PopBaseJsonEntity |
487
|
|
|
{ |
488
|
|
|
|
489
|
|
|
public function __construct() |
490
|
|
|
{ |
491
|
|
|
|
492
|
|
|
} |
493
|
|
|
|
494
|
|
|
/** |
495
|
|
|
* @JsonProperty(String, "city") |
496
|
|
|
*/ |
497
|
|
|
private $city; |
498
|
|
|
|
499
|
|
|
/** |
500
|
|
|
* @JsonProperty(String, "detail") |
501
|
|
|
*/ |
502
|
|
|
private $detail; |
503
|
|
|
|
504
|
|
|
/** |
505
|
|
|
* @JsonProperty(String, "district") |
506
|
|
|
*/ |
507
|
|
|
private $district; |
508
|
|
|
|
509
|
|
|
/** |
510
|
|
|
* @JsonProperty(String, "province") |
511
|
|
|
*/ |
512
|
|
|
private $province; |
513
|
|
|
|
514
|
|
|
/** |
515
|
|
|
* @JsonProperty(String, "town") |
516
|
|
|
*/ |
517
|
|
|
private $town; |
518
|
|
|
|
519
|
|
|
/** |
520
|
|
|
* @JsonProperty(String, "country") |
521
|
|
|
*/ |
522
|
|
|
private $country; |
523
|
|
|
|
524
|
|
|
public function setCity($city) |
525
|
|
|
{ |
526
|
|
|
$this->city = $city; |
527
|
|
|
} |
528
|
|
|
|
529
|
|
|
public function setDetail($detail) |
530
|
|
|
{ |
531
|
|
|
$this->detail = $detail; |
532
|
|
|
} |
533
|
|
|
|
534
|
|
|
public function setDistrict($district) |
535
|
|
|
{ |
536
|
|
|
$this->district = $district; |
537
|
|
|
} |
538
|
|
|
|
539
|
|
|
public function setProvince($province) |
540
|
|
|
{ |
541
|
|
|
$this->province = $province; |
542
|
|
|
} |
543
|
|
|
|
544
|
|
|
public function setTown($town) |
545
|
|
|
{ |
546
|
|
|
$this->town = $town; |
547
|
|
|
} |
548
|
|
|
|
549
|
|
|
public function setCountry($country) |
550
|
|
|
{ |
551
|
|
|
$this->country = $country; |
552
|
|
|
} |
553
|
|
|
|
554
|
|
|
} |
555
|
|
|
|