Skip to content

Commit 14cd91d

Browse files
authored
Merge pull request #6 from maiscrm/update-jd-api
update jd open api
2 parents 66bb0ba + 4602e07 commit 14cd91d

File tree

3 files changed

+391
-0
lines changed

3 files changed

+391
-0
lines changed

jd/request/AscQueryListRequest.php

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
<?php
2+
namespace Jd\request;
3+
4+
class AscQueryListRequest
5+
{
6+
private $apiParas = array();
7+
private $buId;
8+
private $operatePin;
9+
private $operateNick;
10+
private $serviceId;
11+
private $orderId;
12+
private $applyTimeBegin;
13+
private $applyTimeEnd;
14+
private $finishTimeBegin;
15+
private $finishTimeEnd;
16+
private $verificationCode;
17+
private $expressCode;
18+
private $orderType;
19+
private $processResult;
20+
private $customerPin;
21+
private $customerName;
22+
private $customerTel;
23+
private $approveTimeBegin;
24+
private $approveTimeEnd;
25+
private $pageSize;
26+
private $extJsonStr;
27+
private $pageNumber;
28+
29+
public function getApiMethodName()
30+
{
31+
return "jingdong.asc.query.list";
32+
}
33+
34+
public function getApiParas()
35+
{
36+
return json_encode($this->apiParas);
37+
}
38+
39+
public function check()
40+
{}
41+
42+
public function putOtherTextParam($key, $value)
43+
{
44+
$this->apiParas[$key] = $value;
45+
$this->$key = $value;
46+
}
47+
48+
public function setBuId($buId)
49+
{
50+
$this->buId = $buId;
51+
$this->apiParas["buId"] = $buId;
52+
}
53+
54+
public function getBuId()
55+
{
56+
return $this->buId;
57+
}
58+
59+
public function setOperatePin($operatePin)
60+
{
61+
$this->operatePin = $operatePin;
62+
$this->apiParas["operatePin"] = $operatePin;
63+
}
64+
65+
public function getOperatePin()
66+
{
67+
return $this->operatePin;
68+
}
69+
70+
public function setOperateNick($operateNick)
71+
{
72+
$this->operateNick = $operateNick;
73+
$this->apiParas["operateNick"] = $operateNick;
74+
}
75+
76+
public function getOperateNick()
77+
{
78+
return $this->operateNick;
79+
}
80+
81+
public function setServiceId($serviceId)
82+
{
83+
$this->serviceId = $serviceId;
84+
$this->apiParas["serviceId"] = $serviceId;
85+
}
86+
87+
public function getServiceId()
88+
{
89+
return $this->serviceId;
90+
}
91+
92+
public function setOrderId($orderId)
93+
{
94+
$this->orderId = $orderId;
95+
$this->apiParas["orderId"] = $orderId;
96+
}
97+
98+
public function getOrderId()
99+
{
100+
return $this->orderId;
101+
}
102+
103+
public function setApplyTimeBegin($applyTimeBegin)
104+
{
105+
$this->applyTimeBegin = $applyTimeBegin;
106+
$this->apiParas["applyTimeBegin"] = $applyTimeBegin;
107+
}
108+
109+
public function getApplyTimeBegin()
110+
{
111+
return $this->applyTimeBegin;
112+
}
113+
114+
public function setApplyTimeEnd($applyTimeEnd)
115+
{
116+
$this->applyTimeEnd = $applyTimeEnd;
117+
$this->apiParas["applyTimeEnd"] = $applyTimeEnd;
118+
}
119+
120+
public function getApplyTimeEnd()
121+
{
122+
return $this->applyTimeEnd;
123+
}
124+
125+
public function setFinishTimeBegin($finishTimeBegin)
126+
{
127+
$this->finishTimeBegin = $finishTimeBegin;
128+
$this->apiParas["finishTimeBegin"] = $finishTimeBegin;
129+
}
130+
131+
public function getFinishTimeBegin()
132+
{
133+
return $this->finishTimeBegin;
134+
}
135+
136+
public function setFinishTimeEnd($finishTimeEnd)
137+
{
138+
$this->finishTimeEnd = $finishTimeEnd;
139+
$this->apiParas["finishTimeEnd"] = $finishTimeEnd;
140+
}
141+
142+
public function getFinishTimeEnd()
143+
{
144+
return $this->finishTimeEnd;
145+
}
146+
147+
public function setVerificationCode($verificationCode)
148+
{
149+
$this->verificationCode = $verificationCode;
150+
$this->apiParas["verificationCode"] = $verificationCode;
151+
}
152+
153+
public function getVerificationCode()
154+
{
155+
return $this->verificationCode;
156+
}
157+
158+
public function setExpressCode($expressCode)
159+
{
160+
$this->expressCode = $expressCode;
161+
$this->apiParas["expressCode"] = $expressCode;
162+
}
163+
164+
public function getExpressCode()
165+
{
166+
return $this->expressCode;
167+
}
168+
169+
public function setOrderType($orderType)
170+
{
171+
$this->orderType = $orderType;
172+
$this->apiParas["orderType"] = $orderType;
173+
}
174+
175+
public function getOrderType()
176+
{
177+
return $this->orderType;
178+
}
179+
180+
public function setProcessResult($processResult)
181+
{
182+
$this->processResult = $processResult;
183+
$this->apiParas["processResult"] = $processResult;
184+
}
185+
186+
public function getProcessResult()
187+
{
188+
return $this->processResult;
189+
}
190+
191+
public function setCustomerPin($customerPin)
192+
{
193+
$this->customerPin = $customerPin;
194+
$this->apiParas["customerPin"] = $customerPin;
195+
}
196+
197+
public function getCustomerPin()
198+
{
199+
return $this->customerPin;
200+
}
201+
202+
public function setCustomerName($customerName)
203+
{
204+
$this->customerName = $customerName;
205+
$this->apiParas["customerName"] = $customerName;
206+
}
207+
208+
public function getCustomerName()
209+
{
210+
return $this->customerName;
211+
}
212+
213+
public function setCustomerTel($customerTel)
214+
{
215+
$this->customerTel = $customerTel;
216+
$this->apiParas["customerTel"] = $customerTel;
217+
}
218+
219+
public function getCustomerTel()
220+
{
221+
return $this->customerTel;
222+
}
223+
224+
public function setApproveTimeBegin($approveTimeBegin)
225+
{
226+
$this->approveTimeBegin = $approveTimeBegin;
227+
$this->apiParas["approveTimeBegin"] = $approveTimeBegin;
228+
}
229+
230+
public function getApproveTimeBegin()
231+
{
232+
return $this->approveTimeBegin;
233+
}
234+
235+
public function setApproveTimeEnd($approveTimeEnd)
236+
{
237+
$this->approveTimeEnd = $approveTimeEnd;
238+
$this->apiParas["approveTimeEnd"] = $approveTimeEnd;
239+
}
240+
241+
public function getApproveTimeEnd()
242+
{
243+
return $this->approveTimeEnd;
244+
}
245+
246+
public function setPageNumber($pageNumber)
247+
{
248+
$this->pageNumber = $pageNumber;
249+
$this->apiParas["pageNumber"] = $pageNumber;
250+
}
251+
252+
public function getPageNumber()
253+
{
254+
return $this->pageNumber;
255+
}
256+
257+
public function setPageSize($pageSize)
258+
{
259+
$this->pageSize = $pageSize;
260+
$this->apiParas["pageSize"] = $pageSize;
261+
}
262+
263+
public function getPageSize()
264+
{
265+
return $this->pageSize;
266+
}
267+
268+
public function setExtJsonStr($extJsonStr)
269+
{
270+
$this->extJsonStr = $extJsonStr;
271+
$this->apiParas["extJsonStr"] = $extJsonStr;
272+
}
273+
274+
public function getExtJsonStr()
275+
{
276+
return $this->extJsonStr;
277+
}
278+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
namespace Jd\request;
3+
4+
class Request
5+
{
6+
private $apiParas = array();
7+
private $fields;
8+
9+
public function getApiMethodName()
10+
{
11+
return "360buy.get.vender.all.delivery.company";
12+
}
13+
14+
public function getApiParas()
15+
{
16+
return json_encode($this->apiParas);
17+
}
18+
19+
public function check()
20+
{
21+
}
22+
23+
public function putOtherTextParam($key, $value)
24+
{
25+
$this->apiParas[$key] = $value;
26+
$this->$key = $value;
27+
}
28+
29+
public function setFields($fields)
30+
{
31+
$this->fields = $fields;
32+
$this->apiParas["fields"] = $fields;
33+
}
34+
35+
public function getFields()
36+
{
37+
return $this->fields;
38+
}
39+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?php
2+
namespace Jd\request;
3+
4+
class PopOrderNotPayOrderInfoRequest
5+
{
6+
private $apiParas = array();
7+
private $startDate;
8+
private $endDate;
9+
private $page;
10+
private $pageSize;
11+
12+
public function getApiMethodName()
13+
{
14+
return "jingdong.pop.order.notPayOrderInfo";
15+
}
16+
17+
public function getApiParas()
18+
{
19+
return json_encode($this->apiParas);
20+
}
21+
22+
public function check()
23+
{}
24+
25+
public function putOtherTextParam($key, $value)
26+
{
27+
$this->apiParas[$key] = $value;
28+
$this->$key = $value;
29+
}
30+
31+
public function setStartDate($startDate)
32+
{
33+
$this->startDate = $startDate;
34+
$this->apiParas["startDate"] = $startDate;
35+
}
36+
37+
public function getStartDate()
38+
{
39+
return $this->startDate;
40+
}
41+
42+
public function setEndDate($endDate)
43+
{
44+
$this->endDate = $endDate;
45+
$this->apiParas["endDate"] = $endDate;
46+
}
47+
48+
public function getEndDate()
49+
{
50+
return $this->endDate;
51+
}
52+
53+
public function setPage($page)
54+
{
55+
$this->page = $page;
56+
$this->apiParas["page"] = $page;
57+
}
58+
59+
public function getPage()
60+
{
61+
return $this->page;
62+
}
63+
64+
public function setPageSize($pageSize)
65+
{
66+
$this->pageSize = $pageSize;
67+
$this->apiParas["pageSize"] = $pageSize;
68+
}
69+
70+
public function getPageSize()
71+
{
72+
return $this->pageSize;
73+
}
74+
}

0 commit comments

Comments
 (0)