Interface CommerceInventoryMethod


public interface CommerceInventoryMethod
  • Method Details

    • consumeQuantity

      void consumeQuantity(long userId, long commerceInventoryBookedQuantityId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey, Map<String,String> context) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • decreaseStockQuantity

      void decreaseStockQuantity(long userId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAvailabilityStatus

      String getAvailabilityStatus(long companyId, long accountEntryId, long commerceChannelGroupId, BigDecimal minStockQuantity, String sku, String unitOfMeasureKey)
    • getKey

      String getKey()
    • getLabel

      String getLabel(Locale locale)
    • getStockQuantity

      BigDecimal getStockQuantity(long companyId, long accountEntryId, long commerceChannelGroupId, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getStockQuantity

      BigDecimal getStockQuantity(long companyId, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • hasStockQuantity

      boolean hasStockQuantity(long companyId, BigDecimal quantity, String sku, String unitOfMeasureKey)
    • increaseStockQuantity

      void increaseStockQuantity(long userId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException