/home/techb158/ileadtechnology.com/SSM/vendor/razorpay/razorpay/src
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/razorpay/razorpay/src/Invoice.php (2371B)
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);
}
}