public class GlobalCollectUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log
The
Log instance for this application. |
| Constructor and Description |
|---|
GlobalCollectUtils()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToPaymentDetailsParameters(PaymentDetailsIf pd,
java.lang.String name,
java.lang.String value)
Add the specified name / value pair to the parameter list on the PaymentDetails object.
|
java.math.BigDecimal |
getTotalPrice(OrderIf order)
Calculate the total amount of the order.
|
java.math.BigDecimal |
getTotalPrice(OrderIf order,
int scale)
Calculate the total amount of the order.
|
protected java.lang.String |
getXmlPath(org.w3c.dom.Node nodeIn)
Utility to get the XML path of a node
|
protected java.lang.String |
getXmlPath(org.w3c.dom.Node nodeIn,
int arrayIdx,
java.lang.String arrayLocation)
Utility to get the XML path of a node
|
java.util.Map<java.lang.String,java.lang.String> |
parseGlobalCollectResponseToMap(java.lang.String gatewayResp) |
java.util.Map<java.lang.String,java.lang.String> |
parseGlobalCollectResponseToMap(java.lang.String gatewayResp,
java.lang.String arrayLocation) |
protected org.apache.commons.logging.Log log
Log instance for this application.public java.math.BigDecimal getTotalPrice(OrderIf order)
order - the orderpublic java.math.BigDecimal getTotalPrice(OrderIf order, int scale)
order - the orderscale - the scalepublic void addToPaymentDetailsParameters(PaymentDetailsIf pd, java.lang.String name, java.lang.String value)
pd - PaymentDetails objectname - name of the new parametervalue - value of the new parameterpublic java.util.Map<java.lang.String,java.lang.String> parseGlobalCollectResponseToMap(java.lang.String gatewayResp)
throws java.lang.Exception
gatewayResp - the gatewayRespjava.lang.Exception - an unexpected exceptionpublic java.util.Map<java.lang.String,java.lang.String> parseGlobalCollectResponseToMap(java.lang.String gatewayResp,
java.lang.String arrayLocation)
throws java.lang.Exception
gatewayResp - the gatewayResparrayLocation - the arrayLocationjava.lang.Exception - an unexpected exceptionprotected java.lang.String getXmlPath(org.w3c.dom.Node nodeIn)
nodeIn - the nodeInprotected java.lang.String getXmlPath(org.w3c.dom.Node nodeIn,
int arrayIdx,
java.lang.String arrayLocation)
nodeIn - the nodeInarrayIdx - the arrayIdxarrayLocation - the arrayLocationCopyright © 2018 DS Data Systems UK Ltd.