Esempio n. 1
0
 /**
  * Construct class and set dependencies
  * @param devdk\Economics\Client $client
  */
 public function __construct(Client $client, $invoiceHandle = NULL)
 {
     $this->client = $client->getClient();
     $this->client_raw = $client;
     if ($invoiceHandle) {
         $this->invoiceHandle = $invoiceHandle;
     }
 }
Esempio n. 2
0
 /**
  * Construct class and set dependencies
  * @param devdk\Economics\Client $client
  */
 public function __construct(Client $client, $orderHandle = NULL)
 {
     $this->client = $client->getClient();
     $this->client_raw = $client;
     if ($orderHandle) {
         $this->orderHandle = $orderHandle;
     }
 }
Esempio n. 3
0
 /**
  * Construct class and set dependencies
  * @param devdk\Economics\Client $client
  */
 public function __construct(Client $client)
 {
     $this->client = $client->getClient();
     $this->client_raw = $client;
 }
 /**
  * Construct class and set dependencies
  * @param Client $client
  * @param mixed $quotationHandle
  */
 public function __construct(Client $client, $quotationHandle = NULL)
 {
     $this->client = $client->getClient();
     $this->client_raw = $client;
     $this->quotationHandle = $quotationHandle;
 }
Esempio n. 5
0
 public function __construct(Client $client, $subscriptionHandle)
 {
     $this->client = $client->getClient();
     $this->client_raw = $client;
     $this->subscriptionHandle = $subscriptionHandle;
 }
 /**
  * Book a current Invoice
  *
  * @param  integer $invoiceNumber
  * @return object
  */
 public function book($invoiceNumber)
 {
     $handle = $this->getHandle($invoiceNumber);
     $number = $this->client->CurrentInvoice_Book(['currentInvoiceHandle' => $handle])->CurrentInvoice_BookResult;
     return $number;
 }