cmTitle = $cmTitle; $this->apiParams["cmTitle"] = $cmTitle; } public function getCmTitle() { return $this -> cmTitle; } public function setProductName($productName) { $this -> productName = $productName; $this->apiParams["productName"] = $productName; } public function getProductName() { return $this -> productName; } public function setProductCode($productCode) { $this -> productCode = $productCode; $this->apiParams["productCode"] = $productCode; } public function getProductCode() { return $this -> productCode; } public function setCategoryCode($categoryCode) { $this -> categoryCode = $categoryCode; $this->apiParams["categoryCode"] = $categoryCode; } public function getCategoryCode() { return $this -> categoryCode; } public function setPriceLimit($priceLimit) { $this -> priceLimit = $priceLimit; $this->apiParams["priceLimit"] = $priceLimit; } public function getPriceLimit() { return $this -> priceLimit; } public function setPriceUpper($priceUpper) { $this -> priceUpper = $priceUpper; $this->apiParams["priceUpper"] = $priceUpper; } public function getPriceUpper() { return $this -> priceUpper; } public function setSaleStatus($saleStatus) { $this -> saleStatus = $saleStatus; $this->apiParams["saleStatus"] = $saleStatus; } public function getSaleStatus() { return $this -> saleStatus; } public function getApiMethodName() { return 'suning.custom.itemsale.query'; } public function getApiParams() { return $this->apiParams; } public function check($pageNoMin = 1, $pageNoMax = 99999, $pageSizeMin = 10, $pageSizeMax = 50) { if(! RequestCheckUtil::checkEmpty($this -> priceLimit)){ RequestCheckUtil::checkFormatNumber($this -> priceLimit, 'priceLimit'); } if(! RequestCheckUtil::checkEmpty($this -> priceUpper)){ RequestCheckUtil::checkFormatNumber($this -> priceUpper, 'priceUpper'); } if(! RequestCheckUtil::checkEmpty($this -> saleStatus)){ RequestCheckUtil::checkValueInItemList($this -> saleStatus, array(0,1,2), 'saleStatus'); } } public function getBizName(){ return "itemSale"; } } ?>