Package com.blockchyp.client.dto
Class BalanceResponse
java.lang.Object
com.blockchyp.client.dto.BalanceResponse
- All Implemented Interfaces:
IAbstractAcknowledgement,ICoreResponse,IPaymentMethodResponse
public class BalanceResponse
extends Object
implements IAbstractAcknowledgement, ICoreResponse, IPaymentMethodResponse
The response to a balance request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomer(Customer value) Adds a customer data, if any.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.getLogo()Gets identifies the card association based on bin number.Gets the masked primary account number.Gets provides network level detail on how a transaction was routed, especially for debit transactions.Gets the card brand (VISA, MC, AMEX, DEBIT, etc).Gets the BlockChyp public key if the user presented a BlockChyp payment card.Gets suggested receipt fields.Gets remaining balance on the payment method.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.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 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.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.voidSets identifies the card association based on bin number.voidsetMaskedPan(String value) Sets the masked primary account number.voidsetNetwork(String value) Sets provides network level detail on how a transaction was routed, especially for debit transactions.voidsetPaymentType(String value) Sets the card brand (VISA, MC, AMEX, DEBIT, etc).voidsetPublicKey(String value) Sets the BlockChyp public key if the user presented a BlockChyp payment card.voidSets suggested receipt fields.voidsetRemainingBalance(String value) Sets remaining balance on the payment method.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.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
-
BalanceResponse
public BalanceResponse()
-
-
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.
-
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, DEBIT, etc).- Parameters:
value- the card brand (VISA, MC, AMEX, DEBIT, etc).
-
getPaymentType
Gets the card brand (VISA, MC, AMEX, DEBIT, etc).- Specified by:
getPaymentTypein interfaceIPaymentMethodResponse- Returns:
- the card brand (VISA, MC, AMEX, DEBIT, etc).
-
setNetwork
Sets provides network level detail on how a transaction was routed, especially for debit transactions.- Parameters:
value- provides network level detail on how a transaction was routed, especially for debit transactions.
-
getNetwork
Gets provides network level detail on how a transaction was routed, especially for debit transactions.- Specified by:
getNetworkin interfaceIPaymentMethodResponse- Returns:
- provides network level detail on how a transaction was routed, especially for debit transactions.
-
setLogo
Sets identifies the card association based on bin number.- Parameters:
value- identifies the card association based on bin number. Used primarily used to indicate the major logo on a card, even when debit transactions are routed on a different network.
-
getLogo
Gets identifies the card association based on bin number.- Specified by:
getLogoin interfaceIPaymentMethodResponse- Returns:
- identifies the card association based on bin number. Used primarily used to indicate the major logo on a card, even when debit transactions are routed on a different network.
-
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.
-
setRemainingBalance
Sets remaining balance on the payment method.- Parameters:
value- remaining balance on the payment method.
-
getRemainingBalance
Gets remaining balance on the payment method.- Returns:
- remaining balance on the payment method.
-
addCustomer
Adds a customer data, if any.- Parameters:
value- customer data, if any.
-