com.pdd.pop.sdk.http.api.ark.request.PddWmsOutboundChangedateRequest Maven / Gradle / Ivy
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.PddWmsOutboundChangedateResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddWmsOutboundChangedateRequest extends PopBaseHttpRequest {
/**
* request
*/
@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.outbound.changedate";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddWmsOutboundChangedateResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "request", request);
}
public void setRequest(Request request) {
this.request = request;
}
public static class Request {
/**
* 出库单据号
*/
@JsonProperty("deliveryOrderCode")
private String deliveryOrderCode;
/**
* 仓库编码
*/
@JsonProperty("warehouseCode")
private String warehouseCode;
/**
* 送达开始时间格式为 YYYY-MM-DD hh:mm:ss
*/
@JsonProperty("scheduleStart")
private String scheduleStart;
/**
* 送达结束时间格式为 YYYY-MM-DD hh:mm:ss
*/
@JsonProperty("scheduleEnd")
private String scheduleEnd;
public void setDeliveryOrderCode(String deliveryOrderCode) {
this.deliveryOrderCode = deliveryOrderCode;
}
public void setWarehouseCode(String warehouseCode) {
this.warehouseCode = warehouseCode;
}
public void setScheduleStart(String scheduleStart) {
this.scheduleStart = scheduleStart;
}
public void setScheduleEnd(String scheduleEnd) {
this.scheduleEnd = scheduleEnd;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
}