@@ -10,43 +10,43 @@ |
||
10 | 10 | */ |
11 | 11 | class RouteFilterParameters extends \Route4Me\Common |
12 | 12 | { |
13 | - /** |
|
14 | - * @var string $query |
|
15 | - */ |
|
16 | - public $query; |
|
17 | - |
|
18 | - /** |
|
19 | - * @var RouteFilterParametersFilters $filters |
|
20 | - */ |
|
21 | - public $filters = []; |
|
22 | - |
|
23 | - /** |
|
24 | - * @var boolean $directions |
|
25 | - */ |
|
26 | - public $directions; |
|
27 | - |
|
28 | - /** |
|
29 | - * @var boolean $notes |
|
30 | - */ |
|
31 | - public $notes; |
|
32 | - |
|
33 | - /** |
|
34 | - * @var integer $page |
|
35 | - */ |
|
36 | - public $page; |
|
37 | - |
|
38 | - /** |
|
39 | - * @var integer $per_page |
|
40 | - */ |
|
41 | - public $per_page; |
|
42 | - |
|
43 | - /** |
|
44 | - * @var array $order_by |
|
45 | - */ |
|
46 | - public $order_by = []; |
|
47 | - |
|
48 | - /** |
|
49 | - * @var string $timezone |
|
50 | - */ |
|
51 | - public $timezone; |
|
13 | + /** |
|
14 | + * @var string $query |
|
15 | + */ |
|
16 | + public $query; |
|
17 | + |
|
18 | + /** |
|
19 | + * @var RouteFilterParametersFilters $filters |
|
20 | + */ |
|
21 | + public $filters = []; |
|
22 | + |
|
23 | + /** |
|
24 | + * @var boolean $directions |
|
25 | + */ |
|
26 | + public $directions; |
|
27 | + |
|
28 | + /** |
|
29 | + * @var boolean $notes |
|
30 | + */ |
|
31 | + public $notes; |
|
32 | + |
|
33 | + /** |
|
34 | + * @var integer $page |
|
35 | + */ |
|
36 | + public $page; |
|
37 | + |
|
38 | + /** |
|
39 | + * @var integer $per_page |
|
40 | + */ |
|
41 | + public $per_page; |
|
42 | + |
|
43 | + /** |
|
44 | + * @var array $order_by |
|
45 | + */ |
|
46 | + public $order_by = []; |
|
47 | + |
|
48 | + /** |
|
49 | + * @var string $timezone |
|
50 | + */ |
|
51 | + public $timezone; |
|
52 | 52 | } |
53 | 53 | \ No newline at end of file |
@@ -7,101 +7,101 @@ |
||
7 | 7 | |
8 | 8 | class RouteParameters extends Common |
9 | 9 | { |
10 | - public $is_upload; |
|
11 | - public $rt; |
|
12 | - public $route_name; |
|
13 | - public $route_date; |
|
14 | - public $shared_publicly; |
|
15 | - public $disable_optimization; |
|
16 | - public $optimize; |
|
17 | - public $lock_last; |
|
18 | - public $vehicle_capacity; |
|
19 | - public $vehicle_max_cargo_weight; |
|
20 | - public $vehicle_max_cargo_volume; |
|
21 | - public $vehicle_max_distance_mi; |
|
22 | - public $subtour_max_revenue; |
|
23 | - public $distance_unit; |
|
24 | - public $travel_mode; |
|
25 | - public $avoid; |
|
26 | - public $avoidance_zones = []; |
|
27 | - public $vehicle_id; |
|
28 | - public $driver_id; |
|
29 | - public $dev_lat; |
|
30 | - public $dev_lng; |
|
31 | - public $route_max_duration; |
|
32 | - public $route_email; |
|
33 | - public $store_route; |
|
34 | - public $metric; |
|
35 | - public $algorithm_type; |
|
36 | - public $member_id; |
|
37 | - public $ip; |
|
38 | - public $dm; |
|
39 | - public $dirm; |
|
40 | - public $parts; |
|
41 | - public $parts_min; |
|
42 | - public $device_id; |
|
43 | - public $device_type; |
|
44 | - public $first_drive_then_wait_between_stops; |
|
45 | - public $has_trailer; |
|
46 | - public $trailer_weight_t; |
|
47 | - public $limited_weight_t; |
|
48 | - public $weight_per_axle_t; |
|
49 | - public $truck_height; |
|
50 | - public $truck_width; |
|
51 | - public $truck_length; |
|
52 | - public $truck_hazardous_goods; |
|
53 | - public $truck_axles; |
|
54 | - public $truck_toll_road_usage; |
|
55 | - public $truck_avoid_ferries; |
|
56 | - public $truck_hwy_only; |
|
57 | - public $truck_lcv; |
|
58 | - public $truck_borders; |
|
59 | - public $truck_side_street_adherence; |
|
60 | - public $truck_config; |
|
61 | - public $truck_dim_unit; |
|
62 | - public $truck_type; |
|
63 | - public $truck_weight; |
|
64 | - public $optimization_quality; |
|
65 | - public $override_addresses = []; |
|
66 | - public $max_tour_size; |
|
67 | - public $min_tour_size; |
|
68 | - public $uturn; |
|
69 | - public $leftturn; |
|
70 | - public $rightturn; |
|
71 | - public $route_time_multiplier; |
|
72 | - public $route_service_time_multiplier; |
|
73 | - public $optimization_engine; |
|
74 | - public $is_dynamic_start_time; |
|
75 | - public $bundling; |
|
10 | + public $is_upload; |
|
11 | + public $rt; |
|
12 | + public $route_name; |
|
13 | + public $route_date; |
|
14 | + public $shared_publicly; |
|
15 | + public $disable_optimization; |
|
16 | + public $optimize; |
|
17 | + public $lock_last; |
|
18 | + public $vehicle_capacity; |
|
19 | + public $vehicle_max_cargo_weight; |
|
20 | + public $vehicle_max_cargo_volume; |
|
21 | + public $vehicle_max_distance_mi; |
|
22 | + public $subtour_max_revenue; |
|
23 | + public $distance_unit; |
|
24 | + public $travel_mode; |
|
25 | + public $avoid; |
|
26 | + public $avoidance_zones = []; |
|
27 | + public $vehicle_id; |
|
28 | + public $driver_id; |
|
29 | + public $dev_lat; |
|
30 | + public $dev_lng; |
|
31 | + public $route_max_duration; |
|
32 | + public $route_email; |
|
33 | + public $store_route; |
|
34 | + public $metric; |
|
35 | + public $algorithm_type; |
|
36 | + public $member_id; |
|
37 | + public $ip; |
|
38 | + public $dm; |
|
39 | + public $dirm; |
|
40 | + public $parts; |
|
41 | + public $parts_min; |
|
42 | + public $device_id; |
|
43 | + public $device_type; |
|
44 | + public $first_drive_then_wait_between_stops; |
|
45 | + public $has_trailer; |
|
46 | + public $trailer_weight_t; |
|
47 | + public $limited_weight_t; |
|
48 | + public $weight_per_axle_t; |
|
49 | + public $truck_height; |
|
50 | + public $truck_width; |
|
51 | + public $truck_length; |
|
52 | + public $truck_hazardous_goods; |
|
53 | + public $truck_axles; |
|
54 | + public $truck_toll_road_usage; |
|
55 | + public $truck_avoid_ferries; |
|
56 | + public $truck_hwy_only; |
|
57 | + public $truck_lcv; |
|
58 | + public $truck_borders; |
|
59 | + public $truck_side_street_adherence; |
|
60 | + public $truck_config; |
|
61 | + public $truck_dim_unit; |
|
62 | + public $truck_type; |
|
63 | + public $truck_weight; |
|
64 | + public $optimization_quality; |
|
65 | + public $override_addresses = []; |
|
66 | + public $max_tour_size; |
|
67 | + public $min_tour_size; |
|
68 | + public $uturn; |
|
69 | + public $leftturn; |
|
70 | + public $rightturn; |
|
71 | + public $route_time_multiplier; |
|
72 | + public $route_service_time_multiplier; |
|
73 | + public $optimization_engine; |
|
74 | + public $is_dynamic_start_time; |
|
75 | + public $bundling; |
|
76 | 76 | |
77 | - public static function fromArray(array $params) |
|
78 | - { |
|
79 | - $routeParams = new self(); |
|
80 | - foreach ($params as $key => $value) { |
|
81 | - if (property_exists($routeParams, $key)) { |
|
82 | - $routeParams->{$key} = $value; |
|
83 | - } |
|
84 | - } |
|
77 | + public static function fromArray(array $params) |
|
78 | + { |
|
79 | + $routeParams = new self(); |
|
80 | + foreach ($params as $key => $value) { |
|
81 | + if (property_exists($routeParams, $key)) { |
|
82 | + $routeParams->{$key} = $value; |
|
83 | + } |
|
84 | + } |
|
85 | 85 | |
86 | - return $routeParams; |
|
87 | - } |
|
86 | + return $routeParams; |
|
87 | + } |
|
88 | 88 | |
89 | - public function setAddressBundle($addressBundle) |
|
90 | - { |
|
91 | - $this->bundling = $addressBundle; |
|
92 | - } |
|
89 | + public function setAddressBundle($addressBundle) |
|
90 | + { |
|
91 | + $this->bundling = $addressBundle; |
|
92 | + } |
|
93 | 93 | |
94 | - public function getAddressBundle() |
|
95 | - { |
|
96 | - return $this->bundling; |
|
97 | - } |
|
94 | + public function getAddressBundle() |
|
95 | + { |
|
96 | + return $this->bundling; |
|
97 | + } |
|
98 | 98 | |
99 | - public static function getAllProperties() |
|
100 | - { |
|
101 | - $routeParams = new self(); |
|
99 | + public static function getAllProperties() |
|
100 | + { |
|
101 | + $routeParams = new self(); |
|
102 | 102 | |
103 | - $fields = array_keys(get_object_vars($routeParams)); |
|
103 | + $fields = array_keys(get_object_vars($routeParams)); |
|
104 | 104 | |
105 | - return $fields; |
|
106 | - } |
|
105 | + return $fields; |
|
106 | + } |
|
107 | 107 | } |
@@ -6,13 +6,13 @@ |
||
6 | 6 | /** Fuel consumption units enumeration. */ |
7 | 7 | class FuelConsumptionUnits |
8 | 8 | { |
9 | - const LITERS_PER_100_KILOMETERS = 'L/100km'; |
|
9 | + const LITERS_PER_100_KILOMETERS = 'L/100km'; |
|
10 | 10 | |
11 | - const KILOMETERS_PER_LITER = 'km/l'; |
|
11 | + const KILOMETERS_PER_LITER = 'km/l'; |
|
12 | 12 | |
13 | - const MILES_PER_GALLON_US = 'mpg'; |
|
13 | + const MILES_PER_GALLON_US = 'mpg'; |
|
14 | 14 | |
15 | - const MILES_PER_GALLON_UK = 'mpg uk'; |
|
15 | + const MILES_PER_GALLON_UK = 'mpg uk'; |
|
16 | 16 | |
17 | - const MILES_PER_LITER = 'mi/l'; |
|
17 | + const MILES_PER_LITER = 'mi/l'; |
|
18 | 18 | } |
19 | 19 | \ No newline at end of file |
@@ -6,7 +6,7 @@ |
||
6 | 6 | /** Vehicle size (height, weidth, length) units. */ |
7 | 7 | class VehicleSizeUnits |
8 | 8 | { |
9 | - const METER = 'm'; |
|
9 | + const METER = 'm'; |
|
10 | 10 | |
11 | - const FOOT = 'ft'; |
|
11 | + const FOOT = 'ft'; |
|
12 | 12 | } |
13 | 13 | \ No newline at end of file |
@@ -6,9 +6,9 @@ |
||
6 | 6 | /** Vehicle weight units. */ |
7 | 7 | class VehicleWeightUnits |
8 | 8 | { |
9 | - const KILOGRAM = 'kg'; |
|
9 | + const KILOGRAM = 'kg'; |
|
10 | 10 | |
11 | - const POUND = 'lb'; |
|
11 | + const POUND = 'lb'; |
|
12 | 12 | |
13 | - const TONNE = 't'; |
|
13 | + const TONNE = 't'; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -6,93 +6,93 @@ |
||
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"; |
|
39 | + const ACCOUNT_PROFILE = self::MAIN_HOST . "/profile-api"; |
|
40 | 40 | |
41 | - // <editor-fold defaultstate="collapsed" desc="Vehicles"> |
|
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"; |
|
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 | 50 | |
51 | - // </editor-fold> |
|
51 | + // </editor-fold> |
|
52 | 52 | |
53 | - // <editor-fold defaultstate="collapsed" desc="Telematicx Platform"> |
|
53 | + // <editor-fold defaultstate="collapsed" desc="Telematicx Platform"> |
|
54 | 54 | |
55 | - const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
|
55 | + const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
|
56 | 56 | |
57 | - const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
|
58 | - const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
57 | + const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
|
58 | + const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
59 | 59 | |
60 | - const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
61 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
62 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
60 | + const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
61 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
62 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
63 | 63 | |
64 | - const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
65 | - const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
66 | - const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
64 | + const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
65 | + const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
66 | + const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
67 | 67 | |
68 | - const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
69 | - const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
70 | - const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
71 | - const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
68 | + const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
69 | + const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
70 | + const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
71 | + const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
72 | 72 | |
73 | - const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
73 | + const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
74 | 74 | |
75 | - const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
75 | + const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
76 | 76 | |
77 | - const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
78 | - const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
79 | - const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
77 | + const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
78 | + const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
79 | + const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
80 | 80 | |
81 | - const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
82 | - const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
83 | - const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
84 | - const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
81 | + const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
82 | + const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
83 | + const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
84 | + const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
85 | 85 | |
86 | - const TELEMATICS_MEMBER = self::STAGING_HOST; |
|
86 | + const TELEMATICS_MEMBER = self::STAGING_HOST; |
|
87 | 87 | |
88 | - const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
88 | + const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
89 | 89 | |
90 | - const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
91 | - const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
92 | - const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
90 | + const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
91 | + const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
92 | + const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
93 | 93 | |
94 | - const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
95 | - const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
94 | + const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
95 | + const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
96 | 96 | |
97 | - // </editor-fold> |
|
97 | + // </editor-fold> |
|
98 | 98 | } |
99 | 99 | \ No newline at end of file |
@@ -14,39 +14,39 @@ 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"; |
|
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 | 50 | |
51 | 51 | // </editor-fold> |
52 | 52 | |
@@ -55,44 +55,44 @@ discard block |
||
55 | 55 | const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
56 | 56 | |
57 | 57 | const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
58 | - const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
58 | + const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST."/connections/{connection_token}/vehicles"; |
|
59 | 59 | |
60 | - const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
61 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
62 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
60 | + const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST."/access-tokens"; |
|
61 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST."/access-token-schedules"; |
|
62 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST."/access-token-schedules/{schedule_id}/items"; |
|
63 | 63 | |
64 | - const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
65 | - const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
66 | - const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
64 | + const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST."/vehicle-groups"; |
|
65 | + const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST."/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
66 | + const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST."/vehicles/{vehicle_id}/{relation}"; |
|
67 | 67 | |
68 | - const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
69 | - const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
70 | - const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
71 | - const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
68 | + const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST."/info/members"; |
|
69 | + const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST."/info/vehicles"; |
|
70 | + const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST."/info/vehicle/{vehicle_id}/track"; |
|
71 | + const TELEMATICS_INFO_MODULES = self::STAGING_HOST."/info/members"; |
|
72 | 72 | |
73 | - const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
73 | + const TELEMATICS_ADDRESSES = self::STAGING_HOST."/addresses"; |
|
74 | 74 | |
75 | - const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
75 | + const TELEMATICS_Errors = self::STAGING_HOST."/errors"; |
|
76 | 76 | |
77 | - const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
78 | - const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
79 | - const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
77 | + const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST."/customers/{customer_id}/notifications"; |
|
78 | + const TELEMATICS_CUSTOMERS = self::STAGING_HOST."/customers"; |
|
79 | + const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST."/customers/{customer_id}"; |
|
80 | 80 | |
81 | - const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
82 | - const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
83 | - const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
84 | - const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
81 | + const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST."/notification-schedules/{notification_schedule_id}/items"; |
|
82 | + const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST."/notification-schedules"; |
|
83 | + const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST."/notification-schedules/{schedule_id}"; |
|
84 | + const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST."/one-time-notifications"; |
|
85 | 85 | |
86 | 86 | const TELEMATICS_MEMBER = self::STAGING_HOST; |
87 | 87 | |
88 | - const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
88 | + const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST."/user-activated-modules"; |
|
89 | 89 | |
90 | - const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
91 | - const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
92 | - const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
90 | + const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}"; |
|
91 | + const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles"; |
|
92 | + const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
93 | 93 | |
94 | - const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
95 | - const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
94 | + const TELEMATICS_VENDORS = self::STAGING_HOST."/vendors"; |
|
95 | + const TELEMATICS_VENDOR_ID = self::STAGING_HOST."/vendors/{vendor_id}"; |
|
96 | 96 | |
97 | 97 | // </editor-fold> |
98 | 98 | } |
99 | 99 | \ No newline at end of file |
@@ -6,17 +6,17 @@ |
||
6 | 6 | /** Enumeration of the fuel types. */ |
7 | 7 | class FuelTypes |
8 | 8 | { |
9 | - const UNLEADED_87 = "unleaded 87"; |
|
9 | + const UNLEADED_87 = "unleaded 87"; |
|
10 | 10 | |
11 | - const UNLEADED_89 = "unleaded 89"; |
|
11 | + const UNLEADED_89 = "unleaded 89"; |
|
12 | 12 | |
13 | - const UNLEADED_91 = "unleaded 91"; |
|
13 | + const UNLEADED_91 = "unleaded 91"; |
|
14 | 14 | |
15 | - const UNLEADED_93 = "unleaded 93"; |
|
15 | + const UNLEADED_93 = "unleaded 93"; |
|
16 | 16 | |
17 | - const DIESEL = "diesel"; |
|
17 | + const DIESEL = "diesel"; |
|
18 | 18 | |
19 | - const ELECTRIC = "electric"; |
|
19 | + const ELECTRIC = "electric"; |
|
20 | 20 | |
21 | - const HYBRID = "hybrid"; |
|
21 | + const HYBRID = "hybrid"; |
|
22 | 22 | } |
23 | 23 | \ No newline at end of file |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | class DistanceUnit |
6 | 6 | { |
7 | - const MILES = 'mi'; |
|
8 | - const KILOMETERS = 'km'; |
|
7 | + const MILES = 'mi'; |
|
8 | + const KILOMETERS = 'km'; |
|
9 | 9 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class OptimizationType |
6 | 6 | { |
7 | - const DISTANCE = 'Distance'; |
|
8 | - const TIME = 'Time'; |
|
9 | - const TIME_WITH_TRAFFIC = 'timeWithTraffic'; |
|
7 | + const DISTANCE = 'Distance'; |
|
8 | + const TIME = 'Time'; |
|
9 | + const TIME_WITH_TRAFFIC = 'timeWithTraffic'; |
|
10 | 10 | } |