Class TaxProcessingResult

java.lang.Object
com.broadleafcommerce.billing.job.domain.TaxProcessingResult
All Implemented Interfaces:
Serializable

public class TaxProcessingResult extends Object implements Serializable
This object serves as an embedded container for results of tax calculation ran by TaxCalculationProcessorHandler. It is embedded within the BillingProcessingRequest and is persisted with it to retain information on the previous tax run in case of gateway error retries.
See Also:
  • Constructor Details

    • TaxProcessingResult

      public TaxProcessingResult()
    • TaxProcessingResult

      public TaxProcessingResult(TaxProcessingResultEnum result, TaxProcessingStatusEnum taxProcessingStatus, String errorStacktrace, TaxFailureEnum failureType, int gatewayErrorCount, String errorMessage)
      Creates a new TaxProcessingResult instance.
      Parameters:
      result - Result of the tax calculation
      taxProcessingStatus - Status of the tax calculation. Not used widely in the tax calculation flow OOB.
      errorStacktrace - Stacktrace of an error
      failureType - Type of tax calculation failure. Not used widely in the tax calculation flow OOB.
      gatewayErrorCount - Number of previous retries that received a TaxProcessingResultEnum.GATEWAY_ERROR result.
      errorMessage - Message from the error in the tax calculation flow
      See Also:
  • Method Details

    • convert

      public Object convert(org.modelmapper.spi.MappingContext<?,?> context)
    • getResult

      public TaxProcessingResultEnum getResult()
      Result of the tax calculation
      See Also:
    • getTaxProcessingStatus

      public TaxProcessingStatusEnum getTaxProcessingStatus()
      Status of the tax calculation. Not used widely in the tax calculation flow OOB.
    • getErrorStacktrace

      public String getErrorStacktrace()
      Stacktrace of an error
    • getFailureType

      public TaxFailureEnum getFailureType()
      Type of tax calculation failure. Not used widely in the tax calculation flow OOB.
      See Also:
    • getGatewayErrorCount

      public int getGatewayErrorCount()
      Number of previous retries that received a TaxProcessingResultEnum.GATEWAY_ERROR result.
    • getErrorMessage

      public String getErrorMessage()
      Message from the error in the tax calculation flow
    • setResult

      public void setResult(TaxProcessingResultEnum result)
      Result of the tax calculation
      See Also:
    • setTaxProcessingStatus

      public void setTaxProcessingStatus(TaxProcessingStatusEnum taxProcessingStatus)
      Status of the tax calculation. Not used widely in the tax calculation flow OOB.
    • setErrorStacktrace

      public void setErrorStacktrace(String errorStacktrace)
      Stacktrace of an error
    • setFailureType

      public void setFailureType(TaxFailureEnum failureType)
      Type of tax calculation failure. Not used widely in the tax calculation flow OOB.
      See Also:
    • setGatewayErrorCount

      public void setGatewayErrorCount(int gatewayErrorCount)
      Number of previous retries that received a TaxProcessingResultEnum.GATEWAY_ERROR result.
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Message from the error in the tax calculation flow
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object