getEntityUrl() . $this->id; return $this->request('PATCH', $url, $attributes); } public function refund($options = array()) { $relativeUrl = $this->getEntityUrl() . $this->id . '/refund'; return $this->request('POST', $relativeUrl, $options); } }