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​(de.hybris.platform.subscriptionservices.subscription.BillingTimeService 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)
      • getBillingTimeService

        protected de.hybris.platform.subscriptionservices.subscription.BillingTimeService getBillingTimeService()
      • getConfigurationService

        protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()