Skip to content

Commit

Permalink
fix(deps): bump braze-specification from 1.2.3 to 1.2.4 (#116)
Browse files Browse the repository at this point in the history
Fixes #115
  • Loading branch information
dependabot[bot] authored Oct 15, 2024
1 parent 1e20ff0 commit 5b526c2
Show file tree
Hide file tree
Showing 44 changed files with 130 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCampaignsTriggerScheduleCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCampaignsTriggerScheduleDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCampaignsTriggerSend.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCanvasTriggerScheduleCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCanvasTriggerScheduleDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCanvasTriggerScheduleUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCanvasTriggerSend.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCatalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCatalogsByCatalogNameItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostContentBlocksCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostContentBlocksUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostEmailBlacklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostEmailBlocklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostEmailBounceRemove.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostEmailSpamRemove.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostEmailStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostMessagesLiveActivityUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostMessagesScheduleCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostMessagesScheduleDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostMessagesScheduleUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostMessagesSend.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostPreferenceCenterV1.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostScimV2User.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostSendsIdCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
return json_decode($body);
}
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
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);
}
Expand Down
Loading

0 comments on commit 5b526c2

Please sign in to comment.