Interface SapOaaCommerceStockService
- All Superinterfaces:
de.hybris.platform.commerceservices.stock.CommerceStockService
- All Known Implementing Classes:
DefaultSapCosOaaCommerceStockService,DefaultSapOaaCommerceStockService
public interface SapOaaCommerceStockService
extends de.hybris.platform.commerceservices.stock.CommerceStockService
Stock Service used in Omni Channel Commerce.
-
Method Summary
Modifier and TypeMethodDescriptiongetAvailabilityForProduct(String cartGuid, String itemId, ProductModel product) Get the availability for a given cart item.getAvailabilityForProductAndSource(ProductModel product, String source) Get the availability for a given product and source.getAvailabilityForProductAndSource(String cartGuid, String itemId, ProductModel product, String source) Get the availability for a given cart item and source.getAvailabilityForProductAndSources(String cartGuid, String itemId, ProductModel product, List<String> sourcesList) Get the availability for a given cart item and sources.getAvailabilityForProducts(String cartGuid, String itemId, String productUnit, List<ProductModel> productList) Get the availability for a given cart items and corresponding product unit.getAvailableStockLevel(String cartGuid, String itemId, ProductModel productModel, PointOfServiceModel pointOfServiceModel) Get current stock information calling ATP Service (CAR)getAvailableStockLevelForPos(String cartGuid, ProductModel productModel, PointOfServiceModel pointOfService) Get current stock information calling ATP Service (CAR)getStockLevel(StockLevelStatus stockLevelStatus, ProductModel product, BaseStoreModel baseStore) Returns stock level value for combination of given product,base store and stock level statusgetStockLevelForRSI(ProductModel product, BaseStoreModel baseStore) Get the stock information for a product and base storeMethods inherited from interface de.hybris.platform.commerceservices.stock.CommerceStockService
getPosAndStockLevelStatusForProduct, getStockLevelForProductAndBaseStore, getStockLevelForProductAndPointOfService, getStockLevelStatusForProductAndBaseStore, getStockLevelStatusForProductAndPointOfService, isStockSystemEnabled
-
Method Details
-
getAvailabilityForProduct
List<ATPAvailability> getAvailabilityForProduct(String cartGuid, String itemId, ProductModel product) Get the availability for a given cart item.- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.product- This product availability will be checked.- Returns:
- list of availability
-
getAvailabilityForProductAndSource
Get the availability for a given product and source.- Parameters:
product- This product availability will be checked.source- Product availability will be checked against given source.- Returns:
- list of availability
-
getAvailabilityForProductAndSource
List<ATPAvailability> getAvailabilityForProductAndSource(String cartGuid, String itemId, ProductModel product, String source) Get the availability for a given cart item and source.- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.product- This product availability will be checked.source- Product availability will be checked against given source.- Returns:
- list of availability
-
getAvailabilityForProducts
List<ATPProductAvailability> getAvailabilityForProducts(String cartGuid, String itemId, String productUnit, List<ProductModel> productList) Get the availability for a given cart items and corresponding product unit.- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.productUnit- This product unit will be checked.productList- This list of product whose availability will be checked.- Returns:
- list of ATP product availability
-
getAvailabilityForProductAndSources
List<ATPProductAvailability> getAvailabilityForProductAndSources(String cartGuid, String itemId, ProductModel product, List<String> sourcesList) Get the availability for a given cart item and sources.- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.product- This product availability will be checked.sourcesList- This source list availability will be checked.- Returns:
- list of ATP product availability
-
getAvailableStockLevelForPos
Long getAvailableStockLevelForPos(String cartGuid, ProductModel productModel, PointOfServiceModel pointOfService) Get current stock information calling ATP Service (CAR)- Parameters:
cartGuid- The id for the cart.productModel- This product availability will be checked.pointOfService- This point of service availability will be checked.- Returns:
- total aggregated ATP amount
-
getStockLevelForRSI
Get the stock information for a product and base store- Parameters:
product- This product rough stock will be checked.baseStore- This base store rough stock will be checked.- Returns:
- StockLevelModel
-
getAvailableStockLevel
Long getAvailableStockLevel(String cartGuid, String itemId, ProductModel productModel, PointOfServiceModel pointOfServiceModel) Get current stock information calling ATP Service (CAR)- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.productModel- This product stock will be checked.pointOfServiceModel- This point of service stock will be checked.- Returns:
- total aggregated ATP amount
-
getStockLevel
Long getStockLevel(StockLevelStatus stockLevelStatus, ProductModel product, BaseStoreModel baseStore) Returns stock level value for combination of given product,base store and stock level status- Parameters:
product- This product availability will be checked.baseStore- This is used for validating associated warehouse .stockLevelStatus- This is used for populating Stock Level Status.- Returns:
StockDatainformation
-