FenxiaoOrderCreateDealerRequest.php
4.67 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<?php
/**
* TOP API: taobao.fenxiao.order.create.dealer request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class FenxiaoOrderCreateDealerRequest
{
/**
* 街道
**/
private $addr;
/**
* 买家姓名
**/
private $buyerName;
/**
* 市
**/
private $city;
/**
* 区
**/
private $country;
/**
* 运费,单位为分
**/
private $logisticFee;
/**
* 运输方式,快递,平邮等
**/
private $logisticType;
/**
* 留言
**/
private $message;
/**
* 买家手机号码和电话号码两者中必须有一个
**/
private $mobilePhone;
/**
* erp主订单号,用于去重。当传入号已存在将返回原来的采购单
**/
private $outerId;
/**
* 支付类型,需要供应支持该支付类型
**/
private $payType;
/**
* 买家电话号码
**/
private $phone;
/**
* 省
**/
private $province;
/**
* 子单信息,子单内部以‘,’隔开,多个子单以‘;’隔开.
例(分销产品id,skuid,购买数量,单价;分销产品id:,skuid,购买数量,单价)
单价的单位位分
**/
private $subOrderDetail;
/**
* 邮编
**/
private $zipCode;
private $apiParas = array();
public function setAddr($addr)
{
$this->addr = $addr;
$this->apiParas["addr"] = $addr;
}
public function getAddr()
{
return $this->addr;
}
public function setBuyerName($buyerName)
{
$this->buyerName = $buyerName;
$this->apiParas["buyer_name"] = $buyerName;
}
public function getBuyerName()
{
return $this->buyerName;
}
public function setCity($city)
{
$this->city = $city;
$this->apiParas["city"] = $city;
}
public function getCity()
{
return $this->city;
}
public function setCountry($country)
{
$this->country = $country;
$this->apiParas["country"] = $country;
}
public function getCountry()
{
return $this->country;
}
public function setLogisticFee($logisticFee)
{
$this->logisticFee = $logisticFee;
$this->apiParas["logistic_fee"] = $logisticFee;
}
public function getLogisticFee()
{
return $this->logisticFee;
}
public function setLogisticType($logisticType)
{
$this->logisticType = $logisticType;
$this->apiParas["logistic_type"] = $logisticType;
}
public function getLogisticType()
{
return $this->logisticType;
}
public function setMessage($message)
{
$this->message = $message;
$this->apiParas["message"] = $message;
}
public function getMessage()
{
return $this->message;
}
public function setMobilePhone($mobilePhone)
{
$this->mobilePhone = $mobilePhone;
$this->apiParas["mobile_phone"] = $mobilePhone;
}
public function getMobilePhone()
{
return $this->mobilePhone;
}
public function setOuterId($outerId)
{
$this->outerId = $outerId;
$this->apiParas["outer_id"] = $outerId;
}
public function getOuterId()
{
return $this->outerId;
}
public function setPayType($payType)
{
$this->payType = $payType;
$this->apiParas["pay_type"] = $payType;
}
public function getPayType()
{
return $this->payType;
}
public function setPhone($phone)
{
$this->phone = $phone;
$this->apiParas["phone"] = $phone;
}
public function getPhone()
{
return $this->phone;
}
public function setProvince($province)
{
$this->province = $province;
$this->apiParas["province"] = $province;
}
public function getProvince()
{
return $this->province;
}
public function setSubOrderDetail($subOrderDetail)
{
$this->subOrderDetail = $subOrderDetail;
$this->apiParas["sub_order_detail"] = $subOrderDetail;
}
public function getSubOrderDetail()
{
return $this->subOrderDetail;
}
public function setZipCode($zipCode)
{
$this->zipCode = $zipCode;
$this->apiParas["zip_code"] = $zipCode;
}
public function getZipCode()
{
return $this->zipCode;
}
public function getApiMethodName()
{
return "taobao.fenxiao.order.create.dealer";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->addr,"addr");
RequestCheckUtil::checkNotNull($this->buyerName,"buyerName");
RequestCheckUtil::checkMaxLength($this->buyerName,20,"buyerName");
RequestCheckUtil::checkNotNull($this->logisticFee,"logisticFee");
RequestCheckUtil::checkNotNull($this->logisticType,"logisticType");
RequestCheckUtil::checkMaxLength($this->message,200,"message");
RequestCheckUtil::checkNotNull($this->outerId,"outerId");
RequestCheckUtil::checkNotNull($this->payType,"payType");
RequestCheckUtil::checkNotNull($this->province,"province");
RequestCheckUtil::checkNotNull($this->subOrderDetail,"subOrderDetail");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}