Class DummyATPService

  • All Implemented Interfaces:
    ATPService

    public class DummyATPService
    extends java.lang.Object
    implements ATPService
    Dummy implementation of ATPService
    • Constructor Detail

      • DummyATPService

        public DummyATPService()
    • Method Detail

      • callRestAvailabilityServiceForProduct

        public java.util.List<ATPAvailability> callRestAvailabilityServiceForProduct​(java.lang.String cartGuid,
                                                                                     java.lang.String itemId,
                                                                                     ProductModel product)
        Description copied from interface: ATPService
        Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability
        Specified by:
        callRestAvailabilityServiceForProduct in interface ATPService
        Parameters:
        cartGuid - The id for the cart.
        itemId - The id for the item.
        product - The product availability to be checked.
        Returns:
        list of current product availability
      • callRestAvailabilityServiceForProductAndSource

        public java.util.List<ATPAvailability> callRestAvailabilityServiceForProductAndSource​(ProductModel product,
                                                                                              java.lang.String source)
        Description copied from interface: ATPService
        Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given source
        Specified by:
        callRestAvailabilityServiceForProductAndSource in interface ATPService
        Parameters:
        product - The product availability to be checked.
        source - The source availability to be checked.
        Returns:
        list of current product location availability.
      • callRestAvailabilityServiceForProductAndSource

        public java.util.List<ATPAvailability> callRestAvailabilityServiceForProductAndSource​(java.lang.String cartGuid,
                                                                                              java.lang.String itemId,
                                                                                              ProductModel product,
                                                                                              java.lang.String source)
        Description copied from interface: ATPService
        Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given source
        Specified by:
        callRestAvailabilityServiceForProductAndSource in interface ATPService
        Parameters:
        cartGuid - The id for the cart.
        itemId - The id for the item.
        product - The product availability to be checked.
        source - The source availability to be checked.
        Returns:
        list of current product location availability.
      • callRestAvailabilityServiceForProducts

        public java.util.List<ATPProductAvailability> callRestAvailabilityServiceForProducts​(java.lang.String cartGuid,
                                                                                             java.util.List<java.lang.String> itemIdList,
                                                                                             java.lang.String productUnit,
                                                                                             java.util.List<ProductModel> productList)
        Description copied from interface: ATPService
        Call the REST Service in Customer Activity Repository (CAR) for a given product list to get current product availability lines
        Specified by:
        callRestAvailabilityServiceForProducts in interface ATPService
        Parameters:
        cartGuid - The id for the cart.
        itemIdList - Must have the same order as parameter productList
        productUnit - Single unit for all products
        productList - Must have the same order as parameter itemIdList
        Returns:
        list of current availability for given products
      • callRestAvailabilityServiceForProductAndSources

        public java.util.List<ATPProductAvailability> callRestAvailabilityServiceForProductAndSources​(java.lang.String cartGuid,
                                                                                                      java.lang.String itemId,
                                                                                                      ProductModel product,
                                                                                                      java.util.List<java.lang.String> sourcesList)
        Description copied from interface: ATPService
        Call the REST Service in Customer Activity Repository (CAR) for a given product and sources list to get current product availability lines
        Specified by:
        callRestAvailabilityServiceForProductAndSources in interface ATPService
        Parameters:
        cartGuid - The id for the cart.
        itemId - The id for the item.
        product - The product availability to be checked.
        sourcesList - The source list availability to be checked.
        Returns:
        list of current availability for given product and sources