feat: authenticated booking
This commit is contained in:
@@ -760,6 +760,14 @@ class BookingDataProcessor
|
||||
'nationalitaet' => $firstParticipant->nationality ?? '',
|
||||
];
|
||||
|
||||
// Include BPN IDs for linking to existing records (authenticated users)
|
||||
if (null !== $firstParticipant->addressId) {
|
||||
$payload['anmelder']['idadresse'] = $firstParticipant->addressId;
|
||||
}
|
||||
if (null !== $firstParticipant->personId) {
|
||||
$payload['anmelder']['idadresseperson'] = $firstParticipant->personId;
|
||||
}
|
||||
|
||||
if (null !== $firstParticipant->dateOfBirth) {
|
||||
$payload['anmelder']['geburtsdatum'] = $firstParticipant->dateOfBirth->format('d.m.Y');
|
||||
}
|
||||
@@ -790,6 +798,14 @@ class BookingDataProcessor
|
||||
'nationalitaet' => $participant->nationality ?? '',
|
||||
];
|
||||
|
||||
// Include BPN IDs for linking to existing records (authenticated users)
|
||||
if (null !== $participant->addressId) {
|
||||
$participantData['idadresse'] = $participant->addressId;
|
||||
}
|
||||
if (null !== $participant->personId) {
|
||||
$participantData['idadresseperson'] = $participant->personId;
|
||||
}
|
||||
|
||||
if (null !== $participant->dateOfBirth) {
|
||||
$participantData['geburtsdatum'] = $participant->dateOfBirth->format('d.m.Y');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user