You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: source/includes/_utilities.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ In addition to the event based system for working with sites, some utility metho
4
4
5
5
## API.utils.getAttributeForVehicles(attribute)
6
6
7
-
> Usage:
7
+
> **Usage:**
8
8
9
9
```javascript
10
10
(asyncAPILoader=> {
@@ -32,7 +32,7 @@ This can be used to obtain an array of attributes for the currently displayed ve
32
32
33
33
## API.utils.getConfig(testConfig)
34
34
35
-
> Usage:
35
+
> **Usage:**
36
36
37
37
```javascript
38
38
(asyncAPILoader=> {
@@ -56,7 +56,7 @@ This fetches a JavaScript object of your integration's configuration for the cur
56
56
57
57
## API.utils.getDealerData()
58
58
59
-
> Usage:
59
+
> **Usage:**
60
60
61
61
```javascript
62
62
(asyncAPILoader=> {
@@ -72,7 +72,7 @@ This fetches the <a href="#dealership-info-event">Dealership Info Event object</
72
72
73
73
## API.utils.getJwtForSite()
74
74
75
-
> Usage:
75
+
> **Usage:**
76
76
77
77
```javascript
78
78
(asyncAPILoader=> {
@@ -92,7 +92,7 @@ This fetches an object containing a Java Web Token which can be used to secure/v
92
92
93
93
## API.utils.getJwtForVehicles()
94
94
95
-
> Usage:
95
+
> **Usage:**
96
96
97
97
```javascript
98
98
(asyncAPILoader=> {
@@ -112,7 +112,7 @@ This fetches an object containing the array of VINs on the current page and a co
112
112
113
113
## API.utils.getPageData()
114
114
115
-
> Usage:
115
+
> **Usage:**
116
116
117
117
```javascript
118
118
(asyncAPILoader=> {
@@ -131,7 +131,7 @@ The utility method `getUnlockedVehicles` returns an array of vehicle UUIDs where
131
131
132
132
This can be useful when paired with the `unlockPricing` method. When `vehicle-data-updated-v1` triggers, a list of currently displayed vehicles is provided. You could gather the list of vehicles, skip the ones which are already unlocked, and then call your service for a smaller subset of vehicles which may need to be unlocked.
133
133
134
-
> Usage:
134
+
> **Usage:**
135
135
136
136
```javascript
137
137
(asyncAPILoader=> {
@@ -170,7 +170,7 @@ This can be useful when paired with the `unlockPricing` method. When `vehicle-da
170
170
171
171
## API.utils.getUrlParams()
172
172
173
-
> Usage:
173
+
> **Usage:**
174
174
175
175
```javascript
176
176
(asyncAPILoader=> {
@@ -199,7 +199,7 @@ Will return the following object:
199
199
200
200
## API.utils.getVehicleData()
201
201
202
-
> Usage:
202
+
> **Usage:**
203
203
204
204
```javascript
205
205
(asyncAPILoader=> {
@@ -218,7 +218,7 @@ You can provide the vehicles to unlock by passing an array of vehicle UUIDs to t
218
218
219
219
The method must be called on each page where you want the vehicles to be unlocked. If a vehicle has been previously unlocked, it will be initially displayed unlocked on a subsequent view of the vehicle. However, when faceting and searching vehicles it is common for a mix of locked and unlocked vehicles to be rendered. Therefore, it is necessary to call the function each time the `vehicle-data-updated-v1` event is triggered.
0 commit comments