Passed
Push — v6 ( fe03e1...0ec70f )
by 光春
04:11
created

setDetail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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 PddWaybillUpdateRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest, "param_waybill_cloud_print_update_request")
15
	*/
16
	private $paramWaybillCloudPrintUpdateRequest;
17
18
	protected function setUserParams(&$params)
19
	{
20
		$this->setUserParam($params, "param_waybill_cloud_print_update_request", $this->paramWaybillCloudPrintUpdateRequest);
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.update";
37
	}
38
39
	public function setParamWaybillCloudPrintUpdateRequest($paramWaybillCloudPrintUpdateRequest)
40
	{
41
		$this->paramWaybillCloudPrintUpdateRequest = $paramWaybillCloudPrintUpdateRequest;
42
	}
43
44
}
45
46
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest extends PopBaseJsonEntity
47
{
48
49
	public function __construct()
50
	{
51
52
	}
53
54
	/**
55
	* @JsonProperty(String, "object_id")
56
	*/
57
	private $objectId;
58
59
	/**
60
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo, "package_info")
61
	*/
62
	private $packageInfo;
63
64
	/**
65
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient, "recipient")
66
	*/
67
	private $recipient;
68
69
	/**
70
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender, "sender")
71
	*/
72
	private $sender;
73
74
	/**
75
	* @JsonProperty(String, "template_url")
76
	*/
77
	private $templateUrl;
78
79
	/**
80
	* @JsonProperty(String, "waybill_code")
81
	*/
82
	private $waybillCode;
83
84
	/**
85
	* @JsonProperty(String, "wp_code")
86
	*/
87
	private $wpCode;
88
89
	public function setObjectId($objectId)
90
	{
91
		$this->objectId = $objectId;
92
	}
93
94
	public function setPackageInfo($packageInfo)
95
	{
96
		$this->packageInfo = $packageInfo;
97
	}
98
99
	public function setRecipient($recipient)
100
	{
101
		$this->recipient = $recipient;
102
	}
103
104
	public function setSender($sender)
105
	{
106
		$this->sender = $sender;
107
	}
108
109
	public function setTemplateUrl($templateUrl)
110
	{
111
		$this->templateUrl = $templateUrl;
112
	}
113
114
	public function setWaybillCode($waybillCode)
115
	{
116
		$this->waybillCode = $waybillCode;
117
	}
118
119
	public function setWpCode($wpCode)
120
	{
121
		$this->wpCode = $wpCode;
122
	}
123
124
}
125
126
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity
127
{
128
129
	public function __construct()
130
	{
131
132
	}
133
134
	/**
135
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items")
136
	*/
137
	private $items;
138
139
	/**
140
	* @JsonProperty(Long, "volume")
141
	*/
142
	private $volume;
143
144
	/**
145
	* @JsonProperty(Long, "weight")
146
	*/
147
	private $weight;
148
149
	public function setItems($items)
150
	{
151
		$this->items = $items;
152
	}
153
154
	public function setVolume($volume)
155
	{
156
		$this->volume = $volume;
157
	}
158
159
	public function setWeight($weight)
160
	{
161
		$this->weight = $weight;
162
	}
163
164
}
165
166
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity
167
{
168
169
	public function __construct()
170
	{
171
172
	}
173
174
	/**
175
	* @JsonProperty(Integer, "count")
176
	*/
177
	private $count;
178
179
	/**
180
	* @JsonProperty(String, "name")
181
	*/
182
	private $name;
183
184
	public function setCount($count)
185
	{
186
		$this->count = $count;
187
	}
188
189
	public function setName($name)
190
	{
191
		$this->name = $name;
192
	}
193
194
}
195
196
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity
197
{
198
199
	public function __construct()
200
	{
201
202
	}
203
204
	/**
205
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress, "address")
206
	*/
207
	private $address;
208
209
	/**
210
	* @JsonProperty(String, "mobile")
211
	*/
212
	private $mobile;
213
214
	/**
215
	* @JsonProperty(String, "name")
216
	*/
217
	private $name;
218
219
	/**
220
	* @JsonProperty(String, "phone")
221
	*/
222
	private $phone;
223
224
	public function setAddress($address)
225
	{
226
		$this->address = $address;
227
	}
228
229
	public function setMobile($mobile)
230
	{
231
		$this->mobile = $mobile;
232
	}
233
234
	public function setName($name)
235
	{
236
		$this->name = $name;
237
	}
238
239
	public function setPhone($phone)
240
	{
241
		$this->phone = $phone;
242
	}
243
244
}
245
246
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity
247
{
248
249
	public function __construct()
250
	{
251
252
	}
253
254
	/**
255
	* @JsonProperty(String, "city")
256
	*/
257
	private $city;
258
259
	/**
260
	* @JsonProperty(String, "detail")
261
	*/
262
	private $detail;
263
264
	/**
265
	* @JsonProperty(String, "district")
266
	*/
267
	private $district;
268
269
	/**
270
	* @JsonProperty(String, "province")
271
	*/
272
	private $province;
273
274
	/**
275
	* @JsonProperty(String, "town")
276
	*/
277
	private $town;
278
279
	/**
280
	* @JsonProperty(String, "country")
281
	*/
282
	private $country;
283
284
	public function setCity($city)
285
	{
286
		$this->city = $city;
287
	}
288
289
	public function setDetail($detail)
290
	{
291
		$this->detail = $detail;
292
	}
293
294
	public function setDistrict($district)
295
	{
296
		$this->district = $district;
297
	}
298
299
	public function setProvince($province)
300
	{
301
		$this->province = $province;
302
	}
303
304
	public function setTown($town)
305
	{
306
		$this->town = $town;
307
	}
308
309
	public function setCountry($country)
310
	{
311
		$this->country = $country;
312
	}
313
314
}
315
316
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity
317
{
318
319
	public function __construct()
320
	{
321
322
	}
323
324
	/**
325
	* @JsonProperty(String, "mobile")
326
	*/
327
	private $mobile;
328
329
	/**
330
	* @JsonProperty(String, "name")
331
	*/
332
	private $name;
333
334
	/**
335
	* @JsonProperty(String, "phone")
336
	*/
337
	private $phone;
338
339
	public function setMobile($mobile)
340
	{
341
		$this->mobile = $mobile;
342
	}
343
344
	public function setName($name)
345
	{
346
		$this->name = $name;
347
	}
348
349
	public function setPhone($phone)
350
	{
351
		$this->phone = $phone;
352
	}
353
354
}
355