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 PddWmsDeliveryorderCreateRequest extends PopBaseHttpRequest |
8
|
|
|
{ |
9
|
|
|
public function __construct() |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
} |
13
|
|
|
/** |
14
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderCreateRequest_Request, "request") |
15
|
|
|
*/ |
16
|
|
|
private $request; |
17
|
|
|
|
18
|
|
|
protected function setUserParams(&$params) |
19
|
|
|
{ |
20
|
|
|
$this->setUserParam($params, "request", $this->request); |
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.wms.deliveryorder.create"; |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
public function setRequest($request) |
40
|
|
|
{ |
41
|
|
|
$this->request = $request; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
class PddWmsDeliveryorderCreateRequest_Request extends PopBaseJsonEntity |
47
|
|
|
{ |
48
|
|
|
|
49
|
|
|
public function __construct() |
50
|
|
|
{ |
51
|
|
|
|
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @JsonProperty(String, "createTime") |
56
|
|
|
*/ |
57
|
|
|
private $createTime; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @JsonProperty(String, "deliveryOrderCode") |
61
|
|
|
*/ |
62
|
|
|
private $deliveryOrderCode; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @JsonProperty(String, "orderFlag") |
66
|
|
|
*/ |
67
|
|
|
private $orderFlag; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem>, "orderLines") |
71
|
|
|
*/ |
72
|
|
|
private $orderLines; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @JsonProperty(String, "orderType") |
76
|
|
|
*/ |
77
|
|
|
private $orderType; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @JsonProperty(String, "ownerCode") |
81
|
|
|
*/ |
82
|
|
|
private $ownerCode; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @JsonProperty(String, "placeOrderTime") |
86
|
|
|
*/ |
87
|
|
|
private $placeOrderTime; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @JsonProperty(String, "receiverCity") |
91
|
|
|
*/ |
92
|
|
|
private $receiverCity; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @JsonProperty(String, "receiverDetailAddress") |
96
|
|
|
*/ |
97
|
|
|
private $receiverDetailAddress; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @JsonProperty(String, "receiverDistrict") |
101
|
|
|
*/ |
102
|
|
|
private $receiverDistrict; |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @JsonProperty(String, "receiverName") |
106
|
|
|
*/ |
107
|
|
|
private $receiverName; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @JsonProperty(String, "receiverPhone") |
111
|
|
|
*/ |
112
|
|
|
private $receiverPhone; |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @JsonProperty(String, "receiverProvince") |
116
|
|
|
*/ |
117
|
|
|
private $receiverProvince; |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @JsonProperty(String, "shopNick") |
121
|
|
|
*/ |
122
|
|
|
private $shopNick; |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @JsonProperty(String, "warehouseCode") |
126
|
|
|
*/ |
127
|
|
|
private $warehouseCode; |
128
|
|
|
|
129
|
|
|
public function setCreateTime($createTime) |
130
|
|
|
{ |
131
|
|
|
$this->createTime = $createTime; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function setDeliveryOrderCode($deliveryOrderCode) |
135
|
|
|
{ |
136
|
|
|
$this->deliveryOrderCode = $deliveryOrderCode; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
public function setOrderFlag($orderFlag) |
140
|
|
|
{ |
141
|
|
|
$this->orderFlag = $orderFlag; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
public function setOrderLines($orderLines) |
145
|
|
|
{ |
146
|
|
|
$this->orderLines = $orderLines; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
public function setOrderType($orderType) |
150
|
|
|
{ |
151
|
|
|
$this->orderType = $orderType; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
public function setOwnerCode($ownerCode) |
155
|
|
|
{ |
156
|
|
|
$this->ownerCode = $ownerCode; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
public function setPlaceOrderTime($placeOrderTime) |
160
|
|
|
{ |
161
|
|
|
$this->placeOrderTime = $placeOrderTime; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
public function setReceiverCity($receiverCity) |
165
|
|
|
{ |
166
|
|
|
$this->receiverCity = $receiverCity; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
public function setReceiverDetailAddress($receiverDetailAddress) |
170
|
|
|
{ |
171
|
|
|
$this->receiverDetailAddress = $receiverDetailAddress; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
public function setReceiverDistrict($receiverDistrict) |
175
|
|
|
{ |
176
|
|
|
$this->receiverDistrict = $receiverDistrict; |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
public function setReceiverName($receiverName) |
180
|
|
|
{ |
181
|
|
|
$this->receiverName = $receiverName; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
public function setReceiverPhone($receiverPhone) |
185
|
|
|
{ |
186
|
|
|
$this->receiverPhone = $receiverPhone; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
public function setReceiverProvince($receiverProvince) |
190
|
|
|
{ |
191
|
|
|
$this->receiverProvince = $receiverProvince; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
public function setShopNick($shopNick) |
195
|
|
|
{ |
196
|
|
|
$this->shopNick = $shopNick; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
public function setWarehouseCode($warehouseCode) |
200
|
|
|
{ |
201
|
|
|
$this->warehouseCode = $warehouseCode; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
class PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity |
207
|
|
|
{ |
208
|
|
|
|
209
|
|
|
public function __construct() |
210
|
|
|
{ |
211
|
|
|
|
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* @JsonProperty(String, "parentWareSn") |
216
|
|
|
*/ |
217
|
|
|
private $parentWareSn; |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @JsonProperty(String, "quantity") |
221
|
|
|
*/ |
222
|
|
|
private $quantity; |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @JsonProperty(String, "wareSn") |
226
|
|
|
*/ |
227
|
|
|
private $wareSn; |
228
|
|
|
|
229
|
|
|
public function setParentWareSn($parentWareSn) |
230
|
|
|
{ |
231
|
|
|
$this->parentWareSn = $parentWareSn; |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
public function setQuantity($quantity) |
235
|
|
|
{ |
236
|
|
|
$this->quantity = $quantity; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
public function setWareSn($wareSn) |
240
|
|
|
{ |
241
|
|
|
$this->wareSn = $wareSn; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
} |
245
|
|
|
|