Class PricingOrderCreatedEvent
java.lang.Object
com.broadleafcommerce.pricing.service.messaging.ordercreated.PricingOrderCreatedEvent
- All Implemented Interfaces:
Serializable
A message event dispatched after an order has been created successfully.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The key for the link to read the Order by id. -
Constructor Summary
ConstructorsConstructorDescriptionPricingOrderCreatedEvent
(Order order, Map<String, PricingOrderCreatedEventListener.OrderLink> links, 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.getLinks()
The links that can be used to read an additional data for the event if needed.getOrder()
Deprecated.int
hashCode()
void
setContextInfo
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info.void
The links that can be used to read an additional data for the event if needed.void
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinks
map.toString()
-
Field Details
-
ORDER_LINK_KEY
The key for the link to read the Order by id.- See Also:
-
-
Constructor Details
-
PricingOrderCreatedEvent
public PricingOrderCreatedEvent() -
PricingOrderCreatedEvent
public PricingOrderCreatedEvent(Order order, Map<String, PricingOrderCreatedEventListener.OrderLink> links, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Details
-
getOrder
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinks
map.The order object that was created. -
getLinks
The links that can be used to read an additional data for the event if needed. These links are meant used instead ofgetOrder()
&#getFulfillments()
to reduce the message payload size, esp. for large orders. -
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
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinks
map.The order object that was created. -
setLinks
The links that can be used to read an additional data for the event if needed. These links are meant used instead ofgetOrder()
&#getFulfillments()
to reduce the message payload size, esp. for large orders. -
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
-
links
map.