Package com.skava.oms.strategy.impl
Class DefaultGetShippingLabelStrategyImpl
java.lang.Object
com.skava.oms.strategy.impl.DefaultGetShippingLabelStrategyImpl
- All Implemented Interfaces:
GetShippingLabelStrategy
@Component
public class DefaultGetShippingLabelStrategyImpl
extends Object
implements GetShippingLabelStrategy
This class is the DefaultGetShippingLabelStrategyImpl, contains the create shipment and get shipping label implementations for Return order flow, integrated with Newgistics application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateShippingLabel
(Map<String, String> pluginProperties, Order order) This service definition is used to create a shipment.getShippingLabel
(Map<String, String> pluginProperties, long collectionId, Order order, String itemId) This service definition is used to fetch the shipping label for the given order.
-
Constructor Details
-
DefaultGetShippingLabelStrategyImpl
public DefaultGetShippingLabelStrategyImpl()
-
-
Method Details
-
createShippingLabel
Description copied from interface:GetShippingLabelStrategy
This service definition is used to create a shipment.- Specified by:
createShippingLabel
in interfaceGetShippingLabelStrategy
- Parameters:
pluginProperties
- holds collection properties of third party pluginorder
- holds order details- Returns:
- Map
-
getShippingLabel
public Map<String,byte[]> getShippingLabel(Map<String, String> pluginProperties, long collectionId, Order order, String itemId) Description copied from interface:GetShippingLabelStrategy
This service definition is used to fetch the shipping label for the given order.- Specified by:
getShippingLabel
in interfaceGetShippingLabelStrategy
- Parameters:
pluginProperties
- holds collection properties of third party plugincollectionId
- holds the collection identifierorder
- holds order detailsitemId
- holds the item identifier- Returns:
- Map
-