Class VoucherGenerationCompletionEvent
- java.lang.Object
-
- com.broadleafcommerce.orderoperation.service.messaging.voucher.VoucherGenerationCompletionEvent
-
- All Implemented Interfaces:
Serializable
public class VoucherGenerationCompletionEvent extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VoucherGenerationCompletionEvent()VoucherGenerationCompletionEvent(com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)com.broadleafcommerce.data.tracking.core.context.ContextInfogetContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.com.broadleafcommerce.order.client.domain.OrdergetOrder()TheOrderthat the vouchers were created for.inthashCode()voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)TheContextInfoderived from the original request containing tenant and sandbox info.voidsetOrder(com.broadleafcommerce.order.client.domain.Order order)TheOrderthat the vouchers were created for.StringtoString()
-
-
-
Constructor Detail
-
VoucherGenerationCompletionEvent
public VoucherGenerationCompletionEvent()
-
VoucherGenerationCompletionEvent
public VoucherGenerationCompletionEvent(com.broadleafcommerce.order.client.domain.Order order, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Detail
-
getOrder
public com.broadleafcommerce.order.client.domain.Order getOrder()
TheOrderthat the vouchers were created for.
-
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
public void setOrder(com.broadleafcommerce.order.client.domain.Order order)
TheOrderthat the vouchers were created for.
-
setContextInfo
public void setContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)TheContextInfoderived from the original request containing tenant and sandbox info.
-
canEqual
protected boolean canEqual(Object other)
-
-