feat: inquiry bookings

This commit is contained in:
Björn Fromme
2025-10-09 18:52:23 +02:00
parent 989f599b54
commit 4939a1a9ad
11 changed files with 360 additions and 4 deletions
@@ -671,7 +671,7 @@ class BookingDataProcessor
$payload = [
'buchungsart' => $bookingType,
'status' => 'F',
'status' => $bookingDto->bookingStatus,
'idreise' => $bookingDto->travel->id,
'idpartner' => $bookingDto->travel->hotelId,
'idagentur' => $bookingDto->agencyId,
+7
View File
@@ -46,6 +46,13 @@ class Travel
#[Groups(['api:list', 'api:single'])]
public ?string $type = null;
/**
* Travel booking status from BusProNet API.
* Possible values: 'Frei', 'Anfrage', 'Buchungsstop'
*/
#[Groups(['api:single'])]
public ?string $status = null;
#[Groups(['api:list', 'api:single'])]
public ?float $priceFrom = null;
+1
View File
@@ -54,6 +54,7 @@ class TravelParser extends AbstractParser
$travel->dateTo = $this->stringToDate($node->attr('bis'));
$travel->code = $node->attr('code');
$travel->type = $node->attr('reiseart');
$travel->status = $this->getStringOrNullValue($node->filterXPath('//status_hin'));
$travel->priceFrom = $this->stringToFloat($this->getStringOrNullValue($node->filterXPath('//abpreis')));
$travel->selectionGroups = $this->getSelectionGroups($node->filterXPath('//selektiongruppe'));
$travel->additionalServices = $this