| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?php
- /**
- * TOP API: taobao.product.update request
- *
- * @author auto create
- * @since 1.0, 2022.09.19
- */
- class ProductUpdateRequest
- {
- /**
- * 非关键属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid
- **/
- private $binds;
-
- /**
- * 产品描述.最大不超过25000个字符
- **/
- private $desc;
-
- /**
- * 产品主图.最大500K,目前仅支持GIF,JPG
- **/
- private $image;
-
- /**
- * 是否是主图
- **/
- private $major;
-
- /**
- * 产品名称.最大不超过30个字符
- **/
- private $name;
-
- /**
- * 自定义非关键属性
- **/
- private $nativeUnkeyprops;
-
- /**
- * 外部产品ID
- **/
- private $outerId;
-
- /**
- * 产品市场价.精确到2位小数;单位为元.如:200.07
- **/
- private $price;
-
- /**
- * 产品ID
- **/
- private $productId;
-
- /**
- * 销售属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid
- **/
- private $saleProps;
-
- private $apiParas = array();
-
- public function setBinds($binds)
- {
- $this->binds = $binds;
- $this->apiParas["binds"] = $binds;
- }
- public function getBinds()
- {
- return $this->binds;
- }
- public function setDesc($desc)
- {
- $this->desc = $desc;
- $this->apiParas["desc"] = $desc;
- }
- public function getDesc()
- {
- return $this->desc;
- }
- public function setImage($image)
- {
- $this->image = $image;
- $this->apiParas["image"] = $image;
- }
- public function getImage()
- {
- return $this->image;
- }
- public function setMajor($major)
- {
- $this->major = $major;
- $this->apiParas["major"] = $major;
- }
- public function getMajor()
- {
- return $this->major;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setNativeUnkeyprops($nativeUnkeyprops)
- {
- $this->nativeUnkeyprops = $nativeUnkeyprops;
- $this->apiParas["native_unkeyprops"] = $nativeUnkeyprops;
- }
- public function getNativeUnkeyprops()
- {
- return $this->nativeUnkeyprops;
- }
- public function setOuterId($outerId)
- {
- $this->outerId = $outerId;
- $this->apiParas["outer_id"] = $outerId;
- }
- public function getOuterId()
- {
- return $this->outerId;
- }
- public function setPrice($price)
- {
- $this->price = $price;
- $this->apiParas["price"] = $price;
- }
- public function getPrice()
- {
- return $this->price;
- }
- public function setProductId($productId)
- {
- $this->productId = $productId;
- $this->apiParas["product_id"] = $productId;
- }
- public function getProductId()
- {
- return $this->productId;
- }
- public function setSaleProps($saleProps)
- {
- $this->saleProps = $saleProps;
- $this->apiParas["sale_props"] = $saleProps;
- }
- public function getSaleProps()
- {
- return $this->saleProps;
- }
- public function getApiMethodName()
- {
- return "taobao.product.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->productId,"productId");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|