Class DefaultCosReservationService

    • Constructor Detail

      • DefaultCosReservationService

        public DefaultCosReservationService()
    • Method Detail

      • updateReservation

        public ReservationResponse updateReservation​(AbstractOrderModel abstractOrderModel,
                                                     java.lang.String reservationStatus)
        Description copied from interface: ReservationService
        Calls the REST service to update the temporary reservation. This only updates the Status and the Order ID of the temporary reservation in the Backend, other changes which where done in the order are not changed in the reservation - new Item, changed items etc.
        Specified by:
        updateReservation in interface ReservationService
        Parameters:
        abstractOrderModel - The order to be used as CartModel or OrderModel during COS Reservation.
        reservationStatus - reservationStatus used for COS Reservation Status
        Returns:
        reservationResponse
      • updateReservationForCartItem

        public ReservationResponse updateReservationForCartItem​(AbstractOrderModel abstractOrderModel,
                                                                java.lang.String reservationStatus,
                                                                java.lang.String cartItemId)
        Description copied from interface: ReservationService
        Calls the REST service to update the temporary reservation for available Cart Items.
        Specified by:
        updateReservationForCartItem in interface ReservationService
        Parameters:
        abstractOrderModel - The order to be used as CartModel or OrderModel during COS Reservation.
        reservationStatus - reservationStatus used for COS Reservation Status
        cartItemId - cartItemId Used during COS update Reservation.
        Returns:
        reservationResponse
      • deleteReservation

        public void deleteReservation​(AbstractOrderModel abstractOrderModel)
        Description copied from interface: ReservationService
        Deletes entire reservation in COS.
        Specified by:
        deleteReservation in interface ReservationService
        Parameters:
        abstractOrderModel - The order to be used as CartModel or OrderModel during COS Reservation Delete.
      • deleteReservationItem

        public void deleteReservationItem​(AbstractOrderModel abstractOdrerModel,
                                          AbstractOrderEntryModel abstractOrderEntryModel)
        Description copied from interface: ReservationService
        Deletes reservation entry in COS.
        Specified by:
        deleteReservationItem in interface ReservationService
        Parameters:
        abstractOdrerModel - The order to be used as CartModel or OrderModel during COS Reservation Delete.
        abstractOrderEntryModel - The order entry to be used as CartModel or OrderModel during COS Reservation Delete.
      • setServiceUtils

        public void setServiceUtils​(ServiceUtils serviceUtils)
        Parameters:
        serviceUtils - the serviceUtils to set
      • getServiceUtils

        protected ServiceUtils getServiceUtils()
        Returns:
        the serviceUtils
      • getIntegrationRestTemplateFactory

        public de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()
      • setReservationResultHandler

        public void setReservationResultHandler​(CosReservationResultHandler reservationResultHandler)
        Parameters:
        reservationResultHandler - the reservationResultHandler to set
      • setIntegrationRestTemplateFactory

        public void setIntegrationRestTemplateFactory​(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)
      • getConfigurationService

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

        public void setConfigurationService​(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      • getCosServiceUtils

        public CosServiceUtils getCosServiceUtils()
        Returns:
        the cosServiceUtils
      • setCosServiceUtils

        public void setCosServiceUtils​(CosServiceUtils cosServiceUtils)
        Parameters:
        cosServiceUtils - the cosServiceUtils to set