fix: treat api response properly
This commit is contained in:
1 parent
6086369ce5
commit
063af73f3b
3 files changed
+8
-7
No files matched your search
@@ -11,8 +11,9 @@ class BookingUpdateParser extends AbstractParser
|
||||
{
|
||||
$bookingUpdate = new BookingUpdate();
|
||||
$bookingUpdate->valid = 'möglich' === $node->filterXPath('//aenderung')->text();
|
||||
$bookingUpdate->totalPrice = $this->getFloatOrNullValue($node->filterXPath('//gesamtpreis'));
|
||||
$bookingUpdate->success = 'erfolgt' === $node->filterXPath('//aenderung')->text();
|
||||
$bookingUpdate->status = $node->filterXPath('//status')->text();
|
||||
|
||||
return $bookingUpdate;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user