Class PurchaseEvent
java.lang.Object
com.broadleafcommerce.recommendationengine.service.messaging.domain.PurchaseEvent
- All Implemented Interfaces:
Serializable
A message event after a purchase has been made.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPurchaseEvent
(Map<String, 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.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.toString()
-
Field Details
-
ORDER_LINK_KEY
The key for the link to read the Order by id.- See Also:
-
ORDER_FULFILLMENT_LINK_KEY
The key for the link to read the Order fulfillments by order id.- See Also:
-
-
Constructor Details
-
PurchaseEvent
public PurchaseEvent() -
PurchaseEvent
-
-
Method Details
-
getLinks
The links that can be used to read an additional data for the event if needed. -
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
-
setLinks
The links that can be used to read an additional data for the event if needed. -
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
-