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

setLogisticsType()   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 PddVoucherPhysicalGoodsSendRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(String, "order_sn")
15
	*/
16
	private $orderSn;
17
18
	/**
19
	* @JsonProperty(String, "out_biz_no")
20
	*/
21
	private $outBizNo;
22
23
	/**
24
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherPhysicalGoodsSendRequest_VoucherListItem>, "voucher_list")
25
	*/
26
	private $voucherList;
27
28
	/**
29
	* @JsonProperty(Integer, "logistics_type")
30
	*/
31
	private $logisticsType;
32
33
	/**
34
	* @JsonProperty(String, "recipient")
35
	*/
36
	private $recipient;
37
38
	/**
39
	* @JsonProperty(String, "recipient_mobile")
40
	*/
41
	private $recipientMobile;
42
43
	/**
44
	* @JsonProperty(String, "recipient_address")
45
	*/
46
	private $recipientAddress;
47
48
	/**
49
	* @JsonProperty(String, "logistics_no")
50
	*/
51
	private $logisticsNo;
52
53
	/**
54
	* @JsonProperty(String, "logistics_company_id")
55
	*/
56
	private $logisticsCompanyId;
57
58
	/**
59
	* @JsonProperty(String, "logistics_company")
60
	*/
61
	private $logisticsCompany;
62
63
	protected function setUserParams(&$params)
64
	{
65
		$this->setUserParam($params, "order_sn", $this->orderSn);
66
		$this->setUserParam($params, "out_biz_no", $this->outBizNo);
67
		$this->setUserParam($params, "voucher_list", $this->voucherList);
68
		$this->setUserParam($params, "logistics_type", $this->logisticsType);
69
		$this->setUserParam($params, "recipient", $this->recipient);
70
		$this->setUserParam($params, "recipient_mobile", $this->recipientMobile);
71
		$this->setUserParam($params, "recipient_address", $this->recipientAddress);
72
		$this->setUserParam($params, "logistics_no", $this->logisticsNo);
73
		$this->setUserParam($params, "logistics_company_id", $this->logisticsCompanyId);
74
		$this->setUserParam($params, "logistics_company", $this->logisticsCompany);
75
76
	}
77
78
	public function getVersion()
79
	{
80
		return "V1";
81
	}
82
83
	public function getDataType()
84
	{
85
		return "JSON";
86
	}
87
88
	public function getType()
89
	{
90
		return "pdd.voucher.physical.goods.send";
91
	}
92
93
	public function setOrderSn($orderSn)
94
	{
95
		$this->orderSn = $orderSn;
96
	}
97
98
	public function setOutBizNo($outBizNo)
99
	{
100
		$this->outBizNo = $outBizNo;
101
	}
102
103
	public function setVoucherList($voucherList)
104
	{
105
		$this->voucherList = $voucherList;
106
	}
107
108
	public function setLogisticsType($logisticsType)
109
	{
110
		$this->logisticsType = $logisticsType;
111
	}
112
113
	public function setRecipient($recipient)
114
	{
115
		$this->recipient = $recipient;
116
	}
117
118
	public function setRecipientMobile($recipientMobile)
119
	{
120
		$this->recipientMobile = $recipientMobile;
121
	}
122
123
	public function setRecipientAddress($recipientAddress)
124
	{
125
		$this->recipientAddress = $recipientAddress;
126
	}
127
128
	public function setLogisticsNo($logisticsNo)
129
	{
130
		$this->logisticsNo = $logisticsNo;
131
	}
132
133
	public function setLogisticsCompanyId($logisticsCompanyId)
134
	{
135
		$this->logisticsCompanyId = $logisticsCompanyId;
136
	}
137
138
	public function setLogisticsCompany($logisticsCompany)
139
	{
140
		$this->logisticsCompany = $logisticsCompany;
141
	}
142
143
}
144
145
class PddVoucherPhysicalGoodsSendRequest_VoucherListItem extends PopBaseJsonEntity
146
{
147
148
	public function __construct()
149
	{
150
151
	}
152
153
	/**
154
	* @JsonProperty(String, "voucher_id")
155
	*/
156
	private $voucherId;
157
158
	/**
159
	* @JsonProperty(String, "voucher_no")
160
	*/
161
	private $voucherNo;
162
163
	public function setVoucherId($voucherId)
164
	{
165
		$this->voucherId = $voucherId;
166
	}
167
168
	public function setVoucherNo($voucherNo)
169
	{
170
		$this->voucherNo = $voucherNo;
171
	}
172
173
}
174