Class VoucherGenerationCompletionEvent
java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.voucher.VoucherGenerationCompletionEvent
- All Implemented Interfaces:
Serializable
A message event dispatched after a voucher validation and code generation completes successfully.
This event should be consumed by services that need to perform any post-voucher-code-generation
activities.
- Author:
- Sunny Yu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key for the link to read the Order by id. -
Constructor Summary
ConstructorsConstructorDescriptionVoucherGenerationCompletionEvent(com.broadleafcommerce.order.client.domain.Order order, Map<String, 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.com.broadleafcommerce.order.client.domain.OrdergetOrder()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.voidsetOrder(com.broadleafcommerce.order.client.domain.Order order) Deprecated.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
-
VoucherGenerationCompletionEvent
public VoucherGenerationCompletionEvent() -
VoucherGenerationCompletionEvent
-
-
Method Details
-
getOrder
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinksmap.TheOrderthat the vouchers were created for. -
getLinks
The links that can be used to read an additional data for the event if needed. These links are meant used instead ofgetOrder()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.TheOrderthat the vouchers were created for. -
setLinks
The links that can be used to read an additional data for the event if needed. These links are meant used instead ofgetOrder()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.