Class CartAwaitingPaymentResultsEvent

java.lang.Object
com.broadleafcommerce.cartoperation.service.messaging.finalizecart.CartAwaitingPaymentResultsEvent
All Implemented Interfaces:
Serializable

public class CartAwaitingPaymentResultsEvent extends Object implements Serializable
A message event dispatched to notify of a cart that is awaiting payment results before the checkout process is finalized.
Author:
Aastha B
See Also:
  • Constructor Details

    • CartAwaitingPaymentResultsEvent

      public CartAwaitingPaymentResultsEvent()
    • CartAwaitingPaymentResultsEvent

      public CartAwaitingPaymentResultsEvent(com.broadleafcommerce.cart.client.domain.CheckoutCart cart, List<PaymentSummary> paymentSummaries, List<PaymentNextAction> paymentNextActions, Map<String,Object> additionalAttributes, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
  • Method Details

    • getCart

      public com.broadleafcommerce.cart.client.domain.CheckoutCart getCart()
      The cart that is being processed as part of a checkout attempt
      Returns:
      The cart that is being processed as part of a checkout attempt
    • getPaymentSummaries

      public List<PaymentSummary> getPaymentSummaries()
      A collection of the cart's PaymentSummaries
      Returns:
      A collection of the cart's PaymentSummaries
    • getPaymentNextActions

      public List<PaymentNextAction> getPaymentNextActions()
      A collection of PaymentNextActions describing the required next steps for the payment.
      Returns:
      A collection of PaymentNextActions describing the required next steps for the payment.
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Any extra properties needed for this event
      Returns:
      Any extra properties needed for this event
    • getContextInfo

      @Nullable public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()
      The ContextInfo derived from the original request containing tenant and sandbox info.
      Returns:
      The ContextInfo derived from the original request
    • setCart

      public void setCart(com.broadleafcommerce.cart.client.domain.CheckoutCart cart)
      The cart that is being processed as part of a checkout attempt
      Parameters:
      cart - The cart that is being processed as part of a checkout attempt
    • setPaymentSummaries

      public void setPaymentSummaries(List<PaymentSummary> paymentSummaries)
      A collection of the cart's PaymentSummaries
      Parameters:
      paymentSummaries - A collection of the cart's PaymentSummaries
    • setPaymentNextActions

      public void setPaymentNextActions(List<PaymentNextAction> paymentNextActions)
      A collection of PaymentNextActions describing the required next steps for the payment.
      Parameters:
      paymentNextActions - A collection of PaymentNextActions describing the required next steps for the payment.
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Any extra properties needed for this event
      Parameters:
      additionalAttributes - Any extra properties needed for this event
    • setContextInfo

      public void setContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      The ContextInfo derived from the original request containing tenant and sandbox info.
      Parameters:
      contextInfo - The ContextInfo derived from the original request
    • 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