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

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

There is a newer version: 1.10.85
Show newest version
package com.pdd.pop.sdk.http.api.pop.request;

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

import java.util.Map;

public class PddLogisticsOnlineSendRequest extends PopBaseHttpRequest {

    /**
     * 发货个性内容,支持imei(手机串号),deviceSn(设备序列号)内容。形如:imei=11,22,3333; 以 “imei=” 开头,以英文分号“;”结尾,中间为手机IMEI串号信息,多个串号以英文逗号 “,”拼接释义:该订单包含三个手机IMEI串号,分别为11、22和3333;其他内容的格式同理。
     */
    @JsonProperty("feature")
    private String feature;

    /**
     * 快递公司编号
     */
    @JsonProperty("logistics_id")
    private Long logisticsId;

    /**
     * 订单号。形如:20150909-452750051
     */
    @JsonProperty("order_sn")
    private String orderSn;

    /**
     * 退货地址的id,不填则取商家默认地址
     */
    @JsonProperty("refund_address_id")
    private String refundAddressId;

    /**
     * 快递单号
     */
    @JsonProperty("tracking_number")
    private String trackingNumber;

    @Override
    public String getVersion() {
        return "V1";
    }

    @Override
    public String getDataType() {
        return "JSON";
    }

    @Override
    public Integer getPlatform() {
        return 0;
    }

    @Override
    public String getType() {
        return "pdd.logistics.online.send";
    }

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

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

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "feature", feature);
        setUserParam(params, "logistics_id", logisticsId);
        setUserParam(params, "order_sn", orderSn);
        setUserParam(params, "refund_address_id", refundAddressId);
        setUserParam(params, "tracking_number", trackingNumber);
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public void setLogisticsId(Long logisticsId) {
        this.logisticsId = logisticsId;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public void setRefundAddressId(String refundAddressId) {
        this.refundAddressId = refundAddressId;
    }

    public void setTrackingNumber(String trackingNumber) {
        this.trackingNumber = trackingNumber;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy