From faa3b4eb9a8b04a1e6566ddf5be658bf18c23205 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 30 Jan 2026 14:58:28 +0300 Subject: [PATCH 1/3] Codegen: CRM Extensions Calling --- .../Api/ChannelConnectionSettingsApi.php | 74 +++++++++---------- .../Calling/Api/RecordingSettingsApi.php | 64 ++++++++-------- .../Extensions/Calling/Api/SettingsApi.php | 74 +++++++++---------- .../Crm/Extensions/Calling/ApiException.php | 2 +- .../Crm/Extensions/Calling/Configuration.php | 2 +- .../Extensions/Calling/FormDataProcessor.php | 2 +- .../Crm/Extensions/Calling/HeaderSelector.php | 2 +- .../ChannelConnectionSettingsPatchRequest.php | 6 +- .../ChannelConnectionSettingsRequest.php | 6 +- .../ChannelConnectionSettingsResponse.php | 10 +-- .../Crm/Extensions/Calling/Model/Error.php | 2 +- .../Extensions/Calling/Model/ErrorDetail.php | 2 +- .../Model/MarkRecordingAsReadyRequest.php | 4 +- .../Calling/Model/ModelInterface.php | 2 +- .../Model/RecordingSettingsPatchRequest.php | 4 +- .../Model/RecordingSettingsRequest.php | 4 +- .../Model/RecordingSettingsResponse.php | 2 +- .../Calling/Model/SettingsPatchRequest.php | 20 ++--- .../Calling/Model/SettingsRequest.php | 20 ++--- .../Calling/Model/SettingsResponse.php | 24 +++--- .../Extensions/Calling/ObjectSerializer.php | 2 +- 21 files changed, 164 insertions(+), 164 deletions(-) diff --git a/codegen/Crm/Extensions/Calling/Api/ChannelConnectionSettingsApi.php b/codegen/Crm/Extensions/Calling/Api/ChannelConnectionSettingsApi.php index 3e354a07..69465182 100644 --- a/codegen/Crm/Extensions/Calling/Api/ChannelConnectionSettingsApi.php +++ b/codegen/Crm/Extensions/Calling/Api/ChannelConnectionSettingsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -137,9 +137,9 @@ public function getConfig() /** * Operation create * - * + * Create new channel connection settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsRequest $channel_connection_settings_request channel_connection_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -156,9 +156,9 @@ public function create($app_id, $channel_connection_settings_request, string $co /** * Operation createWithHttpInfo * - * + * Create new channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsRequest $channel_connection_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -256,9 +256,9 @@ public function createWithHttpInfo($app_id, $channel_connection_settings_request /** * Operation createAsync * - * + * Create new channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsRequest $channel_connection_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -278,9 +278,9 @@ function ($response) { /** * Operation createAsyncWithHttpInfo * - * + * Create new channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsRequest $channel_connection_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -331,7 +331,7 @@ function ($exception) { /** * Create request for operation 'create' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsRequest $channel_connection_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -443,9 +443,9 @@ public function createRequest($app_id, $channel_connection_settings_request, str /** * Operation get * - * + * Retrieve the channel connection settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -461,9 +461,9 @@ public function get($app_id, string $contentType = self::contentTypes['get'][0]) /** * Operation getWithHttpInfo * - * + * Retrieve the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -560,9 +560,9 @@ public function getWithHttpInfo($app_id, string $contentType = self::contentType /** * Operation getAsync * - * + * Retrieve the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -581,9 +581,9 @@ function ($response) { /** * Operation getAsyncWithHttpInfo * - * + * Retrieve the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -633,7 +633,7 @@ function ($exception) { /** * Create request for operation 'get' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -730,9 +730,9 @@ public function getRequest($app_id, string $contentType = self::contentTypes['ge /** * Operation remove * - * + * Remove the channel connection settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -747,9 +747,9 @@ public function remove($app_id, string $contentType = self::contentTypes['remove /** * Operation removeWithHttpInfo * - * + * Remove the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -804,9 +804,9 @@ public function removeWithHttpInfo($app_id, string $contentType = self::contentT /** * Operation removeAsync * - * + * Remove the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -825,9 +825,9 @@ function ($response) { /** * Operation removeAsyncWithHttpInfo * - * + * Remove the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -864,7 +864,7 @@ function ($exception) { /** * Create request for operation 'remove' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -961,9 +961,9 @@ public function removeRequest($app_id, string $contentType = self::contentTypes[ /** * Operation update * - * + * Update the channel connection settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsPatchRequest $channel_connection_settings_patch_request channel_connection_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -980,9 +980,9 @@ public function update($app_id, $channel_connection_settings_patch_request, stri /** * Operation updateWithHttpInfo * - * + * Update the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsPatchRequest $channel_connection_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1080,9 +1080,9 @@ public function updateWithHttpInfo($app_id, $channel_connection_settings_patch_r /** * Operation updateAsync * - * + * Update the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsPatchRequest $channel_connection_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1102,9 +1102,9 @@ function ($response) { /** * Operation updateAsyncWithHttpInfo * - * + * Update the channel connection settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsPatchRequest $channel_connection_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1155,7 +1155,7 @@ function ($exception) { /** * Create request for operation 'update' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which the channel connection settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\ChannelConnectionSettingsPatchRequest $channel_connection_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * diff --git a/codegen/Crm/Extensions/Calling/Api/RecordingSettingsApi.php b/codegen/Crm/Extensions/Calling/Api/RecordingSettingsApi.php index 25db10a7..f71ae459 100644 --- a/codegen/Crm/Extensions/Calling/Api/RecordingSettingsApi.php +++ b/codegen/Crm/Extensions/Calling/Api/RecordingSettingsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -137,9 +137,9 @@ public function getConfig() /** * Operation create * - * + * Create recording settings for an app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request recording_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -156,9 +156,9 @@ public function create($app_id, $recording_settings_request, string $contentType /** * Operation createWithHttpInfo * - * + * Create recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -256,9 +256,9 @@ public function createWithHttpInfo($app_id, $recording_settings_request, string /** * Operation createAsync * - * + * Create recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -278,9 +278,9 @@ function ($response) { /** * Operation createAsyncWithHttpInfo * - * + * Create recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -331,7 +331,7 @@ function ($exception) { /** * Create request for operation 'create' * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -443,9 +443,9 @@ public function createRequest($app_id, $recording_settings_request, string $cont /** * Operation get * - * + * Retrieve recording settings for an app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -461,9 +461,9 @@ public function get($app_id, string $contentType = self::contentTypes['get'][0]) /** * Operation getWithHttpInfo * - * + * Retrieve recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -560,9 +560,9 @@ public function getWithHttpInfo($app_id, string $contentType = self::contentType /** * Operation getAsync * - * + * Retrieve recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -581,9 +581,9 @@ function ($response) { /** * Operation getAsyncWithHttpInfo * - * + * Retrieve recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -633,7 +633,7 @@ function ($exception) { /** * Create request for operation 'get' * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -730,7 +730,7 @@ public function getRequest($app_id, string $contentType = self::contentTypes['ge /** * Operation markAsReady * - * + * Mark a call recording as ready for retrieval. * * @param \HubSpot\Client\Crm\Extensions\Calling\Model\MarkRecordingAsReadyRequest $mark_recording_as_ready_request mark_recording_as_ready_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['markAsReady'] to see the possible values for this operation @@ -747,7 +747,7 @@ public function markAsReady($mark_recording_as_ready_request, string $contentTyp /** * Operation markAsReadyWithHttpInfo * - * + * Mark a call recording as ready for retrieval. * * @param \HubSpot\Client\Crm\Extensions\Calling\Model\MarkRecordingAsReadyRequest $mark_recording_as_ready_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['markAsReady'] to see the possible values for this operation @@ -804,7 +804,7 @@ public function markAsReadyWithHttpInfo($mark_recording_as_ready_request, string /** * Operation markAsReadyAsync * - * + * Mark a call recording as ready for retrieval. * * @param \HubSpot\Client\Crm\Extensions\Calling\Model\MarkRecordingAsReadyRequest $mark_recording_as_ready_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['markAsReady'] to see the possible values for this operation @@ -825,7 +825,7 @@ function ($response) { /** * Operation markAsReadyAsyncWithHttpInfo * - * + * Mark a call recording as ready for retrieval. * * @param \HubSpot\Client\Crm\Extensions\Calling\Model\MarkRecordingAsReadyRequest $mark_recording_as_ready_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['markAsReady'] to see the possible values for this operation @@ -959,9 +959,9 @@ public function markAsReadyRequest($mark_recording_as_ready_request, string $con /** * Operation update * - * + * Update recording settings for an app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request recording_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -978,9 +978,9 @@ public function update($app_id, $recording_settings_patch_request, string $conte /** * Operation updateWithHttpInfo * - * + * Update recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1078,9 +1078,9 @@ public function updateWithHttpInfo($app_id, $recording_settings_patch_request, s /** * Operation updateAsync * - * + * Update recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1100,9 +1100,9 @@ function ($response) { /** * Operation updateAsyncWithHttpInfo * - * + * Update recording settings for an app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1153,7 +1153,7 @@ function ($exception) { /** * Create request for operation 'update' * - * @param int $app_id (required) + * @param int $app_id The unique identifier for the app. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * diff --git a/codegen/Crm/Extensions/Calling/Api/SettingsApi.php b/codegen/Crm/Extensions/Calling/Api/SettingsApi.php index ec0154e8..43be6801 100644 --- a/codegen/Crm/Extensions/Calling/Api/SettingsApi.php +++ b/codegen/Crm/Extensions/Calling/Api/SettingsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -137,9 +137,9 @@ public function getConfig() /** * Operation create * - * + * Create new calling extension settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app for which calling extension settings are being created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsRequest $settings_request settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -156,9 +156,9 @@ public function create($app_id, $settings_request, string $contentType = self::c /** * Operation createWithHttpInfo * - * + * Create new calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which calling extension settings are being created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsRequest $settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -256,9 +256,9 @@ public function createWithHttpInfo($app_id, $settings_request, string $contentTy /** * Operation createAsync * - * + * Create new calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which calling extension settings are being created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsRequest $settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -278,9 +278,9 @@ function ($response) { /** * Operation createAsyncWithHttpInfo * - * + * Create new calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which calling extension settings are being created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsRequest $settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -331,7 +331,7 @@ function ($exception) { /** * Create request for operation 'create' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app for which calling extension settings are being created. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsRequest $settings_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -443,9 +443,9 @@ public function createRequest($app_id, $settings_request, string $contentType = /** * Operation get * - * + * Retrieve the calling extension settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -461,9 +461,9 @@ public function get($app_id, string $contentType = self::contentTypes['get'][0]) /** * Operation getWithHttpInfo * - * + * Retrieve the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -560,9 +560,9 @@ public function getWithHttpInfo($app_id, string $contentType = self::contentType /** * Operation getAsync * - * + * Retrieve the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -581,9 +581,9 @@ function ($response) { /** * Operation getAsyncWithHttpInfo * - * + * Retrieve the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -633,7 +633,7 @@ function ($exception) { /** * Create request for operation 'get' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -730,9 +730,9 @@ public function getRequest($app_id, string $contentType = self::contentTypes['ge /** * Operation remove * - * + * Delete the calling extension settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -747,9 +747,9 @@ public function remove($app_id, string $contentType = self::contentTypes['remove /** * Operation removeWithHttpInfo * - * + * Delete the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Calling\ApiException on non-2xx response or if the response body is not in the expected format @@ -804,9 +804,9 @@ public function removeWithHttpInfo($app_id, string $contentType = self::contentT /** * Operation removeAsync * - * + * Delete the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -825,9 +825,9 @@ function ($response) { /** * Operation removeAsyncWithHttpInfo * - * + * Delete the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -864,7 +864,7 @@ function ($exception) { /** * Create request for operation 'remove' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['remove'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -961,9 +961,9 @@ public function removeRequest($app_id, string $contentType = self::contentTypes[ /** * Operation update * - * + * Update the calling extension settings for a specific app. * - * @param int $app_id app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsPatchRequest $settings_patch_request settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -980,9 +980,9 @@ public function update($app_id, $settings_patch_request, string $contentType = s /** * Operation updateWithHttpInfo * - * + * Update the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsPatchRequest $settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1080,9 +1080,9 @@ public function updateWithHttpInfo($app_id, $settings_patch_request, string $con /** * Operation updateAsync * - * + * Update the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsPatchRequest $settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1102,9 +1102,9 @@ function ($response) { /** * Operation updateAsyncWithHttpInfo * - * + * Update the calling extension settings for a specific app. * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsPatchRequest $settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1155,7 +1155,7 @@ function ($exception) { /** * Create request for operation 'update' * - * @param int $app_id (required) + * @param int $app_id The unique identifier of the app whose calling extension settings are to be updated. (required) * @param \HubSpot\Client\Crm\Extensions\Calling\Model\SettingsPatchRequest $settings_patch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * diff --git a/codegen/Crm/Extensions/Calling/ApiException.php b/codegen/Crm/Extensions/Calling/ApiException.php index 0af0b636..6e7610b2 100644 --- a/codegen/Crm/Extensions/Calling/ApiException.php +++ b/codegen/Crm/Extensions/Calling/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/Configuration.php b/codegen/Crm/Extensions/Calling/Configuration.php index 19af849a..39fbb182 100644 --- a/codegen/Crm/Extensions/Calling/Configuration.php +++ b/codegen/Crm/Extensions/Calling/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/FormDataProcessor.php b/codegen/Crm/Extensions/Calling/FormDataProcessor.php index ac2a6036..a1f9fefe 100644 --- a/codegen/Crm/Extensions/Calling/FormDataProcessor.php +++ b/codegen/Crm/Extensions/Calling/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/HeaderSelector.php b/codegen/Crm/Extensions/Calling/HeaderSelector.php index e2680217..a6eef809 100644 --- a/codegen/Crm/Extensions/Calling/HeaderSelector.php +++ b/codegen/Crm/Extensions/Calling/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsPatchRequest.php b/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsPatchRequest.php index 0a2740df..3033e1ee 100644 --- a/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsPatchRequest.php +++ b/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsPatchRequest.php @@ -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.19.0 */ /** @@ -309,7 +309,7 @@ public function getIsReady() /** * Sets is_ready * - * @param bool|null $is_ready is_ready + * @param bool|null $is_ready Indicates whether the channel connection settings are ready. * * @return self */ @@ -336,7 +336,7 @@ public function getUrl() /** * Sets url * - * @param string|null $url url + * @param string|null $url The URL for the channel connection settings. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsRequest.php b/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsRequest.php index 5173ce76..3f3debb7 100644 --- a/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsRequest.php +++ b/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsRequest.php @@ -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.19.0 */ /** @@ -315,7 +315,7 @@ public function getIsReady() /** * Sets is_ready * - * @param bool $is_ready is_ready + * @param bool $is_ready Indicates whether the channel connection settings are ready. * * @return self */ @@ -342,7 +342,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string $url The URL associated with the channel connection settings. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsResponse.php b/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsResponse.php index 9c117b72..0c7fb901 100644 --- a/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsResponse.php +++ b/codegen/Crm/Extensions/Calling/Model/ChannelConnectionSettingsResponse.php @@ -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.19.0 */ /** @@ -335,7 +335,7 @@ public function getCreatedAt() /** * Sets created_at * - * @param \DateTime $created_at created_at + * @param \DateTime $created_at The date and time when the channel connection settings were created. * * @return self */ @@ -362,7 +362,7 @@ public function getIsReady() /** * Sets is_ready * - * @param bool $is_ready is_ready + * @param bool $is_ready Indicates whether the channel connection settings are ready for use. * * @return self */ @@ -389,7 +389,7 @@ public function getUpdatedAt() /** * Sets updated_at * - * @param \DateTime $updated_at updated_at + * @param \DateTime $updated_at The date and time when the channel connection settings were last updated. * * @return self */ @@ -416,7 +416,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string $url The URL associated with the channel connection settings. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/Error.php b/codegen/Crm/Extensions/Calling/Model/Error.php index 25dad42b..7ac7c363 100644 --- a/codegen/Crm/Extensions/Calling/Model/Error.php +++ b/codegen/Crm/Extensions/Calling/Model/Error.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/Model/ErrorDetail.php b/codegen/Crm/Extensions/Calling/Model/ErrorDetail.php index 5fe9fb64..d053d771 100644 --- a/codegen/Crm/Extensions/Calling/Model/ErrorDetail.php +++ b/codegen/Crm/Extensions/Calling/Model/ErrorDetail.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/Model/MarkRecordingAsReadyRequest.php b/codegen/Crm/Extensions/Calling/Model/MarkRecordingAsReadyRequest.php index 475096fe..2254f60a 100644 --- a/codegen/Crm/Extensions/Calling/Model/MarkRecordingAsReadyRequest.php +++ b/codegen/Crm/Extensions/Calling/Model/MarkRecordingAsReadyRequest.php @@ -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.19.0 */ /** @@ -305,7 +305,7 @@ public function getEngagementId() /** * Sets engagement_id * - * @param int $engagement_id engagement_id + * @param int $engagement_id The unique identifier for the engagement associated with the call recording. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/ModelInterface.php b/codegen/Crm/Extensions/Calling/Model/ModelInterface.php index 9ce9b4de..ccf6734d 100644 --- a/codegen/Crm/Extensions/Calling/Model/ModelInterface.php +++ b/codegen/Crm/Extensions/Calling/Model/ModelInterface.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/Model/RecordingSettingsPatchRequest.php b/codegen/Crm/Extensions/Calling/Model/RecordingSettingsPatchRequest.php index f5367b32..ab52c0e4 100644 --- a/codegen/Crm/Extensions/Calling/Model/RecordingSettingsPatchRequest.php +++ b/codegen/Crm/Extensions/Calling/Model/RecordingSettingsPatchRequest.php @@ -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.19.0 */ /** @@ -302,7 +302,7 @@ public function getUrlToRetrieveAuthedRecording() /** * Sets url_to_retrieve_authed_recording * - * @param string|null $url_to_retrieve_authed_recording url_to_retrieve_authed_recording + * @param string|null $url_to_retrieve_authed_recording The URL used to access authenticated call recordings. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/RecordingSettingsRequest.php b/codegen/Crm/Extensions/Calling/Model/RecordingSettingsRequest.php index c82de853..f1303414 100644 --- a/codegen/Crm/Extensions/Calling/Model/RecordingSettingsRequest.php +++ b/codegen/Crm/Extensions/Calling/Model/RecordingSettingsRequest.php @@ -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.19.0 */ /** @@ -305,7 +305,7 @@ public function getUrlToRetrieveAuthedRecording() /** * Sets url_to_retrieve_authed_recording * - * @param string $url_to_retrieve_authed_recording url_to_retrieve_authed_recording + * @param string $url_to_retrieve_authed_recording The URL used to access authenticated call recordings. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/RecordingSettingsResponse.php b/codegen/Crm/Extensions/Calling/Model/RecordingSettingsResponse.php index 474ac373..6546ed97 100644 --- a/codegen/Crm/Extensions/Calling/Model/RecordingSettingsResponse.php +++ b/codegen/Crm/Extensions/Calling/Model/RecordingSettingsResponse.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Calling/Model/SettingsPatchRequest.php b/codegen/Crm/Extensions/Calling/Model/SettingsPatchRequest.php index 93d954e4..346e6704 100644 --- a/codegen/Crm/Extensions/Calling/Model/SettingsPatchRequest.php +++ b/codegen/Crm/Extensions/Calling/Model/SettingsPatchRequest.php @@ -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.19.0 */ /** @@ -358,7 +358,7 @@ public function getHeight() /** * Sets height * - * @param int|null $height height + * @param int|null $height The height setting for the calling extension interface. * * @return self */ @@ -385,7 +385,7 @@ public function getIsReady() /** * Sets is_ready * - * @param bool|null $is_ready is_ready + * @param bool|null $is_ready Specifies whether the calling extension is ready for use. * * @return self */ @@ -412,7 +412,7 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name The name of the calling extension. * * @return self */ @@ -439,7 +439,7 @@ public function getSupportsCustomObjects() /** * Sets supports_custom_objects * - * @param bool|null $supports_custom_objects supports_custom_objects + * @param bool|null $supports_custom_objects Indicates if the calling extension supports custom objects. * * @return self */ @@ -466,7 +466,7 @@ public function getSupportsInboundCalling() /** * Sets supports_inbound_calling * - * @param bool|null $supports_inbound_calling supports_inbound_calling + * @param bool|null $supports_inbound_calling Indicates if the calling extension supports inbound calling. * * @return self */ @@ -493,7 +493,7 @@ public function getUrl() /** * Sets url * - * @param string|null $url url + * @param string|null $url The URL associated with the calling extension settings. * * @return self */ @@ -520,7 +520,7 @@ public function getUsesCallingWindow() /** * Sets uses_calling_window * - * @param bool|null $uses_calling_window uses_calling_window + * @param bool|null $uses_calling_window Indicates if the calling extension uses a calling window. * * @return self */ @@ -547,7 +547,7 @@ public function getUsesRemote() /** * Sets uses_remote * - * @param bool|null $uses_remote uses_remote + * @param bool|null $uses_remote Indicates if the calling extension uses a remote connection. * * @return self */ @@ -574,7 +574,7 @@ public function getWidth() /** * Sets width * - * @param int|null $width width + * @param int|null $width The width setting for the calling extension interface. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/SettingsRequest.php b/codegen/Crm/Extensions/Calling/Model/SettingsRequest.php index d5112595..3f6b7092 100644 --- a/codegen/Crm/Extensions/Calling/Model/SettingsRequest.php +++ b/codegen/Crm/Extensions/Calling/Model/SettingsRequest.php @@ -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.19.0 */ /** @@ -385,7 +385,7 @@ public function getHeight() /** * Sets height * - * @param int $height height + * @param int $height Specifies the height of the calling extension interface. * * @return self */ @@ -412,7 +412,7 @@ public function getIsReady() /** * Sets is_ready * - * @param bool $is_ready is_ready + * @param bool $is_ready Indicates if the calling extension is ready for use. * * @return self */ @@ -439,7 +439,7 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name The name of the calling extension. * * @return self */ @@ -466,7 +466,7 @@ public function getSupportsCustomObjects() /** * Sets supports_custom_objects * - * @param bool $supports_custom_objects supports_custom_objects + * @param bool $supports_custom_objects Indicates if the calling extension supports custom objects. * * @return self */ @@ -493,7 +493,7 @@ public function getSupportsInboundCalling() /** * Sets supports_inbound_calling * - * @param bool $supports_inbound_calling supports_inbound_calling + * @param bool $supports_inbound_calling Indicates if the calling extension supports inbound calling. * * @return self */ @@ -520,7 +520,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string $url The URL associated with the calling extension. * * @return self */ @@ -547,7 +547,7 @@ public function getUsesCallingWindow() /** * Sets uses_calling_window * - * @param bool $uses_calling_window uses_calling_window + * @param bool $uses_calling_window Indicates if the calling extension uses a separate calling window. * * @return self */ @@ -574,7 +574,7 @@ public function getUsesRemote() /** * Sets uses_remote * - * @param bool $uses_remote uses_remote + * @param bool $uses_remote Indicates if the calling extension uses remote services. * * @return self */ @@ -601,7 +601,7 @@ public function getWidth() /** * Sets width * - * @param int $width width + * @param int $width Specifies the width of the calling extension interface. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/Model/SettingsResponse.php b/codegen/Crm/Extensions/Calling/Model/SettingsResponse.php index a93d79a5..75e489e6 100644 --- a/codegen/Crm/Extensions/Calling/Model/SettingsResponse.php +++ b/codegen/Crm/Extensions/Calling/Model/SettingsResponse.php @@ -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.19.0 */ /** @@ -405,7 +405,7 @@ public function getCreatedAt() /** * Sets created_at * - * @param \DateTime $created_at created_at + * @param \DateTime $created_at The date and time when the calling extension settings were created. * * @return self */ @@ -432,7 +432,7 @@ public function getHeight() /** * Sets height * - * @param int $height height + * @param int $height The height of the calling extension interface. * * @return self */ @@ -459,7 +459,7 @@ public function getIsReady() /** * Sets is_ready * - * @param bool $is_ready is_ready + * @param bool $is_ready Specifies whether the calling extension settings are ready for use. * * @return self */ @@ -486,7 +486,7 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name The name of the calling extension. * * @return self */ @@ -513,7 +513,7 @@ public function getSupportsCustomObjects() /** * Sets supports_custom_objects * - * @param bool $supports_custom_objects supports_custom_objects + * @param bool $supports_custom_objects Indicates if the calling extension supports custom objects. * * @return self */ @@ -540,7 +540,7 @@ public function getSupportsInboundCalling() /** * Sets supports_inbound_calling * - * @param bool $supports_inbound_calling supports_inbound_calling + * @param bool $supports_inbound_calling Indicates if the calling extension supports inbound calling. * * @return self */ @@ -567,7 +567,7 @@ public function getUpdatedAt() /** * Sets updated_at * - * @param \DateTime $updated_at updated_at + * @param \DateTime $updated_at The date and time when the calling extension settings were last updated. * * @return self */ @@ -594,7 +594,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string $url The URL associated with the calling extension. * * @return self */ @@ -621,7 +621,7 @@ public function getUsesCallingWindow() /** * Sets uses_calling_window * - * @param bool $uses_calling_window uses_calling_window + * @param bool $uses_calling_window Specifies if the calling extension uses a dedicated calling window. * * @return self */ @@ -648,7 +648,7 @@ public function getUsesRemote() /** * Sets uses_remote * - * @param bool $uses_remote uses_remote + * @param bool $uses_remote Indicates if the calling extension uses a remote service. * * @return self */ @@ -675,7 +675,7 @@ public function getWidth() /** * Sets width * - * @param int $width width + * @param int $width The width of the calling extension interface. * * @return self */ diff --git a/codegen/Crm/Extensions/Calling/ObjectSerializer.php b/codegen/Crm/Extensions/Calling/ObjectSerializer.php index 21e8d4f8..8e158a62 100644 --- a/codegen/Crm/Extensions/Calling/ObjectSerializer.php +++ b/codegen/Crm/Extensions/Calling/ObjectSerializer.php @@ -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.19.0 */ /** From 283a8ebf7bd9058a05eb9c5937a0ef84428b03b4 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 30 Jan 2026 15:37:19 +0300 Subject: [PATCH 2/3] Codegen: CRM Extensions Videoconferencing --- .../Videoconferencing/Api/SettingsApi.php | 56 +++++-- .../Videoconferencing/ApiException.php | 2 +- .../Videoconferencing/Configuration.php | 2 +- .../Videoconferencing/FormDataProcessor.php | 2 +- .../Videoconferencing/HeaderSelector.php | 2 +- .../Videoconferencing/Model/Error.php | 144 +++++++++--------- .../Videoconferencing/Model/ErrorDetail.php | 120 +++++++-------- .../Model/ExternalSettings.php | 120 +++++++-------- .../Model/ModelInterface.php | 2 +- .../Videoconferencing/ObjectSerializer.php | 2 +- 10 files changed, 238 insertions(+), 214 deletions(-) diff --git a/codegen/Crm/Extensions/Videoconferencing/Api/SettingsApi.php b/codegen/Crm/Extensions/Videoconferencing/Api/SettingsApi.php index 5aea866b..06efc9e5 100644 --- a/codegen/Crm/Extensions/Videoconferencing/Api/SettingsApi.php +++ b/codegen/Crm/Extensions/Videoconferencing/Api/SettingsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -134,7 +134,9 @@ public function getConfig() /** * Operation archive * - * @param int $app_id app_id (required) + * Delete settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Videoconferencing\ApiException on non-2xx response or if the response body is not in the expected format @@ -149,7 +151,9 @@ public function archive($app_id, string $contentType = self::contentTypes['archi /** * Operation archiveWithHttpInfo * - * @param int $app_id (required) + * Delete settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Videoconferencing\ApiException on non-2xx response or if the response body is not in the expected format @@ -204,7 +208,9 @@ public function archiveWithHttpInfo($app_id, string $contentType = self::content /** * Operation archiveAsync * - * @param int $app_id (required) + * Delete settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -223,7 +229,9 @@ function ($response) { /** * Operation archiveAsyncWithHttpInfo * - * @param int $app_id (required) + * Delete settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -260,7 +268,7 @@ function ($exception) { /** * Create request for operation 'archive' * - * @param int $app_id (required) + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -357,7 +365,9 @@ public function archiveRequest($app_id, string $contentType = self::contentTypes /** * Operation getById * - * @param int $app_id app_id (required) + * Get settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Videoconferencing\ApiException on non-2xx response or if the response body is not in the expected format @@ -373,7 +383,9 @@ public function getById($app_id, string $contentType = self::contentTypes['getBy /** * Operation getByIdWithHttpInfo * - * @param int $app_id (required) + * Get settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Extensions\Videoconferencing\ApiException on non-2xx response or if the response body is not in the expected format @@ -470,7 +482,9 @@ public function getByIdWithHttpInfo($app_id, string $contentType = self::content /** * Operation getByIdAsync * - * @param int $app_id (required) + * Get settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -489,7 +503,9 @@ function ($response) { /** * Operation getByIdAsyncWithHttpInfo * - * @param int $app_id (required) + * Get settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -539,7 +555,7 @@ function ($exception) { /** * Create request for operation 'getById' * - * @param int $app_id (required) + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -636,7 +652,9 @@ public function getByIdRequest($app_id, string $contentType = self::contentTypes /** * Operation replace * - * @param int $app_id app_id (required) + * Create or update settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ExternalSettings $external_settings external_settings (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -653,7 +671,9 @@ public function replace($app_id, $external_settings, string $contentType = self: /** * Operation replaceWithHttpInfo * - * @param int $app_id (required) + * Create or update settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ExternalSettings $external_settings (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -751,7 +771,9 @@ public function replaceWithHttpInfo($app_id, $external_settings, string $content /** * Operation replaceAsync * - * @param int $app_id (required) + * Create or update settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ExternalSettings $external_settings (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -771,7 +793,9 @@ function ($response) { /** * Operation replaceAsyncWithHttpInfo * - * @param int $app_id (required) + * Create or update settings + * + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ExternalSettings $external_settings (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -822,7 +846,7 @@ function ($exception) { /** * Create request for operation 'replace' * - * @param int $app_id (required) + * @param int $app_id the [ID of your app](https://developers.hubspot.com/docs/apps/legacy-apps/public-apps/overview) (required) * @param \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ExternalSettings $external_settings (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * diff --git a/codegen/Crm/Extensions/Videoconferencing/ApiException.php b/codegen/Crm/Extensions/Videoconferencing/ApiException.php index 69e4c85a..1c9dc33b 100644 --- a/codegen/Crm/Extensions/Videoconferencing/ApiException.php +++ b/codegen/Crm/Extensions/Videoconferencing/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Videoconferencing/Configuration.php b/codegen/Crm/Extensions/Videoconferencing/Configuration.php index 7f94a417..3df1bf3a 100644 --- a/codegen/Crm/Extensions/Videoconferencing/Configuration.php +++ b/codegen/Crm/Extensions/Videoconferencing/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Videoconferencing/FormDataProcessor.php b/codegen/Crm/Extensions/Videoconferencing/FormDataProcessor.php index 97d73455..ebc937b7 100644 --- a/codegen/Crm/Extensions/Videoconferencing/FormDataProcessor.php +++ b/codegen/Crm/Extensions/Videoconferencing/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Videoconferencing/HeaderSelector.php b/codegen/Crm/Extensions/Videoconferencing/HeaderSelector.php index bd98a16e..0cf1fb6b 100644 --- a/codegen/Crm/Extensions/Videoconferencing/HeaderSelector.php +++ b/codegen/Crm/Extensions/Videoconferencing/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Videoconferencing/Model/Error.php b/codegen/Crm/Extensions/Videoconferencing/Model/Error.php index 754a1265..d7b1f07f 100644 --- a/codegen/Crm/Extensions/Videoconferencing/Model/Error.php +++ b/codegen/Crm/Extensions/Videoconferencing/Model/Error.php @@ -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.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Crm\Extensions\Videoconferencing\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Crm/Extensions/Videoconferencing/Model/ErrorDetail.php b/codegen/Crm/Extensions/Videoconferencing/Model/ErrorDetail.php index 24f9123c..a7a10d94 100644 --- a/codegen/Crm/Extensions/Videoconferencing/Model/ErrorDetail.php +++ b/codegen/Crm/Extensions/Videoconferencing/Model/ErrorDetail.php @@ -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.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Crm/Extensions/Videoconferencing/Model/ExternalSettings.php b/codegen/Crm/Extensions/Videoconferencing/Model/ExternalSettings.php index 60a30ca6..a43b3d63 100644 --- a/codegen/Crm/Extensions/Videoconferencing/Model/ExternalSettings.php +++ b/codegen/Crm/Extensions/Videoconferencing/Model/ExternalSettings.php @@ -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.19.0 */ /** @@ -58,11 +58,11 @@ class ExternalSettings implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'user_verify_url' => 'string', - 'fetch_accounts_uri' => 'string', 'create_meeting_url' => 'string', + 'delete_meeting_url' => 'string', + 'fetch_accounts_uri' => 'string', 'update_meeting_url' => 'string', - 'delete_meeting_url' => 'string' + 'user_verify_url' => 'string' ]; /** @@ -73,11 +73,11 @@ class ExternalSettings implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'user_verify_url' => null, - 'fetch_accounts_uri' => null, 'create_meeting_url' => null, + 'delete_meeting_url' => null, + 'fetch_accounts_uri' => null, 'update_meeting_url' => null, - 'delete_meeting_url' => null + 'user_verify_url' => null ]; /** @@ -86,11 +86,11 @@ class ExternalSettings implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'user_verify_url' => false, - 'fetch_accounts_uri' => false, 'create_meeting_url' => false, + 'delete_meeting_url' => false, + 'fetch_accounts_uri' => false, 'update_meeting_url' => false, - 'delete_meeting_url' => false + 'user_verify_url' => false ]; /** @@ -179,11 +179,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'user_verify_url' => 'userVerifyUrl', - 'fetch_accounts_uri' => 'fetchAccountsUri', 'create_meeting_url' => 'createMeetingUrl', + 'delete_meeting_url' => 'deleteMeetingUrl', + 'fetch_accounts_uri' => 'fetchAccountsUri', 'update_meeting_url' => 'updateMeetingUrl', - 'delete_meeting_url' => 'deleteMeetingUrl' + 'user_verify_url' => 'userVerifyUrl' ]; /** @@ -192,11 +192,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'user_verify_url' => 'setUserVerifyUrl', - 'fetch_accounts_uri' => 'setFetchAccountsUri', 'create_meeting_url' => 'setCreateMeetingUrl', + 'delete_meeting_url' => 'setDeleteMeetingUrl', + 'fetch_accounts_uri' => 'setFetchAccountsUri', 'update_meeting_url' => 'setUpdateMeetingUrl', - 'delete_meeting_url' => 'setDeleteMeetingUrl' + 'user_verify_url' => 'setUserVerifyUrl' ]; /** @@ -205,11 +205,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'user_verify_url' => 'getUserVerifyUrl', - 'fetch_accounts_uri' => 'getFetchAccountsUri', 'create_meeting_url' => 'getCreateMeetingUrl', + 'delete_meeting_url' => 'getDeleteMeetingUrl', + 'fetch_accounts_uri' => 'getFetchAccountsUri', 'update_meeting_url' => 'getUpdateMeetingUrl', - 'delete_meeting_url' => 'getDeleteMeetingUrl' + 'user_verify_url' => 'getUserVerifyUrl' ]; /** @@ -269,11 +269,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('user_verify_url', $data ?? [], null); - $this->setIfExists('fetch_accounts_uri', $data ?? [], null); $this->setIfExists('create_meeting_url', $data ?? [], null); - $this->setIfExists('update_meeting_url', $data ?? [], null); $this->setIfExists('delete_meeting_url', $data ?? [], null); + $this->setIfExists('fetch_accounts_uri', $data ?? [], null); + $this->setIfExists('update_meeting_url', $data ?? [], null); + $this->setIfExists('user_verify_url', $data ?? [], null); } /** @@ -322,82 +322,82 @@ public function valid() /** - * Gets user_verify_url + * Gets create_meeting_url * - * @return string|null + * @return string */ - public function getUserVerifyUrl() + public function getCreateMeetingUrl() { - return $this->container['user_verify_url']; + return $this->container['create_meeting_url']; } /** - * Sets user_verify_url + * Sets create_meeting_url * - * @param string|null $user_verify_url The URL that HubSpot will use to verify that a user exists in the video conference application. + * @param string $create_meeting_url The URL that HubSpot will send requests to create a new video conference. * * @return self */ - public function setUserVerifyUrl($user_verify_url) + public function setCreateMeetingUrl($create_meeting_url) { - if (is_null($user_verify_url)) { - throw new \InvalidArgumentException('non-nullable user_verify_url cannot be null'); + if (is_null($create_meeting_url)) { + throw new \InvalidArgumentException('non-nullable create_meeting_url cannot be null'); } - $this->container['user_verify_url'] = $user_verify_url; + $this->container['create_meeting_url'] = $create_meeting_url; return $this; } /** - * Gets fetch_accounts_uri + * Gets delete_meeting_url * * @return string|null */ - public function getFetchAccountsUri() + public function getDeleteMeetingUrl() { - return $this->container['fetch_accounts_uri']; + return $this->container['delete_meeting_url']; } /** - * Sets fetch_accounts_uri + * Sets delete_meeting_url * - * @param string|null $fetch_accounts_uri fetch_accounts_uri + * @param string|null $delete_meeting_url The URL that HubSpot will send notifications of meetings that have been deleted in HubSpot. * * @return self */ - public function setFetchAccountsUri($fetch_accounts_uri) + public function setDeleteMeetingUrl($delete_meeting_url) { - if (is_null($fetch_accounts_uri)) { - throw new \InvalidArgumentException('non-nullable fetch_accounts_uri cannot be null'); + if (is_null($delete_meeting_url)) { + throw new \InvalidArgumentException('non-nullable delete_meeting_url cannot be null'); } - $this->container['fetch_accounts_uri'] = $fetch_accounts_uri; + $this->container['delete_meeting_url'] = $delete_meeting_url; return $this; } /** - * Gets create_meeting_url + * Gets fetch_accounts_uri * - * @return string + * @return string|null */ - public function getCreateMeetingUrl() + public function getFetchAccountsUri() { - return $this->container['create_meeting_url']; + return $this->container['fetch_accounts_uri']; } /** - * Sets create_meeting_url + * Sets fetch_accounts_uri * - * @param string $create_meeting_url The URL that HubSpot will send requests to create a new video conference. + * @param string|null $fetch_accounts_uri fetch_accounts_uri * * @return self */ - public function setCreateMeetingUrl($create_meeting_url) + public function setFetchAccountsUri($fetch_accounts_uri) { - if (is_null($create_meeting_url)) { - throw new \InvalidArgumentException('non-nullable create_meeting_url cannot be null'); + if (is_null($fetch_accounts_uri)) { + throw new \InvalidArgumentException('non-nullable fetch_accounts_uri cannot be null'); } - $this->container['create_meeting_url'] = $create_meeting_url; + $this->container['fetch_accounts_uri'] = $fetch_accounts_uri; return $this; } @@ -430,28 +430,28 @@ public function setUpdateMeetingUrl($update_meeting_url) } /** - * Gets delete_meeting_url + * Gets user_verify_url * * @return string|null */ - public function getDeleteMeetingUrl() + public function getUserVerifyUrl() { - return $this->container['delete_meeting_url']; + return $this->container['user_verify_url']; } /** - * Sets delete_meeting_url + * Sets user_verify_url * - * @param string|null $delete_meeting_url The URL that HubSpot will send notifications of meetings that have been deleted in HubSpot. + * @param string|null $user_verify_url The URL that HubSpot will use to verify that a user exists in the video conference application. * * @return self */ - public function setDeleteMeetingUrl($delete_meeting_url) + public function setUserVerifyUrl($user_verify_url) { - if (is_null($delete_meeting_url)) { - throw new \InvalidArgumentException('non-nullable delete_meeting_url cannot be null'); + if (is_null($user_verify_url)) { + throw new \InvalidArgumentException('non-nullable user_verify_url cannot be null'); } - $this->container['delete_meeting_url'] = $delete_meeting_url; + $this->container['user_verify_url'] = $user_verify_url; return $this; } diff --git a/codegen/Crm/Extensions/Videoconferencing/Model/ModelInterface.php b/codegen/Crm/Extensions/Videoconferencing/Model/ModelInterface.php index 008e6974..257a95b7 100644 --- a/codegen/Crm/Extensions/Videoconferencing/Model/ModelInterface.php +++ b/codegen/Crm/Extensions/Videoconferencing/Model/ModelInterface.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php b/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php index c9d87259..dc528251 100644 --- a/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php +++ b/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php @@ -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.19.0 */ /** From 68646ba5bacf29c0c6f6990288c861c3aebb7e0d Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 30 Jan 2026 15:57:03 +0300 Subject: [PATCH 3/3] Codegen: CRM Extensions Cards --- codegen/Crm/Extensions/Cards/Api/CardsApi.php | 2 +- .../Cards/Api/SampleResponseApi.php | 2 +- codegen/Crm/Extensions/Cards/ApiException.php | 2 +- .../Crm/Extensions/Cards/Configuration.php | 2 +- .../Extensions/Cards/FormDataProcessor.php | 2 +- .../Crm/Extensions/Cards/HeaderSelector.php | 2 +- .../Cards/Model/ActionConfirmationBody.php | 60 +- .../Cards/Model/ActionHookActionBody.php | 190 ++--- .../Extensions/Cards/Model/CardActions.php | 2 +- .../Cards/Model/CardAuditResponse.php | 120 +-- .../Cards/Model/CardCreateRequest.php | 112 +-- .../Cards/Model/CardDisplayBody.php | 2 +- .../Cards/Model/CardDisplayProperty.php | 92 +-- .../Extensions/Cards/Model/CardFetchBody.php | 72 +- .../Cards/Model/CardFetchBodyPatch.php | 72 +- .../Cards/Model/CardObjectTypeBody.php | 10 +- .../Cards/Model/CardPatchRequest.php | 102 +-- .../Extensions/Cards/Model/DisplayOption.php | 66 +- codegen/Crm/Extensions/Cards/Model/Error.php | 144 ++-- .../Extensions/Cards/Model/ErrorDetail.php | 120 +-- .../Cards/Model/IFrameActionBody.php | 136 ++-- .../Model/IntegratorCardPayloadResponse.php | 156 ++-- .../Cards/Model/IntegratorObjectResult.php | 134 ++-- .../IntegratorObjectResultActionsInner.php | 262 +++--- .../Extensions/Cards/Model/ModelInterface.php | 2 +- .../Extensions/Cards/Model/ObjectToken.php | 60 +- .../Cards/Model/PublicCardFetchBody.php | 6 +- .../Cards/Model/PublicCardListResponse.php | 4 +- .../Cards/Model/PublicCardResponse.php | 202 ++--- .../Cards/Model/TopLevelActions.php | 84 +- .../Cards/Model/TopLevelActionsPrimary.php | 751 ++++++++++++++++++ .../Crm/Extensions/Cards/ObjectSerializer.php | 2 +- 32 files changed, 1863 insertions(+), 1112 deletions(-) create mode 100644 codegen/Crm/Extensions/Cards/Model/TopLevelActionsPrimary.php diff --git a/codegen/Crm/Extensions/Cards/Api/CardsApi.php b/codegen/Crm/Extensions/Cards/Api/CardsApi.php index 87045254..927fd50d 100644 --- a/codegen/Crm/Extensions/Cards/Api/CardsApi.php +++ b/codegen/Crm/Extensions/Cards/Api/CardsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/Api/SampleResponseApi.php b/codegen/Crm/Extensions/Cards/Api/SampleResponseApi.php index dfc25088..e16513f5 100644 --- a/codegen/Crm/Extensions/Cards/Api/SampleResponseApi.php +++ b/codegen/Crm/Extensions/Cards/Api/SampleResponseApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/ApiException.php b/codegen/Crm/Extensions/Cards/ApiException.php index 9f15087a..5215644d 100644 --- a/codegen/Crm/Extensions/Cards/ApiException.php +++ b/codegen/Crm/Extensions/Cards/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/Configuration.php b/codegen/Crm/Extensions/Cards/Configuration.php index 382451dc..0d06d72b 100644 --- a/codegen/Crm/Extensions/Cards/Configuration.php +++ b/codegen/Crm/Extensions/Cards/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/FormDataProcessor.php b/codegen/Crm/Extensions/Cards/FormDataProcessor.php index cbd2426e..1fd4b972 100644 --- a/codegen/Crm/Extensions/Cards/FormDataProcessor.php +++ b/codegen/Crm/Extensions/Cards/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/HeaderSelector.php b/codegen/Crm/Extensions/Cards/HeaderSelector.php index e221c3d7..aa661547 100644 --- a/codegen/Crm/Extensions/Cards/HeaderSelector.php +++ b/codegen/Crm/Extensions/Cards/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/Model/ActionConfirmationBody.php b/codegen/Crm/Extensions/Cards/Model/ActionConfirmationBody.php index 6099bc47..ccee8058 100644 --- a/codegen/Crm/Extensions/Cards/Model/ActionConfirmationBody.php +++ b/codegen/Crm/Extensions/Cards/Model/ActionConfirmationBody.php @@ -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.19.0 */ /** @@ -57,8 +57,8 @@ class ActionConfirmationBody implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'confirm_button_label' => 'string', 'cancel_button_label' => 'string', + 'confirm_button_label' => 'string', 'prompt' => 'string' ]; @@ -70,8 +70,8 @@ class ActionConfirmationBody implements ModelInterface, ArrayAccess, \JsonSerial * @psalm-var array */ protected static $openAPIFormats = [ - 'confirm_button_label' => null, 'cancel_button_label' => null, + 'confirm_button_label' => null, 'prompt' => null ]; @@ -81,8 +81,8 @@ class ActionConfirmationBody implements ModelInterface, ArrayAccess, \JsonSerial * @var boolean[] */ protected static array $openAPINullables = [ - 'confirm_button_label' => false, 'cancel_button_label' => false, + 'confirm_button_label' => false, 'prompt' => false ]; @@ -172,8 +172,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'confirm_button_label' => 'confirmButtonLabel', 'cancel_button_label' => 'cancelButtonLabel', + 'confirm_button_label' => 'confirmButtonLabel', 'prompt' => 'prompt' ]; @@ -183,8 +183,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'confirm_button_label' => 'setConfirmButtonLabel', 'cancel_button_label' => 'setCancelButtonLabel', + 'confirm_button_label' => 'setConfirmButtonLabel', 'prompt' => 'setPrompt' ]; @@ -194,8 +194,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'confirm_button_label' => 'getConfirmButtonLabel', 'cancel_button_label' => 'getCancelButtonLabel', + 'confirm_button_label' => 'getConfirmButtonLabel', 'prompt' => 'getPrompt' ]; @@ -256,8 +256,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('confirm_button_label', $data ?? [], null); $this->setIfExists('cancel_button_label', $data ?? [], null); + $this->setIfExists('confirm_button_label', $data ?? [], null); $this->setIfExists('prompt', $data ?? [], null); } @@ -288,12 +288,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['confirm_button_label'] === null) { - $invalidProperties[] = "'confirm_button_label' can't be null"; - } if ($this->container['cancel_button_label'] === null) { $invalidProperties[] = "'cancel_button_label' can't be null"; } + if ($this->container['confirm_button_label'] === null) { + $invalidProperties[] = "'confirm_button_label' can't be null"; + } if ($this->container['prompt'] === null) { $invalidProperties[] = "'prompt' can't be null"; } @@ -313,55 +313,55 @@ public function valid() /** - * Gets confirm_button_label + * Gets cancel_button_label * * @return string */ - public function getConfirmButtonLabel() + public function getCancelButtonLabel() { - return $this->container['confirm_button_label']; + return $this->container['cancel_button_label']; } /** - * Sets confirm_button_label + * Sets cancel_button_label * - * @param string $confirm_button_label confirm_button_label + * @param string $cancel_button_label The label for the button that cancels the action. * * @return self */ - public function setConfirmButtonLabel($confirm_button_label) + public function setCancelButtonLabel($cancel_button_label) { - if (is_null($confirm_button_label)) { - throw new \InvalidArgumentException('non-nullable confirm_button_label cannot be null'); + if (is_null($cancel_button_label)) { + throw new \InvalidArgumentException('non-nullable cancel_button_label cannot be null'); } - $this->container['confirm_button_label'] = $confirm_button_label; + $this->container['cancel_button_label'] = $cancel_button_label; return $this; } /** - * Gets cancel_button_label + * Gets confirm_button_label * * @return string */ - public function getCancelButtonLabel() + public function getConfirmButtonLabel() { - return $this->container['cancel_button_label']; + return $this->container['confirm_button_label']; } /** - * Sets cancel_button_label + * Sets confirm_button_label * - * @param string $cancel_button_label cancel_button_label + * @param string $confirm_button_label The label for the button that confirms the action. * * @return self */ - public function setCancelButtonLabel($cancel_button_label) + public function setConfirmButtonLabel($confirm_button_label) { - if (is_null($cancel_button_label)) { - throw new \InvalidArgumentException('non-nullable cancel_button_label cannot be null'); + if (is_null($confirm_button_label)) { + throw new \InvalidArgumentException('non-nullable confirm_button_label cannot be null'); } - $this->container['cancel_button_label'] = $cancel_button_label; + $this->container['confirm_button_label'] = $confirm_button_label; return $this; } @@ -379,7 +379,7 @@ public function getPrompt() /** * Sets prompt * - * @param string $prompt prompt + * @param string $prompt The message displayed to the user to confirm the action. * * @return self */ diff --git a/codegen/Crm/Extensions/Cards/Model/ActionHookActionBody.php b/codegen/Crm/Extensions/Cards/Model/ActionHookActionBody.php index 066a0e24..dfee520e 100644 --- a/codegen/Crm/Extensions/Cards/Model/ActionHookActionBody.php +++ b/codegen/Crm/Extensions/Cards/Model/ActionHookActionBody.php @@ -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.19.0 */ /** @@ -57,11 +57,11 @@ class ActionHookActionBody implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'property_names_included' => 'string[]', 'confirmation' => '\HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody', + 'http_method' => 'string', 'label' => 'string', + 'property_names_included' => 'string[]', 'type' => 'string', - 'http_method' => 'string', 'url' => 'string' ]; @@ -73,11 +73,11 @@ class ActionHookActionBody implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'property_names_included' => null, 'confirmation' => null, + 'http_method' => null, 'label' => null, + 'property_names_included' => null, 'type' => null, - 'http_method' => null, 'url' => null ]; @@ -87,11 +87,11 @@ class ActionHookActionBody implements ModelInterface, ArrayAccess, \JsonSerializ * @var boolean[] */ protected static array $openAPINullables = [ - 'property_names_included' => false, 'confirmation' => false, + 'http_method' => false, 'label' => false, + 'property_names_included' => false, 'type' => false, - 'http_method' => false, 'url' => false ]; @@ -181,11 +181,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'property_names_included' => 'propertyNamesIncluded', 'confirmation' => 'confirmation', + 'http_method' => 'httpMethod', 'label' => 'label', + 'property_names_included' => 'propertyNamesIncluded', 'type' => 'type', - 'http_method' => 'httpMethod', 'url' => 'url' ]; @@ -195,11 +195,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'property_names_included' => 'setPropertyNamesIncluded', 'confirmation' => 'setConfirmation', + 'http_method' => 'setHttpMethod', 'label' => 'setLabel', + 'property_names_included' => 'setPropertyNamesIncluded', 'type' => 'setType', - 'http_method' => 'setHttpMethod', 'url' => 'setUrl' ]; @@ -209,11 +209,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'property_names_included' => 'getPropertyNamesIncluded', 'confirmation' => 'getConfirmation', + 'http_method' => 'getHttpMethod', 'label' => 'getLabel', + 'property_names_included' => 'getPropertyNamesIncluded', 'type' => 'getType', - 'http_method' => 'getHttpMethod', 'url' => 'getUrl' ]; @@ -258,7 +258,6 @@ public function getModelName() return self::$openAPIModelName; } - public const TYPE_ACTION_HOOK = 'ACTION_HOOK'; public const HTTP_METHOD_CONNECT = 'CONNECT'; public const HTTP_METHOD_DELETE = 'DELETE'; public const HTTP_METHOD_GET = 'GET'; @@ -268,18 +267,7 @@ public function getModelName() public const HTTP_METHOD_POST = 'POST'; public const HTTP_METHOD_PUT = 'PUT'; public const HTTP_METHOD_TRACE = 'TRACE'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_ACTION_HOOK, - ]; - } + public const TYPE_ACTION_HOOK = 'ACTION_HOOK'; /** * Gets allowable values of the enum @@ -301,6 +289,18 @@ public function getHttpMethodAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_ACTION_HOOK, + ]; + } + /** * Associative array for storing property values * @@ -316,11 +316,11 @@ public function getHttpMethodAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('property_names_included', $data ?? [], null); $this->setIfExists('confirmation', $data ?? [], null); + $this->setIfExists('http_method', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('property_names_included', $data ?? [], null); $this->setIfExists('type', $data ?? [], 'ACTION_HOOK'); - $this->setIfExists('http_method', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); } @@ -351,6 +351,18 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['http_method'] === null) { + $invalidProperties[] = "'http_method' can't be null"; + } + $allowedValues = $this->getHttpMethodAllowableValues(); + if (!is_null($this->container['http_method']) && !in_array($this->container['http_method'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'http_method', must be one of '%s'", + $this->container['http_method'], + implode("', '", $allowedValues) + ); + } + if ($this->container['property_names_included'] === null) { $invalidProperties[] = "'property_names_included' can't be null"; } @@ -366,18 +378,6 @@ public function listInvalidProperties() ); } - if ($this->container['http_method'] === null) { - $invalidProperties[] = "'http_method' can't be null"; - } - $allowedValues = $this->getHttpMethodAllowableValues(); - if (!is_null($this->container['http_method']) && !in_array($this->container['http_method'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'http_method', must be one of '%s'", - $this->container['http_method'], - implode("', '", $allowedValues) - ); - } - if ($this->container['url'] === null) { $invalidProperties[] = "'url' can't be null"; } @@ -397,55 +397,65 @@ public function valid() /** - * Gets property_names_included + * Gets confirmation * - * @return string[] + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null */ - public function getPropertyNamesIncluded() + public function getConfirmation() { - return $this->container['property_names_included']; + return $this->container['confirmation']; } /** - * Sets property_names_included + * Sets confirmation * - * @param string[] $property_names_included property_names_included + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null $confirmation confirmation * * @return self */ - public function setPropertyNamesIncluded($property_names_included) + public function setConfirmation($confirmation) { - if (is_null($property_names_included)) { - throw new \InvalidArgumentException('non-nullable property_names_included cannot be null'); + if (is_null($confirmation)) { + throw new \InvalidArgumentException('non-nullable confirmation cannot be null'); } - $this->container['property_names_included'] = $property_names_included; + $this->container['confirmation'] = $confirmation; return $this; } /** - * Gets confirmation + * Gets http_method * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null + * @return string */ - public function getConfirmation() + public function getHttpMethod() { - return $this->container['confirmation']; + return $this->container['http_method']; } /** - * Sets confirmation + * Sets http_method * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null $confirmation confirmation + * @param string $http_method The HTTP method to be used when making the call, which can be set to GET, POST, PUT, DELETE, or PATCH. If using GET or DELETE * * @return self */ - public function setConfirmation($confirmation) + public function setHttpMethod($http_method) { - if (is_null($confirmation)) { - throw new \InvalidArgumentException('non-nullable confirmation cannot be null'); + if (is_null($http_method)) { + throw new \InvalidArgumentException('non-nullable http_method cannot be null'); } - $this->container['confirmation'] = $confirmation; + $allowedValues = $this->getHttpMethodAllowableValues(); + if (!in_array($http_method, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'http_method', must be one of '%s'", + $http_method, + implode("', '", $allowedValues) + ) + ); + } + $this->container['http_method'] = $http_method; return $this; } @@ -463,7 +473,7 @@ public function getLabel() /** * Sets label * - * @param string|null $label label + * @param string|null $label The label for the button that triggers the action as it will be displayed to users. * * @return self */ @@ -478,75 +488,65 @@ public function setLabel($label) } /** - * Gets type + * Gets property_names_included * - * @return string + * @return string[] */ - public function getType() + public function getPropertyNamesIncluded() { - return $this->container['type']; + return $this->container['property_names_included']; } /** - * Sets type + * Sets property_names_included * - * @param string $type type + * @param string[] $property_names_included A list of property names that will be included on the action. See the documentation for more information * * @return self */ - public function setType($type) + public function setPropertyNamesIncluded($property_names_included) { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); + if (is_null($property_names_included)) { + throw new \InvalidArgumentException('non-nullable property_names_included cannot be null'); } - $this->container['type'] = $type; + $this->container['property_names_included'] = $property_names_included; return $this; } /** - * Gets http_method + * Gets type * * @return string */ - public function getHttpMethod() + public function getType() { - return $this->container['http_method']; + return $this->container['type']; } /** - * Sets http_method + * Sets type * - * @param string $http_method http_method + * @param string $type Specifies the type of action, which is 'ACTION_HOOK' for action hooks. * * @return self */ - public function setHttpMethod($http_method) + public function setType($type) { - if (is_null($http_method)) { - throw new \InvalidArgumentException('non-nullable http_method cannot be null'); + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); } - $allowedValues = $this->getHttpMethodAllowableValues(); - if (!in_array($http_method, $allowedValues, true)) { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( - "Invalid value '%s' for 'http_method', must be one of '%s'", - $http_method, + "Invalid value '%s' for 'type', must be one of '%s'", + $type, implode("', '", $allowedValues) ) ); } - $this->container['http_method'] = $http_method; + $this->container['type'] = $type; return $this; } @@ -564,7 +564,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string $url The URL endpoint that will be called when the action is triggered. * * @return self */ diff --git a/codegen/Crm/Extensions/Cards/Model/CardActions.php b/codegen/Crm/Extensions/Cards/Model/CardActions.php index e2dc27ef..96a9b544 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardActions.php +++ b/codegen/Crm/Extensions/Cards/Model/CardActions.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/Model/CardAuditResponse.php b/codegen/Crm/Extensions/Cards/Model/CardAuditResponse.php index 125dd6b1..db4aefad 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardAuditResponse.php +++ b/codegen/Crm/Extensions/Cards/Model/CardAuditResponse.php @@ -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.19.0 */ /** @@ -58,11 +58,11 @@ class CardAuditResponse implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPITypes = [ 'action_type' => 'string', - 'object_type_id' => 'int', + 'application_id' => 'int', 'auth_source' => 'string', 'changed_at' => 'int', - 'application_id' => 'int', - 'initiating_user_id' => 'int' + 'initiating_user_id' => 'int', + 'object_type_id' => 'int' ]; /** @@ -74,11 +74,11 @@ class CardAuditResponse implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPIFormats = [ 'action_type' => null, - 'object_type_id' => 'int32', + 'application_id' => 'int32', 'auth_source' => null, 'changed_at' => 'int64', - 'application_id' => 'int32', - 'initiating_user_id' => 'int32' + 'initiating_user_id' => 'int32', + 'object_type_id' => 'int32' ]; /** @@ -88,11 +88,11 @@ class CardAuditResponse implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static array $openAPINullables = [ 'action_type' => false, - 'object_type_id' => false, + 'application_id' => false, 'auth_source' => false, 'changed_at' => false, - 'application_id' => false, - 'initiating_user_id' => false + 'initiating_user_id' => false, + 'object_type_id' => false ]; /** @@ -182,11 +182,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'action_type' => 'actionType', - 'object_type_id' => 'objectTypeId', + 'application_id' => 'applicationId', 'auth_source' => 'authSource', 'changed_at' => 'changedAt', - 'application_id' => 'applicationId', - 'initiating_user_id' => 'initiatingUserId' + 'initiating_user_id' => 'initiatingUserId', + 'object_type_id' => 'objectTypeId' ]; /** @@ -196,11 +196,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'action_type' => 'setActionType', - 'object_type_id' => 'setObjectTypeId', + 'application_id' => 'setApplicationId', 'auth_source' => 'setAuthSource', 'changed_at' => 'setChangedAt', - 'application_id' => 'setApplicationId', - 'initiating_user_id' => 'setInitiatingUserId' + 'initiating_user_id' => 'setInitiatingUserId', + 'object_type_id' => 'setObjectTypeId' ]; /** @@ -210,11 +210,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'action_type' => 'getActionType', - 'object_type_id' => 'getObjectTypeId', + 'application_id' => 'getApplicationId', 'auth_source' => 'getAuthSource', 'changed_at' => 'getChangedAt', - 'application_id' => 'getApplicationId', - 'initiating_user_id' => 'getInitiatingUserId' + 'initiating_user_id' => 'getInitiatingUserId', + 'object_type_id' => 'getObjectTypeId' ]; /** @@ -259,11 +259,11 @@ public function getModelName() } public const ACTION_TYPE_CREATE = 'CREATE'; - public const ACTION_TYPE_UPDATE = 'UPDATE'; public const ACTION_TYPE_DELETE = 'DELETE'; - public const AUTH_SOURCE_INTERNAL = 'INTERNAL'; + public const ACTION_TYPE_UPDATE = 'UPDATE'; public const AUTH_SOURCE_APP = 'APP'; public const AUTH_SOURCE_EXTERNAL = 'EXTERNAL'; + public const AUTH_SOURCE_INTERNAL = 'INTERNAL'; /** * Gets allowable values of the enum @@ -274,8 +274,8 @@ public function getActionTypeAllowableValues() { return [ self::ACTION_TYPE_CREATE, - self::ACTION_TYPE_UPDATE, self::ACTION_TYPE_DELETE, + self::ACTION_TYPE_UPDATE, ]; } @@ -287,9 +287,9 @@ public function getActionTypeAllowableValues() public function getAuthSourceAllowableValues() { return [ - self::AUTH_SOURCE_INTERNAL, self::AUTH_SOURCE_APP, self::AUTH_SOURCE_EXTERNAL, + self::AUTH_SOURCE_INTERNAL, ]; } @@ -309,11 +309,11 @@ public function getAuthSourceAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('action_type', $data ?? [], null); - $this->setIfExists('object_type_id', $data ?? [], null); + $this->setIfExists('application_id', $data ?? [], null); $this->setIfExists('auth_source', $data ?? [], null); $this->setIfExists('changed_at', $data ?? [], null); - $this->setIfExists('application_id', $data ?? [], null); $this->setIfExists('initiating_user_id', $data ?? [], null); + $this->setIfExists('object_type_id', $data ?? [], null); } /** @@ -355,8 +355,8 @@ public function listInvalidProperties() ); } - if ($this->container['object_type_id'] === null) { - $invalidProperties[] = "'object_type_id' can't be null"; + if ($this->container['application_id'] === null) { + $invalidProperties[] = "'application_id' can't be null"; } if ($this->container['auth_source'] === null) { $invalidProperties[] = "'auth_source' can't be null"; @@ -373,12 +373,12 @@ public function listInvalidProperties() if ($this->container['changed_at'] === null) { $invalidProperties[] = "'changed_at' can't be null"; } - if ($this->container['application_id'] === null) { - $invalidProperties[] = "'application_id' can't be null"; - } if ($this->container['initiating_user_id'] === null) { $invalidProperties[] = "'initiating_user_id' can't be null"; } + if ($this->container['object_type_id'] === null) { + $invalidProperties[] = "'object_type_id' can't be null"; + } return $invalidProperties; } @@ -407,7 +407,7 @@ public function getActionType() /** * Sets action_type * - * @param string $action_type action_type + * @param string $action_type The type of action performed, with possible values: CREATE, DELETE, UPDATE. * * @return self */ @@ -432,28 +432,28 @@ public function setActionType($action_type) } /** - * Gets object_type_id + * Gets application_id * * @return int */ - public function getObjectTypeId() + public function getApplicationId() { - return $this->container['object_type_id']; + return $this->container['application_id']; } /** - * Sets object_type_id + * Sets application_id * - * @param int $object_type_id object_type_id + * @param int $application_id The ID of the application associated with the card. * * @return self */ - public function setObjectTypeId($object_type_id) + public function setApplicationId($application_id) { - if (is_null($object_type_id)) { - throw new \InvalidArgumentException('non-nullable object_type_id cannot be null'); + if (is_null($application_id)) { + throw new \InvalidArgumentException('non-nullable application_id cannot be null'); } - $this->container['object_type_id'] = $object_type_id; + $this->container['application_id'] = $application_id; return $this; } @@ -471,7 +471,7 @@ public function getAuthSource() /** * Sets auth_source * - * @param string $auth_source auth_source + * @param string $auth_source The source of authentication for the action, with possible values: APP, EXTERNAL, INTERNAL. * * @return self */ @@ -508,7 +508,7 @@ public function getChangedAt() /** * Sets changed_at * - * @param int $changed_at changed_at + * @param int $changed_at The timestamp indicating when the change occurred. * * @return self */ @@ -523,55 +523,55 @@ public function setChangedAt($changed_at) } /** - * Gets application_id + * Gets initiating_user_id * * @return int */ - public function getApplicationId() + public function getInitiatingUserId() { - return $this->container['application_id']; + return $this->container['initiating_user_id']; } /** - * Sets application_id + * Sets initiating_user_id * - * @param int $application_id application_id + * @param int $initiating_user_id The ID of the user who initiated the action. * * @return self */ - public function setApplicationId($application_id) + public function setInitiatingUserId($initiating_user_id) { - if (is_null($application_id)) { - throw new \InvalidArgumentException('non-nullable application_id cannot be null'); + if (is_null($initiating_user_id)) { + throw new \InvalidArgumentException('non-nullable initiating_user_id cannot be null'); } - $this->container['application_id'] = $application_id; + $this->container['initiating_user_id'] = $initiating_user_id; return $this; } /** - * Gets initiating_user_id + * Gets object_type_id * * @return int */ - public function getInitiatingUserId() + public function getObjectTypeId() { - return $this->container['initiating_user_id']; + return $this->container['object_type_id']; } /** - * Sets initiating_user_id + * Sets object_type_id * - * @param int $initiating_user_id initiating_user_id + * @param int $object_type_id The ID of the card. * * @return self */ - public function setInitiatingUserId($initiating_user_id) + public function setObjectTypeId($object_type_id) { - if (is_null($initiating_user_id)) { - throw new \InvalidArgumentException('non-nullable initiating_user_id cannot be null'); + if (is_null($object_type_id)) { + throw new \InvalidArgumentException('non-nullable object_type_id cannot be null'); } - $this->container['initiating_user_id'] = $initiating_user_id; + $this->container['object_type_id'] = $object_type_id; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/CardCreateRequest.php b/codegen/Crm/Extensions/Cards/Model/CardCreateRequest.php index 47b8518c..892900dc 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardCreateRequest.php +++ b/codegen/Crm/Extensions/Cards/Model/CardCreateRequest.php @@ -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.19.0 */ /** @@ -58,10 +58,10 @@ class CardCreateRequest implements ModelInterface, ArrayAccess, \JsonSerializabl * @var string[] */ protected static $openAPITypes = [ - 'fetch' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBody', + 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardActions', 'display' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardDisplayBody', - 'title' => 'string', - 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardActions' + 'fetch' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBody', + 'title' => 'string' ]; /** @@ -72,10 +72,10 @@ class CardCreateRequest implements ModelInterface, ArrayAccess, \JsonSerializabl * @psalm-var array */ protected static $openAPIFormats = [ - 'fetch' => null, + 'actions' => null, 'display' => null, - 'title' => null, - 'actions' => null + 'fetch' => null, + 'title' => null ]; /** @@ -84,10 +84,10 @@ class CardCreateRequest implements ModelInterface, ArrayAccess, \JsonSerializabl * @var boolean[] */ protected static array $openAPINullables = [ - 'fetch' => false, + 'actions' => false, 'display' => false, - 'title' => false, - 'actions' => false + 'fetch' => false, + 'title' => false ]; /** @@ -176,10 +176,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'fetch' => 'fetch', + 'actions' => 'actions', 'display' => 'display', - 'title' => 'title', - 'actions' => 'actions' + 'fetch' => 'fetch', + 'title' => 'title' ]; /** @@ -188,10 +188,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'fetch' => 'setFetch', + 'actions' => 'setActions', 'display' => 'setDisplay', - 'title' => 'setTitle', - 'actions' => 'setActions' + 'fetch' => 'setFetch', + 'title' => 'setTitle' ]; /** @@ -200,10 +200,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'fetch' => 'getFetch', + 'actions' => 'getActions', 'display' => 'getDisplay', - 'title' => 'getTitle', - 'actions' => 'getActions' + 'fetch' => 'getFetch', + 'title' => 'getTitle' ]; /** @@ -263,10 +263,10 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('fetch', $data ?? [], null); + $this->setIfExists('actions', $data ?? [], null); $this->setIfExists('display', $data ?? [], null); + $this->setIfExists('fetch', $data ?? [], null); $this->setIfExists('title', $data ?? [], null); - $this->setIfExists('actions', $data ?? [], null); } /** @@ -296,18 +296,18 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['fetch'] === null) { - $invalidProperties[] = "'fetch' can't be null"; + if ($this->container['actions'] === null) { + $invalidProperties[] = "'actions' can't be null"; } if ($this->container['display'] === null) { $invalidProperties[] = "'display' can't be null"; } + if ($this->container['fetch'] === null) { + $invalidProperties[] = "'fetch' can't be null"; + } if ($this->container['title'] === null) { $invalidProperties[] = "'title' can't be null"; } - if ($this->container['actions'] === null) { - $invalidProperties[] = "'actions' can't be null"; - } return $invalidProperties; } @@ -324,28 +324,28 @@ public function valid() /** - * Gets fetch + * Gets actions * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBody + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions */ - public function getFetch() + public function getActions() { - return $this->container['fetch']; + return $this->container['actions']; } /** - * Sets fetch + * Sets actions * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBody $fetch fetch + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions $actions actions * * @return self */ - public function setFetch($fetch) + public function setActions($actions) { - if (is_null($fetch)) { - throw new \InvalidArgumentException('non-nullable fetch cannot be null'); + if (is_null($actions)) { + throw new \InvalidArgumentException('non-nullable actions cannot be null'); } - $this->container['fetch'] = $fetch; + $this->container['actions'] = $actions; return $this; } @@ -378,55 +378,55 @@ public function setDisplay($display) } /** - * Gets title + * Gets fetch * - * @return string + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBody */ - public function getTitle() + public function getFetch() { - return $this->container['title']; + return $this->container['fetch']; } /** - * Sets title + * Sets fetch * - * @param string $title The top-level title for this card. Displayed to users in the CRM UI. + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBody $fetch fetch * * @return self */ - public function setTitle($title) + public function setFetch($fetch) { - if (is_null($title)) { - throw new \InvalidArgumentException('non-nullable title cannot be null'); + if (is_null($fetch)) { + throw new \InvalidArgumentException('non-nullable fetch cannot be null'); } - $this->container['title'] = $title; + $this->container['fetch'] = $fetch; return $this; } /** - * Gets actions + * Gets title * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions + * @return string */ - public function getActions() + public function getTitle() { - return $this->container['actions']; + return $this->container['title']; } /** - * Sets actions + * Sets title * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions $actions actions + * @param string $title The top-level title for this card. Displayed to users in the CRM UI. * * @return self */ - public function setActions($actions) + public function setTitle($title) { - if (is_null($actions)) { - throw new \InvalidArgumentException('non-nullable actions cannot be null'); + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); } - $this->container['actions'] = $actions; + $this->container['title'] = $title; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/CardDisplayBody.php b/codegen/Crm/Extensions/Cards/Model/CardDisplayBody.php index 53909610..48863067 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardDisplayBody.php +++ b/codegen/Crm/Extensions/Cards/Model/CardDisplayBody.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/Model/CardDisplayProperty.php b/codegen/Crm/Extensions/Cards/Model/CardDisplayProperty.php index 3501d82c..285c61d7 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardDisplayProperty.php +++ b/codegen/Crm/Extensions/Cards/Model/CardDisplayProperty.php @@ -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.19.0 */ /** @@ -59,9 +59,9 @@ class CardDisplayProperty implements ModelInterface, ArrayAccess, \JsonSerializa */ protected static $openAPITypes = [ 'data_type' => 'string', + 'label' => 'string', 'name' => 'string', - 'options' => '\HubSpot\Client\Crm\Extensions\Cards\Model\DisplayOption[]', - 'label' => 'string' + 'options' => '\HubSpot\Client\Crm\Extensions\Cards\Model\DisplayOption[]' ]; /** @@ -73,9 +73,9 @@ class CardDisplayProperty implements ModelInterface, ArrayAccess, \JsonSerializa */ protected static $openAPIFormats = [ 'data_type' => null, + 'label' => null, 'name' => null, - 'options' => null, - 'label' => null + 'options' => null ]; /** @@ -85,9 +85,9 @@ class CardDisplayProperty implements ModelInterface, ArrayAccess, \JsonSerializa */ protected static array $openAPINullables = [ 'data_type' => false, + 'label' => false, 'name' => false, - 'options' => false, - 'label' => false + 'options' => false ]; /** @@ -177,9 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'data_type' => 'dataType', + 'label' => 'label', 'name' => 'name', - 'options' => 'options', - 'label' => 'label' + 'options' => 'options' ]; /** @@ -189,9 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'data_type' => 'setDataType', + 'label' => 'setLabel', 'name' => 'setName', - 'options' => 'setOptions', - 'label' => 'setLabel' + 'options' => 'setOptions' ]; /** @@ -201,9 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'data_type' => 'getDataType', + 'label' => 'getLabel', 'name' => 'getName', - 'options' => 'getOptions', - 'label' => 'getLabel' + 'options' => 'getOptions' ]; /** @@ -254,8 +254,8 @@ public function getModelName() public const DATA_TYPE_EMAIL = 'EMAIL'; public const DATA_TYPE_LINK = 'LINK'; public const DATA_TYPE_NUMERIC = 'NUMERIC'; - public const DATA_TYPE_STRING = 'STRING'; public const DATA_TYPE_STATUS = 'STATUS'; + public const DATA_TYPE_STRING = 'STRING'; /** * Gets allowable values of the enum @@ -272,8 +272,8 @@ public function getDataTypeAllowableValues() self::DATA_TYPE_EMAIL, self::DATA_TYPE_LINK, self::DATA_TYPE_NUMERIC, - self::DATA_TYPE_STRING, self::DATA_TYPE_STATUS, + self::DATA_TYPE_STRING, ]; } @@ -293,9 +293,9 @@ public function getDataTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('data_type', $data ?? [], null); + $this->setIfExists('label', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('options', $data ?? [], null); - $this->setIfExists('label', $data ?? [], null); } /** @@ -337,15 +337,15 @@ public function listInvalidProperties() ); } + if ($this->container['label'] === null) { + $invalidProperties[] = "'label' can't be null"; + } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } if ($this->container['options'] === null) { $invalidProperties[] = "'options' can't be null"; } - if ($this->container['label'] === null) { - $invalidProperties[] = "'label' can't be null"; - } return $invalidProperties; } @@ -398,6 +398,33 @@ public function setDataType($data_type) return $this; } + /** + * Gets label + * + * @return string + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param string $label The label for this property as you'd like it displayed to users. + * + * @return self + */ + public function setLabel($label) + { + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); + } + $this->container['label'] = $label; + + return $this; + } + /** * Gets name * @@ -451,33 +478,6 @@ public function setOptions($options) return $this; } - - /** - * Gets label - * - * @return string - */ - public function getLabel() - { - return $this->container['label']; - } - - /** - * Sets label - * - * @param string $label The label for this property as you'd like it displayed to users. - * - * @return self - */ - public function setLabel($label) - { - if (is_null($label)) { - throw new \InvalidArgumentException('non-nullable label cannot be null'); - } - $this->container['label'] = $label; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Crm/Extensions/Cards/Model/CardFetchBody.php b/codegen/Crm/Extensions/Cards/Model/CardFetchBody.php index 05e53e1b..eb120a2f 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardFetchBody.php +++ b/codegen/Crm/Extensions/Cards/Model/CardFetchBody.php @@ -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.19.0 */ /** @@ -58,9 +58,9 @@ class CardFetchBody implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'serverless_function' => 'string', 'card_type' => 'string', 'object_types' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardObjectTypeBody[]', + 'serverless_function' => 'string', 'target_url' => 'string' ]; @@ -72,9 +72,9 @@ class CardFetchBody implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'serverless_function' => null, 'card_type' => null, 'object_types' => null, + 'serverless_function' => null, 'target_url' => null ]; @@ -84,9 +84,9 @@ class CardFetchBody implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'serverless_function' => false, 'card_type' => false, 'object_types' => false, + 'serverless_function' => false, 'target_url' => false ]; @@ -176,9 +176,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'serverless_function' => 'serverlessFunction', 'card_type' => 'cardType', 'object_types' => 'objectTypes', + 'serverless_function' => 'serverlessFunction', 'target_url' => 'targetUrl' ]; @@ -188,9 +188,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'serverless_function' => 'setServerlessFunction', 'card_type' => 'setCardType', 'object_types' => 'setObjectTypes', + 'serverless_function' => 'setServerlessFunction', 'target_url' => 'setTargetUrl' ]; @@ -200,9 +200,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'serverless_function' => 'getServerlessFunction', 'card_type' => 'getCardType', 'object_types' => 'getObjectTypes', + 'serverless_function' => 'getServerlessFunction', 'target_url' => 'getTargetUrl' ]; @@ -278,9 +278,9 @@ public function getCardTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('serverless_function', $data ?? [], null); $this->setIfExists('card_type', $data ?? [], null); $this->setIfExists('object_types', $data ?? [], null); + $this->setIfExists('serverless_function', $data ?? [], null); $this->setIfExists('target_url', $data ?? [], null); } @@ -341,33 +341,6 @@ public function valid() } - /** - * Gets serverless_function - * - * @return string|null - */ - public function getServerlessFunction() - { - return $this->container['serverless_function']; - } - - /** - * Sets serverless_function - * - * @param string|null $serverless_function serverless_function - * - * @return self - */ - public function setServerlessFunction($serverless_function) - { - if (is_null($serverless_function)) { - throw new \InvalidArgumentException('non-nullable serverless_function cannot be null'); - } - $this->container['serverless_function'] = $serverless_function; - - return $this; - } - /** * Gets card_type * @@ -381,7 +354,7 @@ public function getCardType() /** * Sets card_type * - * @param string|null $card_type card_type + * @param string|null $card_type A deprecated field to determine the type of card returned. * * @return self */ @@ -432,6 +405,33 @@ public function setObjectTypes($object_types) return $this; } + /** + * Gets serverless_function + * + * @return string|null + */ + public function getServerlessFunction() + { + return $this->container['serverless_function']; + } + + /** + * Sets serverless_function + * + * @param string|null $serverless_function A deprecated field to specify serverless functionality with the card + * + * @return self + */ + public function setServerlessFunction($serverless_function) + { + if (is_null($serverless_function)) { + throw new \InvalidArgumentException('non-nullable serverless_function cannot be null'); + } + $this->container['serverless_function'] = $serverless_function; + + return $this; + } + /** * Gets target_url * diff --git a/codegen/Crm/Extensions/Cards/Model/CardFetchBodyPatch.php b/codegen/Crm/Extensions/Cards/Model/CardFetchBodyPatch.php index 66ea467b..9022c51b 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardFetchBodyPatch.php +++ b/codegen/Crm/Extensions/Cards/Model/CardFetchBodyPatch.php @@ -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.19.0 */ /** @@ -58,9 +58,9 @@ class CardFetchBodyPatch implements ModelInterface, ArrayAccess, \JsonSerializab * @var string[] */ protected static $openAPITypes = [ - 'serverless_function' => 'string', 'card_type' => 'string', 'object_types' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardObjectTypeBody[]', + 'serverless_function' => 'string', 'target_url' => 'string' ]; @@ -72,9 +72,9 @@ class CardFetchBodyPatch implements ModelInterface, ArrayAccess, \JsonSerializab * @psalm-var array */ protected static $openAPIFormats = [ - 'serverless_function' => null, 'card_type' => null, 'object_types' => null, + 'serverless_function' => null, 'target_url' => null ]; @@ -84,9 +84,9 @@ class CardFetchBodyPatch implements ModelInterface, ArrayAccess, \JsonSerializab * @var boolean[] */ protected static array $openAPINullables = [ - 'serverless_function' => false, 'card_type' => false, 'object_types' => false, + 'serverless_function' => false, 'target_url' => false ]; @@ -176,9 +176,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'serverless_function' => 'serverlessFunction', 'card_type' => 'cardType', 'object_types' => 'objectTypes', + 'serverless_function' => 'serverlessFunction', 'target_url' => 'targetUrl' ]; @@ -188,9 +188,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'serverless_function' => 'setServerlessFunction', 'card_type' => 'setCardType', 'object_types' => 'setObjectTypes', + 'serverless_function' => 'setServerlessFunction', 'target_url' => 'setTargetUrl' ]; @@ -200,9 +200,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'serverless_function' => 'getServerlessFunction', 'card_type' => 'getCardType', 'object_types' => 'getObjectTypes', + 'serverless_function' => 'getServerlessFunction', 'target_url' => 'getTargetUrl' ]; @@ -278,9 +278,9 @@ public function getCardTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('serverless_function', $data ?? [], null); $this->setIfExists('card_type', $data ?? [], null); $this->setIfExists('object_types', $data ?? [], null); + $this->setIfExists('serverless_function', $data ?? [], null); $this->setIfExists('target_url', $data ?? [], null); } @@ -338,33 +338,6 @@ public function valid() } - /** - * Gets serverless_function - * - * @return string|null - */ - public function getServerlessFunction() - { - return $this->container['serverless_function']; - } - - /** - * Sets serverless_function - * - * @param string|null $serverless_function serverless_function - * - * @return self - */ - public function setServerlessFunction($serverless_function) - { - if (is_null($serverless_function)) { - throw new \InvalidArgumentException('non-nullable serverless_function cannot be null'); - } - $this->container['serverless_function'] = $serverless_function; - - return $this; - } - /** * Gets card_type * @@ -378,7 +351,7 @@ public function getCardType() /** * Sets card_type * - * @param string|null $card_type card_type + * @param string|null $card_type A deprecated field to determine the type of card returned. * * @return self */ @@ -429,6 +402,33 @@ public function setObjectTypes($object_types) return $this; } + /** + * Gets serverless_function + * + * @return string|null + */ + public function getServerlessFunction() + { + return $this->container['serverless_function']; + } + + /** + * Sets serverless_function + * + * @param string|null $serverless_function A deprecated field to specify serverless functionality with the card + * + * @return self + */ + public function setServerlessFunction($serverless_function) + { + if (is_null($serverless_function)) { + throw new \InvalidArgumentException('non-nullable serverless_function cannot be null'); + } + $this->container['serverless_function'] = $serverless_function; + + return $this; + } + /** * Gets target_url * diff --git a/codegen/Crm/Extensions/Cards/Model/CardObjectTypeBody.php b/codegen/Crm/Extensions/Cards/Model/CardObjectTypeBody.php index 0cd6a335..0e86ed15 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardObjectTypeBody.php +++ b/codegen/Crm/Extensions/Cards/Model/CardObjectTypeBody.php @@ -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.19.0 */ /** @@ -234,11 +234,11 @@ public function getModelName() return self::$openAPIModelName; } + public const NAME_COMPANIES = 'companies'; public const NAME_CONTACTS = 'contacts'; public const NAME_DEALS = 'deals'; - public const NAME_COMPANIES = 'companies'; - public const NAME_TICKETS = 'tickets'; public const NAME_MARKETING_EVENTS = 'marketing_events'; + public const NAME_TICKETS = 'tickets'; /** * Gets allowable values of the enum @@ -248,11 +248,11 @@ public function getModelName() public function getNameAllowableValues() { return [ + self::NAME_COMPANIES, self::NAME_CONTACTS, self::NAME_DEALS, - self::NAME_COMPANIES, - self::NAME_TICKETS, self::NAME_MARKETING_EVENTS, + self::NAME_TICKETS, ]; } diff --git a/codegen/Crm/Extensions/Cards/Model/CardPatchRequest.php b/codegen/Crm/Extensions/Cards/Model/CardPatchRequest.php index 524ca48d..e3f95fcf 100644 --- a/codegen/Crm/Extensions/Cards/Model/CardPatchRequest.php +++ b/codegen/Crm/Extensions/Cards/Model/CardPatchRequest.php @@ -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.19.0 */ /** @@ -58,10 +58,10 @@ class CardPatchRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'fetch' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBodyPatch', + 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardActions', 'display' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardDisplayBody', - 'title' => 'string', - 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardActions' + 'fetch' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBodyPatch', + 'title' => 'string' ]; /** @@ -72,10 +72,10 @@ class CardPatchRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'fetch' => null, + 'actions' => null, 'display' => null, - 'title' => null, - 'actions' => null + 'fetch' => null, + 'title' => null ]; /** @@ -84,10 +84,10 @@ class CardPatchRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'fetch' => false, + 'actions' => false, 'display' => false, - 'title' => false, - 'actions' => false + 'fetch' => false, + 'title' => false ]; /** @@ -176,10 +176,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'fetch' => 'fetch', + 'actions' => 'actions', 'display' => 'display', - 'title' => 'title', - 'actions' => 'actions' + 'fetch' => 'fetch', + 'title' => 'title' ]; /** @@ -188,10 +188,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'fetch' => 'setFetch', + 'actions' => 'setActions', 'display' => 'setDisplay', - 'title' => 'setTitle', - 'actions' => 'setActions' + 'fetch' => 'setFetch', + 'title' => 'setTitle' ]; /** @@ -200,10 +200,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'fetch' => 'getFetch', + 'actions' => 'getActions', 'display' => 'getDisplay', - 'title' => 'getTitle', - 'actions' => 'getActions' + 'fetch' => 'getFetch', + 'title' => 'getTitle' ]; /** @@ -263,10 +263,10 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('fetch', $data ?? [], null); + $this->setIfExists('actions', $data ?? [], null); $this->setIfExists('display', $data ?? [], null); + $this->setIfExists('fetch', $data ?? [], null); $this->setIfExists('title', $data ?? [], null); - $this->setIfExists('actions', $data ?? [], null); } /** @@ -312,28 +312,28 @@ public function valid() /** - * Gets fetch + * Gets actions * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBodyPatch|null + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions|null */ - public function getFetch() + public function getActions() { - return $this->container['fetch']; + return $this->container['actions']; } /** - * Sets fetch + * Sets actions * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBodyPatch|null $fetch fetch + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions|null $actions actions * * @return self */ - public function setFetch($fetch) + public function setActions($actions) { - if (is_null($fetch)) { - throw new \InvalidArgumentException('non-nullable fetch cannot be null'); + if (is_null($actions)) { + throw new \InvalidArgumentException('non-nullable actions cannot be null'); } - $this->container['fetch'] = $fetch; + $this->container['actions'] = $actions; return $this; } @@ -366,55 +366,55 @@ public function setDisplay($display) } /** - * Gets title + * Gets fetch * - * @return string|null + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBodyPatch|null */ - public function getTitle() + public function getFetch() { - return $this->container['title']; + return $this->container['fetch']; } /** - * Sets title + * Sets fetch * - * @param string|null $title The top-level title for this card. Displayed to users in the CRM UI. + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBodyPatch|null $fetch fetch * * @return self */ - public function setTitle($title) + public function setFetch($fetch) { - if (is_null($title)) { - throw new \InvalidArgumentException('non-nullable title cannot be null'); + if (is_null($fetch)) { + throw new \InvalidArgumentException('non-nullable fetch cannot be null'); } - $this->container['title'] = $title; + $this->container['fetch'] = $fetch; return $this; } /** - * Gets actions + * Gets title * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions|null + * @return string|null */ - public function getActions() + public function getTitle() { - return $this->container['actions']; + return $this->container['title']; } /** - * Sets actions + * Sets title * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions|null $actions actions + * @param string|null $title The top-level title for this card. Displayed to users in the CRM UI. * * @return self */ - public function setActions($actions) + public function setTitle($title) { - if (is_null($actions)) { - throw new \InvalidArgumentException('non-nullable actions cannot be null'); + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); } - $this->container['actions'] = $actions; + $this->container['title'] = $title; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/DisplayOption.php b/codegen/Crm/Extensions/Cards/Model/DisplayOption.php index aa95ddc8..18915b58 100644 --- a/codegen/Crm/Extensions/Cards/Model/DisplayOption.php +++ b/codegen/Crm/Extensions/Cards/Model/DisplayOption.php @@ -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.19.0 */ /** @@ -58,8 +58,8 @@ class DisplayOption implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'name' => 'string', 'label' => 'string', + 'name' => 'string', 'type' => 'string' ]; @@ -71,8 +71,8 @@ class DisplayOption implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'name' => null, 'label' => null, + 'name' => null, 'type' => null ]; @@ -82,8 +82,8 @@ class DisplayOption implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'name' => false, 'label' => false, + 'name' => false, 'type' => false ]; @@ -173,8 +173,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'name' => 'name', 'label' => 'label', + 'name' => 'name', 'type' => 'type' ]; @@ -184,8 +184,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'name' => 'setName', 'label' => 'setLabel', + 'name' => 'setName', 'type' => 'setType' ]; @@ -195,8 +195,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'name' => 'getName', 'label' => 'getLabel', + 'name' => 'getName', 'type' => 'getType' ]; @@ -241,11 +241,11 @@ public function getModelName() return self::$openAPIModelName; } + public const TYPE_DANGER = 'DANGER'; public const TYPE__DEFAULT = 'DEFAULT'; + public const TYPE_INFO = 'INFO'; public const TYPE_SUCCESS = 'SUCCESS'; public const TYPE_WARNING = 'WARNING'; - public const TYPE_DANGER = 'DANGER'; - public const TYPE_INFO = 'INFO'; /** * Gets allowable values of the enum @@ -255,11 +255,11 @@ public function getModelName() public function getTypeAllowableValues() { return [ + self::TYPE_DANGER, self::TYPE__DEFAULT, + self::TYPE_INFO, self::TYPE_SUCCESS, self::TYPE_WARNING, - self::TYPE_DANGER, - self::TYPE_INFO, ]; } @@ -278,8 +278,8 @@ public function getTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('name', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -310,12 +310,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -344,55 +344,55 @@ public function valid() /** - * Gets name + * Gets label * * @return string */ - public function getName() + public function getLabel() { - return $this->container['name']; + return $this->container['label']; } /** - * Sets name + * Sets label * - * @param string $name JSON-friendly unique name for option. + * @param string $label The text that will be displayed to users for this option. * * @return self */ - public function setName($name) + public function setLabel($label) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); } - $this->container['name'] = $name; + $this->container['label'] = $label; return $this; } /** - * Gets label + * Gets name * * @return string */ - public function getLabel() + public function getName() { - return $this->container['label']; + return $this->container['name']; } /** - * Sets label + * Sets name * - * @param string $label The text that will be displayed to users for this option. + * @param string $name JSON-friendly unique name for option. * * @return self */ - public function setLabel($label) + public function setName($name) { - if (is_null($label)) { - throw new \InvalidArgumentException('non-nullable label cannot be null'); + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); } - $this->container['label'] = $label; + $this->container['name'] = $name; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/Error.php b/codegen/Crm/Extensions/Cards/Model/Error.php index 209c8994..a81207ab 100644 --- a/codegen/Crm/Extensions/Cards/Model/Error.php +++ b/codegen/Crm/Extensions/Cards/Model/Error.php @@ -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.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Crm\Extensions\Cards\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Crm\Extensions\Cards\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/ErrorDetail.php b/codegen/Crm/Extensions/Cards/Model/ErrorDetail.php index 4e47e3af..f052aafd 100644 --- a/codegen/Crm/Extensions/Cards/Model/ErrorDetail.php +++ b/codegen/Crm/Extensions/Cards/Model/ErrorDetail.php @@ -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.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/IFrameActionBody.php b/codegen/Crm/Extensions/Cards/Model/IFrameActionBody.php index 90d7d570..ab68415a 100644 --- a/codegen/Crm/Extensions/Cards/Model/IFrameActionBody.php +++ b/codegen/Crm/Extensions/Cards/Model/IFrameActionBody.php @@ -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.19.0 */ /** @@ -57,12 +57,12 @@ class IFrameActionBody implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'property_names_included' => 'string[]', - 'width' => 'int', + 'height' => 'int', 'label' => 'string', + 'property_names_included' => 'string[]', 'type' => 'string', 'url' => 'string', - 'height' => 'int' + 'width' => 'int' ]; /** @@ -73,12 +73,12 @@ class IFrameActionBody implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'property_names_included' => null, - 'width' => 'int32', + 'height' => 'int32', 'label' => null, + 'property_names_included' => null, 'type' => null, 'url' => null, - 'height' => 'int32' + 'width' => 'int32' ]; /** @@ -87,12 +87,12 @@ class IFrameActionBody implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'property_names_included' => false, - 'width' => false, + 'height' => false, 'label' => false, + 'property_names_included' => false, 'type' => false, 'url' => false, - 'height' => false + 'width' => false ]; /** @@ -181,12 +181,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'property_names_included' => 'propertyNamesIncluded', - 'width' => 'width', + 'height' => 'height', 'label' => 'label', + 'property_names_included' => 'propertyNamesIncluded', 'type' => 'type', 'url' => 'url', - 'height' => 'height' + 'width' => 'width' ]; /** @@ -195,12 +195,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'property_names_included' => 'setPropertyNamesIncluded', - 'width' => 'setWidth', + 'height' => 'setHeight', 'label' => 'setLabel', + 'property_names_included' => 'setPropertyNamesIncluded', 'type' => 'setType', 'url' => 'setUrl', - 'height' => 'setHeight' + 'width' => 'setWidth' ]; /** @@ -209,12 +209,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'property_names_included' => 'getPropertyNamesIncluded', - 'width' => 'getWidth', + 'height' => 'getHeight', 'label' => 'getLabel', + 'property_names_included' => 'getPropertyNamesIncluded', 'type' => 'getType', 'url' => 'getUrl', - 'height' => 'getHeight' + 'width' => 'getWidth' ]; /** @@ -287,12 +287,12 @@ public function getTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('property_names_included', $data ?? [], null); - $this->setIfExists('width', $data ?? [], null); + $this->setIfExists('height', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('property_names_included', $data ?? [], null); $this->setIfExists('type', $data ?? [], 'IFRAME'); $this->setIfExists('url', $data ?? [], null); - $this->setIfExists('height', $data ?? [], null); + $this->setIfExists('width', $data ?? [], null); } /** @@ -322,12 +322,12 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['height'] === null) { + $invalidProperties[] = "'height' can't be null"; + } if ($this->container['property_names_included'] === null) { $invalidProperties[] = "'property_names_included' can't be null"; } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -343,8 +343,8 @@ public function listInvalidProperties() if ($this->container['url'] === null) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; + if ($this->container['width'] === null) { + $invalidProperties[] = "'width' can't be null"; } return $invalidProperties; } @@ -362,82 +362,82 @@ public function valid() /** - * Gets property_names_included + * Gets height * - * @return string[] + * @return int */ - public function getPropertyNamesIncluded() + public function getHeight() { - return $this->container['property_names_included']; + return $this->container['height']; } /** - * Sets property_names_included + * Sets height * - * @param string[] $property_names_included property_names_included + * @param int $height The height of the iframe in pixels. * * @return self */ - public function setPropertyNamesIncluded($property_names_included) + public function setHeight($height) { - if (is_null($property_names_included)) { - throw new \InvalidArgumentException('non-nullable property_names_included cannot be null'); + if (is_null($height)) { + throw new \InvalidArgumentException('non-nullable height cannot be null'); } - $this->container['property_names_included'] = $property_names_included; + $this->container['height'] = $height; return $this; } /** - * Gets width + * Gets label * - * @return int + * @return string|null */ - public function getWidth() + public function getLabel() { - return $this->container['width']; + return $this->container['label']; } /** - * Sets width + * Sets label * - * @param int $width width + * @param string|null $label The label for the button that opens the iframen as it will be displayed to users. * * @return self */ - public function setWidth($width) + public function setLabel($label) { - if (is_null($width)) { - throw new \InvalidArgumentException('non-nullable width cannot be null'); + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); } - $this->container['width'] = $width; + $this->container['label'] = $label; return $this; } /** - * Gets label + * Gets property_names_included * - * @return string|null + * @return string[] */ - public function getLabel() + public function getPropertyNamesIncluded() { - return $this->container['label']; + return $this->container['property_names_included']; } /** - * Sets label + * Sets property_names_included * - * @param string|null $label label + * @param string[] $property_names_included A list of property names that will be included on the url of the iframe. * * @return self */ - public function setLabel($label) + public function setPropertyNamesIncluded($property_names_included) { - if (is_null($label)) { - throw new \InvalidArgumentException('non-nullable label cannot be null'); + if (is_null($property_names_included)) { + throw new \InvalidArgumentException('non-nullable property_names_included cannot be null'); } - $this->container['label'] = $label; + $this->container['property_names_included'] = $property_names_included; return $this; } @@ -455,7 +455,7 @@ public function getType() /** * Sets type * - * @param string $type type + * @param string $type Specifies the type of action, which is 'IFRAME' for iframe actions. * * @return self */ @@ -492,7 +492,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string $url The URL endpoint that will be loaded in the iframe when triggered. * * @return self */ @@ -507,28 +507,28 @@ public function setUrl($url) } /** - * Gets height + * Gets width * * @return int */ - public function getHeight() + public function getWidth() { - return $this->container['height']; + return $this->container['width']; } /** - * Sets height + * Sets width * - * @param int $height height + * @param int $width The width of the iframe in pixels. * * @return self */ - public function setHeight($height) + public function setWidth($width) { - if (is_null($height)) { - throw new \InvalidArgumentException('non-nullable height cannot be null'); + if (is_null($width)) { + throw new \InvalidArgumentException('non-nullable width cannot be null'); } - $this->container['height'] = $height; + $this->container['width'] = $width; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/IntegratorCardPayloadResponse.php b/codegen/Crm/Extensions/Cards/Model/IntegratorCardPayloadResponse.php index 510886d3..6b0e460e 100644 --- a/codegen/Crm/Extensions/Cards/Model/IntegratorCardPayloadResponse.php +++ b/codegen/Crm/Extensions/Cards/Model/IntegratorCardPayloadResponse.php @@ -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.19.0 */ /** @@ -58,12 +58,12 @@ class IntegratorCardPayloadResponse implements ModelInterface, ArrayAccess, \Jso * @var string[] */ protected static $openAPITypes = [ - 'response_version' => 'string', - 'card_label' => 'string', 'all_items_link_url' => 'string', - 'total_count' => 'int', + 'card_label' => 'string', + 'response_version' => 'string', + 'sections' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResult[]', 'top_level_actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\TopLevelActions', - 'sections' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResult[]' + 'total_count' => 'int' ]; /** @@ -74,12 +74,12 @@ class IntegratorCardPayloadResponse implements ModelInterface, ArrayAccess, \Jso * @psalm-var array */ protected static $openAPIFormats = [ - 'response_version' => null, - 'card_label' => null, 'all_items_link_url' => null, - 'total_count' => 'int32', + 'card_label' => null, + 'response_version' => null, + 'sections' => null, 'top_level_actions' => null, - 'sections' => null + 'total_count' => 'int32' ]; /** @@ -88,12 +88,12 @@ class IntegratorCardPayloadResponse implements ModelInterface, ArrayAccess, \Jso * @var boolean[] */ protected static array $openAPINullables = [ - 'response_version' => false, - 'card_label' => false, 'all_items_link_url' => false, - 'total_count' => false, + 'card_label' => false, + 'response_version' => false, + 'sections' => false, 'top_level_actions' => false, - 'sections' => false + 'total_count' => false ]; /** @@ -182,12 +182,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'response_version' => 'responseVersion', - 'card_label' => 'cardLabel', 'all_items_link_url' => 'allItemsLinkUrl', - 'total_count' => 'totalCount', + 'card_label' => 'cardLabel', + 'response_version' => 'responseVersion', + 'sections' => 'sections', 'top_level_actions' => 'topLevelActions', - 'sections' => 'sections' + 'total_count' => 'totalCount' ]; /** @@ -196,12 +196,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'response_version' => 'setResponseVersion', - 'card_label' => 'setCardLabel', 'all_items_link_url' => 'setAllItemsLinkUrl', - 'total_count' => 'setTotalCount', + 'card_label' => 'setCardLabel', + 'response_version' => 'setResponseVersion', + 'sections' => 'setSections', 'top_level_actions' => 'setTopLevelActions', - 'sections' => 'setSections' + 'total_count' => 'setTotalCount' ]; /** @@ -210,12 +210,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'response_version' => 'getResponseVersion', - 'card_label' => 'getCardLabel', 'all_items_link_url' => 'getAllItemsLinkUrl', - 'total_count' => 'getTotalCount', + 'card_label' => 'getCardLabel', + 'response_version' => 'getResponseVersion', + 'sections' => 'getSections', 'top_level_actions' => 'getTopLevelActions', - 'sections' => 'getSections' + 'total_count' => 'getTotalCount' ]; /** @@ -290,12 +290,12 @@ public function getResponseVersionAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('response_version', $data ?? [], null); - $this->setIfExists('card_label', $data ?? [], null); $this->setIfExists('all_items_link_url', $data ?? [], null); - $this->setIfExists('total_count', $data ?? [], null); - $this->setIfExists('top_level_actions', $data ?? [], null); + $this->setIfExists('card_label', $data ?? [], null); + $this->setIfExists('response_version', $data ?? [], null); $this->setIfExists('sections', $data ?? [], null); + $this->setIfExists('top_level_actions', $data ?? [], null); + $this->setIfExists('total_count', $data ?? [], null); } /** @@ -353,38 +353,28 @@ public function valid() /** - * Gets response_version + * Gets all_items_link_url * * @return string|null */ - public function getResponseVersion() + public function getAllItemsLinkUrl() { - return $this->container['response_version']; + return $this->container['all_items_link_url']; } /** - * Sets response_version + * Sets all_items_link_url * - * @param string|null $response_version response_version + * @param string|null $all_items_link_url URL to a page the integrator has built that displays all details for the object cards. This URL will be displayed to users on the title of the card. * * @return self */ - public function setResponseVersion($response_version) + public function setAllItemsLinkUrl($all_items_link_url) { - if (is_null($response_version)) { - throw new \InvalidArgumentException('non-nullable response_version cannot be null'); - } - $allowedValues = $this->getResponseVersionAllowableValues(); - if (!in_array($response_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'response_version', must be one of '%s'", - $response_version, - implode("', '", $allowedValues) - ) - ); + if (is_null($all_items_link_url)) { + throw new \InvalidArgumentException('non-nullable all_items_link_url cannot be null'); } - $this->container['response_version'] = $response_version; + $this->container['all_items_link_url'] = $all_items_link_url; return $this; } @@ -402,7 +392,7 @@ public function getCardLabel() /** * Sets card_label * - * @param string|null $card_label The label to be used for the `allItemsLinkUrl` link (e.g. 'See more tickets'). If not provided, this falls back to the card's title. + * @param string|null $card_label The label to be used for the `allItemsLinkUrl` link (e.g. 'See more tickets') and the title of the card. * * @return self */ @@ -417,55 +407,65 @@ public function setCardLabel($card_label) } /** - * Gets all_items_link_url + * Gets response_version * * @return string|null */ - public function getAllItemsLinkUrl() + public function getResponseVersion() { - return $this->container['all_items_link_url']; + return $this->container['response_version']; } /** - * Sets all_items_link_url + * Sets response_version * - * @param string|null $all_items_link_url URL to a page the integrator has built that displays all details for this card. This URL will be displayed to users under a `See more [x]` link if there are more than five items in your response, where `[x]` is the value of `itemLabel`. + * @param string|null $response_version The number version of the response. * * @return self */ - public function setAllItemsLinkUrl($all_items_link_url) + public function setResponseVersion($response_version) { - if (is_null($all_items_link_url)) { - throw new \InvalidArgumentException('non-nullable all_items_link_url cannot be null'); + if (is_null($response_version)) { + throw new \InvalidArgumentException('non-nullable response_version cannot be null'); } - $this->container['all_items_link_url'] = $all_items_link_url; + $allowedValues = $this->getResponseVersionAllowableValues(); + if (!in_array($response_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'response_version', must be one of '%s'", + $response_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['response_version'] = $response_version; return $this; } /** - * Gets total_count + * Gets sections * - * @return int + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResult[]|null */ - public function getTotalCount() + public function getSections() { - return $this->container['total_count']; + return $this->container['sections']; } /** - * Sets total_count + * Sets sections * - * @param int $total_count The total number of card properties that will be sent in this response. + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResult[]|null $sections A list of up to five valid card sub categories. * * @return self */ - public function setTotalCount($total_count) + public function setSections($sections) { - if (is_null($total_count)) { - throw new \InvalidArgumentException('non-nullable total_count cannot be null'); + if (is_null($sections)) { + throw new \InvalidArgumentException('non-nullable sections cannot be null'); } - $this->container['total_count'] = $total_count; + $this->container['sections'] = $sections; return $this; } @@ -498,28 +498,28 @@ public function setTopLevelActions($top_level_actions) } /** - * Gets sections + * Gets total_count * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResult[]|null + * @return int */ - public function getSections() + public function getTotalCount() { - return $this->container['sections']; + return $this->container['total_count']; } /** - * Sets sections + * Sets total_count * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResult[]|null $sections A list of up to five valid card sub categories. + * @param int $total_count The total number of cards that are sent in this response. * * @return self */ - public function setSections($sections) + public function setTotalCount($total_count) { - if (is_null($sections)) { - throw new \InvalidArgumentException('non-nullable sections cannot be null'); + if (is_null($total_count)) { + throw new \InvalidArgumentException('non-nullable total_count cannot be null'); } - $this->container['sections'] = $sections; + $this->container['total_count'] = $total_count; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResult.php b/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResult.php index 6cbc476d..bfc1d7a4 100644 --- a/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResult.php +++ b/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResult.php @@ -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.19.0 */ /** @@ -57,11 +57,11 @@ class IntegratorObjectResult implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'link_url' => 'string', - 'tokens' => '\HubSpot\Client\Crm\Extensions\Cards\Model\ObjectToken[]', + 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[]', 'id' => 'string', + 'link_url' => 'string', 'title' => 'string', - 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[]' + 'tokens' => '\HubSpot\Client\Crm\Extensions\Cards\Model\ObjectToken[]' ]; /** @@ -72,11 +72,11 @@ class IntegratorObjectResult implements ModelInterface, ArrayAccess, \JsonSerial * @psalm-var array */ protected static $openAPIFormats = [ - 'link_url' => null, - 'tokens' => null, + 'actions' => null, 'id' => null, + 'link_url' => null, 'title' => null, - 'actions' => null + 'tokens' => null ]; /** @@ -85,11 +85,11 @@ class IntegratorObjectResult implements ModelInterface, ArrayAccess, \JsonSerial * @var boolean[] */ protected static array $openAPINullables = [ - 'link_url' => false, - 'tokens' => false, + 'actions' => false, 'id' => false, + 'link_url' => false, 'title' => false, - 'actions' => false + 'tokens' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'link_url' => 'linkUrl', - 'tokens' => 'tokens', + 'actions' => 'actions', 'id' => 'id', + 'link_url' => 'linkUrl', 'title' => 'title', - 'actions' => 'actions' + 'tokens' => 'tokens' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'link_url' => 'setLinkUrl', - 'tokens' => 'setTokens', + 'actions' => 'setActions', 'id' => 'setId', + 'link_url' => 'setLinkUrl', 'title' => 'setTitle', - 'actions' => 'setActions' + 'tokens' => 'setTokens' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'link_url' => 'getLinkUrl', - 'tokens' => 'getTokens', + 'actions' => 'getActions', 'id' => 'getId', + 'link_url' => 'getLinkUrl', 'title' => 'getTitle', - 'actions' => 'getActions' + 'tokens' => 'getTokens' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('link_url', $data ?? [], null); - $this->setIfExists('tokens', $data ?? [], null); + $this->setIfExists('actions', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('link_url', $data ?? [], null); $this->setIfExists('title', $data ?? [], null); - $this->setIfExists('actions', $data ?? [], null); + $this->setIfExists('tokens', $data ?? [], null); } /** @@ -302,8 +302,8 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['tokens'] === null) { - $invalidProperties[] = "'tokens' can't be null"; + if ($this->container['actions'] === null) { + $invalidProperties[] = "'actions' can't be null"; } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; @@ -311,8 +311,8 @@ public function listInvalidProperties() if ($this->container['title'] === null) { $invalidProperties[] = "'title' can't be null"; } - if ($this->container['actions'] === null) { - $invalidProperties[] = "'actions' can't be null"; + if ($this->container['tokens'] === null) { + $invalidProperties[] = "'tokens' can't be null"; } return $invalidProperties; } @@ -330,82 +330,82 @@ public function valid() /** - * Gets link_url + * Gets actions * - * @return string|null + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[] */ - public function getLinkUrl() + public function getActions() { - return $this->container['link_url']; + return $this->container['actions']; } /** - * Sets link_url + * Sets actions * - * @param string|null $link_url link_url + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[] $actions A list of actions associated with the card, which can include action hooks, confirmation action hooks, or iframes. * * @return self */ - public function setLinkUrl($link_url) + public function setActions($actions) { - if (is_null($link_url)) { - throw new \InvalidArgumentException('non-nullable link_url cannot be null'); + if (is_null($actions)) { + throw new \InvalidArgumentException('non-nullable actions cannot be null'); } - $this->container['link_url'] = $link_url; + $this->container['actions'] = $actions; return $this; } /** - * Gets tokens + * Gets id * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ObjectToken[] + * @return string */ - public function getTokens() + public function getId() { - return $this->container['tokens']; + return $this->container['id']; } /** - * Sets tokens + * Sets id * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ObjectToken[] $tokens tokens + * @param string $id The unique identifier for the card. * * @return self */ - public function setTokens($tokens) + public function setId($id) { - if (is_null($tokens)) { - throw new \InvalidArgumentException('non-nullable tokens cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['tokens'] = $tokens; + $this->container['id'] = $id; return $this; } /** - * Gets id + * Gets link_url * - * @return string + * @return string|null */ - public function getId() + public function getLinkUrl() { - return $this->container['id']; + return $this->container['link_url']; } /** - * Sets id + * Sets link_url * - * @param string $id id + * @param string|null $link_url A URL used on the title of the card * * @return self */ - public function setId($id) + public function setLinkUrl($link_url) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($link_url)) { + throw new \InvalidArgumentException('non-nullable link_url cannot be null'); } - $this->container['id'] = $id; + $this->container['link_url'] = $link_url; return $this; } @@ -423,7 +423,7 @@ public function getTitle() /** * Sets title * - * @param string $title title + * @param string $title The title of the object card, displayed to users. * * @return self */ @@ -438,28 +438,28 @@ public function setTitle($title) } /** - * Gets actions + * Gets tokens * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[] + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ObjectToken[] */ - public function getActions() + public function getTokens() { - return $this->container['actions']; + return $this->container['tokens']; } /** - * Sets actions + * Sets tokens * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[] $actions actions + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ObjectToken[] $tokens A collection of tokens representing specific properties related to the card. * * @return self */ - public function setActions($actions) + public function setTokens($tokens) { - if (is_null($actions)) { - throw new \InvalidArgumentException('non-nullable actions cannot be null'); + if (is_null($tokens)) { + throw new \InvalidArgumentException('non-nullable tokens cannot be null'); } - $this->container['actions'] = $actions; + $this->container['tokens'] = $tokens; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResultActionsInner.php b/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResultActionsInner.php index 4aa2c805..15c076dc 100644 --- a/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResultActionsInner.php +++ b/codegen/Crm/Extensions/Cards/Model/IntegratorObjectResultActionsInner.php @@ -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.19.0 */ /** @@ -57,14 +57,14 @@ class IntegratorObjectResultActionsInner implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'property_names_included' => 'string[]', 'confirmation' => '\HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody', + 'http_method' => 'string', 'label' => 'string', + 'property_names_included' => 'string[]', 'type' => 'string', - 'http_method' => 'string', 'url' => 'string', - 'width' => 'int', - 'height' => 'int' + 'height' => 'int', + 'width' => 'int' ]; /** @@ -75,14 +75,14 @@ class IntegratorObjectResultActionsInner implements ModelInterface, ArrayAccess, * @psalm-var array */ protected static $openAPIFormats = [ - 'property_names_included' => null, 'confirmation' => null, + 'http_method' => null, 'label' => null, + 'property_names_included' => null, 'type' => null, - 'http_method' => null, 'url' => null, - 'width' => 'int32', - 'height' => 'int32' + 'height' => 'int32', + 'width' => 'int32' ]; /** @@ -91,14 +91,14 @@ class IntegratorObjectResultActionsInner implements ModelInterface, ArrayAccess, * @var boolean[] */ protected static array $openAPINullables = [ - 'property_names_included' => false, 'confirmation' => false, + 'http_method' => false, 'label' => false, + 'property_names_included' => false, 'type' => false, - 'http_method' => false, 'url' => false, - 'width' => false, - 'height' => false + 'height' => false, + 'width' => false ]; /** @@ -187,14 +187,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'property_names_included' => 'propertyNamesIncluded', 'confirmation' => 'confirmation', + 'http_method' => 'httpMethod', 'label' => 'label', + 'property_names_included' => 'propertyNamesIncluded', 'type' => 'type', - 'http_method' => 'httpMethod', 'url' => 'url', - 'width' => 'width', - 'height' => 'height' + 'height' => 'height', + 'width' => 'width' ]; /** @@ -203,14 +203,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'property_names_included' => 'setPropertyNamesIncluded', 'confirmation' => 'setConfirmation', + 'http_method' => 'setHttpMethod', 'label' => 'setLabel', + 'property_names_included' => 'setPropertyNamesIncluded', 'type' => 'setType', - 'http_method' => 'setHttpMethod', 'url' => 'setUrl', - 'width' => 'setWidth', - 'height' => 'setHeight' + 'height' => 'setHeight', + 'width' => 'setWidth' ]; /** @@ -219,14 +219,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'property_names_included' => 'getPropertyNamesIncluded', 'confirmation' => 'getConfirmation', + 'http_method' => 'getHttpMethod', 'label' => 'getLabel', + 'property_names_included' => 'getPropertyNamesIncluded', 'type' => 'getType', - 'http_method' => 'getHttpMethod', 'url' => 'getUrl', - 'width' => 'getWidth', - 'height' => 'getHeight' + 'height' => 'getHeight', + 'width' => 'getWidth' ]; /** @@ -270,8 +270,6 @@ public function getModelName() return self::$openAPIModelName; } - public const TYPE_ACTION_HOOK = 'ACTION_HOOK'; - public const TYPE_IFRAME = 'IFRAME'; public const HTTP_METHOD_CONNECT = 'CONNECT'; public const HTTP_METHOD_DELETE = 'DELETE'; public const HTTP_METHOD_GET = 'GET'; @@ -281,19 +279,8 @@ public function getModelName() public const HTTP_METHOD_POST = 'POST'; public const HTTP_METHOD_PUT = 'PUT'; public const HTTP_METHOD_TRACE = 'TRACE'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_ACTION_HOOK, - self::TYPE_IFRAME, - ]; - } + public const TYPE_ACTION_HOOK = 'ACTION_HOOK'; + public const TYPE_IFRAME = 'IFRAME'; /** * Gets allowable values of the enum @@ -315,6 +302,19 @@ public function getHttpMethodAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_ACTION_HOOK, + self::TYPE_IFRAME, + ]; + } + /** * Associative array for storing property values * @@ -330,14 +330,14 @@ public function getHttpMethodAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('property_names_included', $data ?? [], null); $this->setIfExists('confirmation', $data ?? [], null); + $this->setIfExists('http_method', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('property_names_included', $data ?? [], null); $this->setIfExists('type', $data ?? [], 'ACTION_HOOK'); - $this->setIfExists('http_method', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); - $this->setIfExists('width', $data ?? [], null); $this->setIfExists('height', $data ?? [], null); + $this->setIfExists('width', $data ?? [], null); // Initialize discriminator property with the model name. $this->container['type'] = static::$openAPIModelName; @@ -370,6 +370,18 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['http_method'] === null) { + $invalidProperties[] = "'http_method' can't be null"; + } + $allowedValues = $this->getHttpMethodAllowableValues(); + if (!is_null($this->container['http_method']) && !in_array($this->container['http_method'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'http_method', must be one of '%s'", + $this->container['http_method'], + implode("', '", $allowedValues) + ); + } + if ($this->container['property_names_included'] === null) { $invalidProperties[] = "'property_names_included' can't be null"; } @@ -385,27 +397,15 @@ public function listInvalidProperties() ); } - if ($this->container['http_method'] === null) { - $invalidProperties[] = "'http_method' can't be null"; - } - $allowedValues = $this->getHttpMethodAllowableValues(); - if (!is_null($this->container['http_method']) && !in_array($this->container['http_method'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'http_method', must be one of '%s'", - $this->container['http_method'], - implode("', '", $allowedValues) - ); - } - if ($this->container['url'] === null) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } if ($this->container['height'] === null) { $invalidProperties[] = "'height' can't be null"; } + if ($this->container['width'] === null) { + $invalidProperties[] = "'width' can't be null"; + } return $invalidProperties; } @@ -422,55 +422,65 @@ public function valid() /** - * Gets property_names_included + * Gets confirmation * - * @return string[] + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null */ - public function getPropertyNamesIncluded() + public function getConfirmation() { - return $this->container['property_names_included']; + return $this->container['confirmation']; } /** - * Sets property_names_included + * Sets confirmation * - * @param string[] $property_names_included property_names_included + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null $confirmation confirmation * * @return self */ - public function setPropertyNamesIncluded($property_names_included) + public function setConfirmation($confirmation) { - if (is_null($property_names_included)) { - throw new \InvalidArgumentException('non-nullable property_names_included cannot be null'); + if (is_null($confirmation)) { + throw new \InvalidArgumentException('non-nullable confirmation cannot be null'); } - $this->container['property_names_included'] = $property_names_included; + $this->container['confirmation'] = $confirmation; return $this; } /** - * Gets confirmation + * Gets http_method * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null + * @return string */ - public function getConfirmation() + public function getHttpMethod() { - return $this->container['confirmation']; + return $this->container['http_method']; } /** - * Sets confirmation + * Sets http_method * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null $confirmation confirmation + * @param string $http_method The HTTP method to be used when making the call, which can be set to GET, POST, PUT, DELETE, or PATCH. If using GET or DELETE * * @return self */ - public function setConfirmation($confirmation) + public function setHttpMethod($http_method) { - if (is_null($confirmation)) { - throw new \InvalidArgumentException('non-nullable confirmation cannot be null'); + if (is_null($http_method)) { + throw new \InvalidArgumentException('non-nullable http_method cannot be null'); } - $this->container['confirmation'] = $confirmation; + $allowedValues = $this->getHttpMethodAllowableValues(); + if (!in_array($http_method, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'http_method', must be one of '%s'", + $http_method, + implode("', '", $allowedValues) + ) + ); + } + $this->container['http_method'] = $http_method; return $this; } @@ -488,7 +498,7 @@ public function getLabel() /** * Sets label * - * @param string|null $label label + * @param string|null $label The label for the button that opens the iframen as it will be displayed to users. * * @return self */ @@ -503,75 +513,65 @@ public function setLabel($label) } /** - * Gets type + * Gets property_names_included * - * @return string + * @return string[] */ - public function getType() + public function getPropertyNamesIncluded() { - return $this->container['type']; + return $this->container['property_names_included']; } /** - * Sets type + * Sets property_names_included * - * @param string $type type + * @param string[] $property_names_included A list of property names that will be included on the url of the iframe. * * @return self */ - public function setType($type) + public function setPropertyNamesIncluded($property_names_included) { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); + if (is_null($property_names_included)) { + throw new \InvalidArgumentException('non-nullable property_names_included cannot be null'); } - $this->container['type'] = $type; + $this->container['property_names_included'] = $property_names_included; return $this; } /** - * Gets http_method + * Gets type * * @return string */ - public function getHttpMethod() + public function getType() { - return $this->container['http_method']; + return $this->container['type']; } /** - * Sets http_method + * Sets type * - * @param string $http_method http_method + * @param string $type Specifies the type of action, which is 'ACTION_HOOK' for action hooks. * * @return self */ - public function setHttpMethod($http_method) + public function setType($type) { - if (is_null($http_method)) { - throw new \InvalidArgumentException('non-nullable http_method cannot be null'); + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); } - $allowedValues = $this->getHttpMethodAllowableValues(); - if (!in_array($http_method, $allowedValues, true)) { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( - "Invalid value '%s' for 'http_method', must be one of '%s'", - $http_method, + "Invalid value '%s' for 'type', must be one of '%s'", + $type, implode("', '", $allowedValues) ) ); } - $this->container['http_method'] = $http_method; + $this->container['type'] = $type; return $this; } @@ -589,7 +589,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string $url The URL endpoint that will be loaded in the iframe when triggered. * * @return self */ @@ -604,55 +604,55 @@ public function setUrl($url) } /** - * Gets width + * Gets height * * @return int */ - public function getWidth() + public function getHeight() { - return $this->container['width']; + return $this->container['height']; } /** - * Sets width + * Sets height * - * @param int $width width + * @param int $height The height of the iframe in pixels. * * @return self */ - public function setWidth($width) + public function setHeight($height) { - if (is_null($width)) { - throw new \InvalidArgumentException('non-nullable width cannot be null'); + if (is_null($height)) { + throw new \InvalidArgumentException('non-nullable height cannot be null'); } - $this->container['width'] = $width; + $this->container['height'] = $height; return $this; } /** - * Gets height + * Gets width * * @return int */ - public function getHeight() + public function getWidth() { - return $this->container['height']; + return $this->container['width']; } /** - * Sets height + * Sets width * - * @param int $height height + * @param int $width The width of the iframe in pixels. * * @return self */ - public function setHeight($height) + public function setWidth($width) { - if (is_null($height)) { - throw new \InvalidArgumentException('non-nullable height cannot be null'); + if (is_null($width)) { + throw new \InvalidArgumentException('non-nullable width cannot be null'); } - $this->container['height'] = $height; + $this->container['width'] = $width; return $this; } diff --git a/codegen/Crm/Extensions/Cards/Model/ModelInterface.php b/codegen/Crm/Extensions/Cards/Model/ModelInterface.php index ead3a1af..3f141ff5 100644 --- a/codegen/Crm/Extensions/Cards/Model/ModelInterface.php +++ b/codegen/Crm/Extensions/Cards/Model/ModelInterface.php @@ -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.19.0 */ /** diff --git a/codegen/Crm/Extensions/Cards/Model/ObjectToken.php b/codegen/Crm/Extensions/Cards/Model/ObjectToken.php index 464b69c3..0cd775d0 100644 --- a/codegen/Crm/Extensions/Cards/Model/ObjectToken.php +++ b/codegen/Crm/Extensions/Cards/Model/ObjectToken.php @@ -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.19.0 */ /** @@ -58,8 +58,8 @@ class ObjectToken implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'data_type' => 'string', - 'name' => 'string', 'label' => 'string', + 'name' => 'string', 'value' => 'string' ]; @@ -72,8 +72,8 @@ class ObjectToken implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'data_type' => null, - 'name' => null, 'label' => null, + 'name' => null, 'value' => null ]; @@ -84,8 +84,8 @@ class ObjectToken implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'data_type' => false, - 'name' => false, 'label' => false, + 'name' => false, 'value' => false ]; @@ -176,8 +176,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'data_type' => 'dataType', - 'name' => 'name', 'label' => 'label', + 'name' => 'name', 'value' => 'value' ]; @@ -188,8 +188,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'data_type' => 'setDataType', - 'name' => 'setName', 'label' => 'setLabel', + 'name' => 'setName', 'value' => 'setValue' ]; @@ -200,8 +200,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'data_type' => 'getDataType', - 'name' => 'getName', 'label' => 'getLabel', + 'name' => 'getName', 'value' => 'getValue' ]; @@ -253,8 +253,8 @@ public function getModelName() public const DATA_TYPE_EMAIL = 'EMAIL'; public const DATA_TYPE_LINK = 'LINK'; public const DATA_TYPE_NUMERIC = 'NUMERIC'; - public const DATA_TYPE_STRING = 'STRING'; public const DATA_TYPE_STATUS = 'STATUS'; + public const DATA_TYPE_STRING = 'STRING'; /** * Gets allowable values of the enum @@ -271,8 +271,8 @@ public function getDataTypeAllowableValues() self::DATA_TYPE_EMAIL, self::DATA_TYPE_LINK, self::DATA_TYPE_NUMERIC, - self::DATA_TYPE_STRING, self::DATA_TYPE_STATUS, + self::DATA_TYPE_STRING, ]; } @@ -292,8 +292,8 @@ public function getDataTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('data_type', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); $this->setIfExists('value', $data ?? [], null); } @@ -364,7 +364,7 @@ public function getDataType() /** * Sets data_type * - * @param string|null $data_type data_type + * @param string|null $data_type The type of the property. Can be one of CURRENCY, DATE, DATETIME, EMAIL, LINK, NUMERIC, STATUS * * @return self */ @@ -389,55 +389,55 @@ public function setDataType($data_type) } /** - * Gets name + * Gets label * * @return string|null */ - public function getName() + public function getLabel() { - return $this->container['name']; + return $this->container['label']; } /** - * Sets name + * Sets label * - * @param string|null $name name + * @param string|null $label The label of the property as it will be displayed to users * * @return self */ - public function setName($name) + public function setLabel($label) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); } - $this->container['name'] = $name; + $this->container['label'] = $label; return $this; } /** - * Gets label + * Gets name * * @return string|null */ - public function getLabel() + public function getName() { - return $this->container['label']; + return $this->container['name']; } /** - * Sets label + * Sets name * - * @param string|null $label label + * @param string|null $name The name of the property * * @return self */ - public function setLabel($label) + public function setName($name) { - if (is_null($label)) { - throw new \InvalidArgumentException('non-nullable label cannot be null'); + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); } - $this->container['label'] = $label; + $this->container['name'] = $name; return $this; } @@ -455,7 +455,7 @@ public function getValue() /** * Sets value * - * @param string $value value + * @param string $value The value of the property * * @return self */ diff --git a/codegen/Crm/Extensions/Cards/Model/PublicCardFetchBody.php b/codegen/Crm/Extensions/Cards/Model/PublicCardFetchBody.php index d6b18024..05621db4 100644 --- a/codegen/Crm/Extensions/Cards/Model/PublicCardFetchBody.php +++ b/codegen/Crm/Extensions/Cards/Model/PublicCardFetchBody.php @@ -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.19.0 */ /** @@ -315,7 +315,7 @@ public function getObjectTypes() /** * Sets object_types * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardObjectTypeBody[] $object_types object_types + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardObjectTypeBody[] $object_types An array of CRM object types where this card should be displayed. HubSpot will call your data fetch URL whenever a user visits a record page of the types defined here. * * @return self */ @@ -342,7 +342,7 @@ public function getTargetUrl() /** * Sets target_url * - * @param string $target_url target_url + * @param string $target_url URL to a service endpoint that will respond with card details. HubSpot will call this endpoint each time a user visits a CRM record page where this card should be displayed. * * @return self */ diff --git a/codegen/Crm/Extensions/Cards/Model/PublicCardListResponse.php b/codegen/Crm/Extensions/Cards/Model/PublicCardListResponse.php index d51272d9..0312877b 100644 --- a/codegen/Crm/Extensions/Cards/Model/PublicCardListResponse.php +++ b/codegen/Crm/Extensions/Cards/Model/PublicCardListResponse.php @@ -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.19.0 */ /** @@ -305,7 +305,7 @@ public function getResults() /** * Sets results * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardResponse[] $results results + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardResponse[] $results A list of card responses * * @return self */ diff --git a/codegen/Crm/Extensions/Cards/Model/PublicCardResponse.php b/codegen/Crm/Extensions/Cards/Model/PublicCardResponse.php index 680e12c5..a2a0331d 100644 --- a/codegen/Crm/Extensions/Cards/Model/PublicCardResponse.php +++ b/codegen/Crm/Extensions/Cards/Model/PublicCardResponse.php @@ -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.19.0 */ /** @@ -57,13 +57,13 @@ class PublicCardResponse implements ModelInterface, ArrayAccess, \JsonSerializab * @var string[] */ protected static $openAPITypes = [ + 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardActions', + 'audit_history' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardAuditResponse[]', 'created_at' => '\DateTime', - 'fetch' => '\HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardFetchBody', 'display' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardDisplayBody', + 'fetch' => '\HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardFetchBody', 'id' => 'string', 'title' => 'string', - 'actions' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardActions', - 'audit_history' => '\HubSpot\Client\Crm\Extensions\Cards\Model\CardAuditResponse[]', 'updated_at' => '\DateTime' ]; @@ -75,13 +75,13 @@ class PublicCardResponse implements ModelInterface, ArrayAccess, \JsonSerializab * @psalm-var array */ protected static $openAPIFormats = [ + 'actions' => null, + 'audit_history' => null, 'created_at' => 'date-time', - 'fetch' => null, 'display' => null, + 'fetch' => null, 'id' => null, 'title' => null, - 'actions' => null, - 'audit_history' => null, 'updated_at' => 'date-time' ]; @@ -91,13 +91,13 @@ class PublicCardResponse implements ModelInterface, ArrayAccess, \JsonSerializab * @var boolean[] */ protected static array $openAPINullables = [ + 'actions' => false, + 'audit_history' => false, 'created_at' => false, - 'fetch' => false, 'display' => false, + 'fetch' => false, 'id' => false, 'title' => false, - 'actions' => false, - 'audit_history' => false, 'updated_at' => false ]; @@ -187,13 +187,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'actions' => 'actions', + 'audit_history' => 'auditHistory', 'created_at' => 'createdAt', - 'fetch' => 'fetch', 'display' => 'display', + 'fetch' => 'fetch', 'id' => 'id', 'title' => 'title', - 'actions' => 'actions', - 'audit_history' => 'auditHistory', 'updated_at' => 'updatedAt' ]; @@ -203,13 +203,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'actions' => 'setActions', + 'audit_history' => 'setAuditHistory', 'created_at' => 'setCreatedAt', - 'fetch' => 'setFetch', 'display' => 'setDisplay', + 'fetch' => 'setFetch', 'id' => 'setId', 'title' => 'setTitle', - 'actions' => 'setActions', - 'audit_history' => 'setAuditHistory', 'updated_at' => 'setUpdatedAt' ]; @@ -219,13 +219,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'actions' => 'getActions', + 'audit_history' => 'getAuditHistory', 'created_at' => 'getCreatedAt', - 'fetch' => 'getFetch', 'display' => 'getDisplay', + 'fetch' => 'getFetch', 'id' => 'getId', 'title' => 'getTitle', - 'actions' => 'getActions', - 'audit_history' => 'getAuditHistory', 'updated_at' => 'getUpdatedAt' ]; @@ -286,13 +286,13 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('actions', $data ?? [], null); + $this->setIfExists('audit_history', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('fetch', $data ?? [], null); $this->setIfExists('display', $data ?? [], null); + $this->setIfExists('fetch', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('title', $data ?? [], null); - $this->setIfExists('actions', $data ?? [], null); - $this->setIfExists('audit_history', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); } @@ -323,24 +323,24 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['fetch'] === null) { - $invalidProperties[] = "'fetch' can't be null"; + if ($this->container['actions'] === null) { + $invalidProperties[] = "'actions' can't be null"; + } + if ($this->container['audit_history'] === null) { + $invalidProperties[] = "'audit_history' can't be null"; } if ($this->container['display'] === null) { $invalidProperties[] = "'display' can't be null"; } + if ($this->container['fetch'] === null) { + $invalidProperties[] = "'fetch' can't be null"; + } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } if ($this->container['title'] === null) { $invalidProperties[] = "'title' can't be null"; } - if ($this->container['actions'] === null) { - $invalidProperties[] = "'actions' can't be null"; - } - if ($this->container['audit_history'] === null) { - $invalidProperties[] = "'audit_history' can't be null"; - } return $invalidProperties; } @@ -357,190 +357,190 @@ public function valid() /** - * Gets created_at + * Gets actions * - * @return \DateTime|null + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions */ - public function getCreatedAt() + public function getActions() { - return $this->container['created_at']; + return $this->container['actions']; } /** - * Sets created_at + * Sets actions * - * @param \DateTime|null $created_at created_at + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions $actions actions * * @return self */ - public function setCreatedAt($created_at) + public function setActions($actions) { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + if (is_null($actions)) { + throw new \InvalidArgumentException('non-nullable actions cannot be null'); } - $this->container['created_at'] = $created_at; + $this->container['actions'] = $actions; return $this; } /** - * Gets fetch + * Gets audit_history * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardFetchBody + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardAuditResponse[] */ - public function getFetch() + public function getAuditHistory() { - return $this->container['fetch']; + return $this->container['audit_history']; } /** - * Sets fetch + * Sets audit_history * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardFetchBody $fetch fetch + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardAuditResponse[] $audit_history A list of actions performed on the card, including creation, deletion, and updates. * * @return self */ - public function setFetch($fetch) + public function setAuditHistory($audit_history) { - if (is_null($fetch)) { - throw new \InvalidArgumentException('non-nullable fetch cannot be null'); + if (is_null($audit_history)) { + throw new \InvalidArgumentException('non-nullable audit_history cannot be null'); } - $this->container['fetch'] = $fetch; + $this->container['audit_history'] = $audit_history; return $this; } /** - * Gets display + * Gets created_at * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardDisplayBody + * @return \DateTime|null */ - public function getDisplay() + public function getCreatedAt() { - return $this->container['display']; + return $this->container['created_at']; } /** - * Sets display + * Sets created_at * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardDisplayBody $display display + * @param \DateTime|null $created_at The date and time when the card was created. * * @return self */ - public function setDisplay($display) + public function setCreatedAt($created_at) { - if (is_null($display)) { - throw new \InvalidArgumentException('non-nullable display cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } - $this->container['display'] = $display; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets id + * Gets display * - * @return string + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardDisplayBody */ - public function getId() + public function getDisplay() { - return $this->container['id']; + return $this->container['display']; } /** - * Sets id + * Sets display * - * @param string $id id + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardDisplayBody $display display * * @return self */ - public function setId($id) + public function setDisplay($display) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($display)) { + throw new \InvalidArgumentException('non-nullable display cannot be null'); } - $this->container['id'] = $id; + $this->container['display'] = $display; return $this; } /** - * Gets title + * Gets fetch * - * @return string + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardFetchBody */ - public function getTitle() + public function getFetch() { - return $this->container['title']; + return $this->container['fetch']; } /** - * Sets title + * Sets fetch * - * @param string $title title + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\PublicCardFetchBody $fetch fetch * * @return self */ - public function setTitle($title) + public function setFetch($fetch) { - if (is_null($title)) { - throw new \InvalidArgumentException('non-nullable title cannot be null'); + if (is_null($fetch)) { + throw new \InvalidArgumentException('non-nullable fetch cannot be null'); } - $this->container['title'] = $title; + $this->container['fetch'] = $fetch; return $this; } /** - * Gets actions + * Gets id * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions + * @return string */ - public function getActions() + public function getId() { - return $this->container['actions']; + return $this->container['id']; } /** - * Sets actions + * Sets id * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardActions $actions actions + * @param string $id The unique id of the card. * * @return self */ - public function setActions($actions) + public function setId($id) { - if (is_null($actions)) { - throw new \InvalidArgumentException('non-nullable actions cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['actions'] = $actions; + $this->container['id'] = $id; return $this; } /** - * Gets audit_history + * Gets title * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\CardAuditResponse[] + * @return string */ - public function getAuditHistory() + public function getTitle() { - return $this->container['audit_history']; + return $this->container['title']; } /** - * Sets audit_history + * Sets title * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\CardAuditResponse[] $audit_history audit_history + * @param string $title The top-level title for this card, displayed to users in the CRM UI. * * @return self */ - public function setAuditHistory($audit_history) + public function setTitle($title) { - if (is_null($audit_history)) { - throw new \InvalidArgumentException('non-nullable audit_history cannot be null'); + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); } - $this->container['audit_history'] = $audit_history; + $this->container['title'] = $title; return $this; } @@ -558,7 +558,7 @@ public function getUpdatedAt() /** * Sets updated_at * - * @param \DateTime|null $updated_at updated_at + * @param \DateTime|null $updated_at The date and time when the card was last updated. * * @return self */ diff --git a/codegen/Crm/Extensions/Cards/Model/TopLevelActions.php b/codegen/Crm/Extensions/Cards/Model/TopLevelActions.php index ded21277..a8d5ff9d 100644 --- a/codegen/Crm/Extensions/Cards/Model/TopLevelActions.php +++ b/codegen/Crm/Extensions/Cards/Model/TopLevelActions.php @@ -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.19.0 */ /** @@ -57,9 +57,9 @@ class TopLevelActions implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'primary' => '\HubSpot\Client\Crm\Extensions\Cards\Model\TopLevelActionsPrimary', 'secondary' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[]', - 'settings' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IFrameActionBody', - 'primary' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner' + 'settings' => '\HubSpot\Client\Crm\Extensions\Cards\Model\IFrameActionBody' ]; /** @@ -70,9 +70,9 @@ class TopLevelActions implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'primary' => null, 'secondary' => null, - 'settings' => null, - 'primary' => null + 'settings' => null ]; /** @@ -81,9 +81,9 @@ class TopLevelActions implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ + 'primary' => false, 'secondary' => false, - 'settings' => false, - 'primary' => false + 'settings' => false ]; /** @@ -172,9 +172,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'primary' => 'primary', 'secondary' => 'secondary', - 'settings' => 'settings', - 'primary' => 'primary' + 'settings' => 'settings' ]; /** @@ -183,9 +183,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'primary' => 'setPrimary', 'secondary' => 'setSecondary', - 'settings' => 'setSettings', - 'primary' => 'setPrimary' + 'settings' => 'setSettings' ]; /** @@ -194,9 +194,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'primary' => 'getPrimary', 'secondary' => 'getSecondary', - 'settings' => 'getSettings', - 'primary' => 'getPrimary' + 'settings' => 'getSettings' ]; /** @@ -256,9 +256,9 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('primary', $data ?? [], null); $this->setIfExists('secondary', $data ?? [], null); $this->setIfExists('settings', $data ?? [], null); - $this->setIfExists('primary', $data ?? [], null); } /** @@ -306,6 +306,33 @@ public function valid() } + /** + * Gets primary + * + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\TopLevelActionsPrimary|null + */ + public function getPrimary() + { + return $this->container['primary']; + } + + /** + * Sets primary + * + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\TopLevelActionsPrimary|null $primary primary + * + * @return self + */ + public function setPrimary($primary) + { + if (is_null($primary)) { + throw new \InvalidArgumentException('non-nullable primary cannot be null'); + } + $this->container['primary'] = $primary; + + return $this; + } + /** * Gets secondary * @@ -319,7 +346,7 @@ public function getSecondary() /** * Sets secondary * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[] $secondary secondary + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner[] $secondary Specifies a list of secondary actions for a card, each of which can be an action hook or an iframe. * * @return self */ @@ -359,33 +386,6 @@ public function setSettings($settings) return $this; } - - /** - * Gets primary - * - * @return \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner|null - */ - public function getPrimary() - { - return $this->container['primary']; - } - - /** - * Sets primary - * - * @param \HubSpot\Client\Crm\Extensions\Cards\Model\IntegratorObjectResultActionsInner|null $primary primary - * - * @return self - */ - public function setPrimary($primary) - { - if (is_null($primary)) { - throw new \InvalidArgumentException('non-nullable primary cannot be null'); - } - $this->container['primary'] = $primary; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Crm/Extensions/Cards/Model/TopLevelActionsPrimary.php b/codegen/Crm/Extensions/Cards/Model/TopLevelActionsPrimary.php new file mode 100644 index 00000000..cf33436a --- /dev/null +++ b/codegen/Crm/Extensions/Cards/Model/TopLevelActionsPrimary.php @@ -0,0 +1,751 @@ + + */ +class TopLevelActionsPrimary implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = 'type'; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'TopLevelActions_primary'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'confirmation' => '\HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody', + 'http_method' => 'string', + 'label' => 'string', + 'property_names_included' => 'string[]', + 'type' => 'string', + 'url' => 'string', + 'height' => 'int', + 'width' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'confirmation' => null, + 'http_method' => null, + 'label' => null, + 'property_names_included' => null, + 'type' => null, + 'url' => null, + 'height' => 'int32', + 'width' => 'int32' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'confirmation' => false, + 'http_method' => false, + 'label' => false, + 'property_names_included' => false, + 'type' => false, + 'url' => false, + 'height' => false, + 'width' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'confirmation' => 'confirmation', + 'http_method' => 'httpMethod', + 'label' => 'label', + 'property_names_included' => 'propertyNamesIncluded', + 'type' => 'type', + 'url' => 'url', + 'height' => 'height', + 'width' => 'width' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'confirmation' => 'setConfirmation', + 'http_method' => 'setHttpMethod', + 'label' => 'setLabel', + 'property_names_included' => 'setPropertyNamesIncluded', + 'type' => 'setType', + 'url' => 'setUrl', + 'height' => 'setHeight', + 'width' => 'setWidth' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'confirmation' => 'getConfirmation', + 'http_method' => 'getHttpMethod', + 'label' => 'getLabel', + 'property_names_included' => 'getPropertyNamesIncluded', + 'type' => 'getType', + 'url' => 'getUrl', + 'height' => 'getHeight', + 'width' => 'getWidth' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const HTTP_METHOD_CONNECT = 'CONNECT'; + public const HTTP_METHOD_DELETE = 'DELETE'; + public const HTTP_METHOD_GET = 'GET'; + public const HTTP_METHOD_HEAD = 'HEAD'; + public const HTTP_METHOD_OPTIONS = 'OPTIONS'; + public const HTTP_METHOD_PATCH = 'PATCH'; + public const HTTP_METHOD_POST = 'POST'; + public const HTTP_METHOD_PUT = 'PUT'; + public const HTTP_METHOD_TRACE = 'TRACE'; + public const TYPE_ACTION_HOOK = 'ACTION_HOOK'; + public const TYPE_IFRAME = 'IFRAME'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getHttpMethodAllowableValues() + { + return [ + self::HTTP_METHOD_CONNECT, + self::HTTP_METHOD_DELETE, + self::HTTP_METHOD_GET, + self::HTTP_METHOD_HEAD, + self::HTTP_METHOD_OPTIONS, + self::HTTP_METHOD_PATCH, + self::HTTP_METHOD_POST, + self::HTTP_METHOD_PUT, + self::HTTP_METHOD_TRACE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_ACTION_HOOK, + self::TYPE_IFRAME, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('confirmation', $data ?? [], null); + $this->setIfExists('http_method', $data ?? [], null); + $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('property_names_included', $data ?? [], null); + $this->setIfExists('type', $data ?? [], 'ACTION_HOOK'); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('height', $data ?? [], null); + $this->setIfExists('width', $data ?? [], null); + + // Initialize discriminator property with the model name. + $this->container['type'] = static::$openAPIModelName; + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['http_method'] === null) { + $invalidProperties[] = "'http_method' can't be null"; + } + $allowedValues = $this->getHttpMethodAllowableValues(); + if (!is_null($this->container['http_method']) && !in_array($this->container['http_method'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'http_method', must be one of '%s'", + $this->container['http_method'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['property_names_included'] === null) { + $invalidProperties[] = "'property_names_included' can't be null"; + } + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' can't be null"; + } + if ($this->container['height'] === null) { + $invalidProperties[] = "'height' can't be null"; + } + if ($this->container['width'] === null) { + $invalidProperties[] = "'width' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets confirmation + * + * @return \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null + */ + public function getConfirmation() + { + return $this->container['confirmation']; + } + + /** + * Sets confirmation + * + * @param \HubSpot\Client\Crm\Extensions\Cards\Model\ActionConfirmationBody|null $confirmation confirmation + * + * @return self + */ + public function setConfirmation($confirmation) + { + if (is_null($confirmation)) { + throw new \InvalidArgumentException('non-nullable confirmation cannot be null'); + } + $this->container['confirmation'] = $confirmation; + + return $this; + } + + /** + * Gets http_method + * + * @return string + */ + public function getHttpMethod() + { + return $this->container['http_method']; + } + + /** + * Sets http_method + * + * @param string $http_method The HTTP method to be used when making the call, which can be set to GET, POST, PUT, DELETE, or PATCH. If using GET or DELETE + * + * @return self + */ + public function setHttpMethod($http_method) + { + if (is_null($http_method)) { + throw new \InvalidArgumentException('non-nullable http_method cannot be null'); + } + $allowedValues = $this->getHttpMethodAllowableValues(); + if (!in_array($http_method, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'http_method', must be one of '%s'", + $http_method, + implode("', '", $allowedValues) + ) + ); + } + $this->container['http_method'] = $http_method; + + return $this; + } + + /** + * Gets label + * + * @return string|null + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param string|null $label The label for the button that opens the iframen as it will be displayed to users. + * + * @return self + */ + public function setLabel($label) + { + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); + } + $this->container['label'] = $label; + + return $this; + } + + /** + * Gets property_names_included + * + * @return string[] + */ + public function getPropertyNamesIncluded() + { + return $this->container['property_names_included']; + } + + /** + * Sets property_names_included + * + * @param string[] $property_names_included A list of property names that will be included on the url of the iframe. + * + * @return self + */ + public function setPropertyNamesIncluded($property_names_included) + { + if (is_null($property_names_included)) { + throw new \InvalidArgumentException('non-nullable property_names_included cannot be null'); + } + $this->container['property_names_included'] = $property_names_included; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type Specifies the type of action, which is 'ACTION_HOOK' for action hooks. + * + * @return self + */ + public function setType($type) + { + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url The URL endpoint that will be loaded in the iframe when triggered. + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); + } + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets height + * + * @return int + */ + public function getHeight() + { + return $this->container['height']; + } + + /** + * Sets height + * + * @param int $height The height of the iframe in pixels. + * + * @return self + */ + public function setHeight($height) + { + if (is_null($height)) { + throw new \InvalidArgumentException('non-nullable height cannot be null'); + } + $this->container['height'] = $height; + + return $this; + } + + /** + * Gets width + * + * @return int + */ + public function getWidth() + { + return $this->container['width']; + } + + /** + * Sets width + * + * @param int $width The width of the iframe in pixels. + * + * @return self + */ + public function setWidth($width) + { + if (is_null($width)) { + throw new \InvalidArgumentException('non-nullable width cannot be null'); + } + $this->container['width'] = $width; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer|string $offset Offset + * + * @return boolean + */ + public function offsetExists(mixed $offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer|string $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet(mixed $offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer|string $offset Offset + * + * @return void + */ + public function offsetUnset(mixed $offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/codegen/Crm/Extensions/Cards/ObjectSerializer.php b/codegen/Crm/Extensions/Cards/ObjectSerializer.php index 9d58a6d3..275a6f13 100644 --- a/codegen/Crm/Extensions/Cards/ObjectSerializer.php +++ b/codegen/Crm/Extensions/Cards/ObjectSerializer.php @@ -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.19.0 */ /**