public function refund(array $data)
    {
        $refund = new Refund($this->connector, $this->getLocation());
        $refund->create($data);

        return $refund;
    }
public function refund(array $data)
    {
        $refund = new Refund($this->connector, $this->getLocation());
        $refund->create($data);

        return $refund;
    }
public function refund ( array $ data ) { $ refund = new Refund ( $ this -> connector , $ this -> getLocation ( ) ) ; $ refund -> create ( $ data ) ; return $ refund ; }
Refunds an amount of a captured order.

@param array $data Refund data

@throws ConnectorException When the API replies with an error response
@throws RequestException   When an error is encountered
@throws \RuntimeException  If the API replies with an unexpected response
@throws \LogicException    When Guzzle cannot populate the response

@return Refund
Refunds an amount of a captured order .