Class SendCheckoutEventResponse
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.checkout.SendCheckoutEventResponse
-
- All Implemented Interfaces:
Serializable
public class SendCheckoutEventResponse extends Object implements Serializable
DTO for communicating the results of resending aCheckoutCompletionEvent
,CheckoutRollbackEvent
, orCartPendingPaymentFailedEvent
.- Author:
- Sunny Yu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SendCheckoutEventResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getCartId()
TheCart.getId()
that was requested to re-send the event.String
getFailureMessage()
Message intended to inform why the sending the event failed ifisSuccess()
is false.int
hashCode()
boolean
isSuccess()
Whether or not sending the event was successful.void
setCartId(String cartId)
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.String
toString()
-
-
-
Method Detail
-
getCartId
public String 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
public String 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
public void setCartId(String cartId)
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
public void setFailureMessage(String failureMessage)
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
-
canEqual
protected boolean canEqual(Object other)
-
-