public class Refund extends Request
config, outputFormat
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getAmount() |
Currency |
getCurrency() |
java.lang.String |
getOrderId() |
java.lang.String |
getTrnRef() |
boolean |
process()
Gather all request parameters needed to make an API call, and make one.
|
void |
setAmount(java.math.BigDecimal amount) |
void |
setAmount(double amount) |
void |
setCurrency(Currency currency) |
void |
setOrderId(java.lang.String orderId) |
void |
setTrnRef(java.lang.String trnRef) |
boolean |
validate()
Checks if the class members are valid API request parameter values.
|
addRequestParam, addRequestParam, addRequestParam, addRequestParam, addRequestParam, addStandardParams, clearRequestParams, createApiCallFormHtml, createApiCallFormHtml, createApiCallFormHtml, createSignature, getConfig, getOutputFormat, getSignedRequestParams, processApiCall, removeRequestParam, setConfig, setOutputFormat
public Refund(Config config)
public Currency getCurrency()
public void setCurrency(Currency currency)
public java.math.BigDecimal getAmount()
public void setAmount(double amount)
public void setAmount(java.math.BigDecimal amount)
public java.lang.String getTrnRef()
public void setTrnRef(java.lang.String trnRef)
public java.lang.String getOrderId()
public void setOrderId(java.lang.String orderId)
public boolean validate() throws IPCException
IPCException
- If there are values which are missing,
or invalid API request parameters.public boolean process() throws IPCException
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.