Interface TaxCalculationHandlerService<P extends BillingProcessingRequestWithBillingEventDTO>
- All Known Implementing Classes:
DefaultTaxCalculationHandlerService
public interface TaxCalculationHandlerService<P extends BillingProcessingRequestWithBillingEventDTO>
Handles operations on
its type parameter and
the TaxCalculationProcessingResultHandlerDTO dto. The aforementioned operations are most
often related to updating Billing Job entities.-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessSuccessfulTaxResults(List<P> successfulRequests, TaxCalculationProcessingResultHandlerDTO dto) Update fields onsuccessful requestsdepending onBillingJobProperties.isExecuteOnlyTaxCalculation().voidprocessTaxFailureResults(List<P> request, TaxCalculationProcessingResultHandlerDTO dto) Deprecated.voidUpdate fields onrequests with errorsdepending on them having more retries.voidupdateEntitiesAndSendMessages(TaxCalculationProcessingResultHandlerDTO dto, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) This method updates Billing Job entities and sends messages for next steps after results are finalized by theresult handler.default voidDeprecated.
-
Method Details
-
updateRecordsAndSendMessageForTaxCalculationHandler
@Deprecated(since="1.0.0") default void updateRecordsAndSendMessageForTaxCalculationHandler(TaxCalculationProcessingResultHandlerDTO dto) Deprecated. -
updateEntitiesAndSendMessages
void updateEntitiesAndSendMessages(TaxCalculationProcessingResultHandlerDTO dto, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) This method updates Billing Job entities and sends messages for next steps after results are finalized by theresult handler. It discriminates its behavior depending on a request'sresult. For successful requests, all Billing entities are updated, whereas requests that sustained exceptions may be retried or sent to the DeadLetter queue. -
processSuccessfulTaxResults
void processSuccessfulTaxResults(List<P> successfulRequests, TaxCalculationProcessingResultHandlerDTO dto) Update fields onsuccessful requestsdepending onBillingJobProperties.isExecuteOnlyTaxCalculation(). Then, add requests to a respective list on theDTO -
processTaxFailureResults
@Deprecated(since="1.0.0") void processTaxFailureResults(List<P> request, TaxCalculationProcessingResultHandlerDTO dto) Deprecated.CurrentDefaultDelegatingTaxServiceimplementation does not use theTaxProcessingResultEnum.FAILUREresult value. -
processTaxGatewayErrorResults
Update fields onrequests with errorsdepending on them having more retries. Then, add requests to a respective list on theDTO.
-
DefaultDelegatingTaxServiceimplementation does not use theTaxProcessingResultEnum.FAILUREresult value.