@@ 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) |
|
126 | { |
|
@@ 166-178 (lines=13) @@ | ||
163 | return $address; |
|
164 | } |
|
165 | ||
166 | public function deleteAddress() |
|
167 | { |
|
168 | $address = Route4Me::makeRequst(array( |
|
169 | 'url' => Endpoint::ADDRESS_V4, |
|
170 | 'method' => 'DELETE', |
|
171 | 'query' => array( |
|
172 | 'route_id' => $this->route_id, |
|
173 | 'route_destination_id' => $this->route_destination_id, |
|
174 | ) |
|
175 | )); |
|
176 | ||
177 | return (bool)$address['deleted']; |
|
178 | } |
|
179 | ||
180 | public function moveDestinationToRoute($params) |
|
181 | { |