/** * @param string $id * @param ProductDataTransfer $data * * @return bool */ public function update($id, ProductDataTransfer $data) { $endpoint = new Update($this->getTransport()); $endpoint->setId($id); $endpoint->setTransfer($data); try { $result = $endpoint->performRequest(); } catch (ResourceNotFoundException $e) { return false; } return $result['status'] == 204; }