Skip to content

Commit 07de8c4

Browse files
committed
Add UploadSKUTags API.
1 parent 92a328d commit 07de8c4

19 files changed

+456
-140
lines changed

aliyun-java-sdk-digitalstore/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-04-24 Version: 0.0.4
2+
- Add UploadSKUTags API.
3+
14
2020-04-22 Version: 0.0.3
25
- Add checktags.
36

aliyun-java-sdk-digitalstore/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-digitalstore</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.0.3</version>
7+
<version>0.0.4</version>
88
<name>aliyun-java-sdk-digitalstore</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-digitalstore/src/main/java/com/aliyuncs/digitalstore/model/v20200107/CheckTagsRequest.java

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package com.aliyuncs.digitalstore.model.v20200107;
1616

1717
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
1819
import com.aliyuncs.http.MethodType;
1920
import com.aliyuncs.digitalstore.Endpoint;
2021

@@ -25,11 +26,9 @@
2526
public class CheckTagsRequest extends RpcAcsRequest<CheckTagsResponse> {
2627

2728

28-
private String orderStatusList;
29+
private String orderId;
2930

30-
private String tags;
31-
32-
private String orderIdList;
31+
private List<String> tagss;
3332

3433
private String orderType;
3534
public CheckTagsRequest() {
@@ -41,37 +40,28 @@ public CheckTagsRequest() {
4140
} catch (Exception e) {}
4241
}
4342

44-
public String getOrderStatusList() {
45-
return this.orderStatusList;
43+
public String getOrderId() {
44+
return this.orderId;
4645
}
4746

48-
public void setOrderStatusList(String orderStatusList) {
49-
this.orderStatusList = orderStatusList;
50-
if(orderStatusList != null){
51-
putBodyParameter("OrderStatusList", orderStatusList);
47+
public void setOrderId(String orderId) {
48+
this.orderId = orderId;
49+
if(orderId != null){
50+
putBodyParameter("OrderId", orderId);
5251
}
5352
}
5453

55-
public String getTags() {
56-
return this.tags;
57-
}
58-
59-
public void setTags(String tags) {
60-
this.tags = tags;
61-
if(tags != null){
62-
putBodyParameter("Tags", tags);
63-
}
54+
public List<String> getTagss() {
55+
return this.tagss;
6456
}
6557

66-
public String getOrderIdList() {
67-
return this.orderIdList;
68-
}
69-
70-
public void setOrderIdList(String orderIdList) {
71-
this.orderIdList = orderIdList;
72-
if(orderIdList != null){
73-
putBodyParameter("OrderIdList", orderIdList);
74-
}
58+
public void setTagss(List<String> tagss) {
59+
this.tagss = tagss;
60+
if (tagss != null) {
61+
for (int i = 0; i < tagss.size(); i++) {
62+
putBodyParameter("Tags." + (i + 1) , tagss.get(i));
63+
}
64+
}
7565
}
7666

7767
public String getOrderType() {

aliyun-java-sdk-digitalstore/src/main/java/com/aliyuncs/digitalstore/model/v20200107/CheckTagsResponse.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,12 @@
2525
*/
2626
public class CheckTagsResponse extends AcsResponse {
2727

28-
private String message;
29-
3028
private String requestId;
3129

3230
private Boolean success;
3331

34-
private String code;
35-
3632
private List<CheckTagResultBiz> checkResult;
3733

38-
public String getMessage() {
39-
return this.message;
40-
}
41-
42-
public void setMessage(String message) {
43-
this.message = message;
44-
}
45-
4634
public String getRequestId() {
4735
return this.requestId;
4836
}
@@ -59,14 +47,6 @@ public void setSuccess(Boolean success) {
5947
this.success = success;
6048
}
6149

62-
public String getCode() {
63-
return this.code;
64-
}
65-
66-
public void setCode(String code) {
67-
this.code = code;
68-
}
69-
7050
public List<CheckTagResultBiz> getCheckResult() {
7151
return this.checkResult;
7252
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
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.digitalstore.model.v20200107;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.digitalstore.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class CreateApplicationOrderRequest extends RpcAcsRequest<CreateApplicationOrderResponse> {
27+
28+
29+
private String expressCompanyId;
30+
31+
private String description;
32+
33+
private String scanType;
34+
35+
private String reservationDeliveryDateTimeRange;
36+
37+
private String warehouseId;
38+
39+
private String sourceOrderId;
40+
41+
private List<String> caseIdss;
42+
43+
private String reservationDeliveryTime;
44+
45+
private String waybillCode;
46+
public CreateApplicationOrderRequest() {
47+
super("digitalstore", "2020-01-07", "CreateApplicationOrder", "digitalstore");
48+
setMethod(MethodType.POST);
49+
try {
50+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
51+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
52+
} catch (Exception e) {}
53+
}
54+
55+
public String getExpressCompanyId() {
56+
return this.expressCompanyId;
57+
}
58+
59+
public void setExpressCompanyId(String expressCompanyId) {
60+
this.expressCompanyId = expressCompanyId;
61+
if(expressCompanyId != null){
62+
putBodyParameter("ExpressCompanyId", expressCompanyId);
63+
}
64+
}
65+
66+
public String getDescription() {
67+
return this.description;
68+
}
69+
70+
public void setDescription(String description) {
71+
this.description = description;
72+
if(description != null){
73+
putBodyParameter("Description", description);
74+
}
75+
}
76+
77+
public String getScanType() {
78+
return this.scanType;
79+
}
80+
81+
public void setScanType(String scanType) {
82+
this.scanType = scanType;
83+
if(scanType != null){
84+
putBodyParameter("ScanType", scanType);
85+
}
86+
}
87+
88+
public String getReservationDeliveryDateTimeRange() {
89+
return this.reservationDeliveryDateTimeRange;
90+
}
91+
92+
public void setReservationDeliveryDateTimeRange(String reservationDeliveryDateTimeRange) {
93+
this.reservationDeliveryDateTimeRange = reservationDeliveryDateTimeRange;
94+
if(reservationDeliveryDateTimeRange != null){
95+
putBodyParameter("ReservationDeliveryDateTimeRange", reservationDeliveryDateTimeRange);
96+
}
97+
}
98+
99+
public String getWarehouseId() {
100+
return this.warehouseId;
101+
}
102+
103+
public void setWarehouseId(String warehouseId) {
104+
this.warehouseId = warehouseId;
105+
if(warehouseId != null){
106+
putBodyParameter("WarehouseId", warehouseId);
107+
}
108+
}
109+
110+
public String getSourceOrderId() {
111+
return this.sourceOrderId;
112+
}
113+
114+
public void setSourceOrderId(String sourceOrderId) {
115+
this.sourceOrderId = sourceOrderId;
116+
if(sourceOrderId != null){
117+
putBodyParameter("SourceOrderId", sourceOrderId);
118+
}
119+
}
120+
121+
public List<String> getCaseIdss() {
122+
return this.caseIdss;
123+
}
124+
125+
public void setCaseIdss(List<String> caseIdss) {
126+
this.caseIdss = caseIdss;
127+
if (caseIdss != null) {
128+
for (int i = 0; i < caseIdss.size(); i++) {
129+
putBodyParameter("CaseIds." + (i + 1) , caseIdss.get(i));
130+
}
131+
}
132+
}
133+
134+
public String getReservationDeliveryTime() {
135+
return this.reservationDeliveryTime;
136+
}
137+
138+
public void setReservationDeliveryTime(String reservationDeliveryTime) {
139+
this.reservationDeliveryTime = reservationDeliveryTime;
140+
if(reservationDeliveryTime != null){
141+
putBodyParameter("ReservationDeliveryTime", reservationDeliveryTime);
142+
}
143+
}
144+
145+
public String getWaybillCode() {
146+
return this.waybillCode;
147+
}
148+
149+
public void setWaybillCode(String waybillCode) {
150+
this.waybillCode = waybillCode;
151+
if(waybillCode != null){
152+
putBodyParameter("WaybillCode", waybillCode);
153+
}
154+
}
155+
156+
@Override
157+
public Class<CreateApplicationOrderResponse> getResponseClass() {
158+
return CreateApplicationOrderResponse.class;
159+
}
160+
161+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.digitalstore.model.v20200107;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.digitalstore.transform.v20200107.CreateApplicationOrderResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateApplicationOrderResponse extends AcsResponse {
26+
27+
private String orderId;
28+
29+
private String requestId;
30+
31+
private Boolean success;
32+
33+
public String getOrderId() {
34+
return this.orderId;
35+
}
36+
37+
public void setOrderId(String orderId) {
38+
this.orderId = orderId;
39+
}
40+
41+
public String getRequestId() {
42+
return this.requestId;
43+
}
44+
45+
public void setRequestId(String requestId) {
46+
this.requestId = requestId;
47+
}
48+
49+
public Boolean getSuccess() {
50+
return this.success;
51+
}
52+
53+
public void setSuccess(Boolean success) {
54+
this.success = success;
55+
}
56+
57+
@Override
58+
public CreateApplicationOrderResponse getInstance(UnmarshallerContext context) {
59+
return CreateApplicationOrderResponseUnmarshaller.unmarshall(this, context);
60+
}
61+
62+
@Override
63+
public boolean checkShowJsonItemName() {
64+
return false;
65+
}
66+
}

aliyun-java-sdk-digitalstore/src/main/java/com/aliyuncs/digitalstore/model/v20200107/CreateCaseCodeResponse.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,12 @@
2424
*/
2525
public class CreateCaseCodeResponse extends AcsResponse {
2626

27-
private String message;
28-
2927
private String requestId;
3028

3129
private Boolean success;
3230

33-
private String code;
34-
3531
private String caseCode;
3632

37-
public String getMessage() {
38-
return this.message;
39-
}
40-
41-
public void setMessage(String message) {
42-
this.message = message;
43-
}
44-
4533
public String getRequestId() {
4634
return this.requestId;
4735
}
@@ -58,14 +46,6 @@ public void setSuccess(Boolean success) {
5846
this.success = success;
5947
}
6048

61-
public String getCode() {
62-
return this.code;
63-
}
64-
65-
public void setCode(String code) {
66-
this.code = code;
67-
}
68-
6949
public String getCaseCode() {
7050
return this.caseCode;
7151
}

0 commit comments

Comments
 (0)