Skip to content

Commit

Permalink
Merge pull request #19 from route4me/add_sync_param
Browse files Browse the repository at this point in the history
Added sync parameter to Schedules.addMasterRoute
  • Loading branch information
h2rd authored Mar 13, 2023
2 parents df50dfe + 88000b6 commit 5f270e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "route4me/route4me-php",
"description": "Access Route4Me's logistics-as-a-service API using our PHP SDK",
"minimum-stability": "stable",
"version": "1.2.4",
"version": "1.2.5",
"authors": [
{
"name": "Igor Route4Me",
Expand Down
3 changes: 2 additions & 1 deletion src/Route4Me/V5/RecurringRoutes/Schedules.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,14 +475,15 @@ public function getScheduledRoutesCopies(string $route_id, string $schedule_uid,
* int advance_schedule_interval_days,
* string schedule - Schedule as JSON string e.g. '{"enabled":true,"mode":"daily",
* "daily":{"every":2}, "from":"2019-06-05","timestamp":1558538737}',
* bool sync - Type of result, synchronous or not
* string timezone - Timezone as 'America/New_York'
* @return bool
* @throws Exception\ApiError
*/
public function createMasterRoute(array $params) : bool
{
$allBodyFields = ['route_id', 'route_name', 'member_id', 'schedule_uid', 'vehicle_id', 'name',
'schedule_blacklist', 'advance_schedule_interval_days', 'schedule', 'timezone'];
'schedule_blacklist', 'advance_schedule_interval_days', 'schedule', 'timezone', 'sync'];

return Route4Me::makeRequst([
'url' => Endpoint::RECURRING_ROUTES_MASTER_ROUTES,
Expand Down

0 comments on commit 5f270e6

Please sign in to comment.