@@ -15,10 +15,10 @@ |
||
| 15 | 15 | Route4Me::setApiKey(Constants::API_KEY); |
| 16 | 16 | |
| 17 | 17 | try { |
| 18 | - $schedules = new Schedules(); |
|
| 18 | + $schedules = new Schedules(); |
|
| 19 | 19 | |
| 20 | - $schedule = $schedules->getRouteSchedule('66C2AC4A323053FF0A40FEB6918ACF5E'); |
|
| 21 | - print_r($schedule); |
|
| 20 | + $schedule = $schedules->getRouteSchedule('66C2AC4A323053FF0A40FEB6918ACF5E'); |
|
| 21 | + print_r($schedule); |
|
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage() . PHP_EOL; |
|
| 24 | 24 | } |
@@ -20,5 +20,5 @@ |
||
| 20 | 20 | $schedule = $schedules->getRouteSchedule('66C2AC4A323053FF0A40FEB6918ACF5E'); |
| 21 | 21 | print_r($schedule); |
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage().PHP_EOL; |
|
| 24 | 24 | } |
@@ -15,10 +15,10 @@ |
||
| 15 | 15 | Route4Me::setApiKey(Constants::API_KEY); |
| 16 | 16 | |
| 17 | 17 | try { |
| 18 | - $schedules = new Schedules(); |
|
| 18 | + $schedules = new Schedules(); |
|
| 19 | 19 | |
| 20 | - $schedule = $schedules->deleteSchedule('1515E9A65DD2DEF79CAD7A7E68D91515'); |
|
| 21 | - print_r($schedule); |
|
| 20 | + $schedule = $schedules->deleteSchedule('1515E9A65DD2DEF79CAD7A7E68D91515'); |
|
| 21 | + print_r($schedule); |
|
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage() . PHP_EOL; |
|
| 24 | 24 | } |
@@ -20,5 +20,5 @@ |
||
| 20 | 20 | $schedule = $schedules->deleteSchedule('1515E9A65DD2DEF79CAD7A7E68D91515'); |
| 21 | 21 | print_r($schedule); |
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage().PHP_EOL; |
|
| 24 | 24 | } |
@@ -15,22 +15,22 @@ |
||
| 15 | 15 | Route4Me::setApiKey(Constants::API_KEY); |
| 16 | 16 | |
| 17 | 17 | try { |
| 18 | - $schedules = new Schedules; |
|
| 19 | - |
|
| 20 | - $params = [ |
|
| 21 | - 'route_id' => '66C2AC4A323053FF0A40FEB6918ACF5E', |
|
| 22 | - 'route_name' => 'The Bestest route', |
|
| 23 | - 'member_id' => 1053088, |
|
| 24 | - 'vehicle_id' => '061C7E7DCE3538AD2D0B047954F1F499', |
|
| 25 | - 'name' => 'The bestest schedule', |
|
| 26 | - 'schedule_blacklist' => [], |
|
| 27 | - 'schedule' => null, |
|
| 28 | - 'timezone' => 'UTC' |
|
| 29 | - ]; |
|
| 30 | - |
|
| 31 | - $res = $schedules->createMasterRoute($params); |
|
| 32 | - |
|
| 33 | - echo var_export($res) . PHP_EOL; |
|
| 18 | + $schedules = new Schedules; |
|
| 19 | + |
|
| 20 | + $params = [ |
|
| 21 | + 'route_id' => '66C2AC4A323053FF0A40FEB6918ACF5E', |
|
| 22 | + 'route_name' => 'The Bestest route', |
|
| 23 | + 'member_id' => 1053088, |
|
| 24 | + 'vehicle_id' => '061C7E7DCE3538AD2D0B047954F1F499', |
|
| 25 | + 'name' => 'The bestest schedule', |
|
| 26 | + 'schedule_blacklist' => [], |
|
| 27 | + 'schedule' => null, |
|
| 28 | + 'timezone' => 'UTC' |
|
| 29 | + ]; |
|
| 30 | + |
|
| 31 | + $res = $schedules->createMasterRoute($params); |
|
| 32 | + |
|
| 33 | + echo var_export($res) . PHP_EOL; |
|
| 34 | 34 | } catch (\Exception $e) { |
| 35 | - echo $e->getMessage() . PHP_EOL; |
|
| 35 | + echo $e->getMessage() . PHP_EOL; |
|
| 36 | 36 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | $res = $schedules->createMasterRoute($params); |
| 32 | 32 | |
| 33 | - echo var_export($res) . PHP_EOL; |
|
| 33 | + echo var_export($res).PHP_EOL; |
|
| 34 | 34 | } catch (\Exception $e) { |
| 35 | - echo $e->getMessage() . PHP_EOL; |
|
| 35 | + echo $e->getMessage().PHP_EOL; |
|
| 36 | 36 | } |
@@ -15,18 +15,18 @@ |
||
| 15 | 15 | Route4Me::setApiKey(Constants::API_KEY); |
| 16 | 16 | |
| 17 | 17 | try { |
| 18 | - $schedules = new Schedules(); |
|
| 18 | + $schedules = new Schedules(); |
|
| 19 | 19 | |
| 20 | - $route_id = '66C2AC4A323053FF0A40FEB6918ACF5E'; |
|
| 21 | - $params = [ |
|
| 22 | - 'schedule_uid' => '1515E9A65DD2DEF79CAD7A7E68D91515', |
|
| 23 | - 'member_id' => '1053088', |
|
| 24 | - 'vehicle_id' => '061C7E7DCE3538AD2D0B047954F1F499' |
|
| 25 | - ]; |
|
| 20 | + $route_id = '66C2AC4A323053FF0A40FEB6918ACF5E'; |
|
| 21 | + $params = [ |
|
| 22 | + 'schedule_uid' => '1515E9A65DD2DEF79CAD7A7E68D91515', |
|
| 23 | + 'member_id' => '1053088', |
|
| 24 | + 'vehicle_id' => '061C7E7DCE3538AD2D0B047954F1F499' |
|
| 25 | + ]; |
|
| 26 | 26 | |
| 27 | - $schedule = $schedules->updateRouteSchedule($route_id, $params); |
|
| 27 | + $schedule = $schedules->updateRouteSchedule($route_id, $params); |
|
| 28 | 28 | |
| 29 | - print_r($schedule); |
|
| 29 | + print_r($schedule); |
|
| 30 | 30 | } catch (\Exception $e) { |
| 31 | - echo $e->getMessage() . PHP_EOL; |
|
| 31 | + echo $e->getMessage() . PHP_EOL; |
|
| 32 | 32 | } |
@@ -28,5 +28,5 @@ |
||
| 28 | 28 | |
| 29 | 29 | print_r($schedule); |
| 30 | 30 | } catch (\Exception $e) { |
| 31 | - echo $e->getMessage() . PHP_EOL; |
|
| 31 | + echo $e->getMessage().PHP_EOL; |
|
| 32 | 32 | } |
@@ -15,19 +15,19 @@ |
||
| 15 | 15 | Route4Me::setApiKey(Constants::API_KEY); |
| 16 | 16 | |
| 17 | 17 | try { |
| 18 | - $schedules = new Schedules; |
|
| 18 | + $schedules = new Schedules; |
|
| 19 | 19 | |
| 20 | - $schedule_uid = '1515E9A65DD2DEF79CAD7A7E68D91515'; |
|
| 21 | - $params = [ |
|
| 22 | - 'name' => 'The bestest schedule 2', |
|
| 23 | - 'schedule_blacklist' => ['2023-02-01', '2023-03-01'], |
|
| 24 | - 'schedule' => '{"enabled":true,"mode":"daily"}', |
|
| 25 | - 'timezone' => 'America/New_York' |
|
| 26 | - ]; |
|
| 20 | + $schedule_uid = '1515E9A65DD2DEF79CAD7A7E68D91515'; |
|
| 21 | + $params = [ |
|
| 22 | + 'name' => 'The bestest schedule 2', |
|
| 23 | + 'schedule_blacklist' => ['2023-02-01', '2023-03-01'], |
|
| 24 | + 'schedule' => '{"enabled":true,"mode":"daily"}', |
|
| 25 | + 'timezone' => 'America/New_York' |
|
| 26 | + ]; |
|
| 27 | 27 | |
| 28 | - $schedule = $schedules->updateSchedule($schedule_uid, $params); |
|
| 28 | + $schedule = $schedules->updateSchedule($schedule_uid, $params); |
|
| 29 | 29 | |
| 30 | - print_r($schedule); |
|
| 30 | + print_r($schedule); |
|
| 31 | 31 | } catch (\Exception $e) { |
| 32 | - echo $e->getMessage() . PHP_EOL; |
|
| 32 | + echo $e->getMessage() . PHP_EOL; |
|
| 33 | 33 | } |
@@ -29,5 +29,5 @@ |
||
| 29 | 29 | |
| 30 | 30 | print_r($schedule); |
| 31 | 31 | } catch (\Exception $e) { |
| 32 | - echo $e->getMessage() . PHP_EOL; |
|
| 32 | + echo $e->getMessage().PHP_EOL; |
|
| 33 | 33 | } |
@@ -15,10 +15,10 @@ |
||
| 15 | 15 | Route4Me::setApiKey(Constants::API_KEY); |
| 16 | 16 | |
| 17 | 17 | try { |
| 18 | - $schedules = new Schedules(); |
|
| 18 | + $schedules = new Schedules(); |
|
| 19 | 19 | |
| 20 | - $res = $schedules->isScheduledRouteCopy('66C2AC4A323053FF0A40FEB6918ACF5E'); |
|
| 21 | - echo var_export($res) . PHP_EOL; |
|
| 20 | + $res = $schedules->isScheduledRouteCopy('66C2AC4A323053FF0A40FEB6918ACF5E'); |
|
| 21 | + echo var_export($res) . PHP_EOL; |
|
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage() . PHP_EOL; |
|
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $schedules = new Schedules(); |
| 19 | 19 | |
| 20 | 20 | $res = $schedules->isScheduledRouteCopy('66C2AC4A323053FF0A40FEB6918ACF5E'); |
| 21 | - echo var_export($res) . PHP_EOL; |
|
| 21 | + echo var_export($res).PHP_EOL; |
|
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage().PHP_EOL; |
|
| 24 | 24 | } |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | Route4Me::setApiKey(Constants::API_KEY); |
| 16 | 16 | |
| 17 | 17 | try { |
| 18 | - $schedules = new Schedules(); |
|
| 19 | - $route_id = '66C2AC4A323053FF0A40FEB6918ACF5E'; |
|
| 20 | - $start = '2022-01-01'; |
|
| 21 | - $end = '2023-12-31'; |
|
| 18 | + $schedules = new Schedules(); |
|
| 19 | + $route_id = '66C2AC4A323053FF0A40FEB6918ACF5E'; |
|
| 20 | + $start = '2022-01-01'; |
|
| 21 | + $end = '2023-12-31'; |
|
| 22 | 22 | |
| 23 | - $schedule = $schedules->getRouteSchedulePreview($route_id, $start, $end); |
|
| 24 | - print_r($schedule); |
|
| 23 | + $schedule = $schedules->getRouteSchedulePreview($route_id, $start, $end); |
|
| 24 | + print_r($schedule); |
|
| 25 | 25 | } catch (\Exception $e) { |
| 26 | - echo $e->getMessage() . PHP_EOL; |
|
| 26 | + echo $e->getMessage() . PHP_EOL; |
|
| 27 | 27 | } |
@@ -23,5 +23,5 @@ |
||
| 23 | 23 | $schedule = $schedules->getRouteSchedulePreview($route_id, $start, $end); |
| 24 | 24 | print_r($schedule); |
| 25 | 25 | } catch (\Exception $e) { |
| 26 | - echo $e->getMessage() . PHP_EOL; |
|
| 26 | + echo $e->getMessage().PHP_EOL; |
|
| 27 | 27 | } |
@@ -13,308 +13,308 @@ |
||
| 13 | 13 | |
| 14 | 14 | final class RecurringRoutesUnitTests extends \PHPUnit\Framework\TestCase |
| 15 | 15 | { |
| 16 | - public static ?Schedule $schedule; |
|
| 17 | - public static ?RouteSchedule $route_schedule; |
|
| 18 | - public static ?string $route_id; |
|
| 19 | - public static ?string $member_id; |
|
| 20 | - public static ?string $vehicle_id; |
|
| 21 | - |
|
| 22 | - public static function setUpBeforeClass() : void |
|
| 23 | - { |
|
| 24 | - Route4Me::setApiKey(Constants::API_KEY); |
|
| 25 | - self::$schedule = null; |
|
| 26 | - self::$route_schedule = null; |
|
| 27 | - self::$route_id = null; |
|
| 28 | - self::$member_id = null; |
|
| 29 | - self::$vehicle_id = null; |
|
| 30 | - } |
|
| 31 | - |
|
| 32 | - public function testScheduleCanBeCreateEmpty() : void |
|
| 33 | - { |
|
| 34 | - $this->assertInstanceOf(Schedule::class, new Schedule()); |
|
| 35 | - } |
|
| 36 | - |
|
| 37 | - public function testScheduleCanBeCreateFromArray() : void |
|
| 38 | - { |
|
| 39 | - $this->assertInstanceOf(Schedule::class, new Schedule([ |
|
| 40 | - 'schedule_uid' => '1', |
|
| 41 | - 'name' => 'The best Schedule' |
|
| 42 | - ])); |
|
| 43 | - } |
|
| 44 | - |
|
| 45 | - public function testRouteScheduleCanBeCreateEmpty() : void |
|
| 46 | - { |
|
| 47 | - $this->assertInstanceOf(RouteSchedule::class, new RouteSchedule()); |
|
| 48 | - } |
|
| 49 | - |
|
| 50 | - public function testRouteScheduleCanBeCreateFromArray() : void |
|
| 51 | - { |
|
| 52 | - $this->assertInstanceOf(RouteSchedule::class, new RouteSchedule([ |
|
| 53 | - 'route_id' => '1', |
|
| 54 | - 'schedule_uid' => '2' |
|
| 55 | - ])); |
|
| 56 | - } |
|
| 57 | - |
|
| 58 | - public function testPageInfoCanBeCreateEmpty() : void |
|
| 59 | - { |
|
| 60 | - $this->assertInstanceOf(PageInfo::class, new PageInfo()); |
|
| 61 | - } |
|
| 62 | - |
|
| 63 | - public function testPageInfoCanBeCreateFromArray() : void |
|
| 64 | - { |
|
| 65 | - $this->assertInstanceOf(PageInfo::class, new PageInfo([ |
|
| 66 | - 'first' => 'URL_first', |
|
| 67 | - 'last' => 'URL_last' |
|
| 68 | - ], [ |
|
| 69 | - 'current_page' => 1, |
|
| 70 | - 'last_page' => 15 |
|
| 71 | - ])); |
|
| 72 | - } |
|
| 73 | - |
|
| 74 | - public function testSchedulesCanBeCreateEmpty() : void |
|
| 75 | - { |
|
| 76 | - $this->assertInstanceOf(Schedules::class, new Schedules()); |
|
| 77 | - } |
|
| 78 | - |
|
| 79 | - public function testCreateScheduleMustReturnScahedule() : void |
|
| 80 | - { |
|
| 81 | - $schedules = new Schedules(); |
|
| 82 | - self::$schedule = $schedules->createSchedule([ |
|
| 83 | - 'name' => 'The bestest schedule', |
|
| 84 | - 'schedule_blacklist' => [], |
|
| 85 | - 'schedule' => null, |
|
| 86 | - 'timezone' => 'UTC' |
|
| 87 | - ]); |
|
| 88 | - |
|
| 89 | - $this->assertInstanceOf(Schedule::class, self::$schedule); |
|
| 90 | - $this->assertNotNull(self::$schedule->schedule_uid); |
|
| 91 | - $this->assertEquals(self::$schedule->name, 'The bestest schedule'); |
|
| 92 | - } |
|
| 93 | - |
|
| 94 | - public function testGetScheduleMustReturnScahedule() : void |
|
| 95 | - { |
|
| 96 | - $schedules = new Schedules(); |
|
| 97 | - $schedule = $schedules->getSchedule(self::$schedule->schedule_uid); |
|
| 98 | - |
|
| 99 | - $this->assertInstanceOf(Schedule::class, $schedule); |
|
| 100 | - $this->assertNotNull(self::$schedule->schedule_uid); |
|
| 101 | - $this->assertEquals(self::$schedule->name, 'The bestest schedule'); |
|
| 102 | - } |
|
| 103 | - |
|
| 104 | - public function testGetAllSchedulesMustReturnArrayOfScahedules() : void |
|
| 105 | - { |
|
| 106 | - $schedules = new Schedules(); |
|
| 107 | - $result = $schedules->getAllSchedules(); |
|
| 108 | - |
|
| 109 | - $this->assertIsArray($result); |
|
| 110 | - if (count($result) > 0) { |
|
| 111 | - $this->assertInstanceOf(Schedule::class, $result[0]); |
|
| 112 | - } |
|
| 113 | - } |
|
| 114 | - |
|
| 115 | - public function testGetSchedulesMustReturnOnePage() : void |
|
| 116 | - { |
|
| 117 | - $schedules = new Schedules(); |
|
| 118 | - $result = $schedules->getSchedules(); |
|
| 119 | - |
|
| 120 | - $this->assertIsArray($result); |
|
| 121 | - $this->assertArrayHasKey('schedules', $result); |
|
| 122 | - if (count($result['schedules']) > 0) { |
|
| 123 | - $this->assertInstanceOf(Schedule::class, $result['schedules'][0]); |
|
| 124 | - } |
|
| 125 | - $this->assertArrayHasKey('page_info', $result); |
|
| 126 | - $this->assertInstanceOf(PageInfo::class, $result['page_info']); |
|
| 127 | - } |
|
| 128 | - |
|
| 129 | - public function testUpdateScheduleMustReturnUpdatedScahedule() : void |
|
| 130 | - { |
|
| 131 | - $schedules = new Schedules(); |
|
| 132 | - self::$schedule = $schedules->updateSchedule(self::$schedule->schedule_uid, [ |
|
| 133 | - 'name' => 'The bestest schedule 1' |
|
| 134 | - ]); |
|
| 135 | - |
|
| 136 | - $this->assertInstanceOf(Schedule::class, self::$schedule); |
|
| 137 | - $this->assertEquals(self::$schedule->name, 'The bestest schedule 1'); |
|
| 138 | - } |
|
| 139 | - |
|
| 140 | - public function testCreateRouteScheduleMustReturnRouteScahedule() : void |
|
| 141 | - { |
|
| 142 | - $route = new Route; |
|
| 143 | - $routes = $route->getRoutes([ |
|
| 144 | - 'limit' => 1, |
|
| 145 | - 'offset' => 0 |
|
| 146 | - ]); |
|
| 16 | + public static ?Schedule $schedule; |
|
| 17 | + public static ?RouteSchedule $route_schedule; |
|
| 18 | + public static ?string $route_id; |
|
| 19 | + public static ?string $member_id; |
|
| 20 | + public static ?string $vehicle_id; |
|
| 21 | + |
|
| 22 | + public static function setUpBeforeClass() : void |
|
| 23 | + { |
|
| 24 | + Route4Me::setApiKey(Constants::API_KEY); |
|
| 25 | + self::$schedule = null; |
|
| 26 | + self::$route_schedule = null; |
|
| 27 | + self::$route_id = null; |
|
| 28 | + self::$member_id = null; |
|
| 29 | + self::$vehicle_id = null; |
|
| 30 | + } |
|
| 31 | + |
|
| 32 | + public function testScheduleCanBeCreateEmpty() : void |
|
| 33 | + { |
|
| 34 | + $this->assertInstanceOf(Schedule::class, new Schedule()); |
|
| 35 | + } |
|
| 36 | + |
|
| 37 | + public function testScheduleCanBeCreateFromArray() : void |
|
| 38 | + { |
|
| 39 | + $this->assertInstanceOf(Schedule::class, new Schedule([ |
|
| 40 | + 'schedule_uid' => '1', |
|
| 41 | + 'name' => 'The best Schedule' |
|
| 42 | + ])); |
|
| 43 | + } |
|
| 44 | + |
|
| 45 | + public function testRouteScheduleCanBeCreateEmpty() : void |
|
| 46 | + { |
|
| 47 | + $this->assertInstanceOf(RouteSchedule::class, new RouteSchedule()); |
|
| 48 | + } |
|
| 49 | + |
|
| 50 | + public function testRouteScheduleCanBeCreateFromArray() : void |
|
| 51 | + { |
|
| 52 | + $this->assertInstanceOf(RouteSchedule::class, new RouteSchedule([ |
|
| 53 | + 'route_id' => '1', |
|
| 54 | + 'schedule_uid' => '2' |
|
| 55 | + ])); |
|
| 56 | + } |
|
| 57 | + |
|
| 58 | + public function testPageInfoCanBeCreateEmpty() : void |
|
| 59 | + { |
|
| 60 | + $this->assertInstanceOf(PageInfo::class, new PageInfo()); |
|
| 61 | + } |
|
| 62 | + |
|
| 63 | + public function testPageInfoCanBeCreateFromArray() : void |
|
| 64 | + { |
|
| 65 | + $this->assertInstanceOf(PageInfo::class, new PageInfo([ |
|
| 66 | + 'first' => 'URL_first', |
|
| 67 | + 'last' => 'URL_last' |
|
| 68 | + ], [ |
|
| 69 | + 'current_page' => 1, |
|
| 70 | + 'last_page' => 15 |
|
| 71 | + ])); |
|
| 72 | + } |
|
| 73 | + |
|
| 74 | + public function testSchedulesCanBeCreateEmpty() : void |
|
| 75 | + { |
|
| 76 | + $this->assertInstanceOf(Schedules::class, new Schedules()); |
|
| 77 | + } |
|
| 78 | + |
|
| 79 | + public function testCreateScheduleMustReturnScahedule() : void |
|
| 80 | + { |
|
| 81 | + $schedules = new Schedules(); |
|
| 82 | + self::$schedule = $schedules->createSchedule([ |
|
| 83 | + 'name' => 'The bestest schedule', |
|
| 84 | + 'schedule_blacklist' => [], |
|
| 85 | + 'schedule' => null, |
|
| 86 | + 'timezone' => 'UTC' |
|
| 87 | + ]); |
|
| 88 | + |
|
| 89 | + $this->assertInstanceOf(Schedule::class, self::$schedule); |
|
| 90 | + $this->assertNotNull(self::$schedule->schedule_uid); |
|
| 91 | + $this->assertEquals(self::$schedule->name, 'The bestest schedule'); |
|
| 92 | + } |
|
| 93 | + |
|
| 94 | + public function testGetScheduleMustReturnScahedule() : void |
|
| 95 | + { |
|
| 96 | + $schedules = new Schedules(); |
|
| 97 | + $schedule = $schedules->getSchedule(self::$schedule->schedule_uid); |
|
| 98 | + |
|
| 99 | + $this->assertInstanceOf(Schedule::class, $schedule); |
|
| 100 | + $this->assertNotNull(self::$schedule->schedule_uid); |
|
| 101 | + $this->assertEquals(self::$schedule->name, 'The bestest schedule'); |
|
| 102 | + } |
|
| 103 | + |
|
| 104 | + public function testGetAllSchedulesMustReturnArrayOfScahedules() : void |
|
| 105 | + { |
|
| 106 | + $schedules = new Schedules(); |
|
| 107 | + $result = $schedules->getAllSchedules(); |
|
| 108 | + |
|
| 109 | + $this->assertIsArray($result); |
|
| 110 | + if (count($result) > 0) { |
|
| 111 | + $this->assertInstanceOf(Schedule::class, $result[0]); |
|
| 112 | + } |
|
| 113 | + } |
|
| 114 | + |
|
| 115 | + public function testGetSchedulesMustReturnOnePage() : void |
|
| 116 | + { |
|
| 117 | + $schedules = new Schedules(); |
|
| 118 | + $result = $schedules->getSchedules(); |
|
| 119 | + |
|
| 120 | + $this->assertIsArray($result); |
|
| 121 | + $this->assertArrayHasKey('schedules', $result); |
|
| 122 | + if (count($result['schedules']) > 0) { |
|
| 123 | + $this->assertInstanceOf(Schedule::class, $result['schedules'][0]); |
|
| 124 | + } |
|
| 125 | + $this->assertArrayHasKey('page_info', $result); |
|
| 126 | + $this->assertInstanceOf(PageInfo::class, $result['page_info']); |
|
| 127 | + } |
|
| 128 | + |
|
| 129 | + public function testUpdateScheduleMustReturnUpdatedScahedule() : void |
|
| 130 | + { |
|
| 131 | + $schedules = new Schedules(); |
|
| 132 | + self::$schedule = $schedules->updateSchedule(self::$schedule->schedule_uid, [ |
|
| 133 | + 'name' => 'The bestest schedule 1' |
|
| 134 | + ]); |
|
| 135 | + |
|
| 136 | + $this->assertInstanceOf(Schedule::class, self::$schedule); |
|
| 137 | + $this->assertEquals(self::$schedule->name, 'The bestest schedule 1'); |
|
| 138 | + } |
|
| 139 | + |
|
| 140 | + public function testCreateRouteScheduleMustReturnRouteScahedule() : void |
|
| 141 | + { |
|
| 142 | + $route = new Route; |
|
| 143 | + $routes = $route->getRoutes([ |
|
| 144 | + 'limit' => 1, |
|
| 145 | + 'offset' => 0 |
|
| 146 | + ]); |
|
| 147 | 147 | |
| 148 | - if (is_array($routes) && isset($routes[0])) { |
|
| 149 | - self::$route_id = $routes[0]->route_id; |
|
| 150 | - self::$member_id = $routes[0]->member_id; |
|
| 151 | - } |
|
| 152 | - $route = null; |
|
| 148 | + if (is_array($routes) && isset($routes[0])) { |
|
| 149 | + self::$route_id = $routes[0]->route_id; |
|
| 150 | + self::$member_id = $routes[0]->member_id; |
|
| 151 | + } |
|
| 152 | + $route = null; |
|
| 153 | 153 | |
| 154 | - $this->assertNotNull(self::$route_id); |
|
| 154 | + $this->assertNotNull(self::$route_id); |
|
| 155 | 155 | |
| 156 | - $schedules = new Schedules(); |
|
| 157 | - self::$route_schedule = $schedules->createRouteSchedule([ |
|
| 158 | - 'route_id' => self::$route_id, |
|
| 159 | - 'schedule_uid' => self::$schedule->schedule_uid |
|
| 160 | - ]); |
|
| 161 | - |
|
| 162 | - $this->assertInstanceOf(RouteSchedule::class, self::$route_schedule); |
|
| 163 | - $this->assertNotNull(self::$route_schedule->schedule_uid); |
|
| 164 | - $this->assertEquals(self::$route_schedule->schedule_uid, self::$schedule->schedule_uid); |
|
| 165 | - } |
|
| 166 | - |
|
| 167 | - public function testGetRouteScheduleMustReturnRouteScahedule() : void |
|
| 168 | - { |
|
| 169 | - $schedules = new Schedules(); |
|
| 170 | - $route_schedule = $schedules->getRouteSchedule(self::$route_id); |
|
| 171 | - |
|
| 172 | - $this->assertInstanceOf(RouteSchedule::class, $route_schedule); |
|
| 173 | - $this->assertNotNull($route_schedule->schedule_uid); |
|
| 174 | - } |
|
| 175 | - |
|
| 176 | - public function testGetAllRouteSchedulesMustReturnArrayOfRouteScahedules() : void |
|
| 177 | - { |
|
| 178 | - $schedules = new Schedules(); |
|
| 179 | - $result = $schedules->getAllRouteSchedules(); |
|
| 180 | - |
|
| 181 | - $this->assertIsArray($result); |
|
| 182 | - if (count($result) > 0) { |
|
| 183 | - $this->assertInstanceOf(RouteSchedule::class, $result[0]); |
|
| 184 | - } |
|
| 185 | - } |
|
| 186 | - |
|
| 187 | - public function testGetRouteSchedulesMustReturnOnePage() : void |
|
| 188 | - { |
|
| 189 | - $schedules = new Schedules(); |
|
| 190 | - $result = $schedules->getRouteSchedules(); |
|
| 191 | - |
|
| 192 | - $this->assertIsArray($result); |
|
| 193 | - $this->assertArrayHasKey('route_schedules', $result); |
|
| 194 | - if (count($result['route_schedules']) > 0) { |
|
| 195 | - $this->assertInstanceOf(RouteSchedule::class, $result['route_schedules'][0]); |
|
| 196 | - } |
|
| 197 | - $this->assertArrayHasKey('page_info', $result); |
|
| 198 | - $this->assertInstanceOf(PageInfo::class, $result['page_info']); |
|
| 199 | - } |
|
| 200 | - |
|
| 201 | - public function testUpdateRouteScheduleMustReturnUpdatedRouteScahedule() : void |
|
| 202 | - { |
|
| 203 | - $vehicle = new Vehicle(); |
|
| 204 | - $vehicles = $vehicle->getVehiclesPaginatedList([ |
|
| 205 | - 'with_pagination' => true, |
|
| 206 | - 'page' => 1, |
|
| 207 | - 'perPage' => 1 |
|
| 208 | - ]); |
|
| 156 | + $schedules = new Schedules(); |
|
| 157 | + self::$route_schedule = $schedules->createRouteSchedule([ |
|
| 158 | + 'route_id' => self::$route_id, |
|
| 159 | + 'schedule_uid' => self::$schedule->schedule_uid |
|
| 160 | + ]); |
|
| 161 | + |
|
| 162 | + $this->assertInstanceOf(RouteSchedule::class, self::$route_schedule); |
|
| 163 | + $this->assertNotNull(self::$route_schedule->schedule_uid); |
|
| 164 | + $this->assertEquals(self::$route_schedule->schedule_uid, self::$schedule->schedule_uid); |
|
| 165 | + } |
|
| 166 | + |
|
| 167 | + public function testGetRouteScheduleMustReturnRouteScahedule() : void |
|
| 168 | + { |
|
| 169 | + $schedules = new Schedules(); |
|
| 170 | + $route_schedule = $schedules->getRouteSchedule(self::$route_id); |
|
| 171 | + |
|
| 172 | + $this->assertInstanceOf(RouteSchedule::class, $route_schedule); |
|
| 173 | + $this->assertNotNull($route_schedule->schedule_uid); |
|
| 174 | + } |
|
| 175 | + |
|
| 176 | + public function testGetAllRouteSchedulesMustReturnArrayOfRouteScahedules() : void |
|
| 177 | + { |
|
| 178 | + $schedules = new Schedules(); |
|
| 179 | + $result = $schedules->getAllRouteSchedules(); |
|
| 180 | + |
|
| 181 | + $this->assertIsArray($result); |
|
| 182 | + if (count($result) > 0) { |
|
| 183 | + $this->assertInstanceOf(RouteSchedule::class, $result[0]); |
|
| 184 | + } |
|
| 185 | + } |
|
| 186 | + |
|
| 187 | + public function testGetRouteSchedulesMustReturnOnePage() : void |
|
| 188 | + { |
|
| 189 | + $schedules = new Schedules(); |
|
| 190 | + $result = $schedules->getRouteSchedules(); |
|
| 191 | + |
|
| 192 | + $this->assertIsArray($result); |
|
| 193 | + $this->assertArrayHasKey('route_schedules', $result); |
|
| 194 | + if (count($result['route_schedules']) > 0) { |
|
| 195 | + $this->assertInstanceOf(RouteSchedule::class, $result['route_schedules'][0]); |
|
| 196 | + } |
|
| 197 | + $this->assertArrayHasKey('page_info', $result); |
|
| 198 | + $this->assertInstanceOf(PageInfo::class, $result['page_info']); |
|
| 199 | + } |
|
| 200 | + |
|
| 201 | + public function testUpdateRouteScheduleMustReturnUpdatedRouteScahedule() : void |
|
| 202 | + { |
|
| 203 | + $vehicle = new Vehicle(); |
|
| 204 | + $vehicles = $vehicle->getVehiclesPaginatedList([ |
|
| 205 | + 'with_pagination' => true, |
|
| 206 | + 'page' => 1, |
|
| 207 | + 'perPage' => 1 |
|
| 208 | + ]); |
|
| 209 | 209 | |
| 210 | - if (is_array($vehicles) && isset($vehicles[0]) && is_array($vehicles[0]) && isset($vehicles[0]['vehicle_id'])) { |
|
| 211 | - self::$vehicle_id = $vehicles[0]['vehicle_id']; |
|
| 212 | - } |
|
| 213 | - $vehicle = null; |
|
| 210 | + if (is_array($vehicles) && isset($vehicles[0]) && is_array($vehicles[0]) && isset($vehicles[0]['vehicle_id'])) { |
|
| 211 | + self::$vehicle_id = $vehicles[0]['vehicle_id']; |
|
| 212 | + } |
|
| 213 | + $vehicle = null; |
|
| 214 | 214 | |
| 215 | - $this->assertNotNull(self::$vehicle_id); |
|
| 216 | - |
|
| 217 | - $schedules = new Schedules(); |
|
| 218 | - self::$route_schedule = $schedules->updateRouteSchedule(self::$route_id, [ |
|
| 219 | - 'schedule_uid' => self::$route_schedule->schedule_uid, |
|
| 220 | - 'member_id' => self::$member_id, |
|
| 221 | - 'vehicle_id' => self::$vehicle_id |
|
| 222 | - ]); |
|
| 223 | - |
|
| 224 | - $this->assertInstanceOf(RouteSchedule::class, self::$route_schedule); |
|
| 225 | - $this->assertEquals(self::$route_schedule->member_id, self::$member_id); |
|
| 226 | - } |
|
| 227 | - |
|
| 228 | - public function testrReplaceRouteScheduleMustReturnRouteScahedule() : void |
|
| 229 | - { |
|
| 230 | - $schedules = new Schedules(); |
|
| 231 | - self::$route_schedule = $schedules->replaceRouteSchedule(self::$route_id, [ |
|
| 232 | - 'schedule_uid' => self::$route_schedule->schedule_uid, |
|
| 233 | - 'member_id' => self::$member_id, |
|
| 234 | - 'vehicle_id' => self::$vehicle_id |
|
| 235 | - ]); |
|
| 236 | - |
|
| 237 | - $this->assertInstanceOf(RouteSchedule::class, self::$route_schedule); |
|
| 238 | - $this->assertEquals(self::$route_schedule->member_id, self::$member_id); |
|
| 239 | - } |
|
| 240 | - |
|
| 241 | - public function testGetRouteSchedulePreviewMustReturnArray() : void |
|
| 242 | - { |
|
| 243 | - $schedules = new Schedules(); |
|
| 244 | - $start = '2022-01-01'; |
|
| 245 | - $end = '2023-12-31'; |
|
| 246 | - $result = $schedules->getRouteSchedulePreview(self::$route_id, $start, $end); |
|
| 247 | - |
|
| 248 | - $this->assertIsArray($result); |
|
| 249 | - } |
|
| 250 | - |
|
| 251 | - public function testIsScheduledRouteCopyMustReturnBool() : void |
|
| 252 | - { |
|
| 253 | - $schedules = new Schedules(); |
|
| 254 | - $result = $schedules->isScheduledRouteCopy(self::$route_id); |
|
| 255 | - |
|
| 256 | - $this->assertIsBool($result); |
|
| 257 | - } |
|
| 258 | - |
|
| 259 | - public function testGetScheduledRoutesCopiesMustReturnArray() : void |
|
| 260 | - { |
|
| 261 | - $schedules = new Schedules(); |
|
| 262 | - $route_date = '2023-01-01'; |
|
| 263 | - $result = $schedules->getScheduledRoutesCopies( |
|
| 264 | - self::$route_id, |
|
| 265 | - self::$route_schedule->schedule_uid, |
|
| 266 | - $route_date |
|
| 267 | - ); |
|
| 268 | - |
|
| 269 | - $this->assertIsArray($result); |
|
| 270 | - } |
|
| 271 | - |
|
| 272 | - public function testCreateMasterRouteMustReturnBool() : void |
|
| 273 | - { |
|
| 274 | - $schedules = new Schedules(); |
|
| 275 | - $result = $schedules->createMasterRoute([ |
|
| 276 | - 'route_id' => self::$route_id, |
|
| 277 | - 'route_name' => 'The Bestest route', |
|
| 278 | - 'member_id' => self::$member_id, |
|
| 279 | - 'vehicle_id' => self::$vehicle_id, |
|
| 280 | - 'name' => 'The bestest schedule', |
|
| 281 | - 'schedule_blacklist' => [], |
|
| 282 | - 'schedule' => null, |
|
| 283 | - 'timezone' => 'UTC' |
|
| 284 | - ]); |
|
| 285 | - |
|
| 286 | - $this->assertIsBool($result); |
|
| 287 | - } |
|
| 288 | - |
|
| 289 | - public function testDeleteRouteScheduleMustReturnTrue() : void |
|
| 290 | - { |
|
| 291 | - $schedules = new Schedules(); |
|
| 292 | - $result = $schedules->deleteRouteSchedules(self::$route_id); |
|
| 293 | - |
|
| 294 | - $this->assertTrue($result); |
|
| 295 | - self::$route_schedule = null; |
|
| 296 | - } |
|
| 297 | - |
|
| 298 | - public function testDeleteScheduleMustReturnDeletedScahedule() : void |
|
| 299 | - { |
|
| 300 | - $schedules = new Schedules(); |
|
| 301 | - self::$schedule = $schedules->deleteSchedule(self::$schedule->schedule_uid); |
|
| 302 | - |
|
| 303 | - $this->assertInstanceOf(Schedule::class, self::$schedule); |
|
| 304 | - self::$schedule = null; |
|
| 305 | - } |
|
| 306 | - |
|
| 307 | - public static function tearDownAfterClass() : void |
|
| 308 | - { |
|
| 309 | - if (!is_null(self::$schedule)) { |
|
| 310 | - $schedules = new Schedules(); |
|
| 311 | - $result = $schedules->deleteSchedule(self::$schedule->schedule_uid); |
|
| 312 | - self::assertInstanceOf(Schedule::class, $result); |
|
| 313 | - } |
|
| 314 | - if (!is_null(self::$route_schedule)) { |
|
| 315 | - $schedules = new Schedules(); |
|
| 316 | - $result = $schedules->deleteRouteSchedule(self::$route_schedule->route_id); |
|
| 317 | - self::assertInstanceOf(RouteSchedule::class, $result); |
|
| 318 | - } |
|
| 319 | - } |
|
| 215 | + $this->assertNotNull(self::$vehicle_id); |
|
| 216 | + |
|
| 217 | + $schedules = new Schedules(); |
|
| 218 | + self::$route_schedule = $schedules->updateRouteSchedule(self::$route_id, [ |
|
| 219 | + 'schedule_uid' => self::$route_schedule->schedule_uid, |
|
| 220 | + 'member_id' => self::$member_id, |
|
| 221 | + 'vehicle_id' => self::$vehicle_id |
|
| 222 | + ]); |
|
| 223 | + |
|
| 224 | + $this->assertInstanceOf(RouteSchedule::class, self::$route_schedule); |
|
| 225 | + $this->assertEquals(self::$route_schedule->member_id, self::$member_id); |
|
| 226 | + } |
|
| 227 | + |
|
| 228 | + public function testrReplaceRouteScheduleMustReturnRouteScahedule() : void |
|
| 229 | + { |
|
| 230 | + $schedules = new Schedules(); |
|
| 231 | + self::$route_schedule = $schedules->replaceRouteSchedule(self::$route_id, [ |
|
| 232 | + 'schedule_uid' => self::$route_schedule->schedule_uid, |
|
| 233 | + 'member_id' => self::$member_id, |
|
| 234 | + 'vehicle_id' => self::$vehicle_id |
|
| 235 | + ]); |
|
| 236 | + |
|
| 237 | + $this->assertInstanceOf(RouteSchedule::class, self::$route_schedule); |
|
| 238 | + $this->assertEquals(self::$route_schedule->member_id, self::$member_id); |
|
| 239 | + } |
|
| 240 | + |
|
| 241 | + public function testGetRouteSchedulePreviewMustReturnArray() : void |
|
| 242 | + { |
|
| 243 | + $schedules = new Schedules(); |
|
| 244 | + $start = '2022-01-01'; |
|
| 245 | + $end = '2023-12-31'; |
|
| 246 | + $result = $schedules->getRouteSchedulePreview(self::$route_id, $start, $end); |
|
| 247 | + |
|
| 248 | + $this->assertIsArray($result); |
|
| 249 | + } |
|
| 250 | + |
|
| 251 | + public function testIsScheduledRouteCopyMustReturnBool() : void |
|
| 252 | + { |
|
| 253 | + $schedules = new Schedules(); |
|
| 254 | + $result = $schedules->isScheduledRouteCopy(self::$route_id); |
|
| 255 | + |
|
| 256 | + $this->assertIsBool($result); |
|
| 257 | + } |
|
| 258 | + |
|
| 259 | + public function testGetScheduledRoutesCopiesMustReturnArray() : void |
|
| 260 | + { |
|
| 261 | + $schedules = new Schedules(); |
|
| 262 | + $route_date = '2023-01-01'; |
|
| 263 | + $result = $schedules->getScheduledRoutesCopies( |
|
| 264 | + self::$route_id, |
|
| 265 | + self::$route_schedule->schedule_uid, |
|
| 266 | + $route_date |
|
| 267 | + ); |
|
| 268 | + |
|
| 269 | + $this->assertIsArray($result); |
|
| 270 | + } |
|
| 271 | + |
|
| 272 | + public function testCreateMasterRouteMustReturnBool() : void |
|
| 273 | + { |
|
| 274 | + $schedules = new Schedules(); |
|
| 275 | + $result = $schedules->createMasterRoute([ |
|
| 276 | + 'route_id' => self::$route_id, |
|
| 277 | + 'route_name' => 'The Bestest route', |
|
| 278 | + 'member_id' => self::$member_id, |
|
| 279 | + 'vehicle_id' => self::$vehicle_id, |
|
| 280 | + 'name' => 'The bestest schedule', |
|
| 281 | + 'schedule_blacklist' => [], |
|
| 282 | + 'schedule' => null, |
|
| 283 | + 'timezone' => 'UTC' |
|
| 284 | + ]); |
|
| 285 | + |
|
| 286 | + $this->assertIsBool($result); |
|
| 287 | + } |
|
| 288 | + |
|
| 289 | + public function testDeleteRouteScheduleMustReturnTrue() : void |
|
| 290 | + { |
|
| 291 | + $schedules = new Schedules(); |
|
| 292 | + $result = $schedules->deleteRouteSchedules(self::$route_id); |
|
| 293 | + |
|
| 294 | + $this->assertTrue($result); |
|
| 295 | + self::$route_schedule = null; |
|
| 296 | + } |
|
| 297 | + |
|
| 298 | + public function testDeleteScheduleMustReturnDeletedScahedule() : void |
|
| 299 | + { |
|
| 300 | + $schedules = new Schedules(); |
|
| 301 | + self::$schedule = $schedules->deleteSchedule(self::$schedule->schedule_uid); |
|
| 302 | + |
|
| 303 | + $this->assertInstanceOf(Schedule::class, self::$schedule); |
|
| 304 | + self::$schedule = null; |
|
| 305 | + } |
|
| 306 | + |
|
| 307 | + public static function tearDownAfterClass() : void |
|
| 308 | + { |
|
| 309 | + if (!is_null(self::$schedule)) { |
|
| 310 | + $schedules = new Schedules(); |
|
| 311 | + $result = $schedules->deleteSchedule(self::$schedule->schedule_uid); |
|
| 312 | + self::assertInstanceOf(Schedule::class, $result); |
|
| 313 | + } |
|
| 314 | + if (!is_null(self::$route_schedule)) { |
|
| 315 | + $schedules = new Schedules(); |
|
| 316 | + $result = $schedules->deleteRouteSchedule(self::$route_schedule->route_id); |
|
| 317 | + self::assertInstanceOf(RouteSchedule::class, $result); |
|
| 318 | + } |
|
| 319 | + } |
|
| 320 | 320 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $result = $schedules->getAllSchedules(); |
| 108 | 108 | |
| 109 | 109 | $this->assertIsArray($result); |
| 110 | - if (count($result) > 0) { |
|
| 110 | + if (count($result)>0) { |
|
| 111 | 111 | $this->assertInstanceOf(Schedule::class, $result[0]); |
| 112 | 112 | } |
| 113 | 113 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | $this->assertIsArray($result); |
| 121 | 121 | $this->assertArrayHasKey('schedules', $result); |
| 122 | - if (count($result['schedules']) > 0) { |
|
| 122 | + if (count($result['schedules'])>0) { |
|
| 123 | 123 | $this->assertInstanceOf(Schedule::class, $result['schedules'][0]); |
| 124 | 124 | } |
| 125 | 125 | $this->assertArrayHasKey('page_info', $result); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $result = $schedules->getAllRouteSchedules(); |
| 180 | 180 | |
| 181 | 181 | $this->assertIsArray($result); |
| 182 | - if (count($result) > 0) { |
|
| 182 | + if (count($result)>0) { |
|
| 183 | 183 | $this->assertInstanceOf(RouteSchedule::class, $result[0]); |
| 184 | 184 | } |
| 185 | 185 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | $this->assertIsArray($result); |
| 193 | 193 | $this->assertArrayHasKey('route_schedules', $result); |
| 194 | - if (count($result['route_schedules']) > 0) { |
|
| 194 | + if (count($result['route_schedules'])>0) { |
|
| 195 | 195 | $this->assertInstanceOf(RouteSchedule::class, $result['route_schedules'][0]); |
| 196 | 196 | } |
| 197 | 197 | $this->assertArrayHasKey('page_info', $result); |
@@ -6,105 +6,105 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Endpoint |
| 8 | 8 | { |
| 9 | - const API_VERSION = "5"; |
|
| 9 | + const API_VERSION = "5"; |
|
| 10 | 10 | |
| 11 | - const MAIN_HOST = "https://wh.route4me.com/modules/api/v5.0"; |
|
| 11 | + const MAIN_HOST = "https://wh.route4me.com/modules/api/v5.0"; |
|
| 12 | 12 | |
| 13 | - const MAIN_HOST_WEB = "https://wh.route4me.com/modules/webapi/v5.0"; |
|
| 13 | + const MAIN_HOST_WEB = "https://wh.route4me.com/modules/webapi/v5.0"; |
|
| 14 | 14 | |
| 15 | - // <editor-fold defaultstate="collapsed" desc="region Routes"> |
|
| 15 | + // <editor-fold defaultstate="collapsed" desc="region Routes"> |
|
| 16 | 16 | |
| 17 | - const Routes = self::MAIN_HOST . "/routes"; |
|
| 18 | - const RoutesDuplicate = self::MAIN_HOST . "/routes/duplicate"; |
|
| 19 | - const RoutesMerge = self::MAIN_HOST . "/routes/merge"; |
|
| 20 | - const RoutesPaginate = self::MAIN_HOST . "/routes/paginate"; |
|
| 21 | - const RoutesFallbackPaginate = self::MAIN_HOST . "/routes/fallback/paginate"; |
|
| 22 | - const RoutesFallbackDatatable = self::MAIN_HOST . "/routes/fallback/datatable"; |
|
| 23 | - const RoutesFallback = self::MAIN_HOST . "/routes/fallback"; |
|
| 24 | - const RoutesReindexCallback = self::MAIN_HOST . "/routes/reindex-callback"; |
|
| 25 | - const RoutesDatatable = self::MAIN_HOST . "/routes/datatable"; |
|
| 26 | - const RoutesDatatableConfig = self::MAIN_HOST . "/routes/datatable/config"; |
|
| 27 | - const RoutesDatatableConfigFallback = self::MAIN_HOST . "/routes/fallback/datatable/config"; |
|
| 17 | + const Routes = self::MAIN_HOST . "/routes"; |
|
| 18 | + const RoutesDuplicate = self::MAIN_HOST . "/routes/duplicate"; |
|
| 19 | + const RoutesMerge = self::MAIN_HOST . "/routes/merge"; |
|
| 20 | + const RoutesPaginate = self::MAIN_HOST . "/routes/paginate"; |
|
| 21 | + const RoutesFallbackPaginate = self::MAIN_HOST . "/routes/fallback/paginate"; |
|
| 22 | + const RoutesFallbackDatatable = self::MAIN_HOST . "/routes/fallback/datatable"; |
|
| 23 | + const RoutesFallback = self::MAIN_HOST . "/routes/fallback"; |
|
| 24 | + const RoutesReindexCallback = self::MAIN_HOST . "/routes/reindex-callback"; |
|
| 25 | + const RoutesDatatable = self::MAIN_HOST . "/routes/datatable"; |
|
| 26 | + const RoutesDatatableConfig = self::MAIN_HOST . "/routes/datatable/config"; |
|
| 27 | + const RoutesDatatableConfigFallback = self::MAIN_HOST . "/routes/fallback/datatable/config"; |
|
| 28 | 28 | |
| 29 | - // </editor-fold> |
|
| 29 | + // </editor-fold> |
|
| 30 | 30 | |
| 31 | - // <editor-fold defaultstate="collapsed" desc="Team Users"> |
|
| 31 | + // <editor-fold defaultstate="collapsed" desc="Team Users"> |
|
| 32 | 32 | |
| 33 | - const TeamUsers = self::MAIN_HOST . "/team/users"; |
|
| 34 | - const TeamUsersBulkCreate = self::MAIN_HOST . "/team/bulk-insert"; |
|
| 35 | - const DriverReview = self::MAIN_HOST . "/driver-reviews"; |
|
| 33 | + const TeamUsers = self::MAIN_HOST . "/team/users"; |
|
| 34 | + const TeamUsersBulkCreate = self::MAIN_HOST . "/team/bulk-insert"; |
|
| 35 | + const DriverReview = self::MAIN_HOST . "/driver-reviews"; |
|
| 36 | 36 | |
| 37 | - // </editor-fold> |
|
| 37 | + // </editor-fold> |
|
| 38 | 38 | |
| 39 | - const ACCOUNT_PROFILE = self::MAIN_HOST . "/profile-api"; |
|
| 40 | - |
|
| 41 | - // <editor-fold defaultstate="collapsed" desc="Vehicles"> |
|
| 42 | - |
|
| 43 | - const Vehicles = self::MAIN_HOST . "/vehicles"; |
|
| 44 | - const VehicleTemporary = self::MAIN_HOST . "/vehicles/assign"; |
|
| 45 | - const VehicleExecuteOrder = self::MAIN_HOST . "/vehicles/execute"; |
|
| 46 | - const VehicleLocation = self::MAIN_HOST . "/vehicles/location"; |
|
| 47 | - const VehicleProfiles = self::MAIN_HOST . "/vehicle-profiles"; |
|
| 48 | - const VehicleLicense = self::MAIN_HOST . "/vehicles/license"; |
|
| 49 | - const VehicleSearch = self::MAIN_HOST . "/vehicles/search"; |
|
| 50 | - |
|
| 51 | - const RECURRING_ROUTES = self::MAIN_HOST . "/recurring-routes"; |
|
| 52 | - const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST . "/recurring-routes/schedules"; |
|
| 53 | - const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST . "/recurring-routes/schedules/pagination"; |
|
| 54 | - const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST . "/recurring-routes/route-schedules"; |
|
| 55 | - const RECURRING_ROUTES_ROUTE_SCHEDULES_PAGINATION = |
|
| 56 | - self::MAIN_HOST . "/recurring-routes/route-schedules/pagination"; |
|
| 57 | - const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST . "/recurring-routes/route-schedules/replace"; |
|
| 58 | - const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST . "/recurring-routes/scheduled-routes/is-copy"; |
|
| 59 | - const RECURRING_ROUTES_SCHEDULED_ROUTES_GET_COPIES = |
|
| 60 | - self::MAIN_HOST . "/recurring-routes/scheduled-routes/get-copies"; |
|
| 61 | - const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST . "/recurring-routes/master-routes"; |
|
| 62 | - |
|
| 63 | - // </editor-fold> |
|
| 39 | + const ACCOUNT_PROFILE = self::MAIN_HOST . "/profile-api"; |
|
| 40 | + |
|
| 41 | + // <editor-fold defaultstate="collapsed" desc="Vehicles"> |
|
| 42 | + |
|
| 43 | + const Vehicles = self::MAIN_HOST . "/vehicles"; |
|
| 44 | + const VehicleTemporary = self::MAIN_HOST . "/vehicles/assign"; |
|
| 45 | + const VehicleExecuteOrder = self::MAIN_HOST . "/vehicles/execute"; |
|
| 46 | + const VehicleLocation = self::MAIN_HOST . "/vehicles/location"; |
|
| 47 | + const VehicleProfiles = self::MAIN_HOST . "/vehicle-profiles"; |
|
| 48 | + const VehicleLicense = self::MAIN_HOST . "/vehicles/license"; |
|
| 49 | + const VehicleSearch = self::MAIN_HOST . "/vehicles/search"; |
|
| 50 | + |
|
| 51 | + const RECURRING_ROUTES = self::MAIN_HOST . "/recurring-routes"; |
|
| 52 | + const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST . "/recurring-routes/schedules"; |
|
| 53 | + const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST . "/recurring-routes/schedules/pagination"; |
|
| 54 | + const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST . "/recurring-routes/route-schedules"; |
|
| 55 | + const RECURRING_ROUTES_ROUTE_SCHEDULES_PAGINATION = |
|
| 56 | + self::MAIN_HOST . "/recurring-routes/route-schedules/pagination"; |
|
| 57 | + const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST . "/recurring-routes/route-schedules/replace"; |
|
| 58 | + const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST . "/recurring-routes/scheduled-routes/is-copy"; |
|
| 59 | + const RECURRING_ROUTES_SCHEDULED_ROUTES_GET_COPIES = |
|
| 60 | + self::MAIN_HOST . "/recurring-routes/scheduled-routes/get-copies"; |
|
| 61 | + const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST . "/recurring-routes/master-routes"; |
|
| 62 | + |
|
| 63 | + // </editor-fold> |
|
| 64 | 64 | |
| 65 | - // <editor-fold defaultstate="collapsed" desc="Telematicx Platform"> |
|
| 65 | + // <editor-fold defaultstate="collapsed" desc="Telematicx Platform"> |
|
| 66 | 66 | |
| 67 | - const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
|
| 67 | + const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
|
| 68 | 68 | |
| 69 | - const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
|
| 70 | - const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
| 69 | + const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
|
| 70 | + const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
| 71 | 71 | |
| 72 | - const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
| 73 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
| 74 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
| 72 | + const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
| 73 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
| 74 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
| 75 | 75 | |
| 76 | - const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
| 77 | - const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
| 78 | - const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
| 76 | + const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
| 77 | + const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
| 78 | + const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
| 79 | 79 | |
| 80 | - const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
| 81 | - const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
| 82 | - const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
| 83 | - const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
| 80 | + const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
| 81 | + const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
| 82 | + const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
| 83 | + const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
| 84 | 84 | |
| 85 | - const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
| 85 | + const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
| 86 | 86 | |
| 87 | - const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
| 87 | + const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
| 88 | 88 | |
| 89 | - const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
| 90 | - const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
| 91 | - const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
| 89 | + const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
| 90 | + const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
| 91 | + const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
| 92 | 92 | |
| 93 | - const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
| 94 | - const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
| 95 | - const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
| 96 | - const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
| 93 | + const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
| 94 | + const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
| 95 | + const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
| 96 | + const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
| 97 | 97 | |
| 98 | - const TELEMATICS_MEMBER = self::STAGING_HOST; |
|
| 98 | + const TELEMATICS_MEMBER = self::STAGING_HOST; |
|
| 99 | 99 | |
| 100 | - const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
| 100 | + const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
| 101 | 101 | |
| 102 | - const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
| 103 | - const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
| 104 | - const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
| 102 | + const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
| 103 | + const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
| 104 | + const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
| 105 | 105 | |
| 106 | - const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
| 107 | - const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
| 106 | + const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
| 107 | + const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
| 108 | 108 | |
| 109 | - // </editor-fold> |
|
| 109 | + // </editor-fold> |
|
| 110 | 110 | } |
| 111 | 111 | \ No newline at end of file |
@@ -14,51 +14,51 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | // <editor-fold defaultstate="collapsed" desc="region Routes"> |
| 16 | 16 | |
| 17 | - const Routes = self::MAIN_HOST . "/routes"; |
|
| 18 | - const RoutesDuplicate = self::MAIN_HOST . "/routes/duplicate"; |
|
| 19 | - const RoutesMerge = self::MAIN_HOST . "/routes/merge"; |
|
| 20 | - const RoutesPaginate = self::MAIN_HOST . "/routes/paginate"; |
|
| 21 | - const RoutesFallbackPaginate = self::MAIN_HOST . "/routes/fallback/paginate"; |
|
| 22 | - const RoutesFallbackDatatable = self::MAIN_HOST . "/routes/fallback/datatable"; |
|
| 23 | - const RoutesFallback = self::MAIN_HOST . "/routes/fallback"; |
|
| 24 | - const RoutesReindexCallback = self::MAIN_HOST . "/routes/reindex-callback"; |
|
| 25 | - const RoutesDatatable = self::MAIN_HOST . "/routes/datatable"; |
|
| 26 | - const RoutesDatatableConfig = self::MAIN_HOST . "/routes/datatable/config"; |
|
| 27 | - const RoutesDatatableConfigFallback = self::MAIN_HOST . "/routes/fallback/datatable/config"; |
|
| 17 | + const Routes = self::MAIN_HOST."/routes"; |
|
| 18 | + const RoutesDuplicate = self::MAIN_HOST."/routes/duplicate"; |
|
| 19 | + const RoutesMerge = self::MAIN_HOST."/routes/merge"; |
|
| 20 | + const RoutesPaginate = self::MAIN_HOST."/routes/paginate"; |
|
| 21 | + const RoutesFallbackPaginate = self::MAIN_HOST."/routes/fallback/paginate"; |
|
| 22 | + const RoutesFallbackDatatable = self::MAIN_HOST."/routes/fallback/datatable"; |
|
| 23 | + const RoutesFallback = self::MAIN_HOST."/routes/fallback"; |
|
| 24 | + const RoutesReindexCallback = self::MAIN_HOST."/routes/reindex-callback"; |
|
| 25 | + const RoutesDatatable = self::MAIN_HOST."/routes/datatable"; |
|
| 26 | + const RoutesDatatableConfig = self::MAIN_HOST."/routes/datatable/config"; |
|
| 27 | + const RoutesDatatableConfigFallback = self::MAIN_HOST."/routes/fallback/datatable/config"; |
|
| 28 | 28 | |
| 29 | 29 | // </editor-fold> |
| 30 | 30 | |
| 31 | 31 | // <editor-fold defaultstate="collapsed" desc="Team Users"> |
| 32 | 32 | |
| 33 | - const TeamUsers = self::MAIN_HOST . "/team/users"; |
|
| 34 | - const TeamUsersBulkCreate = self::MAIN_HOST . "/team/bulk-insert"; |
|
| 35 | - const DriverReview = self::MAIN_HOST . "/driver-reviews"; |
|
| 33 | + const TeamUsers = self::MAIN_HOST."/team/users"; |
|
| 34 | + const TeamUsersBulkCreate = self::MAIN_HOST."/team/bulk-insert"; |
|
| 35 | + const DriverReview = self::MAIN_HOST."/driver-reviews"; |
|
| 36 | 36 | |
| 37 | 37 | // </editor-fold> |
| 38 | 38 | |
| 39 | - const ACCOUNT_PROFILE = self::MAIN_HOST . "/profile-api"; |
|
| 39 | + const ACCOUNT_PROFILE = self::MAIN_HOST."/profile-api"; |
|
| 40 | 40 | |
| 41 | 41 | // <editor-fold defaultstate="collapsed" desc="Vehicles"> |
| 42 | 42 | |
| 43 | - const Vehicles = self::MAIN_HOST . "/vehicles"; |
|
| 44 | - const VehicleTemporary = self::MAIN_HOST . "/vehicles/assign"; |
|
| 45 | - const VehicleExecuteOrder = self::MAIN_HOST . "/vehicles/execute"; |
|
| 46 | - const VehicleLocation = self::MAIN_HOST . "/vehicles/location"; |
|
| 47 | - const VehicleProfiles = self::MAIN_HOST . "/vehicle-profiles"; |
|
| 48 | - const VehicleLicense = self::MAIN_HOST . "/vehicles/license"; |
|
| 49 | - const VehicleSearch = self::MAIN_HOST . "/vehicles/search"; |
|
| 50 | - |
|
| 51 | - const RECURRING_ROUTES = self::MAIN_HOST . "/recurring-routes"; |
|
| 52 | - const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST . "/recurring-routes/schedules"; |
|
| 53 | - const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST . "/recurring-routes/schedules/pagination"; |
|
| 54 | - const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST . "/recurring-routes/route-schedules"; |
|
| 43 | + const Vehicles = self::MAIN_HOST."/vehicles"; |
|
| 44 | + const VehicleTemporary = self::MAIN_HOST."/vehicles/assign"; |
|
| 45 | + const VehicleExecuteOrder = self::MAIN_HOST."/vehicles/execute"; |
|
| 46 | + const VehicleLocation = self::MAIN_HOST."/vehicles/location"; |
|
| 47 | + const VehicleProfiles = self::MAIN_HOST."/vehicle-profiles"; |
|
| 48 | + const VehicleLicense = self::MAIN_HOST."/vehicles/license"; |
|
| 49 | + const VehicleSearch = self::MAIN_HOST."/vehicles/search"; |
|
| 50 | + |
|
| 51 | + const RECURRING_ROUTES = self::MAIN_HOST."/recurring-routes"; |
|
| 52 | + const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST."/recurring-routes/schedules"; |
|
| 53 | + const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST."/recurring-routes/schedules/pagination"; |
|
| 54 | + const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST."/recurring-routes/route-schedules"; |
|
| 55 | 55 | const RECURRING_ROUTES_ROUTE_SCHEDULES_PAGINATION = |
| 56 | - self::MAIN_HOST . "/recurring-routes/route-schedules/pagination"; |
|
| 57 | - const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST . "/recurring-routes/route-schedules/replace"; |
|
| 58 | - const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST . "/recurring-routes/scheduled-routes/is-copy"; |
|
| 56 | + self::MAIN_HOST."/recurring-routes/route-schedules/pagination"; |
|
| 57 | + const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST."/recurring-routes/route-schedules/replace"; |
|
| 58 | + const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST."/recurring-routes/scheduled-routes/is-copy"; |
|
| 59 | 59 | const RECURRING_ROUTES_SCHEDULED_ROUTES_GET_COPIES = |
| 60 | - self::MAIN_HOST . "/recurring-routes/scheduled-routes/get-copies"; |
|
| 61 | - const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST . "/recurring-routes/master-routes"; |
|
| 60 | + self::MAIN_HOST."/recurring-routes/scheduled-routes/get-copies"; |
|
| 61 | + const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST."/recurring-routes/master-routes"; |
|
| 62 | 62 | |
| 63 | 63 | // </editor-fold> |
| 64 | 64 | |
@@ -67,44 +67,44 @@ discard block |
||
| 67 | 67 | const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
| 68 | 68 | |
| 69 | 69 | const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
| 70 | - const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
| 70 | + const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST."/connections/{connection_token}/vehicles"; |
|
| 71 | 71 | |
| 72 | - const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
| 73 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
| 74 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
| 72 | + const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST."/access-tokens"; |
|
| 73 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST."/access-token-schedules"; |
|
| 74 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST."/access-token-schedules/{schedule_id}/items"; |
|
| 75 | 75 | |
| 76 | - const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
| 77 | - const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
| 78 | - const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
| 76 | + const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST."/vehicle-groups"; |
|
| 77 | + const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST."/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
| 78 | + const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST."/vehicles/{vehicle_id}/{relation}"; |
|
| 79 | 79 | |
| 80 | - const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
| 81 | - const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
| 82 | - const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
| 83 | - const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
| 80 | + const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST."/info/members"; |
|
| 81 | + const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST."/info/vehicles"; |
|
| 82 | + const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST."/info/vehicle/{vehicle_id}/track"; |
|
| 83 | + const TELEMATICS_INFO_MODULES = self::STAGING_HOST."/info/members"; |
|
| 84 | 84 | |
| 85 | - const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
| 85 | + const TELEMATICS_ADDRESSES = self::STAGING_HOST."/addresses"; |
|
| 86 | 86 | |
| 87 | - const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
| 87 | + const TELEMATICS_Errors = self::STAGING_HOST."/errors"; |
|
| 88 | 88 | |
| 89 | - const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
| 90 | - const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
| 91 | - const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
| 89 | + const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST."/customers/{customer_id}/notifications"; |
|
| 90 | + const TELEMATICS_CUSTOMERS = self::STAGING_HOST."/customers"; |
|
| 91 | + const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST."/customers/{customer_id}"; |
|
| 92 | 92 | |
| 93 | - const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
| 94 | - const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
| 95 | - const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
| 96 | - const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
| 93 | + const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST."/notification-schedules/{notification_schedule_id}/items"; |
|
| 94 | + const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST."/notification-schedules"; |
|
| 95 | + const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST."/notification-schedules/{schedule_id}"; |
|
| 96 | + const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST."/one-time-notifications"; |
|
| 97 | 97 | |
| 98 | 98 | const TELEMATICS_MEMBER = self::STAGING_HOST; |
| 99 | 99 | |
| 100 | - const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
| 100 | + const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST."/user-activated-modules"; |
|
| 101 | 101 | |
| 102 | - const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
| 103 | - const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
| 104 | - const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
| 102 | + const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}"; |
|
| 103 | + const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles"; |
|
| 104 | + const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
| 105 | 105 | |
| 106 | - const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
| 107 | - const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
| 106 | + const TELEMATICS_VENDORS = self::STAGING_HOST."/vendors"; |
|
| 107 | + const TELEMATICS_VENDOR_ID = self::STAGING_HOST."/vendors/{vendor_id}"; |
|
| 108 | 108 | |
| 109 | 109 | // </editor-fold> |
| 110 | 110 | } |
| 111 | 111 | \ No newline at end of file |