Skip to content

Commit fe51928

Browse files
committed
Deploy GetCustomerList Service.
1 parent 7677ac6 commit fe51928

File tree

5 files changed

+227
-1
lines changed

5 files changed

+227
-1
lines changed

aliyun-java-sdk-resellertrade/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-03-10 Version: 1.0.2
2+
- Deploy GetCustomerList Service.
3+
14
2020-02-28 Version: 1.0.1
25
- Generated 2019-12-27 for `ResellerTrade`.
36

aliyun-java-sdk-resellertrade/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-resellertrade</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.1</version>
7+
<version>1.0.2</version>
88
<name>aliyun-java-sdk-resellertrade</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.resellertrade.model.v20191227;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.resellertrade.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class GetCustomerListRequest extends RpcAcsRequest<GetCustomerListResponse> {
26+
27+
28+
private Integer pageNo;
29+
30+
private Integer pageSize;
31+
public GetCustomerListRequest() {
32+
super("ResellerTrade", "2019-12-27", "GetCustomerList");
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public Integer getPageNo() {
41+
return this.pageNo;
42+
}
43+
44+
public void setPageNo(Integer pageNo) {
45+
this.pageNo = pageNo;
46+
if(pageNo != null){
47+
putQueryParameter("PageNo", pageNo.toString());
48+
}
49+
}
50+
51+
public Integer getPageSize() {
52+
return this.pageSize;
53+
}
54+
55+
public void setPageSize(Integer pageSize) {
56+
this.pageSize = pageSize;
57+
if(pageSize != null){
58+
putQueryParameter("PageSize", pageSize.toString());
59+
}
60+
}
61+
62+
@Override
63+
public Class<GetCustomerListResponse> getResponseClass() {
64+
return GetCustomerListResponse.class;
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.resellertrade.model.v20191227;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.resellertrade.transform.v20191227.GetCustomerListResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class GetCustomerListResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private Boolean success;
31+
32+
private String code;
33+
34+
private String message;
35+
36+
private Data data;
37+
38+
public String getRequestId() {
39+
return this.requestId;
40+
}
41+
42+
public void setRequestId(String requestId) {
43+
this.requestId = requestId;
44+
}
45+
46+
public Boolean getSuccess() {
47+
return this.success;
48+
}
49+
50+
public void setSuccess(Boolean success) {
51+
this.success = success;
52+
}
53+
54+
public String getCode() {
55+
return this.code;
56+
}
57+
58+
public void setCode(String code) {
59+
this.code = code;
60+
}
61+
62+
public String getMessage() {
63+
return this.message;
64+
}
65+
66+
public void setMessage(String message) {
67+
this.message = message;
68+
}
69+
70+
public Data getData() {
71+
return this.data;
72+
}
73+
74+
public void setData(Data data) {
75+
this.data = data;
76+
}
77+
78+
public static class Data {
79+
80+
private Integer totalSize;
81+
82+
private List<String> uidList;
83+
84+
public Integer getTotalSize() {
85+
return this.totalSize;
86+
}
87+
88+
public void setTotalSize(Integer totalSize) {
89+
this.totalSize = totalSize;
90+
}
91+
92+
public List<String> getUidList() {
93+
return this.uidList;
94+
}
95+
96+
public void setUidList(List<String> uidList) {
97+
this.uidList = uidList;
98+
}
99+
}
100+
101+
@Override
102+
public GetCustomerListResponse getInstance(UnmarshallerContext context) {
103+
return GetCustomerListResponseUnmarshaller.unmarshall(this, context);
104+
}
105+
106+
@Override
107+
public boolean checkShowJsonItemName() {
108+
return false;
109+
}
110+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.resellertrade.transform.v20191227;
16+
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
import com.aliyuncs.resellertrade.model.v20191227.GetCustomerListResponse;
21+
import com.aliyuncs.resellertrade.model.v20191227.GetCustomerListResponse.Data;
22+
import com.aliyuncs.transform.UnmarshallerContext;
23+
24+
25+
public class GetCustomerListResponseUnmarshaller {
26+
27+
public static GetCustomerListResponse unmarshall(GetCustomerListResponse getCustomerListResponse, UnmarshallerContext _ctx) {
28+
29+
getCustomerListResponse.setRequestId(_ctx.stringValue("GetCustomerListResponse.RequestId"));
30+
getCustomerListResponse.setSuccess(_ctx.booleanValue("GetCustomerListResponse.Success"));
31+
getCustomerListResponse.setCode(_ctx.stringValue("GetCustomerListResponse.Code"));
32+
getCustomerListResponse.setMessage(_ctx.stringValue("GetCustomerListResponse.Message"));
33+
34+
Data data = new Data();
35+
data.setTotalSize(_ctx.integerValue("GetCustomerListResponse.Data.TotalSize"));
36+
37+
List<String> uidList = new ArrayList<String>();
38+
for (int i = 0; i < _ctx.lengthValue("GetCustomerListResponse.Data.UidList.Length"); i++) {
39+
uidList.add(_ctx.stringValue("GetCustomerListResponse.Data.UidList["+ i +"]"));
40+
}
41+
data.setUidList(uidList);
42+
getCustomerListResponse.setData(data);
43+
44+
return getCustomerListResponse;
45+
}
46+
}

0 commit comments

Comments
 (0)