Package com.blockchyp.client.dto
Class EnrollResponse
java.lang.Object
com.blockchyp.client.dto.EnrollResponse
- All Implemented Interfaces:
IAbstractAcknowledgement,IApprovalResponse,ICoreResponse,IPaymentMethodResponse,ISignatureResponse
public class EnrollResponse
extends Object
implements IAbstractAcknowledgement, IApprovalResponse, ICoreResponse, IPaymentMethodResponse, ISignatureResponse
The response to an enroll request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomer(Customer value) Adds a customer data, if any.Gets the auth code from the payment network.Gets the code returned by the terminal or the card issuer to indicate the disposition of the message.Gets address verification results if address information was submitted.Gets the ID assigned to the batch.Gets the cardholder name.Gets customer data, if any.Gets customer data, if any.Gets the settlement account for merchants with split settlements.Gets the entry method for the transaction (CHIP, MSR, KEYED, etc).getError()Gets the error, if an error occurred.Gets the card expiration month in MM format.Gets the card expiration year in YY format.Gets the masked primary account number.Gets the card brand (VISA, MC, AMEX, etc).Gets the BlockChyp public key if the user presented a BlockChyp payment card.Gets suggested receipt fields.Gets a narrative description of the transaction result.getSig()Gets the ECC signature of the response.Gets the hex encoded signature data.Gets the hash of the last tick block.Gets the timestamp of the transaction.getToken()Gets the payment token, if the payment was enrolled in the vault.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 transaction was approved.booleanGets that the transaction did something that would put the system in PCI scope.booleanGets whether or not the request succeeded.booleanisTest()Gets that the transaction was processed on the test gateway.voidsetApproved(boolean value) Sets that the transaction was approved.voidsetAuthCode(String value) Sets the auth code from the payment network.voidsetAuthResponseCode(String value) Sets the code returned by the terminal or the card issuer to indicate the disposition of the message.voidsetAvsResponse(AvsResponse value) Sets address verification results if address information was submitted.voidsetBatchId(String value) Sets the ID assigned to the batch.voidsetCardHolder(String value) Sets the cardholder name.voidsetCustomer(Customer value) Sets customer data, if any.voidsetCustomers(Collection<Customer> value) Sets customer data, if any.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidsetEntryMethod(String value) Sets the entry method for the transaction (CHIP, MSR, KEYED, etc).voidSets the error, if an error occurred.voidsetExpMonth(String value) Sets the card expiration month in MM format.voidsetExpYear(String value) Sets the card expiration year in YY format.voidsetMaskedPan(String value) Sets the masked primary account number.voidsetPaymentType(String value) Sets the card brand (VISA, MC, AMEX, etc).voidsetPublicKey(String value) Sets the BlockChyp public key if the user presented a BlockChyp payment card.voidSets suggested receipt fields.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidsetScopeAlert(boolean value) Sets that the transaction did something that would put the system in PCI scope.voidSets the ECC signature of the response.voidsetSigFile(String value) Sets the hex encoded signature data.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.voidSets the payment token, if the payment was enrolled in the vault.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
-
EnrollResponse
public EnrollResponse()
-
-
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.
-
setApproved
public void setApproved(boolean value) Sets that the transaction was approved.- Parameters:
value- that the transaction was approved.
-
isApproved
public boolean isApproved()Gets that the transaction was approved.- Specified by:
isApprovedin interfaceIApprovalResponse- Returns:
- that the transaction was approved.
-
setAuthCode
Sets the auth code from the payment network.- Parameters:
value- the auth code from the payment network.
-
getAuthCode
Gets the auth code from the payment network.- Specified by:
getAuthCodein interfaceIApprovalResponse- Returns:
- the auth code from the payment network.
-
setAuthResponseCode
Sets the code returned by the terminal or the card issuer to indicate the disposition of the message.- Parameters:
value- the code returned by the terminal or the card issuer to indicate the disposition of the message.
-
getAuthResponseCode
Gets the code returned by the terminal or the card issuer to indicate the disposition of the message.- Specified by:
getAuthResponseCodein interfaceIApprovalResponse- Returns:
- the code returned by the terminal or the card issuer to indicate the disposition of the message.
-
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.
-
setToken
Sets the payment token, if the payment was enrolled in the vault.- Parameters:
value- the payment token, if the payment was enrolled in the vault.
-
getToken
Gets the payment token, if the payment was enrolled in the vault.- Specified by:
getTokenin interfaceIPaymentMethodResponse- Returns:
- the payment token, if the payment was enrolled in the vault.
-
setEntryMethod
Sets the entry method for the transaction (CHIP, MSR, KEYED, etc).- Parameters:
value- the entry method for the transaction (CHIP, MSR, KEYED, etc).
-
getEntryMethod
Gets the entry method for the transaction (CHIP, MSR, KEYED, etc).- Specified by:
getEntryMethodin interfaceIPaymentMethodResponse- Returns:
- the entry method for the transaction (CHIP, MSR, KEYED, etc).
-
setPaymentType
Sets the card brand (VISA, MC, AMEX, etc).- Parameters:
value- the card brand (VISA, MC, AMEX, etc).
-
getPaymentType
Gets the card brand (VISA, MC, AMEX, etc).- Specified by:
getPaymentTypein interfaceIPaymentMethodResponse- Returns:
- the card brand (VISA, MC, AMEX, etc).
-
setMaskedPan
Sets the masked primary account number.- Parameters:
value- the masked primary account number.
-
getMaskedPan
Gets the masked primary account number.- Specified by:
getMaskedPanin interfaceIPaymentMethodResponse- Returns:
- the masked primary account number.
-
setPublicKey
Sets the BlockChyp public key if the user presented a BlockChyp payment card.- Parameters:
value- the BlockChyp public key if the user presented a BlockChyp payment card.
-
getPublicKey
Gets the BlockChyp public key if the user presented a BlockChyp payment card.- Specified by:
getPublicKeyin interfaceIPaymentMethodResponse- Returns:
- the BlockChyp public key if the user presented a BlockChyp payment card.
-
setScopeAlert
public void setScopeAlert(boolean value) Sets that the transaction did something that would put the system in PCI scope.- Parameters:
value- that the transaction did something that would put the system in PCI scope.
-
isScopeAlert
public boolean isScopeAlert()Gets that the transaction did something that would put the system in PCI scope.- Specified by:
isScopeAlertin interfaceIPaymentMethodResponse- Returns:
- that the transaction did something that would put the system in PCI scope.
-
setCardHolder
Sets the cardholder name.- Parameters:
value- the cardholder name.
-
getCardHolder
Gets the cardholder name.- Specified by:
getCardHolderin interfaceIPaymentMethodResponse- Returns:
- the cardholder name.
-
setExpMonth
Sets the card expiration month in MM format.- Parameters:
value- the card expiration month in MM format.
-
getExpMonth
Gets the card expiration month in MM format.- Specified by:
getExpMonthin interfaceIPaymentMethodResponse- Returns:
- the card expiration month in MM format.
-
setExpYear
Sets the card expiration year in YY format.- Parameters:
value- the card expiration year in YY format.
-
getExpYear
Gets the card expiration year in YY format.- Specified by:
getExpYearin interfaceIPaymentMethodResponse- Returns:
- the card expiration year in YY format.
-
setAvsResponse
Sets address verification results if address information was submitted.- Parameters:
value- address verification results if address information was submitted.
-
getAvsResponse
Gets address verification results if address information was submitted.- Specified by:
getAvsResponsein interfaceIPaymentMethodResponse- Returns:
- address verification results if address information was submitted.
-
setReceiptSuggestions
Sets suggested receipt fields.- Parameters:
value- suggested receipt fields.
-
getReceiptSuggestions
Gets suggested receipt fields.- Specified by:
getReceiptSuggestionsin interfaceIPaymentMethodResponse- Returns:
- suggested receipt fields.
-
setCustomer
Sets customer data, if any.- Parameters:
value- customer data, if any. Preserved for reverse compatibility.
-
getCustomer
Gets customer data, if any.- Specified by:
getCustomerin interfaceIPaymentMethodResponse- Returns:
- customer data, if any. Preserved for reverse compatibility.
-
setCustomers
Sets customer data, if any.- Parameters:
value- customer data, if any.
-
getCustomers
Gets customer data, if any.- Specified by:
getCustomersin interfaceIPaymentMethodResponse- Returns:
- customer data, if any.
-
setSigFile
Sets the hex encoded signature data.- Parameters:
value- the hex encoded signature data.
-
getSigFile
Gets the hex encoded signature data.- Specified by:
getSigFilein interfaceISignatureResponse- Returns:
- the hex encoded signature data.
-
addCustomer
Adds a customer data, if any.- Parameters:
value- customer data, if any.
-