| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddGoodsLogisticsSerTemplateUpdateRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "template_id")
- */
- private $templateId;
- /**
- * @JsonProperty(Integer, "template_type")
- */
- private $templateType;
- /**
- * @JsonProperty(String, "template_name")
- */
- private $templateName;
- /**
- * @JsonProperty(Integer, "price_unit")
- */
- private $priceUnit;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_ServiceAreaListItem>, "service_area_list")
- */
- private $serviceAreaList;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem>, "cat_list")
- */
- private $catList;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "template_id", $this->templateId);
- $this->setUserParam($params, "template_type", $this->templateType);
- $this->setUserParam($params, "template_name", $this->templateName);
- $this->setUserParam($params, "price_unit", $this->priceUnit);
- $this->setUserParam($params, "service_area_list", $this->serviceAreaList);
- $this->setUserParam($params, "cat_list", $this->catList);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.goods.logistics.ser.template.update";
- }
- public function setTemplateId($templateId)
- {
- $this->templateId = $templateId;
- }
- public function setTemplateType($templateType)
- {
- $this->templateType = $templateType;
- }
- public function setTemplateName($templateName)
- {
- $this->templateName = $templateName;
- }
- public function setPriceUnit($priceUnit)
- {
- $this->priceUnit = $priceUnit;
- }
- public function setServiceAreaList($serviceAreaList)
- {
- $this->serviceAreaList = $serviceAreaList;
- }
- public function setCatList($catList)
- {
- $this->catList = $catList;
- }
- }
- class PddGoodsLogisticsSerTemplateUpdateRequest_ServiceAreaListItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "value")
- */
- private $value;
- /**
- * @JsonProperty(String, "district_id")
- */
- private $districtId;
- /**
- * @JsonProperty(String, "city_id")
- */
- private $cityId;
- /**
- * @JsonProperty(String, "province_id")
- */
- private $provinceId;
- public function setValue($value)
- {
- $this->value = $value;
- }
- public function setDistrictId($districtId)
- {
- $this->districtId = $districtId;
- }
- public function setCityId($cityId)
- {
- $this->cityId = $cityId;
- }
- public function setProvinceId($provinceId)
- {
- $this->provinceId = $provinceId;
- }
- }
- class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem>, "list")
- */
- private $list;
- /**
- * @JsonProperty(Long, "cat_id4")
- */
- private $catId4;
- /**
- * @JsonProperty(Long, "cat_id3")
- */
- private $catId3;
- public function setList($list)
- {
- $this->list = $list;
- }
- public function setCatId4($catId4)
- {
- $this->catId4 = $catId4;
- }
- public function setCatId3($catId3)
- {
- $this->catId3 = $catId3;
- }
- }
- class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem>, "content")
- */
- private $content;
- /**
- * @JsonProperty(Long, "value")
- */
- private $value;
- /**
- * @JsonProperty(Integer, "limit_type")
- */
- private $limitType;
- public function setContent($content)
- {
- $this->content = $content;
- }
- public function setValue($value)
- {
- $this->value = $value;
- }
- public function setLimitType($limitType)
- {
- $this->limitType = $limitType;
- }
- }
- class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "price")
- */
- private $price;
- /**
- * @JsonProperty(Long, "max_pro")
- */
- private $maxPro;
- /**
- * @JsonProperty(Long, "min_pro")
- */
- private $minPro;
- public function setPrice($price)
- {
- $this->price = $price;
- }
- public function setMaxPro($maxPro)
- {
- $this->maxPro = $maxPro;
- }
- public function setMinPro($minPro)
- {
- $this->minPro = $minPro;
- }
- }
|