com.pdd.pop.sdk.http.api.ark.request.PddWmsOrderCancelRequest 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.PddWmsOrderCancelResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddWmsOrderCancelRequest 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.cancel";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddWmsOrderCancelResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "request", request);
}
public void setRequest(Request request) {
this.request = request;
}
public static class Request {
/**
* 取消原因
*/
@JsonProperty("cancelReason")
private String cancelReason;
/**
* 单号
*/
@JsonProperty("orderCode")
private String orderCode;
/**
* JYCK=一般交易出库单; THRK=退货入库单;PTCK=普通出库单;DBCK=调拨出库;CGRK=采购入库;DBRK= 调拨入库
*/
@JsonProperty("orderType")
private String orderType;
/**
* 货主id(店铺id)
*/
@JsonProperty("ownerCode")
private String ownerCode;
/**
* 仓库编码(服务商仓库编码)
*/
@JsonProperty("warehouseCode")
private String warehouseCode;
public void setCancelReason(String cancelReason) {
this.cancelReason = cancelReason;
}
public void setOrderCode(String orderCode) {
this.orderCode = orderCode;
}
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);
}
}
}