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);
    }
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);
    }
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 ) ; }
Cancel StandaloneCredits.
@param \Paysafe\DirectDebit\StandaloneCredits $standalonecredits
@return \Paysafe\DirectDebit\StandaloneCredits
@throws PaysafeException
Cancel StandaloneCredits .