芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/vendor/razorpay/razorpay/src/Invoice.php
getEntityUrl() . $this->id . '/cancel'; return $this->request(Requests::POST, $url); } /** * Send/re-send notification for invoice by given medium * * @param $medium - sms|email * * @return array */ public function notifyBy($medium) { $url = $this->getEntityUrl() . $this->id . '/notify_by/' . $medium; $r = new Request(); return $r->request(Requests::POST, $url); } /** * Patches given invoice with new attributes * * @param array $attributes * * @return Invoice */ public function edit($attributes = array()) { $url = $this->getEntityUrl() . $this->id; return $this->request(Requests::PATCH, $url, $attributes); } /** * Issues drafted invoice * * @return Invoice */ public function issue() { $url = $this->getEntityUrl() . $this->id . '/issue'; return $this->request(Requests::POST, $url); } /** * Deletes drafted invoice * * @return Invoice */ public function delete() { $url = $this->getEntityUrl() . $this->id; $r = new Request(); return $r->request(Requests::DELETE, $url); } }