• File: ReleaseFromEscrowRequest.php
  • Full Path: /var/www/crm_set/application/vendor/omnipay/braintree/src/Message/ReleaseFromEscrowRequest.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 764 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Omnipay\Braintree\Message;

use Omnipay\Common\Message\ResponseInterface;

/**
 * Authorize Request.
 *
 * @method Response send()
 */
class ReleaseFromEscrowRequest extends AbstractRequest
{
    public function getData()
    {
        $this->validate('transactionId');

        return [
            'transactionId' => $this->getTransactionId(),
        ];
    }

    /**
     * Send the request with specified data.
     *
     * @param mixed $data The data to send
     *
     * @return ResponseInterface
     */
    public function sendData($data)
    {
        $response = $this->braintree->transaction()->releaseFromEscrow($data['transactionId']);

        return $this->createResponse($response);
    }
}