Skip to content

Commit

Permalink
Merge pull request #2 from PrimitiveSocial/enhancement/new-put-data-a…
Browse files Browse the repository at this point in the history
…ttributes

#4445 - Added new attribute to update funnel record
  • Loading branch information
matthewtrask authored Jul 29, 2020
2 parents 09e49a7 + 3d6d20d commit 0297d17
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
50 changes: 49 additions & 1 deletion src/Clients.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down Expand Up @@ -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;

}

}
8 changes: 8 additions & 0 deletions src/Listings.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,4 +672,12 @@ public function displayAgent($data) {

}

public function property($data) {

$this->sendData['property'] = $data;

return $this;

}

}
8 changes: 8 additions & 0 deletions src/NestioException.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,12 @@ public static function guzzleError($error, $request, $body, $url) {

}

public static function error($error) {

return new self(
$error . PHP_EOL
);

}

}

0 comments on commit 0297d17

Please sign in to comment.