com.pdd.pop.sdk.http.api.ark.request.PddWmsOrderCallbackRequest 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.PddWmsOrderCallbackResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddWmsOrderCallbackRequest 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.callback";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddWmsOrderCallbackResponse.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;
/**
* JYCK=一般交易出库单
*/
@JsonProperty("orderType")
private String orderType;
/**
* 货主id(店铺id)
*/
@JsonProperty("ownerCode")
private String ownerCode;
/**
* 仓库编码(服务商仓库编码)
*/
@JsonProperty("warehouseCode")
private String warehouseCode;
public void setDeliveryOrderCode(String deliveryOrderCode) {
this.deliveryOrderCode = deliveryOrderCode;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
public void setOwnerCode(String ownerCode) {
this.ownerCode = ownerCode;
}
public void setWarehouseCode(String warehouseCode) {
this.warehouseCode = warehouseCode;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
}