Skip to content

Commit

Permalink
Fixed to handle the newest value of the pagination response
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Bailey committed Jul 17, 2024
1 parent 1a80dec commit 4b3358b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/XeroPHP/Remote/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public function parseXML()
foreach ($sxml as $child_index => $root_child) {
switch ($child_index) {
case 'PageInfo':
case 'pagination':
// TODO: We can potentially handle the page info and make it a value on the response object
break;
case 'ErrorNumber':
Expand Down Expand Up @@ -365,6 +366,7 @@ public function parseJSON()
foreach ($json as $child_index => $root_child) {
switch ($child_index) {
case 'PageInfo':
case 'pagination':
// TODO: We can potentially handle the page info and make it a value on the response object
break;
case 'ErrorNumber':
Expand Down

0 comments on commit 4b3358b

Please sign in to comment.