customer * -> company * * @param array $data * * @return Response * @throws ReflectionException * @throws Exception */ public function create(array $data): Response { if (isset($data['customer']['password'])) { $data['customer']['confirm_password'] = $data['customer']['password']; } if (isset($data['customer']['email'])) { $data['customer']['confirm_email'] = $data['customer']['email']; } if (empty($data['customer']['timezone'])) { $data['customer']['timezone'] = 'UTC'; } $client = new Client([ 'method' => Client::METHOD_POST, 'url' => $this->getConfig()->getApiUrl('customers'), 'paramsPost' => $data, ]); return $client->request(); } }