Exemple #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;
     }
 }
Exemple #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;
     }
 }
 /**
  * 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;
 }
 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;
 }