activityName; } public function setActivityName($activityName) { $this->activityName = $activityName; $this->apiParams["activityName"] = $activityName; } public function getStartTime() { return $this->startTime; } public function setStartTime($startTime) { $this->startTime = $startTime; $this->apiParams["startTime"] = $startTime; } public function getEndTime() { return $this->endTime; } public function setEndTime($endTime) { $this->endTime = $endTime; $this->apiParams["endTime"] = $endTime; } public function getActivityPattern() { return $this->activityPattern; } public function setActivityPattern($activityPattern) { $this->activityPattern = $activityPattern; $this->apiParams["activityPattern"] = $activityPattern; } public function getShowRegion() { return $this->showRegion; } public function setShowRegion($showRegion) { $this->showRegion = $showRegion; $this->apiParams["showRegion"] = $showRegion; } public function getActivityTimesLimit() { return $this->activityTimesLimit; } public function setActivityTimesLimit($activityTimesLimit) { $this->activityTimesLimit = $activityTimesLimit; $this->apiParams["activityTimesLimit"] = $activityTimesLimit; } public function getAssignedRole() { return $this->assignedRole; } public function setAssignedRole($assignedRole) { $this->assignedRole = $assignedRole; $this->apiParams["assignedRole"] = $assignedRole; } public function getRewardAmount() { return $this->rewardAmount; } public function setRewardAmount($rewardAmount) { $this->rewardAmount = $rewardAmount; $this->apiParams["rewardAmount"] = $rewardAmount; } public function getCouponType() { return $this->couponType; } public function setCouponType($couponType) { $this->couponType = $couponType; $this->apiParams["couponType"] = $couponType; } public function getBaseAmount() { return $this->baseAmount; } public function setBaseAmount($baseAmount) { $this->baseAmount = $baseAmount; $this->apiParams["baseAmount"] = $baseAmount; } public function getPeopleActivityTimesLimit() { return $this->peopleActivityTimesLimit; } public function setPeopleActivityTimesLimit($peopleActivityTimesLimit) { $this->peopleActivityTimesLimit = $peopleActivityTimesLimit; $this->apiParams["peopleActivityTimesLimit"] = $peopleActivityTimesLimit; } public function getEffectStartTime() { return $this->effectStartTime; } public function setEffectStartTime($effectStartTime) { $this->effectStartTime = $effectStartTime; $this->apiParams["effectStartTime"] = $effectStartTime; } public function getEffectEndTime() { return $this->effectEndTime; } public function setEffectEndTime($effectEndTime) { $this->effectEndTime = $effectEndTime; $this->apiParams["effectEndTime"] = $effectEndTime; } public function getChannelInfo() { return $this->channelInfo; } public function setChannelInfo($channelInfo) { $this->channelInfo = $channelInfo; $this->apiParams["channelInfo"] = $channelInfo; } public function getProductRange() { return $this->productRange; } public function setProductRange($productRange) { $this->productRange = $productRange; $this->apiParams["productRange"] = $productRange; } public function getProductList() { return $this->productList; } public function setProductList($productList) { $this->productList = $productList; $arr = array(); foreach ($productList as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["productList"] = $arr; } public function getApiMethodName(){ return 'suning.custom.shopcoupon.add'; } public function getApiParams(){ return $this->apiParams; } public function check(){ //非空校验 RequestCheckUtil::checkNotNull($this->activityName, 'activityName'); RequestCheckUtil::checkNotNull($this->startTime, 'startTime'); RequestCheckUtil::checkNotNull($this->endTime, 'endTime'); RequestCheckUtil::checkNotNull($this->activityPattern, 'activityPattern'); RequestCheckUtil::checkNotNull($this->showRegion, 'showRegion'); RequestCheckUtil::checkNotNull($this->activityTimesLimit, 'activityTimesLimit'); RequestCheckUtil::checkNotNull($this->assignedRole, 'assignedRole'); RequestCheckUtil::checkNotNull($this->rewardAmount, 'rewardAmount'); RequestCheckUtil::checkNotNull($this->couponType, 'couponType'); RequestCheckUtil::checkNotNull($this->baseAmount, 'baseAmount'); RequestCheckUtil::checkNotNull($this->peopleActivityTimesLimit, 'peopleActivityTimesLimit'); RequestCheckUtil::checkNotNull($this->effectStartTime, 'effectStartTime'); RequestCheckUtil::checkNotNull($this->effectEndTime, 'effectEndTime'); RequestCheckUtil::checkNotNull($this->channelInfo, 'channelInfo'); RequestCheckUtil::checkNotNull($this->productRange, 'productRange'); RequestCheckUtil::checkNotNull($this->productList, 'productList'); } public function getBizName(){ return "addShopCoupon"; } } class ProductList { private $apiParams = array(); private $productCode; public function getProductCode() { return $this->productCode; } public function setProductCode($productCode) { $this->productCode = $productCode; $this->apiParams["productCode"] = $productCode; } public function getApiParams(){ return $this->apiParams; } } ?>