public interface

MagentoInventoryClient

org.mule.module.magento.api.customer.MagentoInventoryClient<ExceptionType extends java.lang.Exception>
Known Indirect Subclasses

Class Overview

Facade for the Magento Inventory API

Summary

Public Methods
abstract List<CatalogInventoryStockItemEntity> listStockItems(List<String> productIdsOrSkus)
Retrieve stock data by product ids
abstract void updateStockItem(String productIdOrSku, CatalogInventoryStockItemUpdateEntity attributes)
Update product stock data given its id or sku

Public Methods

public abstract List<CatalogInventoryStockItemEntity> listStockItems (List<String> productIdsOrSkus)

Retrieve stock data by product ids

Parameters
productIdsOrSkus A not empty list of product ids or skus whose attributes to list
Returns
  • a list of stock items attributes
Throws
Exception

public abstract void updateStockItem (String productIdOrSku, CatalogInventoryStockItemUpdateEntity attributes)

Update product stock data given its id or sku

Parameters
productIdOrSku The product id or sku of the product to update
attributes To update
Throws
Exception