Interface FutureStockFacade
- All Known Subinterfaces:
B2BFutureStockFacade,FutureStockFacade
- All Known Implementing Classes:
DefaultB2BFutureStockFacade,DefaultExtendedFutureStockFacade,DefaultFutureStockFacade,DefaultFutureStockFacade
public interface FutureStockFacade
Facade for 'Future Stock Management'.
-
Method Summary
Modifier and TypeMethodDescriptiongetFutureAvailability(String productCode) Gets the future product availability for the specified product, for each future date.getFutureAvailability(List<String> productCodes) Gets the future product availability for the list of specified products, for each future date.getFutureAvailabilityForSelectedVariants(String productCode, List<String> skus) Gets the future product availability for the list of specified variants related to a given product.
-
Method Details
-
getFutureAvailability
Gets the future product availability for the specified product, for each future date.- Parameters:
productCode- the product code- Returns:
- A list of quantity ordered by date. If there is no availability for this product in the future, an empty list is returned.
-
getFutureAvailability
Gets the future product availability for the list of specified products, for each future date.- Parameters:
productCodes- the product codes- Returns:
- A map of product codes with a list of quantity ordered by date.
-
getFutureAvailabilityForSelectedVariants
Map<String,List<FutureStockData>> getFutureAvailabilityForSelectedVariants(String productCode, List<String> skus) Gets the future product availability for the list of specified variants related to a given product.- Parameters:
productCode- the product codeskus- Product codes of the desired variants related to the productCode.- Returns:
- A map of product codes with a list of quantity ordered by date. If product is not variant, returns null.
-