Class TaxProcessingResult
java.lang.Object
com.broadleafcommerce.billing.job.domain.TaxProcessingResult
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionTaxProcessingResult(TaxProcessingResultEnum result, TaxProcessingStatusEnum taxProcessingStatus, String errorStacktrace, TaxFailureEnum failureType, int gatewayErrorCount, String errorMessage) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconvert(org.modelmapper.spi.MappingContext<?, ?> context) booleanMessage from the error in the tax calculation flowStacktrace of an errorType of tax calculation failure.intNumber of previous retries that received aTaxProcessingResultEnum.GATEWAY_ERRORresult.Result of the tax calculationStatus of the tax calculation.inthashCode()voidsetErrorMessage(String errorMessage) Message from the error in the tax calculation flowvoidsetErrorStacktrace(String errorStacktrace) Stacktrace of an errorvoidsetFailureType(TaxFailureEnum failureType) Type of tax calculation failure.voidsetGatewayErrorCount(int gatewayErrorCount) Number of previous retries that received aTaxProcessingResultEnum.GATEWAY_ERRORresult.voidsetResult(TaxProcessingResultEnum result) Result of the tax calculationvoidsetTaxProcessingStatus(TaxProcessingStatusEnum taxProcessingStatus) Status of the tax calculation.toString()
-
Constructor Details
-
TaxProcessingResult
public TaxProcessingResult() -
TaxProcessingResult
public TaxProcessingResult(TaxProcessingResultEnum result, TaxProcessingStatusEnum taxProcessingStatus, String errorStacktrace, TaxFailureEnum failureType, int gatewayErrorCount, String errorMessage)
-
-
Method Details
-
convert
-
getResult
Result of the tax calculation- See Also:
-
getTaxProcessingStatus
Status of the tax calculation. Not used widely in the tax calculation flow OOB. -
getErrorStacktrace
Stacktrace of an error -
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 aTaxProcessingResultEnum.GATEWAY_ERRORresult. -
getErrorMessage
Message from the error in the tax calculation flow -
setResult
Result of the tax calculation- See Also:
-
setTaxProcessingStatus
Status of the tax calculation. Not used widely in the tax calculation flow OOB. -
setErrorStacktrace
Stacktrace of an error -
setFailureType
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 aTaxProcessingResultEnum.GATEWAY_ERRORresult. -
setErrorMessage
Message from the error in the tax calculation flow -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-