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

com.pdd.pop.sdk.http.api.ark.request.PddWmsDepotTicketNotifyRequest 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.PddWmsDepotTicketNotifyResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;

import java.util.List;
import java.util.Map;

public class PddWmsDepotTicketNotifyRequest extends PopBaseHttpRequest {

    /**
     * 工单号
     */
    @JsonProperty("ticketId")
    private Long ticketId;

    /**
     * 回复内容
     */
    @JsonProperty("content")
    private String content;

    /**
     * 附件
     */
    @JsonProperty("attachUrl")
    private List attachUrl;

    /**
     * 服务商状态 0:待确认 1:已受理 2:投诉成立 3:投诉不成立 4:受理完成
     */
    @JsonProperty("serviceStatus")
    private Integer serviceStatus;

    /**
     * 赔付金额(单位:分)
     */
    @JsonProperty("compensateAmount")
    private Integer compensateAmount;

    @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.notify";
    }

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

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

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "ticketId", ticketId);
        setUserParam(params, "content", content);
        setUserParam(params, "attachUrl", attachUrl);
        setUserParam(params, "serviceStatus", serviceStatus);
        setUserParam(params, "compensateAmount", compensateAmount);
    }

    public void setTicketId(Long ticketId) {
        this.ticketId = ticketId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setAttachUrl(List attachUrl) {
        this.attachUrl = attachUrl;
    }

    public void setServiceStatus(Integer serviceStatus) {
        this.serviceStatus = serviceStatus;
    }

    public void setCompensateAmount(Integer compensateAmount) {
        this.compensateAmount = compensateAmount;
    }

    public static class AttachUrlItem {

        /**
         * name
         */
        @JsonProperty("name")
        private String name;

        /**
         * url
         */
        @JsonProperty("url")
        private String url;

        public void setName(String name) {
            this.name = name;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        @Override
        public String toString() {
            return JsonUtil.transferToJson(this);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy