original_string: public function cancelHeldAuth(CardPayments\Authorization $auth)
      {
          $auth->setRequiredFields(array('id'));
          $auth->checkRequiredFields();
  
          $tmpAuth = new CardPayments\Authorization(array(
               'status' => 'CANCELLED'
          ));
          $request = new Request(array(
               'method' => Request::PUT,
               'uri' => $this->prepareURI("/auths/" . $auth->id),
               'body' => $tmpAuth
          ));
          $response = $this->client->processRequest($request);
  
          return new CardPayments\Authorization($response);
      }
code: public function cancelHeldAuth(CardPayments\Authorization $auth)
      {
          $auth->setRequiredFields(array('id'));
          $auth->checkRequiredFields();
  
          $tmpAuth = new CardPayments\Authorization(array(
               'status' => 'CANCELLED'
          ));
          $request = new Request(array(
               'method' => Request::PUT,
               'uri' => $this->prepareURI("/auths/" . $auth->id),
               'body' => $tmpAuth
          ));
          $response = $this->client->processRequest($request);
  
          return new CardPayments\Authorization($response);
      }
code_tokens: public function cancelHeldAuth ( CardPayments \ Authorization $ auth ) { $ auth -> setRequiredFields ( array ( 'id' ) ) ; $ auth -> checkRequiredFields ( ) ; $ tmpAuth = new CardPayments \ Authorization ( array ( 'status' => 'CANCELLED' ) ) ; $ request = new Request ( array ( 'method' => Request :: PUT , 'uri' => $ this -> prepareURI ( "/auths/" . $ auth -> id ) , 'body' => $ tmpAuth ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CardPayments \ Authorization ( $ response ) ; }
docstring: Cancel held authorization.
  
  @param \Paysafe\CardPayments\Authorization $auth
  @return \Paysafe\CardPayments\Authorization
  @throws PaysafeException
docstring_tokens: Cancel held authorization .