Send the request with specified data

@param  mixed $data The data to send
@return ResponseInterface
8123
public function sendData($data)
    {
        $response = $this->braintree->merchantAccount()->update($data['merchantAccountId'], $data['merchantData']);

        return $this->response = new Response($this, $response);
    }
226611
public function post ($data)
		{
			$this->_options[ CURLOPT_POST ] = 1;
			$this->_options[ CURLOPT_POSTFIELDS ] = is_array($data) ? http_build_query($data) : $data;

			return $this->send();
		}
1308550
public function sendData($data)
    {
        $data['order_string'] = http_build_query($data);

        return $this->response = new AopTradeAppPayResponse($this, $data);
    }
794389
public function sendData($data)
    {
        $response = $this->gocardless->customerBankAccounts()->update($data['customerBankAccountId'], $data['customerBankAccountData']);

        return $this->response = new BankAccountResponse($this, $response);
    }
846528
public function sendData($data)
    {
        $url = $this->getEndpoint() . '?' . http_build_query($data);
        $httpResponse = $this->httpClient->get($url)->send();

        $xml = $httpResponse->xml();
        return $this->createResponse($xml);
    }
814816
public function sendData($data)
    {
        $endpoint = $this->getEndpoint() . '?' . http_build_query($data, '', '&');
        $hmac = hash_hmac('sha256', $endpoint, $this->getApiKey());
        $url = $this->getBaseUrl() . $endpoint . '&hmac=' . $hmac;
        return $this->response = new PurchaseResponse($this, $data, $url);
    }
664217
public function sendRequest(array $data): ResponseInterface
    {
        $options[RequestOptions::BODY] = $this->encodingService->encodeJson($data);

        return $this->send($options);
    }
940715
public function sendData($data)
    {
        $response = $this->gocardless->mandates()->update($data['mandateId'], $data['mandateData']);

        return $this->response = new MandateResponse($this, $response);
    }
793255
public function sendData($data)
    {
        $data = parent::sendData($data);

        return $this->response = new AopTradeOrderSettleResponse($this, $data);
    }
1174552
protected function send($data)
    {
        try {
            $result = $this->client->send($data);

            if ($result === false) {
                $errorCode = $this->client->errCode;

                throw new TransportException('Send data failed, cause: '.socket_strerror($errorCode).'.',
                    TransportException::CONNECTION);
            }
        }  catch (TransportException $e) {
            throw $e;
        } catch (Throwable $e) {
            if ($this->causedByConnectionProblem($e)) {
                throw new TransportException($e->getMessage(), TransportException::CONNECTION, $e);
            }

            throw new TransportException($e->getMessage(), 0, $e);
        }

        return $result;
    }
551222
public function sendData($data)
    {
        $response = $this->gocardless->customers()->update($data['customerId'], $data['customerData']);

        return $this->response = new CustomerResponse($this, $response);
    }
1052862
public function sendData($data)
    {
        $response = $this->gocardless->refunds()->get($this->getTransactionReference());

        return $this->response = new RefundResponse($this, $response);
    }
122431
public function sendData($data)
    {
        $data = $this->httpRequest('back', $data);

        $env        = $this->getEnvironment();
        $rootCert   = $this->getRootCert();
        $middleCert = $this->getMiddleCert();

        $data['verify_success'] = ResponseVerifyHelper::verify($data, $env, $rootCert, $middleCert);

        return $this->response = new WtzBackOpenResponse($this, $data);
    }
263010
public function sendData($data)
    {
        $data = parent::sendData($data);

        return $this->response = new AopTransferToAccountQueryResponse($this, $data);
    }
1346363
public function sendData($data)
    {
        $data = $this->httpRequest('trade', $data);

        return $this->response = new LegacyMobilePurchaseResponse($this, $data);
    }
582969
public function sendData($data)
    {
        $this->verifySignature();

        if ($this->params->has('notify_id')) {
            if ($this->verifyNotifyId) {
                $this->verifyNotifyId();
            }
        }

        return $this->response = new AopNotifyResponse($this, $data);
    }
1108610
public function sendData($data)
    {
        $response = $this->gocardless->refunds()->create($data);

        return $this->response = new RefundResponse($this, $response);
    }