public class CashDiscountResponse extends Object implements IAbstractAcknowledgement
| Constructor and Description |
|---|
CashDiscountResponse() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAmount()
Gets the new calculated total amount.
|
String |
getCashDiscount()
Gets the cash discount.
|
String |
getCurrencyCode()
Gets the transaction currency code.
|
String |
getError()
Gets the error, if an error occurred.
|
String |
getResponseDescription()
Gets a narrative description of the transaction result.
|
String |
getSurcharge()
Gets the normal surcharge for a transaction.
|
boolean |
isSuccess()
Gets whether or not the request succeeded.
|
boolean |
isTaxExempt()
Gets that the request is tax exempt.
|
void |
setAmount(String value)
Sets the new calculated total amount.
|
void |
setCashDiscount(String value)
Sets the cash discount.
|
void |
setCurrencyCode(String value)
Sets the transaction currency code.
|
void |
setError(String value)
Sets the error, if an error occurred.
|
void |
setResponseDescription(String value)
Sets a narrative description of the transaction result.
|
void |
setSuccess(boolean value)
Sets whether or not the request succeeded.
|
void |
setSurcharge(String value)
Sets the normal surcharge for a transaction.
|
void |
setTaxExempt(boolean value)
Sets that the request is tax exempt.
|
public void setSuccess(boolean value)
value - whether or not the request succeeded.public boolean isSuccess()
isSuccess in interface IAbstractAcknowledgementpublic void setError(String value)
value - the error, if an error occurred.public String getError()
getError in interface IAbstractAcknowledgementpublic void setResponseDescription(String value)
value - a narrative description of the transaction result.public String getResponseDescription()
getResponseDescription in interface IAbstractAcknowledgementpublic void setCurrencyCode(String value)
value - the transaction currency code.public String getCurrencyCode()
public void setAmount(String value)
value - the new calculated total amount.public String getAmount()
public void setTaxExempt(boolean value)
value - that the request is tax exempt. Only required for tax exempt level 2
processing.public boolean isTaxExempt()
public void setSurcharge(String value)
value - the normal surcharge for a transaction. Will only be returned if an
offsetting cash discount is also returned.public String getSurcharge()
public void setCashDiscount(String value)
value - the cash discount. Will not be returned in surcharge only mode.public String getCashDiscount()
Copyright © 2020 BlockChyp, Inc.. All rights reserved.