Class TmaQualificationPlaceOrderMethodHook

java.lang.Object
de.hybris.platform.b2ctelcoservices.order.hook.TmaQualificationPlaceOrderMethodHook
All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook

public class TmaQualificationPlaceOrderMethodHook extends Object implements de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook
Order validation hook to verify if order contains qualification errors.
Since:
2211
  • Constructor Details

  • Method Details

    • afterPlaceOrder

      public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel)
      Specified by:
      afterPlaceOrder in interface de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook
    • beforePlaceOrder

      public void beforePlaceOrder(CommerceCheckoutParameter parameter) throws de.hybris.platform.order.InvalidCartException
      Specified by:
      beforePlaceOrder in interface de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook
      Throws:
      de.hybris.platform.order.InvalidCartException
    • beforeSubmitOrder

      public void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result)
      Specified by:
      beforeSubmitOrder in interface de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook
    • hasValidationErrors

      protected boolean hasValidationErrors(CartModel cartModel)
      Checks the presence of validation error messages.
      Parameters:
      cartModel - cart for which validation error messages are evaluated
      Returns:
      true if the cart contains at least one validation error message, false otherwise.
    • hasCompatibilityError

      protected boolean hasCompatibilityError(Set<TmaCartValidationModel> validationMessages)
      Checks if the list of validation messages contain any compatibility errors.
      Parameters:
      validationMessages - The list of validation messages
      Returns:
      true if the list contain compatibility validation messages, otherwise false
    • getPqQualificationService

      protected PqQualificationService getPqQualificationService()
    • getCartModelRaoConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<CartModel,PqPoQualificationRao> getCartModelRaoConverter()
    • getTmaQualificationCompatibilityValidationMessagesStrategy

      protected TmaQualificationValidationMessagesStrategy getTmaQualificationCompatibilityValidationMessagesStrategy()