original_string: public function cancelStandalonecredits( DirectDebit\StandaloneCredits $standalonecredits )
      {
          $standalonecredits->setRequiredFields(array('id'));
          $standalonecredits->checkRequiredFields();
          $tmpAuth = new DirectDebit\StandaloneCredits(array(
              'status' => 'CANCELLED'
          ));
          $request = new Request(array(
              'method' => Request::PUT,
              'uri' => $this->prepareURI($this->standalonePath . $this->uriseparator . $standalonecredits->id),
              'body' => $tmpAuth
          ));
          $response = $this->client->processRequest($request);
          return new DirectDebit\StandaloneCredits($response);
      }
code: public function cancelStandalonecredits( DirectDebit\StandaloneCredits $standalonecredits )
      {
          $standalonecredits->setRequiredFields(array('id'));
          $standalonecredits->checkRequiredFields();
          $tmpAuth = new DirectDebit\StandaloneCredits(array(
              'status' => 'CANCELLED'
          ));
          $request = new Request(array(
              'method' => Request::PUT,
              'uri' => $this->prepareURI($this->standalonePath . $this->uriseparator . $standalonecredits->id),
              'body' => $tmpAuth
          ));
          $response = $this->client->processRequest($request);
          return new DirectDebit\StandaloneCredits($response);
      }
code_tokens: public function cancelStandalonecredits ( DirectDebit \ StandaloneCredits $ standalonecredits ) { $ standalonecredits -> setRequiredFields ( array ( 'id' ) ) ; $ standalonecredits -> checkRequiredFields ( ) ; $ tmpAuth = new DirectDebit \ StandaloneCredits ( array ( 'status' => 'CANCELLED' ) ) ; $ request = new Request ( array ( 'method' => Request :: PUT , 'uri' => $ this -> prepareURI ( $ this -> standalonePath . $ this -> uriseparator . $ standalonecredits -> id ) , 'body' => $ tmpAuth ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new DirectDebit \ StandaloneCredits ( $ response ) ; }
docstring: Cancel StandaloneCredits.
  @param \Paysafe\DirectDebit\StandaloneCredits $standalonecredits
  @return \Paysafe\DirectDebit\StandaloneCredits
  @throws PaysafeException
docstring_tokens: Cancel StandaloneCredits .