From 5d2af16b799f5f1c5b30bc3869abce954266ef49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 3 Oct 2023 16:39:07 +0200 Subject: [PATCH] Fix: Adopt changes in API client response handling --- src/BusProNet/ApiClient.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BusProNet/ApiClient.php b/src/BusProNet/ApiClient.php index 27e5f02..aff726f 100644 --- a/src/BusProNet/ApiClient.php +++ b/src/BusProNet/ApiClient.php @@ -34,7 +34,7 @@ class ApiClient /** * @throws ApiClientException */ - public function getProfile(string $email, string $password): ProfileResponse + public function getProfile(string $email, string $password): NotificationResponse|ProfileResponse { $data = [ 'anfrage' => [ @@ -53,7 +53,7 @@ class ApiClient /** * @throws ApiClientException */ - public function updateProfile(User $user, string $password): ProfileResponse + public function updateProfile(User $user, string $password): NotificationResponse|ProfileResponse { if (null === $teamer = $user->getTeamer()) { throw new ApiClientException('Invalid argument'); @@ -96,7 +96,7 @@ class ApiClient /** * @throws ApiClientException */ - public function getCrmAttributes(string $email, string $password): CrmAttributesResponse + public function getCrmAttributes(string $email, string $password): NotificationResponse|CrmAttributesResponse { $data = [ 'anfrage' => [ @@ -115,7 +115,7 @@ class ApiClient /** * @throws ApiClientException */ - public function getBaseData(string $type): BaseDataResponse + public function getBaseData(string $type): NotificationResponse|BaseDataResponse { $data = [ 'anfrage' => [