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

PddWaybillQueryByWaybillcodeRequest::getType()   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 0
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 PddWaybillQueryByWaybillcodeRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillQueryByWaybillcodeRequest_ParamListItem>, "param_list")
15
	*/
16
	private $paramList;
17
18
	protected function setUserParams(&$params)
19
	{
20
		$this->setUserParam($params, "param_list", $this->paramList);
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.query.by.waybillcode";
37
	}
38
39
	public function setParamList($paramList)
40
	{
41
		$this->paramList = $paramList;
42
	}
43
44
}
45
46
class PddWaybillQueryByWaybillcodeRequest_ParamListItem 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(String, "waybill_code")
61
	*/
62
	private $waybillCode;
63
64
	/**
65
	* @JsonProperty(String, "wp_code")
66
	*/
67
	private $wpCode;
68
69
	public function setObjectId($objectId)
70
	{
71
		$this->objectId = $objectId;
72
	}
73
74
	public function setWaybillCode($waybillCode)
75
	{
76
		$this->waybillCode = $waybillCode;
77
	}
78
79
	public function setWpCode($wpCode)
80
	{
81
		$this->wpCode = $wpCode;
82
	}
83
84
}
85