com.pdd.pop.sdk.http.api.ark.request.PddWmsWareSynchronizeRequest Maven / Gradle / Ivy
The newest version!
package com.pdd.pop.sdk.http.api.ark.request;
import com.pdd.pop.sdk.common.util.JsonUtil;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.ark.response.PddWmsWareSynchronizeResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddWmsWareSynchronizeRequest extends PopBaseHttpRequest {
/**
* 货品同步请求业务参数
*/
@JsonProperty("request")
private Request request;
@Override
public String getVersion() {
return "V1";
}
@Override
public String getDataType() {
return "JSON";
}
@Override
public Integer getPlatform() {
return 1;
}
@Override
public String getType() {
return "pdd.wms.ware.synchronize";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddWmsWareSynchronizeResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "request", request);
}
public void setRequest(Request request) {
this.request = request;
}
public static class Request {
/**
* 操作类型(两种类型:add|update)
*/
@JsonProperty("actionType")
private String actionType;
/**
* 货主编码(店铺id)
*/
@JsonProperty("ownerCode")
private String ownerCode;
/**
* 货品信息
*/
@JsonProperty("ware")
private RequestWare ware;
public void setActionType(String actionType) {
this.actionType = actionType;
}
public void setOwnerCode(String ownerCode) {
this.ownerCode = ownerCode;
}
public void setWare(RequestWare ware) {
this.ware = ware;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
public static class RequestWare {
/**
* 69码
*/
@JsonProperty("barCode")
private String barCode;
/**
* 品牌
*/
@JsonProperty("brandName")
private String brandName;
/**
* 品类id
*/
@JsonProperty("categoryId")
private String categoryId;
/**
* 品类
*/
@JsonProperty("categoryName")
private String categoryName;
/**
* 颜色
*/
@JsonProperty("color")
private String color;
/**
* 高(单位:mm)
*/
@JsonProperty("height")
private String height;
/**
* 长(单位:mm)
*/
@JsonProperty("length")
private String length;
/**
* 尺码
*/
@JsonProperty("size")
private String size;
/**
* 体积(单位:升)
*/
@JsonProperty("volume")
private String volume;
/**
* 货品名称
*/
@JsonProperty("wareName")
private String wareName;
/**
* 货品编码
*/
@JsonProperty("wareSn")
private String wareSn;
/**
* 货品类型(ZC=正常货品;ZH=组合货品;只传英文编码)
*/
@JsonProperty("wareType")
private String wareType;
/**
* 毛重(单位:千克)
*/
@JsonProperty("weight")
private String weight;
/**
* 宽(单位:mm)
*/
@JsonProperty("width")
private String width;
public void setBarCode(String barCode) {
this.barCode = barCode;
}
public void setBrandName(String brandName) {
this.brandName = brandName;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
public void setColor(String color) {
this.color = color;
}
public void setHeight(String height) {
this.height = height;
}
public void setLength(String length) {
this.length = length;
}
public void setSize(String size) {
this.size = size;
}
public void setVolume(String volume) {
this.volume = volume;
}
public void setWareName(String wareName) {
this.wareName = wareName;
}
public void setWareSn(String wareSn) {
this.wareSn = wareSn;
}
public void setWareType(String wareType) {
this.wareType = wareType;
}
public void setWeight(String weight) {
this.weight = weight;
}
public void setWidth(String width) {
this.width = width;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
}