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 StringThe 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 booleanbooleancom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived 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.inthashCode()voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidThe links that can be used to read an additional data for the event if needed.voidDeprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinksmap.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 inlinksmap.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()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
setOrder
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinksmap.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) TheContextInfoderived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
linksmap.