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
ConstructorsConstructorDescriptionCartAwaitingPaymentResultsEvent(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 booleanbooleanAny extra properties needed for this eventcom.broadleafcommerce.cart.client.domain.CheckoutCartgetCart()The cart that is being processed as part of a checkout attemptcom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.A collection ofPaymentNextActionsdescribing the required next steps for the payment.A collection of the cart'sPaymentSummariesinthashCode()voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Any extra properties needed for this eventvoidsetCart(com.broadleafcommerce.cart.client.domain.CheckoutCart cart) The cart that is being processed as part of a checkout attemptvoidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetPaymentNextActions(List<PaymentNextAction> paymentNextActions) A collection ofPaymentNextActionsdescribing the required next steps for the payment.voidsetPaymentSummaries(List<PaymentSummary> paymentSummaries) A collection of the cart'sPaymentSummariestoString()
-
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 ofPaymentNextActionsdescribing the required next steps for the payment.- Returns:
- A collection of
PaymentNextActionsdescribing 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()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived 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 ofPaymentNextActionsdescribing the required next steps for the payment.- Parameters:
paymentNextActions- A collection ofPaymentNextActionsdescribing 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) TheContextInfoderived from the original request containing tenant and sandbox info.- Parameters:
contextInfo- TheContextInfoderived from the original request
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-