setUserParam($params, "batch_desc", $this->batchDesc); $this->setUserParam($params, "batch_start_time", $this->batchStartTime); $this->setUserParam($params, "batch_end_time", $this->batchEndTime); $this->setUserParam($params, "discount", $this->discount); $this->setUserParam($params, "min_order_amount", $this->minOrderAmount); $this->setUserParam($params, "init_quantity", $this->initQuantity); $this->setUserParam($params, "user_limit", $this->userLimit); } public function getVersion() { return "V1"; } public function getDataType() { return "JSON"; } public function getType() { return "pdd.promotion.home.coupon.create"; } public function setBatchDesc($batchDesc) { $this->batchDesc = $batchDesc; } public function setBatchStartTime($batchStartTime) { $this->batchStartTime = $batchStartTime; } public function setBatchEndTime($batchEndTime) { $this->batchEndTime = $batchEndTime; } public function setDiscount($discount) { $this->discount = $discount; } public function setMinOrderAmount($minOrderAmount) { $this->minOrderAmount = $minOrderAmount; } public function setInitQuantity($initQuantity) { $this->initQuantity = $initQuantity; } public function setUserLimit($userLimit) { $this->userLimit = $userLimit; } }