public function edit($attributes = array())
    {
        $url = $this->getEntityUrl() . $this->id;

        return $this->request(Requests::PATCH, $url, $attributes);
    }
public function edit($attributes = array())
    {
        $url = $this->getEntityUrl() . $this->id;

        return $this->request(Requests::PATCH, $url, $attributes);
    }
public function edit ( $ attributes = array ( ) ) { $ url = $ this -> getEntityUrl ( ) . $ this -> id ; return $ this -> request ( Requests :: PATCH , $ url , $ attributes ) ; }
Patches given invoice with new attributes

@param array $attributes

@return Invoice
Patches given invoice with new attributes