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

PddWmsReturnorderCreateRequest   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 35
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setUserParams() 0 3 1
A __construct() 0 2 1
A getType() 0 3 1
A setRequest() 0 3 1
A getDataType() 0 3 1
A getVersion() 0 3 1
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 PddWmsReturnorderCreateRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderCreateRequest_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.returnorder.create";
37
	}
38
39
	public function setRequest($request)
40
	{
41
		$this->request = $request;
42
	}
43
44
}
45
46
class PddWmsReturnorderCreateRequest_Request extends PopBaseJsonEntity
47
{
48
49
	public function __construct()
50
	{
51
52
	}
53
54
	/**
55
	* @JsonProperty(String, "deliveryOrderCode")
56
	*/
57
	private $deliveryOrderCode;
58
59
	/**
60
	* @JsonProperty(String, "orderFlag")
61
	*/
62
	private $orderFlag;
63
64
	/**
65
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderCreateRequest_RequestOrderLinesItem>, "orderLines")
66
	*/
67
	private $orderLines;
68
69
	/**
70
	* @JsonProperty(String, "orderType")
71
	*/
72
	private $orderType;
73
74
	/**
75
	* @JsonProperty(String, "ownerCode")
76
	*/
77
	private $ownerCode;
78
79
	/**
80
	* @JsonProperty(String, "returnOrderCode")
81
	*/
82
	private $returnOrderCode;
83
84
	/**
85
	* @JsonProperty(String, "returnReason")
86
	*/
87
	private $returnReason;
88
89
	/**
90
	* @JsonProperty(String, "warehouseCode")
91
	*/
92
	private $warehouseCode;
93
94
	public function setDeliveryOrderCode($deliveryOrderCode)
95
	{
96
		$this->deliveryOrderCode = $deliveryOrderCode;
97
	}
98
99
	public function setOrderFlag($orderFlag)
100
	{
101
		$this->orderFlag = $orderFlag;
102
	}
103
104
	public function setOrderLines($orderLines)
105
	{
106
		$this->orderLines = $orderLines;
107
	}
108
109
	public function setOrderType($orderType)
110
	{
111
		$this->orderType = $orderType;
112
	}
113
114
	public function setOwnerCode($ownerCode)
115
	{
116
		$this->ownerCode = $ownerCode;
117
	}
118
119
	public function setReturnOrderCode($returnOrderCode)
120
	{
121
		$this->returnOrderCode = $returnOrderCode;
122
	}
123
124
	public function setReturnReason($returnReason)
125
	{
126
		$this->returnReason = $returnReason;
127
	}
128
129
	public function setWarehouseCode($warehouseCode)
130
	{
131
		$this->warehouseCode = $warehouseCode;
132
	}
133
134
}
135
136
class PddWmsReturnorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity
137
{
138
139
	public function __construct()
140
	{
141
142
	}
143
144
	/**
145
	* @JsonProperty(String, "inventoryType")
146
	*/
147
	private $inventoryType;
148
149
	/**
150
	* @JsonProperty(String, "parentWareSn")
151
	*/
152
	private $parentWareSn;
153
154
	/**
155
	* @JsonProperty(String, "quantity")
156
	*/
157
	private $quantity;
158
159
	/**
160
	* @JsonProperty(String, "wareSn")
161
	*/
162
	private $wareSn;
163
164
	public function setInventoryType($inventoryType)
165
	{
166
		$this->inventoryType = $inventoryType;
167
	}
168
169
	public function setParentWareSn($parentWareSn)
170
	{
171
		$this->parentWareSn = $parentWareSn;
172
	}
173
174
	public function setQuantity($quantity)
175
	{
176
		$this->quantity = $quantity;
177
	}
178
179
	public function setWareSn($wareSn)
180
	{
181
		$this->wareSn = $wareSn;
182
	}
183
184
}
185