OrderGuide - Scoped
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The OrderGuide API enables you to initialize and view order guide details.
To use this class in a scoped application, use the sn_sc
namespace
identifier. The Service Catalog Scoped API plugin (com.glideapp.servicecatalog.scoped.api)
that is enabled by default is required to access the OrderGuide API.
OrderGuide - OrderGuide(String sys_id)
Creates an instance of the OrderGuide class with the specified sys_id.
Name | Type | Description |
---|---|---|
sys_id | String | sys_id of the OrderGuide. |
Example
Example:
OrderGuide - getID()
Returns the sys_id of the order guide.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | sys_id of the order guide. |
Example
Example:
Output:
OrderGuide - init(Map request)
Initialises the order guide with the specified catalog items and the variables, and returns the order guide.
Name | Type | Description |
---|---|---|
request | Map | A JSON object with the Catalog item and variable details. |
Type | Description |
---|---|
Map | A JSON object with the initialised order guide details. |
Example
Example:
Output:
OrderGuide - isIncludeItems()
Specifies if the Show Include Toggle (include_items) check box is selected for the specified order guide.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Returns true if the Show Include Toggle check box is selected for the specified order guide. Else, returns false. |
Example
Output:
OrderGuide - isTwoStep()
Specifies if the two-step checkout is enabled.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Returns true if the two-step checkout is enabled. Else returns false. |
Example
Example:
Output:
OrderGuide - isUseCustomCart()
Specifies if a separate cart (different from that for catalog items) usage is enabled for a two-step order guide.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Returns true if a separate cart usage is enabled for a two-step order guide. Else, returns false. |
Example
Example:
Output:
OrderGuide - navigateFromMap(Map itemDetails)
Navigates to the catalog items of an order guide.
Name | Type | Description |
---|---|---|
itemDetails | Map | A JSON object with details of catalog items in the order guide. |
Type | Description |
---|---|
void |
Example
Example: