@@ -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 |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class DeviceType |
6 | 6 | { |
7 | - const WEB = 'web'; |
|
8 | - const IPHONE = 'iphone'; |
|
9 | - const IPAD = 'ipad'; |
|
10 | - const ANDROID_PHONE = 'android_phone'; |
|
11 | - const ANDROID_TABLET = 'android_tablet'; |
|
7 | + const WEB = 'web'; |
|
8 | + const IPHONE = 'iphone'; |
|
9 | + const IPAD = 'ipad'; |
|
10 | + const ANDROID_PHONE = 'android_phone'; |
|
11 | + const ANDROID_TABLET = 'android_tablet'; |
|
12 | 12 | } |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class TravelMode |
6 | 6 | { |
7 | - const DRIVING = 'Driving'; |
|
8 | - const WALKING = 'Walking'; |
|
9 | - const TRUCKING = 'Trucking'; |
|
10 | - const CYCLING = 'Cycling'; |
|
11 | - const TRANSIT = 'Transit'; |
|
7 | + const DRIVING = 'Driving'; |
|
8 | + const WALKING = 'Walking'; |
|
9 | + const TRUCKING = 'Trucking'; |
|
10 | + const CYCLING = 'Cycling'; |
|
11 | + const TRANSIT = 'Transit'; |
|
12 | 12 | } |
@@ -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 | } |
@@ -10,67 +10,67 @@ |
||
10 | 10 | */ |
11 | 11 | class OrderInventory extends \Route4Me\Common |
12 | 12 | { |
13 | - /** Unique inventory ID |
|
14 | - * @var integer $inventory_id |
|
15 | - */ |
|
16 | - public $inventory_id; |
|
17 | - |
|
18 | - /** Unique order ID |
|
19 | - * @var integer $order_id |
|
20 | - */ |
|
21 | - public $order_id; |
|
22 | - |
|
23 | - /** Order inventory name |
|
24 | - * @var string $name |
|
25 | - */ |
|
26 | - public $name; |
|
27 | - |
|
28 | - /** Order inventory quantity |
|
29 | - * @var integer $quantity |
|
30 | - */ |
|
31 | - public $quantity; |
|
32 | - |
|
33 | - /** Total weight of the order inventory. |
|
34 | - * @var double $total_weight |
|
35 | - */ |
|
36 | - public $total_weight; |
|
37 | - |
|
38 | - /** Total volume of the inventory. |
|
39 | - * @var double $total_volume |
|
40 | - */ |
|
41 | - public $total_volume; |
|
42 | - |
|
43 | - /** Total cost of the inventory. |
|
44 | - * @var double $total_cost |
|
45 | - */ |
|
46 | - public $total_cost; |
|
47 | - |
|
48 | - /** Total price of the inventory. |
|
49 | - * @var double $total_price |
|
50 | - */ |
|
51 | - public $total_price; |
|
52 | - |
|
53 | - /** When the inventory created. |
|
54 | - * @var string $created_at |
|
55 | - */ |
|
56 | - public $created_at; |
|
57 | - |
|
58 | - /** When the inventory updated. |
|
59 | - * @var string $updated_at |
|
60 | - */ |
|
61 | - public $updated_at; |
|
62 | - |
|
63 | - public static function fromArray(array $params) |
|
64 | - { |
|
65 | - $orderInventory = new self(); |
|
66 | - |
|
67 | - foreach ($params as $key => $value) { |
|
68 | - if (property_exists($orderInventory, $key)) { |
|
69 | - $orderInventory->{$key} = $value; |
|
70 | - } |
|
71 | - } |
|
72 | - |
|
73 | - return $orderInventory; |
|
74 | - } |
|
13 | + /** Unique inventory ID |
|
14 | + * @var integer $inventory_id |
|
15 | + */ |
|
16 | + public $inventory_id; |
|
17 | + |
|
18 | + /** Unique order ID |
|
19 | + * @var integer $order_id |
|
20 | + */ |
|
21 | + public $order_id; |
|
22 | + |
|
23 | + /** Order inventory name |
|
24 | + * @var string $name |
|
25 | + */ |
|
26 | + public $name; |
|
27 | + |
|
28 | + /** Order inventory quantity |
|
29 | + * @var integer $quantity |
|
30 | + */ |
|
31 | + public $quantity; |
|
32 | + |
|
33 | + /** Total weight of the order inventory. |
|
34 | + * @var double $total_weight |
|
35 | + */ |
|
36 | + public $total_weight; |
|
37 | + |
|
38 | + /** Total volume of the inventory. |
|
39 | + * @var double $total_volume |
|
40 | + */ |
|
41 | + public $total_volume; |
|
42 | + |
|
43 | + /** Total cost of the inventory. |
|
44 | + * @var double $total_cost |
|
45 | + */ |
|
46 | + public $total_cost; |
|
47 | + |
|
48 | + /** Total price of the inventory. |
|
49 | + * @var double $total_price |
|
50 | + */ |
|
51 | + public $total_price; |
|
52 | + |
|
53 | + /** When the inventory created. |
|
54 | + * @var string $created_at |
|
55 | + */ |
|
56 | + public $created_at; |
|
57 | + |
|
58 | + /** When the inventory updated. |
|
59 | + * @var string $updated_at |
|
60 | + */ |
|
61 | + public $updated_at; |
|
62 | + |
|
63 | + public static function fromArray(array $params) |
|
64 | + { |
|
65 | + $orderInventory = new self(); |
|
66 | + |
|
67 | + foreach ($params as $key => $value) { |
|
68 | + if (property_exists($orderInventory, $key)) { |
|
69 | + $orderInventory->{$key} = $value; |
|
70 | + } |
|
71 | + } |
|
72 | + |
|
73 | + return $orderInventory; |
|
74 | + } |
|
75 | 75 | |
76 | 76 | } |
77 | 77 | \ No newline at end of file |