Skip to content

Commit 2aa2ab0

Browse files
committed
Add CalculateMemberLevel API
1 parent 4d98909 commit 2aa2ab0

File tree

5 files changed

+290
-1
lines changed

5 files changed

+290
-1
lines changed

aliyun-java-sdk-retailadvqa/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-05-15 Version: 1.0.17
2+
- Add CalculateMemberLevel API
3+
14
2024-01-23 Version: 1.0.16
25
- Update AddMemberBasicInfo API timeout
36

aliyun-java-sdk-retailadvqa/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-retailadvqa</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.16</version>
7+
<version>1.0.17</version>
88
<name>aliyun-java-sdk-retailadvqa</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,134 @@
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.retailadvqa.model.v20230417;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.google.gson.Gson;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.aliyuncs.http.ProtocolType;
21+
import com.aliyuncs.http.MethodType;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class CalculateMemberLevelRequest extends RpcAcsRequest<CalculateMemberLevelResponse> {
28+
29+
30+
@SerializedName("body")
31+
private Body body;
32+
public CalculateMemberLevelRequest() {
33+
super("retailadvqa", "2023-04-17", "CalculateMemberLevel", "qucikmember");
34+
setProtocol(ProtocolType.HTTPS);
35+
setMethod(MethodType.POST);
36+
}
37+
38+
public Body getBody() {
39+
return this.body;
40+
}
41+
42+
public void setBody(Body body) {
43+
this.body = body;
44+
if (body != null) {
45+
putQueryParameter("Body" , new Gson().toJson(body));
46+
}
47+
}
48+
49+
public static class Body {
50+
51+
@SerializedName("Score")
52+
private String score;
53+
54+
@SerializedName("CurrentGrade")
55+
private Long currentGrade;
56+
57+
@SerializedName("OpenMerchantId")
58+
private String openMerchantId;
59+
60+
@SerializedName("CurrentGradeName")
61+
private String currentGradeName;
62+
63+
@SerializedName("PlatformType")
64+
private String platformType;
65+
66+
@SerializedName("MemberId")
67+
private Long memberId;
68+
69+
@SerializedName("SerialNo")
70+
private String serialNo;
71+
72+
public String getScore() {
73+
return this.score;
74+
}
75+
76+
public void setScore(String score) {
77+
this.score = score;
78+
}
79+
80+
public Long getCurrentGrade() {
81+
return this.currentGrade;
82+
}
83+
84+
public void setCurrentGrade(Long currentGrade) {
85+
this.currentGrade = currentGrade;
86+
}
87+
88+
public String getOpenMerchantId() {
89+
return this.openMerchantId;
90+
}
91+
92+
public void setOpenMerchantId(String openMerchantId) {
93+
this.openMerchantId = openMerchantId;
94+
}
95+
96+
public String getCurrentGradeName() {
97+
return this.currentGradeName;
98+
}
99+
100+
public void setCurrentGradeName(String currentGradeName) {
101+
this.currentGradeName = currentGradeName;
102+
}
103+
104+
public String getPlatformType() {
105+
return this.platformType;
106+
}
107+
108+
public void setPlatformType(String platformType) {
109+
this.platformType = platformType;
110+
}
111+
112+
public Long getMemberId() {
113+
return this.memberId;
114+
}
115+
116+
public void setMemberId(Long memberId) {
117+
this.memberId = memberId;
118+
}
119+
120+
public String getSerialNo() {
121+
return this.serialNo;
122+
}
123+
124+
public void setSerialNo(String serialNo) {
125+
this.serialNo = serialNo;
126+
}
127+
}
128+
129+
@Override
130+
public Class<CalculateMemberLevelResponse> getResponseClass() {
131+
return CalculateMemberLevelResponse.class;
132+
}
133+
134+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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.retailadvqa.model.v20230417;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.retailadvqa.transform.v20230417.CalculateMemberLevelResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CalculateMemberLevelResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String success;
30+
31+
private String httpStatusCode;
32+
33+
private String errorCode;
34+
35+
private String errorMessage;
36+
37+
private String message;
38+
39+
private String grade;
40+
41+
private String outerMemberId;
42+
43+
public String getRequestId() {
44+
return this.requestId;
45+
}
46+
47+
public void setRequestId(String requestId) {
48+
this.requestId = requestId;
49+
}
50+
51+
public String getSuccess() {
52+
return this.success;
53+
}
54+
55+
public void setSuccess(String success) {
56+
this.success = success;
57+
}
58+
59+
public String getHttpStatusCode() {
60+
return this.httpStatusCode;
61+
}
62+
63+
public void setHttpStatusCode(String httpStatusCode) {
64+
this.httpStatusCode = httpStatusCode;
65+
}
66+
67+
public String getErrorCode() {
68+
return this.errorCode;
69+
}
70+
71+
public void setErrorCode(String errorCode) {
72+
this.errorCode = errorCode;
73+
}
74+
75+
public String getErrorMessage() {
76+
return this.errorMessage;
77+
}
78+
79+
public void setErrorMessage(String errorMessage) {
80+
this.errorMessage = errorMessage;
81+
}
82+
83+
public String getMessage() {
84+
return this.message;
85+
}
86+
87+
public void setMessage(String message) {
88+
this.message = message;
89+
}
90+
91+
public String getGrade() {
92+
return this.grade;
93+
}
94+
95+
public void setGrade(String grade) {
96+
this.grade = grade;
97+
}
98+
99+
public String getOuterMemberId() {
100+
return this.outerMemberId;
101+
}
102+
103+
public void setOuterMemberId(String outerMemberId) {
104+
this.outerMemberId = outerMemberId;
105+
}
106+
107+
@Override
108+
public CalculateMemberLevelResponse getInstance(UnmarshallerContext context) {
109+
return CalculateMemberLevelResponseUnmarshaller.unmarshall(this, context);
110+
}
111+
112+
@Override
113+
public boolean checkShowJsonItemName() {
114+
return false;
115+
}
116+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.retailadvqa.transform.v20230417;
16+
17+
import com.aliyuncs.retailadvqa.model.v20230417.CalculateMemberLevelResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class CalculateMemberLevelResponseUnmarshaller {
22+
23+
public static CalculateMemberLevelResponse unmarshall(CalculateMemberLevelResponse calculateMemberLevelResponse, UnmarshallerContext _ctx) {
24+
25+
calculateMemberLevelResponse.setRequestId(_ctx.stringValue("CalculateMemberLevelResponse.RequestId"));
26+
calculateMemberLevelResponse.setSuccess(_ctx.stringValue("CalculateMemberLevelResponse.Success"));
27+
calculateMemberLevelResponse.setHttpStatusCode(_ctx.stringValue("CalculateMemberLevelResponse.HttpStatusCode"));
28+
calculateMemberLevelResponse.setErrorCode(_ctx.stringValue("CalculateMemberLevelResponse.ErrorCode"));
29+
calculateMemberLevelResponse.setErrorMessage(_ctx.stringValue("CalculateMemberLevelResponse.ErrorMessage"));
30+
calculateMemberLevelResponse.setMessage(_ctx.stringValue("CalculateMemberLevelResponse.message"));
31+
calculateMemberLevelResponse.setGrade(_ctx.stringValue("CalculateMemberLevelResponse.Grade"));
32+
calculateMemberLevelResponse.setOuterMemberId(_ctx.stringValue("CalculateMemberLevelResponse.OuterMemberId"));
33+
34+
return calculateMemberLevelResponse;
35+
}
36+
}

0 commit comments

Comments
 (0)