diff --git a/src/Stock/Handler.php b/src/Stock/Handler.php index 56edb61..e0db5f6 100644 --- a/src/Stock/Handler.php +++ b/src/Stock/Handler.php @@ -34,7 +34,17 @@ public function downloadStockList(string $filePath, array $filter = []): bool } /** - * @param StockUpdate[] $stockArray + * @deprecated Don´t use this method, will be removed in next major release. + */ + public function updateStockFromStockList(string $filePath): string + { + return $this->client->getRestClient()->postXMLFile($filePath, 'articles/stock'); + } + + /** + * Don´t use Stock[] anymore as object-array, support will be removed in next major release. + * + * @param Stock[]|StockUpdate[] $stockArray */ public function updateStock(array $stockArray): string {