_delete($params, $opts); } /** * @param array|string|null $opts * * @return ExternalAccount The saved external account. */ public function save($opts = null) { return $this->_save($opts); } /** * @param array|null $params * @param array|string|null $opts * * @return ExternalAccount The verified (or not) external account. */ public function verify($params = null, $opts = null) { if ($this['customer']) { $url = $this->instanceUrl() . '/verify'; list($response, $options) = $this->_request('post', $url, $params, $opts); $this->refreshFrom($response, $options); return $this; } else { $message = 'Only customer external accounts can be verified in this manner.'; throw new Error\Api($message); } } }