Class TransactionLog
public class TransactionLog extends Request
Field Summary
Fields inherited from class com.mypos.myposcheckout.ipc.request.Request
config, outputFormat
Constructor Summary
Constructor and Description |
---|
TransactionLog(Config config) |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOrderId() |
ComplexResponse |
process()
Gather all request parameters needed to make an API call, and make one.
|
void |
setOrderId(java.lang.String orderId) |
boolean |
validate()
Checks if the class members are valid API request parameter values.
|
Methods inherited from class com.mypos.myposcheckout.ipc.request.Request
addRequestParam, addRequestParam, addRequestParam, addRequestParam, addRequestParam, addStandardParams, clearRequestParams, createApiCallFormHtml, createApiCallFormHtml,createApiCallFormHtml, createSignature, getConfig, getOutputFormat, getSignedRequestParams, processApiCall, removeRequestParam, setConfig, setOutputFormat
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
TransactionLog
public TransactionLog(Config config)
Method Detail
getOrderId
public java.lang.String getOrderId()
setOrderId
public void setOrderId(java.lang.String orderId)
validate
public boolean validate() throws IPCException
- Returns:
- true if all members can be used as valid API request parameters
- Throws:
IPCException
- If there are values which are missing, or invalid API request parameters.
process
public ComplexResponse process() throws IPCException
- Returns:
- the decoded API response
- Throws:
IPCException
- If there are invalid or missing parameters, or configuration values. If there were errors while making the call to the API, or decoding it's response.