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

com.pdd.pop.sdk.http.api.pop.response.PddGoodsDetailGetResponse Maven / Gradle / Ivy

There is a newer version: 1.10.85
Show newest version
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 PddGoodsDetailGetResponse extends PopBaseHttpResponse {

    /**
     * 商品详情response
     */
    @JsonProperty("goods_detail_get_response")
    private GoodsDetailGetResponse goodsDetailGetResponse;

    public GoodsDetailGetResponse getGoodsDetailGetResponse() {
        return goodsDetailGetResponse;
    }

    public static class GoodsDetailGetResponse {

        /**
         * 坏果包赔
         */
        @JsonProperty("bad_fruit_claim")
        private Integer badFruitClaim;

        /**
         * 限购次数
         */
        @JsonProperty("buy_limit")
        private Long buyLimit;

        /**
         * 商品轮播图列表
         */
        @JsonProperty("carousel_gallery_list")
        private List carouselGalleryList;

        /**
         * 叶子类目ID
         */
        @JsonProperty("cat_id")
        private Long catId;

        /**
         * 运费模版id
         */
        @JsonProperty("cost_template_id")
        private Long costTemplateId;

        /**
         * 国家id
         */
        @JsonProperty("country_id")
        private Integer countryId;

        /**
         * 团购人数
         */
        @JsonProperty("customer_num")
        private Long customerNum;

        /**
         * 海关名称
         */
        @JsonProperty("customs")
        private String customs;

        /**
         * 是否当日发货,0 否,1 是
         */
        @JsonProperty("delivery_one_day")
        private Integer deliveryOneDay;

        /**
         * 商品详情图
         */
        @JsonProperty("detail_gallery_list")
        private List detailGalleryList;

        /**
         * 商品描述
         */
        @JsonProperty("goods_desc")
        private String goodsDesc;

        /**
         * 商品id
         */
        @JsonProperty("goods_id")
        private Long goodsId;

        /**
         * 商品名称
         */
        @JsonProperty("goods_name")
        private String goodsName;

        /**
         * 商品属性列表
         */
        @JsonProperty("goods_property_list")
        private List goodsPropertyList;

        /**
         * 日历商品交易相关信息
         */
        @JsonProperty("goods_trade_attr")
        private GoodsDetailGetResponseGoodsTradeAttr goodsTradeAttr;

        /**
         * 日历商品出行信息
         */
        @JsonProperty("goods_travel_attr")
        private GoodsDetailGetResponseGoodsTravelAttr goodsTravelAttr;

        /**
         * 商品类型:1-国内普通商品,2-进口,3-国外海淘,4-直邮 ,5-流量,6-话费,7,优惠券;8-QQ充值,9-加油卡 暂时支持1-普通商品的上架
         */
        @JsonProperty("goods_type")
        private Integer goodsType;

        /**
         * 商品主图
         */
        @JsonProperty("image_url")
        private String imageUrl;

        /**
         * 是否支持正品发票;0-不支持、1-支持
         */
        @JsonProperty("invoice_status")
        private Integer invoiceStatus;

        /**
         * 是否需要上报海关 0:否 1:是
         */
        @JsonProperty("is_customs")
        private Integer isCustoms;

        /**
         * 是否支持假一赔十,0-不支持,1-支持
         */
        @JsonProperty("is_folt")
        private Integer isFolt;

        /**
         * 是否预售,1-预售商品,0-非预售商品
         */
        @JsonProperty("is_pre_sale")
        private Integer isPreSale;

        /**
         * 是否7天无理由退换货,1-支持,0-不支持
         */
        @JsonProperty("is_refundable")
        private Integer isRefundable;

        /**
         * 缺重包退
         */
        @JsonProperty("lack_of_weight_claim")
        private Integer lackOfWeightClaim;

        /**
         * 买家自提模版id
         */
        @JsonProperty("mai_jia_zi_ti")
        private String maiJiaZiTi;

        /**
         * 市场价格,单位为分
         */
        @JsonProperty("market_price")
        private Long marketPrice;

        /**
         * 单次限量
         */
        @JsonProperty("order_limit")
        private Long orderLimit;

        /**
         * 商家编码(商品维度),同其他接口中的outer_goods_id 、out_goods_id、out_goods_sn、outer_goods_sn 都为商家编码(goods维度)。
         */
        @JsonProperty("outer_goods_id")
        private String outerGoodsId;

        /**
         * 第三方商品Id
         */
        @JsonProperty("out_source_goods_id")
        private String outSourceGoodsId;

        /**
         * 第三方商品来源
         */
        @JsonProperty("out_source_type")
        private Integer outSourceType;

        /**
         * oversea_goods
         */
        @JsonProperty("oversea_goods")
        private GoodsDetailGetResponseOverseaGoods overseaGoods;

        /**
         * oversea_type
         */
        @JsonProperty("oversea_type")
        private Integer overseaType;

        /**
         * 预售时间
         */
        @JsonProperty("pre_sale_time")
        private Long preSaleTime;

        /**
         * 0:不支持全国联保;1:支持全国联保
         */
        @JsonProperty("quan_guo_lian_bao")
        private Integer quanGuoLianBao;

        /**
         * 是否二手 1:是 0:否
         */
        @JsonProperty("second_hand")
        private Integer secondHand;

        /**
         * 上门安装模版id
         */
        @JsonProperty("shang_men_an_zhuang")
        private String shangMenAnZhuang;

        /**
         * 承诺发货时间( 秒)
         */
        @JsonProperty("shipment_limit_second")
        private Long shipmentLimitSecond;

        /**
         * 尺码表id
         */
        @JsonProperty("size_spec_id")
        private Long sizeSpecId;

        /**
         * 库存方式(0:普通型,1:日历型)
         */
        @JsonProperty("skuType")
        private Integer skuType;

        /**
         * sku列表
         */
        @JsonProperty("sku_list")
        private List skuList;

        /**
         * 送货入户并安装模版id
         */
        @JsonProperty("song_huo_an_zhuang")
        private String songHuoAnZhuang;

        /**
         * 送货入户模版id
         */
        @JsonProperty("song_huo_ru_hu")
        private String songHuoRuHu;

        /**
         * 商品状态 1:上架,2:下架,3:售罄 4:已删除
         */
        @JsonProperty("status")
        private Integer status;

        /**
         * 短标题,示例:新包装,保证产品的口感和新鲜度。单颗独立小包装,双重营养,1斤家庭分享装,更实惠新疆一级骏枣夹核桃仁。
         */
        @JsonProperty("tiny_name")
        private String tinyName;

        /**
         * 商品视频
         */
        @JsonProperty("video_gallery")
        private List videoGallery;

        /**
         * 保税仓
         */
        @JsonProperty("warehouse")
        private String warehouse;

        /**
         * 水果类目温馨提示
         */
        @JsonProperty("warm_tips")
        private String warmTips;

        /**
         * 只换不修的天数,目前只支持0和365
         */
        @JsonProperty("zhi_huan_bu_xiu")
        private Integer zhiHuanBuXiu;

        public Integer getBadFruitClaim() {
            return badFruitClaim;
        }

        public Long getBuyLimit() {
            return buyLimit;
        }

        public List getCarouselGalleryList() {
            return carouselGalleryList;
        }

        public Long getCatId() {
            return catId;
        }

        public Long getCostTemplateId() {
            return costTemplateId;
        }

        public Integer getCountryId() {
            return countryId;
        }

        public Long getCustomerNum() {
            return customerNum;
        }

        public String getCustoms() {
            return customs;
        }

        public Integer getDeliveryOneDay() {
            return deliveryOneDay;
        }

        public List getDetailGalleryList() {
            return detailGalleryList;
        }

        public String getGoodsDesc() {
            return goodsDesc;
        }

        public Long getGoodsId() {
            return goodsId;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public List getGoodsPropertyList() {
            return goodsPropertyList;
        }

        public GoodsDetailGetResponseGoodsTradeAttr getGoodsTradeAttr() {
            return goodsTradeAttr;
        }

        public GoodsDetailGetResponseGoodsTravelAttr getGoodsTravelAttr() {
            return goodsTravelAttr;
        }

        public Integer getGoodsType() {
            return goodsType;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public Integer getInvoiceStatus() {
            return invoiceStatus;
        }

        public Integer getIsCustoms() {
            return isCustoms;
        }

        public Integer getIsFolt() {
            return isFolt;
        }

        public Integer getIsPreSale() {
            return isPreSale;
        }

        public Integer getIsRefundable() {
            return isRefundable;
        }

        public Integer getLackOfWeightClaim() {
            return lackOfWeightClaim;
        }

        public String getMaiJiaZiTi() {
            return maiJiaZiTi;
        }

        public Long getMarketPrice() {
            return marketPrice;
        }

        public Long getOrderLimit() {
            return orderLimit;
        }

        public String getOuterGoodsId() {
            return outerGoodsId;
        }

        public String getOutSourceGoodsId() {
            return outSourceGoodsId;
        }

        public Integer getOutSourceType() {
            return outSourceType;
        }

        public GoodsDetailGetResponseOverseaGoods getOverseaGoods() {
            return overseaGoods;
        }

        public Integer getOverseaType() {
            return overseaType;
        }

        public Long getPreSaleTime() {
            return preSaleTime;
        }

        public Integer getQuanGuoLianBao() {
            return quanGuoLianBao;
        }

        public Integer getSecondHand() {
            return secondHand;
        }

        public String getShangMenAnZhuang() {
            return shangMenAnZhuang;
        }

        public Long getShipmentLimitSecond() {
            return shipmentLimitSecond;
        }

        public Long getSizeSpecId() {
            return sizeSpecId;
        }

        public Integer getSkuType() {
            return skuType;
        }

        public List getSkuList() {
            return skuList;
        }

        public String getSongHuoAnZhuang() {
            return songHuoAnZhuang;
        }

        public String getSongHuoRuHu() {
            return songHuoRuHu;
        }

        public Integer getStatus() {
            return status;
        }

        public String getTinyName() {
            return tinyName;
        }

        public List getVideoGallery() {
            return videoGallery;
        }

        public String getWarehouse() {
            return warehouse;
        }

        public String getWarmTips() {
            return warmTips;
        }

        public Integer getZhiHuanBuXiu() {
            return zhiHuanBuXiu;
        }
    }

    public static class GoodsDetailGetResponseGoodsPropertyListItem {

        /**
         * 属性单位
         */
        @JsonProperty("punit")
        private String punit;

        /**
         * 引用属性id
         */
        @JsonProperty("ref_pid")
        private Long refPid;

        /**
         * 模板属性Id
         */
        @JsonProperty("template_pid")
        private Long templatePid;

        /**
         * 基础属性值Id
         */
        @JsonProperty("vid")
        private Long vid;

        /**
         * 基础属性值
         */
        @JsonProperty("vvalue")
        private String vvalue;

        public String getPunit() {
            return punit;
        }

        public Long getRefPid() {
            return refPid;
        }

        public Long getTemplatePid() {
            return templatePid;
        }

        public Long getVid() {
            return vid;
        }

        public String getVvalue() {
            return vvalue;
        }
    }

    public static class GoodsDetailGetResponseGoodsTradeAttr {

        /**
         * 提前预定天数,默认为0表示当天可预定
         */
        @JsonProperty("advances_days")
        private Integer advancesDays;

        /**
         * 预订须知
         */
        @JsonProperty("booking_notes")
        private GoodsDetailGetResponseGoodsTradeAttrBookingNotes bookingNotes;

        /**
         * 卡券有效期,日历日期后多少天可用。默认值为0表示仅限日历日当天使用
         */
        @JsonProperty("life_span")
        private Integer lifeSpan;

        public Integer getAdvancesDays() {
            return advancesDays;
        }

        public GoodsDetailGetResponseGoodsTradeAttrBookingNotes getBookingNotes() {
            return bookingNotes;
        }

        public Integer getLifeSpan() {
            return lifeSpan;
        }
    }

    public static class GoodsDetailGetResponseGoodsTradeAttrBookingNotes {

        /**
         * 预定须知图片地址
         */
        @JsonProperty("url")
        private String url;

        public String getUrl() {
            return url;
        }
    }

    public static class GoodsDetailGetResponseGoodsTravelAttr {

        /**
         * 日历商品类型1:旅行类,2:住宿类,3:票务类
         */
        @JsonProperty("need_tourist")
        private Boolean needTourist;

        /**
         * 出行人是否必填(默认是)
         */
        @JsonProperty("type")
        private Integer type;

        public Boolean getNeedTourist() {
            return needTourist;
        }

        public Integer getType() {
            return type;
        }
    }

    public static class GoodsDetailGetResponseOverseaGoods {

        /**
         * 保税仓唯一标识
         */
        @JsonProperty("bonded_warehouse_key")
        private String bondedWarehouseKey;

        /**
         * 消费税率
         */
        @JsonProperty("consumption_tax_rate")
        private Integer consumptionTaxRate;

        /**
         * 清关服务商
         */
        @JsonProperty("customs_broker")
        private String customsBroker;

        /**
         * 海关编号
         */
        @JsonProperty("hs_code")
        private String hsCode;

        /**
         * 增值税率
         */
        @JsonProperty("value_added_tax_rate")
        private Integer valueAddedTaxRate;

        public String getBondedWarehouseKey() {
            return bondedWarehouseKey;
        }

        public Integer getConsumptionTaxRate() {
            return consumptionTaxRate;
        }

        public String getCustomsBroker() {
            return customsBroker;
        }

        public String getHsCode() {
            return hsCode;
        }

        public Integer getValueAddedTaxRate() {
            return valueAddedTaxRate;
        }
    }

    public static class GoodsDetailGetResponseSkuListItem {

        /**
         * 上下架状态 1:上架 0 :下架
         */
        @JsonProperty("is_onsale")
        private Integer isOnsale;

        /**
         * sku送装参数:长度
         */
        @JsonProperty("length")
        private Long length;

        /**
         * sku购买限制
         */
        @JsonProperty("limit_quantity")
        private Long limitQuantity;

        /**
         * 商品团购价格 单位分
         */
        @JsonProperty("multi_price")
        private Long multiPrice;

        /**
         * 商家编码(sku维度),同其他接口中的outer_id 、out_id、out_sku_sn、outer_sku_sn、out_sku_id、outer_sku_id 都为商家编码(sku维度)。
         */
        @JsonProperty("out_sku_sn")
        private String outSkuSn;

        /**
         * 第三方sku Id
         */
        @JsonProperty("out_source_sku_id")
        private String outSourceSkuId;

        /**
         * oversea_sku
         */
        @JsonProperty("oversea_sku")
        private GoodsDetailGetResponseSkuListItemOverseaSku overseaSku;

        /**
         * 商品单买价格 单位分
         */
        @JsonProperty("price")
        private Long price;

        /**
         * 库存
         */
        @JsonProperty("quantity")
        private Long quantity;

        /**
         * 预扣库存
         */
        @JsonProperty("reserve_quantity")
        private Long reserveQuantity;

        /**
         * sku编码
         */
        @JsonProperty("sku_id")
        private Long skuId;

        /**
         * 商品规格列表
         */
        @JsonProperty("spec")
        private List spec;

        /**
         * sku预览图
         */
        @JsonProperty("thumb_url")
        private String thumbUrl;

        /**
         * 重量,单位为g
         */
        @JsonProperty("weight")
        private Long weight;

        public Integer getIsOnsale() {
            return isOnsale;
        }

        public Long getLength() {
            return length;
        }

        public Long getLimitQuantity() {
            return limitQuantity;
        }

        public Long getMultiPrice() {
            return multiPrice;
        }

        public String getOutSkuSn() {
            return outSkuSn;
        }

        public String getOutSourceSkuId() {
            return outSourceSkuId;
        }

        public GoodsDetailGetResponseSkuListItemOverseaSku getOverseaSku() {
            return overseaSku;
        }

        public Long getPrice() {
            return price;
        }

        public Long getQuantity() {
            return quantity;
        }

        public Long getReserveQuantity() {
            return reserveQuantity;
        }

        public Long getSkuId() {
            return skuId;
        }

        public List getSpec() {
            return spec;
        }

        public String getThumbUrl() {
            return thumbUrl;
        }

        public Long getWeight() {
            return weight;
        }
    }

    public static class GoodsDetailGetResponseSkuListItemOverseaSku {

        /**
         * 计量单位编码,从接口pdd.gooods.sku.measurement.list获取desc
         */
        @JsonProperty("measurement_code")
        private String measurementCode;

        /**
         * 规格
         */
        @JsonProperty("specifications")
        private String specifications;

        /**
         * 税费
         */
        @JsonProperty("taxation")
        private Integer taxation;

        public String getMeasurementCode() {
            return measurementCode;
        }

        public String getSpecifications() {
            return specifications;
        }

        public Integer getTaxation() {
            return taxation;
        }
    }

    public static class GoodsDetailGetResponseSkuListItemSpecItem {

        /**
         * 自定义规格所属的规格ID
         */
        @JsonProperty("parent_id")
        private Long parentId;

        /**
         * 商品规格ID对应的规格名称
         */
        @JsonProperty("parent_name")
        private String parentName;

        /**
         * 自定义规格ID
         */
        @JsonProperty("spec_id")
        private Long specId;

        /**
         * 自定义规格名称
         */
        @JsonProperty("spec_name")
        private String specName;

        public Long getParentId() {
            return parentId;
        }

        public String getParentName() {
            return parentName;
        }

        public Long getSpecId() {
            return specId;
        }

        public String getSpecName() {
            return specName;
        }
    }

    public static class GoodsDetailGetResponseVideoGalleryItem {

        /**
         * 商品视频id
         */
        @JsonProperty("file_id")
        private Integer fileId;

        /**
         * 商品视频url
         */
        @JsonProperty("video_url")
        private String videoUrl;

        public Integer getFileId() {
            return fileId;
        }

        public String getVideoUrl() {
            return videoUrl;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy