com.pdd.pop.sdk.http.api.ark.request.PddCloudLogisticsOnlineSendRequest Maven / Gradle / Ivy
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;
@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);
}
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;
}
}