original_string: public function getRefund(CardPayments\Refund $refund)
      {
          $refund->setRequiredFields(array('id'));
          $refund->checkRequiredFields();
  
          $request = new Request(array(
               'method' => Request::GET,
               'uri' => $this->prepareURI("/refunds/" . $refund->id)
          ));
  
          $response = $this->client->processRequest($request);
          return new CardPayments\Refund($response);
      }
code: public function getRefund(CardPayments\Refund $refund)
      {
          $refund->setRequiredFields(array('id'));
          $refund->checkRequiredFields();
  
          $request = new Request(array(
               'method' => Request::GET,
               'uri' => $this->prepareURI("/refunds/" . $refund->id)
          ));
  
          $response = $this->client->processRequest($request);
          return new CardPayments\Refund($response);
      }
code_tokens: public function getRefund ( CardPayments \ Refund $ refund ) { $ refund -> setRequiredFields ( array ( 'id' ) ) ; $ refund -> checkRequiredFields ( ) ; $ request = new Request ( array ( 'method' => Request :: GET , 'uri' => $ this -> prepareURI ( "/refunds/" . $ refund -> id ) ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CardPayments \ Refund ( $ response ) ; }
docstring: Get the refund.
  
  @param CardPayments\Refund $refund
  @return CardPayments\Refund[]
  @throws PaysafeException
docstring_tokens: Get the refund .