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 Detail

      • getAvailabilityForProduct

        java.util.List<ATPAvailability> getAvailabilityForProduct​(java.lang.String cartGuid,
                                                                  java.lang.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

        java.util.List<ATPAvailability> getAvailabilityForProductAndSource​(ProductModel product,
                                                                           java.lang.String source)
        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

        java.util.List<ATPAvailability> getAvailabilityForProductAndSource​(java.lang.String cartGuid,
                                                                           java.lang.String itemId,
                                                                           ProductModel product,
                                                                           java.lang.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

        java.util.List<ATPProductAvailability> getAvailabilityForProducts​(java.lang.String cartGuid,
                                                                          java.lang.String itemId,
                                                                          java.lang.String productUnit,
                                                                          java.util.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

        java.util.List<ATPProductAvailability> getAvailabilityForProductAndSources​(java.lang.String cartGuid,
                                                                                   java.lang.String itemId,
                                                                                   ProductModel product,
                                                                                   java.util.List<java.lang.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

        java.lang.Long getAvailableStockLevelForPos​(java.lang.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

        StockLevelModel getStockLevelForRSI​(ProductModel product,
                                            BaseStoreModel baseStore)
        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

        java.lang.Long getAvailableStockLevel​(java.lang.String cartGuid,
                                              java.lang.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