fix: treat api response properly

This commit is contained in:
Björn Fromme
2025-02-19 12:25:35 +01:00
parent 6086369ce5
commit 063af73f3b
3 changed files with 8 additions and 7 deletions
@@ -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;
}
}
}