Class TmaPaymentMethodPlaceOrderMethodHook

  • All Implemented Interfaces:
    de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook

    public class TmaPaymentMethodPlaceOrderMethodHook
    extends java.lang.Object
    implements de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook
    Cart validation hook to verify if payment method is required
    Since:
    1911
    • Constructor Detail

      • TmaPaymentMethodPlaceOrderMethodHook

        public TmaPaymentMethodPlaceOrderMethodHook​(TmaBillingTimeService billingTimeService,
                                                    de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
    • Method Detail

      • afterPlaceOrder

        public void afterPlaceOrder​(CommerceCheckoutParameter parameter,
                                    CommerceOrderResult orderModel)
                             throws de.hybris.platform.order.InvalidCartException
        Specified by:
        afterPlaceOrder in interface de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook
        Throws:
        de.hybris.platform.order.InvalidCartException
      • 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)
                               throws de.hybris.platform.order.InvalidCartException
        Specified by:
        beforeSubmitOrder in interface de.hybris.platform.commerceservices.order.hook.CommercePlaceOrderMethodHook
        Throws:
        de.hybris.platform.order.InvalidCartException
      • isPaymentMethodRequired

        protected boolean isPaymentMethodRequired​(CartModel cartModel)
      • getConfigurationService

        @Deprecated(since="2007")
        protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
        Deprecated.
        since 2007
        Returns the configuration service.
        Returns:
        the configuration service