public class SterlingOMSAPIHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
| static java.lang.String | API_NAME_GET_COMPLETE_ORDER_DETAILS
The name for Sterling OMS getCompleteOrderDetails API
|
| static java.lang.String | API_NAME_GET_ORDER_LINE_DETAILS
The name for Sterling OMS getOrderLineDetails API
|
| static java.lang.String | COMPONENT_NAME
The component name for Order
|
| static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
| static java.lang.String | SERVICE_NAME_GET_COMPLETE_ORDER_DETAILS
The service name for Sterling OMS getCompleteOrderDetails API
|
| static java.lang.String | SERVICE_NAME_GET_ORDER_LINE_DETAILS
The service name for Sterling OMS getOrderLineDetails API
|
| Constructor and Description |
|---|
| SterlingOMSAPIHelper(java.lang.String storeId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String | callScAPI_Str(java.util.Map paraMap, java.lang.String apiName)
This method calls sterling API, and return output as JSON string.
|
| org.w3c.dom.Document | callScAPI(java.util.Map paraMap, java.lang.String apiName)
This method calls sterling API, and return output as type of org.w3c.dom.Document.
|
| org.w3c.dom.Document | composeInputForGetCompleteOrderDetails(java.util.Map paraMap)
This method constructs the input XML for calling sterling API getCompleteOrderDetails.
|
| org.w3c.dom.Document | composeInputForGetOrderLineDetails(java.util.Map paraMap)
This method constructs the input XML for calling sterling API getOrderLineDetails.
|
| static java.lang.String | convertDocumentToString(org.w3c.dom.Document xmlDocument, boolean isWithIndent)
This method converts a Document into a String.
|
| void | createScClientHelperInstance(java.lang.String apiName)
This method gets an instance of com.ibm.commerce.integration.sterling.oms.SterlingClientHelper.
|
| void | createScClientHelperInstanceForService()
This method gets an instance of com.ibm.commerce.integration.sterling.oms.SterlingClientHelper.
|
| protected static java.lang.String | getAttribute(org.apache.commons.json.JSONObject obj, java.lang.String key)
Get attribute from JSON object with specified key.
|
| org.w3c.dom.Document | getCompleteOrderDetails(org.w3c.dom.Document input)
This method calls the Sterling getCompleteOrderDetails API and returns the response.
|
| org.w3c.dom.Document | getDataByService(org.w3c.dom.Document input, java.lang.String serviceName)
This method calls the Sterling getCompleteOrderDetails API and returns the response.
|
| protected static org.apache.commons.json.JSONObject | getJSONObj(org.apache.commons.json.JSONObject obj, java.lang.String key)
Get JSON object with specified key.
|
| protected static java.util.ArrayList | getJSONObjectList(org.apache.commons.json.JSONObject jsonObj, java.lang.String firstEleName, java.lang.String secEleName)
Get second level child elements.
|
| org.w3c.dom.Document | getOrderLineDetails(org.w3c.dom.Document input)
This method calls the Sterling getOrderLineDetails API and returns the response.
|
| protected void | parseTaxes(org.apache.commons.json.JSONObject orderObj)
Parse tax related info from API result.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String API_NAME_GET_COMPLETE_ORDER_DETAILS
public static final java.lang.String API_NAME_GET_ORDER_LINE_DETAILS
public static final java.lang.String SERVICE_NAME_GET_COMPLETE_ORDER_DETAILS
public static final java.lang.String SERVICE_NAME_GET_ORDER_LINE_DETAILS
public static final java.lang.String COMPONENT_NAME
public SterlingOMSAPIHelper(java.lang.String storeId)
throws ECSystemException
public void createScClientHelperInstance(java.lang.String apiName)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
public void createScClientHelperInstanceForService()
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
public org.w3c.dom.Document callScAPI(java.util.Map paraMap,
java.lang.String apiName)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException,
ECException
public org.w3c.dom.Document getCompleteOrderDetails(org.w3c.dom.Document input)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
public org.w3c.dom.Document getDataByService(org.w3c.dom.Document input,
java.lang.String serviceName)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
public org.w3c.dom.Document getOrderLineDetails(org.w3c.dom.Document input)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
public org.w3c.dom.Document composeInputForGetCompleteOrderDetails(java.util.Map paraMap)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
public org.w3c.dom.Document composeInputForGetOrderLineDetails(java.util.Map paraMap)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
public java.lang.String callScAPI_Str(java.util.Map paraMap,
java.lang.String apiName)
throws com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException,
ECException
public static java.lang.String convertDocumentToString(org.w3c.dom.Document xmlDocument,
boolean isWithIndent)
protected static java.util.ArrayList getJSONObjectList(org.apache.commons.json.JSONObject jsonObj,
java.lang.String firstEleName,
java.lang.String secEleName)
throws org.apache.commons.json.JSONException
protected void parseTaxes(org.apache.commons.json.JSONObject orderObj)
throws org.apache.commons.json.JSONException
protected static org.apache.commons.json.JSONObject getJSONObj(org.apache.commons.json.JSONObject obj,
java.lang.String key)
protected static java.lang.String getAttribute(org.apache.commons.json.JSONObject obj,
java.lang.String key)