From 255f93d82f3ddd5d33997fe32384aef70506c398 Mon Sep 17 00:00:00 2001 From: Kuzma <57258237+ksvirkou-hubspot@users.noreply.github.com> Date: Mon, 10 Nov 2025 09:13:49 +0300 Subject: [PATCH 01/11] Revert "Codegen: CMS Blogs Authors and Tags" --- .../Cms/Blogs/Authors/Api/BlogAuthorsApi.php | 1011 ++++++++++++----- codegen/Cms/Blogs/Authors/ApiException.php | 4 +- codegen/Cms/Blogs/Authors/Configuration.php | 63 +- .../Cms/Blogs/Authors/FormDataProcessor.php | 246 ---- codegen/Cms/Blogs/Authors/HeaderSelector.php | 4 +- .../Model/AttachToLangPrimaryRequestVNext.php | 16 +- .../Authors/Model/BatchInputBlogAuthor.php | 16 +- .../Authors/Model/BatchInputJsonNode.php | 16 +- .../Blogs/Authors/Model/BatchInputString.php | 16 +- .../Authors/Model/BatchResponseBlogAuthor.php | 16 +- .../BatchResponseBlogAuthorWithErrors.php | 16 +- .../Cms/Blogs/Authors/Model/BlogAuthor.php | 16 +- .../Model/BlogAuthorCloneRequestVNext.php | 16 +- ...sponseWithTotalBlogAuthorForwardPaging.php | 16 +- .../Model/DetachFromLangGroupRequestVNext.php | 16 +- codegen/Cms/Blogs/Authors/Model/Error.php | 16 +- .../Cms/Blogs/Authors/Model/ErrorDetail.php | 16 +- .../Cms/Blogs/Authors/Model/ForwardPaging.php | 16 +- .../Blogs/Authors/Model/ModelInterface.php | 4 +- codegen/Cms/Blogs/Authors/Model/NextPage.php | 20 +- .../SetNewLanguagePrimaryRequestVNext.php | 16 +- .../Cms/Blogs/Authors/Model/StandardError.php | 16 +- .../Model/UpdateLanguagesRequestVNext.php | 16 +- .../Cms/Blogs/Authors/ObjectSerializer.php | 24 +- codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php | 1011 ++++++++++++----- codegen/Cms/Blogs/Tags/ApiException.php | 4 +- codegen/Cms/Blogs/Tags/Configuration.php | 63 +- codegen/Cms/Blogs/Tags/FormDataProcessor.php | 246 ---- codegen/Cms/Blogs/Tags/HeaderSelector.php | 4 +- .../Model/AttachToLangPrimaryRequestVNext.php | 16 +- .../Blogs/Tags/Model/BatchInputJsonNode.php | 16 +- .../Cms/Blogs/Tags/Model/BatchInputString.php | 16 +- .../Cms/Blogs/Tags/Model/BatchInputTag.php | 16 +- .../Cms/Blogs/Tags/Model/BatchResponseTag.php | 16 +- .../Tags/Model/BatchResponseTagWithErrors.php | 16 +- ...ctionResponseWithTotalTagForwardPaging.php | 16 +- .../Model/DetachFromLangGroupRequestVNext.php | 16 +- codegen/Cms/Blogs/Tags/Model/Error.php | 16 +- codegen/Cms/Blogs/Tags/Model/ErrorDetail.php | 16 +- .../Cms/Blogs/Tags/Model/ForwardPaging.php | 16 +- .../Cms/Blogs/Tags/Model/ModelInterface.php | 4 +- codegen/Cms/Blogs/Tags/Model/NextPage.php | 20 +- .../SetNewLanguagePrimaryRequestVNext.php | 16 +- .../Cms/Blogs/Tags/Model/StandardError.php | 16 +- codegen/Cms/Blogs/Tags/Model/Tag.php | 16 +- .../Blogs/Tags/Model/TagCloneRequestVNext.php | 16 +- .../Model/UpdateLanguagesRequestVNext.php | 16 +- codegen/Cms/Blogs/Tags/ObjectSerializer.php | 24 +- 48 files changed, 1838 insertions(+), 1426 deletions(-) delete mode 100644 codegen/Cms/Blogs/Authors/FormDataProcessor.php delete mode 100644 codegen/Cms/Blogs/Tags/FormDataProcessor.php diff --git a/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php b/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php index 162b8854..bf954514 100644 --- a/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php +++ b/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php @@ -1,7 +1,7 @@ getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -232,10 +230,8 @@ public function archiveWithHttpInfo($object_id, $archived = null, string $conten $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -466,6 +462,7 @@ public function archiveBatchWithHttpInfo($batch_input_string, string $contentTyp return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -475,10 +472,8 @@ public function archiveBatchWithHttpInfo($batch_input_string, string $contentTyp $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -695,6 +690,7 @@ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_ return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -704,10 +700,8 @@ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -926,20 +920,60 @@ public function createWithHttpInfo($blog_author, string $contentType = self::con switch($statusCode) { case 201: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -954,11 +988,34 @@ public function createWithHttpInfo($blog_author, string $contentType = self::con ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 201: @@ -968,7 +1025,7 @@ public function createWithHttpInfo($blog_author, string $contentType = self::con $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -976,10 +1033,8 @@ public function createWithHttpInfo($blog_author, string $contentType = self::con $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -1211,26 +1266,87 @@ public function createBatchWithHttpInfo($batch_input_blog_author, string $conten switch($statusCode) { case 201: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', []), + $response->getStatusCode(), + $response->getHeaders() + ]; case 207: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1245,11 +1361,34 @@ public function createBatchWithHttpInfo($batch_input_blog_author, string $conten ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 201: @@ -1259,7 +1398,7 @@ public function createBatchWithHttpInfo($batch_input_blog_author, string $conten $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; case 207: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1267,7 +1406,7 @@ public function createBatchWithHttpInfo($batch_input_blog_author, string $conten $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1275,10 +1414,8 @@ public function createBatchWithHttpInfo($batch_input_blog_author, string $conten $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -1510,20 +1647,60 @@ public function createLangVariationWithHttpInfo($blog_author_clone_request_v_nex switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1538,11 +1715,34 @@ public function createLangVariationWithHttpInfo($blog_author_clone_request_v_nex ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1552,7 +1752,7 @@ public function createLangVariationWithHttpInfo($blog_author_clone_request_v_nex $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1560,10 +1760,8 @@ public function createLangVariationWithHttpInfo($blog_author_clone_request_v_nex $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -1793,6 +1991,7 @@ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_ return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -1802,10 +2001,8 @@ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -2028,20 +2225,60 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2056,11 +2293,34 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2070,7 +2330,7 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2078,10 +2338,8 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -2360,20 +2618,60 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2388,11 +2686,34 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2402,7 +2723,7 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2410,10 +2731,8 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -2773,26 +3092,87 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', []), + $response->getStatusCode(), + $response->getHeaders() + ]; case 207: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2807,11 +3187,34 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2821,7 +3224,7 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; case 207: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2829,7 +3232,7 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2837,10 +3240,8 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3083,6 +3484,7 @@ public function setLangPrimaryWithHttpInfo($set_new_language_primary_request_v_n return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -3092,10 +3494,8 @@ public function setLangPrimaryWithHttpInfo($set_new_language_primary_request_v_n $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3318,20 +3718,60 @@ public function updateWithHttpInfo($object_id, $blog_author, $archived = null, s switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3346,11 +3786,34 @@ public function updateWithHttpInfo($object_id, $blog_author, $archived = null, s ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -3360,7 +3823,7 @@ public function updateWithHttpInfo($object_id, $blog_author, $archived = null, s $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3368,10 +3831,8 @@ public function updateWithHttpInfo($object_id, $blog_author, $archived = null, s $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3636,26 +4097,87 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', []), + $response->getStatusCode(), + $response->getHeaders() + ]; case 207: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthorWithErrors', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3670,11 +4192,34 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BatchResponseBlogAuthor'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -3684,7 +4229,7 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; case 207: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3692,7 +4237,7 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3700,10 +4245,8 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3946,6 +4489,7 @@ public function updateLangsWithHttpInfo($update_languages_request_v_next, string return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -3955,10 +4499,8 @@ public function updateLangsWithHttpInfo($update_languages_request_v_next, string $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -4134,57 +4676,6 @@ protected function createHttpClientOption() } } - if ($this->config->getCertFile()) { - $options[RequestOptions::CERT] = $this->config->getCertFile(); - } - - if ($this->config->getKeyFile()) { - $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); - } - return $options; } - - private function handleResponseWithDataType( - string $dataType, - RequestInterface $request, - ResponseInterface $response - ): array { - if ($dataType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($dataType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $response->getStatusCode(), - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $dataType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - private function responseWithinRangeCode( - string $rangeCode, - int $statusCode - ): bool { - $left = (int) ($rangeCode[0].'00'); - $right = (int) ($rangeCode[0].'99'); - - return $statusCode >= $left && $statusCode <= $right; - } } diff --git a/codegen/Cms/Blogs/Authors/ApiException.php b/codegen/Cms/Blogs/Authors/ApiException.php index e0461bdc..66afcea3 100644 --- a/codegen/Cms/Blogs/Authors/ApiException.php +++ b/codegen/Cms/Blogs/Authors/ApiException.php @@ -1,7 +1,7 @@ tempFolderPath; } - /** - * Sets the certificate file path, for mTLS - * - * @return $this - */ - public function setCertFile($certFile) - { - $this->certFile = $certFile; - return $this; - } - - /** - * Gets the certificate file path, for mTLS - * - * @return string Certificate file path - */ - public function getCertFile() - { - return $this->certFile; - } - - /** - * Sets the certificate key path, for mTLS - * - * @return $this - */ - public function setKeyFile($keyFile) - { - $this->keyFile = $keyFile; - return $this; - } - - /** - * Gets the certificate key path, for mTLS - * - * @return string Certificate key path - */ - public function getKeyFile() - { - return $this->keyFile; - } - - /** * Gets the default configuration instance * diff --git a/codegen/Cms/Blogs/Authors/FormDataProcessor.php b/codegen/Cms/Blogs/Authors/FormDataProcessor.php deleted file mode 100644 index 6ce2d2ad..00000000 --- a/codegen/Cms/Blogs/Authors/FormDataProcessor.php +++ /dev/null @@ -1,246 +0,0 @@ - $values the value of the form parameter - * - * @return array [key => value] of formdata - */ - public function prepare(array $values): array - { - $this->has_file = false; - $result = []; - - foreach ($values as $k => $v) { - if ($v === null) { - continue; - } - - $result[$k] = $this->makeFormSafe($v); - } - - return $result; - } - - /** - * Flattens a multi-level array of data and generates a single-level array - * compatible with formdata - a single-level array where the keys use bracket - * notation to signify nested data. - * - * credit: https://github.com/FranBar1966/FlatPHP - */ - public static function flatten(array $source, string $start = ''): array - { - $opt = [ - 'prefix' => '[', - 'suffix' => ']', - 'suffix-end' => true, - 'prefix-list' => '[', - 'suffix-list' => ']', - 'suffix-list-end' => true, - ]; - - if ($start === '') { - $currentPrefix = ''; - $currentSuffix = ''; - $currentSuffixEnd = false; - } elseif (array_is_list($source)) { - $currentPrefix = $opt['prefix-list']; - $currentSuffix = $opt['suffix-list']; - $currentSuffixEnd = $opt['suffix-list-end']; - } else { - $currentPrefix = $opt['prefix']; - $currentSuffix = $opt['suffix']; - $currentSuffixEnd = $opt['suffix-end']; - } - - $currentName = $start; - $result = []; - - foreach ($source as $key => $val) { - $currentName .= $currentPrefix.$key; - - if (is_array($val) && !empty($val)) { - $currentName .= $currentSuffix; - $result += self::flatten($val, $currentName); - } else { - if ($currentSuffixEnd) { - $currentName .= $currentSuffix; - } - - if (is_resource($val)) { - $result[$currentName] = $val; - } else { - $result[$currentName] = ObjectSerializer::toString($val); - } - } - - $currentName = $start; - } - - return $result; - } - - /** - * formdata must be limited to scalars or arrays of scalar values, - * or a resource for a file upload. Here we iterate through all available - * data and identify how to handle each scenario - */ - protected function makeFormSafe($value) - { - if ($value instanceof SplFileObject) { - return $this->processFiles([$value])[0]; - } - - if (is_resource($value)) { - $this->has_file = true; - - return $value; - } - - if ($value instanceof ModelInterface) { - return $this->processModel($value); - } - - if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { - $data = []; - - foreach ($value as $k => $v) { - $data[$k] = $this->makeFormSafe($v); - } - - return $data; - } - - return ObjectSerializer::toString($value); - } - - /** - * We are able to handle nested ModelInterface. We do not simply call - * json_decode(json_encode()) because any given model may have binary data - * or other data that cannot be serialized to a JSON string - */ - protected function processModel(ModelInterface $model): array - { - $result = []; - - foreach ($model::openAPITypes() as $name => $type) { - $value = $model->offsetGet($name); - - if ($value === null) { - continue; - } - - if (strpos($type, '\SplFileObject') !== false) { - $file = is_array($value) ? $value : [$value]; - $result[$name] = $this->processFiles($file); - - continue; - } - - if ($value instanceof ModelInterface) { - $result[$name] = $this->processModel($value); - - continue; - } - - if (is_array($value) || is_object($value)) { - $result[$name] = $this->makeFormSafe($value); - - continue; - } - - $result[$name] = ObjectSerializer::toString($value); - } - - return $result; - } - - /** - * Handle file data - */ - protected function processFiles(array $files): array - { - $this->has_file = true; - - $result = []; - - foreach ($files as $i => $file) { - if (is_array($file)) { - $result[$i] = $this->processFiles($file); - - continue; - } - - if ($file instanceof StreamInterface) { - $result[$i] = $file; - - continue; - } - - if ($file instanceof SplFileObject) { - $result[$i] = $this->tryFopen($file); - } - } - - return $result; - } - - private function tryFopen(SplFileObject $file) - { - return Utils::tryFopen($file->getRealPath(), 'rb'); - } -} diff --git a/codegen/Cms/Blogs/Authors/HeaderSelector.php b/codegen/Cms/Blogs/Authors/HeaderSelector.php index a25052e6..2497f477 100644 --- a/codegen/Cms/Blogs/Authors/HeaderSelector.php +++ b/codegen/Cms/Blogs/Authors/HeaderSelector.php @@ -1,7 +1,7 @@ container[$offset]); } @@ -442,12 +442,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -472,11 +472,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php b/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php index dec93650..f54f3c13 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php @@ -2,7 +2,7 @@ /** * BatchInputBlogAuthor * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setInputs($inputs) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php b/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php index 5701b203..5f7db7c9 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php @@ -2,7 +2,7 @@ /** * BatchInputJsonNode * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setInputs($inputs) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/BatchInputString.php b/codegen/Cms/Blogs/Authors/Model/BatchInputString.php index c536f9f0..1004e6b5 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchInputString.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchInputString.php @@ -2,7 +2,7 @@ /** * BatchInputString * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setInputs($inputs) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php index e2f114d6..52306fc1 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php @@ -2,7 +2,7 @@ /** * BatchResponseBlogAuthor * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -539,11 +539,11 @@ public function setStatus($status) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -551,12 +551,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -581,11 +581,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php index 64d7e6a0..14efe46a 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php @@ -2,7 +2,7 @@ /** * BatchResponseBlogAuthorWithErrors * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -607,11 +607,11 @@ public function setStatus($status) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -619,12 +619,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -649,11 +649,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php b/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php index af883d82..1d44f03c 100644 --- a/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php +++ b/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php @@ -2,7 +2,7 @@ /** * BlogAuthor * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -2452,11 +2452,11 @@ public function setSlug($slug) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2464,12 +2464,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -2494,11 +2494,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php index 412f2480..a3cb73aa 100644 --- a/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php @@ -2,7 +2,7 @@ /** * BlogAuthorCloneRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -427,11 +427,11 @@ public function setBlogAuthor($blog_author) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -439,12 +439,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -469,11 +469,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php b/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php index c88b3db9..55414c59 100644 --- a/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php +++ b/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php @@ -2,7 +2,7 @@ /** * CollectionResponseWithTotalBlogAuthorForwardPaging * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -393,11 +393,11 @@ public function setResults($results) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -405,12 +405,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -435,11 +435,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php index 88df30b7..5df181a2 100644 --- a/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php @@ -2,7 +2,7 @@ /** * DetachFromLangGroupRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setId($id) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/Error.php b/codegen/Cms/Blogs/Authors/Model/Error.php index 7b53821c..14b6d35e 100644 --- a/codegen/Cms/Blogs/Authors/Model/Error.php +++ b/codegen/Cms/Blogs/Authors/Model/Error.php @@ -2,7 +2,7 @@ /** * Error * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -531,11 +531,11 @@ public function setErrors($errors) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -543,12 +543,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -573,11 +573,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php b/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php index 93200ec9..0c4e7092 100644 --- a/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php +++ b/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php @@ -2,7 +2,7 @@ /** * ErrorDetail * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -457,11 +457,11 @@ public function setMessage($message) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -469,12 +469,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -499,11 +499,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php b/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php index fdffb629..4e8d2fa0 100644 --- a/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php +++ b/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php @@ -2,7 +2,7 @@ /** * ForwardPaging * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -319,11 +319,11 @@ public function setNext($next) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -331,12 +331,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -361,11 +361,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/ModelInterface.php b/codegen/Cms/Blogs/Authors/Model/ModelInterface.php index c60fb8b3..03600305 100644 --- a/codegen/Cms/Blogs/Authors/Model/ModelInterface.php +++ b/codegen/Cms/Blogs/Authors/Model/ModelInterface.php @@ -2,7 +2,7 @@ /** * ModelInterface * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors\Model @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** diff --git a/codegen/Cms/Blogs/Authors/Model/NextPage.php b/codegen/Cms/Blogs/Authors/Model/NextPage.php index 8117cf33..212121b8 100644 --- a/codegen/Cms/Blogs/Authors/Model/NextPage.php +++ b/codegen/Cms/Blogs/Authors/Model/NextPage.php @@ -2,7 +2,7 @@ /** * NextPage * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -313,7 +313,7 @@ public function getLink() /** * Sets link * - * @param string|null $link A URL that can be used to retrieve the next page results. + * @param string|null $link * * @return self */ @@ -340,7 +340,7 @@ public function getAfter() /** * Sets after * - * @param string $after A paging cursor token for retrieving subsequent pages. + * @param string $after * * @return self */ @@ -356,11 +356,11 @@ public function setAfter($after) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -368,12 +368,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -398,11 +398,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php index 849692b9..0323e005 100644 --- a/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php @@ -2,7 +2,7 @@ /** * SetNewLanguagePrimaryRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setId($id) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/StandardError.php b/codegen/Cms/Blogs/Authors/Model/StandardError.php index ea279b1f..0aa354f4 100644 --- a/codegen/Cms/Blogs/Authors/Model/StandardError.php +++ b/codegen/Cms/Blogs/Authors/Model/StandardError.php @@ -2,7 +2,7 @@ /** * StandardError * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -575,11 +575,11 @@ public function setStatus($status) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -587,12 +587,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -617,11 +617,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php index 579f35f3..0b9d1311 100644 --- a/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php @@ -2,7 +2,7 @@ /** * UpdateLanguagesRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -359,11 +359,11 @@ public function setPrimaryId($primary_id) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -371,12 +371,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -401,11 +401,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Authors/ObjectSerializer.php b/codegen/Cms/Blogs/Authors/ObjectSerializer.php index f10190c0..fe370008 100644 --- a/codegen/Cms/Blogs/Authors/ObjectSerializer.php +++ b/codegen/Cms/Blogs/Authors/ObjectSerializer.php @@ -2,7 +2,7 @@ /** * ObjectSerializer * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Authors @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -323,6 +323,24 @@ public static function toHeaderValue($value) return self::toString($value); } + /** + * Take value and turn it into a string suitable for inclusion in + * the http body (form parameter). If it's a string, pass through unchanged + * If it's a datetime object, format it in ISO8601 + * + * @param string|\SplFileObject $value the value of the form parameter + * + * @return string the form string + */ + public static function toFormValue($value) + { + if ($value instanceof \SplFileObject) { + return $value->getRealPath(); + } else { + return self::toString($value); + } + } + /** * Take value and turn it into a string suitable for inclusion in * the parameter. If it's a string, pass through unchanged @@ -594,6 +612,6 @@ public static function buildQuery(array $params, $encoding = PHP_QUERY_RFC3986): } } - return $qs ? substr($qs, 0, -1) : ''; + return $qs ? (string) substr($qs, 0, -1) : ''; } } diff --git a/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php b/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php index d3f7e569..e6600920 100644 --- a/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php +++ b/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php @@ -1,7 +1,7 @@ getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -232,10 +230,8 @@ public function archiveWithHttpInfo($object_id, $archived = null, string $conten $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -466,6 +462,7 @@ public function archiveBatchWithHttpInfo($batch_input_string, string $contentTyp return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -475,10 +472,8 @@ public function archiveBatchWithHttpInfo($batch_input_string, string $contentTyp $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -695,6 +690,7 @@ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_ return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -704,10 +700,8 @@ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -926,20 +920,60 @@ public function createWithHttpInfo($tag, string $contentType = self::contentType switch($statusCode) { case 201: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -954,11 +988,34 @@ public function createWithHttpInfo($tag, string $contentType = self::contentType ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 201: @@ -968,7 +1025,7 @@ public function createWithHttpInfo($tag, string $contentType = self::contentType $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -976,10 +1033,8 @@ public function createWithHttpInfo($tag, string $contentType = self::contentType $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -1211,26 +1266,87 @@ public function createBatchWithHttpInfo($batch_input_tag, string $contentType = switch($statusCode) { case 201: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', []), + $response->getStatusCode(), + $response->getHeaders() + ]; case 207: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1245,11 +1361,34 @@ public function createBatchWithHttpInfo($batch_input_tag, string $contentType = ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 201: @@ -1259,7 +1398,7 @@ public function createBatchWithHttpInfo($batch_input_tag, string $contentType = $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; case 207: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1267,7 +1406,7 @@ public function createBatchWithHttpInfo($batch_input_tag, string $contentType = $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1275,10 +1414,8 @@ public function createBatchWithHttpInfo($batch_input_tag, string $contentType = $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -1510,20 +1647,60 @@ public function createLangVariationWithHttpInfo($tag_clone_request_v_next, strin switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1538,11 +1715,34 @@ public function createLangVariationWithHttpInfo($tag_clone_request_v_next, strin ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1552,7 +1752,7 @@ public function createLangVariationWithHttpInfo($tag_clone_request_v_next, strin $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1560,10 +1760,8 @@ public function createLangVariationWithHttpInfo($tag_clone_request_v_next, strin $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -1793,6 +1991,7 @@ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_ return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -1802,10 +2001,8 @@ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -2028,20 +2225,60 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2056,11 +2293,34 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2070,7 +2330,7 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2078,10 +2338,8 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -2360,20 +2618,60 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2388,11 +2686,34 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2402,7 +2723,7 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2410,10 +2731,8 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -2773,26 +3092,87 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', []), + $response->getStatusCode(), + $response->getHeaders() + ]; case 207: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2807,11 +3187,34 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -2821,7 +3224,7 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; case 207: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2829,7 +3232,7 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2837,10 +3240,8 @@ public function readBatchWithHttpInfo($batch_input_string, $archived = null, str $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3083,6 +3484,7 @@ public function setLangPrimaryWithHttpInfo($set_new_language_primary_request_v_n return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -3092,10 +3494,8 @@ public function setLangPrimaryWithHttpInfo($set_new_language_primary_request_v_n $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3318,20 +3718,60 @@ public function updateWithHttpInfo($object_id, $tag, $archived = null, string $c switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Tag' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3346,11 +3786,34 @@ public function updateWithHttpInfo($object_id, $tag, $archived = null, string $c ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -3360,7 +3823,7 @@ public function updateWithHttpInfo($object_id, $tag, $archived = null, string $c $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3368,10 +3831,8 @@ public function updateWithHttpInfo($object_id, $tag, $archived = null, string $c $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3636,26 +4097,87 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null switch($statusCode) { case 200: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', []), + $response->getStatusCode(), + $response->getHeaders() + ]; case 207: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors', - $request, - $response, - ); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTagWithErrors', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', - $request, - $response, - ); - } + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } - + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3670,11 +4192,34 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null ); } - return $this->handleResponseWithDataType( - '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag', - $request, - $response, - ); + $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\BatchResponseTag'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -3684,7 +4229,7 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; case 207: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3692,7 +4237,7 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -3700,10 +4245,8 @@ public function updateBatchWithHttpInfo($batch_input_json_node, $archived = null $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -3946,6 +4489,7 @@ public function updateLangsWithHttpInfo($update_languages_request_v_next, string return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { switch ($e->getCode()) { default: @@ -3955,10 +4499,8 @@ public function updateLangsWithHttpInfo($update_languages_request_v_next, string $e->getResponseHeaders() ); $e->setResponseObject($data); - throw $e; + break; } - - throw $e; } } @@ -4134,57 +4676,6 @@ protected function createHttpClientOption() } } - if ($this->config->getCertFile()) { - $options[RequestOptions::CERT] = $this->config->getCertFile(); - } - - if ($this->config->getKeyFile()) { - $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); - } - return $options; } - - private function handleResponseWithDataType( - string $dataType, - RequestInterface $request, - ResponseInterface $response - ): array { - if ($dataType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($dataType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $response->getStatusCode(), - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $dataType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - private function responseWithinRangeCode( - string $rangeCode, - int $statusCode - ): bool { - $left = (int) ($rangeCode[0].'00'); - $right = (int) ($rangeCode[0].'99'); - - return $statusCode >= $left && $statusCode <= $right; - } } diff --git a/codegen/Cms/Blogs/Tags/ApiException.php b/codegen/Cms/Blogs/Tags/ApiException.php index 97ce98a9..0213c579 100644 --- a/codegen/Cms/Blogs/Tags/ApiException.php +++ b/codegen/Cms/Blogs/Tags/ApiException.php @@ -1,7 +1,7 @@ tempFolderPath; } - /** - * Sets the certificate file path, for mTLS - * - * @return $this - */ - public function setCertFile($certFile) - { - $this->certFile = $certFile; - return $this; - } - - /** - * Gets the certificate file path, for mTLS - * - * @return string Certificate file path - */ - public function getCertFile() - { - return $this->certFile; - } - - /** - * Sets the certificate key path, for mTLS - * - * @return $this - */ - public function setKeyFile($keyFile) - { - $this->keyFile = $keyFile; - return $this; - } - - /** - * Gets the certificate key path, for mTLS - * - * @return string Certificate key path - */ - public function getKeyFile() - { - return $this->keyFile; - } - - /** * Gets the default configuration instance * diff --git a/codegen/Cms/Blogs/Tags/FormDataProcessor.php b/codegen/Cms/Blogs/Tags/FormDataProcessor.php deleted file mode 100644 index 6bb6eff5..00000000 --- a/codegen/Cms/Blogs/Tags/FormDataProcessor.php +++ /dev/null @@ -1,246 +0,0 @@ - $values the value of the form parameter - * - * @return array [key => value] of formdata - */ - public function prepare(array $values): array - { - $this->has_file = false; - $result = []; - - foreach ($values as $k => $v) { - if ($v === null) { - continue; - } - - $result[$k] = $this->makeFormSafe($v); - } - - return $result; - } - - /** - * Flattens a multi-level array of data and generates a single-level array - * compatible with formdata - a single-level array where the keys use bracket - * notation to signify nested data. - * - * credit: https://github.com/FranBar1966/FlatPHP - */ - public static function flatten(array $source, string $start = ''): array - { - $opt = [ - 'prefix' => '[', - 'suffix' => ']', - 'suffix-end' => true, - 'prefix-list' => '[', - 'suffix-list' => ']', - 'suffix-list-end' => true, - ]; - - if ($start === '') { - $currentPrefix = ''; - $currentSuffix = ''; - $currentSuffixEnd = false; - } elseif (array_is_list($source)) { - $currentPrefix = $opt['prefix-list']; - $currentSuffix = $opt['suffix-list']; - $currentSuffixEnd = $opt['suffix-list-end']; - } else { - $currentPrefix = $opt['prefix']; - $currentSuffix = $opt['suffix']; - $currentSuffixEnd = $opt['suffix-end']; - } - - $currentName = $start; - $result = []; - - foreach ($source as $key => $val) { - $currentName .= $currentPrefix.$key; - - if (is_array($val) && !empty($val)) { - $currentName .= $currentSuffix; - $result += self::flatten($val, $currentName); - } else { - if ($currentSuffixEnd) { - $currentName .= $currentSuffix; - } - - if (is_resource($val)) { - $result[$currentName] = $val; - } else { - $result[$currentName] = ObjectSerializer::toString($val); - } - } - - $currentName = $start; - } - - return $result; - } - - /** - * formdata must be limited to scalars or arrays of scalar values, - * or a resource for a file upload. Here we iterate through all available - * data and identify how to handle each scenario - */ - protected function makeFormSafe($value) - { - if ($value instanceof SplFileObject) { - return $this->processFiles([$value])[0]; - } - - if (is_resource($value)) { - $this->has_file = true; - - return $value; - } - - if ($value instanceof ModelInterface) { - return $this->processModel($value); - } - - if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { - $data = []; - - foreach ($value as $k => $v) { - $data[$k] = $this->makeFormSafe($v); - } - - return $data; - } - - return ObjectSerializer::toString($value); - } - - /** - * We are able to handle nested ModelInterface. We do not simply call - * json_decode(json_encode()) because any given model may have binary data - * or other data that cannot be serialized to a JSON string - */ - protected function processModel(ModelInterface $model): array - { - $result = []; - - foreach ($model::openAPITypes() as $name => $type) { - $value = $model->offsetGet($name); - - if ($value === null) { - continue; - } - - if (strpos($type, '\SplFileObject') !== false) { - $file = is_array($value) ? $value : [$value]; - $result[$name] = $this->processFiles($file); - - continue; - } - - if ($value instanceof ModelInterface) { - $result[$name] = $this->processModel($value); - - continue; - } - - if (is_array($value) || is_object($value)) { - $result[$name] = $this->makeFormSafe($value); - - continue; - } - - $result[$name] = ObjectSerializer::toString($value); - } - - return $result; - } - - /** - * Handle file data - */ - protected function processFiles(array $files): array - { - $this->has_file = true; - - $result = []; - - foreach ($files as $i => $file) { - if (is_array($file)) { - $result[$i] = $this->processFiles($file); - - continue; - } - - if ($file instanceof StreamInterface) { - $result[$i] = $file; - - continue; - } - - if ($file instanceof SplFileObject) { - $result[$i] = $this->tryFopen($file); - } - } - - return $result; - } - - private function tryFopen(SplFileObject $file) - { - return Utils::tryFopen($file->getRealPath(), 'rb'); - } -} diff --git a/codegen/Cms/Blogs/Tags/HeaderSelector.php b/codegen/Cms/Blogs/Tags/HeaderSelector.php index 8ab0a98c..f68d9965 100644 --- a/codegen/Cms/Blogs/Tags/HeaderSelector.php +++ b/codegen/Cms/Blogs/Tags/HeaderSelector.php @@ -1,7 +1,7 @@ container[$offset]); } @@ -442,12 +442,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -472,11 +472,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php b/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php index 6c0603ee..0c6630f3 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php @@ -2,7 +2,7 @@ /** * BatchInputJsonNode * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setInputs($inputs) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/BatchInputString.php b/codegen/Cms/Blogs/Tags/Model/BatchInputString.php index 625ae346..4c181bf6 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchInputString.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchInputString.php @@ -2,7 +2,7 @@ /** * BatchInputString * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setInputs($inputs) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php b/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php index 147ef254..110f883e 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php @@ -2,7 +2,7 @@ /** * BatchInputTag * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setInputs($inputs) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php b/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php index 58b45a44..52b6579d 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php @@ -2,7 +2,7 @@ /** * BatchResponseTag * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -539,11 +539,11 @@ public function setStatus($status) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -551,12 +551,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -581,11 +581,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php b/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php index fc07818b..69c8df3d 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php @@ -2,7 +2,7 @@ /** * BatchResponseTagWithErrors * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -607,11 +607,11 @@ public function setStatus($status) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -619,12 +619,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -649,11 +649,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php b/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php index 80acc14a..d46ea556 100644 --- a/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php +++ b/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php @@ -2,7 +2,7 @@ /** * CollectionResponseWithTotalTagForwardPaging * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -393,11 +393,11 @@ public function setResults($results) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -405,12 +405,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -435,11 +435,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php index 928c9c95..1be5b1e8 100644 --- a/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php @@ -2,7 +2,7 @@ /** * DetachFromLangGroupRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setId($id) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/Error.php b/codegen/Cms/Blogs/Tags/Model/Error.php index a88cb24e..fc110c3f 100644 --- a/codegen/Cms/Blogs/Tags/Model/Error.php +++ b/codegen/Cms/Blogs/Tags/Model/Error.php @@ -2,7 +2,7 @@ /** * Error * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -531,11 +531,11 @@ public function setErrors($errors) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -543,12 +543,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -573,11 +573,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php b/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php index bd2264d9..b0db5bc8 100644 --- a/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php +++ b/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php @@ -2,7 +2,7 @@ /** * ErrorDetail * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -457,11 +457,11 @@ public function setMessage($message) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -469,12 +469,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -499,11 +499,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php b/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php index f863f6e1..fd21d92a 100644 --- a/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php +++ b/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php @@ -2,7 +2,7 @@ /** * ForwardPaging * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -319,11 +319,11 @@ public function setNext($next) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -331,12 +331,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -361,11 +361,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/ModelInterface.php b/codegen/Cms/Blogs/Tags/Model/ModelInterface.php index d3b35c19..196e9f1c 100644 --- a/codegen/Cms/Blogs/Tags/Model/ModelInterface.php +++ b/codegen/Cms/Blogs/Tags/Model/ModelInterface.php @@ -2,7 +2,7 @@ /** * ModelInterface * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags\Model @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** diff --git a/codegen/Cms/Blogs/Tags/Model/NextPage.php b/codegen/Cms/Blogs/Tags/Model/NextPage.php index 4cd3afd5..f7f5fce9 100644 --- a/codegen/Cms/Blogs/Tags/Model/NextPage.php +++ b/codegen/Cms/Blogs/Tags/Model/NextPage.php @@ -2,7 +2,7 @@ /** * NextPage * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -313,7 +313,7 @@ public function getLink() /** * Sets link * - * @param string|null $link A URL that can be used to retrieve the next page results. + * @param string|null $link * * @return self */ @@ -340,7 +340,7 @@ public function getAfter() /** * Sets after * - * @param string $after A paging cursor token for retrieving subsequent pages. + * @param string $after * * @return self */ @@ -356,11 +356,11 @@ public function setAfter($after) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -368,12 +368,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -398,11 +398,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php index cd063e32..f3385000 100644 --- a/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php @@ -2,7 +2,7 @@ /** * SetNewLanguagePrimaryRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -322,11 +322,11 @@ public function setId($id) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -334,12 +334,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -364,11 +364,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/StandardError.php b/codegen/Cms/Blogs/Tags/Model/StandardError.php index e8f5a9f1..6cbbd880 100644 --- a/codegen/Cms/Blogs/Tags/Model/StandardError.php +++ b/codegen/Cms/Blogs/Tags/Model/StandardError.php @@ -2,7 +2,7 @@ /** * StandardError * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -575,11 +575,11 @@ public function setStatus($status) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -587,12 +587,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -617,11 +617,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/Tag.php b/codegen/Cms/Blogs/Tags/Model/Tag.php index 8f17579d..04bb08bb 100644 --- a/codegen/Cms/Blogs/Tags/Model/Tag.php +++ b/codegen/Cms/Blogs/Tags/Model/Tag.php @@ -2,7 +2,7 @@ /** * Tag * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -2082,11 +2082,11 @@ public function setUpdated($updated) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2094,12 +2094,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -2124,11 +2124,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php index 2706afdf..8d7f7e7f 100644 --- a/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php @@ -2,7 +2,7 @@ /** * TagCloneRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -427,11 +427,11 @@ public function setPrimaryLanguage($primary_language) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -439,12 +439,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -469,11 +469,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php index b7c39c89..4ee27068 100644 --- a/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php @@ -2,7 +2,7 @@ /** * UpdateLanguagesRequestVNext * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -359,11 +359,11 @@ public function setPrimaryId($primary_id) /** * Returns true if offset exists. False otherwise. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return boolean */ - public function offsetExists(mixed $offset): bool + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -371,12 +371,12 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet(mixed $offset) + public function offsetGet($offset) { return $this->container[$offset] ?? null; } @@ -401,11 +401,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer|string $offset Offset + * @param integer $offset Offset * * @return void */ - public function offsetUnset(mixed $offset): void + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/codegen/Cms/Blogs/Tags/ObjectSerializer.php b/codegen/Cms/Blogs/Tags/ObjectSerializer.php index 9e8915c0..df6b06f9 100644 --- a/codegen/Cms/Blogs/Tags/ObjectSerializer.php +++ b/codegen/Cms/Blogs/Tags/ObjectSerializer.php @@ -2,7 +2,7 @@ /** * ObjectSerializer * - * PHP version 8.1 + * PHP version 7.4 * * @category Class * @package HubSpot\Client\Cms\Blogs\Tags @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.12.0 */ /** @@ -323,6 +323,24 @@ public static function toHeaderValue($value) return self::toString($value); } + /** + * Take value and turn it into a string suitable for inclusion in + * the http body (form parameter). If it's a string, pass through unchanged + * If it's a datetime object, format it in ISO8601 + * + * @param string|\SplFileObject $value the value of the form parameter + * + * @return string the form string + */ + public static function toFormValue($value) + { + if ($value instanceof \SplFileObject) { + return $value->getRealPath(); + } else { + return self::toString($value); + } + } + /** * Take value and turn it into a string suitable for inclusion in * the parameter. If it's a string, pass through unchanged @@ -594,6 +612,6 @@ public static function buildQuery(array $params, $encoding = PHP_QUERY_RFC3986): } } - return $qs ? substr($qs, 0, -1) : ''; + return $qs ? (string) substr($qs, 0, -1) : ''; } } From b7065761bccb1ac3d897d05e0505e4c26beb0e11 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 12 Nov 2025 15:05:19 +0300 Subject: [PATCH 02/11] Fix PHP 8.4 deprecation: Implicitly marking parameter as nullable in CRM Objects --- codegen/Crm/Objects/Api/BasicApi.php | 6 +++--- codegen/Crm/Objects/Api/BatchApi.php | 6 +++--- codegen/Crm/Objects/Api/SearchApi.php | 6 +++--- codegen/Crm/Objects/Configuration.php | 2 +- codegen/Crm/Objects/Model/AssociatedId.php | 2 +- codegen/Crm/Objects/Model/AssociationSpec.php | 2 +- .../Model/BatchInputSimplePublicObjectBatchInput.php | 2 +- .../BatchInputSimplePublicObjectBatchInputForCreate.php | 2 +- .../Model/BatchInputSimplePublicObjectBatchInputUpsert.php | 2 +- .../Crm/Objects/Model/BatchInputSimplePublicObjectId.php | 2 +- .../Objects/Model/BatchReadInputSimplePublicObjectId.php | 2 +- .../Crm/Objects/Model/BatchResponseSimplePublicObject.php | 2 +- .../Model/BatchResponseSimplePublicObjectWithErrors.php | 2 +- .../Objects/Model/BatchResponseSimplePublicUpsertObject.php | 2 +- .../BatchResponseSimplePublicUpsertObjectWithErrors.php | 2 +- .../Crm/Objects/Model/CollectionResponseAssociatedId.php | 2 +- ...ponseSimplePublicObjectWithAssociationsForwardPaging.php | 2 +- ...tionResponseWithTotalSimplePublicObjectForwardPaging.php | 2 +- codegen/Crm/Objects/Model/Error.php | 2 +- codegen/Crm/Objects/Model/ErrorDetail.php | 2 +- codegen/Crm/Objects/Model/Filter.php | 2 +- codegen/Crm/Objects/Model/FilterGroup.php | 2 +- codegen/Crm/Objects/Model/ForwardPaging.php | 2 +- codegen/Crm/Objects/Model/NextPage.php | 2 +- codegen/Crm/Objects/Model/Paging.php | 2 +- codegen/Crm/Objects/Model/PreviousPage.php | 2 +- codegen/Crm/Objects/Model/PublicAssociationsForObject.php | 2 +- codegen/Crm/Objects/Model/PublicObjectId.php | 2 +- codegen/Crm/Objects/Model/PublicObjectSearchRequest.php | 2 +- codegen/Crm/Objects/Model/SimplePublicObject.php | 2 +- codegen/Crm/Objects/Model/SimplePublicObjectBatchInput.php | 2 +- .../Objects/Model/SimplePublicObjectBatchInputForCreate.php | 2 +- .../Objects/Model/SimplePublicObjectBatchInputUpsert.php | 2 +- codegen/Crm/Objects/Model/SimplePublicObjectId.php | 2 +- codegen/Crm/Objects/Model/SimplePublicObjectInput.php | 2 +- .../Crm/Objects/Model/SimplePublicObjectInputForCreate.php | 2 +- .../Objects/Model/SimplePublicObjectWithAssociations.php | 2 +- codegen/Crm/Objects/Model/SimplePublicUpsertObject.php | 2 +- codegen/Crm/Objects/Model/StandardError.php | 2 +- codegen/Crm/Objects/Model/ValueWithTimestamp.php | 2 +- 40 files changed, 46 insertions(+), 46 deletions(-) diff --git a/codegen/Crm/Objects/Api/BasicApi.php b/codegen/Crm/Objects/Api/BasicApi.php index 6cf8e575..f97b9a71 100644 --- a/codegen/Crm/Objects/Api/BasicApi.php +++ b/codegen/Crm/Objects/Api/BasicApi.php @@ -95,9 +95,9 @@ class BasicApi * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, $hostIndex = 0 ) { $this->client = $client ?: new Client(); diff --git a/codegen/Crm/Objects/Api/BatchApi.php b/codegen/Crm/Objects/Api/BatchApi.php index d6d811ba..98cfd7a6 100644 --- a/codegen/Crm/Objects/Api/BatchApi.php +++ b/codegen/Crm/Objects/Api/BatchApi.php @@ -95,9 +95,9 @@ class BatchApi * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, $hostIndex = 0 ) { $this->client = $client ?: new Client(); diff --git a/codegen/Crm/Objects/Api/SearchApi.php b/codegen/Crm/Objects/Api/SearchApi.php index b7ee9eed..58e97ebf 100644 --- a/codegen/Crm/Objects/Api/SearchApi.php +++ b/codegen/Crm/Objects/Api/SearchApi.php @@ -83,9 +83,9 @@ class SearchApi * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, $hostIndex = 0 ) { $this->client = $client ?: new Client(); diff --git a/codegen/Crm/Objects/Configuration.php b/codegen/Crm/Objects/Configuration.php index 3ab9f308..2039db88 100644 --- a/codegen/Crm/Objects/Configuration.php +++ b/codegen/Crm/Objects/Configuration.php @@ -486,7 +486,7 @@ public function getHostSettings() * @param array|null $variables hash of variable and the corresponding value (optional) * @return string URL based on host settings */ - public static function getHostString(array $hostSettings, $hostIndex, array $variables = null) + public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null) { if (null === $variables) { $variables = []; diff --git a/codegen/Crm/Objects/Model/AssociatedId.php b/codegen/Crm/Objects/Model/AssociatedId.php index 9868381f..4cd22a14 100644 --- a/codegen/Crm/Objects/Model/AssociatedId.php +++ b/codegen/Crm/Objects/Model/AssociatedId.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/AssociationSpec.php b/codegen/Crm/Objects/Model/AssociationSpec.php index 75c5f589..7f40170a 100644 --- a/codegen/Crm/Objects/Model/AssociationSpec.php +++ b/codegen/Crm/Objects/Model/AssociationSpec.php @@ -265,7 +265,7 @@ public function getAssociationCategoryAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('association_category', $data ?? [], null); $this->setIfExists('association_type_id', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInput.php b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInput.php index 28c7819b..0b49db23 100644 --- a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInput.php +++ b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInput.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('inputs', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputForCreate.php b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputForCreate.php index 7b98101d..c62a4046 100644 --- a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputForCreate.php +++ b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputForCreate.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('inputs', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputUpsert.php b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputUpsert.php index c9a93d91..6ab58c3e 100644 --- a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputUpsert.php +++ b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectBatchInputUpsert.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('inputs', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectId.php b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectId.php index b7e644df..9277b725 100644 --- a/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectId.php +++ b/codegen/Crm/Objects/Model/BatchInputSimplePublicObjectId.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('inputs', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/BatchReadInputSimplePublicObjectId.php b/codegen/Crm/Objects/Model/BatchReadInputSimplePublicObjectId.php index f4113bfb..dbdf4d9f 100644 --- a/codegen/Crm/Objects/Model/BatchReadInputSimplePublicObjectId.php +++ b/codegen/Crm/Objects/Model/BatchReadInputSimplePublicObjectId.php @@ -260,7 +260,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('properties_with_history', $data ?? [], null); $this->setIfExists('id_property', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/BatchResponseSimplePublicObject.php b/codegen/Crm/Objects/Model/BatchResponseSimplePublicObject.php index dee1afa1..6f07cb68 100644 --- a/codegen/Crm/Objects/Model/BatchResponseSimplePublicObject.php +++ b/codegen/Crm/Objects/Model/BatchResponseSimplePublicObject.php @@ -291,7 +291,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); $this->setIfExists('requested_at', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/BatchResponseSimplePublicObjectWithErrors.php b/codegen/Crm/Objects/Model/BatchResponseSimplePublicObjectWithErrors.php index 5385ca6b..02f423b1 100644 --- a/codegen/Crm/Objects/Model/BatchResponseSimplePublicObjectWithErrors.php +++ b/codegen/Crm/Objects/Model/BatchResponseSimplePublicObjectWithErrors.php @@ -303,7 +303,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); $this->setIfExists('num_errors', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObject.php b/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObject.php index ef068235..82eedb50 100644 --- a/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObject.php +++ b/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObject.php @@ -291,7 +291,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); $this->setIfExists('requested_at', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObjectWithErrors.php b/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObjectWithErrors.php index 7a6c23bf..acb497f9 100644 --- a/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObjectWithErrors.php +++ b/codegen/Crm/Objects/Model/BatchResponseSimplePublicUpsertObjectWithErrors.php @@ -303,7 +303,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); $this->setIfExists('num_errors', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/CollectionResponseAssociatedId.php b/codegen/Crm/Objects/Model/CollectionResponseAssociatedId.php index 6c2bd960..ae793919 100644 --- a/codegen/Crm/Objects/Model/CollectionResponseAssociatedId.php +++ b/codegen/Crm/Objects/Model/CollectionResponseAssociatedId.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/CollectionResponseSimplePublicObjectWithAssociationsForwardPaging.php b/codegen/Crm/Objects/Model/CollectionResponseSimplePublicObjectWithAssociationsForwardPaging.php index 5df9cd88..f46d1b86 100644 --- a/codegen/Crm/Objects/Model/CollectionResponseSimplePublicObjectWithAssociationsForwardPaging.php +++ b/codegen/Crm/Objects/Model/CollectionResponseSimplePublicObjectWithAssociationsForwardPaging.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/CollectionResponseWithTotalSimplePublicObjectForwardPaging.php b/codegen/Crm/Objects/Model/CollectionResponseWithTotalSimplePublicObjectForwardPaging.php index 501f6b1e..33fe705c 100644 --- a/codegen/Crm/Objects/Model/CollectionResponseWithTotalSimplePublicObjectForwardPaging.php +++ b/codegen/Crm/Objects/Model/CollectionResponseWithTotalSimplePublicObjectForwardPaging.php @@ -254,7 +254,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('total', $data ?? [], null); $this->setIfExists('paging', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/Error.php b/codegen/Crm/Objects/Model/Error.php index 8ce2c792..0cc884d8 100644 --- a/codegen/Crm/Objects/Model/Error.php +++ b/codegen/Crm/Objects/Model/Error.php @@ -278,7 +278,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/ErrorDetail.php b/codegen/Crm/Objects/Model/ErrorDetail.php index 32e42468..3bc9903d 100644 --- a/codegen/Crm/Objects/Model/ErrorDetail.php +++ b/codegen/Crm/Objects/Model/ErrorDetail.php @@ -266,7 +266,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/Filter.php b/codegen/Crm/Objects/Model/Filter.php index 1038680a..b0af59d7 100644 --- a/codegen/Crm/Objects/Model/Filter.php +++ b/codegen/Crm/Objects/Model/Filter.php @@ -303,7 +303,7 @@ public function getOperatorAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('high_value', $data ?? [], null); $this->setIfExists('property_name', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/FilterGroup.php b/codegen/Crm/Objects/Model/FilterGroup.php index 3d691217..070208c1 100644 --- a/codegen/Crm/Objects/Model/FilterGroup.php +++ b/codegen/Crm/Objects/Model/FilterGroup.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('filters', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/ForwardPaging.php b/codegen/Crm/Objects/Model/ForwardPaging.php index 2e02b4ba..6347282a 100644 --- a/codegen/Crm/Objects/Model/ForwardPaging.php +++ b/codegen/Crm/Objects/Model/ForwardPaging.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('next', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/NextPage.php b/codegen/Crm/Objects/Model/NextPage.php index fa60b25c..859c0f52 100644 --- a/codegen/Crm/Objects/Model/NextPage.php +++ b/codegen/Crm/Objects/Model/NextPage.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('link', $data ?? [], null); $this->setIfExists('after', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/Paging.php b/codegen/Crm/Objects/Model/Paging.php index d28f1079..0ea44872 100644 --- a/codegen/Crm/Objects/Model/Paging.php +++ b/codegen/Crm/Objects/Model/Paging.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('next', $data ?? [], null); $this->setIfExists('prev', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/PreviousPage.php b/codegen/Crm/Objects/Model/PreviousPage.php index 4e054f86..1cdddbe8 100644 --- a/codegen/Crm/Objects/Model/PreviousPage.php +++ b/codegen/Crm/Objects/Model/PreviousPage.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('before', $data ?? [], null); $this->setIfExists('link', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/PublicAssociationsForObject.php b/codegen/Crm/Objects/Model/PublicAssociationsForObject.php index 22f8787b..4177096e 100644 --- a/codegen/Crm/Objects/Model/PublicAssociationsForObject.php +++ b/codegen/Crm/Objects/Model/PublicAssociationsForObject.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('types', $data ?? [], null); $this->setIfExists('to', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/PublicObjectId.php b/codegen/Crm/Objects/Model/PublicObjectId.php index 070988fd..4dec276b 100644 --- a/codegen/Crm/Objects/Model/PublicObjectId.php +++ b/codegen/Crm/Objects/Model/PublicObjectId.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('id', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/PublicObjectSearchRequest.php b/codegen/Crm/Objects/Model/PublicObjectSearchRequest.php index 592bdf9e..c8c32a96 100644 --- a/codegen/Crm/Objects/Model/PublicObjectSearchRequest.php +++ b/codegen/Crm/Objects/Model/PublicObjectSearchRequest.php @@ -272,7 +272,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('query', $data ?? [], null); $this->setIfExists('limit', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/SimplePublicObject.php b/codegen/Crm/Objects/Model/SimplePublicObject.php index aeccdbd9..0e2bfe31 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObject.php +++ b/codegen/Crm/Objects/Model/SimplePublicObject.php @@ -284,7 +284,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('archived', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/SimplePublicObjectBatchInput.php b/codegen/Crm/Objects/Model/SimplePublicObjectBatchInput.php index 01234904..bbd19c3f 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObjectBatchInput.php +++ b/codegen/Crm/Objects/Model/SimplePublicObjectBatchInput.php @@ -260,7 +260,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('id_property', $data ?? [], null); $this->setIfExists('object_write_trace_id', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputForCreate.php b/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputForCreate.php index ed1c5d8c..315f0e9c 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputForCreate.php +++ b/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputForCreate.php @@ -254,7 +254,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('associations', $data ?? [], null); $this->setIfExists('object_write_trace_id', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputUpsert.php b/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputUpsert.php index 6eef5a66..e13b7d34 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputUpsert.php +++ b/codegen/Crm/Objects/Model/SimplePublicObjectBatchInputUpsert.php @@ -260,7 +260,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('id_property', $data ?? [], null); $this->setIfExists('object_write_trace_id', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/SimplePublicObjectId.php b/codegen/Crm/Objects/Model/SimplePublicObjectId.php index d07c2992..81c65a84 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObjectId.php +++ b/codegen/Crm/Objects/Model/SimplePublicObjectId.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('id', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/SimplePublicObjectInput.php b/codegen/Crm/Objects/Model/SimplePublicObjectInput.php index 5e368f0c..dd86ee7f 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObjectInput.php +++ b/codegen/Crm/Objects/Model/SimplePublicObjectInput.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('properties', $data ?? [], null); } diff --git a/codegen/Crm/Objects/Model/SimplePublicObjectInputForCreate.php b/codegen/Crm/Objects/Model/SimplePublicObjectInputForCreate.php index 68073e3c..eb7146d8 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObjectInputForCreate.php +++ b/codegen/Crm/Objects/Model/SimplePublicObjectInputForCreate.php @@ -248,7 +248,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('associations', $data ?? [], null); $this->setIfExists('properties', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/SimplePublicObjectWithAssociations.php b/codegen/Crm/Objects/Model/SimplePublicObjectWithAssociations.php index 78da945b..9a6cd050 100644 --- a/codegen/Crm/Objects/Model/SimplePublicObjectWithAssociations.php +++ b/codegen/Crm/Objects/Model/SimplePublicObjectWithAssociations.php @@ -290,7 +290,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('associations', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/SimplePublicUpsertObject.php b/codegen/Crm/Objects/Model/SimplePublicUpsertObject.php index a12c7b6c..4309478b 100644 --- a/codegen/Crm/Objects/Model/SimplePublicUpsertObject.php +++ b/codegen/Crm/Objects/Model/SimplePublicUpsertObject.php @@ -290,7 +290,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('archived', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/StandardError.php b/codegen/Crm/Objects/Model/StandardError.php index 06f56639..9ee00d38 100644 --- a/codegen/Crm/Objects/Model/StandardError.php +++ b/codegen/Crm/Objects/Model/StandardError.php @@ -284,7 +284,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); diff --git a/codegen/Crm/Objects/Model/ValueWithTimestamp.php b/codegen/Crm/Objects/Model/ValueWithTimestamp.php index e7843e52..5f8ab360 100644 --- a/codegen/Crm/Objects/Model/ValueWithTimestamp.php +++ b/codegen/Crm/Objects/Model/ValueWithTimestamp.php @@ -272,7 +272,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->setIfExists('source_id', $data ?? [], null); $this->setIfExists('source_type', $data ?? [], null); From d66dcfbbff33a572125fab907f2704c0f06831f5 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 12 Nov 2025 15:51:57 +0300 Subject: [PATCH 03/11] Add ObjectTypeIDs enum --- lib/Enums/ObjectTypeIDs.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/Enums/ObjectTypeIDs.php diff --git a/lib/Enums/ObjectTypeIDs.php b/lib/Enums/ObjectTypeIDs.php new file mode 100644 index 00000000..d098f5db --- /dev/null +++ b/lib/Enums/ObjectTypeIDs.php @@ -0,0 +1,33 @@ + Date: Wed, 12 Nov 2025 16:47:21 +0300 Subject: [PATCH 04/11] Bump version to 13.1.0 --- CHANGELOG.md | 13 +++++++++++-- composer.json | 6 +++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b787c3..60218c28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.0.1...HEAD) +## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.1.0...HEAD) + +## [13.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0) - 2025-11-12 + +### Updates + +- Added `ObjectTypeIDs` enum. +- Updated `AssociationTypes` enum. +- Updated `crm()->obects()` API client. ## [13.0.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1) - 2025-05-13 @@ -982,7 +990,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 25. getSubscriptions => getAll (webhooks()->subscriptionsApi()) 26. updateSubscription => update (webhooks()->subscriptionsApi()) -[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.0.1...HEAD +[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.1.0...HEAD [1.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/v1.0.0-beta [1.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.1.0 [1.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.2.0 @@ -1045,3 +1053,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [13.0.0beta.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0beta.1 [13.0.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0 [13.0.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1 +[13.1.10]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0 diff --git a/composer.json b/composer.json index 771323e9..3d69e992 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hubspot/api-client", - "version": "13.0.1", + "version": "13.1.0", "description": "Hubspot API client", "keywords": [ "hubspot", @@ -32,8 +32,8 @@ }, "autoload": { "psr-4": { - "HubSpot\\Client\\" : "codegen/", - "HubSpot\\" : "lib/", + "HubSpot\\Client\\": "codegen/", + "HubSpot\\": "lib/", "Hubspot\\Tests\\": "tests/" } } From 9dd5167658dced2ba7eb0ca504ff164ee054316a Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 12 Nov 2025 16:52:02 +0300 Subject: [PATCH 05/11] Change date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60218c28..fc89448a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.1.0...HEAD) -## [13.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0) - 2025-11-12 +## [13.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0) - 2025-11-13 ### Updates From a98ef6b4df93269d2f0ecffe40e03e829aa550d6 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 17 Nov 2025 15:17:19 +0300 Subject: [PATCH 06/11] Fix typing --- lib/Enums/ObjectTypeIDs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Enums/ObjectTypeIDs.php b/lib/Enums/ObjectTypeIDs.php index d098f5db..ce0ff8dd 100644 --- a/lib/Enums/ObjectTypeIDs.php +++ b/lib/Enums/ObjectTypeIDs.php @@ -23,8 +23,8 @@ class ObjectTypeIDs public const NOTES = '0-46'; public const ORDERS = '0-123'; public const PAYMENTS = '0-101'; - public const POSTAL_MAIL = '0-116 '; - public const PRODUCTS = '0 '; + public const POSTAL_MAIL = '0-116'; + public const PRODUCTS = '0-7'; public const QUOTES = '0-14'; public const SERVICES = '0-162'; public const SUBSCRIPTIONS = '0-69'; From f6ab24fdf31fab2b60807e142d0646baa09dde53 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 17 Nov 2025 15:23:32 +0300 Subject: [PATCH 07/11] 13.1.1 --- CHANGELOG.md | 8 +++++++- composer.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc89448a..96b6b99c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.1.0...HEAD) +## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.1.1...HEAD) + +## [13.1.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1) - 2025-11-17 + +### Fixes + +- Fixed typing in `ObjectTypeIDs` enum. ## [13.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0) - 2025-11-13 diff --git a/composer.json b/composer.json index 3d69e992..705d5f6d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hubspot/api-client", - "version": "13.1.0", + "version": "13.1.1", "description": "Hubspot API client", "keywords": [ "hubspot", From 45323b67acf3facd3af0f82aa5946acf5ffa8a5b Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 17 Nov 2025 15:28:53 +0300 Subject: [PATCH 08/11] Fix versions --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96b6b99c..2c954ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -996,7 +996,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 25. getSubscriptions => getAll (webhooks()->subscriptionsApi()) 26. updateSubscription => update (webhooks()->subscriptionsApi()) -[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.1.0...HEAD +[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.1.1...HEAD [1.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/v1.0.0-beta [1.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.1.0 [1.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.2.0 @@ -1059,4 +1059,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [13.0.0beta.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0beta.1 [13.0.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0 [13.0.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1 -[13.1.10]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0 +[13.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0 +[13.1.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1 From 96dbe3cef1279c439edcb6b2724b3b6756a9c1df Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 15 Dec 2025 16:40:49 +0300 Subject: [PATCH 09/11] Update Object Type class --- README.md | 2 +- lib/Crm/ObjectType.php | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7f0350e3..94d41ebf 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ $hubspot->crm()->contacts()->basicApi()->archive($contactId); #### Get custom objects page ```php -$hubspot->crm()->objects()->basicApi()->getPage(HubSpot\Crm\ObjectType::CONTACTS) +$hubspot->crm()->objects()->basicApi()->getPage($objectType) ``` #### File uploading diff --git a/lib/Crm/ObjectType.php b/lib/Crm/ObjectType.php index 25f740aa..7ab68b41 100644 --- a/lib/Crm/ObjectType.php +++ b/lib/Crm/ObjectType.php @@ -4,11 +4,27 @@ class ObjectType { - public const CONTACTS = 'contacts'; public const COMPANIES = 'companies'; + public const CONTACTS = 'contacts'; public const DEALS = 'deals'; + public const TICKETS = 'tickets'; + public const APPOINTMENTS = 'appointments'; + public const CALLS = 'calls'; + public const COMMUNICATIONS = 'communications'; + public const COURSES = 'courses'; + public const EMAILS = 'emails'; + public const FEEDBACK_SUBMISSIONS = 'feedback_submissions'; + public const INVOICES = 'invoices'; + public const LEADS = 'leads'; public const LINE_ITEMS = 'line_items'; + public const MEETINGS = 'meetings'; + public const NOTES = 'notes'; + public const ORDERS = 'order'; + public const PAYMENTS = 'commerce_payments'; + public const POSTAL_MAIL = 'postal_mail'; public const PRODUCTS = 'products'; - public const TICKETS = 'tickets'; public const QUOTES = 'quotes'; + public const SUBSCRIPTIONS = 'subscriptions'; + public const TASKS = 'tasks'; + public const USERS = 'users'; } From 6b1745e13d5b3ab5111d872055409f934966de36 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 15 Dec 2025 16:52:00 +0300 Subject: [PATCH 10/11] 13.2.0 --- CHANGELOG.md | 11 +++++++++-- composer.json | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c954ec7..23ba3fbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.1.1...HEAD) +## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.2.0...HEAD) + +## [13.2.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0) - 2025-12-16 + +### Updates + +- Updated `ObjectType` enum. ## [13.1.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1) - 2025-11-17 @@ -996,7 +1002,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 25. getSubscriptions => getAll (webhooks()->subscriptionsApi()) 26. updateSubscription => update (webhooks()->subscriptionsApi()) -[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.1.1...HEAD +[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.2.0...HEAD [1.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/v1.0.0-beta [1.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.1.0 [1.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.2.0 @@ -1061,3 +1067,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [13.0.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1 [13.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0 [13.1.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1 +[13.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0 diff --git a/composer.json b/composer.json index 705d5f6d..b6eada95 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hubspot/api-client", - "version": "13.1.1", + "version": "13.2.0", "description": "Hubspot API client", "keywords": [ "hubspot", From bcb652370ef27c1d28ea0b8bba05e71d5fb44dc5 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 15 Dec 2025 16:53:40 +0300 Subject: [PATCH 11/11] Change date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23ba3fbd..10e204bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.2.0...HEAD) -## [13.2.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0) - 2025-12-16 +## [13.2.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0) - 2025-12-17 ### Updates