src/ManagementResources/IsArchivable.php
function archive($id)
    {
        $this->requestDecorator->setId($id  . '/archived');
        $result = $this->client->put($this->requestDecorator->makeResource(), $this->requestDecorator->makePayload(), $this->requestDecorator->makeHeaders());
        $this->refresh();
        return $result;
    }
function archive($id)
    {
        $this->requestDecorator->setId($id  . '/archived');
        $result = $this->client->put($this->requestDecorator->makeResource(), $this->requestDecorator->makePayload(), $this->requestDecorator->makeHeaders());
        $this->refresh();
        return $result;
    }
function archive ( $ id ) { $ this -> requestDecorator -> setId ( $ id . '/archived' ) ; $ result = $ this -> client -> put ( $ this -> requestDecorator -> makeResource ( ) , $ this -> requestDecorator -> makePayload ( ) , $ this -> requestDecorator -> makeHeaders ( ) ) ; $ this -> refresh ( ) ; return $ result ; }
Archive a record.
@param $id
@return mixed
Archive a record .