Class OrderCreatedTaxHandler
java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.tax.OrderCreatedTaxHandler
@DataRouteByExample(CheckoutCompletionEvent.class)
public class OrderCreatedTaxHandler
extends Object
Responsible for committing tax on checkout completion events.
-
Constructor Summary
ConstructorDescriptionOrderCreatedTaxHandler
(OrderProvider<com.broadleafcommerce.order.client.domain.Order> orderProvider, com.broadleafcommerce.tax.delegate.TaxDelegate<com.broadleafcommerce.tax.domain.TaxRequest, com.broadleafcommerce.tax.domain.TaxResponse> taxDelegate, TaxRequestService taxRequestService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentMessageService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
listen
(org.springframework.messaging.Message<OrderCreatedEvent> message) protected void
processEvent
(org.springframework.messaging.Message<OrderCreatedEvent> orderCreatedEventMessage)
-
Constructor Details
-
OrderCreatedTaxHandler
public OrderCreatedTaxHandler(OrderProvider<com.broadleafcommerce.order.client.domain.Order> orderProvider, com.broadleafcommerce.tax.delegate.TaxDelegate<com.broadleafcommerce.tax.domain.TaxRequest, com.broadleafcommerce.tax.domain.TaxResponse> taxDelegate, TaxRequestService taxRequestService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentMessageService)
-
-
Method Details
-
listen
@StreamListener("orderOperationsOrderCreatedInput") public void listen(org.springframework.messaging.Message<OrderCreatedEvent> message) -
processEvent
protected void processEvent(org.springframework.messaging.Message<OrderCreatedEvent> orderCreatedEventMessage)
-