Fix: Adopt changes in API client response handling
This commit is contained in:
@@ -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' => [
|
||||
|
||||
Reference in New Issue
Block a user