invCode = $invCode; $this->apiParams["invCode"] = $invCode; } public function getInvCode() { return $this->invCode; } public function setInvName($invName) { $this->invName = $invName; $this->apiParams["invName"] = $invName; } public function getInvName() { return $this->invName; } public function setInvNameBack($invNameBack) { $this->invNameBack = $invNameBack; $this->apiParams["invNameBack"] = $invNameBack; } public function getInvNameBack() { return $this->invNameBack; } public function setInvProvince($invProvince) { $this->invProvince = $invProvince; $this->apiParams["invProvince"] = $invProvince; } public function getInvProvince() { return $this->invProvince; } public function setInvCity($invCity) { $this->invCity = $invCity; $this->apiParams["invCity"] = $invCity; } public function getInvCity() { return $this->invCity; } public function setInvRegion($invRegion) { $this->invRegion = $invRegion; $this->apiParams["invRegion"] = $invRegion; } public function getInvRegion() { return $this->invRegion; } public function setStreetAddress($streetAddress) { $this->streetAddress = $streetAddress; $this->apiParams["streetAddress"] = $streetAddress; } public function getStreetAddress() { return $this->streetAddress; } public function setZipCode($zipCode) { $this->zipCode = $zipCode; $this->apiParams["zipCode"] = $zipCode; } public function getZipCode() { return $this->zipCode; } public function setInvContact($invContact) { $this->invContact = $invContact; $this->apiParams["invContact"] = $invContact; } public function getInvContact() { return $this->invContact; } public function setPhoneNum($phoneNum) { $this->phoneNum = $phoneNum; $this->apiParams["phoneNum"] = $phoneNum; } public function getPhoneNum() { return $this->phoneNum; } public function getApiMethodName() { return 'suning.custom.parallelinvaddress.add'; } public function getApiParams() { return $this->apiParams; } public function check() { RequestCheckUtil::checkNotNull($this->invCode, 'invCode'); RequestCheckUtil::checkNotNull($this->invName, 'invName'); RequestCheckUtil::checkNotNull($this->invNameBack, 'invNameBack'); RequestCheckUtil::checkNotNull($this->invProvince, 'invProvince'); RequestCheckUtil::checkNotNull($this->invCity, 'invCity'); RequestCheckUtil::checkNotNull($this->invRegion, 'invRegion'); RequestCheckUtil::checkNotNull($this->streetAddress, 'streetAddress'); RequestCheckUtil::checkMaxLength($this->streetAddress, 100, 'streetAddress'); RequestCheckUtil::checkNotNull($this->zipCode, 'zipCode'); RequestCheckUtil::checkZipValue($this->zipCode, 'zipCode'); } public function getBizName(){ return "parallelInvaddress"; } } ?>