Interface CommerceInventoryMethod
public interface CommerceInventoryMethod
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeQuantity
(long userId, long commerceInventoryBookedQuantityId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey, Map<String, String> context) void
decreaseStockQuantity
(long userId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) getAvailabilityStatus
(long companyId, long accountEntryId, long commerceChannelGroupId, BigDecimal minStockQuantity, String sku, String unitOfMeasureKey) getKey()
getStockQuantity
(long companyId, long accountEntryId, long commerceChannelGroupId, String sku, String unitOfMeasureKey) getStockQuantity
(long companyId, String sku, String unitOfMeasureKey) boolean
hasStockQuantity
(long companyId, BigDecimal quantity, String sku, String unitOfMeasureKey) void
increaseStockQuantity
(long userId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey)
-
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
-
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
-
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
-