Package com.blockchyp.client.dto
Class GiftActivateResponse
java.lang.Object
com.blockchyp.client.dto.GiftActivateResponse
- All Implemented Interfaces:
IAbstractAcknowledgement,ICoreResponse
The response to a gift activate request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the amount of the transaction.Gets the ID assigned to the batch.Gets the currency code used for the transaction.Gets the current balance of the gift card.Gets the settlement account for merchants with split settlements.getError()Gets the error, if an error occurred.Gets the masked card identifier.Gets the public key of the activated card.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 that the card was activated.booleanGets whether or not the request succeeded.booleanisTest()Gets that the transaction was processed on the test gateway.voidSets the amount of the transaction.voidsetApproved(boolean value) Sets that the card was activated.voidsetBatchId(String value) Sets the ID assigned to the batch.voidsetCurrencyCode(String value) Sets the currency code used for the transaction.voidsetCurrentBalance(String value) Sets the current balance of the gift card.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidSets the error, if an error occurred.voidsetMaskedPan(String value) Sets the masked card identifier.voidsetPublicKey(String value) Sets the public key of the activated card.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
-
GiftActivateResponse
public GiftActivateResponse()
-
-
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.
-
setApproved
public void setApproved(boolean value) Sets that the card was activated.- Parameters:
value- that the card was activated.
-
isApproved
public boolean isApproved()Gets that the card was activated.- Returns:
- that the card was activated.
-
setAmount
Sets the amount of the transaction.- Parameters:
value- the amount of the transaction.
-
getAmount
Gets the amount of the transaction.- Returns:
- the amount of the transaction.
-
setCurrentBalance
Sets the current balance of the gift card.- Parameters:
value- the current balance of the gift card.
-
getCurrentBalance
Gets the current balance of the gift card.- Returns:
- the current balance of the gift card.
-
setCurrencyCode
Sets the currency code used for the transaction.- Parameters:
value- the currency code used for the transaction.
-
getCurrencyCode
Gets the currency code used for the transaction.- Returns:
- the currency code used for the transaction.
-
setPublicKey
Sets the public key of the activated card.- Parameters:
value- the public key of the activated card.
-
getPublicKey
Gets the public key of the activated card.- Returns:
- the public key of the activated card.
-
setMaskedPan
Sets the masked card identifier.- Parameters:
value- the masked card identifier.
-
getMaskedPan
Gets the masked card identifier.- Returns:
- the masked card identifier.
-