Adapt changes in api
This commit is contained in:
@@ -74,9 +74,9 @@ class AjaxFormController extends ActionController
|
||||
|
||||
$addressData = [
|
||||
'name' => $contactForm->getName(),
|
||||
'vorname' => $contactForm->getFirstName(),
|
||||
'firstName' => $contactForm->getFirstName(),
|
||||
'email' => $contactForm->getEmail(),
|
||||
'geschlecht' => $contactForm->getGender(),
|
||||
'gender' => $contactForm->getGender(),
|
||||
];
|
||||
|
||||
$this->bookingApiService->registerAddress($addressData);
|
||||
|
||||
@@ -28,13 +28,13 @@ class BpnApiFinisher extends AbstractFinisher
|
||||
$formValues = $this->finisherContext->getFormValues();
|
||||
$addressData = [
|
||||
'name' => $formValues['name'],
|
||||
'vorname' => $formValues['vorname'],
|
||||
'geschlecht' => $formValues['geschlecht'],
|
||||
'firstName' => $formValues['vorname'],
|
||||
'gender' => $formValues['geschlecht'],
|
||||
'email' => $formValues['email'],
|
||||
'strasse' => $formValues['strasse'],
|
||||
'plz' => $formValues['plz'],
|
||||
'ort' => $formValues['ort'],
|
||||
'telefon' => $formValues['telefon'],
|
||||
'street' => $formValues['strasse'],
|
||||
'zipCode' => $formValues['plz'],
|
||||
'city' => $formValues['ort'],
|
||||
'phone' => $formValues['telefon'],
|
||||
];
|
||||
$this->bookingApiService->registerAddress($addressData);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace EP\EpTheme\Service;
|
||||
|
||||
use Symfony\Component\HttpClient\Exception\ServerException;
|
||||
use Symfony\Component\HttpClient\HttpClient;
|
||||
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
||||
use TYPO3\CMS\Core\SingletonInterface;
|
||||
@@ -52,5 +53,7 @@ class BookingApiService implements SingletonInterface
|
||||
}
|
||||
catch (TransportExceptionInterface $e)
|
||||
{}
|
||||
catch (ServerException $e)
|
||||
{}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user