Skip to content

Tradebyte SDK 0.4.0

Latest
Compare
Choose a tag to compare
@kinimodmeyer kinimodmeyer released this 21 Apr 09:46
20c4f79
  • Deprecation of method Tradebyte\Stock\Handler::updateStockFromStockList
  • Deprecation of using Tradebyte\Stock\Model\Stock as parameter object-array with method Tradebyte\Stock\Handler::updateStock
  • Added stock update support for several warehouses #13
$stockHandler->updateStock([
    (new Tradebyte\Stock\Model\StockUpdate())
        ->setArticleNumber('12345')
        ->setStock(6)
]);

or

$stockHandler->updateStock([
    (new Tradebyte\Stock\Model\StockUpdate())
        ->setArticleNumber('12345')
        ->addStockForWarehouse('zentrallager', 10)
        ->addStockForWarehouse('aussenlager', 5)
]);