@@ 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 |
@@ 101-114 (lines=14) @@ | ||
98 | return $response; |
|
99 | } |
|
100 | ||
101 | public static function addOrder2Route($params, $body) |
|
102 | { |
|
103 | $response = Route4Me::makeRequst(array( |
|
104 | 'url' => Endpoint::ROUTE_V4, |
|
105 | 'method' => 'PUT', |
|
106 | 'query' => array( |
|
107 | 'route_id' => isset($params->route_id) ? $params->route_id : null, |
|
108 | 'redirect' => isset($params->redirect) ? $params->redirect : null |
|
109 | ), |
|
110 | 'body' => (array)$body |
|
111 | )); |
|
112 | ||
113 | return $response; |
|
114 | } |
|
115 | ||
116 | public static function addOrder2Optimization($params, $body) |
|
117 | { |
|
@@ 150-162 (lines=13) @@ | ||
147 | return $response; |
|
148 | } |
|
149 | ||
150 | public static function getOrders($params) |
|
151 | { |
|
152 | $response = Route4Me::makeRequst(array( |
|
153 | 'url' => Endpoint::ORDER_V4, |
|
154 | 'method' => 'GET', |
|
155 | 'query' => array( |
|
156 | 'offset' => isset($params->offset) ? $params->offset : null, |
|
157 | 'limit' => isset($params->limit) ? $params->limit : null |
|
158 | ) |
|
159 | )); |
|
160 | ||
161 | return $response; |
|
162 | } |
|
163 | ||
164 | public function getRandomOrderId($offset, $limit) |
|
165 | { |