@@ -3,26 +3,26 @@ |
||
3 | 3 | |
4 | 4 | class StatusUpdateType |
5 | 5 | { |
6 | - const PICKUP = 'pickup'; |
|
7 | - const DROPOFF = 'dropoff'; |
|
8 | - const NOANSWER = 'noanswer'; |
|
9 | - const NOTFOUND = 'notfound'; |
|
10 | - const NOTPAID = 'notpaid'; |
|
11 | - const PAID = 'paid'; |
|
12 | - const WRONGDELIVERY = 'wrongdelivery'; |
|
13 | - const WRONGADDRESSRECIPIENT = 'wrongaddressrecipient'; |
|
14 | - const NOTPRESENT = 'notpresent'; |
|
15 | - const PARTS_MISSING = 'parts_missing'; |
|
16 | - const SERVICE_RENDERED = 'service_rendered'; |
|
17 | - const FOLLOW_UP = 'follow_up'; |
|
18 | - const LEFT_INFORMATION = 'left_information'; |
|
19 | - const SPOKE_WITH_DECISION_MAKER = 'spoke_with_decision_maker'; |
|
20 | - const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer'; |
|
21 | - const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer'; |
|
22 | - const COMPETITIVE_ACCOUNT = 'competitive_account'; |
|
23 | - const SCHEDULED_FOLLOW_UP_MEETING = 'scheduled_follow_up_meeting'; |
|
24 | - const SCHEDULED_LUNCH = 'scheduled_lunch'; |
|
25 | - const SCHEDULED_PRODUCT_DEMO = 'scheduled_product_demo'; |
|
26 | - const SCHEDULED_CLINICAL_DEMO = 'scheduled_clinical_demo'; |
|
27 | - const NO_OPPORTUNITY = 'no_opportunity'; |
|
6 | + const PICKUP = 'pickup'; |
|
7 | + const DROPOFF = 'dropoff'; |
|
8 | + const NOANSWER = 'noanswer'; |
|
9 | + const NOTFOUND = 'notfound'; |
|
10 | + const NOTPAID = 'notpaid'; |
|
11 | + const PAID = 'paid'; |
|
12 | + const WRONGDELIVERY = 'wrongdelivery'; |
|
13 | + const WRONGADDRESSRECIPIENT = 'wrongaddressrecipient'; |
|
14 | + const NOTPRESENT = 'notpresent'; |
|
15 | + const PARTS_MISSING = 'parts_missing'; |
|
16 | + const SERVICE_RENDERED = 'service_rendered'; |
|
17 | + const FOLLOW_UP = 'follow_up'; |
|
18 | + const LEFT_INFORMATION = 'left_information'; |
|
19 | + const SPOKE_WITH_DECISION_MAKER = 'spoke_with_decision_maker'; |
|
20 | + const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer'; |
|
21 | + const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer'; |
|
22 | + const COMPETITIVE_ACCOUNT = 'competitive_account'; |
|
23 | + const SCHEDULED_FOLLOW_UP_MEETING = 'scheduled_follow_up_meeting'; |
|
24 | + const SCHEDULED_LUNCH = 'scheduled_lunch'; |
|
25 | + const SCHEDULED_PRODUCT_DEMO = 'scheduled_product_demo'; |
|
26 | + const SCHEDULED_CLINICAL_DEMO = 'scheduled_clinical_demo'; |
|
27 | + const NO_OPPORTUNITY = 'no_opportunity'; |
|
28 | 28 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | class OptimizationType |
5 | 5 | { |
6 | - const DISTANCE = 'Distance'; |
|
7 | - const TIME = 'Time'; |
|
8 | - const TIME_WITH_TRAFFIC = 'timeWithTraffic'; |
|
6 | + const DISTANCE = 'Distance'; |
|
7 | + const TIME = 'Time'; |
|
8 | + const TIME_WITH_TRAFFIC = 'timeWithTraffic'; |
|
9 | 9 | } |
@@ -3,10 +3,10 @@ |
||
3 | 3 | |
4 | 4 | class OptimizationStates |
5 | 5 | { |
6 | - const INITIAL = 1; |
|
7 | - const MATRIX_PROCESSING = 2; |
|
8 | - const OPTIMIZING = 3; |
|
9 | - const OPTIMIZED = 4; |
|
10 | - const ERROR = 5; |
|
11 | - const COMPUTING_DIRECTIONS = 6; |
|
6 | + const INITIAL = 1; |
|
7 | + const MATRIX_PROCESSING = 2; |
|
8 | + const OPTIMIZING = 3; |
|
9 | + const OPTIMIZED = 4; |
|
10 | + const ERROR = 5; |
|
11 | + const COMPUTING_DIRECTIONS = 6; |
|
12 | 12 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | class TerritoryTypes |
5 | 5 | { |
6 | - const CIRCLE = 'circle'; |
|
7 | - const POLY = 'poly'; |
|
8 | - const RECT = 'rect'; |
|
6 | + const CIRCLE = 'circle'; |
|
7 | + const POLY = 'poly'; |
|
8 | + const RECT = 'rect'; |
|
9 | 9 | } |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
15 | 15 | |
16 | 16 | $activityParameters = ActivityParameters::fromArray(array( |
17 | - "limit" => 10, |
|
18 | - "offset" => 0 |
|
17 | + "limit" => 10, |
|
18 | + "offset" => 0 |
|
19 | 19 | )); |
20 | 20 | |
21 | 21 | $activities = new ActivityParameters(); |
@@ -23,6 +23,6 @@ discard block |
||
23 | 23 | $results = $activities->getValue($actresults, "results"); |
24 | 24 | |
25 | 25 | foreach ($results as $result) { |
26 | - Route4Me::simplePrint($result); |
|
27 | - echo "<br>"; |
|
26 | + Route4Me::simplePrint($result); |
|
27 | + echo "<br>"; |
|
28 | 28 | } |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | Route4Me::setApiKey('11111111111111111111111111111111'); |
17 | 17 | |
18 | 18 | $activityParameters = ActivityParameters::fromArray(array( |
19 | - "limit" => 10, |
|
20 | - "offset" => 0, |
|
21 | - "start" => strtotime("-1 week") |
|
19 | + "limit" => 10, |
|
20 | + "offset" => 0, |
|
21 | + "start" => strtotime("-1 week") |
|
22 | 22 | )); |
23 | 23 | |
24 | 24 | $activities = new ActivityParameters(); |
@@ -26,6 +26,6 @@ discard block |
||
26 | 26 | $results = $activities->getValue($actresults, "results"); |
27 | 27 | |
28 | 28 | foreach ($results as $result) { |
29 | - Route4Me::simplePrint($result); |
|
30 | - echo "<br>"; |
|
29 | + Route4Me::simplePrint($result); |
|
30 | + echo "<br>"; |
|
31 | 31 | } |
@@ -15,14 +15,14 @@ |
||
15 | 15 | $vehicle = new Vehicle(); |
16 | 16 | |
17 | 17 | $vehicleParameters = array( |
18 | - "with_pagination" => true, |
|
19 | - "page" => 2, |
|
20 | - "perPage" => 10 |
|
21 | - ); |
|
18 | + "with_pagination" => true, |
|
19 | + "page" => 2, |
|
20 | + "perPage" => 10 |
|
21 | + ); |
|
22 | 22 | |
23 | 23 | $response = $vehicle->getVehicles($vehicleParameters); |
24 | 24 | |
25 | 25 | foreach ($response['data'] as $key => $vehicle) { |
26 | - Route4Me::simplePrint($vehicle); |
|
27 | - echo "<br>"; |
|
26 | + Route4Me::simplePrint($vehicle); |
|
27 | + echo "<br>"; |
|
28 | 28 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | // Delete member from the user's account |
26 | 26 | $params = Member::fromArray(array ( |
27 | - "member_id" => $randomMemberID |
|
27 | + "member_id" => $randomMemberID |
|
28 | 28 | )); |
29 | 29 | |
30 | 30 | $response = $member->deleteMember($params); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | assert(!is_null($randomMemberID), "There is no member of the type SUB_ACCOUNT_DRIVER in the user's account"); |
24 | 24 | |
25 | 25 | // Delete member from the user's account |
26 | -$params = Member::fromArray(array ( |
|
26 | +$params = Member::fromArray(array( |
|
27 | 27 | "member_id" => $randomMemberID |
28 | 28 | )); |
29 | 29 |
@@ -17,9 +17,9 @@ |
||
17 | 17 | // Example refers to the process of searching for the routed locations |
18 | 18 | |
19 | 19 | $params = array( |
20 | - 'offset' => 0, |
|
21 | - 'limit' => 5, |
|
22 | - 'display' => 'routed' |
|
20 | + 'offset' => 0, |
|
21 | + 'limit' => 5, |
|
22 | + 'display' => 'routed' |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $abcResult = $ablocation->searchAddressBookLocations($params); |