public interface

MagentoInventoryClient

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

Class Overview

Facade for the Magento Inventory API

Summary

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

Public Methods

public abstract AttributesCollectionType 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, Map<String, Object> attributes)

Update product stock data given its id or sku

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