setUserParam($params, "goods_id", $this->goodsId); $this->setUserParam($params, "rate", $this->rate); $this->setUserParam($params, "coupon_id", $this->couponId); $this->setUserParam($params, "coupon_start_time", $this->couponStartTime); $this->setUserParam($params, "coupon_end_time", $this->couponEndTime); $this->setUserParam($params, "discount", $this->discount); $this->setUserParam($params, "init_quantity", $this->initQuantity); $this->setUserParam($params, "remain_quantity", $this->remainQuantity); } public function getVersion() { return "V1"; } public function getDataType() { return "JSON"; } public function getType() { return "pdd.goods.cps.unit.change"; } public function setGoodsId($goodsId) { $this->goodsId = $goodsId; } public function setRate($rate) { $this->rate = $rate; } public function setCouponId($couponId) { $this->couponId = $couponId; } public function setCouponStartTime($couponStartTime) { $this->couponStartTime = $couponStartTime; } public function setCouponEndTime($couponEndTime) { $this->couponEndTime = $couponEndTime; } public function setDiscount($discount) { $this->discount = $discount; } public function setInitQuantity($initQuantity) { $this->initQuantity = $initQuantity; } public function setRemainQuantity($remainQuantity) { $this->remainQuantity = $remainQuantity; } }