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

PddWmsInborderConfirmRequest::setUserParams()   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 PddWmsInborderConfirmRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_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.inborder.confirm";
37
	}
38
39
	public function setRequest($request)
40
	{
41
		$this->request = $request;
42
	}
43
44
}
45
46
class PddWmsInborderConfirmRequest_Request extends PopBaseJsonEntity
47
{
48
49
	public function __construct()
50
	{
51
52
	}
53
54
	/**
55
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestInbOrder, "inbOrder")
56
	*/
57
	private $inbOrder;
58
59
	/**
60
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestOrderLinesItem>, "orderLines")
61
	*/
62
	private $orderLines;
63
64
	/**
65
	* @JsonProperty(String, "ownerCode")
66
	*/
67
	private $ownerCode;
68
69
	public function setInbOrder($inbOrder)
70
	{
71
		$this->inbOrder = $inbOrder;
72
	}
73
74
	public function setOrderLines($orderLines)
75
	{
76
		$this->orderLines = $orderLines;
77
	}
78
79
	public function setOwnerCode($ownerCode)
80
	{
81
		$this->ownerCode = $ownerCode;
82
	}
83
84
}
85
86
class PddWmsInborderConfirmRequest_RequestInbOrder extends PopBaseJsonEntity
87
{
88
89
	public function __construct()
90
	{
91
92
	}
93
94
	/**
95
	* @JsonProperty(String, "inbOrderCode")
96
	*/
97
	private $inbOrderCode;
98
99
	/**
100
	* @JsonProperty(String, "orderType")
101
	*/
102
	private $orderType;
103
104
	/**
105
	* @JsonProperty(String, "outBizCode")
106
	*/
107
	private $outBizCode;
108
109
	/**
110
	* @JsonProperty(String, "status")
111
	*/
112
	private $status;
113
114
	/**
115
	* @JsonProperty(String, "warehouseCode")
116
	*/
117
	private $warehouseCode;
118
119
	/**
120
	* @JsonProperty(Long, "warehouseId")
121
	*/
122
	private $warehouseId;
123
124
	public function setInbOrderCode($inbOrderCode)
125
	{
126
		$this->inbOrderCode = $inbOrderCode;
127
	}
128
129
	public function setOrderType($orderType)
130
	{
131
		$this->orderType = $orderType;
132
	}
133
134
	public function setOutBizCode($outBizCode)
135
	{
136
		$this->outBizCode = $outBizCode;
137
	}
138
139
	public function setStatus($status)
140
	{
141
		$this->status = $status;
142
	}
143
144
	public function setWarehouseCode($warehouseCode)
145
	{
146
		$this->warehouseCode = $warehouseCode;
147
	}
148
149
	public function setWarehouseId($warehouseId)
150
	{
151
		$this->warehouseId = $warehouseId;
152
	}
153
154
}
155
156
class PddWmsInborderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity
157
{
158
159
	public function __construct()
160
	{
161
162
	}
163
164
	/**
165
	* @JsonProperty(Long, "actualReceiveQuantity")
166
	*/
167
	private $actualReceiveQuantity;
168
169
	/**
170
	* @JsonProperty(String, "inventoryType")
171
	*/
172
	private $inventoryType;
173
174
	/**
175
	* @JsonProperty(String, "wareSn")
176
	*/
177
	private $wareSn;
178
179
	public function setActualReceiveQuantity($actualReceiveQuantity)
180
	{
181
		$this->actualReceiveQuantity = $actualReceiveQuantity;
182
	}
183
184
	public function setInventoryType($inventoryType)
185
	{
186
		$this->inventoryType = $inventoryType;
187
	}
188
189
	public function setWareSn($wareSn)
190
	{
191
		$this->wareSn = $wareSn;
192
	}
193
194
}
195