Class CashDiscountResponse

java.lang.Object
com.blockchyp.client.dto.CashDiscountResponse
All Implemented Interfaces:
IAbstractAcknowledgement

public class CashDiscountResponse extends Object implements IAbstractAcknowledgement
Models the results of a cash discount calculation.
  • 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:
      isSuccess in interface IAbstractAcknowledgement
      Returns:
      whether or not the request succeeded.
    • setError

      public void setError(String value)
      Sets the error, if an error occurred.
      Parameters:
      value - the error, if an error occurred.
    • getError

      public String getError()
      Gets the error, if an error occurred.
      Specified by:
      getError in interface IAbstractAcknowledgement
      Returns:
      the error, if an error occurred.
    • setResponseDescription

      public void setResponseDescription(String value)
      Sets a narrative description of the transaction result.
      Parameters:
      value - a narrative description of the transaction result.
    • getResponseDescription

      public String getResponseDescription()
      Gets a narrative description of the transaction result.
      Specified by:
      getResponseDescription in interface IAbstractAcknowledgement
      Returns:
      a narrative description of the transaction result.
    • setCurrencyCode

      public void setCurrencyCode(String value)
      Sets the transaction currency code.
      Parameters:
      value - the transaction currency code.
    • getCurrencyCode

      public String getCurrencyCode()
      Gets the transaction currency code.
      Returns:
      the transaction currency code.
    • setAmount

      public void setAmount(String value)
      Sets the new calculated total amount.
      Parameters:
      value - the new calculated total amount.
    • getAmount

      public String 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

      public void setSurcharge(String value)
      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

      public String 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

      public void setCashDiscount(String value)
      Sets the cash discount.
      Parameters:
      value - the cash discount. Will not be returned in surcharge only mode.
    • getCashDiscount

      public String getCashDiscount()
      Gets the cash discount.
      Returns:
      the cash discount. Will not be returned in surcharge only mode.