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 booleancanEqual(Object other)booleanequals(Object o)StringgetCartId()TheCart.getId()that was requested to re-send the event.StringgetFailureMessage()Message intended to inform why the sending the event failed ifisSuccess()is false.inthashCode()booleanisSuccess()Whether or not sending the event was successful.voidsetCartId(String cartId)TheCart.getId()that was requested to re-send the event.voidsetFailureMessage(String failureMessage)Message intended to inform why the sending the event failed ifisSuccess()is false.voidsetSuccess(boolean success)Whether or not sending the event was successful.StringtoString()
-
-
-
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)
-
-