Class OrderCreatedEvent
java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.ordercreated.OrderCreatedEvent
- All Implemented Interfaces:
Serializable
A message event dispatched after an order has been created successfully.
- See Also:
-
Constructor Summary
ConstructorDescriptionOrderCreatedEvent
(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.context.ContextInfo
TheContextInfo
derived from the original request containing tenant and sandbox info.List<com.broadleafcommerce.order.client.domain.OrderFulfillment>
The fulfillments created for the ordercom.broadleafcommerce.order.client.domain.Order
getOrder()
The order object that was createdint
hashCode()
void
setContextInfo
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info.void
setFulfillments
(List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments) The fulfillments created for the ordervoid
setOrder
(com.broadleafcommerce.order.client.domain.Order order) The order object that was createdtoString()
-
Constructor Details
-
OrderCreatedEvent
public OrderCreatedEvent() -
OrderCreatedEvent
public OrderCreatedEvent(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Details
-
getOrder
public com.broadleafcommerce.order.client.domain.Order getOrder()The order object that was created -
getFulfillments
The fulfillments created for the order -
getContextInfo
@Nullable public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfo
derived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfo
derived from the original request
-
setOrder
public void setOrder(com.broadleafcommerce.order.client.domain.Order order) The order object that was created -
setFulfillments
public void setFulfillments(List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments) The fulfillments created for the order -
setContextInfo
public void setContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-