| @@ 123-136 (lines=14) @@ | ||
| 120 | return $address; |
|
| 121 | } |
|
| 122 | ||
| 123 | public function update() |
|
| 124 | { |
|
| 125 | $addressUpdate = Route4Me::makeRequst(array( |
|
| 126 | 'url' => Endpoint::ADDRESS_V4, |
|
| 127 | 'method' => 'PUT', |
|
| 128 | 'body' => $this->toArray(), |
|
| 129 | 'query' => array( |
|
| 130 | 'route_id' => $this->route_id, |
|
| 131 | 'route_destination_id' => $this->route_destination_id, |
|
| 132 | ), |
|
| 133 | )); |
|
| 134 | ||
| 135 | return Address::fromArray($addressUpdate); |
|
| 136 | } |
|
| 137 | ||
| 138 | public function markAddress($params, $body) |
|
| 139 | { |
|
| @@ 187-199 (lines=13) @@ | ||
| 184 | return $address; |
|
| 185 | } |
|
| 186 | ||
| 187 | public function delete() |
|
| 188 | { |
|
| 189 | $address = Route4Me::makeRequst(array( |
|
| 190 | 'url' => Endpoint::ADDRESS_V4, |
|
| 191 | 'method' => 'DELETE', |
|
| 192 | 'query' => array( |
|
| 193 | 'route_id' => $this->route_id, |
|
| 194 | 'route_destination_id' => $this->route_destination_id, |
|
| 195 | ) |
|
| 196 | )); |
|
| 197 | ||
| 198 | return (bool)$address['deleted']; |
|
| 199 | } |
|
| 200 | ||
| 201 | public function moveDestinationToRoute($params) |
|
| 202 | { |
|