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
Modifier and TypeFieldDescriptionstatic final String
The key for the link to read the Order by id. -
Constructor Summary
ConstructorDescriptionVoucherGenerationCompletionEvent
(com.broadleafcommerce.order.client.domain.Order order, 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.com.broadleafcommerce.order.client.domain.Order
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
setOrder
(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 inlinks
map.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 inlinks
map.TheOrder
that 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()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.TheOrder
that 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) TheContextInfo
derived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
links
map.