From bf470ec3ae38fa5adb0f3605c7f4f4b32dfdd11b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Thu, 4 Jul 2024 17:13:28 +0000 Subject: [PATCH] refactor(lib): tidy backslash in fully qualified name Release-As: 2.1.1 --- lib/Endpoint/DeleteCatalogByCatalogName.php | 12 ++++++------ lib/Endpoint/DeleteCatalogsByCatalogNameItem.php | 12 ++++++------ .../DeleteCatalogsByCatalogNameItemByItemId.php | 12 ++++++------ lib/Endpoint/DeleteScimV2UserById.php | 12 ++++++------ lib/Endpoint/GetCampaignsDataSeries.php | 12 ++++++------ lib/Endpoint/GetCampaignsDetail.php | 12 ++++++------ lib/Endpoint/GetCampaignsList.php | 12 ++++++------ lib/Endpoint/GetCanvasDataSeries.php | 12 ++++++------ lib/Endpoint/GetCanvasDataSummary.php | 12 ++++++------ lib/Endpoint/GetCanvasDetail.php | 12 ++++++------ lib/Endpoint/GetCanvasList.php | 12 ++++++------ lib/Endpoint/GetCatalog.php | 12 ++++++------ lib/Endpoint/GetCatalogsByCatalogNameItem.php | 12 ++++++------ .../GetCatalogsByCatalogNameItemByItemId.php | 12 ++++++------ lib/Endpoint/GetContentBlocksInfo.php | 12 ++++++------ lib/Endpoint/GetContentBlocksList.php | 12 ++++++------ lib/Endpoint/GetEmailHardBounce.php | 12 ++++++------ lib/Endpoint/GetEmailUnsubscribe.php | 12 ++++++------ lib/Endpoint/GetEventsDataSeries.php | 12 ++++++------ lib/Endpoint/GetEventsList.php | 12 ++++++------ lib/Endpoint/GetFeedDataSeries.php | 12 ++++++------ lib/Endpoint/GetFeedDetail.php | 12 ++++++------ lib/Endpoint/GetFeedList.php | 12 ++++++------ lib/Endpoint/GetKpiDauDataSeries.php | 12 ++++++------ lib/Endpoint/GetKpiMauDataSeries.php | 12 ++++++------ lib/Endpoint/GetKpiNewUsersDataSeries.php | 12 ++++++------ lib/Endpoint/GetKpiUninstallsDataSeries.php | 12 ++++++------ lib/Endpoint/GetMessagesScheduledBroadcast.php | 12 ++++++------ ...renceCenterV1ByPreferenceCenterExternalID.php | 12 ++++++------ ...V1ByPreferenceCenterExternalIDUrlByUserID.php | 12 ++++++------ lib/Endpoint/GetPreferenceCenterV1List.php | 12 ++++++------ lib/Endpoint/GetPurchasesProductList.php | 12 ++++++------ lib/Endpoint/GetPurchasesQuantitySeries.php | 12 ++++++------ lib/Endpoint/GetPurchasesRevenueSeries.php | 12 ++++++------ lib/Endpoint/GetScimV2User.php | 12 ++++++------ lib/Endpoint/GetScimV2UserById.php | 12 ++++++------ lib/Endpoint/GetSegmentsDataSeries.php | 12 ++++++------ lib/Endpoint/GetSegmentsDetail.php | 12 ++++++------ lib/Endpoint/GetSegmentsList.php | 12 ++++++------ lib/Endpoint/GetSendsDataSeries.php | 12 ++++++------ lib/Endpoint/GetSessionsDataSeries.php | 12 ++++++------ lib/Endpoint/GetSmsInvalidPhoneNumber.php | 12 ++++++------ lib/Endpoint/GetSubscriptionStatusGet.php | 12 ++++++------ lib/Endpoint/GetSubscriptionUserStatus.php | 12 ++++++------ lib/Endpoint/GetTemplatesEmailInfo.php | 12 ++++++------ lib/Endpoint/GetTemplatesEmailList.php | 12 ++++++------ lib/Endpoint/PatchCatalogsByCatalogNameItem.php | 12 ++++++------ .../PatchCatalogsByCatalogNameItemByItemId.php | 12 ++++++------ .../PostCampaignsTriggerScheduleCreate.php | 12 ++++++------ .../PostCampaignsTriggerScheduleDelete.php | 12 ++++++------ .../PostCampaignsTriggerScheduleUpdate.php | 12 ++++++------ lib/Endpoint/PostCampaignsTriggerSend.php | 12 ++++++------ lib/Endpoint/PostCanvasTriggerScheduleCreate.php | 12 ++++++------ lib/Endpoint/PostCanvasTriggerScheduleDelete.php | 12 ++++++------ lib/Endpoint/PostCanvasTriggerScheduleUpdate.php | 12 ++++++------ lib/Endpoint/PostCanvasTriggerSend.php | 12 ++++++------ lib/Endpoint/PostCatalog.php | 12 ++++++------ lib/Endpoint/PostCatalogsByCatalogNameItem.php | 12 ++++++------ .../PostCatalogsByCatalogNameItemByItemId.php | 12 ++++++------ lib/Endpoint/PostContentBlocksCreate.php | 12 ++++++------ lib/Endpoint/PostContentBlocksUpdate.php | 12 ++++++------ lib/Endpoint/PostEmailBlacklist.php | 12 ++++++------ lib/Endpoint/PostEmailBlocklist.php | 12 ++++++------ lib/Endpoint/PostEmailBounceRemove.php | 12 ++++++------ lib/Endpoint/PostEmailSpamRemove.php | 12 ++++++------ lib/Endpoint/PostEmailStatus.php | 12 ++++++------ lib/Endpoint/PostMessagesLiveActivityUpdate.php | 12 ++++++------ lib/Endpoint/PostMessagesScheduleCreate.php | 12 ++++++------ lib/Endpoint/PostMessagesScheduleDelete.php | 12 ++++++------ lib/Endpoint/PostMessagesScheduleUpdate.php | 12 ++++++------ lib/Endpoint/PostMessagesSend.php | 12 ++++++------ lib/Endpoint/PostPreferenceCenterV1.php | 12 ++++++------ lib/Endpoint/PostScimV2User.php | 12 ++++++------ lib/Endpoint/PostSendsIdCreate.php | 12 ++++++------ .../PostSmsInvalidPhoneNumbersRemove.php | 12 ++++++------ lib/Endpoint/PostSubscriptionStatusSet.php | 12 ++++++------ lib/Endpoint/PostTemplatesEmailCreate.php | 12 ++++++------ lib/Endpoint/PostTemplatesEmailUpdate.php | 12 ++++++------ ...tTransactionalV1CampaignsByCampaignIdSend.php | 12 ++++++------ lib/Endpoint/PostUsersAliasNew.php | 12 ++++++------ lib/Endpoint/PostUsersAliasUpdate.php | 12 ++++++------ lib/Endpoint/PostUsersDelete.php | 12 ++++++------ .../PostUsersExportGlobalControlGroup.php | 12 ++++++------ lib/Endpoint/PostUsersExportId.php | 12 ++++++------ lib/Endpoint/PostUsersExportSegment.php | 12 ++++++------ lib/Endpoint/PostUsersExternalIdsRemove.php | 12 ++++++------ lib/Endpoint/PostUsersExternalIdsRename.php | 12 ++++++------ lib/Endpoint/PostUsersIdentify.php | 12 ++++++------ lib/Endpoint/PostUsersMerge.php | 12 ++++++------ lib/Endpoint/PostUsersTrack.php | 12 ++++++------ lib/Endpoint/PostV2SubscriptionStatusSet.php | 12 ++++++------ lib/Endpoint/PutCatalogsByCatalogNameItem.php | 12 ++++++------ .../PutCatalogsByCatalogNameItemByItemId.php | 12 ++++++------ ...renceCenterV1ByPreferenceCenterExternalID.php | 12 ++++++------ lib/Endpoint/PutScimV2UserById.php | 12 ++++++------ ...rScheduleUpdatePostBodyScheduleNormalizer.php | 8 ++++---- ...rScheduleUpdatePostBodyScheduleNormalizer.php | 8 ++++---- ...sagesLiveActivityUpdatePostBodyNormalizer.php | 16 ++++++++-------- ...sScheduleUpdatePostBodyScheduleNormalizer.php | 8 ++++---- 99 files changed, 590 insertions(+), 590 deletions(-) diff --git a/lib/Endpoint/DeleteCatalogByCatalogName.php b/lib/Endpoint/DeleteCatalogByCatalogName.php index 86b3813..2b9a47e 100644 --- a/lib/Endpoint/DeleteCatalogByCatalogName.php +++ b/lib/Endpoint/DeleteCatalogByCatalogName.php @@ -138,22 +138,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogByCatalogNameBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogByCatalogNameBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogByCatalogNameUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogByCatalogNameUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogByCatalogNameForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogByCatalogNameForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogByCatalogNameNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogByCatalogNameNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogByCatalogNameTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogByCatalogNameTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogByCatalogNameInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogByCatalogNameInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/DeleteCatalogsByCatalogNameItem.php b/lib/Endpoint/DeleteCatalogsByCatalogNameItem.php index de45e7f..54165c3 100644 --- a/lib/Endpoint/DeleteCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/DeleteCatalogsByCatalogNameItem.php @@ -164,22 +164,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/DeleteCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/DeleteCatalogsByCatalogNameItemByItemId.php index 62cb02f..db40b08 100644 --- a/lib/Endpoint/DeleteCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/DeleteCatalogsByCatalogNameItemByItemId.php @@ -156,22 +156,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/DeleteScimV2UserById.php b/lib/Endpoint/DeleteScimV2UserById.php index 2dd43da..0ee0df7 100644 --- a/lib/Endpoint/DeleteScimV2UserById.php +++ b/lib/Endpoint/DeleteScimV2UserById.php @@ -116,22 +116,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteScimV2UserByIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteScimV2UserByIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteScimV2UserByIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteScimV2UserByIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteScimV2UserByIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteScimV2UserByIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteScimV2UserByIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteScimV2UserByIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteScimV2UserByIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteScimV2UserByIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\DeleteScimV2UserByIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\DeleteScimV2UserByIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCampaignsDataSeries.php b/lib/Endpoint/GetCampaignsDataSeries.php index 17f9b32..538d625 100644 --- a/lib/Endpoint/GetCampaignsDataSeries.php +++ b/lib/Endpoint/GetCampaignsDataSeries.php @@ -285,22 +285,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCampaignsDetail.php b/lib/Endpoint/GetCampaignsDetail.php index 9ba8922..644f987 100644 --- a/lib/Endpoint/GetCampaignsDetail.php +++ b/lib/Endpoint/GetCampaignsDetail.php @@ -323,22 +323,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDetailBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDetailBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDetailUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDetailUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDetailForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDetailForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDetailNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDetailNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCampaignsList.php b/lib/Endpoint/GetCampaignsList.php index 3cb87df..024a34d 100644 --- a/lib/Endpoint/GetCampaignsList.php +++ b/lib/Endpoint/GetCampaignsList.php @@ -141,22 +141,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCampaignsListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCampaignsListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCanvasDataSeries.php b/lib/Endpoint/GetCanvasDataSeries.php index 18208d5..61fa2a4 100644 --- a/lib/Endpoint/GetCanvasDataSeries.php +++ b/lib/Endpoint/GetCanvasDataSeries.php @@ -188,22 +188,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCanvasDataSummary.php b/lib/Endpoint/GetCanvasDataSummary.php index ceaf16a..59bd5ef 100644 --- a/lib/Endpoint/GetCanvasDataSummary.php +++ b/lib/Endpoint/GetCanvasDataSummary.php @@ -180,22 +180,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSummaryBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSummaryBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSummaryUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSummaryUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSummaryForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSummaryForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSummaryNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSummaryNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSummaryTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSummaryTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDataSummaryInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDataSummaryInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCanvasDetail.php b/lib/Endpoint/GetCanvasDetail.php index a8e58cc..3add91e 100644 --- a/lib/Endpoint/GetCanvasDetail.php +++ b/lib/Endpoint/GetCanvasDetail.php @@ -151,22 +151,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDetailBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDetailBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDetailUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDetailUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDetailForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDetailForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDetailNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDetailNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCanvasList.php b/lib/Endpoint/GetCanvasList.php index 666f2d9..fd5c1ea 100644 --- a/lib/Endpoint/GetCanvasList.php +++ b/lib/Endpoint/GetCanvasList.php @@ -142,22 +142,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCanvasListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCanvasListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCatalog.php b/lib/Endpoint/GetCatalog.php index e2c1a6b..b9b7447 100644 --- a/lib/Endpoint/GetCatalog.php +++ b/lib/Endpoint/GetCatalog.php @@ -176,22 +176,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCatalogsByCatalogNameItem.php b/lib/Endpoint/GetCatalogsByCatalogNameItem.php index f84b54c..9543a65 100644 --- a/lib/Endpoint/GetCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/GetCatalogsByCatalogNameItem.php @@ -205,22 +205,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/GetCatalogsByCatalogNameItemByItemId.php index 9d37247..ca07b98 100644 --- a/lib/Endpoint/GetCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/GetCatalogsByCatalogNameItemByItemId.php @@ -166,22 +166,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetContentBlocksInfo.php b/lib/Endpoint/GetContentBlocksInfo.php index 1126612..d7e5089 100644 --- a/lib/Endpoint/GetContentBlocksInfo.php +++ b/lib/Endpoint/GetContentBlocksInfo.php @@ -140,22 +140,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksInfoBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksInfoBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksInfoUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksInfoUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksInfoForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksInfoForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksInfoNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksInfoNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksInfoTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksInfoTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksInfoInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksInfoInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetContentBlocksList.php b/lib/Endpoint/GetContentBlocksList.php index 9f0e90e..d79a816 100644 --- a/lib/Endpoint/GetContentBlocksList.php +++ b/lib/Endpoint/GetContentBlocksList.php @@ -151,22 +151,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetContentBlocksListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetContentBlocksListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetEmailHardBounce.php b/lib/Endpoint/GetEmailHardBounce.php index 76f0786..1905bca 100644 --- a/lib/Endpoint/GetEmailHardBounce.php +++ b/lib/Endpoint/GetEmailHardBounce.php @@ -162,22 +162,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailHardBounceBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailHardBounceBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailHardBounceUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailHardBounceUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailHardBounceForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailHardBounceForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailHardBounceNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailHardBounceNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailHardBounceTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailHardBounceTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailHardBounceInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailHardBounceInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetEmailUnsubscribe.php b/lib/Endpoint/GetEmailUnsubscribe.php index d7be65d..3f994da 100644 --- a/lib/Endpoint/GetEmailUnsubscribe.php +++ b/lib/Endpoint/GetEmailUnsubscribe.php @@ -162,22 +162,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailUnsubscribeBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailUnsubscribeBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailUnsubscribeUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailUnsubscribeUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailUnsubscribeForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailUnsubscribeForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailUnsubscribeNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailUnsubscribeNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailUnsubscribeTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailUnsubscribeTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEmailUnsubscribeInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEmailUnsubscribeInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetEventsDataSeries.php b/lib/Endpoint/GetEventsDataSeries.php index 57c1176..b11bf1f 100644 --- a/lib/Endpoint/GetEventsDataSeries.php +++ b/lib/Endpoint/GetEventsDataSeries.php @@ -147,22 +147,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetEventsList.php b/lib/Endpoint/GetEventsList.php index dfbf77c..013bc39 100644 --- a/lib/Endpoint/GetEventsList.php +++ b/lib/Endpoint/GetEventsList.php @@ -124,22 +124,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetEventsListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetEventsListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetFeedDataSeries.php b/lib/Endpoint/GetFeedDataSeries.php index 143881c..27063df 100644 --- a/lib/Endpoint/GetFeedDataSeries.php +++ b/lib/Endpoint/GetFeedDataSeries.php @@ -141,22 +141,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetFeedDetail.php b/lib/Endpoint/GetFeedDetail.php index 980afc1..df65274 100644 --- a/lib/Endpoint/GetFeedDetail.php +++ b/lib/Endpoint/GetFeedDetail.php @@ -130,22 +130,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDetailBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDetailBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDetailUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDetailUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDetailForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDetailForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDetailNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDetailNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetFeedList.php b/lib/Endpoint/GetFeedList.php index 0cf2c36..a7bf813 100644 --- a/lib/Endpoint/GetFeedList.php +++ b/lib/Endpoint/GetFeedList.php @@ -136,22 +136,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetFeedListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetFeedListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetKpiDauDataSeries.php b/lib/Endpoint/GetKpiDauDataSeries.php index f4139f4..5ee0ced 100644 --- a/lib/Endpoint/GetKpiDauDataSeries.php +++ b/lib/Endpoint/GetKpiDauDataSeries.php @@ -130,22 +130,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiDauDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiDauDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiDauDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiDauDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiDauDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiDauDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiDauDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiDauDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiDauDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiDauDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiDauDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiDauDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetKpiMauDataSeries.php b/lib/Endpoint/GetKpiMauDataSeries.php index 0b0b5b8..6393506 100644 --- a/lib/Endpoint/GetKpiMauDataSeries.php +++ b/lib/Endpoint/GetKpiMauDataSeries.php @@ -131,22 +131,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiMauDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiMauDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiMauDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiMauDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiMauDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiMauDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiMauDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiMauDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiMauDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiMauDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiMauDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiMauDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetKpiNewUsersDataSeries.php b/lib/Endpoint/GetKpiNewUsersDataSeries.php index e9b525e..c37b772 100644 --- a/lib/Endpoint/GetKpiNewUsersDataSeries.php +++ b/lib/Endpoint/GetKpiNewUsersDataSeries.php @@ -131,22 +131,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiNewUsersDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiNewUsersDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiNewUsersDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiNewUsersDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiNewUsersDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiNewUsersDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiNewUsersDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiNewUsersDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiNewUsersDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiNewUsersDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiNewUsersDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiNewUsersDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetKpiUninstallsDataSeries.php b/lib/Endpoint/GetKpiUninstallsDataSeries.php index cf92177..db6bd9c 100644 --- a/lib/Endpoint/GetKpiUninstallsDataSeries.php +++ b/lib/Endpoint/GetKpiUninstallsDataSeries.php @@ -131,22 +131,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiUninstallsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiUninstallsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiUninstallsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiUninstallsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiUninstallsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiUninstallsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiUninstallsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiUninstallsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiUninstallsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiUninstallsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetKpiUninstallsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetKpiUninstallsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetMessagesScheduledBroadcast.php b/lib/Endpoint/GetMessagesScheduledBroadcast.php index 2ee003d..2bdd60c 100644 --- a/lib/Endpoint/GetMessagesScheduledBroadcast.php +++ b/lib/Endpoint/GetMessagesScheduledBroadcast.php @@ -123,22 +123,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetMessagesScheduledBroadcastBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetMessagesScheduledBroadcastBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetMessagesScheduledBroadcastUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetMessagesScheduledBroadcastUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetMessagesScheduledBroadcastForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetMessagesScheduledBroadcastForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetMessagesScheduledBroadcastNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetMessagesScheduledBroadcastNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetMessagesScheduledBroadcastTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetMessagesScheduledBroadcastTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetMessagesScheduledBroadcastInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetMessagesScheduledBroadcastInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalID.php b/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalID.php index 82b6625..c0f9cfe 100644 --- a/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalID.php +++ b/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalID.php @@ -122,22 +122,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserID.php b/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserID.php index 22a071c..18732a9 100644 --- a/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserID.php +++ b/lib/Endpoint/GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserID.php @@ -131,22 +131,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserIDInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetPreferenceCenterV1List.php b/lib/Endpoint/GetPreferenceCenterV1List.php index d599ee7..b6b0400 100644 --- a/lib/Endpoint/GetPreferenceCenterV1List.php +++ b/lib/Endpoint/GetPreferenceCenterV1List.php @@ -128,22 +128,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPreferenceCenterV1ListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPreferenceCenterV1ListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetPurchasesProductList.php b/lib/Endpoint/GetPurchasesProductList.php index deec154..0ad1242 100644 --- a/lib/Endpoint/GetPurchasesProductList.php +++ b/lib/Endpoint/GetPurchasesProductList.php @@ -117,22 +117,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesProductListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesProductListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesProductListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesProductListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesProductListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesProductListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesProductListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesProductListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesProductListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesProductListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesProductListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesProductListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetPurchasesQuantitySeries.php b/lib/Endpoint/GetPurchasesQuantitySeries.php index 00e88e0..2984eb3 100644 --- a/lib/Endpoint/GetPurchasesQuantitySeries.php +++ b/lib/Endpoint/GetPurchasesQuantitySeries.php @@ -140,22 +140,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesQuantitySeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesQuantitySeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesQuantitySeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesQuantitySeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesQuantitySeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesQuantitySeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesQuantitySeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesQuantitySeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesQuantitySeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesQuantitySeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesQuantitySeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesQuantitySeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetPurchasesRevenueSeries.php b/lib/Endpoint/GetPurchasesRevenueSeries.php index 527b6be..4d79509 100644 --- a/lib/Endpoint/GetPurchasesRevenueSeries.php +++ b/lib/Endpoint/GetPurchasesRevenueSeries.php @@ -140,22 +140,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesRevenueSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesRevenueSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesRevenueSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesRevenueSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesRevenueSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesRevenueSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesRevenueSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesRevenueSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesRevenueSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesRevenueSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetPurchasesRevenueSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetPurchasesRevenueSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetScimV2User.php b/lib/Endpoint/GetScimV2User.php index a238022..8e424fa 100644 --- a/lib/Endpoint/GetScimV2User.php +++ b/lib/Endpoint/GetScimV2User.php @@ -159,22 +159,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetScimV2UserById.php b/lib/Endpoint/GetScimV2UserById.php index 9d08ebb..86cd4ed 100644 --- a/lib/Endpoint/GetScimV2UserById.php +++ b/lib/Endpoint/GetScimV2UserById.php @@ -132,22 +132,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserByIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserByIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserByIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserByIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserByIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserByIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserByIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserByIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserByIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserByIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetScimV2UserByIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetScimV2UserByIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSegmentsDataSeries.php b/lib/Endpoint/GetSegmentsDataSeries.php index 551a8f8..b1870b4 100644 --- a/lib/Endpoint/GetSegmentsDataSeries.php +++ b/lib/Endpoint/GetSegmentsDataSeries.php @@ -133,22 +133,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSegmentsDetail.php b/lib/Endpoint/GetSegmentsDetail.php index 5b08ee9..906685d 100644 --- a/lib/Endpoint/GetSegmentsDetail.php +++ b/lib/Endpoint/GetSegmentsDetail.php @@ -124,22 +124,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDetailBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDetailBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDetailUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDetailUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDetailForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDetailForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDetailNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDetailNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDetailTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsDetailInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSegmentsList.php b/lib/Endpoint/GetSegmentsList.php index 68af256..b2749da 100644 --- a/lib/Endpoint/GetSegmentsList.php +++ b/lib/Endpoint/GetSegmentsList.php @@ -132,22 +132,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSegmentsListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSegmentsListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSendsDataSeries.php b/lib/Endpoint/GetSendsDataSeries.php index 2236574..bc3ad43 100644 --- a/lib/Endpoint/GetSendsDataSeries.php +++ b/lib/Endpoint/GetSendsDataSeries.php @@ -166,22 +166,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSendsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSendsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSendsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSendsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSendsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSendsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSendsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSendsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSendsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSendsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSendsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSendsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSessionsDataSeries.php b/lib/Endpoint/GetSessionsDataSeries.php index 1a399e9..099d7f6 100644 --- a/lib/Endpoint/GetSessionsDataSeries.php +++ b/lib/Endpoint/GetSessionsDataSeries.php @@ -139,22 +139,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSessionsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSessionsDataSeriesBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSessionsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSessionsDataSeriesUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSessionsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSessionsDataSeriesForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSessionsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSessionsDataSeriesNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSessionsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSessionsDataSeriesTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSessionsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSessionsDataSeriesInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSmsInvalidPhoneNumber.php b/lib/Endpoint/GetSmsInvalidPhoneNumber.php index c48a740..c8aff72 100644 --- a/lib/Endpoint/GetSmsInvalidPhoneNumber.php +++ b/lib/Endpoint/GetSmsInvalidPhoneNumber.php @@ -144,22 +144,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSmsInvalidPhoneNumberBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSmsInvalidPhoneNumberBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSmsInvalidPhoneNumberUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSmsInvalidPhoneNumberUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSmsInvalidPhoneNumberForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSmsInvalidPhoneNumberForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSmsInvalidPhoneNumberNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSmsInvalidPhoneNumberNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSmsInvalidPhoneNumberTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSmsInvalidPhoneNumberTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSmsInvalidPhoneNumberInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSmsInvalidPhoneNumberInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSubscriptionStatusGet.php b/lib/Endpoint/GetSubscriptionStatusGet.php index 8f2cf4a..b6db3f7 100644 --- a/lib/Endpoint/GetSubscriptionStatusGet.php +++ b/lib/Endpoint/GetSubscriptionStatusGet.php @@ -132,22 +132,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionStatusGetBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionStatusGetBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionStatusGetUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionStatusGetUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionStatusGetForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionStatusGetForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionStatusGetNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionStatusGetNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionStatusGetTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionStatusGetTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionStatusGetInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionStatusGetInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetSubscriptionUserStatus.php b/lib/Endpoint/GetSubscriptionUserStatus.php index ecefce9..ee5ef51 100644 --- a/lib/Endpoint/GetSubscriptionUserStatus.php +++ b/lib/Endpoint/GetSubscriptionUserStatus.php @@ -115,22 +115,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionUserStatusBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionUserStatusBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionUserStatusUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionUserStatusUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionUserStatusForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionUserStatusForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionUserStatusNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionUserStatusNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionUserStatusTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionUserStatusTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetSubscriptionUserStatusInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetSubscriptionUserStatusInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetTemplatesEmailInfo.php b/lib/Endpoint/GetTemplatesEmailInfo.php index eb3152d..643666f 100644 --- a/lib/Endpoint/GetTemplatesEmailInfo.php +++ b/lib/Endpoint/GetTemplatesEmailInfo.php @@ -127,22 +127,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailInfoBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailInfoBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailInfoUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailInfoUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailInfoForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailInfoForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailInfoNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailInfoNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailInfoTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailInfoTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailInfoInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailInfoInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/GetTemplatesEmailList.php b/lib/Endpoint/GetTemplatesEmailList.php index e5ae445..3c47245 100644 --- a/lib/Endpoint/GetTemplatesEmailList.php +++ b/lib/Endpoint/GetTemplatesEmailList.php @@ -131,22 +131,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailListBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailListBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailListUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailListUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailListForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailListForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailListNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailListNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailListTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailListTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\GetTemplatesEmailListInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\GetTemplatesEmailListInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PatchCatalogsByCatalogNameItem.php b/lib/Endpoint/PatchCatalogsByCatalogNameItem.php index 834132f..21dcaf8 100644 --- a/lib/Endpoint/PatchCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/PatchCatalogsByCatalogNameItem.php @@ -169,22 +169,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php index 6b418d2..9ee8e10 100644 --- a/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php @@ -183,22 +183,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php b/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php index 0f149dd..a601a9f 100644 --- a/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php +++ b/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php @@ -128,22 +128,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php b/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php index 8530774..08eb46d 100644 --- a/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php +++ b/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php @@ -98,22 +98,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php b/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php index 298ded0..08e04e6 100644 --- a/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php +++ b/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php @@ -103,22 +103,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerScheduleUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCampaignsTriggerSend.php b/lib/Endpoint/PostCampaignsTriggerSend.php index 0cb7fed..c79d742 100644 --- a/lib/Endpoint/PostCampaignsTriggerSend.php +++ b/lib/Endpoint/PostCampaignsTriggerSend.php @@ -130,22 +130,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerSendBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerSendBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerSendUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerSendUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerSendForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerSendForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerSendNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerSendNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerSendTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerSendTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCampaignsTriggerSendInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCampaignsTriggerSendInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCanvasTriggerScheduleCreate.php b/lib/Endpoint/PostCanvasTriggerScheduleCreate.php index aa47272..478e0bb 100644 --- a/lib/Endpoint/PostCanvasTriggerScheduleCreate.php +++ b/lib/Endpoint/PostCanvasTriggerScheduleCreate.php @@ -112,22 +112,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleCreateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleCreateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleCreateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleCreateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleCreateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleCreateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleCreateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleCreateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCanvasTriggerScheduleDelete.php b/lib/Endpoint/PostCanvasTriggerScheduleDelete.php index 4b7a105..aff618a 100644 --- a/lib/Endpoint/PostCanvasTriggerScheduleDelete.php +++ b/lib/Endpoint/PostCanvasTriggerScheduleDelete.php @@ -96,22 +96,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php b/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php index fa8b5fe..69f5820 100644 --- a/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php +++ b/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php @@ -103,22 +103,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerScheduleUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCanvasTriggerSend.php b/lib/Endpoint/PostCanvasTriggerSend.php index 8f249a4..fbbc89b 100644 --- a/lib/Endpoint/PostCanvasTriggerSend.php +++ b/lib/Endpoint/PostCanvasTriggerSend.php @@ -127,22 +127,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerSendBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerSendBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerSendUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerSendUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerSendForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerSendForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerSendNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerSendNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerSendTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerSendTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCanvasTriggerSendInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCanvasTriggerSendInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCatalog.php b/lib/Endpoint/PostCatalog.php index e8634a6..fa44497 100644 --- a/lib/Endpoint/PostCatalog.php +++ b/lib/Endpoint/PostCatalog.php @@ -247,22 +247,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCatalogsByCatalogNameItem.php b/lib/Endpoint/PostCatalogsByCatalogNameItem.php index a4e6ffa..3ef71a6 100644 --- a/lib/Endpoint/PostCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/PostCatalogsByCatalogNameItem.php @@ -203,22 +203,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php index 73dc3ba..d847207 100644 --- a/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php @@ -188,22 +188,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostContentBlocksCreate.php b/lib/Endpoint/PostContentBlocksCreate.php index 36fc4ae..53c137f 100644 --- a/lib/Endpoint/PostContentBlocksCreate.php +++ b/lib/Endpoint/PostContentBlocksCreate.php @@ -136,22 +136,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksCreateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksCreateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksCreateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksCreateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksCreateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksCreateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksCreateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksCreateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostContentBlocksUpdate.php b/lib/Endpoint/PostContentBlocksUpdate.php index e5db53d..1dd94c2 100644 --- a/lib/Endpoint/PostContentBlocksUpdate.php +++ b/lib/Endpoint/PostContentBlocksUpdate.php @@ -139,22 +139,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksUpdateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksUpdateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksUpdateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksUpdateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksUpdateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksUpdateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostContentBlocksUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostContentBlocksUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostEmailBlacklist.php b/lib/Endpoint/PostEmailBlacklist.php index 83b5e4a..44ddf8e 100644 --- a/lib/Endpoint/PostEmailBlacklist.php +++ b/lib/Endpoint/PostEmailBlacklist.php @@ -95,22 +95,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlacklistBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlacklistBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlacklistUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlacklistUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlacklistForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlacklistForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlacklistNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlacklistNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlacklistTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlacklistTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlacklistInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlacklistInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostEmailBlocklist.php b/lib/Endpoint/PostEmailBlocklist.php index a279fe9..9dbe640 100644 --- a/lib/Endpoint/PostEmailBlocklist.php +++ b/lib/Endpoint/PostEmailBlocklist.php @@ -95,22 +95,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlocklistBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlocklistBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlocklistUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlocklistUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlocklistForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlocklistForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlocklistNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlocklistNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlocklistTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlocklistTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBlocklistInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBlocklistInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostEmailBounceRemove.php b/lib/Endpoint/PostEmailBounceRemove.php index 619d427..c207f21 100644 --- a/lib/Endpoint/PostEmailBounceRemove.php +++ b/lib/Endpoint/PostEmailBounceRemove.php @@ -97,22 +97,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBounceRemoveBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBounceRemoveBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBounceRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBounceRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBounceRemoveForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBounceRemoveForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBounceRemoveNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBounceRemoveNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBounceRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBounceRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailBounceRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailBounceRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostEmailSpamRemove.php b/lib/Endpoint/PostEmailSpamRemove.php index 2e0c703..50411d6 100644 --- a/lib/Endpoint/PostEmailSpamRemove.php +++ b/lib/Endpoint/PostEmailSpamRemove.php @@ -97,22 +97,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailSpamRemoveBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailSpamRemoveBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailSpamRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailSpamRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailSpamRemoveForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailSpamRemoveForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailSpamRemoveNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailSpamRemoveNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailSpamRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailSpamRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailSpamRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailSpamRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostEmailStatus.php b/lib/Endpoint/PostEmailStatus.php index f958cef..85efbc1 100644 --- a/lib/Endpoint/PostEmailStatus.php +++ b/lib/Endpoint/PostEmailStatus.php @@ -98,22 +98,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailStatusBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailStatusBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailStatusUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailStatusUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailStatusForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailStatusForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailStatusNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailStatusNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailStatusTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailStatusTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostEmailStatusInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostEmailStatusInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostMessagesLiveActivityUpdate.php b/lib/Endpoint/PostMessagesLiveActivityUpdate.php index 3f7f7a5..146f3e2 100644 --- a/lib/Endpoint/PostMessagesLiveActivityUpdate.php +++ b/lib/Endpoint/PostMessagesLiveActivityUpdate.php @@ -136,22 +136,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesLiveActivityUpdateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesLiveActivityUpdateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesLiveActivityUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesLiveActivityUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesLiveActivityUpdateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesLiveActivityUpdateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesLiveActivityUpdateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesLiveActivityUpdateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesLiveActivityUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesLiveActivityUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesLiveActivityUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesLiveActivityUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostMessagesScheduleCreate.php b/lib/Endpoint/PostMessagesScheduleCreate.php index c301484..747523b 100644 --- a/lib/Endpoint/PostMessagesScheduleCreate.php +++ b/lib/Endpoint/PostMessagesScheduleCreate.php @@ -109,22 +109,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleCreateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleCreateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleCreateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleCreateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleCreateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleCreateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleCreateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleCreateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostMessagesScheduleDelete.php b/lib/Endpoint/PostMessagesScheduleDelete.php index 1019e1b..9b8caec 100644 --- a/lib/Endpoint/PostMessagesScheduleDelete.php +++ b/lib/Endpoint/PostMessagesScheduleDelete.php @@ -95,22 +95,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleDeleteBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleDeleteBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleDeleteForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleDeleteForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleDeleteNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleDeleteNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostMessagesScheduleUpdate.php b/lib/Endpoint/PostMessagesScheduleUpdate.php index d061d6a..5a96122 100644 --- a/lib/Endpoint/PostMessagesScheduleUpdate.php +++ b/lib/Endpoint/PostMessagesScheduleUpdate.php @@ -99,22 +99,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleUpdateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleUpdateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleUpdateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleUpdateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleUpdateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleUpdateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesScheduleUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesScheduleUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostMessagesSend.php b/lib/Endpoint/PostMessagesSend.php index 8b0fbd8..5c4c512 100644 --- a/lib/Endpoint/PostMessagesSend.php +++ b/lib/Endpoint/PostMessagesSend.php @@ -119,22 +119,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesSendBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesSendBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesSendUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesSendUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesSendForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesSendForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesSendNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesSendNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesSendTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesSendTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostMessagesSendInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostMessagesSendInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostPreferenceCenterV1.php b/lib/Endpoint/PostPreferenceCenterV1.php index 6da60e6..e8b33e7 100644 --- a/lib/Endpoint/PostPreferenceCenterV1.php +++ b/lib/Endpoint/PostPreferenceCenterV1.php @@ -136,22 +136,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostPreferenceCenterV1BadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostPreferenceCenterV1BadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostPreferenceCenterV1UnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostPreferenceCenterV1UnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostPreferenceCenterV1ForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostPreferenceCenterV1ForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostPreferenceCenterV1NotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostPreferenceCenterV1NotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostPreferenceCenterV1TooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostPreferenceCenterV1TooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostPreferenceCenterV1InternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostPreferenceCenterV1InternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostScimV2User.php b/lib/Endpoint/PostScimV2User.php index a514869..8623662 100644 --- a/lib/Endpoint/PostScimV2User.php +++ b/lib/Endpoint/PostScimV2User.php @@ -151,22 +151,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostScimV2UserBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostScimV2UserBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostScimV2UserUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostScimV2UserUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostScimV2UserForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostScimV2UserForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostScimV2UserNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostScimV2UserNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostScimV2UserTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostScimV2UserTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostScimV2UserInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostScimV2UserInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostSendsIdCreate.php b/lib/Endpoint/PostSendsIdCreate.php index f2dc2f8..ffd505f 100644 --- a/lib/Endpoint/PostSendsIdCreate.php +++ b/lib/Endpoint/PostSendsIdCreate.php @@ -112,22 +112,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSendsIdCreateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSendsIdCreateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSendsIdCreateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSendsIdCreateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSendsIdCreateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSendsIdCreateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSendsIdCreateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSendsIdCreateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSendsIdCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSendsIdCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSendsIdCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSendsIdCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php b/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php index 4b545c8..fc0ca32 100644 --- a/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php +++ b/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php @@ -97,22 +97,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostSubscriptionStatusSet.php b/lib/Endpoint/PostSubscriptionStatusSet.php index 6be72cb..7dde992 100644 --- a/lib/Endpoint/PostSubscriptionStatusSet.php +++ b/lib/Endpoint/PostSubscriptionStatusSet.php @@ -117,22 +117,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSubscriptionStatusSetBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSubscriptionStatusSetBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSubscriptionStatusSetUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSubscriptionStatusSetUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSubscriptionStatusSetForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSubscriptionStatusSetForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSubscriptionStatusSetNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSubscriptionStatusSetNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSubscriptionStatusSetTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSubscriptionStatusSetTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostSubscriptionStatusSetInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostSubscriptionStatusSetInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostTemplatesEmailCreate.php b/lib/Endpoint/PostTemplatesEmailCreate.php index 925be06..5e14f6e 100644 --- a/lib/Endpoint/PostTemplatesEmailCreate.php +++ b/lib/Endpoint/PostTemplatesEmailCreate.php @@ -118,22 +118,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailCreateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailCreateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailCreateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailCreateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailCreateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailCreateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailCreateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailCreateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailCreateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailCreateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostTemplatesEmailUpdate.php b/lib/Endpoint/PostTemplatesEmailUpdate.php index 005d3a6..4195ad7 100644 --- a/lib/Endpoint/PostTemplatesEmailUpdate.php +++ b/lib/Endpoint/PostTemplatesEmailUpdate.php @@ -118,22 +118,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailUpdateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailUpdateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailUpdateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailUpdateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailUpdateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailUpdateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTemplatesEmailUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTemplatesEmailUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php b/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php index f552cb7..afd2622 100644 --- a/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php +++ b/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php @@ -287,22 +287,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersAliasNew.php b/lib/Endpoint/PostUsersAliasNew.php index 4fa744d..22fa0b6 100644 --- a/lib/Endpoint/PostUsersAliasNew.php +++ b/lib/Endpoint/PostUsersAliasNew.php @@ -101,22 +101,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasNewBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasNewBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasNewUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasNewUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasNewForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasNewForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasNewNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasNewNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasNewTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasNewTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasNewInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasNewInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersAliasUpdate.php b/lib/Endpoint/PostUsersAliasUpdate.php index 5de5574..23b4bfc 100644 --- a/lib/Endpoint/PostUsersAliasUpdate.php +++ b/lib/Endpoint/PostUsersAliasUpdate.php @@ -112,22 +112,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasUpdateBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasUpdateBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasUpdateUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasUpdateForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasUpdateForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasUpdateNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasUpdateNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasUpdateTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersAliasUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersAliasUpdateInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersDelete.php b/lib/Endpoint/PostUsersDelete.php index 6c37d8b..917ed95 100644 --- a/lib/Endpoint/PostUsersDelete.php +++ b/lib/Endpoint/PostUsersDelete.php @@ -102,22 +102,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersDeleteBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersDeleteBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersDeleteUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersDeleteForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersDeleteForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersDeleteNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersDeleteNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersDeleteTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersDeleteInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersExportGlobalControlGroup.php b/lib/Endpoint/PostUsersExportGlobalControlGroup.php index cba836f..00ad7fa 100644 --- a/lib/Endpoint/PostUsersExportGlobalControlGroup.php +++ b/lib/Endpoint/PostUsersExportGlobalControlGroup.php @@ -312,22 +312,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportGlobalControlGroupBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportGlobalControlGroupBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportGlobalControlGroupUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportGlobalControlGroupUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportGlobalControlGroupForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportGlobalControlGroupForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportGlobalControlGroupNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportGlobalControlGroupNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportGlobalControlGroupTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportGlobalControlGroupTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportGlobalControlGroupInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportGlobalControlGroupInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersExportId.php b/lib/Endpoint/PostUsersExportId.php index e09fe43..32a7ca5 100644 --- a/lib/Endpoint/PostUsersExportId.php +++ b/lib/Endpoint/PostUsersExportId.php @@ -434,22 +434,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersExportSegment.php b/lib/Endpoint/PostUsersExportSegment.php index 07201a2..a0e5fc2 100644 --- a/lib/Endpoint/PostUsersExportSegment.php +++ b/lib/Endpoint/PostUsersExportSegment.php @@ -456,22 +456,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportSegmentBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportSegmentBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportSegmentUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportSegmentUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportSegmentForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportSegmentForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportSegmentNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportSegmentNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportSegmentTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportSegmentTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExportSegmentInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExportSegmentInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersExternalIdsRemove.php b/lib/Endpoint/PostUsersExternalIdsRemove.php index e1a6fa8..bcde1b7 100644 --- a/lib/Endpoint/PostUsersExternalIdsRemove.php +++ b/lib/Endpoint/PostUsersExternalIdsRemove.php @@ -123,22 +123,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRemoveBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRemoveBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRemoveUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRemoveForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRemoveForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRemoveNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRemoveNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRemoveTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRemoveInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersExternalIdsRename.php b/lib/Endpoint/PostUsersExternalIdsRename.php index 95c8bbd..fdb8461 100644 --- a/lib/Endpoint/PostUsersExternalIdsRename.php +++ b/lib/Endpoint/PostUsersExternalIdsRename.php @@ -147,22 +147,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRenameBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRenameBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRenameUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRenameUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRenameForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRenameForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRenameNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRenameNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRenameTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRenameTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersExternalIdsRenameInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersExternalIdsRenameInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersIdentify.php b/lib/Endpoint/PostUsersIdentify.php index ad4bba1..c39f1ec 100644 --- a/lib/Endpoint/PostUsersIdentify.php +++ b/lib/Endpoint/PostUsersIdentify.php @@ -168,22 +168,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersIdentifyBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersIdentifyBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersIdentifyUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersIdentifyUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersIdentifyForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersIdentifyForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersIdentifyNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersIdentifyNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersIdentifyTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersIdentifyTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersIdentifyInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersIdentifyInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersMerge.php b/lib/Endpoint/PostUsersMerge.php index 2ce959a..2d51c48 100644 --- a/lib/Endpoint/PostUsersMerge.php +++ b/lib/Endpoint/PostUsersMerge.php @@ -213,22 +213,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersMergeBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersMergeBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersMergeUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersMergeUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersMergeForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersMergeForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersMergeNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersMergeNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersMergeTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersMergeTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersMergeInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersMergeInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostUsersTrack.php b/lib/Endpoint/PostUsersTrack.php index b1d13c7..d13a604 100644 --- a/lib/Endpoint/PostUsersTrack.php +++ b/lib/Endpoint/PostUsersTrack.php @@ -195,22 +195,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersTrackBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersTrackBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersTrackUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersTrackUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersTrackForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersTrackForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersTrackNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersTrackNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersTrackTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersTrackTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostUsersTrackInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostUsersTrackInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PostV2SubscriptionStatusSet.php b/lib/Endpoint/PostV2SubscriptionStatusSet.php index e959d4e..40942ec 100644 --- a/lib/Endpoint/PostV2SubscriptionStatusSet.php +++ b/lib/Endpoint/PostV2SubscriptionStatusSet.php @@ -111,22 +111,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostV2SubscriptionStatusSetBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostV2SubscriptionStatusSetBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostV2SubscriptionStatusSetUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostV2SubscriptionStatusSetUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostV2SubscriptionStatusSetForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostV2SubscriptionStatusSetForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostV2SubscriptionStatusSetNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostV2SubscriptionStatusSetNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostV2SubscriptionStatusSetTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostV2SubscriptionStatusSetTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PostV2SubscriptionStatusSetInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PostV2SubscriptionStatusSetInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PutCatalogsByCatalogNameItem.php b/lib/Endpoint/PutCatalogsByCatalogNameItem.php index dd5e0ca..587eecb 100644 --- a/lib/Endpoint/PutCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/PutCatalogsByCatalogNameItem.php @@ -168,22 +168,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php index 52f60cb..237521a 100644 --- a/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php @@ -191,22 +191,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php b/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php index fe93b9e..b84e40c 100644 --- a/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php +++ b/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php @@ -136,22 +136,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Endpoint/PutScimV2UserById.php b/lib/Endpoint/PutScimV2UserById.php index 5861499..846321c 100644 --- a/lib/Endpoint/PutScimV2UserById.php +++ b/lib/Endpoint/PutScimV2UserById.php @@ -159,22 +159,22 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutScimV2UserByIdBadRequestException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutScimV2UserByIdBadRequestException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutScimV2UserByIdUnauthorizedException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutScimV2UserByIdUnauthorizedException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutScimV2UserByIdForbiddenException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutScimV2UserByIdForbiddenException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutScimV2UserByIdNotFoundException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutScimV2UserByIdNotFoundException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutScimV2UserByIdTooManyRequestsException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutScimV2UserByIdTooManyRequestsException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \Braze\Exception\PutScimV2UserByIdInternalServerErrorException($serializer->deserialize($body, 'Braze\\Model\\Error', 'json'), $response); + throw new \Braze\Exception\PutScimV2UserByIdInternalServerErrorException($serializer->deserialize($body, 'Braze\Model\Error', 'json'), $response); } } diff --git a/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer.php index 5fbefa9..0058843 100644 --- a/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer.php +++ b/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer.php @@ -52,7 +52,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } if (\array_key_exists('time', $data)) { - $object->setTime(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['time'])); + $object->setTime(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['time'])); unset($data['time']); } if (\array_key_exists('in_local_time', $data)) { @@ -72,7 +72,7 @@ public function normalize(mixed $object, ?string $format = null, array $context { $data = []; if ($object->isInitialized('time') && null !== $object->getTime()) { - $data['time'] = $object->getTime()->format('Y-m-d\\TH:i:sP'); + $data['time'] = $object->getTime()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { $data['in_local_time'] = $object->getInLocalTime(); @@ -122,7 +122,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('time', $data)) { - $object->setTime(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['time'])); + $object->setTime(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['time'])); unset($data['time']); } if (\array_key_exists('in_local_time', $data)) { @@ -145,7 +145,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('time') && null !== $object->getTime()) { - $data['time'] = $object->getTime()->format('Y-m-d\\TH:i:sP'); + $data['time'] = $object->getTime()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { $data['in_local_time'] = $object->getInLocalTime(); diff --git a/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer.php index 37c3df4..970a9a1 100644 --- a/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer.php +++ b/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer.php @@ -52,7 +52,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } if (\array_key_exists('time', $data)) { - $object->setTime(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['time'])); + $object->setTime(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['time'])); unset($data['time']); } if (\array_key_exists('in_local_time', $data)) { @@ -72,7 +72,7 @@ public function normalize(mixed $object, ?string $format = null, array $context { $data = []; if ($object->isInitialized('time') && null !== $object->getTime()) { - $data['time'] = $object->getTime()->format('Y-m-d\\TH:i:sP'); + $data['time'] = $object->getTime()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { $data['in_local_time'] = $object->getInLocalTime(); @@ -122,7 +122,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('time', $data)) { - $object->setTime(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['time'])); + $object->setTime(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['time'])); unset($data['time']); } if (\array_key_exists('in_local_time', $data)) { @@ -145,7 +145,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('time') && null !== $object->getTime()) { - $data['time'] = $object->getTime()->format('Y-m-d\\TH:i:sP'); + $data['time'] = $object->getTime()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { $data['in_local_time'] = $object->getInLocalTime(); diff --git a/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNormalizer.php b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNormalizer.php index e280826..8652f62 100644 --- a/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNormalizer.php +++ b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNormalizer.php @@ -68,11 +68,11 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['end_activity']); } if (\array_key_exists('dismissal_date', $data)) { - $object->setDismissalDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['dismissal_date'])); + $object->setDismissalDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['dismissal_date'])); unset($data['dismissal_date']); } if (\array_key_exists('stale_date', $data)) { - $object->setStaleDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['stale_date'])); + $object->setStaleDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['stale_date'])); unset($data['stale_date']); } if (\array_key_exists('notification', $data)) { @@ -104,10 +104,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['end_activity'] = $object->getEndActivity(); } if ($object->isInitialized('dismissalDate') && null !== $object->getDismissalDate()) { - $data['dismissal_date'] = $object->getDismissalDate()->format('Y-m-d\\TH:i:sP'); + $data['dismissal_date'] = $object->getDismissalDate()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('staleDate') && null !== $object->getStaleDate()) { - $data['stale_date'] = $object->getStaleDate()->format('Y-m-d\\TH:i:sP'); + $data['stale_date'] = $object->getStaleDate()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('notification') && null !== $object->getNotification()) { $data['notification'] = $this->normalizer->normalize($object->getNotification(), 'json', $context); @@ -173,11 +173,11 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['end_activity']); } if (\array_key_exists('dismissal_date', $data)) { - $object->setDismissalDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['dismissal_date'])); + $object->setDismissalDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['dismissal_date'])); unset($data['dismissal_date']); } if (\array_key_exists('stale_date', $data)) { - $object->setStaleDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['stale_date'])); + $object->setStaleDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['stale_date'])); unset($data['stale_date']); } if (\array_key_exists('notification', $data)) { @@ -212,10 +212,10 @@ public function normalize($object, $format = null, array $context = []) $data['end_activity'] = $object->getEndActivity(); } if ($object->isInitialized('dismissalDate') && null !== $object->getDismissalDate()) { - $data['dismissal_date'] = $object->getDismissalDate()->format('Y-m-d\\TH:i:sP'); + $data['dismissal_date'] = $object->getDismissalDate()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('staleDate') && null !== $object->getStaleDate()) { - $data['stale_date'] = $object->getStaleDate()->format('Y-m-d\\TH:i:sP'); + $data['stale_date'] = $object->getStaleDate()->format('Y-m-d\TH:i:sP'); } if ($object->isInitialized('notification') && null !== $object->getNotification()) { $data['notification'] = $this->normalizer->normalize($object->getNotification(), 'json', $context); diff --git a/lib/Normalizer/MessagesScheduleUpdatePostBodyScheduleNormalizer.php b/lib/Normalizer/MessagesScheduleUpdatePostBodyScheduleNormalizer.php index d5e04eb..76465cf 100644 --- a/lib/Normalizer/MessagesScheduleUpdatePostBodyScheduleNormalizer.php +++ b/lib/Normalizer/MessagesScheduleUpdatePostBodyScheduleNormalizer.php @@ -52,7 +52,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } if (\array_key_exists('time', $data)) { - $object->setTime(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['time'])); + $object->setTime(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['time'])); unset($data['time']); } foreach ($data as $key => $value) { @@ -68,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context { $data = []; if ($object->isInitialized('time') && null !== $object->getTime()) { - $data['time'] = $object->getTime()->format('Y-m-d\\TH:i:sP'); + $data['time'] = $object->getTime()->format('Y-m-d\TH:i:sP'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -115,7 +115,7 @@ public function denormalize($data, $type, $format = null, array $context = []) return $object; } if (\array_key_exists('time', $data)) { - $object->setTime(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['time'])); + $object->setTime(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['time'])); unset($data['time']); } foreach ($data as $key => $value) { @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('time') && null !== $object->getTime()) { - $data['time'] = $object->getTime()->format('Y-m-d\\TH:i:sP'); + $data['time'] = $object->getTime()->format('Y-m-d\TH:i:sP'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) {