Package com.blockchyp.client.dto
Class CloseBatchResponse
java.lang.Object
com.blockchyp.client.dto.CloseBatchResponse
- All Implemented Interfaces:
IAbstractAcknowledgement,ICoreResponse
The response to a close batch request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatche(BatchSummary value) Adds a a collection of batches closed during the batch close operation.Gets a collection of batches closed during the batch close operation.Gets the ID assigned to the batch.Gets the settlement account for merchants with split settlements.getError()Gets the error, if an error occurred.Gets a narrative description of the transaction result.getSig()Gets the ECC signature of the response.Gets the hash of the last tick block.Gets the timestamp of the transaction.Gets the ID assigned to the transaction.Gets the transaction reference string assigned to the transaction request.Gets the type of transaction.booleanGets whether or not the request succeeded.booleanisTest()Gets that the transaction was processed on the test gateway.voidsetBatches(Collection<BatchSummary> value) Sets a collection of batches closed during the batch close operation.voidsetBatchId(String value) Sets the ID assigned to the batch.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidSets the error, if an error occurred.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidSets the ECC signature of the response.voidsetSuccess(boolean value) Sets whether or not the request succeeded.voidsetTest(boolean value) Sets that the transaction was processed on the test gateway.voidsetTickBlock(String value) Sets the hash of the last tick block.voidsetTimestamp(String value) Sets the timestamp of the transaction.voidsetTransactionId(String value) Sets the ID assigned to the transaction.voidsetTransactionRef(String value) Sets the transaction reference string assigned to the transaction request.voidsetTransactionType(String value) Sets the type of transaction.
-
Constructor Details
-
CloseBatchResponse
public CloseBatchResponse()
-
-
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.
-
setTransactionId
Sets the ID assigned to the transaction.- Parameters:
value- the ID assigned to the transaction.
-
getTransactionId
Gets the ID assigned to the transaction.- Specified by:
getTransactionIdin interfaceICoreResponse- Returns:
- the ID assigned to the transaction.
-
setBatchId
Sets the ID assigned to the batch.- Parameters:
value- the ID assigned to the batch.
-
getBatchId
Gets the ID assigned to the batch.- Specified by:
getBatchIdin interfaceICoreResponse- Returns:
- the ID assigned to the batch.
-
setTransactionRef
Sets the transaction reference string assigned to the transaction request.- Parameters:
value- the transaction reference string assigned to the transaction request. If no transaction ref was assiged on the request, then the gateway will randomly generate one.
-
getTransactionRef
Gets the transaction reference string assigned to the transaction request.- Specified by:
getTransactionRefin interfaceICoreResponse- Returns:
- the transaction reference string assigned to the transaction request. If no transaction ref was assiged on the request, then the gateway will randomly generate one.
-
setTransactionType
Sets the type of transaction.- Parameters:
value- the type of transaction.
-
getTransactionType
Gets the type of transaction.- Specified by:
getTransactionTypein interfaceICoreResponse- Returns:
- the type of transaction.
-
setTimestamp
Sets the timestamp of the transaction.- Parameters:
value- the timestamp of the transaction.
-
getTimestamp
Gets the timestamp of the transaction.- Specified by:
getTimestampin interfaceICoreResponse- Returns:
- the timestamp of the transaction.
-
setTickBlock
Sets the hash of the last tick block.- Parameters:
value- the hash of the last tick block.
-
getTickBlock
Gets the hash of the last tick block.- Specified by:
getTickBlockin interfaceICoreResponse- Returns:
- the hash of the last tick block.
-
setTest
public void setTest(boolean value) Sets that the transaction was processed on the test gateway.- Parameters:
value- that the transaction was processed on the test gateway.
-
isTest
public boolean isTest()Gets that the transaction was processed on the test gateway.- Specified by:
isTestin interfaceICoreResponse- Returns:
- that the transaction was processed on the test gateway.
-
setDestinationAccount
Sets the settlement account for merchants with split settlements.- Parameters:
value- the settlement account for merchants with split settlements.
-
getDestinationAccount
Gets the settlement account for merchants with split settlements.- Specified by:
getDestinationAccountin interfaceICoreResponse- Returns:
- the settlement account for merchants with split settlements.
-
setSig
Sets the ECC signature of the response.- Parameters:
value- the ECC signature of the response. Can be used to ensure that it was signed by the terminal and detect man-in-the middle attacks.
-
getSig
Gets the ECC signature of the response.- Specified by:
getSigin interfaceICoreResponse- Returns:
- the ECC signature of the response. Can be used to ensure that it was signed by the terminal and detect man-in-the middle attacks.
-
setBatches
Sets a collection of batches closed during the batch close operation.- Parameters:
value- a collection of batches closed during the batch close operation.
-
getBatches
Gets a collection of batches closed during the batch close operation.- Returns:
- a collection of batches closed during the batch close operation.
-
addBatche
Adds a a collection of batches closed during the batch close operation.- Parameters:
value- a collection of batches closed during the batch close operation.
-