Esempio n. 1
0
 /**
  * 
  * @param int $id
  * @return InvoiceSendResponse
  * @throws IfirmaException
  */
 public static function get($id)
 {
     $invoice = new InvoiceSendResponse();
     $invoice->disableSendMethod();
     ConnectorAbstract::factory($invoice)->receive($id);
     return $invoice;
 }
 /**
  * 
  * @return ConnectorResponse
  */
 public function send()
 {
     if ($this->_disableSend) {
         throw new IfirmaException("Unable to send this request");
     }
     return ConnectorAbstract::factory($this)->send();
 }
Esempio n. 3
0
 /**
  * 
  * @param int $id
  * @return InvoiceResponse
  * @throws IfirmaException
  */
 public static function get($id)
 {
     require_once dirname(__FILE__) . '/InvoiceResponse.php';
     $invoice = new InvoiceResponse();
     $invoice->disableSendMethod();
     ConnectorAbstract::factory($invoice)->receive($id);
     return $invoice;
 }
Esempio n. 4
0
 /**
  * 
  * @param int $id
  * @return InvoiceBill
  * @throws IfirmaException
  */
 public static function get($id)
 {
     $bill = new InvoiceBillResponse();
     $bill->disableSendMethod();
     ConnectorAbstract::factory($bill)->receive($id);
     return $bill;
 }
 /**
  * @return binary
  */
 public function getPdf()
 {
     return ConnectorAbstract::factory($this)->receivePdf();
 }