Class CartAwaitingPaymentResultsEvent
java.lang.Object
com.broadleafcommerce.cartoperation.service.messaging.finalizecart.CartAwaitingPaymentResultsEvent
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionCartAwaitingPaymentResultsEvent
(com.broadleafcommerce.cart.client.domain.CheckoutCart cart, List<PaymentSummary> paymentSummaries, List<PaymentNextAction> paymentNextActions, Map<String, Object> additionalAttributes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Any extra properties needed for this eventcom.broadleafcommerce.cart.client.domain.CheckoutCart
getCart()
The cart that is being processed as part of a checkout attemptcom.broadleafcommerce.data.tracking.core.context.ContextInfo
TheContextInfo
derived from the original request containing tenant and sandbox info.A collection ofPaymentNextActions
describing the required next steps for the payment.A collection of the cart'sPaymentSummaries
int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Any extra properties needed for this eventvoid
setCart
(com.broadleafcommerce.cart.client.domain.CheckoutCart cart) The cart that is being processed as part of a checkout attemptvoid
setContextInfo
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info.void
setPaymentNextActions
(List<PaymentNextAction> paymentNextActions) A collection ofPaymentNextActions
describing the required next steps for the payment.void
setPaymentSummaries
(List<PaymentSummary> paymentSummaries) A collection of the cart'sPaymentSummaries
toString()
-
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
A collection of the cart'sPaymentSummaries
- Returns:
- A collection of the cart's
PaymentSummaries
-
getPaymentNextActions
A collection ofPaymentNextActions
describing the required next steps for the payment.- Returns:
- A collection of
PaymentNextActions
describing the required next steps for the payment.
-
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()TheContextInfo
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
A collection of the cart'sPaymentSummaries
- Parameters:
paymentSummaries
- A collection of the cart'sPaymentSummaries
-
setPaymentNextActions
A collection ofPaymentNextActions
describing the required next steps for the payment.- Parameters:
paymentNextActions
- A collection ofPaymentNextActions
describing the required next steps for the payment.
-
setAdditionalAttributes
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) TheContextInfo
derived from the original request containing tenant and sandbox info.- Parameters:
contextInfo
- TheContextInfo
derived from the original request
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-