Class SapSendRCConsignmentToExternalFulfillmentSystemStrategy
java.lang.Object
com.sap.hybris.ysapcpircomsfulfillment.strategy.SapSendRCConsignmentToExternalFulfillmentSystemStrategy
- All Implemented Interfaces:
de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
public class SapSendRCConsignmentToExternalFulfillmentSystemStrategy
extends Object
implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
Strategy class to send order to subscription billing system
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.processengine.BusinessProcessServicede.hybris.platform.servicelayer.model.ModelServicede.hybris.platform.orderhistory.OrderHistoryServicede.hybris.platform.order.OrderServicede.hybris.platform.servicelayer.time.TimeServiceprotected OrderHistoryEntryModelinitializeOrderHistory(OrderModel order) Initialize an entry in the order history for the SAP order before sending it to the external systemprotected SAPOrderModelinitializeSapOrder(OrderHistoryEntryModel orderHistoryEntry, ConsignmentModel consignment) Initialize an SAP order from the parent Hybris ordervoidsendConsignment(ConsignmentModel consignment) protected rx.Single<org.springframework.http.ResponseEntity<Map>>sendRCOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry) voidsetBusinessProcessService(de.hybris.platform.processengine.BusinessProcessService businessProcessService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService) voidsetOrderService(de.hybris.platform.order.OrderService orderService) voidsetSapRevenueCloudOrderOutboundService(SapRevenueCloudOrderOutboundService sapRevenueCloudOrderOutboundService) voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
-
Field Details
-
CONSIGNMENT_SUBMISSION_CONFIRMATION_EVENT
- See Also:
-
RESPONSE_MESSAGE
- See Also:
-
-
Constructor Details
-
SapSendRCConsignmentToExternalFulfillmentSystemStrategy
public SapSendRCConsignmentToExternalFulfillmentSystemStrategy()
-
-
Method Details
-
sendConsignment
- Specified by:
sendConsignmentin interfacede.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
sendRCOrderToScpi
protected rx.Single<org.springframework.http.ResponseEntity<Map>> sendRCOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry) -
initializeOrderHistory
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 Historyconsignment- 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
- 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
-