Send the request with specified data

@param  mixed $data The data to send

@return RedirectCompleteAuthoriseResponse
772347
public function sendData($data)
    {
        $response = $this->gocardless->redirectFlows()->complete($data['authorisationRequestId'], $data);

        return $this->response = new RedirectCompleteAuthoriseResponse($this, $response);
    }
684026
public function sendData($data)
    {
        $this->httpClient->setConfig([
            'curl.options' => [
                CURLOPT_SSLVERSION => 1,
                CURLOPT_SSL_VERIFYHOST => 2,
                CURLOPT_SSL_VERIFYPEER => 1,
            ],
        ]);

        $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send();
        $data['_result'] = $httpResponse->getBody(1);

        return $this->response = new CompletePurchaseResponse($this, $data);
    }
34695
public function sendData($data)
    {
        $response = $this->gocardless->payments()->retry($data['paymentId']);

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

        return $this->response = new BankAccountResponse($this, $response);
    }
583108
private function send($data)
	{
		$rawMessage = json_encode($data);
		$payload = new WebsocketPayload;
		$payload->setOpcode(WebsocketPayload::OPCODE_TEXT)
				->setMask(TRUE)
				->setPayload($rawMessage);
		$encoded = $payload->encodePayload();
		fwrite($this->fd, $encoded);

		return $this;
	}
154859
public function sendData($data)
    {
        $data = parent::sendData($data);

        return $this->response = new AopTradeCloseResponse($this, $data);
    }
1164766
public function sendData($data)
    {
        $response = $this->braintree->transaction()->releaseFromEscrow($data['transactionId']);

        return $this->createResponse($response);
    }
467577
public function sendData($data)
    {
        $httpResponse = $this->sendRequest($this->getEndpointAction(), null, 'GET');
        $responseData = json_decode($httpResponse->getBody(true), true);

        return $this->response = new HostedPurchaseResponse($this, $responseData);
    }
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);
    }
1175638
public function sendData($data)
    {
        $data = parent::sendData($data);

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

        return $this->response = new AopTradeQueryResponse($this, $data);
    }
843639
public function sendData($data)
    {
        $response = $this->gocardless->payments()->update($data['paymentId'], $data['paymentData']);

        return $this->response = new PaymentResponse($this, $response);
    }
741183
public function sendData($data)
    {
        $response = $this->braintree->transaction()->submitForSettlement($data['transactionReference'], $data['amount']);

        return $this->createResponse($response);
    }
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);
    }
1007496
public function sendData($data)
    {
        $response = $this->braintree->transaction()->sale($data);

        return $this->createResponse($response);
    }
594328
public function sendData($data)
    {
        $httpResponse = $this->httpClient->post(
            $this->getEndpoint(),
            ['Content-Type' => 'text/xml; charset=utf-8'],
            $this->xmlSerialize($data)
        )->send();

        return $this->response = $this->newResponse( $httpResponse->xml() );
    }
1330201
public function sendData($data)
    {
        $request = new LegacyNotifyRequest($this->httpClient, $this->httpRequest);
        $request->initialize($this->parameters->all());
        $request->setAlipayPublicKey($this->getAlipayPublicKey());
        $request->setVerifyNotifyId($this->verifyNotifyId);
        $request->setKey($this->getKey());
        $response = $request->send();

        $data = $response->getData();

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