/** * Send data to ERP * * @return void */ public function toErp(RequestInterface $request, $entity, array $response) { if (!($data = $this->parse($response))) { return $response; } return $request->send($entity, $data); }