Package com.blockchyp.client.dto
Class TransactionHistoryResponse
java.lang.Object
com.blockchyp.client.dto.TransactionHistoryResponse
- All Implemented Interfaces:
IAbstractAcknowledgement
Models response to a batch history request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a matching transaction history.Gets batch identifier if filtered by batch.Gets end date if filtered by end date.getError()Gets the error, if an error occurred.intGets max results from the original request echoed back.Gets a narrative description of the transaction result.Gets start date if filtered by start date.intGets starting index from the original request echoed back.Gets terminal name if filtered by terminal.intGets total number of results accessible through paging.Gets matching transaction history.booleanGets whether or not the request succeeded.booleanisTest()Gets that the response came from the test gateway.voidsetBatchId(String value) Sets batch identifier if filtered by batch.voidsetEndDate(Date value) Sets end date if filtered by end date.voidSets the error, if an error occurred.voidsetMaxResults(int value) Sets max results from the original request echoed back.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidsetStartDate(Date value) Sets start date if filtered by start date.voidsetStartIndex(int value) Sets starting index from the original request echoed back.voidsetSuccess(boolean value) Sets whether or not the request succeeded.voidsetTerminalName(String value) Sets terminal name if filtered by terminal.voidsetTest(boolean value) Sets that the response came from the test gateway.voidsetTotalResultCount(int value) Sets total number of results accessible through paging.voidSets matching transaction history.
-
Constructor Details
-
TransactionHistoryResponse
public TransactionHistoryResponse()
-
-
Method Details
-
setSuccess
public void setSuccess(boolean value) Sets whether or not the request succeeded.- Parameters:
value- whether or not the request succeeded.
-
isSuccess
public boolean isSuccess()Gets whether or not the request succeeded.- Specified by:
isSuccessin interfaceIAbstractAcknowledgement- Returns:
- whether or not the request succeeded.
-
setError
Sets the error, if an error occurred.- Parameters:
value- the error, if an error occurred.
-
getError
Gets the error, if an error occurred.- Specified by:
getErrorin interfaceIAbstractAcknowledgement- Returns:
- the error, if an error occurred.
-
setResponseDescription
Sets a narrative description of the transaction result.- Parameters:
value- a narrative description of the transaction result.
-
getResponseDescription
Gets a narrative description of the transaction result.- Specified by:
getResponseDescriptionin interfaceIAbstractAcknowledgement- Returns:
- a narrative description of the transaction result.
-
setTest
public void setTest(boolean value) Sets that the response came from the test gateway.- Parameters:
value- that the response came from the test gateway.
-
isTest
public boolean isTest()Gets that the response came from the test gateway.- Returns:
- that the response came from the test gateway.
-
setBatchId
Sets batch identifier if filtered by batch.- Parameters:
value- batch identifier if filtered by batch.
-
getBatchId
Gets batch identifier if filtered by batch.- Returns:
- batch identifier if filtered by batch.
-
setTerminalName
Sets terminal name if filtered by terminal.- Parameters:
value- terminal name if filtered by terminal.
-
getTerminalName
Gets terminal name if filtered by terminal.- Returns:
- terminal name if filtered by terminal.
-
setStartDate
Sets start date if filtered by start date.- Parameters:
value- start date if filtered by start date.
-
getStartDate
Gets start date if filtered by start date.- Returns:
- start date if filtered by start date.
-
setEndDate
Sets end date if filtered by end date.- Parameters:
value- end date if filtered by end date.
-
getEndDate
Gets end date if filtered by end date.- Returns:
- end date if filtered by end date.
-
setMaxResults
public void setMaxResults(int value) Sets max results from the original request echoed back.- Parameters:
value- max results from the original request echoed back. Defaults to the system max of 250.
-
getMaxResults
public int getMaxResults()Gets max results from the original request echoed back.- Returns:
- max results from the original request echoed back. Defaults to the system max of 250.
-
setStartIndex
public void setStartIndex(int value) Sets starting index from the original request echoed back.- Parameters:
value- starting index from the original request echoed back.
-
getStartIndex
public int getStartIndex()Gets starting index from the original request echoed back.- Returns:
- starting index from the original request echoed back.
-
setTotalResultCount
public void setTotalResultCount(int value) Sets total number of results accessible through paging.- Parameters:
value- total number of results accessible through paging.
-
getTotalResultCount
public int getTotalResultCount()Gets total number of results accessible through paging.- Returns:
- total number of results accessible through paging.
-
setTransactions
Sets matching transaction history.- Parameters:
value- matching transaction history.
-
getTransactions
Gets matching transaction history.- Returns:
- matching transaction history.
-
addTransaction
Adds a matching transaction history.- Parameters:
value- matching transaction history.
-