@@ -14,7 +14,7 @@ |
||
14 | 14 | $orderCustomField = new OrderCustomField(); |
15 | 15 | |
16 | 16 | $orderCustomFieldParameters = OrderCustomField::fromArray([ |
17 | - 'order_custom_field_id' => 183 |
|
17 | + 'order_custom_field_id' => 183 |
|
18 | 18 | ]); |
19 | 19 | |
20 | 20 | $response = $orderCustomField->removeOrderCustomUserField($orderCustomFieldParameters); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $response = $orderCustomField->getOrderCustomUserFields($orderCustomFieldParameters); |
19 | 19 | |
20 | 20 | foreach ($response as $key => $orderCustomField) { |
21 | - Route4Me::simplePrint($orderCustomField); |
|
22 | - echo '<br>'; |
|
21 | + Route4Me::simplePrint($orderCustomField); |
|
22 | + echo '<br>'; |
|
23 | 23 | } |
24 | 24 |
@@ -13,13 +13,13 @@ |
||
13 | 13 | // The example refers to the process of searching for the locations by sending JSON payload. |
14 | 14 | |
15 | 15 | $searchParameters = [ |
16 | - 'fields' => ['address_id', 'address_1', 'address_group'], |
|
17 | - 'limit' => 10, |
|
18 | - 'offset' => 0, |
|
19 | - 'filter' => [ |
|
20 | - 'query' => "Louisville", |
|
21 | - "display" => "all" |
|
22 | - ] |
|
16 | + 'fields' => ['address_id', 'address_1', 'address_group'], |
|
17 | + 'limit' => 10, |
|
18 | + 'offset' => 0, |
|
19 | + 'filter' => [ |
|
20 | + 'query' => "Louisville", |
|
21 | + "display" => "all" |
|
22 | + ] |
|
23 | 23 | ]; |
24 | 24 | |
25 | 25 | $addressBookGroups = $abGroup->searchAddressBookGroups($searchParameters); |
@@ -15,13 +15,13 @@ |
||
15 | 15 | $groupIds=$abGroup->getAddressBookGroupIdByName( 'Louisville Group Temp'); |
16 | 16 | |
17 | 17 | if ($groupIds==null) { |
18 | - include('CreateAddressBookGroup.php'); |
|
19 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
18 | + include('CreateAddressBookGroup.php'); |
|
19 | + $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | $searchParameters = [ |
23 | - 'fields' => ['address_id'], |
|
24 | - 'group_id' => $groupIds[0], |
|
23 | + 'fields' => ['address_id'], |
|
24 | + 'group_id' => $groupIds[0], |
|
25 | 25 | ]; |
26 | 26 | |
27 | 27 | $addressBookContacts = $abGroup->getAddressBookContactsByGroup($searchParameters); |
@@ -12,11 +12,11 @@ |
||
12 | 12 | |
13 | 13 | // The example refers to the process of getting the address book locations by a group ID. |
14 | 14 | |
15 | -$groupIds=$abGroup->getAddressBookGroupIdByName( 'Louisville Group Temp'); |
|
15 | +$groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
16 | 16 | |
17 | 17 | if ($groupIds==null) { |
18 | 18 | include('CreateAddressBookGroup.php'); |
19 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
19 | + $groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | $searchParameters = [ |
@@ -14,8 +14,8 @@ |
||
14 | 14 | |
15 | 15 | // Get reandom address book group |
16 | 16 | $addressBookGroupParameters = [ |
17 | - 'limit' => 20, |
|
18 | - 'offset' => 0, |
|
17 | + 'limit' => 20, |
|
18 | + 'offset' => 0, |
|
19 | 19 | ]; |
20 | 20 | |
21 | 21 | $randomGroup = $abGroup->getRandomAddressBookGroup($addressBookGroupParameters); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | $randomGroup = $abGroup->getRandomAddressBookGroup($addressBookGroupParameters); |
22 | 22 | |
23 | -if (assert(null != $randomGroup, 'Cannot get a random address book group')); |
|
23 | +if (assert(null!=$randomGroup, 'Cannot get a random address book group')); |
|
24 | 24 | |
25 | 25 | // Get the address book group by group_id |
26 | 26 | $groupId = $randomGroup['group_id']; |
@@ -17,13 +17,13 @@ |
||
17 | 17 | $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
18 | 18 | |
19 | 19 | if ($groupIds==null) { |
20 | - include('CreateAddressBookGroup.php'); |
|
21 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
20 | + include('CreateAddressBookGroup.php'); |
|
21 | + $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | $updateParameters= [ |
25 | - 'group_id' => $groupIds[0], |
|
26 | - 'group_color' => '7bd148' |
|
25 | + 'group_id' => $groupIds[0], |
|
26 | + 'group_color' => '7bd148' |
|
27 | 27 | ]; |
28 | 28 | |
29 | 29 | $results = $abGroup->updateAddressBookGroup($updateParameters); |
@@ -14,14 +14,14 @@ |
||
14 | 14 | // Note: you can find the allowed colors for the address book group at this link: |
15 | 15 | // https://github.com/route4me/route4me-json-schemas/blob/master/ColorSamples/AddressBookGroupAvailableColors.png |
16 | 16 | |
17 | -$groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
17 | +$groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
18 | 18 | |
19 | 19 | if ($groupIds==null) { |
20 | 20 | include('CreateAddressBookGroup.php'); |
21 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
21 | + $groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
22 | 22 | } |
23 | 23 | |
24 | -$updateParameters= [ |
|
24 | +$updateParameters = [ |
|
25 | 25 | 'group_id' => $groupIds[0], |
26 | 26 | 'group_color' => '7bd148' |
27 | 27 | ]; |
@@ -15,12 +15,12 @@ |
||
15 | 15 | $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
16 | 16 | |
17 | 17 | if ($groupIds==null) { |
18 | - include('CreateAddressBookGroup.php'); |
|
19 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
18 | + include('CreateAddressBookGroup.php'); |
|
19 | + $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | $updateParameters= [ |
23 | - 'group_id' => $groupIds[0] |
|
23 | + 'group_id' => $groupIds[0] |
|
24 | 24 | ]; |
25 | 25 | |
26 | 26 | $result = $abGroup->removeAddressBookGroup($updateParameters); |
@@ -12,14 +12,14 @@ |
||
12 | 12 | |
13 | 13 | // The example refers to the process of removing an address book group from a user's account. |
14 | 14 | |
15 | -$groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
15 | +$groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
16 | 16 | |
17 | 17 | if ($groupIds==null) { |
18 | 18 | include('CreateAddressBookGroup.php'); |
19 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
19 | + $groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
20 | 20 | } |
21 | 21 | |
22 | -$updateParameters= [ |
|
22 | +$updateParameters = [ |
|
23 | 23 | 'group_id' => $groupIds[0] |
24 | 24 | ]; |
25 | 25 |
@@ -15,17 +15,17 @@ |
||
15 | 15 | // https://github.com/route4me/route4me-json-schemas/blob/master/ColorSamples/AddressBookGroupAvailableColors.png |
16 | 16 | |
17 | 17 | $createParameters= [ |
18 | - 'group_name' => 'Louisville Group Temp', |
|
19 | - 'group_color' => '92e1c0', |
|
20 | - 'filter' => [ |
|
21 | - 'condition' => 'AND', |
|
22 | - 'rules' => [[ |
|
23 | - 'id' => 'address_1', |
|
24 | - 'field' => 'address_1', |
|
25 | - 'operator' => 'contains', |
|
26 | - 'value' => 'Luisville' |
|
27 | - ]] |
|
28 | - ] |
|
18 | + 'group_name' => 'Louisville Group Temp', |
|
19 | + 'group_color' => '92e1c0', |
|
20 | + 'filter' => [ |
|
21 | + 'condition' => 'AND', |
|
22 | + 'rules' => [[ |
|
23 | + 'id' => 'address_1', |
|
24 | + 'field' => 'address_1', |
|
25 | + 'operator' => 'contains', |
|
26 | + 'value' => 'Luisville' |
|
27 | + ]] |
|
28 | + ] |
|
29 | 29 | ]; |
30 | 30 | |
31 | 31 | $createdAddressBookGroup = $abGroup->createAddressBookGroup($createParameters); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | // Note: you can find the allowed colors for the address book group at this link: |
15 | 15 | // https://github.com/route4me/route4me-json-schemas/blob/master/ColorSamples/AddressBookGroupAvailableColors.png |
16 | 16 | |
17 | -$createParameters= [ |
|
17 | +$createParameters = [ |
|
18 | 18 | 'group_name' => 'Louisville Group Temp', |
19 | 19 | 'group_color' => '92e1c0', |
20 | 20 | 'filter' => [ |
@@ -13,8 +13,8 @@ |
||
13 | 13 | // The example refers to the process of getting limited number of the address book groups. |
14 | 14 | |
15 | 15 | $addressBookGroupParameters = [ |
16 | - 'limit' => 20, |
|
17 | - 'offset' => 0, |
|
16 | + 'limit' => 20, |
|
17 | + 'offset' => 0, |
|
18 | 18 | ]; |
19 | 19 | |
20 | 20 | $addressBookGroups = $abGroup->getAddressBookGroups($addressBookGroupParameters); |