Class SendCheckoutEventResponse
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.checkout.SendCheckoutEventResponse
- All Implemented Interfaces:
Serializable
DTO for communicating the results of resending a
CheckoutCompletionEvent
,
CheckoutRollbackEvent
, or CartPendingPaymentFailedEvent
.- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
TheCart.getId()
that was requested to re-send the event.Message intended to inform why the sending the event failed ifisSuccess()
is false.int
hashCode()
boolean
Whether or not sending the event was successful.void
TheCart.getId()
that was requested to re-send the event.void
setFailureMessage
(String failureMessage) Message intended to inform why the sending the event failed ifisSuccess()
is false.void
setSuccess
(boolean success) Whether or not sending the event was successful.toString()
-
Constructor Details
-
SendCheckoutEventResponse
public SendCheckoutEventResponse()
-
-
Method Details
-
getCartId
TheCart.getId()
that was requested to re-send the event.- Returns:
- the cart that was requested to re-send the event
-
isSuccess
public boolean isSuccess()Whether or not sending the event was successful.- Returns:
- whether or not sending the event was successful
-
getFailureMessage
Message intended to inform why the sending the event failed ifisSuccess()
is false.- Returns:
- message intended to inform why the sending the event failed if
isSuccess()
is false
-
setCartId
TheCart.getId()
that was requested to re-send the event.- Parameters:
cart
- the cart that was requested to re-send the event
-
setSuccess
public void setSuccess(boolean success) Whether or not sending the event was successful.- Parameters:
success
- whether or not sending the event was successful
-
setFailureMessage
Message intended to inform why the sending the event failed ifisSuccess()
is false.- Parameters:
failureMessage
- message intended to inform why the sending the event failed ifisSuccess()
is false
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-