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 PddWmsWareinformSendRequest extends PopBaseHttpRequest |
8
|
|
|
{ |
9
|
|
|
public function __construct() |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
} |
13
|
|
|
/** |
14
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareinformSendRequest_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.wareinform.send"; |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
public function setRequest($request) |
40
|
|
|
{ |
41
|
|
|
$this->request = $request; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
class PddWmsWareinformSendRequest_Request extends PopBaseJsonEntity |
47
|
|
|
{ |
48
|
|
|
|
49
|
|
|
public function __construct() |
50
|
|
|
{ |
51
|
|
|
|
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @JsonProperty(String, "ownerCode") |
56
|
|
|
*/ |
57
|
|
|
private $ownerCode; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareinformSendRequest_RequestWare, "ware") |
61
|
|
|
*/ |
62
|
|
|
private $ware; |
63
|
|
|
|
64
|
|
|
public function setOwnerCode($ownerCode) |
65
|
|
|
{ |
66
|
|
|
$this->ownerCode = $ownerCode; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function setWare($ware) |
70
|
|
|
{ |
71
|
|
|
$this->ware = $ware; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
class PddWmsWareinformSendRequest_RequestWare extends PopBaseJsonEntity |
77
|
|
|
{ |
78
|
|
|
|
79
|
|
|
public function __construct() |
80
|
|
|
{ |
81
|
|
|
|
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @JsonProperty(String, "color") |
86
|
|
|
*/ |
87
|
|
|
private $color; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @JsonProperty(String, "height") |
91
|
|
|
*/ |
92
|
|
|
private $height; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @JsonProperty(String, "length") |
96
|
|
|
*/ |
97
|
|
|
private $length; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @JsonProperty(String, "size") |
101
|
|
|
*/ |
102
|
|
|
private $size; |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @JsonProperty(String, "volume") |
106
|
|
|
*/ |
107
|
|
|
private $volume; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @JsonProperty(String, "wareName") |
111
|
|
|
*/ |
112
|
|
|
private $wareName; |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @JsonProperty(String, "wareSn") |
116
|
|
|
*/ |
117
|
|
|
private $wareSn; |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @JsonProperty(String, "weight") |
121
|
|
|
*/ |
122
|
|
|
private $weight; |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @JsonProperty(String, "width") |
126
|
|
|
*/ |
127
|
|
|
private $width; |
128
|
|
|
|
129
|
|
|
public function setColor($color) |
130
|
|
|
{ |
131
|
|
|
$this->color = $color; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function setHeight($height) |
135
|
|
|
{ |
136
|
|
|
$this->height = $height; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
public function setLength($length) |
140
|
|
|
{ |
141
|
|
|
$this->length = $length; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
public function setSize($size) |
145
|
|
|
{ |
146
|
|
|
$this->size = $size; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
public function setVolume($volume) |
150
|
|
|
{ |
151
|
|
|
$this->volume = $volume; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
public function setWareName($wareName) |
155
|
|
|
{ |
156
|
|
|
$this->wareName = $wareName; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
public function setWareSn($wareSn) |
160
|
|
|
{ |
161
|
|
|
$this->wareSn = $wareSn; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
public function setWeight($weight) |
165
|
|
|
{ |
166
|
|
|
$this->weight = $weight; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
public function setWidth($width) |
170
|
|
|
{ |
171
|
|
|
$this->width = $width; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
} |
175
|
|
|
|