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 java.lang.Object implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategyStrategy class to send order to subscription billing system
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONSIGNMENT_SUBMISSION_CONFIRMATION_EVENTstatic java.lang.StringRESPONSE_MESSAGE
-
Constructor Summary
Constructors Constructor Description SapSendRCConsignmentToExternalFulfillmentSystemStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.hybris.platform.processengine.BusinessProcessServicegetBusinessProcessService()de.hybris.platform.servicelayer.model.ModelServicegetModelService()de.hybris.platform.orderhistory.OrderHistoryServicegetOrderHistoryService()de.hybris.platform.order.OrderServicegetOrderService()SapRevenueCloudOrderOutboundServicegetSapRevenueCloudOrderOutboundService()de.hybris.platform.servicelayer.time.TimeServicegetTimeService()protected 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<java.util.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 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
-
-
Method Detail
-
sendConsignment
public void sendConsignment(ConsignmentModel consignment)
- Specified by:
sendConsignmentin interfacede.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 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
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
-
-