| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddStockWareUpdateRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "id")
- */
- private $id;
- /**
- * @JsonProperty(Integer, "ware_type")
- */
- private $wareType;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddStockWareUpdateRequest_WareInfosItem>, "ware_infos")
- */
- private $wareInfos;
- /**
- * @JsonProperty(String, "ware_sn")
- */
- private $wareSn;
- /**
- * @JsonProperty(String, "ware_name")
- */
- private $wareName;
- /**
- * @JsonProperty(String, "note")
- */
- private $note;
- /**
- * @JsonProperty(Integer, "service_quality")
- */
- private $serviceQuality;
- /**
- * @JsonProperty(Integer, "volume")
- */
- private $volume;
- /**
- * @JsonProperty(Integer, "length")
- */
- private $length;
- /**
- * @JsonProperty(Integer, "width")
- */
- private $width;
- /**
- * @JsonProperty(Integer, "height")
- */
- private $height;
- /**
- * @JsonProperty(Integer, "weight")
- */
- private $weight;
- /**
- * @JsonProperty(Integer, "gross_weight")
- */
- private $grossWeight;
- /**
- * @JsonProperty(Integer, "net_weight")
- */
- private $netWeight;
- /**
- * @JsonProperty(Integer, "tare_weight")
- */
- private $tareWeight;
- /**
- * @JsonProperty(Integer, "price")
- */
- private $price;
- /**
- * @JsonProperty(String, "color")
- */
- private $color;
- /**
- * @JsonProperty(String, "packing")
- */
- private $packing;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "id", $this->id);
- $this->setUserParam($params, "ware_type", $this->wareType);
- $this->setUserParam($params, "ware_infos", $this->wareInfos);
- $this->setUserParam($params, "ware_sn", $this->wareSn);
- $this->setUserParam($params, "ware_name", $this->wareName);
- $this->setUserParam($params, "note", $this->note);
- $this->setUserParam($params, "service_quality", $this->serviceQuality);
- $this->setUserParam($params, "volume", $this->volume);
- $this->setUserParam($params, "length", $this->length);
- $this->setUserParam($params, "width", $this->width);
- $this->setUserParam($params, "height", $this->height);
- $this->setUserParam($params, "weight", $this->weight);
- $this->setUserParam($params, "gross_weight", $this->grossWeight);
- $this->setUserParam($params, "net_weight", $this->netWeight);
- $this->setUserParam($params, "tare_weight", $this->tareWeight);
- $this->setUserParam($params, "price", $this->price);
- $this->setUserParam($params, "color", $this->color);
- $this->setUserParam($params, "packing", $this->packing);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.stock.ware.update";
- }
- public function setId($id)
- {
- $this->id = $id;
- }
- public function setWareType($wareType)
- {
- $this->wareType = $wareType;
- }
- public function setWareInfos($wareInfos)
- {
- $this->wareInfos = $wareInfos;
- }
- public function setWareSn($wareSn)
- {
- $this->wareSn = $wareSn;
- }
- public function setWareName($wareName)
- {
- $this->wareName = $wareName;
- }
- public function setNote($note)
- {
- $this->note = $note;
- }
- public function setServiceQuality($serviceQuality)
- {
- $this->serviceQuality = $serviceQuality;
- }
- public function setVolume($volume)
- {
- $this->volume = $volume;
- }
- public function setLength($length)
- {
- $this->length = $length;
- }
- public function setWidth($width)
- {
- $this->width = $width;
- }
- public function setHeight($height)
- {
- $this->height = $height;
- }
- public function setWeight($weight)
- {
- $this->weight = $weight;
- }
- public function setGrossWeight($grossWeight)
- {
- $this->grossWeight = $grossWeight;
- }
- public function setNetWeight($netWeight)
- {
- $this->netWeight = $netWeight;
- }
- public function setTareWeight($tareWeight)
- {
- $this->tareWeight = $tareWeight;
- }
- public function setPrice($price)
- {
- $this->price = $price;
- }
- public function setColor($color)
- {
- $this->color = $color;
- }
- public function setPacking($packing)
- {
- $this->packing = $packing;
- }
- }
- class PddStockWareUpdateRequest_WareInfosItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "ware_id")
- */
- private $wareId;
- /**
- * @JsonProperty(Integer, "ware_quantity")
- */
- private $wareQuantity;
- public function setWareId($wareId)
- {
- $this->wareId = $wareId;
- }
- public function setWareQuantity($wareQuantity)
- {
- $this->wareQuantity = $wareQuantity;
- }
- }
|