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:
-
Constructor Summary
ConstructorDescriptionVoucherGenerationCompletionEvent
(com.broadleafcommerce.order.client.domain.Order order, 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.com.broadleafcommerce.order.client.domain.Order
getOrder()
TheOrder
that the vouchers were created for.int
hashCode()
void
setContextInfo
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info.void
setOrder
(com.broadleafcommerce.order.client.domain.Order order) TheOrder
that the vouchers were created for.toString()
-
Constructor Details
-
VoucherGenerationCompletionEvent
public VoucherGenerationCompletionEvent() -
VoucherGenerationCompletionEvent
public VoucherGenerationCompletionEvent(com.broadleafcommerce.order.client.domain.Order order, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Details
-
getOrder
public com.broadleafcommerce.order.client.domain.Order getOrder()TheOrder
that the vouchers were created for. -
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
public void setOrder(com.broadleafcommerce.order.client.domain.Order order) TheOrder
that the vouchers were created for. -
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
-