fix: treat api response properly
This commit is contained in:
@@ -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