Class CartRejectionEvent
java.lang.Object
com.broadleafcommerce.cart.service.messaging.event.CartRejectionEvent
- All Implemented Interfaces:
Serializable
A message event dispatched after an approver rejects a cart. This event should be consumed by
services that need to notify the original customer.
- Author:
- Kyrylo Boiko (kboiko2)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionID of the B2B account the cart belongs to.A map of additional attributes that provides flexibility for a more extensive usage of this eventcom.broadleafcommerce.cart.client.domain.CartActionAuditThe CartActionAudit object generated to record this rejectionThe id of the cart that was rejected The cart's id can be used to reference other related objects, such as previous CartActionAudits.com.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfocontaining tenant and sandbox info.The full name of the customer whose cart was rejectedThe email address of the customer whose cart was rejectedThe root B2B account's Id.voidsetAccountId(String accountId) ID of the B2B account the cart belongs to.voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) A map of additional attributes that provides flexibility for a more extensive usage of this eventvoidsetCartActionAudit(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAudit) The CartActionAudit object generated to record this rejectionvoidThe id of the cart that was rejected The cart's id can be used to reference other related objects, such as previous CartActionAudits.voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfocontaining tenant and sandbox info.voidsetCustomerFullName(String customerFullName) The full name of the customer whose cart was rejectedvoidsetEmailAddress(String emailAddress) The email address of the customer whose cart was rejectedvoidsetRootAccountId(String rootAccountId) The root B2B account's Id.
-
Constructor Details
-
CartRejectionEvent
public CartRejectionEvent()
-
-
Method Details
-
getCartId
The id of the cart that was rejected The cart's id can be used to reference other related objects, such as previous CartActionAudits. -
getAccountId
ID of the B2B account the cart belongs to. -
getRootAccountId
The root B2B account's Id. This could be an ancestor of the current account. -
getCustomerFullName
The full name of the customer whose cart was rejected -
getEmailAddress
The email address of the customer whose cart was rejected -
getCartActionAudit
public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAudit()The CartActionAudit object generated to record this rejection -
getAdditionalAttributes
A map of additional attributes that provides flexibility for a more extensive usage of this event -
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfocontaining tenant and sandbox info.- Returns:
- The
ContextInfocontaining tenant and sandbox info.
-
setCartId
The id of the cart that was rejected The cart's id can be used to reference other related objects, such as previous CartActionAudits. -
setAccountId
ID of the B2B account the cart belongs to. -
setRootAccountId
The root B2B account's Id. This could be an ancestor of the current account. -
setCustomerFullName
The full name of the customer whose cart was rejected -
setEmailAddress
The email address of the customer whose cart was rejected -
setCartActionAudit
public void setCartActionAudit(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAudit) The CartActionAudit object generated to record this rejection -
setAdditionalAttributes
A map of additional attributes that provides flexibility for a more extensive usage of this event -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfocontaining tenant and sandbox info.
-