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 a CheckoutCompletionEvent, CheckoutRollbackEvent, or CartPendingPaymentFailedEvent.
Author:
Sunny Yu
See Also:
  • Constructor Details

    • SendCheckoutEventResponse

      public SendCheckoutEventResponse()
  • Method Details

    • getCartId

      public String getCartId()
      The Cart.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 if isSuccess() is false.
      Returns:
      message intended to inform why the sending the event failed if isSuccess() is false
    • setCartId

      public void setCartId(String cartId)
      The Cart.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 if isSuccess() is false.
      Parameters:
      failureMessage - message intended to inform why the sending the event failed if isSuccess() is false
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object