<?php /** * 苏宁开放平台接口 - * * @author suning * @date 2017-1-12 */ class ChilditemAddRequest extends SuningRequest{ /** * */ private $parentProductCode; /** * */ private $pars; /** * */ private $supplierImgAUrl; /** * */ private $itemCode; /** * */ private $barcode; /** * */ private $barpic; public function getParentProductCode() { return $this->parentProductCode; } public function setParentProductCode($parentProductCode) { $this->parentProductCode = $parentProductCode; $this->apiParams["parentProductCode"] = $parentProductCode; } public function getPars() { return $this->pars; } public function setPars($pars) { $this->pars = $pars; $arr = array(); foreach ($pars as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["pars"] = $arr; } public function getSupplierImgAUrl() { return $this->supplierImgAUrl; } public function setSupplierImgAUrl($supplierImgAUrl) { $this->supplierImgAUrl = $supplierImgAUrl; $this->apiParams["supplierImgAUrl"] = $supplierImgAUrl; } public function getItemCode() { return $this->itemCode; } public function setItemCode($itemCode) { $this->itemCode = $itemCode; $this->apiParams["itemCode"] = $itemCode; } public function getBarcode() { return $this->barcode; } public function setBarcode($barcode) { $this->barcode = $barcode; $this->apiParams["barcode"] = $barcode; } public function getBarpic() { return $this->barpic; } public function setBarpic($barpic) { $this->barpic = $barpic; $this->apiParams["barpic"] = $barpic; } public function getApiMethodName(){ return 'suning.selfmarket.childitem.add'; } public function getApiParams(){ return $this->apiParams; } public function check(){ //非空校验 RequestCheckUtil::checkNotNull($this->parentProductCode, 'parentProductCode'); } public function getBizName(){ return "addChilditem"; } } class Pars { private $apiParams = array(); private $parCode; private $parValue; public function getParCode() { return $this->parCode; } public function setParCode($parCode) { $this->parCode = $parCode; $this->apiParams["parCode"] = $parCode; } public function getParValue() { return $this->parValue; } public function setParValue($parValue) { $this->parValue = $parValue; $this->apiParams["parValue"] = $parValue; } public function getApiParams(){ return $this->apiParams; } } ?>