Interface ATPService
- All Known Implementing Classes:
DefaultCosATPService,DummyATPService
public interface ATPService
Service for aggregated availability
-
Method Summary
Modifier and TypeMethodDescriptioncallRestAvailabilityServiceForProduct(String cartGuid, String itemId, ProductModel product) Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availabilitycallRestAvailabilityServiceForProductAndSource(ProductModel product, String source) Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given sourcecallRestAvailabilityServiceForProductAndSource(String cartGuid, String itemId, ProductModel product, String source) Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given sourcecallRestAvailabilityServiceForProductAndSources(String cartGuid, String itemId, ProductModel product, List<String> sourcesList) Call the REST Service in Customer Activity Repository (CAR) for a given product and sources list to get current product availability linescallRestAvailabilityServiceForProducts(String cartGuid, List<String> itemIdList, String productUnit, List<ProductModel> productList) Call the REST Service in Customer Activity Repository (CAR) for a given product list to get current product availability lines
-
Method Details
-
callRestAvailabilityServiceForProduct
List<ATPAvailability> callRestAvailabilityServiceForProduct(String cartGuid, String itemId, ProductModel product) Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability- 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
List<ATPAvailability> callRestAvailabilityServiceForProductAndSource(ProductModel product, String source) Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given source- Parameters:
product- The product availability to be checked.source- The source availability to be checked.- Returns:
- list of current product location availability.
-
callRestAvailabilityServiceForProductAndSource
List<ATPAvailability> callRestAvailabilityServiceForProductAndSource(String cartGuid, String itemId, ProductModel product, String source) Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given source- 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
List<ATPProductAvailability> callRestAvailabilityServiceForProducts(String cartGuid, List<String> itemIdList, String productUnit, List<ProductModel> productList) Call the REST Service in Customer Activity Repository (CAR) for a given product list to get current product availability lines- Parameters:
cartGuid- The id for the cart.itemIdList- Must have the same order as parameter productListproductUnit- Single unit for all productsproductList- Must have the same order as parameter itemIdList- Returns:
- list of current availability for given products
-
callRestAvailabilityServiceForProductAndSources
List<ATPProductAvailability> callRestAvailabilityServiceForProductAndSources(String cartGuid, String itemId, ProductModel product, List<String> sourcesList) Call the REST Service in Customer Activity Repository (CAR) for a given product and sources list to get current product availability lines- 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
-