Skip to content

Commit

Permalink
fix(lib): generate code from braze specification
Browse files Browse the repository at this point in the history
Fixes #55

BREAKING CHANGE: drop support for PHP version 7
  • Loading branch information
remarkablemark committed Mar 12, 2024
1 parent 8639197 commit da304af
Show file tree
Hide file tree
Showing 259 changed files with 16,261 additions and 7,201 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [7.4, 8.0, 8.1, 8.2, 8.3]
php-version: [8.0, 8.1, 8.2, 8.3]

steps:
- name: Checkout repository
Expand Down
98 changes: 49 additions & 49 deletions lib/Client.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Endpoint/DeleteCatalogByCatalogName.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\DeleteCatalogByCatalogNameTooManyRequestsException
* @throws \Braze\Exception\DeleteCatalogByCatalogNameInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/DeleteCatalogsByCatalogNameItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\DeleteCatalogsByCatalogNameItemTooManyRequestsException
* @throws \Braze\Exception\DeleteCatalogsByCatalogNameItemInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/DeleteCatalogsByCatalogNameItemByItemId.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdTooManyRequestsException
* @throws \Braze\Exception\DeleteCatalogsByCatalogNameItemByItemIdInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/DeleteScimV2UserById.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\DeleteScimV2UserByIdTooManyRequestsException
* @throws \Braze\Exception\DeleteScimV2UserByIdInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCampaignsDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCampaignsDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetCampaignsDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCampaignsDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCampaignsDetailTooManyRequestsException
* @throws \Braze\Exception\GetCampaignsDetailInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCampaignsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCampaignsListTooManyRequestsException
* @throws \Braze\Exception\GetCampaignsListInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCanvasDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCanvasDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetCanvasDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCanvasDataSummary.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCanvasDataSummaryTooManyRequestsException
* @throws \Braze\Exception\GetCanvasDataSummaryInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCanvasDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCanvasDetailTooManyRequestsException
* @throws \Braze\Exception\GetCanvasDetailInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCanvasList.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCanvasListTooManyRequestsException
* @throws \Braze\Exception\GetCanvasListInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCatalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCatalogTooManyRequestsException
* @throws \Braze\Exception\GetCatalogInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCatalogsByCatalogNameItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCatalogsByCatalogNameItemTooManyRequestsException
* @throws \Braze\Exception\GetCatalogsByCatalogNameItemInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetCatalogsByCatalogNameItemByItemId.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdTooManyRequestsException
* @throws \Braze\Exception\GetCatalogsByCatalogNameItemByItemIdInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetContentBlocksInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetContentBlocksInfoTooManyRequestsException
* @throws \Braze\Exception\GetContentBlocksInfoInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetContentBlocksList.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetContentBlocksListTooManyRequestsException
* @throws \Braze\Exception\GetContentBlocksListInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetEmailHardBounce.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetEmailHardBounceTooManyRequestsException
* @throws \Braze\Exception\GetEmailHardBounceInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetEmailUnsubscribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetEmailUnsubscribeTooManyRequestsException
* @throws \Braze\Exception\GetEmailUnsubscribeInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetEventsDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetEventsDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetEventsDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetEventsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetEventsListTooManyRequestsException
* @throws \Braze\Exception\GetEventsListInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetFeedDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetFeedDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetFeedDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetFeedDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetFeedDetailTooManyRequestsException
* @throws \Braze\Exception\GetFeedDetailInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetFeedList.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetFeedListTooManyRequestsException
* @throws \Braze\Exception\GetFeedListInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetKpiDauDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetKpiDauDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetKpiDauDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetKpiMauDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetKpiMauDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetKpiMauDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetKpiNewUsersDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetKpiNewUsersDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetKpiNewUsersDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion lib/Endpoint/GetKpiUninstallsDataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
* @throws \Braze\Exception\GetKpiUninstallsDataSeriesTooManyRequestsException
* @throws \Braze\Exception\GetKpiUninstallsDataSeriesInternalServerErrorException
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down

0 comments on commit da304af

Please sign in to comment.