Beispiel #1
0
 /**
  * Sends an email invoice reminder
  *
  * @param Invoice $invoice
  * @param string $to
  * @param string $subject
  * @param string $text
  */
 public function invoicesSendInvoice(Invoice $invoice, $to, $subject, $text)
 {
     return $this->doCall('sendInvoice.php', array('invoice_id' => $invoice->getId(), 'email_to' => $to, 'email_subject' => $subject, 'email_text' => $text));
 }
Beispiel #2
0
 /**
  * Download a pdf of the invoice
  *
  * @param Invoice $invoice
  * @return
  */
 public function invoicesDownloadInvoicePDF(Invoice $invoice, $headers = false)
 {
     if ($headers) {
         header('Content-type: application/pdf');
     }
     return $this->doCall('downloadInvoicePDF.php', array('invoice_id' => $invoice->getId()));
 }