com.pdd.pop.sdk.http.api.ark.request.PddWmsOrderstateSendRequest 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.PddWmsOrderstateSendResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.List;
import java.util.Map;
public class PddWmsOrderstateSendRequest 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.orderstate.send";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddWmsOrderstateSendResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "request", request);
}
public void setRequest(Request request) {
this.request = request;
}
public static class Request {
/**
* 单据
*/
@JsonProperty("order")
private RequestOrder order;
/**
* 货品信息列表
*/
@JsonProperty("orderLines")
private List orderLines;
/**
* 货主id(店铺id)
*/
@JsonProperty("ownerCode")
private String ownerCode;
/**
* process
*/
@JsonProperty("process")
private RequestProcess process;
public void setOrder(RequestOrder order) {
this.order = order;
}
public void setOrderLines(List orderLines) {
this.orderLines = orderLines;
}
public void setOwnerCode(String ownerCode) {
this.ownerCode = ownerCode;
}
public void setProcess(RequestProcess process) {
this.process = process;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
public static class RequestOrder {
/**
* 单据号
*/
@JsonProperty("orderCode")
private String orderCode;
/**
* 单据类型(JYCK=一般交易出库单;THRK=退货入库单;PTCK=普通出库单;DBCK=调拨出库;CGRK=采购入库;DBRK= 调拨入库;)
*/
@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);
}
}
public static class RequestOrderLinesItem {
/**
* 库存类型(ZP=正品;CC=残次)
*/
@JsonProperty("inventoryType")
private String inventoryType;
/**
* 父货品编码(如果是组合货品)
*/
@JsonProperty("parentWareSn")
private String parentWareSn;
/**
* 应发货品数量
*/
@JsonProperty("quantity")
private String quantity;
/**
* 货品编码
*/
@JsonProperty("wareSn")
private String wareSn;
public void setInventoryType(String inventoryType) {
this.inventoryType = inventoryType;
}
public void setParentWareSn(String parentWareSn) {
this.parentWareSn = parentWareSn;
}
public void setQuantity(String quantity) {
this.quantity = quantity;
}
public void setWareSn(String wareSn) {
this.wareSn = wareSn;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
public static class RequestProcess {
/**
* 操作内容
*/
@JsonProperty("operateInfo")
private String operateInfo;
/**
* 当前状态操作时间(YYYY-MM-DD HH:MM:SS)
*/
@JsonProperty("operateTime")
private String operateTime;
/**
* 单据状态(ACCEPT=仓库接单;PARTFULFILLED-部分收货完成;FULFILLED=收货完成;DELIVERED=已发货;EXCEPTION =异常;CLOSED= 关闭;CANCELED= 取 消;REJECT=仓库拒单;SIGN=签收;TMSCANCELED=快递拦截;OTHER=其他;PARTDELIVERED=部分发货完成;TMSCANCELFAILED=快递拦截失败; REFUSESIGN买家拒签;TMS_ACCEPT取件完成;TMSREJECT取件失败;CANCELFAILURE取消失败;DELIVERING=派件中 ;SIGNAZ签收已安装;SIGNWAZ签收未安装;只传英 文编码)
*/
@JsonProperty("processStatus")
private String processStatus;
/**
* 备注
*/
@JsonProperty("remark")
private String remark;
public void setOperateInfo(String operateInfo) {
this.operateInfo = operateInfo;
}
public void setOperateTime(String operateTime) {
this.operateTime = operateTime;
}
public void setProcessStatus(String processStatus) {
this.processStatus = processStatus;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
return JsonUtil.transferToJson(this);
}
}
}