diff --git a/src/Models/Product.php b/src/Models/Product.php index 4b3a478..3568165 100644 --- a/src/Models/Product.php +++ b/src/Models/Product.php @@ -1,18 +1,28 @@ $data, + ]; + + return $this->request->handleWithExceptions( function () use ( $data, $id ) { + + $response = + $this->request->client->put( "products/{$this->{urlencode($this->primaryKey)}}/stockItems/{$id}", [ + 'json' => $data, + ] ); + + return $response; + } ); + } }