Interface CommerceCartMetadataUpdateMethodHook

All Known Implementing Classes:
DefaultCommerceCartMetadataUpdateValidationHook, QuoteCommerceCartMetadataUpdateValidationHook

public interface CommerceCartMetadataUpdateMethodHook
A hook interface into before and after cart metadata (i.e. name, description) update lifecycle
  • Method Details

    • beforeMetadataUpdate

      void beforeMetadataUpdate(CommerceCartMetadataParameter parameter)
      Executed before commerce cart metadata update.
      Parameters:
      parameter - a bean holding any number of additional attributes a client may want to pass to the method
      Throws:
      IllegalArgumentException - if any attributes fail validation
    • afterMetadataUpdate

      void afterMetadataUpdate(CommerceCartMetadataParameter parameter)
      Executed after commerce cart metadata update.
      Parameters:
      parameter - a bean holding any number of additional attributes a client may want to pass to the method