@@ 110-123 (lines=14) @@ | ||
107 | return $address; |
|
108 | } |
|
109 | ||
110 | public function update() |
|
111 | { |
|
112 | $addressUpdate = Route4Me::makeRequst(array( |
|
113 | 'url' => Endpoint::ADDRESS_V4, |
|
114 | 'method' => 'PUT', |
|
115 | 'body' => $this->toArray(), |
|
116 | 'query' => array( |
|
117 | 'route_id' => $this->route_id, |
|
118 | 'route_destination_id' => $this->route_destination_id, |
|
119 | ), |
|
120 | )); |
|
121 | ||
122 | return Address::fromArray($addressUpdate); |
|
123 | } |
|
124 | ||
125 | public function markAddress($params, $body) |
|
126 | { |
|
@@ 174-186 (lines=13) @@ | ||
171 | return $address; |
|
172 | } |
|
173 | ||
174 | public function delete() |
|
175 | { |
|
176 | $address = Route4Me::makeRequst(array( |
|
177 | 'url' => Endpoint::ADDRESS_V4, |
|
178 | 'method' => 'DELETE', |
|
179 | 'query' => array( |
|
180 | 'route_id' => $this->route_id, |
|
181 | 'route_destination_id' => $this->route_destination_id, |
|
182 | ) |
|
183 | )); |
|
184 | ||
185 | return (bool)$address['deleted']; |
|
186 | } |
|
187 | ||
188 | public function moveDestinationToRoute($params) |
|
189 | { |