Skip to content

Commit

Permalink
Merge pull request #760 from bretto36/practice-manager
Browse files Browse the repository at this point in the history
Practice manager - Looking for feedback
  • Loading branch information
calcinai authored Jan 31, 2022
2 parents d81a80d + fe45f71 commit f628a86
Show file tree
Hide file tree
Showing 25 changed files with 5,090 additions and 8 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,21 @@ The [unit price decimal place precision](https://developer.xero.com/documentatio
$xero->setConfigOption('xero', 'unitdp', 3);
```

## Practice Manager

If requiring the "practicemanager" scope please query models using the following syntax

```php
$clients = $xero->load(\XeroPHP\Models\PracticeManager\Client::class)
->setParameter('detailed', true)
->setParameter('modifiedsince', date('Y-m-d\TH:i:s', strtotime('- 1 week')))
->execute();

foreach ($clients as $client) {
$name = $client->getName();
}
```

## Webhooks

If you are receiving webhooks from Xero there is `Webhook` class that can help with handling the request and parsing the associated event list.
Expand Down
1 change: 1 addition & 0 deletions src/XeroPHP/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Application
'core_version' => '2.0',
'payroll_version' => '1.0',
'file_version' => '1.0',
'practice_manager_version' => '3.0',
]
];

Expand Down
Loading

0 comments on commit f628a86

Please sign in to comment.