Class QuoteStatusChangedEvent

java.lang.Object
com.broadleafcommerce.cart.service.messaging.event.QuoteStatusChangedEvent
All Implemented Interfaces:
Serializable

public class QuoteStatusChangedEvent extends Object implements Serializable
A message event dispatched after the status of a quote has been changed. This event should be consumed by services that need to notify the customer or sales rep.
Author:
Sunny Yu
See Also:
  • Constructor Details

    • QuoteStatusChangedEvent

      public QuoteStatusChangedEvent()
  • Method Details

    • getQuoteId

      public String getQuoteId()
      The id of the quote that was rejected
    • getCustomerRef

      public com.broadleafcommerce.order.common.domain.CustomerRef getCustomerRef()
      The CustomerRef representing the owner of the quote.
    • getCustomerEmail

      public String getCustomerEmail()
      The email address of the customer whose quote's status was changed
    • getCartActionAudit

      public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAudit()
      The CartActionAudit object generated to record this status change
    • getSalesRepUserId

      @Nullable public String getSalesRepUserId()
      The user id of the sales rep assigned to this quote.

      May be null if not assigned in certain statuses, e.g. quote requested

    • getSalesRepName

      @Nullable public String getSalesRepName()
      The name of the sales rep assigned to this quote

      May be null if not assigned in certain statuses, e.g. quote requested

    • getSalesRepEmail

      public String getSalesRepEmail()
      The email of the sales rep assigned to this quote

      If not assigned to a certain sales rep, defaults to a configured sales email.

    • getAdditionalAttributes

      public Map<String,Object> 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()
      The ContextInfo containing tenant and sandbox info.
      Returns:
      The ContextInfo containing tenant and sandbox info.
    • setQuoteId

      public void setQuoteId(String quoteId)
      The id of the quote that was rejected
    • setCustomerRef

      public void setCustomerRef(com.broadleafcommerce.order.common.domain.CustomerRef customerRef)
      The CustomerRef representing the owner of the quote.
    • setCustomerEmail

      public void setCustomerEmail(String customerEmail)
      The email address of the customer whose quote's status was changed
    • setCartActionAudit

      public void setCartActionAudit(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAudit)
      The CartActionAudit object generated to record this status change
    • setSalesRepUserId

      public void setSalesRepUserId(@Nullable String salesRepUserId)
      The user id of the sales rep assigned to this quote.

      May be null if not assigned in certain statuses, e.g. quote requested

    • setSalesRepName

      public void setSalesRepName(@Nullable String salesRepName)
      The name of the sales rep assigned to this quote

      May be null if not assigned in certain statuses, e.g. quote requested

    • setSalesRepEmail

      public void setSalesRepEmail(String salesRepEmail)
      The email of the sales rep assigned to this quote

      If not assigned to a certain sales rep, defaults to a configured sales email.

    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      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)
      The ContextInfo containing tenant and sandbox info.