@@ 55-67 (lines=13) @@ | ||
52 | return $avoidanceZone; |
|
53 | } |
|
54 | ||
55 | public static function getAvoidanceZones($params) |
|
56 | { |
|
57 | $avoidanceZones = Route4Me::makeRequst(array( |
|
58 | 'url' => Endpoint::AVOIDANCE_ZONE, |
|
59 | 'method' => 'GET', |
|
60 | 'query' => array( |
|
61 | 'offset' => isset($params->offset) ? $params->offset : null, |
|
62 | 'limit' => isset($params->limit) ? $params->limit : null, |
|
63 | ) |
|
64 | )); |
|
65 | ||
66 | return $avoidanceZones; |
|
67 | } |
|
68 | ||
69 | public static function addAvoidanceZone($params) |
|
70 | { |
@@ 330-342 (lines=13) @@ | ||
327 | return $response; |
|
328 | } |
|
329 | ||
330 | public static function newMemberConfigKey($body) |
|
331 | { |
|
332 | $response = Route4Me::makeRequst(array( |
|
333 | 'url' => Endpoint::CONFIGURATION_SETTINGS, |
|
334 | 'method' => 'POST', |
|
335 | 'body' => array( |
|
336 | 'config_key' => isset($body->config_key) ? $body->config_key : null, |
|
337 | 'config_value' => isset($body->config_value) ? $body->config_value : null |
|
338 | ) |
|
339 | )); |
|
340 | ||
341 | return $response; |
|
342 | } |
|
343 | ||
344 | public static function removeMemberConfigKey($body) |
|
345 | { |
|
@@ 370-382 (lines=13) @@ | ||
367 | return $response; |
|
368 | } |
|
369 | ||
370 | public static function updateMemberConfigKey($body) |
|
371 | { |
|
372 | $response = Route4Me::makeRequst(array( |
|
373 | 'url' => Endpoint::CONFIGURATION_SETTINGS, |
|
374 | 'method' => 'PUT', |
|
375 | 'body' => array( |
|
376 | 'config_key' => isset($body->config_key) ? $body->config_key : null, |
|
377 | 'config_value' => isset($body->config_value) ? $body->config_value : null |
|
378 | ) |
|
379 | )); |
|
380 | ||
381 | return $response; |
|
382 | } |
|
383 | } |
|
384 |
@@ 118-131 (lines=14) @@ | ||
115 | return $response; |
|
116 | } |
|
117 | ||
118 | public static function addOrder2Route($params,$body) |
|
119 | { |
|
120 | $response = Route4Me::makeRequst(array( |
|
121 | 'url' => Endpoint::ROUTE_V4, |
|
122 | 'method' => 'PUT', |
|
123 | 'query' => array( |
|
124 | 'route_id' => isset($params->route_id) ? $params->route_id: null, |
|
125 | 'redirect' => isset($params->redirect) ? $params->redirect : null |
|
126 | ), |
|
127 | 'body' => (array)$body |
|
128 | )); |
|
129 | ||
130 | return $response; |
|
131 | } |
|
132 | ||
133 | public static function addOrder2Optimization($params,$body) |
|
134 | { |
|
@@ 168-180 (lines=13) @@ | ||
165 | return $response; |
|
166 | } |
|
167 | ||
168 | public static function getOrders($params) |
|
169 | { |
|
170 | $response = Route4Me::makeRequst(array( |
|
171 | 'url' => Endpoint::ORDER_V4, |
|
172 | 'method' => 'GET', |
|
173 | 'query' => array( |
|
174 | 'offset' => isset($params->offset) ? $params->offset: null, |
|
175 | 'limit' => isset($params->limit) ? $params->limit: null |
|
176 | ) |
|
177 | )); |
|
178 | ||
179 | return $response; |
|
180 | } |
|
181 | ||
182 | public function getRandomOrderId($offset,$limit) |
|
183 | { |