Skip to content

Commit ae2be43

Browse files
committed
update endpoints
1 parent fd28f33 commit ae2be43

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ $client->sortDirection = 'ASC';
6161
$client->sortProperty = 'name';
6262

6363
// get a page
64-
$response = $client->contact()->getPage(0);
64+
$response = $client->getPage(0);
6565

6666
//get all
67-
$response = $client->contact()->getAll();
67+
$response = $client->getAll();
6868

6969
// other methods
70-
$response = $client->contact()->get($entityId);
71-
$response = $client->contact()->create($data);
70+
$response = $client->get($entityId);
71+
$response = $client->create($data);
7272
```
7373

7474
### 🗺️ Country Endpoint
@@ -174,10 +174,10 @@ $response = $client->getAll();
174174
```php
175175
$client = $api->voucherlist();
176176

177-
$client->voucherlist()->size = 100;
178-
$client->voucherlist()->sortDirection = 'DESC';
179-
$client->voucherlist()->sortColumn = 'voucherNumber';
180-
$client->voucherlist()->types = [
177+
$client->size = 100;
178+
$client->sortDirection = 'DESC';
179+
$client->sortColumn = 'voucherNumber';
180+
$client->types = [
181181
'salesinvoice',
182182
'salescreditnote',
183183
'purchaseinvoice',
@@ -188,7 +188,7 @@ $client->voucherlist()->types = [
188188
'orderconfirmation',
189189
'quotation'
190190
];
191-
$client->voucherlist()->statuses = [
191+
$client->statuses = [
192192
'draft',
193193
'open',
194194
'paid',
@@ -200,13 +200,13 @@ $client->voucherlist()->statuses = [
200200
];
201201

202202
// get everything what we can, not recommend:
203-
//$client->voucherlist()->setToEverything()
203+
//$client->setToEverything()
204204

205205
// get a page
206-
$response = $client->voucherlist()->getPage(0);
206+
$response = $client->getPage(0);
207207

208208
//get all
209-
$response = $client->voucherlist()->getAll();
209+
$response = $client->getAll();
210210
```
211211

212212
### 📁 File Endpoint

0 commit comments

Comments
 (0)