Class ShippingLabelProcess

java.lang.Object
com.skava.oms.process.ShippingLabelProcess

@Component public class ShippingLabelProcess extends Object

This class is the ShippingLabelProcess, label retrival for given parameters are implemented here

  • Field Details

  • Constructor Details

    • ShippingLabelProcess

      public ShippingLabelProcess()
  • Method Details

    • createShipment

      public Map<String,byte[]> createShipment(long collectionId, Order order)
      This method is used to create a shipment in vendor system which will create return shipment label.
      Parameters:
      collectionId - holds the unique collection identifier
      order - holds the order object
      Returns:
      Map
    • getShippingLabels

      public Map<String,byte[]> 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.
      Parameters:
      collectionId - holds the unique collection identifier
      orderId - holds the unique order identifier
      itemId - holds the unique item identifier of an order
      Returns:
      Map
    • getStrategyImplInstance

      public GetShippingLabelStrategy getStrategyImplInstance(String getShippingLabelImpl)
      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