| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddTicketGoodsUploadRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<String>, "carousel_gallery")
- */
- private $carouselGallery;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_CarouselVideoItem>, "carousel_video")
- */
- private $carouselVideo;
- /**
- * @JsonProperty(Long, "cat_id")
- */
- private $catId;
- /**
- * @JsonProperty(Integer, "code_mode")
- */
- private $codeMode;
- /**
- * @JsonProperty(List<String>, "detail_gallery")
- */
- private $detailGallery;
- /**
- * @JsonProperty(Long, "goods_commit_id")
- */
- private $goodsCommitId;
- /**
- * @JsonProperty(String, "goods_desc")
- */
- private $goodsDesc;
- /**
- * @JsonProperty(Long, "goods_id")
- */
- private $goodsId;
- /**
- * @JsonProperty(String, "goods_name")
- */
- private $goodsName;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_GoodsPropertiesItem>, "goods_properties")
- */
- private $goodsProperties;
- /**
- * @JsonProperty(Integer, "is_submit")
- */
- private $isSubmit;
- /**
- * @JsonProperty(Long, "market_price")
- */
- private $marketPrice;
- /**
- * @JsonProperty(String, "out_goods_sn")
- */
- private $outGoodsSn;
- /**
- * @JsonProperty(String, "reserve_limit_rule")
- */
- private $reserveLimitRule;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItem>, "sku_list")
- */
- private $skuList;
- /**
- * @JsonProperty(Integer, "sku_type")
- */
- private $skuType;
- /**
- * @JsonProperty(Integer, "sync_goods_operate")
- */
- private $syncGoodsOperate;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "carousel_gallery", $this->carouselGallery);
- $this->setUserParam($params, "carousel_video", $this->carouselVideo);
- $this->setUserParam($params, "cat_id", $this->catId);
- $this->setUserParam($params, "code_mode", $this->codeMode);
- $this->setUserParam($params, "detail_gallery", $this->detailGallery);
- $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId);
- $this->setUserParam($params, "goods_desc", $this->goodsDesc);
- $this->setUserParam($params, "goods_id", $this->goodsId);
- $this->setUserParam($params, "goods_name", $this->goodsName);
- $this->setUserParam($params, "goods_properties", $this->goodsProperties);
- $this->setUserParam($params, "is_submit", $this->isSubmit);
- $this->setUserParam($params, "market_price", $this->marketPrice);
- $this->setUserParam($params, "out_goods_sn", $this->outGoodsSn);
- $this->setUserParam($params, "reserve_limit_rule", $this->reserveLimitRule);
- $this->setUserParam($params, "sku_list", $this->skuList);
- $this->setUserParam($params, "sku_type", $this->skuType);
- $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.ticket.goods.upload";
- }
- public function setCarouselGallery($carouselGallery)
- {
- $this->carouselGallery = $carouselGallery;
- }
- public function setCarouselVideo($carouselVideo)
- {
- $this->carouselVideo = $carouselVideo;
- }
- public function setCatId($catId)
- {
- $this->catId = $catId;
- }
- public function setCodeMode($codeMode)
- {
- $this->codeMode = $codeMode;
- }
- public function setDetailGallery($detailGallery)
- {
- $this->detailGallery = $detailGallery;
- }
- public function setGoodsCommitId($goodsCommitId)
- {
- $this->goodsCommitId = $goodsCommitId;
- }
- public function setGoodsDesc($goodsDesc)
- {
- $this->goodsDesc = $goodsDesc;
- }
- public function setGoodsId($goodsId)
- {
- $this->goodsId = $goodsId;
- }
- public function setGoodsName($goodsName)
- {
- $this->goodsName = $goodsName;
- }
- public function setGoodsProperties($goodsProperties)
- {
- $this->goodsProperties = $goodsProperties;
- }
- public function setIsSubmit($isSubmit)
- {
- $this->isSubmit = $isSubmit;
- }
- public function setMarketPrice($marketPrice)
- {
- $this->marketPrice = $marketPrice;
- }
- public function setOutGoodsSn($outGoodsSn)
- {
- $this->outGoodsSn = $outGoodsSn;
- }
- public function setReserveLimitRule($reserveLimitRule)
- {
- $this->reserveLimitRule = $reserveLimitRule;
- }
- public function setSkuList($skuList)
- {
- $this->skuList = $skuList;
- }
- public function setSkuType($skuType)
- {
- $this->skuType = $skuType;
- }
- public function setSyncGoodsOperate($syncGoodsOperate)
- {
- $this->syncGoodsOperate = $syncGoodsOperate;
- }
- }
- class PddTicketGoodsUploadRequest_CarouselVideoItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "file_id")
- */
- private $fileId;
- /**
- * @JsonProperty(String, "video_url")
- */
- private $videoUrl;
- public function setFileId($fileId)
- {
- $this->fileId = $fileId;
- }
- public function setVideoUrl($videoUrl)
- {
- $this->videoUrl = $videoUrl;
- }
- }
- class PddTicketGoodsUploadRequest_GoodsPropertiesItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "parent_spec_id")
- */
- private $parentSpecId;
- /**
- * @JsonProperty(Long, "ref_pid")
- */
- private $refPid;
- /**
- * @JsonProperty(Long, "spec_id")
- */
- private $specId;
- /**
- * @JsonProperty(String, "value")
- */
- private $value;
- /**
- * @JsonProperty(String, "value_unit")
- */
- private $valueUnit;
- /**
- * @JsonProperty(Long, "vid")
- */
- private $vid;
- public function setParentSpecId($parentSpecId)
- {
- $this->parentSpecId = $parentSpecId;
- }
- public function setRefPid($refPid)
- {
- $this->refPid = $refPid;
- }
- public function setSpecId($specId)
- {
- $this->specId = $specId;
- }
- public function setValue($value)
- {
- $this->value = $value;
- }
- public function setValueUnit($valueUnit)
- {
- $this->valueUnit = $valueUnit;
- }
- public function setVid($vid)
- {
- $this->vid = $vid;
- }
- }
- class PddTicketGoodsUploadRequest_SkuListItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItemChildSkusItem>, "child_skus")
- */
- private $childSkus;
- /**
- * @JsonProperty(Long, "group_price")
- */
- private $groupPrice;
- /**
- * @JsonProperty(Integer, "is_onsale")
- */
- private $isOnsale;
- /**
- * @JsonProperty(String, "out_sku_sn")
- */
- private $outSkuSn;
- /**
- * @JsonProperty(Long, "quantity_delta")
- */
- private $quantityDelta;
- /**
- * @JsonProperty(String, "rule_id")
- */
- private $ruleId;
- /**
- * @JsonProperty(Long, "single_price")
- */
- private $singlePrice;
- /**
- * @JsonProperty(Long, "sku_id")
- */
- private $skuId;
- /**
- * @JsonProperty(List<Long>, "spec_id_list")
- */
- private $specIdList;
- /**
- * @JsonProperty(String, "thumb_url")
- */
- private $thumbUrl;
- public function setChildSkus($childSkus)
- {
- $this->childSkus = $childSkus;
- }
- public function setGroupPrice($groupPrice)
- {
- $this->groupPrice = $groupPrice;
- }
- public function setIsOnsale($isOnsale)
- {
- $this->isOnsale = $isOnsale;
- }
- public function setOutSkuSn($outSkuSn)
- {
- $this->outSkuSn = $outSkuSn;
- }
- public function setQuantityDelta($quantityDelta)
- {
- $this->quantityDelta = $quantityDelta;
- }
- public function setRuleId($ruleId)
- {
- $this->ruleId = $ruleId;
- }
- public function setSinglePrice($singlePrice)
- {
- $this->singlePrice = $singlePrice;
- }
- public function setSkuId($skuId)
- {
- $this->skuId = $skuId;
- }
- public function setSpecIdList($specIdList)
- {
- $this->specIdList = $specIdList;
- }
- public function setThumbUrl($thumbUrl)
- {
- $this->thumbUrl = $thumbUrl;
- }
- }
- class PddTicketGoodsUploadRequest_SkuListItemChildSkusItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "date")
- */
- private $date;
- /**
- * @JsonProperty(Long, "group_price")
- */
- private $groupPrice;
- /**
- * @JsonProperty(Long, "quantity_delta")
- */
- private $quantityDelta;
- /**
- * @JsonProperty(Long, "single_price")
- */
- private $singlePrice;
- public function setDate($date)
- {
- $this->date = $date;
- }
- public function setGroupPrice($groupPrice)
- {
- $this->groupPrice = $groupPrice;
- }
- public function setQuantityDelta($quantityDelta)
- {
- $this->quantityDelta = $quantityDelta;
- }
- public function setSinglePrice($singlePrice)
- {
- $this->singlePrice = $singlePrice;
- }
- }
|