public function updateCustomer(string $customerId, array $data)
    {
        $response = $this->sendRequest('PUT', sprintf('customers/%s', $customerId), ['content-type' => 'application/json'], json_encode($data));

        $result = $this->processResponse($response);

        if ($result['code'] == '0') {
            $customer = $result['customer'];

            $this->deleteCustomerCache($customer);

            return $customer;
        } else {
            return false;
        }
    }
public function updateCustomer(string $customerId, array $data)
    {
        $response = $this->sendRequest('PUT', sprintf('customers/%s', $customerId), ['content-type' => 'application/json'], json_encode($data));

        $result = $this->processResponse($response);

        if ($result['code'] == '0') {
            $customer = $result['customer'];

            $this->deleteCustomerCache($customer);

            return $customer;
        } else {
            return false;
        }
    }
@param string $customerId The customer's id
@param array  $data

@throws \Exception

@return array|bool