Package com.skava.oms.process
Class ShippingLabelProcess
java.lang.Object
com.skava.oms.process.ShippingLabelProcess
This class is the ShippingLabelProcess, label retrival for given parameters are implemented here
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateShipment
(long collectionId, Order order) This method is used to create a shipment in vendor system which will create return shipment label.getShippingLabels
(long collectionId, String orderId, String itemId) This method is used to fetch the return shipping label, either from db or from external system based on the collection property configuration.getStrategyImplInstance
(String getShippingLabelImpl) This method is used to load the instance of shipping label implementation class based on the given inputs.
-
Field Details
-
collectionRepository
-
orderRepository
-
-
Constructor Details
-
ShippingLabelProcess
public ShippingLabelProcess()
-
-
Method Details
-
createShipment
This method is used to create a shipment in vendor system which will create return shipment label.- Parameters:
collectionId
- holds the unique collection identifierorder
- holds the order object- Returns:
- Map
-
getShippingLabels
This method is used to fetch the return shipping label, either from db or from external system based on the collection property configuration.- Parameters:
collectionId
- holds the unique collection identifierorderId
- holds the unique order identifieritemId
- holds the unique item identifier of an order- Returns:
- Map
-
getStrategyImplInstance
This method is used to load the instance of shipping label implementation class based on the given inputs.- Parameters:
getShippingLabelImpl
- holds the shipping label implementation class collection property.- Returns:
- GetShippingLabelStrategy
-