com.pdd.pop.sdk.http.api.ark.request.PddWmsOrderQueryRequest 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.PddWmsOrderQueryResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddWmsOrderQueryRequest 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.order.query";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddWmsOrderQueryResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "request", request);
}
public void setRequest(Request request) {
this.request = request;
}
public static class Request {
/**
* 单据号
*/
@JsonProperty("orderCode")
private String orderCode;
/**
* 单据类型(PTCK=普通出库单;DBCK=调拨出库;CGRK=采购入库;DBRK= 调拨入库; JYCK=一般交易出库单;THRK=退货入库单)
*/
@JsonProperty("orderType")
private String orderType;
/**
* 仓库编码
*/
@JsonProperty("warehouseCode")
private String warehouseCode;
public void setOrderCode(String orderCode) {
this.orderCode = orderCode;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
public void setWarehouseCode(String warehouseCode) {
this.warehouseCode = warehouseCode;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
}