All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pdd.pop.sdk.http.api.ark.request.PddWmsDepotTicketGetRequest Maven / Gradle / Ivy

The newest version!
package com.pdd.pop.sdk.http.api.ark.request;

import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.ark.response.PddWmsDepotTicketGetResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;

import java.util.Map;

public class PddWmsDepotTicketGetRequest extends PopBaseHttpRequest {

    /**
     * 是否过滤已ack过的工单 true: 过滤已ack过的工单 false: 拉取全量数据
     */
    @JsonProperty("notAck")
    private Boolean notAck;

    /**
     * 创建开始时间
     */
    @JsonProperty("createdAtGte")
    private Integer createdAtGte;

    /**
     * 创建结束时间
     */
    @JsonProperty("createdAtLte")
    private Integer createdAtLte;

    /**
     * 页数
     */
    @JsonProperty("pageNum")
    private Integer pageNum;

    /**
     * 每页条数(默认100,最大100)
     */
    @JsonProperty("pageSize")
    private Integer pageSize;

    @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.depot.ticket.get";
    }

    @Override
    public HttpMethod getHttpMethod() {
        return HttpMethod.POST;
    }

    @Override
    public Class getResponseClass() {
        return PddWmsDepotTicketGetResponse.class;
    }

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "notAck", notAck);
        setUserParam(params, "createdAtGte", createdAtGte);
        setUserParam(params, "createdAtLte", createdAtLte);
        setUserParam(params, "pageNum", pageNum);
        setUserParam(params, "pageSize", pageSize);
    }

    public void setNotAck(Boolean notAck) {
        this.notAck = notAck;
    }

    public void setCreatedAtGte(Integer createdAtGte) {
        this.createdAtGte = createdAtGte;
    }

    public void setCreatedAtLte(Integer createdAtLte) {
        this.createdAtLte = createdAtLte;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy