Class SapSendRCConsignmentToExternalFulfillmentSystemStrategy

  • All Implemented Interfaces:
    de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy

    public class SapSendRCConsignmentToExternalFulfillmentSystemStrategy
    extends java.lang.Object
    implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
    Strategy class to send order to subscription billing system
    • Field Detail

      • CONSIGNMENT_SUBMISSION_CONFIRMATION_EVENT

        public static final java.lang.String CONSIGNMENT_SUBMISSION_CONFIRMATION_EVENT
        See Also:
        Constant Field Values
      • RESPONSE_MESSAGE

        public static final java.lang.String RESPONSE_MESSAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SapSendRCConsignmentToExternalFulfillmentSystemStrategy

        public SapSendRCConsignmentToExternalFulfillmentSystemStrategy()
    • Method Detail

      • sendConsignment

        public void sendConsignment​(ConsignmentModel consignment)
        Specified by:
        sendConsignment in interface de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
      • sendRCOrderToScpi

        protected rx.Single<org.springframework.http.ResponseEntity<java.util.Map>> sendRCOrderToScpi​(ConsignmentModel consignment,
                                                                                                      OrderHistoryEntryModel orderHistoryEntry)
      • initializeOrderHistory

        protected OrderHistoryEntryModel initializeOrderHistory​(OrderModel order)
        Initialize an entry in the order history for the SAP order before sending it to the external system
        Parameters:
        order - Order
        Returns:
        historyEntry
      • initializeSapOrder

        protected SAPOrderModel initializeSapOrder​(OrderHistoryEntryModel orderHistoryEntry,
                                                   ConsignmentModel consignment)
        Initialize an SAP order from the parent Hybris order
        Parameters:
        orderHistoryEntry - Order History
        consignment - Consignment
        Returns:
        SAPOrderModel
      • getOrderHistoryService

        public de.hybris.platform.orderhistory.OrderHistoryService getOrderHistoryService()
        Returns:
        the orderHistoryService
      • setOrderHistoryService

        public void setOrderHistoryService​(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService)
        Parameters:
        orderHistoryService - the orderHistoryService to set
      • getModelService

        public de.hybris.platform.servicelayer.model.ModelService getModelService()
        Returns:
        the modelService
      • setModelService

        public void setModelService​(de.hybris.platform.servicelayer.model.ModelService modelService)
        Parameters:
        modelService - the modelService to set
      • getOrderService

        public de.hybris.platform.order.OrderService getOrderService()
        Returns:
        the orderService
      • setOrderService

        public void setOrderService​(de.hybris.platform.order.OrderService orderService)
        Parameters:
        orderService - the orderService to set
      • getSapRevenueCloudOrderOutboundService

        public SapRevenueCloudOrderOutboundService getSapRevenueCloudOrderOutboundService()
        Returns:
        the sapRevenueCloudOrderOutboundService
      • setSapRevenueCloudOrderOutboundService

        public void setSapRevenueCloudOrderOutboundService​(SapRevenueCloudOrderOutboundService sapRevenueCloudOrderOutboundService)
        Parameters:
        sapRevenueCloudOrderOutboundService - the sapRevenueCloudOrderOutboundService to set
      • getTimeService

        public de.hybris.platform.servicelayer.time.TimeService getTimeService()
        Returns:
        the timeService
      • setTimeService

        public void setTimeService​(de.hybris.platform.servicelayer.time.TimeService timeService)
        Parameters:
        timeService - the timeService to set
      • getBusinessProcessService

        public de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService()
        Returns:
        the businessProcessService
      • setBusinessProcessService

        public void setBusinessProcessService​(de.hybris.platform.processengine.BusinessProcessService businessProcessService)
        Parameters:
        businessProcessService - the businessProcessService to set