Package com.blockchyp.client.dto
Class CashDiscountResponse
java.lang.Object
com.blockchyp.client.dto.CashDiscountResponse
- All Implemented Interfaces:
IAbstractAcknowledgement
Models the results of a cash discount calculation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the new calculated total amount.Gets the cash discount.Gets the transaction currency code.getError()Gets the error, if an error occurred.Gets a narrative description of the transaction result.Gets the normal surcharge for a transaction.booleanGets whether or not the request succeeded.booleanGets that the request is tax exempt.voidSets the new calculated total amount.voidsetCashDiscount(String value) Sets the cash discount.voidsetCurrencyCode(String value) Sets the transaction currency code.voidSets the error, if an error occurred.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidsetSuccess(boolean value) Sets whether or not the request succeeded.voidsetSurcharge(String value) Sets the normal surcharge for a transaction.voidsetTaxExempt(boolean value) Sets that the request is tax exempt.
-
Constructor Details
-
CashDiscountResponse
public CashDiscountResponse()
-
-
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.
-
setCurrencyCode
Sets the transaction currency code.- Parameters:
value- the transaction currency code.
-
getCurrencyCode
Gets the transaction currency code.- Returns:
- the transaction currency code.
-
setAmount
Sets the new calculated total amount.- Parameters:
value- the new calculated total amount.
-
getAmount
Gets the new calculated total amount.- Returns:
- the new calculated total amount.
-
setTaxExempt
public void setTaxExempt(boolean value) Sets that the request is tax exempt.- Parameters:
value- that the request is tax exempt. Only required for tax exempt level 2 processing.
-
isTaxExempt
public boolean isTaxExempt()Gets that the request is tax exempt.- Returns:
- that the request is tax exempt. Only required for tax exempt level 2 processing.
-
setSurcharge
Sets the normal surcharge for a transaction.- Parameters:
value- the normal surcharge for a transaction. Will only be returned if an offsetting cash discount is also returned.
-
getSurcharge
Gets the normal surcharge for a transaction.- Returns:
- the normal surcharge for a transaction. Will only be returned if an offsetting cash discount is also returned.
-
setCashDiscount
Sets the cash discount.- Parameters:
value- the cash discount. Will not be returned in surcharge only mode.
-
getCashDiscount
Gets the cash discount.- Returns:
- the cash discount. Will not be returned in surcharge only mode.
-