Skip to content

Commit 0416868

Browse files
authored
Merge pull request #9 from maiscrm/add-api
add new api
2 parents 9bfbaa0 + 151a032 commit 0416868

File tree

2 files changed

+190
-0
lines changed

2 files changed

+190
-0
lines changed
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?php
2+
namespace Jd\request;
3+
4+
class PopOrderEnSearchRequest
5+
{
6+
private $apiParas = array();
7+
private $version;
8+
private $startDate;
9+
private $endDate;
10+
private $orderState;
11+
private $optionalFields;
12+
private $page;
13+
private $pageSize;
14+
private $sortType;
15+
private $dateType;
16+
17+
public function getApiMethodName()
18+
{
19+
return 'jingdong.pop.order.enSearch';
20+
}
21+
22+
public function getApiParas()
23+
{
24+
if (empty($this->apiParas)) {
25+
return '{}';
26+
}
27+
return json_encode($this->apiParas);
28+
}
29+
30+
public function check()
31+
{
32+
}
33+
34+
public function putOtherTextParam($key, $value)
35+
{
36+
$this->apiParas[$key] = $value;
37+
$this->$key = $value;
38+
}
39+
40+
public function setVersion($version)
41+
{
42+
$this->version = $version;
43+
}
44+
45+
public function getVersion()
46+
{
47+
return $this->version;
48+
}
49+
50+
public function setStartDate($startDate)
51+
{
52+
$this->startDate = $startDate;
53+
$this->apiParas['start_date'] = $startDate;
54+
}
55+
56+
public function getStartDate()
57+
{
58+
return $this->startDate;
59+
}
60+
61+
public function setEndDate($endDate)
62+
{
63+
$this->endDate = $endDate;
64+
$this->apiParas['end_date'] = $endDate;
65+
}
66+
67+
public function getEndDate()
68+
{
69+
return $this->endDate;
70+
}
71+
72+
public function setOrderState($orderState)
73+
{
74+
$this->orderState = $orderState;
75+
$this->apiParas['order_state'] = $orderState;
76+
}
77+
78+
public function getOrderState()
79+
{
80+
return $this->orderState;
81+
}
82+
83+
public function setOptionalFields($optionalFields)
84+
{
85+
$this->optionalFields = $optionalFields;
86+
$this->apiParas['optional_fields'] = $optionalFields;
87+
}
88+
89+
public function getOptionalFields()
90+
{
91+
return $this->optionalFields;
92+
}
93+
94+
public function setPage($page)
95+
{
96+
$this->page = $page;
97+
$this->apiParas['page'] = $page;
98+
}
99+
100+
public function getPage()
101+
{
102+
return $this->page;
103+
}
104+
105+
public function setPageSize($pageSize)
106+
{
107+
$this->pageSize = $pageSize;
108+
$this->apiParas['page_size'] = $pageSize;
109+
}
110+
111+
public function getPageSize()
112+
{
113+
return $this->pageSize;
114+
}
115+
116+
public function setSortType($sortType)
117+
{
118+
$this->sortType = $sortType;
119+
$this->apiParas['sortType'] = $sortType;
120+
}
121+
122+
public function getSortType()
123+
{
124+
return $this->sortType;
125+
}
126+
127+
public function setDateType($dateType)
128+
{
129+
$this->dateType = $dateType;
130+
$this->apiParas['dateType'] = $dateType;
131+
}
132+
133+
public function getDateType()
134+
{
135+
return $this->dateType;
136+
}
137+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
namespace Jd\request;
3+
4+
class UserRelatedRpcI18nServiceGetOpenIdRequest
5+
{
6+
private $apiParas = array();
7+
private $version;
8+
private $pin;
9+
10+
public function getApiMethodName()
11+
{
12+
return 'jingdong.UserRelatedRpcI18nService.getOpenId';
13+
}
14+
15+
public function getApiParas()
16+
{
17+
if (empty($this->apiParas)) {
18+
return '{}';
19+
}
20+
return json_encode($this->apiParas);
21+
}
22+
23+
public function check()
24+
{
25+
}
26+
27+
public function putOtherTextParam($key, $value)
28+
{
29+
$this->apiParas[$key] = $value;
30+
$this->$key = $value;
31+
}
32+
33+
public function setVersion($version)
34+
{
35+
$this->version = $version;
36+
}
37+
38+
public function getVersion()
39+
{
40+
return $this->version;
41+
}
42+
43+
public function setPin($pin)
44+
{
45+
$this->pin = $pin;
46+
$this->apiParas['pin'] = $pin;
47+
}
48+
49+
public function getPin()
50+
{
51+
return $this->pin;
52+
}
53+
}

0 commit comments

Comments
 (0)