diff --git a/src/Clients.php b/src/Clients.php index 7eea4de..6368a96 100644 --- a/src/Clients.php +++ b/src/Clients.php @@ -139,7 +139,7 @@ public function send() { } catch (\Exception $e) { - throw NestioException::guzzleError($e->getResponse()->getBody()->getContents(), $this->getBody(), $this->sendData, $this->url . $this->primaryUri . $this->uri); + throw NestioException::error($e->getResponse()->getBody()->getContents()); } catch (\ErrorException $e) { @@ -465,4 +465,52 @@ public function sourceType($data) { } + public function unitId($data) { + + $this->sendData['application']['unit_id'] = $data; + + return $this; + + } + + public function leaseStartDate($date) { + + $this->sendData['application']['lease_start_date'] = $date; + + return $this; + + } + + public function leaseEndDate($date) { + + $this->sendData['application']['lease_end_date'] = $date; + + return $this; + + } + + public function applicationSubmittedDate($date) { + + $this->sendData['application']['application_submitted_date'] = $date; + + return $this; + + } + + public function applicationPrice($price) { + + $this->sendData['application']['application_price'] = $price; + + return $this; + + } + + public function closedDate($date) { + + $this->sendData['application']['closed_date'] = $date; + + return $this; + + } + } \ No newline at end of file diff --git a/src/Listings.php b/src/Listings.php index ee1da01..d28703e 100644 --- a/src/Listings.php +++ b/src/Listings.php @@ -672,4 +672,12 @@ public function displayAgent($data) { } + public function property($data) { + + $this->sendData['property'] = $data; + + return $this; + + } + } \ No newline at end of file diff --git a/src/NestioException.php b/src/NestioException.php index 78d279e..f58d6e5 100644 --- a/src/NestioException.php +++ b/src/NestioException.php @@ -65,4 +65,12 @@ public static function guzzleError($error, $request, $body, $url) { } + public static function error($error) { + + return new self( + $error . PHP_EOL + ); + + } + } \ No newline at end of file