-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Možnost filtrace v seznamu faktur getInvoices(array('id_customer' => 123)) + Možnost filtrace v seznamu kontaktů getContacts(array('mail_to' => '[email protected]')) + Možnost filtrace v seznamu šablon a pravidelných faktur getTemplates(array('type' => 2,'end_type' => 1))
- Loading branch information
Showing
3 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,12 @@ Podrobnou dokumentace k API najdete na [http://docs.vyfakturujcz.apiary.io/](htt | |
|
||
## Changelog | ||
|
||
### Verze 2.1.4 | ||
|
||
+ Možnost filtrace v seznamu faktur getInvoices(array('id_customer' => 123)) | ||
+ Možnost filtrace v seznamu kontaktů getContacts(array('mail_to' => '[email protected]')) | ||
+ Možnost filtrace v seznamu šablon a pravidelných faktur getTemplates(array('type' => 2,'end_type' => 1)) | ||
|
||
### Verze 2.1.3 | ||
|
||
+ Přidání podpůrné funkce test_invoice__asPdf() - vytvoření faktury a stažení v PDF bez uložení v systému | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Třída pro práci s API Vyfakturuj.cz | ||
* | ||
* @author Ing. Martin Dostál <[email protected]> | ||
* @version 2.1.3 | ||
* @version 2.1.4 | ||
*/ | ||
class VyfakturujAPI{ | ||
|
||
|
@@ -59,8 +59,8 @@ public function getInvoice($id){ | |
* | ||
* @return array | ||
*/ | ||
public function getInvoices(){ | ||
return $this->_get('invoice/'); | ||
public function getInvoices($args = array()){ | ||
return $this->_get('invoice/?'.http_build_query($args)); | ||
} | ||
|
||
/** | ||
|
@@ -142,12 +142,13 @@ public function getContact($id){ | |
} | ||
|
||
/** | ||
* Vrátí seznam všech kontaktů | ||
* Vrátí seznam kontaktů | ||
* | ||
* @param array $args | ||
* @return array | ||
*/ | ||
public function getContacts(){ | ||
return $this->_get('contact/'); | ||
public function getContacts($args = array()){ | ||
return $this->_get('contact/?'.http_build_query($args)); | ||
} | ||
|
||
/** | ||
|
@@ -196,8 +197,8 @@ public function getTemplate($id){ | |
* | ||
* @return array | ||
*/ | ||
public function getTemplates(){ | ||
return $this->_get('template/'); | ||
public function getTemplates($args = array()){ | ||
return $this->_get('template/?'.http_build_query($args)); | ||
} | ||
|
||
/** | ||
|