fix: treat api response properly

This commit is contained in:
Björn Fromme committed 2025-02-19 12:25:35 +01:00
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;
}
}
}