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

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

import java.util.Map;

public class PddCloudLogisticsOnlineSendRequest 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;

    /**
     * 第三方token
     */
    @JsonProperty("ext_token")
    private String extToken;

    /**
     * 修改发货模式:不传则默认为首次发货 1=首次发货:用于订单首次发货,仅待发货订单可传入; 2=修改发货:用于订单修改发货,调用成功后将会覆盖原发货信息,仅已发货订单可传入
     */
    @JsonProperty("redelivery_type")
    private Integer redeliveryType;

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

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

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

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

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

    @Override
    public Class getResponseClass() {
        return PddCloudLogisticsOnlineSendResponse.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);
        setUserParam(params, "ext_token", extToken);
        setUserParam(params, "redelivery_type", redeliveryType);
    }

    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;
    }

    public void setExtToken(String extToken) {
        this.extToken = extToken;
    }

    public void setRedeliveryType(Integer redeliveryType) {
        this.redeliveryType = redeliveryType;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy