com.pdd.pop.sdk.http.api.pop.response.PddGoodsLogisticsTemplateGetResponse Maven / Gradle / Ivy
package com.pdd.pop.sdk.http.api.pop.response;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.PopBaseHttpResponse;
import java.util.List;
public class PddGoodsLogisticsTemplateGetResponse extends PopBaseHttpResponse {
/**
* response
*/
@JsonProperty("goods_logistics_template_get_response")
private GoodsLogisticsTemplateGetResponse goodsLogisticsTemplateGetResponse;
public GoodsLogisticsTemplateGetResponse getGoodsLogisticsTemplateGetResponse() {
return goodsLogisticsTemplateGetResponse;
}
public static class GoodsLogisticsTemplateGetResponse {
/**
* 返回的运费模板总数
*/
@JsonProperty("total_count")
private Integer totalCount;
/**
* 商家运费模板对象列表
*/
@JsonProperty("logistics_template_list")
private List logisticsTemplateList;
public Integer getTotalCount() {
return totalCount;
}
public List getLogisticsTemplateList() {
return logisticsTemplateList;
}
}
public static class GoodsLogisticsTemplateGetResponseLogisticsTemplateListItem {
/**
* 发货地省份id
*/
@JsonProperty("province_id")
private Integer provinceId;
/**
* 发货地城市ID
*/
@JsonProperty("city_id")
private Integer cityId;
/**
* 发货地区ID
*/
@JsonProperty("district_id")
private Integer districtId;
/**
* 是否顺丰包邮,1-是 0-否
*/
@JsonProperty("sf_free_type")
private Integer sfFreeType;
/**
* 不包邮区域/需要买家付邮费区域
*/
@JsonProperty("cost_template_list")
private List costTemplateList;
/**
* 模板id
*/
@JsonProperty("template_id")
private Long templateId;
/**
* 运费模板名称
*/
@JsonProperty("template_name")
private String templateName;
/**
* 计费方式,0-按件计费,1-按重量计费
*/
@JsonProperty("cost_type")
private Integer costType;
/**
* 包邮省份对象
*/
@JsonProperty("free_province_list")
private List freeProvinceList;
public Integer getProvinceId() {
return provinceId;
}
public Integer getCityId() {
return cityId;
}
public Integer getDistrictId() {
return districtId;
}
public Integer getSfFreeType() {
return sfFreeType;
}
public List getCostTemplateList() {
return costTemplateList;
}
public Long getTemplateId() {
return templateId;
}
public String getTemplateName() {
return templateName;
}
public Integer getCostType() {
return costType;
}
public List getFreeProvinceList() {
return freeProvinceList;
}
}
public static class GoodsLogisticsTemplateGetResponseLogisticsTemplateListItemCostTemplateListItem {
/**
* 不包邮的区域
*/
@JsonProperty("cost_province_list")
private List costProvinceList;
/**
* 首件
*/
@JsonProperty("first_standard")
private Long firstStandard;
/**
* 首件或首重价格,单位为分
*/
@JsonProperty("first_cost")
private Long firstCost;
/**
* 续重或续件
*/
@JsonProperty("add_standard")
private Long addStandard;
/**
* 续件或续重价格,单位为分
*/
@JsonProperty("add_cost")
private Long addCost;
/**
* 对不包邮地区,true-若要包邮须满足件数包邮,false-不开启满足件数包邮
*/
@JsonProperty("is_have_free_min_count")
private Boolean isHaveFreeMinCount;
/**
* 对不包邮地区,满足指定件数包邮,该值为商家设置的指定件数,若为-1则商家没有开启满足件数包邮
*/
@JsonProperty("have_free_min_count")
private Long haveFreeMinCount;
/**
* 对不包邮地区,true-若要包邮须满足指定价格则可以包邮,false-不开启满足指定价格包邮
*/
@JsonProperty("is_have_free_min_amount")
private Boolean isHaveFreeMinAmount;
/**
* 对不包邮地区,满足指定价格包邮,该值为商家设置的指定订单金额,若为-1则商家没有开启满足指定价格包邮,注意,单位为分
*/
@JsonProperty("have_free_min_amount")
private Long haveFreeMinAmount;
public List getCostProvinceList() {
return costProvinceList;
}
public Long getFirstStandard() {
return firstStandard;
}
public Long getFirstCost() {
return firstCost;
}
public Long getAddStandard() {
return addStandard;
}
public Long getAddCost() {
return addCost;
}
public Boolean getIsHaveFreeMinCount() {
return isHaveFreeMinCount;
}
public Long getHaveFreeMinCount() {
return haveFreeMinCount;
}
public Boolean getIsHaveFreeMinAmount() {
return isHaveFreeMinAmount;
}
public Long getHaveFreeMinAmount() {
return haveFreeMinAmount;
}
}
public static class GoodsLogisticsTemplateGetResponseLogisticsTemplateListItemCostTemplateListItemCostProvinceListItem {
/**
* 省份
*/
@JsonProperty("province")
private String province;
/**
* 不包邮区域的ID
*/
@JsonProperty("province_id")
private Integer provinceId;
public String getProvince() {
return province;
}
public Integer getProvinceId() {
return provinceId;
}
}
public static class GoodsLogisticsTemplateGetResponseLogisticsTemplateListItemFreeProvinceListItem {
/**
* 省份id
*/
@JsonProperty("province_id")
private Long provinceId;
/**
* 省份
*/
@JsonProperty("province")
private String province;
public Long getProvinceId() {
return provinceId;
}
public String getProvince() {
return province;
}
}
}