Skip to content

Commit

Permalink
Fix for Settings element not Parsing
Browse files Browse the repository at this point in the history
The PayrollAU\Settings endpoint is 1D the same as Payslip / Payitems, or at least editing it in the way I have makes it work properly.

Sorry I don't know how to check if it works with \PayrollUS or \Assets or if there are other \Settings objects to look out for
  • Loading branch information
Healyhatman authored Sep 22, 2020
1 parent 6b67534 commit 78bebcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XeroPHP/Remote/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ public function parseXML()
break;
case 'Payslip':
case 'PayItems':
case 'Settings':
// some xero endpoints are 1D so we can parse them straight away
$this->elements[] = Helpers::XMLToArray($root_child);

Expand Down

0 comments on commit 78bebcd

Please sign in to comment.