Skip to content

Commit

Permalink
Update Envelope.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vityachis committed Oct 30, 2019
1 parent 6803d56 commit f20e9c7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/api/Envelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ public function create($filename = null)
}

/**
* @return bool
* @return mixed
*/
public function isValidAddress()
public function getCleanse()
{
$cleanseAddress = $this->soapClient->CleanseAddress([
'Authenticator' => $this->getAuthToken(),
Expand All @@ -544,6 +544,16 @@ public function isValidAddress()
]);
$this->setAuthToken($cleanseAddress->Authenticator);

return $cleanseAddress;
}

/**
* @return bool
*/
public function isValidAddress()
{
$cleanseAddress = $this->getCleanse();

return $cleanseAddress->CityStateZipOK;
}
}

0 comments on commit f20e9c7

Please sign in to comment.