Package com.blockchyp.client.dto
Class BatchHistoryResponse
java.lang.Object
com.blockchyp.client.dto.BatchHistoryResponse
- All Implemented Interfaces:
IAbstractAcknowledgement
Models response to a batch history request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatche(BatchSummary value) Adds a merchant's batch history in descending order.Gets merchant's batch history in descending order.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.intGets total number of results accessible through paging.booleanGets whether or not the request succeeded.booleanisTest()Gets that the response came from the test gateway.voidsetBatches(Collection<BatchSummary> value) Sets merchant's batch history in descending order.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.voidsetTest(boolean value) Sets that the response came from the test gateway.voidsetTotalResultCount(int value) Sets total number of results accessible through paging.
-
Constructor Details
-
BatchHistoryResponse
public BatchHistoryResponse()
-
-
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.
-
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.
-
setBatches
Sets merchant's batch history in descending order.- Parameters:
value- merchant's batch history in descending order.
-
getBatches
Gets merchant's batch history in descending order.- Returns:
- merchant's batch history in descending order.
-
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.
-
getMaxResults
public int getMaxResults()Gets max results from the original request echoed back.- Returns:
- max results from the original request echoed back.
-
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.
-
addBatche
Adds a merchant's batch history in descending order.- Parameters:
value- merchant's batch history in descending order.
-