AlibabaLogisticsOrderChargeRequest.php
2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?php
/**
* TOP API: alibaba.logistics.order.charge request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class AlibabaLogisticsOrderChargeRequest
{
/**
* 货物描述
**/
private $cargoDescription;
/**
* 货物名称
**/
private $cargoName;
/**
* 付款方式。0:发货人支付;1:收货人支付;2:双方支付
**/
private $payType;
/**
* 线路标志
**/
private $routeCode;
/**
* 货物件数
**/
private $totalNumber;
/**
* 货物体积
**/
private $totalVolume;
/**
* 货物重量
**/
private $totalWeight;
/**
* 下单选中的增值服务
**/
private $vasList;
private $apiParas = array();
public function setCargoDescription($cargoDescription)
{
$this->cargoDescription = $cargoDescription;
$this->apiParas["cargo_description"] = $cargoDescription;
}
public function getCargoDescription()
{
return $this->cargoDescription;
}
public function setCargoName($cargoName)
{
$this->cargoName = $cargoName;
$this->apiParas["cargo_name"] = $cargoName;
}
public function getCargoName()
{
return $this->cargoName;
}
public function setPayType($payType)
{
$this->payType = $payType;
$this->apiParas["pay_type"] = $payType;
}
public function getPayType()
{
return $this->payType;
}
public function setRouteCode($routeCode)
{
$this->routeCode = $routeCode;
$this->apiParas["route_code"] = $routeCode;
}
public function getRouteCode()
{
return $this->routeCode;
}
public function setTotalNumber($totalNumber)
{
$this->totalNumber = $totalNumber;
$this->apiParas["total_number"] = $totalNumber;
}
public function getTotalNumber()
{
return $this->totalNumber;
}
public function setTotalVolume($totalVolume)
{
$this->totalVolume = $totalVolume;
$this->apiParas["total_volume"] = $totalVolume;
}
public function getTotalVolume()
{
return $this->totalVolume;
}
public function setTotalWeight($totalWeight)
{
$this->totalWeight = $totalWeight;
$this->apiParas["total_weight"] = $totalWeight;
}
public function getTotalWeight()
{
return $this->totalWeight;
}
public function setVasList($vasList)
{
$this->vasList = $vasList;
$this->apiParas["vas_list"] = $vasList;
}
public function getVasList()
{
return $this->vasList;
}
public function getApiMethodName()
{
return "alibaba.logistics.order.charge";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->cargoName,"cargoName");
RequestCheckUtil::checkNotNull($this->payType,"payType");
RequestCheckUtil::checkNotNull($this->routeCode,"routeCode");
RequestCheckUtil::checkNotNull($this->totalNumber,"totalNumber");
RequestCheckUtil::checkMaxListSize($this->vasList,12,"vasList");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}