Skip to content

Commit 5f270e6

Browse files
authored
Merge pull request #19 from route4me/add_sync_param
Added sync parameter to Schedules.addMasterRoute
2 parents df50dfe + 88000b6 commit 5f270e6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "route4me/route4me-php",
33
"description": "Access Route4Me's logistics-as-a-service API using our PHP SDK",
44
"minimum-stability": "stable",
5-
"version": "1.2.4",
5+
"version": "1.2.5",
66
"authors": [
77
{
88
"name": "Igor Route4Me",

src/Route4Me/V5/RecurringRoutes/Schedules.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -475,14 +475,15 @@ public function getScheduledRoutesCopies(string $route_id, string $schedule_uid,
475475
* int advance_schedule_interval_days,
476476
* string schedule - Schedule as JSON string e.g. '{"enabled":true,"mode":"daily",
477477
* "daily":{"every":2}, "from":"2019-06-05","timestamp":1558538737}',
478+
* bool sync - Type of result, synchronous or not
478479
* string timezone - Timezone as 'America/New_York'
479480
* @return bool
480481
* @throws Exception\ApiError
481482
*/
482483
public function createMasterRoute(array $params) : bool
483484
{
484485
$allBodyFields = ['route_id', 'route_name', 'member_id', 'schedule_uid', 'vehicle_id', 'name',
485-
'schedule_blacklist', 'advance_schedule_interval_days', 'schedule', 'timezone'];
486+
'schedule_blacklist', 'advance_schedule_interval_days', 'schedule', 'timezone', 'sync'];
486487

487488
return Route4Me::makeRequst([
488489
'url' => Endpoint::RECURRING_ROUTES_MASTER_ROUTES,

0 commit comments

Comments
 (0)