Class ReturnCancelledEvent
- java.lang.Object
-
- com.broadleafcommerce.orderoperation.service.messaging.returns.ReturnCancelledEvent
-
- All Implemented Interfaces:
Serializable
public class ReturnCancelledEvent extends Object implements Serializable
A message event dispatched after aReturnAuthorization
has been cancelled.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReturnCancelledEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
com.broadleafcommerce.order.client.domain.ReturnAuthorization
getAlreadyConfirmedReturnAuthorization()
The component of the return which was already confirmed, so could not be cancelled, if any confirmations are present.com.broadleafcommerce.order.client.domain.ReturnAuthorization
getCancelledReturnAuthorization()
The return which was cancelled.com.broadleafcommerce.data.tracking.core.context.ContextInfo
getContextInfo()
TheContextInfo
derived from the original request containing tenant and sandbox info.List<com.broadleafcommerce.order.client.domain.OrderFulfillment>
getFulfillments()
The fulfillments associated with the order being returned from.com.broadleafcommerce.order.client.domain.Order
getOrder()
The order being returned from.CancelReturnRequest
getRequest()
The original request leading to the return cancellation.int
hashCode()
void
setAlreadyConfirmedReturnAuthorization(com.broadleafcommerce.order.client.domain.ReturnAuthorization alreadyConfirmedReturnAuthorization)
The component of the return which was already confirmed, so could not be cancelled, if any confirmations are present.void
setCancelledReturnAuthorization(com.broadleafcommerce.order.client.domain.ReturnAuthorization cancelledReturnAuthorization)
The return which was cancelled.void
setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
TheContextInfo
derived from the original request containing tenant and sandbox info.void
setFulfillments(List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments)
The fulfillments associated with the order being returned from.void
setOrder(com.broadleafcommerce.order.client.domain.Order order)
The order being returned from.void
setRequest(CancelReturnRequest request)
The original request leading to the return cancellation.String
toString()
-
-
-
Method Detail
-
getRequest
public CancelReturnRequest getRequest()
The original request leading to the return cancellation.- Returns:
- the original request leading to the return cancellation
-
getCancelledReturnAuthorization
public com.broadleafcommerce.order.client.domain.ReturnAuthorization getCancelledReturnAuthorization()
The return which was cancelled.- Returns:
- the return which was cancelled
-
getAlreadyConfirmedReturnAuthorization
@Nullable public com.broadleafcommerce.order.client.domain.ReturnAuthorization getAlreadyConfirmedReturnAuthorization()
The component of the return which was already confirmed, so could not be cancelled, if any confirmations are present.- Returns:
- the component of the return which was already confirmed, if any confirmations are present
-
getOrder
public com.broadleafcommerce.order.client.domain.Order getOrder()
The order being returned from.- Returns:
- the order being returned from
-
getFulfillments
public List<com.broadleafcommerce.order.client.domain.OrderFulfillment> getFulfillments()
The fulfillments associated with the order being returned from.- Returns:
- the fulfillments associated with the order being returned from
-
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
-
setRequest
public void setRequest(CancelReturnRequest request)
The original request leading to the return cancellation.- Parameters:
the
- original request leading to the return cancellation
-
setCancelledReturnAuthorization
public void setCancelledReturnAuthorization(com.broadleafcommerce.order.client.domain.ReturnAuthorization cancelledReturnAuthorization)
The return which was cancelled.- Parameters:
cancelledReturnAuthorization
- the return which was cancelled
-
setAlreadyConfirmedReturnAuthorization
public void setAlreadyConfirmedReturnAuthorization(@Nullable com.broadleafcommerce.order.client.domain.ReturnAuthorization alreadyConfirmedReturnAuthorization)
The component of the return which was already confirmed, so could not be cancelled, if any confirmations are present.- Parameters:
alreadyConfirmedReturnAuthorization
- the component of the return which was already confirmed
-
setOrder
public void setOrder(com.broadleafcommerce.order.client.domain.Order order)
The order being returned from.- Parameters:
order
- the order being returned from
-
setFulfillments
public void setFulfillments(List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments)
The fulfillments associated with the order being returned from.- Parameters:
fulfillments
- the fulfillments associated with the order being returned from
-
setContextInfo
public void setContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
TheContextInfo
derived from the original request containing tenant and sandbox info.
-
canEqual
protected boolean canEqual(Object other)
-
-