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

com.pdd.pop.sdk.http.api.pop.response.PddGoodsSpuSearchResponse 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 PddGoodsSpuSearchResponse extends PopBaseHttpResponse {

    /**
     * 标品搜索查询结果
     */
    @JsonProperty("spu_search_response")
    private SpuSearchResponse spuSearchResponse;

    public SpuSearchResponse getSpuSearchResponse() {
        return spuSearchResponse;
    }

    public static class SpuSearchResponse {

        /**
         * 标品列表
         */
        @JsonProperty("spu_list")
        private List spuList;

        public List getSpuList() {
            return spuList;
        }
    }

    public static class SpuSearchResponseSpuListItem {

        /**
         * 标品所在的类目ID。若非叶子类目,表示该标品可用于该类目下的任何叶子类目。
         */
        @JsonProperty("cat_id")
        private Long catId;

        /**
         * 关键属性
         */
        @JsonProperty("key_prop")
        private List keyProp;

        /**
         * 标品标题
         */
        @JsonProperty("spu_name")
        private String spuName;

        public Long getCatId() {
            return catId;
        }

        public List getKeyProp() {
            return keyProp;
        }

        public String getSpuName() {
            return spuName;
        }
    }

    public static class SpuSearchResponseSpuListItemKeyPropItem {

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

        /**
         * 属性值单位
         */
        @JsonProperty("value_unit")
        private String valueUnit;

        /**
         * 属性值
         */
        @JsonProperty("value")
        private String value;

        /**
         * 属性值ID
         */
        @JsonProperty("vid")
        private Long vid;

        public Long getRefPid() {
            return refPid;
        }

        public String getValueUnit() {
            return valueUnit;
        }

        public String getValue() {
            return value;
        }

        public Long getVid() {
            return vid;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy