From 9b02ea12e308143e0903dead86509996e75a2c2e Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 2 Feb 2026 12:19:51 +0300 Subject: [PATCH 1/2] Codegen: CRM Exports --- codegen/Crm/Exports/Api/PublicExportsApi.php | 2 +- codegen/Crm/Exports/ApiException.php | 2 +- codegen/Crm/Exports/Configuration.php | 2 +- codegen/Crm/Exports/FormDataProcessor.php | 2 +- codegen/Crm/Exports/HeaderSelector.php | 2 +- .../ActionResponseWithSingleResultURI.php | 2 +- codegen/Crm/Exports/Model/Error.php | 2 +- codegen/Crm/Exports/Model/ErrorDetail.php | 2 +- codegen/Crm/Exports/Model/Filter.php | 2 +- codegen/Crm/Exports/Model/FilterGroup.php | 2 +- codegen/Crm/Exports/Model/ModelInterface.php | 2 +- .../Exports/Model/PublicCrmSearchRequest.php | 2 +- .../Exports/Model/PublicExportListRequest.php | 36 +--------- .../Crm/Exports/Model/PublicExportRequest.php | 68 +++++++++---------- .../Exports/Model/PublicExportResponse.php | 2 +- .../Exports/Model/PublicExportViewRequest.php | 51 ++------------ codegen/Crm/Exports/Model/StandardError.php | 2 +- codegen/Crm/Exports/Model/TaskLocator.php | 2 +- codegen/Crm/Exports/ObjectSerializer.php | 2 +- 19 files changed, 58 insertions(+), 129 deletions(-) diff --git a/codegen/Crm/Exports/Api/PublicExportsApi.php b/codegen/Crm/Exports/Api/PublicExportsApi.php index dc3239f2..f34f8246 100644 --- a/codegen/Crm/Exports/Api/PublicExportsApi.php +++ b/codegen/Crm/Exports/Api/PublicExportsApi.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/Exports/ApiException.php b/codegen/Crm/Exports/ApiException.php index bdd4b748..1575d940 100644 --- a/codegen/Crm/Exports/ApiException.php +++ b/codegen/Crm/Exports/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/Exports/Configuration.php b/codegen/Crm/Exports/Configuration.php index 6a4937ad..509e2095 100644 --- a/codegen/Crm/Exports/Configuration.php +++ b/codegen/Crm/Exports/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/Exports/FormDataProcessor.php b/codegen/Crm/Exports/FormDataProcessor.php index 620beb54..7b9313f7 100644 --- a/codegen/Crm/Exports/FormDataProcessor.php +++ b/codegen/Crm/Exports/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/Exports/HeaderSelector.php b/codegen/Crm/Exports/HeaderSelector.php index f0b6212a..270f6ac8 100644 --- a/codegen/Crm/Exports/HeaderSelector.php +++ b/codegen/Crm/Exports/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/Exports/Model/ActionResponseWithSingleResultURI.php b/codegen/Crm/Exports/Model/ActionResponseWithSingleResultURI.php index b574e85d..c7e1cfdc 100644 --- a/codegen/Crm/Exports/Model/ActionResponseWithSingleResultURI.php +++ b/codegen/Crm/Exports/Model/ActionResponseWithSingleResultURI.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/Exports/Model/Error.php b/codegen/Crm/Exports/Model/Error.php index bc139bc0..def306b1 100644 --- a/codegen/Crm/Exports/Model/Error.php +++ b/codegen/Crm/Exports/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/Exports/Model/ErrorDetail.php b/codegen/Crm/Exports/Model/ErrorDetail.php index 57c49857..541bc1a6 100644 --- a/codegen/Crm/Exports/Model/ErrorDetail.php +++ b/codegen/Crm/Exports/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/Exports/Model/Filter.php b/codegen/Crm/Exports/Model/Filter.php index 9c5aef48..b615cbed 100644 --- a/codegen/Crm/Exports/Model/Filter.php +++ b/codegen/Crm/Exports/Model/Filter.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/Exports/Model/FilterGroup.php b/codegen/Crm/Exports/Model/FilterGroup.php index 080b8bc9..6a2d223d 100644 --- a/codegen/Crm/Exports/Model/FilterGroup.php +++ b/codegen/Crm/Exports/Model/FilterGroup.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/Exports/Model/ModelInterface.php b/codegen/Crm/Exports/Model/ModelInterface.php index 48b91b6c..692c646d 100644 --- a/codegen/Crm/Exports/Model/ModelInterface.php +++ b/codegen/Crm/Exports/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/Exports/Model/PublicCrmSearchRequest.php b/codegen/Crm/Exports/Model/PublicCrmSearchRequest.php index 04210da4..0ccec87c 100644 --- a/codegen/Crm/Exports/Model/PublicCrmSearchRequest.php +++ b/codegen/Crm/Exports/Model/PublicCrmSearchRequest.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/Exports/Model/PublicExportListRequest.php b/codegen/Crm/Exports/Model/PublicExportListRequest.php index 422f4467..bae3d83b 100644 --- a/codegen/Crm/Exports/Model/PublicExportListRequest.php +++ b/codegen/Crm/Exports/Model/PublicExportListRequest.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 */ /** @@ -68,7 +68,6 @@ class PublicExportListRequest implements ModelInterface, ArrayAccess, \JsonSeria 'language' => 'string', 'export_internal_values_options' => 'string[]', 'override_associated_objects_per_definition_per_row_limit' => 'bool', - 'public_crm_search_request' => '\HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest', 'list_id' => 'string' ]; @@ -91,7 +90,6 @@ class PublicExportListRequest implements ModelInterface, ArrayAccess, \JsonSeria 'language' => null, 'export_internal_values_options' => null, 'override_associated_objects_per_definition_per_row_limit' => null, - 'public_crm_search_request' => null, 'list_id' => null ]; @@ -112,7 +110,6 @@ class PublicExportListRequest implements ModelInterface, ArrayAccess, \JsonSeria 'language' => false, 'export_internal_values_options' => false, 'override_associated_objects_per_definition_per_row_limit' => false, - 'public_crm_search_request' => false, 'list_id' => false ]; @@ -213,7 +210,6 @@ public function isNullableSetToNull(string $property): bool 'language' => 'language', 'export_internal_values_options' => 'exportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'overrideAssociatedObjectsPerDefinitionPerRowLimit', - 'public_crm_search_request' => 'publicCrmSearchRequest', 'list_id' => 'listId' ]; @@ -234,7 +230,6 @@ public function isNullableSetToNull(string $property): bool 'language' => 'setLanguage', 'export_internal_values_options' => 'setExportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'setOverrideAssociatedObjectsPerDefinitionPerRowLimit', - 'public_crm_search_request' => 'setPublicCrmSearchRequest', 'list_id' => 'setListId' ]; @@ -255,7 +250,6 @@ public function isNullableSetToNull(string $property): bool 'language' => 'getLanguage', 'export_internal_values_options' => 'getExportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'getOverrideAssociatedObjectsPerDefinitionPerRowLimit', - 'public_crm_search_request' => 'getPublicCrmSearchRequest', 'list_id' => 'getListId' ]; @@ -411,7 +405,6 @@ public function __construct(?array $data = null) $this->setIfExists('language', $data ?? [], null); $this->setIfExists('export_internal_values_options', $data ?? [], null); $this->setIfExists('override_associated_objects_per_definition_per_row_limit', $data ?? [], null); - $this->setIfExists('public_crm_search_request', $data ?? [], null); $this->setIfExists('list_id', $data ?? [], null); } @@ -856,33 +849,6 @@ public function setOverrideAssociatedObjectsPerDefinitionPerRowLimit($override_a return $this; } - /** - * Gets public_crm_search_request - * - * @return \HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest|null - */ - public function getPublicCrmSearchRequest() - { - return $this->container['public_crm_search_request']; - } - - /** - * Sets public_crm_search_request - * - * @param \HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest|null $public_crm_search_request public_crm_search_request - * - * @return self - */ - public function setPublicCrmSearchRequest($public_crm_search_request) - { - if (is_null($public_crm_search_request)) { - throw new \InvalidArgumentException('non-nullable public_crm_search_request cannot be null'); - } - $this->container['public_crm_search_request'] = $public_crm_search_request; - - return $this; - } - /** * Gets list_id * diff --git a/codegen/Crm/Exports/Model/PublicExportRequest.php b/codegen/Crm/Exports/Model/PublicExportRequest.php index 1c1cf5f6..324c6e3b 100644 --- a/codegen/Crm/Exports/Model/PublicExportRequest.php +++ b/codegen/Crm/Exports/Model/PublicExportRequest.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 */ /** @@ -68,8 +68,8 @@ class PublicExportRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'language' => 'string', 'export_internal_values_options' => 'string[]', 'override_associated_objects_per_definition_per_row_limit' => 'bool', - 'list_id' => 'string', - 'public_crm_search_request' => '\HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest' + 'public_crm_search_request' => '\HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest', + 'list_id' => 'string' ]; /** @@ -91,8 +91,8 @@ class PublicExportRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'language' => null, 'export_internal_values_options' => null, 'override_associated_objects_per_definition_per_row_limit' => null, - 'list_id' => null, - 'public_crm_search_request' => null + 'public_crm_search_request' => null, + 'list_id' => null ]; /** @@ -112,8 +112,8 @@ class PublicExportRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'language' => false, 'export_internal_values_options' => false, 'override_associated_objects_per_definition_per_row_limit' => false, - 'list_id' => false, - 'public_crm_search_request' => false + 'public_crm_search_request' => false, + 'list_id' => false ]; /** @@ -213,8 +213,8 @@ public function isNullableSetToNull(string $property): bool 'language' => 'language', 'export_internal_values_options' => 'exportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'overrideAssociatedObjectsPerDefinitionPerRowLimit', - 'list_id' => 'listId', - 'public_crm_search_request' => 'publicCrmSearchRequest' + 'public_crm_search_request' => 'publicCrmSearchRequest', + 'list_id' => 'listId' ]; /** @@ -234,8 +234,8 @@ public function isNullableSetToNull(string $property): bool 'language' => 'setLanguage', 'export_internal_values_options' => 'setExportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'setOverrideAssociatedObjectsPerDefinitionPerRowLimit', - 'list_id' => 'setListId', - 'public_crm_search_request' => 'setPublicCrmSearchRequest' + 'public_crm_search_request' => 'setPublicCrmSearchRequest', + 'list_id' => 'setListId' ]; /** @@ -255,8 +255,8 @@ public function isNullableSetToNull(string $property): bool 'language' => 'getLanguage', 'export_internal_values_options' => 'getExportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'getOverrideAssociatedObjectsPerDefinitionPerRowLimit', - 'list_id' => 'getListId', - 'public_crm_search_request' => 'getPublicCrmSearchRequest' + 'public_crm_search_request' => 'getPublicCrmSearchRequest', + 'list_id' => 'getListId' ]; /** @@ -411,8 +411,8 @@ public function __construct(?array $data = null) $this->setIfExists('language', $data ?? [], null); $this->setIfExists('export_internal_values_options', $data ?? [], null); $this->setIfExists('override_associated_objects_per_definition_per_row_limit', $data ?? [], null); - $this->setIfExists('list_id', $data ?? [], null); $this->setIfExists('public_crm_search_request', $data ?? [], null); + $this->setIfExists('list_id', $data ?? [], null); } /** @@ -857,55 +857,55 @@ public function setOverrideAssociatedObjectsPerDefinitionPerRowLimit($override_a } /** - * Gets list_id + * Gets public_crm_search_request * - * @return string + * @return \HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest|null */ - public function getListId() + public function getPublicCrmSearchRequest() { - return $this->container['list_id']; + return $this->container['public_crm_search_request']; } /** - * Sets list_id + * Sets public_crm_search_request * - * @param string $list_id list_id + * @param \HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest|null $public_crm_search_request public_crm_search_request * * @return self */ - public function setListId($list_id) + public function setPublicCrmSearchRequest($public_crm_search_request) { - if (is_null($list_id)) { - throw new \InvalidArgumentException('non-nullable list_id cannot be null'); + if (is_null($public_crm_search_request)) { + throw new \InvalidArgumentException('non-nullable public_crm_search_request cannot be null'); } - $this->container['list_id'] = $list_id; + $this->container['public_crm_search_request'] = $public_crm_search_request; return $this; } /** - * Gets public_crm_search_request + * Gets list_id * - * @return \HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest|null + * @return string */ - public function getPublicCrmSearchRequest() + public function getListId() { - return $this->container['public_crm_search_request']; + return $this->container['list_id']; } /** - * Sets public_crm_search_request + * Sets list_id * - * @param \HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest|null $public_crm_search_request public_crm_search_request + * @param string $list_id list_id * * @return self */ - public function setPublicCrmSearchRequest($public_crm_search_request) + public function setListId($list_id) { - if (is_null($public_crm_search_request)) { - throw new \InvalidArgumentException('non-nullable public_crm_search_request cannot be null'); + if (is_null($list_id)) { + throw new \InvalidArgumentException('non-nullable list_id cannot be null'); } - $this->container['public_crm_search_request'] = $public_crm_search_request; + $this->container['list_id'] = $list_id; return $this; } diff --git a/codegen/Crm/Exports/Model/PublicExportResponse.php b/codegen/Crm/Exports/Model/PublicExportResponse.php index 15eda84a..1dc45e4b 100644 --- a/codegen/Crm/Exports/Model/PublicExportResponse.php +++ b/codegen/Crm/Exports/Model/PublicExportResponse.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/Exports/Model/PublicExportViewRequest.php b/codegen/Crm/Exports/Model/PublicExportViewRequest.php index 9ccb2bca..30811902 100644 --- a/codegen/Crm/Exports/Model/PublicExportViewRequest.php +++ b/codegen/Crm/Exports/Model/PublicExportViewRequest.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 */ /** @@ -68,8 +68,7 @@ class PublicExportViewRequest implements ModelInterface, ArrayAccess, \JsonSeria 'language' => 'string', 'export_internal_values_options' => 'string[]', 'override_associated_objects_per_definition_per_row_limit' => 'bool', - 'public_crm_search_request' => '\HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest', - 'list_id' => 'string' + 'public_crm_search_request' => '\HubSpot\Client\Crm\Exports\Model\PublicCrmSearchRequest' ]; /** @@ -91,8 +90,7 @@ class PublicExportViewRequest implements ModelInterface, ArrayAccess, \JsonSeria 'language' => null, 'export_internal_values_options' => null, 'override_associated_objects_per_definition_per_row_limit' => null, - 'public_crm_search_request' => null, - 'list_id' => null + 'public_crm_search_request' => null ]; /** @@ -112,8 +110,7 @@ class PublicExportViewRequest implements ModelInterface, ArrayAccess, \JsonSeria 'language' => false, 'export_internal_values_options' => false, 'override_associated_objects_per_definition_per_row_limit' => false, - 'public_crm_search_request' => false, - 'list_id' => false + 'public_crm_search_request' => false ]; /** @@ -213,8 +210,7 @@ public function isNullableSetToNull(string $property): bool 'language' => 'language', 'export_internal_values_options' => 'exportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'overrideAssociatedObjectsPerDefinitionPerRowLimit', - 'public_crm_search_request' => 'publicCrmSearchRequest', - 'list_id' => 'listId' + 'public_crm_search_request' => 'publicCrmSearchRequest' ]; /** @@ -234,8 +230,7 @@ public function isNullableSetToNull(string $property): bool 'language' => 'setLanguage', 'export_internal_values_options' => 'setExportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'setOverrideAssociatedObjectsPerDefinitionPerRowLimit', - 'public_crm_search_request' => 'setPublicCrmSearchRequest', - 'list_id' => 'setListId' + 'public_crm_search_request' => 'setPublicCrmSearchRequest' ]; /** @@ -255,8 +250,7 @@ public function isNullableSetToNull(string $property): bool 'language' => 'getLanguage', 'export_internal_values_options' => 'getExportInternalValuesOptions', 'override_associated_objects_per_definition_per_row_limit' => 'getOverrideAssociatedObjectsPerDefinitionPerRowLimit', - 'public_crm_search_request' => 'getPublicCrmSearchRequest', - 'list_id' => 'getListId' + 'public_crm_search_request' => 'getPublicCrmSearchRequest' ]; /** @@ -412,7 +406,6 @@ public function __construct(?array $data = null) $this->setIfExists('export_internal_values_options', $data ?? [], null); $this->setIfExists('override_associated_objects_per_definition_per_row_limit', $data ?? [], null); $this->setIfExists('public_crm_search_request', $data ?? [], null); - $this->setIfExists('list_id', $data ?? [], null); } /** @@ -502,9 +495,6 @@ public function listInvalidProperties() if ($this->container['override_associated_objects_per_definition_per_row_limit'] === null) { $invalidProperties[] = "'override_associated_objects_per_definition_per_row_limit' can't be null"; } - if ($this->container['list_id'] === null) { - $invalidProperties[] = "'list_id' can't be null"; - } return $invalidProperties; } @@ -882,33 +872,6 @@ public function setPublicCrmSearchRequest($public_crm_search_request) return $this; } - - /** - * Gets list_id - * - * @return string - */ - public function getListId() - { - return $this->container['list_id']; - } - - /** - * Sets list_id - * - * @param string $list_id list_id - * - * @return self - */ - public function setListId($list_id) - { - if (is_null($list_id)) { - throw new \InvalidArgumentException('non-nullable list_id cannot be null'); - } - $this->container['list_id'] = $list_id; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Crm/Exports/Model/StandardError.php b/codegen/Crm/Exports/Model/StandardError.php index fe7164fc..8cae1211 100644 --- a/codegen/Crm/Exports/Model/StandardError.php +++ b/codegen/Crm/Exports/Model/StandardError.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/Exports/Model/TaskLocator.php b/codegen/Crm/Exports/Model/TaskLocator.php index f767a109..b596c5cf 100644 --- a/codegen/Crm/Exports/Model/TaskLocator.php +++ b/codegen/Crm/Exports/Model/TaskLocator.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/Exports/ObjectSerializer.php b/codegen/Crm/Exports/ObjectSerializer.php index ca4f4856..087c5f1c 100644 --- a/codegen/Crm/Exports/ObjectSerializer.php +++ b/codegen/Crm/Exports/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 23dd1082552e8c7de29ea69cf6fa2af206463ce7 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 2 Feb 2026 12:23:01 +0300 Subject: [PATCH 2/2] Codegen: Crm Imports --- codegen/Crm/Imports/Api/CoreApi.php | 516 +++----- codegen/Crm/Imports/Api/PublicImportsApi.php | 181 +-- codegen/Crm/Imports/ApiException.php | 6 +- codegen/Crm/Imports/Configuration.php | 65 +- codegen/Crm/Imports/FormDataProcessor.php | 246 ++++ codegen/Crm/Imports/HeaderSelector.php | 6 +- codegen/Crm/Imports/Model/ActionResponse.php | 102 +- ...ResponsePublicImportErrorForwardPaging.php | 18 +- ...CollectionResponsePublicImportResponse.php | 18 +- codegen/Crm/Imports/Model/Error.php | 160 +-- codegen/Crm/Imports/Model/ErrorDetail.php | 136 +- codegen/Crm/Imports/Model/ForwardPaging.php | 18 +- codegen/Crm/Imports/Model/ImportRowCore.php | 120 +- codegen/Crm/Imports/Model/ImportTemplate.php | 106 +- codegen/Crm/Imports/Model/ModelInterface.php | 6 +- codegen/Crm/Imports/Model/NextPage.php | 85 +- codegen/Crm/Imports/Model/Paging.php | 18 +- codegen/Crm/Imports/Model/PreviousPage.php | 23 +- codegen/Crm/Imports/Model/PropertyValue.php | 1035 ++++++++-------- .../Crm/Imports/Model/PublicImportError.php | 1090 ++++++++--------- .../Imports/Model/PublicImportMetadata.php | 18 +- .../Imports/Model/PublicImportResponse.php | 306 ++--- .../Imports/Model/PublicObjectListRecord.php | 18 +- codegen/Crm/Imports/ObjectSerializer.php | 26 +- 24 files changed, 2208 insertions(+), 2115 deletions(-) create mode 100644 codegen/Crm/Imports/FormDataProcessor.php diff --git a/codegen/Crm/Imports/Api/CoreApi.php b/codegen/Crm/Imports/Api/CoreApi.php index 0f962f0c..07cee388 100644 --- a/codegen/Crm/Imports/Api/CoreApi.php +++ b/codegen/Crm/Imports/Api/CoreApi.php @@ -1,7 +1,7 @@ getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\ActionResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\ActionResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\ActionResponse', + $request, + $response, + ); default: - if ('\HubSpot\Client\Crm\Imports\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\Error' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\Error', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -258,34 +221,11 @@ public function cancelWithHttpInfo($import_id, string $contentType = self::conte ); } - $returnType = '\HubSpot\Client\Crm\Imports\Model\ActionResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\ActionResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -295,7 +235,7 @@ public function cancelWithHttpInfo($import_id, string $contentType = self::conte $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -303,8 +243,10 @@ public function cancelWithHttpInfo($import_id, string $contentType = self::conte $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -314,7 +256,7 @@ public function cancelWithHttpInfo($import_id, string $contentType = self::conte * * Cancel an active import * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancel'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -335,7 +277,7 @@ function ($response) { * * Cancel an active import * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancel'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -385,7 +327,7 @@ function ($exception) { /** * Create request for operation 'cancel' * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancel'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -539,61 +481,21 @@ public function createWithHttpInfo($files = null, $import_request = null, string switch($statusCode) { case 200: - if ('\HubSpot\Client\Crm\Imports\Model\PublicImportResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\PublicImportResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse', + $request, + $response, + ); default: - if ('\HubSpot\Client\Crm\Imports\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\Error' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\Error', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -607,34 +509,11 @@ public function createWithHttpInfo($files = null, $import_request = null, string ); } - $returnType = '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -644,7 +523,7 @@ public function createWithHttpInfo($files = null, $import_request = null, string $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -652,8 +531,10 @@ public function createWithHttpInfo($files = null, $import_request = null, string $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -760,21 +641,15 @@ public function createRequest($files = null, $import_request = null, string $con // form params - if ($files !== null) { - $multipart = true; - $formParams['files'] = []; - $paramFiles = is_array($files) ? $files : [$files]; - foreach ($paramFiles as $paramFile) { - $formParams['files'][] = \GuzzleHttp\Psr7\Utils::tryFopen( - ObjectSerializer::toFormValue($paramFile), - 'rb' - ); - } - } - // form params - if ($import_request !== null) { - $formParams['importRequest'] = ObjectSerializer::toFormValue($import_request); - } + $formDataProcessor = new FormDataProcessor(); + + $formData = $formDataProcessor->prepare([ + 'files' => $files, + 'import_request' => $import_request, + ]); + + $formParams = $formDataProcessor->flatten($formData); + $multipart = $formDataProcessor->has_file; $multipart = true; $headers = $this->headerSelector->selectHeaders( @@ -839,7 +714,7 @@ public function createRequest($files = null, $import_request = null, string $con * * Get the information on any import * - * @param int $import_id import_id (required) + * @param int $import_id The unique ID of the import. (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\Imports\ApiException on non-2xx response or if the response body is not in the expected format @@ -857,7 +732,7 @@ public function getById($import_id, string $contentType = self::contentTypes['ge * * Get the information on any import * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (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\Imports\ApiException on non-2xx response or if the response body is not in the expected format @@ -893,61 +768,21 @@ public function getByIdWithHttpInfo($import_id, string $contentType = self::cont switch($statusCode) { case 200: - if ('\HubSpot\Client\Crm\Imports\Model\PublicImportResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\PublicImportResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse', + $request, + $response, + ); default: - if ('\HubSpot\Client\Crm\Imports\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\Error' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\Error', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -961,34 +796,11 @@ public function getByIdWithHttpInfo($import_id, string $contentType = self::cont ); } - $returnType = '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\PublicImportResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -998,7 +810,7 @@ public function getByIdWithHttpInfo($import_id, string $contentType = self::cont $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1006,8 +818,10 @@ public function getByIdWithHttpInfo($import_id, string $contentType = self::cont $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1017,7 +831,7 @@ public function getByIdWithHttpInfo($import_id, string $contentType = self::cont * * Get the information on any import * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (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 @@ -1038,7 +852,7 @@ function ($response) { * * Get the information on any import * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (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 @@ -1088,7 +902,7 @@ function ($exception) { /** * Create request for operation 'getById' * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (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 @@ -1244,61 +1058,21 @@ public function getPageWithHttpInfo($after = null, $before = null, $limit = null switch($statusCode) { case 200: - if ('\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportResponse' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportResponse' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportResponse', + $request, + $response, + ); default: - if ('\HubSpot\Client\Crm\Imports\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\Error' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\Error', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1312,34 +1086,11 @@ public function getPageWithHttpInfo($after = null, $before = null, $limit = null ); } - $returnType = '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportResponse'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportResponse', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -1349,7 +1100,7 @@ public function getPageWithHttpInfo($after = null, $before = null, $limit = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1357,8 +1108,10 @@ public function getPageWithHttpInfo($after = null, $before = null, $limit = null $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -1569,6 +1322,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/codegen/Crm/Imports/Api/PublicImportsApi.php b/codegen/Crm/Imports/Api/PublicImportsApi.php index 5db08c44..3fd1f489 100644 --- a/codegen/Crm/Imports/Api/PublicImportsApi.php +++ b/codegen/Crm/Imports/Api/PublicImportsApi.php @@ -1,7 +1,7 @@ getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportErrorForwardPaging' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportErrorForwardPaging', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportErrorForwardPaging', + $request, + $response, + ); default: - if ('\HubSpot\Client\Crm\Imports\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Crm\Imports\Model\Error' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\Imports\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\Error', + $request, + $response, + ); } + + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -253,34 +220,11 @@ public function getErrorsWithHttpInfo($import_id, $after = null, $limit = null, ); } - $returnType = '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportErrorForwardPaging'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - + return $this->handleResponseWithDataType( + '\HubSpot\Client\Crm\Imports\Model\CollectionResponsePublicImportErrorForwardPaging', + $request, + $response, + ); } catch (ApiException $e) { switch ($e->getCode()) { case 200: @@ -290,7 +234,7 @@ public function getErrorsWithHttpInfo($import_id, $after = null, $limit = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -298,8 +242,10 @@ public function getErrorsWithHttpInfo($import_id, $after = null, $limit = null, $e->getResponseHeaders() ); $e->setResponseObject($data); - break; + throw $e; } + + throw $e; } } @@ -307,7 +253,9 @@ public function getErrorsWithHttpInfo($import_id, $after = null, $limit = null, /** * Operation getErrorsAsync * - * @param int $import_id (required) + * Retrieve errors for a specific import + * + * @param int $import_id The unique ID of the import. (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional) * @param bool|null $include_error_message Set to True to receive a message explaining the error. (optional) @@ -330,7 +278,9 @@ function ($response) { /** * Operation getErrorsAsyncWithHttpInfo * - * @param int $import_id (required) + * Retrieve errors for a specific import + * + * @param int $import_id The unique ID of the import. (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional) * @param bool|null $include_error_message Set to True to receive a message explaining the error. (optional) @@ -384,7 +334,7 @@ function ($exception) { /** * Create request for operation 'getErrors' * - * @param int $import_id (required) + * @param int $import_id The unique ID of the import. (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional) * @param bool|null $include_error_message Set to True to receive a message explaining the error. (optional) @@ -537,6 +487,57 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } } diff --git a/codegen/Crm/Imports/ApiException.php b/codegen/Crm/Imports/ApiException.php index ba4acf59..bbdf1a79 100644 --- a/codegen/Crm/Imports/ApiException.php +++ b/codegen/Crm/Imports/ApiException.php @@ -1,7 +1,7 @@ tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/codegen/Crm/Imports/FormDataProcessor.php b/codegen/Crm/Imports/FormDataProcessor.php new file mode 100644 index 00000000..4471c501 --- /dev/null +++ b/codegen/Crm/Imports/FormDataProcessor.php @@ -0,0 +1,246 @@ + $values the value of the form parameter + * + * @return array [key => value] of formdata + */ + public function prepare(array $values): array + { + $this->has_file = false; + $result = []; + + foreach ($values as $k => $v) { + if ($v === null) { + continue; + } + + $result[$k] = $this->makeFormSafe($v); + } + + return $result; + } + + /** + * Flattens a multi-level array of data and generates a single-level array + * compatible with formdata - a single-level array where the keys use bracket + * notation to signify nested data. + * + * credit: https://github.com/FranBar1966/FlatPHP + */ + public static function flatten(array $source, string $start = ''): array + { + $opt = [ + 'prefix' => '[', + 'suffix' => ']', + 'suffix-end' => true, + 'prefix-list' => '[', + 'suffix-list' => ']', + 'suffix-list-end' => true, + ]; + + if ($start === '') { + $currentPrefix = ''; + $currentSuffix = ''; + $currentSuffixEnd = false; + } elseif (array_is_list($source)) { + $currentPrefix = $opt['prefix-list']; + $currentSuffix = $opt['suffix-list']; + $currentSuffixEnd = $opt['suffix-list-end']; + } else { + $currentPrefix = $opt['prefix']; + $currentSuffix = $opt['suffix']; + $currentSuffixEnd = $opt['suffix-end']; + } + + $currentName = $start; + $result = []; + + foreach ($source as $key => $val) { + $currentName .= $currentPrefix.$key; + + if (is_array($val) && !empty($val)) { + $currentName .= $currentSuffix; + $result += self::flatten($val, $currentName); + } else { + if ($currentSuffixEnd) { + $currentName .= $currentSuffix; + } + + if (is_resource($val)) { + $result[$currentName] = $val; + } else { + $result[$currentName] = ObjectSerializer::toString($val); + } + } + + $currentName = $start; + } + + return $result; + } + + /** + * formdata must be limited to scalars or arrays of scalar values, + * or a resource for a file upload. Here we iterate through all available + * data and identify how to handle each scenario + */ + protected function makeFormSafe($value) + { + if ($value instanceof SplFileObject) { + return $this->processFiles([$value])[0]; + } + + if (is_resource($value)) { + $this->has_file = true; + + return $value; + } + + if ($value instanceof ModelInterface) { + return $this->processModel($value); + } + + if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) { + $data = []; + + foreach ($value as $k => $v) { + $data[$k] = $this->makeFormSafe($v); + } + + return $data; + } + + return ObjectSerializer::toString($value); + } + + /** + * We are able to handle nested ModelInterface. We do not simply call + * json_decode(json_encode()) because any given model may have binary data + * or other data that cannot be serialized to a JSON string + */ + protected function processModel(ModelInterface $model): array + { + $result = []; + + foreach ($model::openAPITypes() as $name => $type) { + $value = $model->offsetGet($name); + + if ($value === null) { + continue; + } + + if (strpos($type, '\SplFileObject') !== false) { + $file = is_array($value) ? $value : [$value]; + $result[$name] = $this->processFiles($file); + + continue; + } + + if ($value instanceof ModelInterface) { + $result[$name] = $this->processModel($value); + + continue; + } + + if (is_array($value) || is_object($value)) { + $result[$name] = $this->makeFormSafe($value); + + continue; + } + + $result[$name] = ObjectSerializer::toString($value); + } + + return $result; + } + + /** + * Handle file data + */ + protected function processFiles(array $files): array + { + $this->has_file = true; + + $result = []; + + foreach ($files as $i => $file) { + if (is_array($file)) { + $result[$i] = $this->processFiles($file); + + continue; + } + + if ($file instanceof StreamInterface) { + $result[$i] = $file; + + continue; + } + + if ($file instanceof SplFileObject) { + $result[$i] = $this->tryFopen($file); + } + } + + return $result; + } + + private function tryFopen(SplFileObject $file) + { + return Utils::tryFopen($file->getRealPath(), 'rb'); + } +} diff --git a/codegen/Crm/Imports/HeaderSelector.php b/codegen/Crm/Imports/HeaderSelector.php index b2b2fe30..8dbad148 100644 --- a/codegen/Crm/Imports/HeaderSelector.php +++ b/codegen/Crm/Imports/HeaderSelector.php @@ -1,7 +1,7 @@ '\DateTime', + 'links' => 'array', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'links' => 'array', 'status' => 'string' ]; @@ -73,9 +73,9 @@ class ActionResponse implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'completed_at' => 'date-time', + 'links' => null, 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'links' => null, 'status' => null ]; @@ -86,9 +86,9 @@ class ActionResponse implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'completed_at' => false, + 'links' => false, 'requested_at' => false, 'started_at' => false, - 'links' => false, 'status' => false ]; @@ -179,9 +179,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'completed_at' => 'completedAt', + 'links' => 'links', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'links' => 'links', 'status' => 'status' ]; @@ -192,9 +192,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'completed_at' => 'setCompletedAt', + 'links' => 'setLinks', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'links' => 'setLinks', 'status' => 'setStatus' ]; @@ -205,9 +205,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'completed_at' => 'getCompletedAt', + 'links' => 'getLinks', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'links' => 'getLinks', 'status' => 'getStatus' ]; @@ -252,10 +252,10 @@ public function getModelName() return self::$openAPIModelName; } - public const STATUS_PENDING = 'PENDING'; - public const STATUS_PROCESSING = 'PROCESSING'; public const STATUS_CANCELED = 'CANCELED'; public const STATUS_COMPLETE = 'COMPLETE'; + public const STATUS_PENDING = 'PENDING'; + public const STATUS_PROCESSING = 'PROCESSING'; /** * Gets allowable values of the enum @@ -265,10 +265,10 @@ public function getModelName() public function getStatusAllowableValues() { return [ - self::STATUS_PENDING, - self::STATUS_PROCESSING, self::STATUS_CANCELED, self::STATUS_COMPLETE, + self::STATUS_PENDING, + self::STATUS_PROCESSING, ]; } @@ -288,9 +288,9 @@ public function getStatusAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); + $this->setIfExists('links', $data ?? [], null); $this->setIfExists('requested_at', $data ?? [], null); $this->setIfExists('started_at', $data ?? [], null); - $this->setIfExists('links', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); } @@ -367,7 +367,7 @@ public function getCompletedAt() /** * Sets completed_at * - * @param \DateTime $completed_at completed_at + * @param \DateTime $completed_at The timestamp when the action was completed, in ISO 8601 format. * * @return self */ @@ -381,6 +381,33 @@ public function setCompletedAt($completed_at) return $this; } + /** + * Gets links + * + * @return array|null + */ + public function getLinks() + { + return $this->container['links']; + } + + /** + * Sets links + * + * @param array|null $links An optional collection of related links associated with the import. + * + * @return self + */ + public function setLinks($links) + { + if (is_null($links)) { + throw new \InvalidArgumentException('non-nullable links cannot be null'); + } + $this->container['links'] = $links; + + return $this; + } + /** * Gets requested_at * @@ -394,7 +421,7 @@ public function getRequestedAt() /** * Sets requested_at * - * @param \DateTime|null $requested_at requested_at + * @param \DateTime|null $requested_at The timestamp when the export request was made, in ISO 8601 format. * * @return self */ @@ -421,7 +448,7 @@ public function getStartedAt() /** * Sets started_at * - * @param \DateTime $started_at started_at + * @param \DateTime $started_at The timestamp when the action was started, in ISO 8601 format. * * @return self */ @@ -435,33 +462,6 @@ public function setStartedAt($started_at) return $this; } - /** - * Gets links - * - * @return array|null - */ - public function getLinks() - { - return $this->container['links']; - } - - /** - * Sets links - * - * @param array|null $links links - * - * @return self - */ - public function setLinks($links) - { - if (is_null($links)) { - throw new \InvalidArgumentException('non-nullable links cannot be null'); - } - $this->container['links'] = $links; - - return $this; - } - /** * Gets status * @@ -475,7 +475,7 @@ public function getStatus() /** * Sets status * - * @param string $status status + * @param string $status An enum representing the lifecycle state of the action. * * @return self */ @@ -501,11 +501,11 @@ public function setStatus($status) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -513,12 +513,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -543,11 +543,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/CollectionResponsePublicImportErrorForwardPaging.php b/codegen/Crm/Imports/Model/CollectionResponsePublicImportErrorForwardPaging.php index 51293c0c..dcca47e9 100644 --- a/codegen/Crm/Imports/Model/CollectionResponsePublicImportErrorForwardPaging.php +++ b/codegen/Crm/Imports/Model/CollectionResponsePublicImportErrorForwardPaging.php @@ -2,7 +2,7 @@ /** * CollectionResponsePublicImportErrorForwardPaging * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -355,11 +355,11 @@ public function setResults($results) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -367,12 +367,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -397,11 +397,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/CollectionResponsePublicImportResponse.php b/codegen/Crm/Imports/Model/CollectionResponsePublicImportResponse.php index 1d9c4ac7..eb7cffdc 100644 --- a/codegen/Crm/Imports/Model/CollectionResponsePublicImportResponse.php +++ b/codegen/Crm/Imports/Model/CollectionResponsePublicImportResponse.php @@ -2,7 +2,7 @@ /** * CollectionResponsePublicImportResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -355,11 +355,11 @@ public function setResults($results) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -367,12 +367,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -397,11 +397,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/Error.php b/codegen/Crm/Imports/Model/Error.php index fcab0c83..54d31c06 100644 --- a/codegen/Crm/Imports/Model/Error.php +++ b/codegen/Crm/Imports/Model/Error.php @@ -2,7 +2,7 @@ /** * Error * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.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\Imports\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Crm\Imports\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\Imports\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Crm\Imports\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,66 +503,39 @@ 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\Imports\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\Imports\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; } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -543,12 +543,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -573,11 +573,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/ErrorDetail.php b/codegen/Crm/Imports/Model/ErrorDetail.php index 3a982809..8f9b87dc 100644 --- a/codegen/Crm/Imports/Model/ErrorDetail.php +++ b/codegen/Crm/Imports/Model/ErrorDetail.php @@ -2,7 +2,7 @@ /** * ErrorDetail * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.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,66 +402,66 @@ 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; } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -469,12 +469,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -499,11 +499,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/ForwardPaging.php b/codegen/Crm/Imports/Model/ForwardPaging.php index 4d979d64..25877dc1 100644 --- a/codegen/Crm/Imports/Model/ForwardPaging.php +++ b/codegen/Crm/Imports/Model/ForwardPaging.php @@ -2,7 +2,7 @@ /** * ForwardPaging * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -318,11 +318,11 @@ public function setNext($next) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -330,12 +330,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -360,11 +360,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/ImportRowCore.php b/codegen/Crm/Imports/Model/ImportRowCore.php index 10d58660..fc8d60d7 100644 --- a/codegen/Crm/Imports/Model/ImportRowCore.php +++ b/codegen/Crm/Imports/Model/ImportRowCore.php @@ -2,7 +2,7 @@ /** * ImportRowCore * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ImportRowCore implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'row_data' => 'string[]', 'contains_encrypted_properties' => 'bool', + 'file_id' => 'int', 'line_number' => 'int', 'page_name' => 'string', - 'file_id' => 'int' + 'row_data' => 'string[]' ]; /** @@ -72,11 +72,11 @@ class ImportRowCore implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'row_data' => null, 'contains_encrypted_properties' => null, + 'file_id' => 'int32', 'line_number' => 'int32', 'page_name' => null, - 'file_id' => 'int32' + 'row_data' => null ]; /** @@ -85,11 +85,11 @@ class ImportRowCore implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'row_data' => false, 'contains_encrypted_properties' => false, + 'file_id' => false, 'line_number' => false, 'page_name' => false, - 'file_id' => false + 'row_data' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'row_data' => 'rowData', 'contains_encrypted_properties' => 'containsEncryptedProperties', + 'file_id' => 'fileId', 'line_number' => 'lineNumber', 'page_name' => 'pageName', - 'file_id' => 'fileId' + 'row_data' => 'rowData' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'row_data' => 'setRowData', 'contains_encrypted_properties' => 'setContainsEncryptedProperties', + 'file_id' => 'setFileId', 'line_number' => 'setLineNumber', 'page_name' => 'setPageName', - 'file_id' => 'setFileId' + 'row_data' => 'setRowData' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'row_data' => 'getRowData', 'contains_encrypted_properties' => 'getContainsEncryptedProperties', + 'file_id' => 'getFileId', 'line_number' => 'getLineNumber', 'page_name' => 'getPageName', - 'file_id' => 'getFileId' + 'row_data' => 'getRowData' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('row_data', $data ?? [], null); $this->setIfExists('contains_encrypted_properties', $data ?? [], null); + $this->setIfExists('file_id', $data ?? [], null); $this->setIfExists('line_number', $data ?? [], null); $this->setIfExists('page_name', $data ?? [], null); - $this->setIfExists('file_id', $data ?? [], null); + $this->setIfExists('row_data', $data ?? [], null); } /** @@ -302,17 +302,17 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['row_data'] === null) { - $invalidProperties[] = "'row_data' can't be null"; - } if ($this->container['contains_encrypted_properties'] === null) { $invalidProperties[] = "'contains_encrypted_properties' can't be null"; } + if ($this->container['file_id'] === null) { + $invalidProperties[] = "'file_id' can't be null"; + } if ($this->container['line_number'] === null) { $invalidProperties[] = "'line_number' can't be null"; } - if ($this->container['file_id'] === null) { - $invalidProperties[] = "'file_id' can't be null"; + if ($this->container['row_data'] === null) { + $invalidProperties[] = "'row_data' can't be null"; } return $invalidProperties; } @@ -330,55 +330,55 @@ public function valid() /** - * Gets row_data + * Gets contains_encrypted_properties * - * @return string[] + * @return bool */ - public function getRowData() + public function getContainsEncryptedProperties() { - return $this->container['row_data']; + return $this->container['contains_encrypted_properties']; } /** - * Sets row_data + * Sets contains_encrypted_properties * - * @param string[] $row_data row_data + * @param bool $contains_encrypted_properties Indicates whether this row contains values that were encrypted. * * @return self */ - public function setRowData($row_data) + public function setContainsEncryptedProperties($contains_encrypted_properties) { - if (is_null($row_data)) { - throw new \InvalidArgumentException('non-nullable row_data cannot be null'); + if (is_null($contains_encrypted_properties)) { + throw new \InvalidArgumentException('non-nullable contains_encrypted_properties cannot be null'); } - $this->container['row_data'] = $row_data; + $this->container['contains_encrypted_properties'] = $contains_encrypted_properties; return $this; } /** - * Gets contains_encrypted_properties + * Gets file_id * - * @return bool + * @return int */ - public function getContainsEncryptedProperties() + public function getFileId() { - return $this->container['contains_encrypted_properties']; + return $this->container['file_id']; } /** - * Sets contains_encrypted_properties + * Sets file_id * - * @param bool $contains_encrypted_properties contains_encrypted_properties + * @param int $file_id The unique identifier of the uploaded file containing this row. * * @return self */ - public function setContainsEncryptedProperties($contains_encrypted_properties) + public function setFileId($file_id) { - if (is_null($contains_encrypted_properties)) { - throw new \InvalidArgumentException('non-nullable contains_encrypted_properties cannot be null'); + if (is_null($file_id)) { + throw new \InvalidArgumentException('non-nullable file_id cannot be null'); } - $this->container['contains_encrypted_properties'] = $contains_encrypted_properties; + $this->container['file_id'] = $file_id; return $this; } @@ -396,7 +396,7 @@ public function getLineNumber() /** * Sets line_number * - * @param int $line_number line_number + * @param int $line_number The 1-indexed line number of this row in the source file. Line number 0 is reserved for file-wide errors that don't correspond to a specific row. * * @return self */ @@ -423,7 +423,7 @@ public function getPageName() /** * Sets page_name * - * @param string|null $page_name page_name + * @param string|null $page_name The name of the spreadsheet sheet/page containing this row. * * @return self */ @@ -438,39 +438,39 @@ public function setPageName($page_name) } /** - * Gets file_id + * Gets row_data * - * @return int + * @return string[] */ - public function getFileId() + public function getRowData() { - return $this->container['file_id']; + return $this->container['row_data']; } /** - * Sets file_id + * Sets row_data * - * @param int $file_id file_id + * @param string[] $row_data row_data * * @return self */ - public function setFileId($file_id) + public function setRowData($row_data) { - if (is_null($file_id)) { - throw new \InvalidArgumentException('non-nullable file_id cannot be null'); + if (is_null($row_data)) { + throw new \InvalidArgumentException('non-nullable row_data cannot be null'); } - $this->container['file_id'] = $file_id; + $this->container['row_data'] = $row_data; return $this; } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -478,12 +478,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -508,11 +508,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/ImportTemplate.php b/codegen/Crm/Imports/Model/ImportTemplate.php index de457ade..71e8a906 100644 --- a/codegen/Crm/Imports/Model/ImportTemplate.php +++ b/codegen/Crm/Imports/Model/ImportTemplate.php @@ -2,7 +2,7 @@ /** * ImportTemplate * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -57,8 +57,8 @@ class ImportTemplate implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'template_type' => 'string', - 'template_id' => 'int' + 'template_id' => 'int', + 'template_type' => 'string' ]; /** @@ -69,8 +69,8 @@ class ImportTemplate implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'template_type' => null, - 'template_id' => 'int32' + 'template_id' => 'int32', + 'template_type' => null ]; /** @@ -79,8 +79,8 @@ class ImportTemplate implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'template_type' => false, - 'template_id' => false + 'template_id' => false, + 'template_type' => false ]; /** @@ -169,8 +169,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'template_type' => 'templateType', - 'template_id' => 'templateId' + 'template_id' => 'templateId', + 'template_type' => 'templateType' ]; /** @@ -179,8 +179,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'template_type' => 'setTemplateType', - 'template_id' => 'setTemplateId' + 'template_id' => 'setTemplateId', + 'template_type' => 'setTemplateType' ]; /** @@ -189,8 +189,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'template_type' => 'getTemplateType', - 'template_id' => 'getTemplateId' + 'template_id' => 'getTemplateId', + 'template_type' => 'getTemplateType' ]; /** @@ -267,8 +267,8 @@ public function getTemplateTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('template_type', $data ?? [], null); $this->setIfExists('template_id', $data ?? [], null); + $this->setIfExists('template_type', $data ?? [], null); } /** @@ -298,6 +298,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['template_id'] === null) { + $invalidProperties[] = "'template_id' can't be null"; + } if ($this->container['template_type'] === null) { $invalidProperties[] = "'template_type' can't be null"; } @@ -310,9 +313,6 @@ public function listInvalidProperties() ); } - if ($this->container['template_id'] === null) { - $invalidProperties[] = "'template_id' can't be null"; - } return $invalidProperties; } @@ -328,6 +328,33 @@ public function valid() } + /** + * Gets template_id + * + * @return int + */ + public function getTemplateId() + { + return $this->container['template_id']; + } + + /** + * Sets template_id + * + * @param int $template_id The unique identifier for the specific saved template or previous import being referenced. + * + * @return self + */ + public function setTemplateId($template_id) + { + if (is_null($template_id)) { + throw new \InvalidArgumentException('non-nullable template_id cannot be null'); + } + $this->container['template_id'] = $template_id; + + return $this; + } + /** * Gets template_type * @@ -341,7 +368,7 @@ public function getTemplateType() /** * Sets template_type * - * @param string $template_type template_type + * @param string $template_type The classification of what type of template this represents, and what is its origin or purpose. * * @return self */ @@ -364,41 +391,14 @@ public function setTemplateType($template_type) return $this; } - - /** - * Gets template_id - * - * @return int - */ - public function getTemplateId() - { - return $this->container['template_id']; - } - - /** - * Sets template_id - * - * @param int $template_id template_id - * - * @return self - */ - public function setTemplateId($template_id) - { - if (is_null($template_id)) { - throw new \InvalidArgumentException('non-nullable template_id cannot be null'); - } - $this->container['template_id'] = $template_id; - - return $this; - } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -406,12 +406,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -436,11 +436,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/ModelInterface.php b/codegen/Crm/Imports/Model/ModelInterface.php index 699d171b..d0fd18bf 100644 --- a/codegen/Crm/Imports/Model/ModelInterface.php +++ b/codegen/Crm/Imports/Model/ModelInterface.php @@ -2,7 +2,7 @@ /** * ModelInterface * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports\Model @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Imports/Model/NextPage.php b/codegen/Crm/Imports/Model/NextPage.php index 3330fbb7..3e3474f1 100644 --- a/codegen/Crm/Imports/Model/NextPage.php +++ b/codegen/Crm/Imports/Model/NextPage.php @@ -2,7 +2,7 @@ /** * NextPage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -35,6 +35,7 @@ * NextPage Class Doc Comment * * @category Class + * @description Specifies the paging information needed to retrieve the next set of results in a paginated API response * @package HubSpot\Client\Crm\Imports * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -57,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'link' => 'string', - 'after' => 'string' + 'after' => 'string', + 'link' => 'string' ]; /** @@ -69,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'link' => null, - 'after' => null + 'after' => null, + 'link' => null ]; /** @@ -79,8 +80,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'link' => false, - 'after' => false + 'after' => false, + 'link' => false ]; /** @@ -169,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'link' => 'link', - 'after' => 'after' + 'after' => 'after', + 'link' => 'link' ]; /** @@ -179,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'link' => 'setLink', - 'after' => 'setAfter' + 'after' => 'setAfter', + 'link' => 'setLink' ]; /** @@ -189,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'link' => 'getLink', - 'after' => 'getAfter' + 'after' => 'getAfter', + 'link' => 'getLink' ]; /** @@ -250,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('link', $data ?? [], null); $this->setIfExists('after', $data ?? [], null); + $this->setIfExists('link', $data ?? [], null); } /** @@ -300,66 +301,66 @@ public function valid() /** - * Gets link + * Gets after * - * @return string|null + * @return string */ - public function getLink() + public function getAfter() { - return $this->container['link']; + return $this->container['after']; } /** - * Sets link + * Sets after * - * @param string|null $link link + * @param string $after A paging cursor token for retrieving subsequent pages. * * @return self */ - public function setLink($link) + public function setAfter($after) { - if (is_null($link)) { - throw new \InvalidArgumentException('non-nullable link cannot be null'); + if (is_null($after)) { + throw new \InvalidArgumentException('non-nullable after cannot be null'); } - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } /** - * Gets after + * Gets link * - * @return string + * @return string|null */ - public function getAfter() + public function getLink() { - return $this->container['after']; + return $this->container['link']; } /** - * Sets after + * Sets link * - * @param string $after after + * @param string|null $link A URL that can be used to retrieve the next page results. * * @return self */ - public function setAfter($after) + public function setLink($link) { - if (is_null($after)) { - throw new \InvalidArgumentException('non-nullable after cannot be null'); + if (is_null($link)) { + throw new \InvalidArgumentException('non-nullable link cannot be null'); } - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -367,12 +368,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -397,11 +398,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/Paging.php b/codegen/Crm/Imports/Model/Paging.php index 69356d32..7eae89d6 100644 --- a/codegen/Crm/Imports/Model/Paging.php +++ b/codegen/Crm/Imports/Model/Paging.php @@ -2,7 +2,7 @@ /** * Paging * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -352,11 +352,11 @@ public function setPrev($prev) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -364,12 +364,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -394,11 +394,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/PreviousPage.php b/codegen/Crm/Imports/Model/PreviousPage.php index 54686b87..a4244265 100644 --- a/codegen/Crm/Imports/Model/PreviousPage.php +++ b/codegen/Crm/Imports/Model/PreviousPage.php @@ -2,7 +2,7 @@ /** * PreviousPage * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -35,6 +35,7 @@ * PreviousPage Class Doc Comment * * @category Class + * @description specifies the paging information needed to retrieve the previous set of results in a paginated API response * @package HubSpot\Client\Crm\Imports * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -312,7 +313,7 @@ public function getBefore() /** * Sets before * - * @param string $before before + * @param string $before A paging cursor token for retrieving previous pages. * * @return self */ @@ -339,7 +340,7 @@ public function getLink() /** * Sets link * - * @param string|null $link link + * @param string|null $link A URL that can be used to retrieve the previous pages' results. * * @return self */ @@ -355,11 +356,11 @@ public function setLink($link) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -367,12 +368,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -397,11 +398,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/PropertyValue.php b/codegen/Crm/Imports/Model/PropertyValue.php index a09b4307..7308b7bf 100644 --- a/codegen/Crm/Imports/Model/PropertyValue.php +++ b/codegen/Crm/Imports/Model/PropertyValue.php @@ -2,7 +2,7 @@ /** * PropertyValue * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -35,6 +35,7 @@ * PropertyValue Class Doc Comment * * @category Class + * @description Represents a single custom property of a marketing event, storing its name, value, metadata (like source, timestamp, and sensitivity), and related audit information for tracking changes. * @package HubSpot\Client\Crm\Imports * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -57,24 +58,24 @@ class PropertyValue implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'source_id' => 'string', + 'data_sensitivity' => 'string', + 'is_encrypted' => 'bool', + 'is_large_value' => 'bool', + 'name' => 'string', + 'persistence_timestamp' => 'int', + 'request_id' => 'string', 'selected_by_user' => 'bool', - 'source_label' => 'string', + 'selected_by_user_timestamp' => 'int', 'source' => 'string', - 'updated_by_user_id' => 'int', - 'persistence_timestamp' => 'int', + 'source_id' => 'string', + 'source_label' => 'string', 'source_metadata' => 'string', - 'data_sensitivity' => 'string', 'source_vid' => 'int[]', + 'timestamp' => 'int', 'unit' => 'string', - 'request_id' => 'string', - 'is_encrypted' => 'bool', - 'name' => 'string', + 'updated_by_user_id' => 'int', 'use_timestamp_as_persistence_timestamp' => 'bool', - 'value' => 'string', - 'selected_by_user_timestamp' => 'int', - 'timestamp' => 'int', - 'is_large_value' => 'bool' + 'value' => 'string' ]; /** @@ -85,24 +86,24 @@ class PropertyValue implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'source_id' => null, + 'data_sensitivity' => null, + 'is_encrypted' => null, + 'is_large_value' => null, + 'name' => null, + 'persistence_timestamp' => 'int64', + 'request_id' => null, 'selected_by_user' => null, - 'source_label' => null, + 'selected_by_user_timestamp' => 'int64', 'source' => null, - 'updated_by_user_id' => 'int32', - 'persistence_timestamp' => 'int64', + 'source_id' => null, + 'source_label' => null, 'source_metadata' => null, - 'data_sensitivity' => null, 'source_vid' => 'int64', + 'timestamp' => 'int64', 'unit' => null, - 'request_id' => null, - 'is_encrypted' => null, - 'name' => null, + 'updated_by_user_id' => 'int32', 'use_timestamp_as_persistence_timestamp' => null, - 'value' => null, - 'selected_by_user_timestamp' => 'int64', - 'timestamp' => 'int64', - 'is_large_value' => null + 'value' => null ]; /** @@ -111,24 +112,24 @@ class PropertyValue implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'source_id' => false, + 'data_sensitivity' => false, + 'is_encrypted' => false, + 'is_large_value' => false, + 'name' => false, + 'persistence_timestamp' => false, + 'request_id' => false, 'selected_by_user' => false, - 'source_label' => false, + 'selected_by_user_timestamp' => false, 'source' => false, - 'updated_by_user_id' => false, - 'persistence_timestamp' => false, + 'source_id' => false, + 'source_label' => false, 'source_metadata' => false, - 'data_sensitivity' => false, 'source_vid' => false, + 'timestamp' => false, 'unit' => false, - 'request_id' => false, - 'is_encrypted' => false, - 'name' => false, + 'updated_by_user_id' => false, 'use_timestamp_as_persistence_timestamp' => false, - 'value' => false, - 'selected_by_user_timestamp' => false, - 'timestamp' => false, - 'is_large_value' => false + 'value' => false ]; /** @@ -217,24 +218,24 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'source_id' => 'sourceId', + 'data_sensitivity' => 'dataSensitivity', + 'is_encrypted' => 'isEncrypted', + 'is_large_value' => 'isLargeValue', + 'name' => 'name', + 'persistence_timestamp' => 'persistenceTimestamp', + 'request_id' => 'requestId', 'selected_by_user' => 'selectedByUser', - 'source_label' => 'sourceLabel', + 'selected_by_user_timestamp' => 'selectedByUserTimestamp', 'source' => 'source', - 'updated_by_user_id' => 'updatedByUserId', - 'persistence_timestamp' => 'persistenceTimestamp', + 'source_id' => 'sourceId', + 'source_label' => 'sourceLabel', 'source_metadata' => 'sourceMetadata', - 'data_sensitivity' => 'dataSensitivity', 'source_vid' => 'sourceVid', + 'timestamp' => 'timestamp', 'unit' => 'unit', - 'request_id' => 'requestId', - 'is_encrypted' => 'isEncrypted', - 'name' => 'name', + 'updated_by_user_id' => 'updatedByUserId', 'use_timestamp_as_persistence_timestamp' => 'useTimestampAsPersistenceTimestamp', - 'value' => 'value', - 'selected_by_user_timestamp' => 'selectedByUserTimestamp', - 'timestamp' => 'timestamp', - 'is_large_value' => 'isLargeValue' + 'value' => 'value' ]; /** @@ -243,24 +244,24 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'source_id' => 'setSourceId', + 'data_sensitivity' => 'setDataSensitivity', + 'is_encrypted' => 'setIsEncrypted', + 'is_large_value' => 'setIsLargeValue', + 'name' => 'setName', + 'persistence_timestamp' => 'setPersistenceTimestamp', + 'request_id' => 'setRequestId', 'selected_by_user' => 'setSelectedByUser', - 'source_label' => 'setSourceLabel', + 'selected_by_user_timestamp' => 'setSelectedByUserTimestamp', 'source' => 'setSource', - 'updated_by_user_id' => 'setUpdatedByUserId', - 'persistence_timestamp' => 'setPersistenceTimestamp', + 'source_id' => 'setSourceId', + 'source_label' => 'setSourceLabel', 'source_metadata' => 'setSourceMetadata', - 'data_sensitivity' => 'setDataSensitivity', 'source_vid' => 'setSourceVid', + 'timestamp' => 'setTimestamp', 'unit' => 'setUnit', - 'request_id' => 'setRequestId', - 'is_encrypted' => 'setIsEncrypted', - 'name' => 'setName', + 'updated_by_user_id' => 'setUpdatedByUserId', 'use_timestamp_as_persistence_timestamp' => 'setUseTimestampAsPersistenceTimestamp', - 'value' => 'setValue', - 'selected_by_user_timestamp' => 'setSelectedByUserTimestamp', - 'timestamp' => 'setTimestamp', - 'is_large_value' => 'setIsLargeValue' + 'value' => 'setValue' ]; /** @@ -269,24 +270,24 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'source_id' => 'getSourceId', + 'data_sensitivity' => 'getDataSensitivity', + 'is_encrypted' => 'getIsEncrypted', + 'is_large_value' => 'getIsLargeValue', + 'name' => 'getName', + 'persistence_timestamp' => 'getPersistenceTimestamp', + 'request_id' => 'getRequestId', 'selected_by_user' => 'getSelectedByUser', - 'source_label' => 'getSourceLabel', + 'selected_by_user_timestamp' => 'getSelectedByUserTimestamp', 'source' => 'getSource', - 'updated_by_user_id' => 'getUpdatedByUserId', - 'persistence_timestamp' => 'getPersistenceTimestamp', + 'source_id' => 'getSourceId', + 'source_label' => 'getSourceLabel', 'source_metadata' => 'getSourceMetadata', - 'data_sensitivity' => 'getDataSensitivity', 'source_vid' => 'getSourceVid', + 'timestamp' => 'getTimestamp', 'unit' => 'getUnit', - 'request_id' => 'getRequestId', - 'is_encrypted' => 'getIsEncrypted', - 'name' => 'getName', + 'updated_by_user_id' => 'getUpdatedByUserId', 'use_timestamp_as_persistence_timestamp' => 'getUseTimestampAsPersistenceTimestamp', - 'value' => 'getValue', - 'selected_by_user_timestamp' => 'getSelectedByUserTimestamp', - 'timestamp' => 'getTimestamp', - 'is_large_value' => 'getIsLargeValue' + 'value' => 'getValue' ]; /** @@ -330,100 +331,114 @@ public function getModelName() return self::$openAPIModelName; } - public const SOURCE_UNKNOWN = 'UNKNOWN'; - public const SOURCE_IMPORT = 'IMPORT'; - public const SOURCE_API = 'API'; - public const SOURCE_FORM = 'FORM'; + public const DATA_SENSITIVITY_HIGH = 'high'; + public const DATA_SENSITIVITY_NONE = 'none'; + public const DATA_SENSITIVITY_STANDARD = 'standard'; + public const SOURCE_ACADEMY = 'ACADEMY'; + public const SOURCE_ACCEPTANCE_TEST = 'ACCEPTANCE_TEST'; + public const SOURCE_ADS = 'ADS'; + public const SOURCE_AI_GROUP = 'AI_GROUP'; public const SOURCE_ANALYTICS = 'ANALYTICS'; - public const SOURCE_MIGRATION = 'MIGRATION'; - public const SOURCE_SALESFORCE = 'SALESFORCE'; - public const SOURCE_INTEGRATION = 'INTEGRATION'; - public const SOURCE_CONTACTS_WEB = 'CONTACTS_WEB'; - public const SOURCE_WAL_INCREMENTAL = 'WAL_INCREMENTAL'; - public const SOURCE_TASK = 'TASK'; - public const SOURCE_EMAIL = 'EMAIL'; - public const SOURCE_WORKFLOWS = 'WORKFLOWS'; - public const SOURCE_CALCULATED = 'CALCULATED'; - public const SOURCE_SOCIAL = 'SOCIAL'; + public const SOURCE_API = 'API'; + public const SOURCE_APPROVALS = 'APPROVALS'; + public const SOURCE_ASSISTS = 'ASSISTS'; + public const SOURCE_ASSOCIATIONS = 'ASSOCIATIONS'; + public const SOURCE_AUTOMATION_JOURNEY = 'AUTOMATION_JOURNEY'; + public const SOURCE_AUTOMATION_PLATFORM = 'AUTOMATION_PLATFORM'; + public const SOURCE_AVATARS_SERVICE = 'AVATARS_SERVICE'; public const SOURCE_BATCH_UPDATE = 'BATCH_UPDATE'; - public const SOURCE_SIGNALS = 'SIGNALS'; + public const SOURCE_BCC_TO_CRM = 'BCC_TO_CRM'; + public const SOURCE_BEHAVIORAL_EVENTS = 'BEHAVIORAL_EVENTS'; + public const SOURCE_BET_ASSIGNMENT = 'BET_ASSIGNMENT'; + public const SOURCE_BET_CRM_CONNECTOR = 'BET_CRM_CONNECTOR'; public const SOURCE_BIDEN = 'BIDEN'; - public const SOURCE__DEFAULT = 'DEFAULT'; + public const SOURCE_BILLING = 'BILLING'; + public const SOURCE_BOT = 'BOT'; + public const SOURCE_CALCULATED = 'CALCULATED'; + public const SOURCE_CHATSPOT = 'CHATSPOT'; + public const SOURCE_COMMUNICATOR = 'COMMUNICATOR'; public const SOURCE_COMPANIES = 'COMPANIES'; - public const SOURCE_DEALS = 'DEALS'; - public const SOURCE_ASSISTS = 'ASSISTS'; - public const SOURCE_PRESENTATIONS = 'PRESENTATIONS'; - public const SOURCE_TALLY = 'TALLY'; - public const SOURCE_SIDEKICK = 'SIDEKICK'; + public const SOURCE_COMPANY_FAMILIES = 'COMPANY_FAMILIES'; + public const SOURCE_COMPANY_INSIGHTS = 'COMPANY_INSIGHTS'; + public const SOURCE_CONTACTS = 'CONTACTS'; + public const SOURCE_CONTACTS_WEB = 'CONTACTS_WEB'; + public const SOURCE_CONTENT_MEMBERSHIP = 'CONTENT_MEMBERSHIP'; + public const SOURCE_CONVERSATIONS = 'CONVERSATIONS'; public const SOURCE_CRM_UI = 'CRM_UI'; - public const SOURCE_MERGE_CONTACTS = 'MERGE_CONTACTS'; - public const SOURCE_PORTAL_USER_ASSOCIATOR = 'PORTAL_USER_ASSOCIATOR'; - public const SOURCE_INTEGRATIONS_PLATFORM = 'INTEGRATIONS_PLATFORM'; - public const SOURCE_BCC_TO_CRM = 'BCC_TO_CRM'; - public const SOURCE_FORWARD_TO_CRM = 'FORWARD_TO_CRM'; + public const SOURCE_CRM_UI_BULK_ACTION = 'CRM_UI_BULK_ACTION'; + public const SOURCE_DATA_ENRICHMENT = 'DATA_ENRICHMENT'; + public const SOURCE_DEALS = 'DEALS'; + public const SOURCE__DEFAULT = 'DEFAULT'; + public const SOURCE_EMAIL = 'EMAIL'; + public const SOURCE_EMAIL_INTEGRATION = 'EMAIL_INTEGRATION'; public const SOURCE_ENGAGEMENTS = 'ENGAGEMENTS'; - public const SOURCE_SALES = 'SALES'; + public const SOURCE_EXTENSION = 'EXTENSION'; + public const SOURCE_FILE_MANAGER = 'FILE_MANAGER'; + public const SOURCE_FLYWHEEL_PRODUCT_DATA_SYNC = 'FLYWHEEL_PRODUCT_DATA_SYNC'; + public const SOURCE_FORECASTING = 'FORECASTING'; + public const SOURCE_FORM = 'FORM'; + public const SOURCE_FORWARD_TO_CRM = 'FORWARD_TO_CRM'; + public const SOURCE_GMAIL_INTEGRATION = 'GMAIL_INTEGRATION'; + public const SOURCE_GOALS = 'GOALS'; public const SOURCE_HEISENBERG = 'HEISENBERG'; + public const SOURCE_HELP_DESK = 'HELP_DESK'; + public const SOURCE_IMPORT = 'IMPORT'; + public const SOURCE_INTEGRATION = 'INTEGRATION'; + public const SOURCE_INTEGRATIONS_PLATFORM = 'INTEGRATIONS_PLATFORM'; + public const SOURCE_INTEGRATIONS_SYNC = 'INTEGRATIONS_SYNC'; + public const SOURCE_INTENT = 'INTENT'; + public const SOURCE_INTERNAL_PROCESSING = 'INTERNAL_PROCESSING'; public const SOURCE_LEADIN = 'LEADIN'; - public const SOURCE_GMAIL_INTEGRATION = 'GMAIL_INTEGRATION'; - public const SOURCE_ACADEMY = 'ACADEMY'; - public const SOURCE_SALES_MESSAGES = 'SALES_MESSAGES'; - public const SOURCE_AVATARS_SERVICE = 'AVATARS_SERVICE'; + public const SOURCE_MARKETPLACE = 'MARKETPLACE'; + public const SOURCE_MEETINGS = 'MEETINGS'; public const SOURCE_MERGE_COMPANIES = 'MERGE_COMPANIES'; - public const SOURCE_SEQUENCES = 'SEQUENCES'; - public const SOURCE_COMPANY_FAMILIES = 'COMPANY_FAMILIES'; - public const SOURCE_MOBILE_IOS = 'MOBILE_IOS'; + public const SOURCE_MERGE_CONTACTS = 'MERGE_CONTACTS'; + public const SOURCE_MERGE_OBJECTS = 'MERGE_OBJECTS'; + public const SOURCE_MICROAPPS = 'MICROAPPS'; + public const SOURCE_MIGRATION = 'MIGRATION'; public const SOURCE_MOBILE_ANDROID = 'MOBILE_ANDROID'; - public const SOURCE_CONTACTS = 'CONTACTS'; - public const SOURCE_ASSOCIATIONS = 'ASSOCIATIONS'; - public const SOURCE_EXTENSION = 'EXTENSION'; - public const SOURCE_SUCCESS = 'SUCCESS'; - public const SOURCE_BOT = 'BOT'; - public const SOURCE_INTEGRATIONS_SYNC = 'INTEGRATIONS_SYNC'; - public const SOURCE_AUTOMATION_PLATFORM = 'AUTOMATION_PLATFORM'; - public const SOURCE_CONVERSATIONS = 'CONVERSATIONS'; - public const SOURCE_EMAIL_INTEGRATION = 'EMAIL_INTEGRATION'; - public const SOURCE_CONTENT_MEMBERSHIP = 'CONTENT_MEMBERSHIP'; - public const SOURCE_QUOTES = 'QUOTES'; - public const SOURCE_BET_ASSIGNMENT = 'BET_ASSIGNMENT'; + public const SOURCE_MOBILE_IOS = 'MOBILE_IOS'; + public const SOURCE_PAYMENTS = 'PAYMENTS'; + public const SOURCE_PIPELINE_SETTINGS = 'PIPELINE_SETTINGS'; + public const SOURCE_PLAYBOOKS = 'PLAYBOOKS'; + public const SOURCE_PORTAL_OBJECT_SYNC = 'PORTAL_OBJECT_SYNC'; + public const SOURCE_PORTAL_USER_ASSOCIATOR = 'PORTAL_USER_ASSOCIATOR'; + public const SOURCE_PRESENTATIONS = 'PRESENTATIONS'; + public const SOURCE_PROPERTY_SETTINGS = 'PROPERTY_SETTINGS'; + public const SOURCE_PROSPECTING_AGENT = 'PROSPECTING_AGENT'; public const SOURCE_QUOTAS = 'QUOTAS'; - public const SOURCE_BET_CRM_CONNECTOR = 'BET_CRM_CONNECTOR'; - public const SOURCE_MEETINGS = 'MEETINGS'; - public const SOURCE_MERGE_OBJECTS = 'MERGE_OBJECTS'; + public const SOURCE_QUOTES = 'QUOTES'; public const SOURCE_RECYCLING_BIN = 'RECYCLING_BIN'; - public const SOURCE_ADS = 'ADS'; - public const SOURCE_AI_GROUP = 'AI_GROUP'; - public const SOURCE_COMMUNICATOR = 'COMMUNICATOR'; + public const SOURCE_SALES = 'SALES'; + public const SOURCE_SALES_MESSAGES = 'SALES_MESSAGES'; + public const SOURCE_SALESFORCE = 'SALESFORCE'; + public const SOURCE_SEQUENCES = 'SEQUENCES'; public const SOURCE_SETTINGS = 'SETTINGS'; - public const SOURCE_PROPERTY_SETTINGS = 'PROPERTY_SETTINGS'; - public const SOURCE_PIPELINE_SETTINGS = 'PIPELINE_SETTINGS'; - public const SOURCE_COMPANY_INSIGHTS = 'COMPANY_INSIGHTS'; - public const SOURCE_BEHAVIORAL_EVENTS = 'BEHAVIORAL_EVENTS'; - public const SOURCE_PAYMENTS = 'PAYMENTS'; - public const SOURCE_GOALS = 'GOALS'; - public const SOURCE_PORTAL_OBJECT_SYNC = 'PORTAL_OBJECT_SYNC'; - public const SOURCE_APPROVALS = 'APPROVALS'; - public const SOURCE_FILE_MANAGER = 'FILE_MANAGER'; - public const SOURCE_MARKETPLACE = 'MARKETPLACE'; - public const SOURCE_INTERNAL_PROCESSING = 'INTERNAL_PROCESSING'; - public const SOURCE_FORECASTING = 'FORECASTING'; + public const SOURCE_SIDEKICK = 'SIDEKICK'; + public const SOURCE_SIGNALS = 'SIGNALS'; public const SOURCE_SLACK_INTEGRATION = 'SLACK_INTEGRATION'; - public const SOURCE_CRM_UI_BULK_ACTION = 'CRM_UI_BULK_ACTION'; + public const SOURCE_SOCIAL = 'SOCIAL'; + public const SOURCE_SUCCESS = 'SUCCESS'; + public const SOURCE_TALLY = 'TALLY'; + public const SOURCE_TASK = 'TASK'; + public const SOURCE_UNKNOWN = 'UNKNOWN'; + public const SOURCE_WAL_INCREMENTAL = 'WAL_INCREMENTAL'; public const SOURCE_WORKFLOW_CONTACT_DELETE_ACTION = 'WORKFLOW_CONTACT_DELETE_ACTION'; - public const SOURCE_ACCEPTANCE_TEST = 'ACCEPTANCE_TEST'; - public const SOURCE_PLAYBOOKS = 'PLAYBOOKS'; - public const SOURCE_CHATSPOT = 'CHATSPOT'; - public const SOURCE_FLYWHEEL_PRODUCT_DATA_SYNC = 'FLYWHEEL_PRODUCT_DATA_SYNC'; - public const SOURCE_HELP_DESK = 'HELP_DESK'; - public const SOURCE_BILLING = 'BILLING'; - public const SOURCE_DATA_ENRICHMENT = 'DATA_ENRICHMENT'; - public const SOURCE_AUTOMATION_JOURNEY = 'AUTOMATION_JOURNEY'; - public const SOURCE_MICROAPPS = 'MICROAPPS'; - public const SOURCE_INTENT = 'INTENT'; - public const SOURCE_PROSPECTING_AGENT = 'PROSPECTING_AGENT'; - public const DATA_SENSITIVITY_NONE = 'none'; - public const DATA_SENSITIVITY_STANDARD = 'standard'; - public const DATA_SENSITIVITY_HIGH = 'high'; + public const SOURCE_WORKFLOWS = 'WORKFLOWS'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getDataSensitivityAllowableValues() + { + return [ + self::DATA_SENSITIVITY_HIGH, + self::DATA_SENSITIVITY_NONE, + self::DATA_SENSITIVITY_STANDARD, + ]; + } /** * Gets allowable values of the enum @@ -433,111 +448,97 @@ public function getModelName() public function getSourceAllowableValues() { return [ - self::SOURCE_UNKNOWN, - self::SOURCE_IMPORT, - self::SOURCE_API, - self::SOURCE_FORM, + self::SOURCE_ACADEMY, + self::SOURCE_ACCEPTANCE_TEST, + self::SOURCE_ADS, + self::SOURCE_AI_GROUP, self::SOURCE_ANALYTICS, - self::SOURCE_MIGRATION, - self::SOURCE_SALESFORCE, - self::SOURCE_INTEGRATION, - self::SOURCE_CONTACTS_WEB, - self::SOURCE_WAL_INCREMENTAL, - self::SOURCE_TASK, - self::SOURCE_EMAIL, - self::SOURCE_WORKFLOWS, - self::SOURCE_CALCULATED, - self::SOURCE_SOCIAL, + self::SOURCE_API, + self::SOURCE_APPROVALS, + self::SOURCE_ASSISTS, + self::SOURCE_ASSOCIATIONS, + self::SOURCE_AUTOMATION_JOURNEY, + self::SOURCE_AUTOMATION_PLATFORM, + self::SOURCE_AVATARS_SERVICE, self::SOURCE_BATCH_UPDATE, - self::SOURCE_SIGNALS, + self::SOURCE_BCC_TO_CRM, + self::SOURCE_BEHAVIORAL_EVENTS, + self::SOURCE_BET_ASSIGNMENT, + self::SOURCE_BET_CRM_CONNECTOR, self::SOURCE_BIDEN, - self::SOURCE__DEFAULT, + self::SOURCE_BILLING, + self::SOURCE_BOT, + self::SOURCE_CALCULATED, + self::SOURCE_CHATSPOT, + self::SOURCE_COMMUNICATOR, self::SOURCE_COMPANIES, - self::SOURCE_DEALS, - self::SOURCE_ASSISTS, - self::SOURCE_PRESENTATIONS, - self::SOURCE_TALLY, - self::SOURCE_SIDEKICK, + self::SOURCE_COMPANY_FAMILIES, + self::SOURCE_COMPANY_INSIGHTS, + self::SOURCE_CONTACTS, + self::SOURCE_CONTACTS_WEB, + self::SOURCE_CONTENT_MEMBERSHIP, + self::SOURCE_CONVERSATIONS, self::SOURCE_CRM_UI, - self::SOURCE_MERGE_CONTACTS, - self::SOURCE_PORTAL_USER_ASSOCIATOR, - self::SOURCE_INTEGRATIONS_PLATFORM, - self::SOURCE_BCC_TO_CRM, - self::SOURCE_FORWARD_TO_CRM, + self::SOURCE_CRM_UI_BULK_ACTION, + self::SOURCE_DATA_ENRICHMENT, + self::SOURCE_DEALS, + self::SOURCE__DEFAULT, + self::SOURCE_EMAIL, + self::SOURCE_EMAIL_INTEGRATION, self::SOURCE_ENGAGEMENTS, - self::SOURCE_SALES, + self::SOURCE_EXTENSION, + self::SOURCE_FILE_MANAGER, + self::SOURCE_FLYWHEEL_PRODUCT_DATA_SYNC, + self::SOURCE_FORECASTING, + self::SOURCE_FORM, + self::SOURCE_FORWARD_TO_CRM, + self::SOURCE_GMAIL_INTEGRATION, + self::SOURCE_GOALS, self::SOURCE_HEISENBERG, + self::SOURCE_HELP_DESK, + self::SOURCE_IMPORT, + self::SOURCE_INTEGRATION, + self::SOURCE_INTEGRATIONS_PLATFORM, + self::SOURCE_INTEGRATIONS_SYNC, + self::SOURCE_INTENT, + self::SOURCE_INTERNAL_PROCESSING, self::SOURCE_LEADIN, - self::SOURCE_GMAIL_INTEGRATION, - self::SOURCE_ACADEMY, - self::SOURCE_SALES_MESSAGES, - self::SOURCE_AVATARS_SERVICE, + self::SOURCE_MARKETPLACE, + self::SOURCE_MEETINGS, self::SOURCE_MERGE_COMPANIES, - self::SOURCE_SEQUENCES, - self::SOURCE_COMPANY_FAMILIES, - self::SOURCE_MOBILE_IOS, + self::SOURCE_MERGE_CONTACTS, + self::SOURCE_MERGE_OBJECTS, + self::SOURCE_MICROAPPS, + self::SOURCE_MIGRATION, self::SOURCE_MOBILE_ANDROID, - self::SOURCE_CONTACTS, - self::SOURCE_ASSOCIATIONS, - self::SOURCE_EXTENSION, - self::SOURCE_SUCCESS, - self::SOURCE_BOT, - self::SOURCE_INTEGRATIONS_SYNC, - self::SOURCE_AUTOMATION_PLATFORM, - self::SOURCE_CONVERSATIONS, - self::SOURCE_EMAIL_INTEGRATION, - self::SOURCE_CONTENT_MEMBERSHIP, - self::SOURCE_QUOTES, - self::SOURCE_BET_ASSIGNMENT, + self::SOURCE_MOBILE_IOS, + self::SOURCE_PAYMENTS, + self::SOURCE_PIPELINE_SETTINGS, + self::SOURCE_PLAYBOOKS, + self::SOURCE_PORTAL_OBJECT_SYNC, + self::SOURCE_PORTAL_USER_ASSOCIATOR, + self::SOURCE_PRESENTATIONS, + self::SOURCE_PROPERTY_SETTINGS, + self::SOURCE_PROSPECTING_AGENT, self::SOURCE_QUOTAS, - self::SOURCE_BET_CRM_CONNECTOR, - self::SOURCE_MEETINGS, - self::SOURCE_MERGE_OBJECTS, + self::SOURCE_QUOTES, self::SOURCE_RECYCLING_BIN, - self::SOURCE_ADS, - self::SOURCE_AI_GROUP, - self::SOURCE_COMMUNICATOR, + self::SOURCE_SALES, + self::SOURCE_SALES_MESSAGES, + self::SOURCE_SALESFORCE, + self::SOURCE_SEQUENCES, self::SOURCE_SETTINGS, - self::SOURCE_PROPERTY_SETTINGS, - self::SOURCE_PIPELINE_SETTINGS, - self::SOURCE_COMPANY_INSIGHTS, - self::SOURCE_BEHAVIORAL_EVENTS, - self::SOURCE_PAYMENTS, - self::SOURCE_GOALS, - self::SOURCE_PORTAL_OBJECT_SYNC, - self::SOURCE_APPROVALS, - self::SOURCE_FILE_MANAGER, - self::SOURCE_MARKETPLACE, - self::SOURCE_INTERNAL_PROCESSING, - self::SOURCE_FORECASTING, + self::SOURCE_SIDEKICK, + self::SOURCE_SIGNALS, self::SOURCE_SLACK_INTEGRATION, - self::SOURCE_CRM_UI_BULK_ACTION, + self::SOURCE_SOCIAL, + self::SOURCE_SUCCESS, + self::SOURCE_TALLY, + self::SOURCE_TASK, + self::SOURCE_UNKNOWN, + self::SOURCE_WAL_INCREMENTAL, self::SOURCE_WORKFLOW_CONTACT_DELETE_ACTION, - self::SOURCE_ACCEPTANCE_TEST, - self::SOURCE_PLAYBOOKS, - self::SOURCE_CHATSPOT, - self::SOURCE_FLYWHEEL_PRODUCT_DATA_SYNC, - self::SOURCE_HELP_DESK, - self::SOURCE_BILLING, - self::SOURCE_DATA_ENRICHMENT, - self::SOURCE_AUTOMATION_JOURNEY, - self::SOURCE_MICROAPPS, - self::SOURCE_INTENT, - self::SOURCE_PROSPECTING_AGENT, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getDataSensitivityAllowableValues() - { - return [ - self::DATA_SENSITIVITY_NONE, - self::DATA_SENSITIVITY_STANDARD, - self::DATA_SENSITIVITY_HIGH, + self::SOURCE_WORKFLOWS, ]; } @@ -556,24 +557,24 @@ public function getDataSensitivityAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('source_id', $data ?? [], null); + $this->setIfExists('data_sensitivity', $data ?? [], null); + $this->setIfExists('is_encrypted', $data ?? [], null); + $this->setIfExists('is_large_value', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('persistence_timestamp', $data ?? [], null); + $this->setIfExists('request_id', $data ?? [], null); $this->setIfExists('selected_by_user', $data ?? [], null); - $this->setIfExists('source_label', $data ?? [], null); + $this->setIfExists('selected_by_user_timestamp', $data ?? [], null); $this->setIfExists('source', $data ?? [], null); - $this->setIfExists('updated_by_user_id', $data ?? [], null); - $this->setIfExists('persistence_timestamp', $data ?? [], null); + $this->setIfExists('source_id', $data ?? [], null); + $this->setIfExists('source_label', $data ?? [], null); $this->setIfExists('source_metadata', $data ?? [], null); - $this->setIfExists('data_sensitivity', $data ?? [], null); $this->setIfExists('source_vid', $data ?? [], null); + $this->setIfExists('timestamp', $data ?? [], null); $this->setIfExists('unit', $data ?? [], null); - $this->setIfExists('request_id', $data ?? [], null); - $this->setIfExists('is_encrypted', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('updated_by_user_id', $data ?? [], null); $this->setIfExists('use_timestamp_as_persistence_timestamp', $data ?? [], null); $this->setIfExists('value', $data ?? [], null); - $this->setIfExists('selected_by_user_timestamp', $data ?? [], null); - $this->setIfExists('timestamp', $data ?? [], null); - $this->setIfExists('is_large_value', $data ?? [], null); } /** @@ -603,14 +604,38 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['source_id'] === null) { - $invalidProperties[] = "'source_id' can't be null"; + if ($this->container['data_sensitivity'] === null) { + $invalidProperties[] = "'data_sensitivity' can't be null"; + } + $allowedValues = $this->getDataSensitivityAllowableValues(); + if (!is_null($this->container['data_sensitivity']) && !in_array($this->container['data_sensitivity'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'data_sensitivity', must be one of '%s'", + $this->container['data_sensitivity'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['is_encrypted'] === null) { + $invalidProperties[] = "'is_encrypted' can't be null"; + } + if ($this->container['is_large_value'] === null) { + $invalidProperties[] = "'is_large_value' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['persistence_timestamp'] === null) { + $invalidProperties[] = "'persistence_timestamp' can't be null"; + } + if ($this->container['request_id'] === null) { + $invalidProperties[] = "'request_id' can't be null"; } if ($this->container['selected_by_user'] === null) { $invalidProperties[] = "'selected_by_user' can't be null"; } - if ($this->container['source_label'] === null) { - $invalidProperties[] = "'source_label' can't be null"; + if ($this->container['selected_by_user_timestamp'] === null) { + $invalidProperties[] = "'selected_by_user_timestamp' can't be null"; } if ($this->container['source'] === null) { $invalidProperties[] = "'source' can't be null"; @@ -624,41 +649,26 @@ public function listInvalidProperties() ); } - if ($this->container['updated_by_user_id'] === null) { - $invalidProperties[] = "'updated_by_user_id' can't be null"; + if ($this->container['source_id'] === null) { + $invalidProperties[] = "'source_id' can't be null"; } - if ($this->container['persistence_timestamp'] === null) { - $invalidProperties[] = "'persistence_timestamp' can't be null"; + if ($this->container['source_label'] === null) { + $invalidProperties[] = "'source_label' can't be null"; } if ($this->container['source_metadata'] === null) { $invalidProperties[] = "'source_metadata' can't be null"; } - if ($this->container['data_sensitivity'] === null) { - $invalidProperties[] = "'data_sensitivity' can't be null"; - } - $allowedValues = $this->getDataSensitivityAllowableValues(); - if (!is_null($this->container['data_sensitivity']) && !in_array($this->container['data_sensitivity'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'data_sensitivity', must be one of '%s'", - $this->container['data_sensitivity'], - implode("', '", $allowedValues) - ); - } - if ($this->container['source_vid'] === null) { $invalidProperties[] = "'source_vid' can't be null"; } + if ($this->container['timestamp'] === null) { + $invalidProperties[] = "'timestamp' can't be null"; + } if ($this->container['unit'] === null) { $invalidProperties[] = "'unit' can't be null"; } - if ($this->container['request_id'] === null) { - $invalidProperties[] = "'request_id' can't be null"; - } - if ($this->container['is_encrypted'] === null) { - $invalidProperties[] = "'is_encrypted' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; + if ($this->container['updated_by_user_id'] === null) { + $invalidProperties[] = "'updated_by_user_id' can't be null"; } if ($this->container['use_timestamp_as_persistence_timestamp'] === null) { $invalidProperties[] = "'use_timestamp_as_persistence_timestamp' can't be null"; @@ -666,15 +676,6 @@ public function listInvalidProperties() if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } - if ($this->container['selected_by_user_timestamp'] === null) { - $invalidProperties[] = "'selected_by_user_timestamp' can't be null"; - } - if ($this->container['timestamp'] === null) { - $invalidProperties[] = "'timestamp' can't be null"; - } - if ($this->container['is_large_value'] === null) { - $invalidProperties[] = "'is_large_value' can't be null"; - } return $invalidProperties; } @@ -691,28 +692,173 @@ public function valid() /** - * Gets source_id + * Gets data_sensitivity * * @return string */ - public function getSourceId() + public function getDataSensitivity() { - return $this->container['source_id']; + return $this->container['data_sensitivity']; + } + + /** + * Sets data_sensitivity + * + * @param string $data_sensitivity The sensitivity level of the property, such as \"non_sensitive\", \"sensitive\", and \"highly_sensitive\". + * + * @return self + */ + public function setDataSensitivity($data_sensitivity) + { + if (is_null($data_sensitivity)) { + throw new \InvalidArgumentException('non-nullable data_sensitivity cannot be null'); + } + $allowedValues = $this->getDataSensitivityAllowableValues(); + if (!in_array($data_sensitivity, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'data_sensitivity', must be one of '%s'", + $data_sensitivity, + implode("', '", $allowedValues) + ) + ); + } + $this->container['data_sensitivity'] = $data_sensitivity; + + return $this; + } + + /** + * Gets is_encrypted + * + * @return bool + */ + public function getIsEncrypted() + { + return $this->container['is_encrypted']; + } + + /** + * Sets is_encrypted + * + * @param bool $is_encrypted Whether the property value is encrypted. + * + * @return self + */ + public function setIsEncrypted($is_encrypted) + { + if (is_null($is_encrypted)) { + throw new \InvalidArgumentException('non-nullable is_encrypted cannot be null'); + } + $this->container['is_encrypted'] = $is_encrypted; + + return $this; + } + + /** + * Gets is_large_value + * + * @return bool + */ + public function getIsLargeValue() + { + return $this->container['is_large_value']; + } + + /** + * Sets is_large_value + * + * @param bool $is_large_value Indicates if the value exceeds normal size limits. + * + * @return self + */ + public function setIsLargeValue($is_large_value) + { + if (is_null($is_large_value)) { + throw new \InvalidArgumentException('non-nullable is_large_value cannot be null'); + } + $this->container['is_large_value'] = $is_large_value; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The unique property name. + * + * @return self + */ + public function setName($name) + { + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); + } + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets persistence_timestamp + * + * @return int + */ + public function getPersistenceTimestamp() + { + return $this->container['persistence_timestamp']; + } + + /** + * Sets persistence_timestamp + * + * @param int $persistence_timestamp When the value was persisted to database, in epoch milliseconds. + * + * @return self + */ + public function setPersistenceTimestamp($persistence_timestamp) + { + if (is_null($persistence_timestamp)) { + throw new \InvalidArgumentException('non-nullable persistence_timestamp cannot be null'); + } + $this->container['persistence_timestamp'] = $persistence_timestamp; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; } /** - * Sets source_id + * Sets request_id * - * @param string $source_id source_id + * @param string $request_id A unique ID associated with this request. * * @return self */ - public function setSourceId($source_id) + public function setRequestId($request_id) { - if (is_null($source_id)) { - throw new \InvalidArgumentException('non-nullable source_id cannot be null'); + if (is_null($request_id)) { + throw new \InvalidArgumentException('non-nullable request_id cannot be null'); } - $this->container['source_id'] = $source_id; + $this->container['request_id'] = $request_id; return $this; } @@ -730,7 +876,7 @@ public function getSelectedByUser() /** * Sets selected_by_user * - * @param bool $selected_by_user selected_by_user + * @param bool $selected_by_user Whether the value was selected by a user. * * @return self */ @@ -745,28 +891,28 @@ public function setSelectedByUser($selected_by_user) } /** - * Gets source_label + * Gets selected_by_user_timestamp * - * @return string + * @return int */ - public function getSourceLabel() + public function getSelectedByUserTimestamp() { - return $this->container['source_label']; + return $this->container['selected_by_user_timestamp']; } /** - * Sets source_label + * Sets selected_by_user_timestamp * - * @param string $source_label source_label + * @param int $selected_by_user_timestamp The timestamp when the value was selected by a user, if applicable. * * @return self */ - public function setSourceLabel($source_label) + public function setSelectedByUserTimestamp($selected_by_user_timestamp) { - if (is_null($source_label)) { - throw new \InvalidArgumentException('non-nullable source_label cannot be null'); + if (is_null($selected_by_user_timestamp)) { + throw new \InvalidArgumentException('non-nullable selected_by_user_timestamp cannot be null'); } - $this->container['source_label'] = $source_label; + $this->container['selected_by_user_timestamp'] = $selected_by_user_timestamp; return $this; } @@ -784,7 +930,7 @@ public function getSource() /** * Sets source * - * @param string $source source + * @param string $source The origin of the property value, such as \"IMPORT\" or \"API\". * * @return self */ @@ -809,55 +955,55 @@ public function setSource($source) } /** - * Gets updated_by_user_id + * Gets source_id * - * @return int + * @return string */ - public function getUpdatedByUserId() + public function getSourceId() { - return $this->container['updated_by_user_id']; + return $this->container['source_id']; } /** - * Sets updated_by_user_id + * Sets source_id * - * @param int $updated_by_user_id updated_by_user_id + * @param string $source_id The ID of the property source indicating where it was created. * * @return self */ - public function setUpdatedByUserId($updated_by_user_id) + public function setSourceId($source_id) { - if (is_null($updated_by_user_id)) { - throw new \InvalidArgumentException('non-nullable updated_by_user_id cannot be null'); + if (is_null($source_id)) { + throw new \InvalidArgumentException('non-nullable source_id cannot be null'); } - $this->container['updated_by_user_id'] = $updated_by_user_id; + $this->container['source_id'] = $source_id; return $this; } /** - * Gets persistence_timestamp + * Gets source_label * - * @return int + * @return string */ - public function getPersistenceTimestamp() + public function getSourceLabel() { - return $this->container['persistence_timestamp']; + return $this->container['source_label']; } /** - * Sets persistence_timestamp + * Sets source_label * - * @param int $persistence_timestamp persistence_timestamp + * @param string $source_label A human-readable label. * * @return self */ - public function setPersistenceTimestamp($persistence_timestamp) + public function setSourceLabel($source_label) { - if (is_null($persistence_timestamp)) { - throw new \InvalidArgumentException('non-nullable persistence_timestamp cannot be null'); + if (is_null($source_label)) { + throw new \InvalidArgumentException('non-nullable source_label cannot be null'); } - $this->container['persistence_timestamp'] = $persistence_timestamp; + $this->container['source_label'] = $source_label; return $this; } @@ -875,7 +1021,7 @@ public function getSourceMetadata() /** * Sets source_metadata * - * @param string $source_metadata source_metadata + * @param string $source_metadata Metadata providing additional context about the source. * * @return self */ @@ -889,43 +1035,6 @@ public function setSourceMetadata($source_metadata) return $this; } - /** - * Gets data_sensitivity - * - * @return string - */ - public function getDataSensitivity() - { - return $this->container['data_sensitivity']; - } - - /** - * Sets data_sensitivity - * - * @param string $data_sensitivity data_sensitivity - * - * @return self - */ - public function setDataSensitivity($data_sensitivity) - { - if (is_null($data_sensitivity)) { - throw new \InvalidArgumentException('non-nullable data_sensitivity cannot be null'); - } - $allowedValues = $this->getDataSensitivityAllowableValues(); - if (!in_array($data_sensitivity, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'data_sensitivity', must be one of '%s'", - $data_sensitivity, - implode("', '", $allowedValues) - ) - ); - } - $this->container['data_sensitivity'] = $data_sensitivity; - - return $this; - } - /** * Gets source_vid * @@ -939,7 +1048,7 @@ public function getSourceVid() /** * Sets source_vid * - * @param int[] $source_vid source_vid + * @param int[] $source_vid The unique identifier associated with the source. * * @return self */ @@ -954,109 +1063,82 @@ public function setSourceVid($source_vid) } /** - * Gets unit + * Gets timestamp * - * @return string + * @return int */ - public function getUnit() + public function getTimestamp() { - return $this->container['unit']; + return $this->container['timestamp']; } /** - * Sets unit + * Sets timestamp * - * @param string $unit unit + * @param int $timestamp When the value was set, as a 64-bit integer. * * @return self */ - public function setUnit($unit) + public function setTimestamp($timestamp) { - if (is_null($unit)) { - throw new \InvalidArgumentException('non-nullable unit cannot be null'); + if (is_null($timestamp)) { + throw new \InvalidArgumentException('non-nullable timestamp cannot be null'); } - $this->container['unit'] = $unit; + $this->container['timestamp'] = $timestamp; return $this; } /** - * Gets request_id + * Gets unit * * @return string */ - public function getRequestId() - { - return $this->container['request_id']; - } - - /** - * Sets request_id - * - * @param string $request_id request_id - * - * @return self - */ - public function setRequestId($request_id) - { - if (is_null($request_id)) { - throw new \InvalidArgumentException('non-nullable request_id cannot be null'); - } - $this->container['request_id'] = $request_id; - - return $this; - } - - /** - * Gets is_encrypted - * - * @return bool - */ - public function getIsEncrypted() + public function getUnit() { - return $this->container['is_encrypted']; + return $this->container['unit']; } /** - * Sets is_encrypted + * Sets unit * - * @param bool $is_encrypted is_encrypted + * @param string $unit The unit of measurement or context for the value. * * @return self */ - public function setIsEncrypted($is_encrypted) + public function setUnit($unit) { - if (is_null($is_encrypted)) { - throw new \InvalidArgumentException('non-nullable is_encrypted cannot be null'); + if (is_null($unit)) { + throw new \InvalidArgumentException('non-nullable unit cannot be null'); } - $this->container['is_encrypted'] = $is_encrypted; + $this->container['unit'] = $unit; return $this; } /** - * Gets name + * Gets updated_by_user_id * - * @return string + * @return int */ - public function getName() + public function getUpdatedByUserId() { - return $this->container['name']; + return $this->container['updated_by_user_id']; } /** - * Sets name + * Sets updated_by_user_id * - * @param string $name name + * @param int $updated_by_user_id The ID of the user who updated the property. * * @return self */ - public function setName($name) + public function setUpdatedByUserId($updated_by_user_id) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($updated_by_user_id)) { + throw new \InvalidArgumentException('non-nullable updated_by_user_id cannot be null'); } - $this->container['name'] = $name; + $this->container['updated_by_user_id'] = $updated_by_user_id; return $this; } @@ -1074,7 +1156,7 @@ public function getUseTimestampAsPersistenceTimestamp() /** * Sets use_timestamp_as_persistence_timestamp * - * @param bool $use_timestamp_as_persistence_timestamp use_timestamp_as_persistence_timestamp + * @param bool $use_timestamp_as_persistence_timestamp Flag indicating whether to use the timestamp field as the persistence timestamp. * * @return self */ @@ -1101,7 +1183,7 @@ public function getValue() /** * Sets value * - * @param string $value value + * @param string $value The property value. * * @return self */ @@ -1114,95 +1196,14 @@ public function setValue($value) return $this; } - - /** - * Gets selected_by_user_timestamp - * - * @return int - */ - public function getSelectedByUserTimestamp() - { - return $this->container['selected_by_user_timestamp']; - } - - /** - * Sets selected_by_user_timestamp - * - * @param int $selected_by_user_timestamp selected_by_user_timestamp - * - * @return self - */ - public function setSelectedByUserTimestamp($selected_by_user_timestamp) - { - if (is_null($selected_by_user_timestamp)) { - throw new \InvalidArgumentException('non-nullable selected_by_user_timestamp cannot be null'); - } - $this->container['selected_by_user_timestamp'] = $selected_by_user_timestamp; - - return $this; - } - - /** - * Gets timestamp - * - * @return int - */ - public function getTimestamp() - { - return $this->container['timestamp']; - } - - /** - * Sets timestamp - * - * @param int $timestamp timestamp - * - * @return self - */ - public function setTimestamp($timestamp) - { - if (is_null($timestamp)) { - throw new \InvalidArgumentException('non-nullable timestamp cannot be null'); - } - $this->container['timestamp'] = $timestamp; - - return $this; - } - - /** - * Gets is_large_value - * - * @return bool - */ - public function getIsLargeValue() - { - return $this->container['is_large_value']; - } - - /** - * Sets is_large_value - * - * @param bool $is_large_value is_large_value - * - * @return self - */ - public function setIsLargeValue($is_large_value) - { - if (is_null($is_large_value)) { - throw new \InvalidArgumentException('non-nullable is_large_value cannot be null'); - } - $this->container['is_large_value'] = $is_large_value; - - return $this; - } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -1210,12 +1211,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -1240,11 +1241,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/PublicImportError.php b/codegen/Crm/Imports/Model/PublicImportError.php index 204bda9e..628f8c6b 100644 --- a/codegen/Crm/Imports/Model/PublicImportError.php +++ b/codegen/Crm/Imports/Model/PublicImportError.php @@ -2,7 +2,7 @@ /** * PublicImportError * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -58,17 +58,17 @@ class PublicImportError implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPITypes = [ 'created_at' => 'int', - 'extra_context' => 'string', - 'object_type_id' => 'string', + 'error_message' => 'string', 'error_type' => 'string', + 'extra_context' => 'string', + 'id' => 'string', 'invalid_property_value' => '\HubSpot\Client\Crm\Imports\Model\PropertyValue', - 'error_message' => 'string', - 'known_column_number' => 'int', + 'invalid_value' => 'string', 'invalid_value_to_display' => 'string', - 'id' => 'string', - 'source_data' => '\HubSpot\Client\Crm\Imports\Model\ImportRowCore', + 'known_column_number' => 'int', 'object_type' => 'string', - 'invalid_value' => 'string' + 'object_type_id' => 'string', + 'source_data' => '\HubSpot\Client\Crm\Imports\Model\ImportRowCore' ]; /** @@ -80,17 +80,17 @@ class PublicImportError implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPIFormats = [ 'created_at' => 'int32', - 'extra_context' => null, - 'object_type_id' => null, + 'error_message' => null, 'error_type' => null, + 'extra_context' => null, + 'id' => null, 'invalid_property_value' => null, - 'error_message' => null, - 'known_column_number' => 'int32', + 'invalid_value' => null, 'invalid_value_to_display' => null, - 'id' => null, - 'source_data' => null, + 'known_column_number' => 'int32', 'object_type' => null, - 'invalid_value' => null + 'object_type_id' => null, + 'source_data' => null ]; /** @@ -100,17 +100,17 @@ class PublicImportError implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static array $openAPINullables = [ 'created_at' => false, - 'extra_context' => false, - 'object_type_id' => false, + 'error_message' => false, 'error_type' => false, + 'extra_context' => false, + 'id' => false, 'invalid_property_value' => false, - 'error_message' => false, - 'known_column_number' => false, + 'invalid_value' => false, 'invalid_value_to_display' => false, - 'id' => false, - 'source_data' => false, + 'known_column_number' => false, 'object_type' => false, - 'invalid_value' => false + 'object_type_id' => false, + 'source_data' => false ]; /** @@ -200,17 +200,17 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'created_at' => 'createdAt', - 'extra_context' => 'extraContext', - 'object_type_id' => 'objectTypeId', + 'error_message' => 'errorMessage', 'error_type' => 'errorType', + 'extra_context' => 'extraContext', + 'id' => 'id', 'invalid_property_value' => 'invalidPropertyValue', - 'error_message' => 'errorMessage', - 'known_column_number' => 'knownColumnNumber', + 'invalid_value' => 'invalidValue', 'invalid_value_to_display' => 'invalidValueToDisplay', - 'id' => 'id', - 'source_data' => 'sourceData', + 'known_column_number' => 'knownColumnNumber', 'object_type' => 'objectType', - 'invalid_value' => 'invalidValue' + 'object_type_id' => 'objectTypeId', + 'source_data' => 'sourceData' ]; /** @@ -220,17 +220,17 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'created_at' => 'setCreatedAt', - 'extra_context' => 'setExtraContext', - 'object_type_id' => 'setObjectTypeId', + 'error_message' => 'setErrorMessage', 'error_type' => 'setErrorType', + 'extra_context' => 'setExtraContext', + 'id' => 'setId', 'invalid_property_value' => 'setInvalidPropertyValue', - 'error_message' => 'setErrorMessage', - 'known_column_number' => 'setKnownColumnNumber', + 'invalid_value' => 'setInvalidValue', 'invalid_value_to_display' => 'setInvalidValueToDisplay', - 'id' => 'setId', - 'source_data' => 'setSourceData', + 'known_column_number' => 'setKnownColumnNumber', 'object_type' => 'setObjectType', - 'invalid_value' => 'setInvalidValue' + 'object_type_id' => 'setObjectTypeId', + 'source_data' => 'setSourceData' ]; /** @@ -240,17 +240,17 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'created_at' => 'getCreatedAt', - 'extra_context' => 'getExtraContext', - 'object_type_id' => 'getObjectTypeId', + 'error_message' => 'getErrorMessage', 'error_type' => 'getErrorType', + 'extra_context' => 'getExtraContext', + 'id' => 'getId', 'invalid_property_value' => 'getInvalidPropertyValue', - 'error_message' => 'getErrorMessage', - 'known_column_number' => 'getKnownColumnNumber', + 'invalid_value' => 'getInvalidValue', 'invalid_value_to_display' => 'getInvalidValueToDisplay', - 'id' => 'getId', - 'source_data' => 'getSourceData', + 'known_column_number' => 'getKnownColumnNumber', 'object_type' => 'getObjectType', - 'invalid_value' => 'getInvalidValue' + 'object_type_id' => 'getObjectTypeId', + 'source_data' => 'getSourceData' ]; /** @@ -294,230 +294,230 @@ public function getModelName() return self::$openAPIModelName; } - public const ERROR_TYPE_INCORRECT_NUMBER_OF_COLUMNS = 'INCORRECT_NUMBER_OF_COLUMNS'; - public const ERROR_TYPE_INVALID_OBJECT_ID = 'INVALID_OBJECT_ID'; - public const ERROR_TYPE_INVALID_ASSOCIATION_IDENTIFIER = 'INVALID_ASSOCIATION_IDENTIFIER'; - public const ERROR_TYPE_NO_OBJECT_ID_FROM_ASSOCIATION_IDENTIFIER = 'NO_OBJECT_ID_FROM_ASSOCIATION_IDENTIFIER'; - public const ERROR_TYPE_MULTIPLE_COMPANIES_WITH_THIS_DOMAIN = 'MULTIPLE_COMPANIES_WITH_THIS_DOMAIN'; - public const ERROR_TYPE_PROPERTY_DEFINITION_NOT_FOUND = 'PROPERTY_DEFINITION_NOT_FOUND'; - public const ERROR_TYPE_PROPERTY_VALUE_NOT_FOUND = 'PROPERTY_VALUE_NOT_FOUND'; - public const ERROR_TYPE_COULD_NOT_FIND_OWNER = 'COULD_NOT_FIND_OWNER'; - public const ERROR_TYPE_MULTIPLE_OWNERS_FOUND = 'MULTIPLE_OWNERS_FOUND'; + public const ERROR_TYPE_AMBIGUOUS_ENUMERATION_OPTION = 'AMBIGUOUS_ENUMERATION_OPTION'; + public const ERROR_TYPE_ASSOCIATION_LABEL_NOT_FOUND = 'ASSOCIATION_LABEL_NOT_FOUND'; + public const ERROR_TYPE_ASSOCIATION_LIMIT_EXCEEDED = 'ASSOCIATION_LIMIT_EXCEEDED'; + public const ERROR_TYPE_ASSOCIATION_RECORD_NOT_FOUND = 'ASSOCIATION_RECORD_NOT_FOUND'; + public const ERROR_TYPE_COLUMN_TOO_LARGE = 'COLUMN_TOO_LARGE'; public const ERROR_TYPE_COULD_NOT_FIND_BUSINESS_UNIT = 'COULD_NOT_FIND_BUSINESS_UNIT'; - public const ERROR_TYPE_COULD_NOT_PARSE_NUMBER = 'COULD_NOT_PARSE_NUMBER'; + public const ERROR_TYPE_COULD_NOT_FIND_OWNER = 'COULD_NOT_FIND_OWNER'; public const ERROR_TYPE_COULD_NOT_PARSE_DATE = 'COULD_NOT_PARSE_DATE'; - public const ERROR_TYPE_COULD_NOT_PARSE_TERM = 'COULD_NOT_PARSE_TERM'; - public const ERROR_TYPE_OUTSIDE_VALID_TIME_RANGE = 'OUTSIDE_VALID_TIME_RANGE'; - public const ERROR_TYPE_OUTSIDE_VALID_TERM_RANGE = 'OUTSIDE_VALID_TERM_RANGE'; + public const ERROR_TYPE_COULD_NOT_PARSE_NUMBER = 'COULD_NOT_PARSE_NUMBER'; public const ERROR_TYPE_COULD_NOT_PARSE_ROW = 'COULD_NOT_PARSE_ROW'; - public const ERROR_TYPE_INVALID_ENUMERATION_OPTION = 'INVALID_ENUMERATION_OPTION'; - public const ERROR_TYPE_AMBIGUOUS_ENUMERATION_OPTION = 'AMBIGUOUS_ENUMERATION_OPTION'; - public const ERROR_TYPE_FAILED_VALIDATION = 'FAILED_VALIDATION'; + public const ERROR_TYPE_COULD_NOT_PARSE_TERM = 'COULD_NOT_PARSE_TERM'; + public const ERROR_TYPE_CREATE_ONLY_IMPORT = 'CREATE_ONLY_IMPORT'; + public const ERROR_TYPE_DUPLICATE_ALTERNATE_ID = 'DUPLICATE_ALTERNATE_ID'; + public const ERROR_TYPE_DUPLICATE_ASSOCIATION_ID = 'DUPLICATE_ASSOCIATION_ID'; + public const ERROR_TYPE_DUPLICATE_EVENT = 'DUPLICATE_EVENT'; + public const ERROR_TYPE_DUPLICATE_OBJECT_ID = 'DUPLICATE_OBJECT_ID'; + public const ERROR_TYPE_DUPLICATE_RECORD_ID = 'DUPLICATE_RECORD_ID'; + public const ERROR_TYPE_DUPLICATE_ROW_CONTENT = 'DUPLICATE_ROW_CONTENT'; + public const ERROR_TYPE_DUPLICATE_UNIQUE_PROPERTY_VALUE = 'DUPLICATE_UNIQUE_PROPERTY_VALUE'; public const ERROR_TYPE_FAILED_TO_CREATE_ASSOCIATION = 'FAILED_TO_CREATE_ASSOCIATION'; - public const ERROR_TYPE_ASSOCIATION_LIMIT_EXCEEDED = 'ASSOCIATION_LIMIT_EXCEEDED'; - public const ERROR_TYPE_FILE_NOT_FOUND = 'FILE_NOT_FOUND'; - public const ERROR_TYPE_INVALID_COLUMN_CONFIGURATION = 'INVALID_COLUMN_CONFIGURATION'; - public const ERROR_TYPE_INVALID_FILE_TYPE = 'INVALID_FILE_TYPE'; - public const ERROR_TYPE_INVALID_SPREADSHEET = 'INVALID_SPREADSHEET'; - public const ERROR_TYPE_INVALID_SHEET_COUNT = 'INVALID_SHEET_COUNT'; + public const ERROR_TYPE_FAILED_TO_OPT_OUT_CONTACT = 'FAILED_TO_OPT_OUT_CONTACT'; public const ERROR_TYPE_FAILED_TO_PROCESS_OBJECT_WITH_EMPTY_PROPERTY_VALUES = 'FAILED_TO_PROCESS_OBJECT_WITH_EMPTY_PROPERTY_VALUES'; - public const ERROR_TYPE_UNKNOWN_BAD_REQUEST = 'UNKNOWN_BAD_REQUEST'; + public const ERROR_TYPE_FAILED_VALIDATION = 'FAILED_VALIDATION'; + public const ERROR_TYPE_FILE_NOT_FOUND = 'FILE_NOT_FOUND'; public const ERROR_TYPE_GDPR_BLACKLISTED_EMAIL = 'GDPR_BLACKLISTED_EMAIL'; - public const ERROR_TYPE_DUPLICATE_ASSOCIATION_ID = 'DUPLICATE_ASSOCIATION_ID'; - public const ERROR_TYPE_LIMIT_EXCEEDED = 'LIMIT_EXCEEDED'; - public const ERROR_TYPE_PORTAL_WIDE_CUSTOM_OBJECT_LIMIT_EXCEEDED = 'PORTAL_WIDE_CUSTOM_OBJECT_LIMIT_EXCEEDED'; + public const ERROR_TYPE_INCORRECT_NUMBER_OF_COLUMNS = 'INCORRECT_NUMBER_OF_COLUMNS'; public const ERROR_TYPE_INVALID_ALTERNATE_ID = 'INVALID_ALTERNATE_ID'; - public const ERROR_TYPE_INVALID_EMAIL = 'INVALID_EMAIL'; - public const ERROR_TYPE_SECONDARY_EMAIL_WRITE_FAILURE = 'SECONDARY_EMAIL_WRITE_FAILURE'; + public const ERROR_TYPE_INVALID_ASSOCIATION_IDENTIFIER = 'INVALID_ASSOCIATION_IDENTIFIER'; + public const ERROR_TYPE_INVALID_ASSOCIATION_KEY = 'INVALID_ASSOCIATION_KEY'; + public const ERROR_TYPE_INVALID_COLUMN_CONFIGURATION = 'INVALID_COLUMN_CONFIGURATION'; + public const ERROR_TYPE_INVALID_CUSTOM_PROPERTY_VALIDATION = 'INVALID_CUSTOM_PROPERTY_VALIDATION'; public const ERROR_TYPE_INVALID_DOMAIN = 'INVALID_DOMAIN'; - public const ERROR_TYPE_DUPLICATE_ROW_CONTENT = 'DUPLICATE_ROW_CONTENT'; + public const ERROR_TYPE_INVALID_EMAIL = 'INVALID_EMAIL'; + public const ERROR_TYPE_INVALID_ENUMERATION_OPTION = 'INVALID_ENUMERATION_OPTION'; + public const ERROR_TYPE_INVALID_EVENT = 'INVALID_EVENT'; + public const ERROR_TYPE_INVALID_EVENT_TIMESTAMP = 'INVALID_EVENT_TIMESTAMP'; + public const ERROR_TYPE_INVALID_FILE_TYPE = 'INVALID_FILE_TYPE'; public const ERROR_TYPE_INVALID_NUMBER_SIZE = 'INVALID_NUMBER_SIZE'; - public const ERROR_TYPE_UNKNOWN_ERROR = 'UNKNOWN_ERROR'; - public const ERROR_TYPE_FAILED_TO_OPT_OUT_CONTACT = 'FAILED_TO_OPT_OUT_CONTACT'; + public const ERROR_TYPE_INVALID_OBJECT_ID = 'INVALID_OBJECT_ID'; + public const ERROR_TYPE_INVALID_RECORD_ID = 'INVALID_RECORD_ID'; public const ERROR_TYPE_INVALID_REQUIRED_PROPERTY = 'INVALID_REQUIRED_PROPERTY'; + public const ERROR_TYPE_INVALID_SHEET_COUNT = 'INVALID_SHEET_COUNT'; + public const ERROR_TYPE_INVALID_SPREADSHEET = 'INVALID_SPREADSHEET'; + public const ERROR_TYPE_LIMIT_EXCEEDED = 'LIMIT_EXCEEDED'; + public const ERROR_TYPE_MANY_ERRORS_IN_ROW = 'MANY_ERRORS_IN_ROW'; + public const ERROR_TYPE_MISSING_EVENT_DEFINITION = 'MISSING_EVENT_DEFINITION'; + public const ERROR_TYPE_MISSING_EVENT_TIMESTAMP = 'MISSING_EVENT_TIMESTAMP'; + public const ERROR_TYPE_MISSING_OBJECT_DEFINITION = 'MISSING_OBJECT_DEFINITION'; public const ERROR_TYPE_MISSING_REQUIRED_PROPERTY = 'MISSING_REQUIRED_PROPERTY'; - public const ERROR_TYPE_DUPLICATE_ALTERNATE_ID = 'DUPLICATE_ALTERNATE_ID'; - public const ERROR_TYPE_DUPLICATE_OBJECT_ID = 'DUPLICATE_OBJECT_ID'; - public const ERROR_TYPE_DUPLICATE_UNIQUE_PROPERTY_VALUE = 'DUPLICATE_UNIQUE_PROPERTY_VALUE'; + public const ERROR_TYPE_MULTIPLE_COMPANIES_WITH_THIS_DOMAIN = 'MULTIPLE_COMPANIES_WITH_THIS_DOMAIN'; + public const ERROR_TYPE_MULTIPLE_OWNERS_FOUND = 'MULTIPLE_OWNERS_FOUND'; + public const ERROR_TYPE_NO_OBJECT_ID_FROM_ASSOCIATION_IDENTIFIER = 'NO_OBJECT_ID_FROM_ASSOCIATION_IDENTIFIER'; + public const ERROR_TYPE_OUTSIDE_VALID_TERM_RANGE = 'OUTSIDE_VALID_TERM_RANGE'; + public const ERROR_TYPE_OUTSIDE_VALID_TIME_RANGE = 'OUTSIDE_VALID_TIME_RANGE'; + public const ERROR_TYPE_PORTAL_WIDE_CUSTOM_OBJECT_LIMIT_EXCEEDED = 'PORTAL_WIDE_CUSTOM_OBJECT_LIMIT_EXCEEDED'; + public const ERROR_TYPE_PROPERTY_DEFINITION_NOT_FOUND = 'PROPERTY_DEFINITION_NOT_FOUND'; + public const ERROR_TYPE_PROPERTY_VALUE_NOT_FOUND = 'PROPERTY_VALUE_NOT_FOUND'; + public const ERROR_TYPE_ROW_DATA_TOO_LARGE = 'ROW_DATA_TOO_LARGE'; + public const ERROR_TYPE_SECONDARY_EMAIL_WRITE_FAILURE = 'SECONDARY_EMAIL_WRITE_FAILURE'; public const ERROR_TYPE_UNKNOWN_ASSOCIATION_RECORD_ID = 'UNKNOWN_ASSOCIATION_RECORD_ID'; - public const ERROR_TYPE_INVALID_RECORD_ID = 'INVALID_RECORD_ID'; - public const ERROR_TYPE_DUPLICATE_RECORD_ID = 'DUPLICATE_RECORD_ID'; - public const ERROR_TYPE_INVALID_CUSTOM_PROPERTY_VALIDATION = 'INVALID_CUSTOM_PROPERTY_VALIDATION'; - public const ERROR_TYPE_CREATE_ONLY_IMPORT = 'CREATE_ONLY_IMPORT'; + public const ERROR_TYPE_UNKNOWN_BAD_REQUEST = 'UNKNOWN_BAD_REQUEST'; + public const ERROR_TYPE_UNKNOWN_ERROR = 'UNKNOWN_ERROR'; public const ERROR_TYPE_UPDATE_ONLY_IMPORT = 'UPDATE_ONLY_IMPORT'; - public const ERROR_TYPE_COLUMN_TOO_LARGE = 'COLUMN_TOO_LARGE'; - public const ERROR_TYPE_ROW_DATA_TOO_LARGE = 'ROW_DATA_TOO_LARGE'; - public const ERROR_TYPE_MISSING_EVENT_TIMESTAMP = 'MISSING_EVENT_TIMESTAMP'; - public const ERROR_TYPE_INVALID_EVENT_TIMESTAMP = 'INVALID_EVENT_TIMESTAMP'; - public const ERROR_TYPE_INVALID_EVENT = 'INVALID_EVENT'; - public const ERROR_TYPE_DUPLICATE_EVENT = 'DUPLICATE_EVENT'; - public const ERROR_TYPE_MISSING_EVENT_DEFINITION = 'MISSING_EVENT_DEFINITION'; - public const ERROR_TYPE_INVALID_ASSOCIATION_KEY = 'INVALID_ASSOCIATION_KEY'; - public const ERROR_TYPE_ASSOCIATION_RECORD_NOT_FOUND = 'ASSOCIATION_RECORD_NOT_FOUND'; - public const ERROR_TYPE_MISSING_OBJECT_DEFINITION = 'MISSING_OBJECT_DEFINITION'; - public const ERROR_TYPE_ASSOCIATION_LABEL_NOT_FOUND = 'ASSOCIATION_LABEL_NOT_FOUND'; - public const ERROR_TYPE_MANY_ERRORS_IN_ROW = 'MANY_ERRORS_IN_ROW'; - public const OBJECT_TYPE_CONTACT = 'CONTACT'; - public const OBJECT_TYPE_COMPANY = 'COMPANY'; - public const OBJECT_TYPE_DEAL = 'DEAL'; - public const OBJECT_TYPE_ENGAGEMENT = 'ENGAGEMENT'; - public const OBJECT_TYPE_TICKET = 'TICKET'; - public const OBJECT_TYPE_OWNER = 'OWNER'; - public const OBJECT_TYPE_PRODUCT = 'PRODUCT'; - public const OBJECT_TYPE_LINE_ITEM = 'LINE_ITEM'; - public const OBJECT_TYPE_BET_DELIVERABLE_SERVICE = 'BET_DELIVERABLE_SERVICE'; - public const OBJECT_TYPE_CONTENT = 'CONTENT'; - public const OBJECT_TYPE_CONVERSATION = 'CONVERSATION'; - public const OBJECT_TYPE_BET_ALERT = 'BET_ALERT'; - public const OBJECT_TYPE_PORTAL = 'PORTAL'; - public const OBJECT_TYPE_QUOTE = 'QUOTE'; - public const OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB = 'FORM_SUBMISSION_INBOUNDDB'; - public const OBJECT_TYPE_QUOTA = 'QUOTA'; - public const OBJECT_TYPE_UNSUBSCRIBE = 'UNSUBSCRIBE'; - public const OBJECT_TYPE_COMMUNICATION = 'COMMUNICATION'; - public const OBJECT_TYPE_FEEDBACK_SUBMISSION = 'FEEDBACK_SUBMISSION'; - public const OBJECT_TYPE_ATTRIBUTION = 'ATTRIBUTION'; - public const OBJECT_TYPE_SALESFORCE_SYNC_ERROR = 'SALESFORCE_SYNC_ERROR'; - public const OBJECT_TYPE_RESTORABLE_CRM_OBJECT = 'RESTORABLE_CRM_OBJECT'; - public const OBJECT_TYPE_HUB = 'HUB'; - public const OBJECT_TYPE_LANDING_PAGE = 'LANDING_PAGE'; - public const OBJECT_TYPE_PRODUCT_OR_FOLDER = 'PRODUCT_OR_FOLDER'; - public const OBJECT_TYPE_TASK = 'TASK'; - public const OBJECT_TYPE_FORM = 'FORM'; - public const OBJECT_TYPE_MARKETING_EMAIL = 'MARKETING_EMAIL'; + public const OBJECT_TYPE_ABANDONED_CART = 'ABANDONED_CART'; + public const OBJECT_TYPE_ACCEPTANCE_TEST = 'ACCEPTANCE_TEST'; + public const OBJECT_TYPE_AD = 'AD'; public const OBJECT_TYPE_AD_ACCOUNT = 'AD_ACCOUNT'; public const OBJECT_TYPE_AD_CAMPAIGN = 'AD_CAMPAIGN'; public const OBJECT_TYPE_AD_GROUP = 'AD_GROUP'; - public const OBJECT_TYPE_AD = 'AD'; - public const OBJECT_TYPE_KEYWORD = 'KEYWORD'; - public const OBJECT_TYPE_CAMPAIGN = 'CAMPAIGN'; - public const OBJECT_TYPE_SOCIAL_CHANNEL = 'SOCIAL_CHANNEL'; - public const OBJECT_TYPE_SOCIAL_POST = 'SOCIAL_POST'; - public const OBJECT_TYPE_SITE_PAGE = 'SITE_PAGE'; - public const OBJECT_TYPE_BLOG_POST = 'BLOG_POST'; - public const OBJECT_TYPE_IMPORT = 'IMPORT'; - public const OBJECT_TYPE_EXPORT = 'EXPORT'; - public const OBJECT_TYPE_CTA = 'CTA'; - public const OBJECT_TYPE_TASK_TEMPLATE = 'TASK_TEMPLATE'; + public const OBJECT_TYPE_AI_FORECAST = 'AI_FORECAST'; + public const OBJECT_TYPE_ALL_PAGES = 'ALL_PAGES'; + public const OBJECT_TYPE_APPROVAL = 'APPROVAL'; + public const OBJECT_TYPE_APPROVAL_STEP = 'APPROVAL_STEP'; + public const OBJECT_TYPE_ATTRIBUTION = 'ATTRIBUTION'; + public const OBJECT_TYPE_AUDIENCE = 'AUDIENCE'; + public const OBJECT_TYPE_AUTOMATION_JOURNEY = 'AUTOMATION_JOURNEY'; public const OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW = 'AUTOMATION_PLATFORM_FLOW'; - public const OBJECT_TYPE_OBJECT_LIST = 'OBJECT_LIST'; - public const OBJECT_TYPE_NOTE = 'NOTE'; - public const OBJECT_TYPE_MEETING_EVENT = 'MEETING_EVENT'; + public const OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION = 'AUTOMATION_PLATFORM_FLOW_ACTION'; + public const OBJECT_TYPE_BET_ALERT = 'BET_ALERT'; + public const OBJECT_TYPE_BET_DELIVERABLE_SERVICE = 'BET_DELIVERABLE_SERVICE'; + public const OBJECT_TYPE_BLOG_LISTING_PAGE = 'BLOG_LISTING_PAGE'; + public const OBJECT_TYPE_BLOG_POST = 'BLOG_POST'; public const OBJECT_TYPE_CALL = 'CALL'; - public const OBJECT_TYPE_EMAIL = 'EMAIL'; - public const OBJECT_TYPE_PUBLISHING_TASK = 'PUBLISHING_TASK'; - public const OBJECT_TYPE_CONVERSATION_SESSION = 'CONVERSATION_SESSION'; + public const OBJECT_TYPE_CAMPAIGN = 'CAMPAIGN'; + public const OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM = 'CAMPAIGN_BUDGET_ITEM'; + public const OBJECT_TYPE_CAMPAIGN_SPEND_ITEM = 'CAMPAIGN_SPEND_ITEM'; + public const OBJECT_TYPE_CAMPAIGN_STEP = 'CAMPAIGN_STEP'; + public const OBJECT_TYPE_CAMPAIGN_TEMPLATE = 'CAMPAIGN_TEMPLATE'; + public const OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP = 'CAMPAIGN_TEMPLATE_STEP'; + public const OBJECT_TYPE_CART = 'CART'; + public const OBJECT_TYPE_CASE_STUDY = 'CASE_STUDY'; + public const OBJECT_TYPE_CHATFLOW = 'CHATFLOW'; + public const OBJECT_TYPE_CLIP = 'CLIP'; + public const OBJECT_TYPE_CMS_URL = 'CMS_URL'; + public const OBJECT_TYPE_COMBO_EVENT_CONFIGURATION = 'COMBO_EVENT_CONFIGURATION'; + public const OBJECT_TYPE_COMMERCE_PAYMENT = 'COMMERCE_PAYMENT'; + public const OBJECT_TYPE_COMMUNICATION = 'COMMUNICATION'; + public const OBJECT_TYPE_COMPANY = 'COMPANY'; + public const OBJECT_TYPE_CONTACT = 'CONTACT'; public const OBJECT_TYPE_CONTACT_CREATE_ATTRIBUTION = 'CONTACT_CREATE_ATTRIBUTION'; - public const OBJECT_TYPE_INVOICE = 'INVOICE'; - public const OBJECT_TYPE_MARKETING_EVENT = 'MARKETING_EVENT'; + public const OBJECT_TYPE_CONTENT = 'CONTENT'; + public const OBJECT_TYPE_CONTENT_AUDIT = 'CONTENT_AUDIT'; + public const OBJECT_TYPE_CONTENT_AUDIT_PAGE = 'CONTENT_AUDIT_PAGE'; + public const OBJECT_TYPE_CONVERSATION = 'CONVERSATION'; public const OBJECT_TYPE_CONVERSATION_INBOX = 'CONVERSATION_INBOX'; - public const OBJECT_TYPE_CHATFLOW = 'CHATFLOW'; - public const OBJECT_TYPE_MEDIA_BRIDGE = 'MEDIA_BRIDGE'; - public const OBJECT_TYPE_SEQUENCE = 'SEQUENCE'; - public const OBJECT_TYPE_SEQUENCE_STEP = 'SEQUENCE_STEP'; - public const OBJECT_TYPE_FORECAST = 'FORECAST'; - public const OBJECT_TYPE_SNIPPET = 'SNIPPET'; - public const OBJECT_TYPE_TEMPLATE = 'TEMPLATE'; - public const OBJECT_TYPE_DEAL_CREATE_ATTRIBUTION = 'DEAL_CREATE_ATTRIBUTION'; - public const OBJECT_TYPE_QUOTE_TEMPLATE = 'QUOTE_TEMPLATE'; - public const OBJECT_TYPE_QUOTE_MODULE = 'QUOTE_MODULE'; - public const OBJECT_TYPE_QUOTE_MODULE_FIELD = 'QUOTE_MODULE_FIELD'; - public const OBJECT_TYPE_QUOTE_FIELD = 'QUOTE_FIELD'; - public const OBJECT_TYPE_SEQUENCE_ENROLLMENT = 'SEQUENCE_ENROLLMENT'; - public const OBJECT_TYPE_SUBSCRIPTION = 'SUBSCRIPTION'; - public const OBJECT_TYPE_ACCEPTANCE_TEST = 'ACCEPTANCE_TEST'; - public const OBJECT_TYPE_SOCIAL_BROADCAST = 'SOCIAL_BROADCAST'; - public const OBJECT_TYPE_DEAL_SPLIT = 'DEAL_SPLIT'; - public const OBJECT_TYPE_DEAL_REGISTRATION = 'DEAL_REGISTRATION'; - public const OBJECT_TYPE_GOAL_TARGET = 'GOAL_TARGET'; - public const OBJECT_TYPE_GOAL_TARGET_GROUP = 'GOAL_TARGET_GROUP'; - public const OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE = 'PORTAL_OBJECT_SYNC_MESSAGE'; - public const OBJECT_TYPE_FILE_MANAGER_FILE = 'FILE_MANAGER_FILE'; - public const OBJECT_TYPE_FILE_MANAGER_FOLDER = 'FILE_MANAGER_FOLDER'; - public const OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT = 'SEQUENCE_STEP_ENROLLMENT'; - public const OBJECT_TYPE_APPROVAL = 'APPROVAL'; - public const OBJECT_TYPE_APPROVAL_STEP = 'APPROVAL_STEP'; + public const OBJECT_TYPE_CONVERSATION_SESSION = 'CONVERSATION_SESSION'; + public const OBJECT_TYPE_CRM_OBJECTS_DUMMY_TYPE = 'CRM_OBJECTS_DUMMY_TYPE'; + public const OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE = 'CRM_PIPELINES_DUMMY_TYPE'; + public const OBJECT_TYPE_CTA = 'CTA'; public const OBJECT_TYPE_CTA_VARIANT = 'CTA_VARIANT'; - public const OBJECT_TYPE_SALES_DOCUMENT = 'SALES_DOCUMENT'; + public const OBJECT_TYPE_DATA_PRIVACY_CONSENT = 'DATA_PRIVACY_CONSENT'; + public const OBJECT_TYPE_DATA_SYNC_STATE = 'DATA_SYNC_STATE'; + public const OBJECT_TYPE_DEAL = 'DEAL'; + public const OBJECT_TYPE_DEAL_CREATE_ATTRIBUTION = 'DEAL_CREATE_ATTRIBUTION'; + public const OBJECT_TYPE_DEAL_REGISTRATION = 'DEAL_REGISTRATION'; + public const OBJECT_TYPE_DEAL_SPLIT = 'DEAL_SPLIT'; public const OBJECT_TYPE_DISCOUNT = 'DISCOUNT'; + public const OBJECT_TYPE_DISCOUNT_CODE = 'DISCOUNT_CODE'; + public const OBJECT_TYPE_DISCOUNT_TEMPLATE = 'DISCOUNT_TEMPLATE'; + public const OBJECT_TYPE_EMAIL = 'EMAIL'; + public const OBJECT_TYPE_ENGAGEMENT = 'ENGAGEMENT'; + public const OBJECT_TYPE_EXPORT = 'EXPORT'; + public const OBJECT_TYPE_EXTERNAL_WEB_URL = 'EXTERNAL_WEB_URL'; public const OBJECT_TYPE_FEE = 'FEE'; - public const OBJECT_TYPE_TAX = 'TAX'; + public const OBJECT_TYPE_FEEDBACK_SUBMISSION = 'FEEDBACK_SUBMISSION'; + public const OBJECT_TYPE_FEEDBACK_SURVEY = 'FEEDBACK_SURVEY'; + public const OBJECT_TYPE_FILE_MANAGER_FILE = 'FILE_MANAGER_FILE'; + public const OBJECT_TYPE_FILE_MANAGER_FOLDER = 'FILE_MANAGER_FOLDER'; + public const OBJECT_TYPE_FOLDER = 'FOLDER'; + public const OBJECT_TYPE_FORECAST = 'FORECAST'; + public const OBJECT_TYPE_FORM = 'FORM'; + public const OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB = 'FORM_SUBMISSION_INBOUNDDB'; + public const OBJECT_TYPE_GOAL_TARGET = 'GOAL_TARGET'; + public const OBJECT_TYPE_GOAL_TARGET_GROUP = 'GOAL_TARGET_GROUP'; + public const OBJECT_TYPE_GOAL_TEMPLATE = 'GOAL_TEMPLATE'; + public const OBJECT_TYPE_GSC_PROPERTY = 'GSC_PROPERTY'; + public const OBJECT_TYPE_HUB = 'HUB'; + public const OBJECT_TYPE_IMPORT = 'IMPORT'; + public const OBJECT_TYPE_INVOICE = 'INVOICE'; + public const OBJECT_TYPE_KEYWORD = 'KEYWORD'; + public const OBJECT_TYPE_KNOWLEDGE_ARTICLE = 'KNOWLEDGE_ARTICLE'; + public const OBJECT_TYPE_LANDING_PAGE = 'LANDING_PAGE'; + public const OBJECT_TYPE_LEAD = 'LEAD'; + public const OBJECT_TYPE_LINE_ITEM = 'LINE_ITEM'; public const OBJECT_TYPE_MARKETING_CALENDAR = 'MARKETING_CALENDAR'; + public const OBJECT_TYPE_MARKETING_CAMPAIGN_UTM = 'MARKETING_CAMPAIGN_UTM'; + public const OBJECT_TYPE_MARKETING_EMAIL = 'MARKETING_EMAIL'; + public const OBJECT_TYPE_MARKETING_EVENT = 'MARKETING_EVENT'; + public const OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE = 'MARKETING_EVENT_ATTENDANCE'; + public const OBJECT_TYPE_MARKETING_SMS = 'MARKETING_SMS'; + public const OBJECT_TYPE_MEDIA_BRIDGE = 'MEDIA_BRIDGE'; + public const OBJECT_TYPE_MEETING_EVENT = 'MEETING_EVENT'; + public const OBJECT_TYPE_MIC = 'MIC'; + public const OBJECT_TYPE_NOTE = 'NOTE'; + public const OBJECT_TYPE_OBJECT_LIST = 'OBJECT_LIST'; + public const OBJECT_TYPE_ORDER = 'ORDER'; + public const OBJECT_TYPE_OWNER = 'OWNER'; + public const OBJECT_TYPE_PARTNER_ACCOUNT = 'PARTNER_ACCOUNT'; + public const OBJECT_TYPE_PARTNER_CLIENT = 'PARTNER_CLIENT'; + public const OBJECT_TYPE_PARTNER_CLIENT_REVENUE = 'PARTNER_CLIENT_REVENUE'; + public const OBJECT_TYPE_PARTNER_SERVICE = 'PARTNER_SERVICE'; + public const OBJECT_TYPE_PAYMENT_LINK = 'PAYMENT_LINK'; + public const OBJECT_TYPE_PAYMENT_SCHEDULE = 'PAYMENT_SCHEDULE'; + public const OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT = 'PAYMENT_SCHEDULE_INSTALLMENT'; public const OBJECT_TYPE_PERMISSIONS_TESTING = 'PERMISSIONS_TESTING'; - public const OBJECT_TYPE_PRIVACY_SCANNER_COOKIE = 'PRIVACY_SCANNER_COOKIE'; - public const OBJECT_TYPE_DATA_SYNC_STATE = 'DATA_SYNC_STATE'; - public const OBJECT_TYPE_WEB_INTERACTIVE = 'WEB_INTERACTIVE'; public const OBJECT_TYPE_PLAYBOOK = 'PLAYBOOK'; - public const OBJECT_TYPE_FOLDER = 'FOLDER'; public const OBJECT_TYPE_PLAYBOOK_QUESTION = 'PLAYBOOK_QUESTION'; public const OBJECT_TYPE_PLAYBOOK_SUBMISSION = 'PLAYBOOK_SUBMISSION'; public const OBJECT_TYPE_PLAYBOOK_SUBMISSION_ANSWER = 'PLAYBOOK_SUBMISSION_ANSWER'; - public const OBJECT_TYPE_COMMERCE_PAYMENT = 'COMMERCE_PAYMENT'; - public const OBJECT_TYPE_GSC_PROPERTY = 'GSC_PROPERTY'; - public const OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE = 'SOX_PROTECTED_DUMMY_TYPE'; - public const OBJECT_TYPE_BLOG_LISTING_PAGE = 'BLOG_LISTING_PAGE'; - public const OBJECT_TYPE_QUARANTINED_SUBMISSION = 'QUARANTINED_SUBMISSION'; - public const OBJECT_TYPE_PAYMENT_SCHEDULE = 'PAYMENT_SCHEDULE'; - public const OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT = 'PAYMENT_SCHEDULE_INSTALLMENT'; - public const OBJECT_TYPE_MARKETING_CAMPAIGN_UTM = 'MARKETING_CAMPAIGN_UTM'; - public const OBJECT_TYPE_DISCOUNT_TEMPLATE = 'DISCOUNT_TEMPLATE'; - public const OBJECT_TYPE_DISCOUNT_CODE = 'DISCOUNT_CODE'; - public const OBJECT_TYPE_FEEDBACK_SURVEY = 'FEEDBACK_SURVEY'; - public const OBJECT_TYPE_CMS_URL = 'CMS_URL'; - public const OBJECT_TYPE_SALES_TASK = 'SALES_TASK'; - public const OBJECT_TYPE_SALES_WORKLOAD = 'SALES_WORKLOAD'; - public const OBJECT_TYPE_USER = 'USER'; - public const OBJECT_TYPE_POSTAL_MAIL = 'POSTAL_MAIL'; - public const OBJECT_TYPE_SCHEMAS_BACKEND_TEST = 'SCHEMAS_BACKEND_TEST'; - public const OBJECT_TYPE_PAYMENT_LINK = 'PAYMENT_LINK'; - public const OBJECT_TYPE_SUBMISSION_TAG = 'SUBMISSION_TAG'; - public const OBJECT_TYPE_CAMPAIGN_STEP = 'CAMPAIGN_STEP'; - public const OBJECT_TYPE_SCHEDULING_PAGE = 'SCHEDULING_PAGE'; - public const OBJECT_TYPE_SOX_PROTECTED_TEST_TYPE = 'SOX_PROTECTED_TEST_TYPE'; - public const OBJECT_TYPE_ORDER = 'ORDER'; - public const OBJECT_TYPE_MARKETING_SMS = 'MARKETING_SMS'; - public const OBJECT_TYPE_PARTNER_ACCOUNT = 'PARTNER_ACCOUNT'; - public const OBJECT_TYPE_CAMPAIGN_TEMPLATE = 'CAMPAIGN_TEMPLATE'; - public const OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP = 'CAMPAIGN_TEMPLATE_STEP'; public const OBJECT_TYPE_PLAYLIST = 'PLAYLIST'; - public const OBJECT_TYPE_CLIP = 'CLIP'; - public const OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM = 'CAMPAIGN_BUDGET_ITEM'; - public const OBJECT_TYPE_CAMPAIGN_SPEND_ITEM = 'CAMPAIGN_SPEND_ITEM'; - public const OBJECT_TYPE_MIC = 'MIC'; - public const OBJECT_TYPE_CONTENT_AUDIT = 'CONTENT_AUDIT'; - public const OBJECT_TYPE_CONTENT_AUDIT_PAGE = 'CONTENT_AUDIT_PAGE'; public const OBJECT_TYPE_PLAYLIST_FOLDER = 'PLAYLIST_FOLDER'; - public const OBJECT_TYPE_LEAD = 'LEAD'; - public const OBJECT_TYPE_ABANDONED_CART = 'ABANDONED_CART'; - public const OBJECT_TYPE_EXTERNAL_WEB_URL = 'EXTERNAL_WEB_URL'; - public const OBJECT_TYPE_VIEW = 'VIEW'; - public const OBJECT_TYPE_VIEW_BLOCK = 'VIEW_BLOCK'; + public const OBJECT_TYPE_PODCAST_EPISODE = 'PODCAST_EPISODE'; + public const OBJECT_TYPE_PORTAL = 'PORTAL'; + public const OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE = 'PORTAL_OBJECT_SYNC_MESSAGE'; + public const OBJECT_TYPE_POSTAL_MAIL = 'POSTAL_MAIL'; + public const OBJECT_TYPE_PRIVACY_SCANNER_COOKIE = 'PRIVACY_SCANNER_COOKIE'; + public const OBJECT_TYPE_PRODUCT = 'PRODUCT'; + public const OBJECT_TYPE_PRODUCT_OR_FOLDER = 'PRODUCT_OR_FOLDER'; + public const OBJECT_TYPE_PROPERTY_INFO = 'PROPERTY_INFO'; + public const OBJECT_TYPE_PROSPECTING_AGENT_CONTACT_ASSIGNMENT = 'PROSPECTING_AGENT_CONTACT_ASSIGNMENT'; + public const OBJECT_TYPE_PUBLISHING_TASK = 'PUBLISHING_TASK'; + public const OBJECT_TYPE_QUARANTINED_SUBMISSION = 'QUARANTINED_SUBMISSION'; + public const OBJECT_TYPE_QUOTA = 'QUOTA'; + public const OBJECT_TYPE_QUOTE = 'QUOTE'; + public const OBJECT_TYPE_QUOTE_FIELD = 'QUOTE_FIELD'; + public const OBJECT_TYPE_QUOTE_MODULE = 'QUOTE_MODULE'; + public const OBJECT_TYPE_QUOTE_MODULE_FIELD = 'QUOTE_MODULE_FIELD'; + public const OBJECT_TYPE_QUOTE_TEMPLATE = 'QUOTE_TEMPLATE'; + public const OBJECT_TYPE_RESTORABLE_CRM_OBJECT = 'RESTORABLE_CRM_OBJECT'; public const OBJECT_TYPE_ROSTER = 'ROSTER'; - public const OBJECT_TYPE_CART = 'CART'; - public const OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION = 'AUTOMATION_PLATFORM_FLOW_ACTION'; - public const OBJECT_TYPE_SOCIAL_PROFILE = 'SOCIAL_PROFILE'; - public const OBJECT_TYPE_PARTNER_CLIENT = 'PARTNER_CLIENT'; public const OBJECT_TYPE_ROSTER_MEMBER = 'ROSTER_MEMBER'; - public const OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE = 'MARKETING_EVENT_ATTENDANCE'; - public const OBJECT_TYPE_ALL_PAGES = 'ALL_PAGES'; - public const OBJECT_TYPE_AI_FORECAST = 'AI_FORECAST'; - public const OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE = 'CRM_PIPELINES_DUMMY_TYPE'; - public const OBJECT_TYPE_KNOWLEDGE_ARTICLE = 'KNOWLEDGE_ARTICLE'; - public const OBJECT_TYPE_PROPERTY_INFO = 'PROPERTY_INFO'; - public const OBJECT_TYPE_DATA_PRIVACY_CONSENT = 'DATA_PRIVACY_CONSENT'; - public const OBJECT_TYPE_GOAL_TEMPLATE = 'GOAL_TEMPLATE'; + public const OBJECT_TYPE_SALES_DOCUMENT = 'SALES_DOCUMENT'; + public const OBJECT_TYPE_SALES_TASK = 'SALES_TASK'; + public const OBJECT_TYPE_SALES_WORKLOAD = 'SALES_WORKLOAD'; + public const OBJECT_TYPE_SALESFORCE_SYNC_ERROR = 'SALESFORCE_SYNC_ERROR'; + public const OBJECT_TYPE_SCHEDULING_PAGE = 'SCHEDULING_PAGE'; + public const OBJECT_TYPE_SCHEMAS_BACKEND_TEST = 'SCHEMAS_BACKEND_TEST'; public const OBJECT_TYPE_SCORE_CONFIGURATION = 'SCORE_CONFIGURATION'; - public const OBJECT_TYPE_AUDIENCE = 'AUDIENCE'; - public const OBJECT_TYPE_PARTNER_CLIENT_REVENUE = 'PARTNER_CLIENT_REVENUE'; - public const OBJECT_TYPE_AUTOMATION_JOURNEY = 'AUTOMATION_JOURNEY'; - public const OBJECT_TYPE_COMBO_EVENT_CONFIGURATION = 'COMBO_EVENT_CONFIGURATION'; - public const OBJECT_TYPE_CRM_OBJECTS_DUMMY_TYPE = 'CRM_OBJECTS_DUMMY_TYPE'; - public const OBJECT_TYPE_CASE_STUDY = 'CASE_STUDY'; + public const OBJECT_TYPE_SEQUENCE = 'SEQUENCE'; + public const OBJECT_TYPE_SEQUENCE_ENROLLMENT = 'SEQUENCE_ENROLLMENT'; + public const OBJECT_TYPE_SEQUENCE_STEP = 'SEQUENCE_STEP'; + public const OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT = 'SEQUENCE_STEP_ENROLLMENT'; public const OBJECT_TYPE_SERVICE = 'SERVICE'; - public const OBJECT_TYPE_PODCAST_EPISODE = 'PODCAST_EPISODE'; - public const OBJECT_TYPE_PARTNER_SERVICE = 'PARTNER_SERVICE'; - public const OBJECT_TYPE_PROSPECTING_AGENT_CONTACT_ASSIGNMENT = 'PROSPECTING_AGENT_CONTACT_ASSIGNMENT'; + public const OBJECT_TYPE_SITE_PAGE = 'SITE_PAGE'; + public const OBJECT_TYPE_SNIPPET = 'SNIPPET'; + public const OBJECT_TYPE_SOCIAL_BROADCAST = 'SOCIAL_BROADCAST'; + public const OBJECT_TYPE_SOCIAL_CHANNEL = 'SOCIAL_CHANNEL'; + public const OBJECT_TYPE_SOCIAL_POST = 'SOCIAL_POST'; + public const OBJECT_TYPE_SOCIAL_PROFILE = 'SOCIAL_PROFILE'; + public const OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE = 'SOX_PROTECTED_DUMMY_TYPE'; + public const OBJECT_TYPE_SOX_PROTECTED_TEST_TYPE = 'SOX_PROTECTED_TEST_TYPE'; + public const OBJECT_TYPE_SUBMISSION_TAG = 'SUBMISSION_TAG'; + public const OBJECT_TYPE_SUBSCRIPTION = 'SUBSCRIPTION'; + public const OBJECT_TYPE_TASK = 'TASK'; + public const OBJECT_TYPE_TASK_TEMPLATE = 'TASK_TEMPLATE'; + public const OBJECT_TYPE_TAX = 'TAX'; + public const OBJECT_TYPE_TEMPLATE = 'TEMPLATE'; + public const OBJECT_TYPE_TICKET = 'TICKET'; public const OBJECT_TYPE_UNKNOWN = 'UNKNOWN'; + public const OBJECT_TYPE_UNSUBSCRIBE = 'UNSUBSCRIBE'; + public const OBJECT_TYPE_USER = 'USER'; + public const OBJECT_TYPE_VIEW = 'VIEW'; + public const OBJECT_TYPE_VIEW_BLOCK = 'VIEW_BLOCK'; + public const OBJECT_TYPE_WEB_INTERACTIVE = 'WEB_INTERACTIVE'; /** * Gets allowable values of the enum @@ -527,69 +527,69 @@ public function getModelName() public function getErrorTypeAllowableValues() { return [ - self::ERROR_TYPE_INCORRECT_NUMBER_OF_COLUMNS, - self::ERROR_TYPE_INVALID_OBJECT_ID, - self::ERROR_TYPE_INVALID_ASSOCIATION_IDENTIFIER, - self::ERROR_TYPE_NO_OBJECT_ID_FROM_ASSOCIATION_IDENTIFIER, - self::ERROR_TYPE_MULTIPLE_COMPANIES_WITH_THIS_DOMAIN, - self::ERROR_TYPE_PROPERTY_DEFINITION_NOT_FOUND, - self::ERROR_TYPE_PROPERTY_VALUE_NOT_FOUND, - self::ERROR_TYPE_COULD_NOT_FIND_OWNER, - self::ERROR_TYPE_MULTIPLE_OWNERS_FOUND, + self::ERROR_TYPE_AMBIGUOUS_ENUMERATION_OPTION, + self::ERROR_TYPE_ASSOCIATION_LABEL_NOT_FOUND, + self::ERROR_TYPE_ASSOCIATION_LIMIT_EXCEEDED, + self::ERROR_TYPE_ASSOCIATION_RECORD_NOT_FOUND, + self::ERROR_TYPE_COLUMN_TOO_LARGE, self::ERROR_TYPE_COULD_NOT_FIND_BUSINESS_UNIT, - self::ERROR_TYPE_COULD_NOT_PARSE_NUMBER, + self::ERROR_TYPE_COULD_NOT_FIND_OWNER, self::ERROR_TYPE_COULD_NOT_PARSE_DATE, - self::ERROR_TYPE_COULD_NOT_PARSE_TERM, - self::ERROR_TYPE_OUTSIDE_VALID_TIME_RANGE, - self::ERROR_TYPE_OUTSIDE_VALID_TERM_RANGE, + self::ERROR_TYPE_COULD_NOT_PARSE_NUMBER, self::ERROR_TYPE_COULD_NOT_PARSE_ROW, - self::ERROR_TYPE_INVALID_ENUMERATION_OPTION, - self::ERROR_TYPE_AMBIGUOUS_ENUMERATION_OPTION, - self::ERROR_TYPE_FAILED_VALIDATION, + self::ERROR_TYPE_COULD_NOT_PARSE_TERM, + self::ERROR_TYPE_CREATE_ONLY_IMPORT, + self::ERROR_TYPE_DUPLICATE_ALTERNATE_ID, + self::ERROR_TYPE_DUPLICATE_ASSOCIATION_ID, + self::ERROR_TYPE_DUPLICATE_EVENT, + self::ERROR_TYPE_DUPLICATE_OBJECT_ID, + self::ERROR_TYPE_DUPLICATE_RECORD_ID, + self::ERROR_TYPE_DUPLICATE_ROW_CONTENT, + self::ERROR_TYPE_DUPLICATE_UNIQUE_PROPERTY_VALUE, self::ERROR_TYPE_FAILED_TO_CREATE_ASSOCIATION, - self::ERROR_TYPE_ASSOCIATION_LIMIT_EXCEEDED, - self::ERROR_TYPE_FILE_NOT_FOUND, - self::ERROR_TYPE_INVALID_COLUMN_CONFIGURATION, - self::ERROR_TYPE_INVALID_FILE_TYPE, - self::ERROR_TYPE_INVALID_SPREADSHEET, - self::ERROR_TYPE_INVALID_SHEET_COUNT, + self::ERROR_TYPE_FAILED_TO_OPT_OUT_CONTACT, self::ERROR_TYPE_FAILED_TO_PROCESS_OBJECT_WITH_EMPTY_PROPERTY_VALUES, - self::ERROR_TYPE_UNKNOWN_BAD_REQUEST, + self::ERROR_TYPE_FAILED_VALIDATION, + self::ERROR_TYPE_FILE_NOT_FOUND, self::ERROR_TYPE_GDPR_BLACKLISTED_EMAIL, - self::ERROR_TYPE_DUPLICATE_ASSOCIATION_ID, - self::ERROR_TYPE_LIMIT_EXCEEDED, - self::ERROR_TYPE_PORTAL_WIDE_CUSTOM_OBJECT_LIMIT_EXCEEDED, + self::ERROR_TYPE_INCORRECT_NUMBER_OF_COLUMNS, self::ERROR_TYPE_INVALID_ALTERNATE_ID, - self::ERROR_TYPE_INVALID_EMAIL, - self::ERROR_TYPE_SECONDARY_EMAIL_WRITE_FAILURE, + self::ERROR_TYPE_INVALID_ASSOCIATION_IDENTIFIER, + self::ERROR_TYPE_INVALID_ASSOCIATION_KEY, + self::ERROR_TYPE_INVALID_COLUMN_CONFIGURATION, + self::ERROR_TYPE_INVALID_CUSTOM_PROPERTY_VALIDATION, self::ERROR_TYPE_INVALID_DOMAIN, - self::ERROR_TYPE_DUPLICATE_ROW_CONTENT, + self::ERROR_TYPE_INVALID_EMAIL, + self::ERROR_TYPE_INVALID_ENUMERATION_OPTION, + self::ERROR_TYPE_INVALID_EVENT, + self::ERROR_TYPE_INVALID_EVENT_TIMESTAMP, + self::ERROR_TYPE_INVALID_FILE_TYPE, self::ERROR_TYPE_INVALID_NUMBER_SIZE, - self::ERROR_TYPE_UNKNOWN_ERROR, - self::ERROR_TYPE_FAILED_TO_OPT_OUT_CONTACT, + self::ERROR_TYPE_INVALID_OBJECT_ID, + self::ERROR_TYPE_INVALID_RECORD_ID, self::ERROR_TYPE_INVALID_REQUIRED_PROPERTY, + self::ERROR_TYPE_INVALID_SHEET_COUNT, + self::ERROR_TYPE_INVALID_SPREADSHEET, + self::ERROR_TYPE_LIMIT_EXCEEDED, + self::ERROR_TYPE_MANY_ERRORS_IN_ROW, + self::ERROR_TYPE_MISSING_EVENT_DEFINITION, + self::ERROR_TYPE_MISSING_EVENT_TIMESTAMP, + self::ERROR_TYPE_MISSING_OBJECT_DEFINITION, self::ERROR_TYPE_MISSING_REQUIRED_PROPERTY, - self::ERROR_TYPE_DUPLICATE_ALTERNATE_ID, - self::ERROR_TYPE_DUPLICATE_OBJECT_ID, - self::ERROR_TYPE_DUPLICATE_UNIQUE_PROPERTY_VALUE, - self::ERROR_TYPE_UNKNOWN_ASSOCIATION_RECORD_ID, - self::ERROR_TYPE_INVALID_RECORD_ID, - self::ERROR_TYPE_DUPLICATE_RECORD_ID, - self::ERROR_TYPE_INVALID_CUSTOM_PROPERTY_VALIDATION, - self::ERROR_TYPE_CREATE_ONLY_IMPORT, - self::ERROR_TYPE_UPDATE_ONLY_IMPORT, - self::ERROR_TYPE_COLUMN_TOO_LARGE, + self::ERROR_TYPE_MULTIPLE_COMPANIES_WITH_THIS_DOMAIN, + self::ERROR_TYPE_MULTIPLE_OWNERS_FOUND, + self::ERROR_TYPE_NO_OBJECT_ID_FROM_ASSOCIATION_IDENTIFIER, + self::ERROR_TYPE_OUTSIDE_VALID_TERM_RANGE, + self::ERROR_TYPE_OUTSIDE_VALID_TIME_RANGE, + self::ERROR_TYPE_PORTAL_WIDE_CUSTOM_OBJECT_LIMIT_EXCEEDED, + self::ERROR_TYPE_PROPERTY_DEFINITION_NOT_FOUND, + self::ERROR_TYPE_PROPERTY_VALUE_NOT_FOUND, self::ERROR_TYPE_ROW_DATA_TOO_LARGE, - self::ERROR_TYPE_MISSING_EVENT_TIMESTAMP, - self::ERROR_TYPE_INVALID_EVENT_TIMESTAMP, - self::ERROR_TYPE_INVALID_EVENT, - self::ERROR_TYPE_DUPLICATE_EVENT, - self::ERROR_TYPE_MISSING_EVENT_DEFINITION, - self::ERROR_TYPE_INVALID_ASSOCIATION_KEY, - self::ERROR_TYPE_ASSOCIATION_RECORD_NOT_FOUND, - self::ERROR_TYPE_MISSING_OBJECT_DEFINITION, - self::ERROR_TYPE_ASSOCIATION_LABEL_NOT_FOUND, - self::ERROR_TYPE_MANY_ERRORS_IN_ROW, + self::ERROR_TYPE_SECONDARY_EMAIL_WRITE_FAILURE, + self::ERROR_TYPE_UNKNOWN_ASSOCIATION_RECORD_ID, + self::ERROR_TYPE_UNKNOWN_BAD_REQUEST, + self::ERROR_TYPE_UNKNOWN_ERROR, + self::ERROR_TYPE_UPDATE_ONLY_IMPORT, ]; } @@ -601,167 +601,167 @@ public function getErrorTypeAllowableValues() public function getObjectTypeAllowableValues() { return [ - self::OBJECT_TYPE_CONTACT, - self::OBJECT_TYPE_COMPANY, - self::OBJECT_TYPE_DEAL, - self::OBJECT_TYPE_ENGAGEMENT, - self::OBJECT_TYPE_TICKET, - self::OBJECT_TYPE_OWNER, - self::OBJECT_TYPE_PRODUCT, - self::OBJECT_TYPE_LINE_ITEM, - self::OBJECT_TYPE_BET_DELIVERABLE_SERVICE, - self::OBJECT_TYPE_CONTENT, - self::OBJECT_TYPE_CONVERSATION, - self::OBJECT_TYPE_BET_ALERT, - self::OBJECT_TYPE_PORTAL, - self::OBJECT_TYPE_QUOTE, - self::OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB, - self::OBJECT_TYPE_QUOTA, - self::OBJECT_TYPE_UNSUBSCRIBE, - self::OBJECT_TYPE_COMMUNICATION, - self::OBJECT_TYPE_FEEDBACK_SUBMISSION, - self::OBJECT_TYPE_ATTRIBUTION, - self::OBJECT_TYPE_SALESFORCE_SYNC_ERROR, - self::OBJECT_TYPE_RESTORABLE_CRM_OBJECT, - self::OBJECT_TYPE_HUB, - self::OBJECT_TYPE_LANDING_PAGE, - self::OBJECT_TYPE_PRODUCT_OR_FOLDER, - self::OBJECT_TYPE_TASK, - self::OBJECT_TYPE_FORM, - self::OBJECT_TYPE_MARKETING_EMAIL, + self::OBJECT_TYPE_ABANDONED_CART, + self::OBJECT_TYPE_ACCEPTANCE_TEST, + self::OBJECT_TYPE_AD, self::OBJECT_TYPE_AD_ACCOUNT, self::OBJECT_TYPE_AD_CAMPAIGN, self::OBJECT_TYPE_AD_GROUP, - self::OBJECT_TYPE_AD, - self::OBJECT_TYPE_KEYWORD, - self::OBJECT_TYPE_CAMPAIGN, - self::OBJECT_TYPE_SOCIAL_CHANNEL, - self::OBJECT_TYPE_SOCIAL_POST, - self::OBJECT_TYPE_SITE_PAGE, - self::OBJECT_TYPE_BLOG_POST, - self::OBJECT_TYPE_IMPORT, - self::OBJECT_TYPE_EXPORT, - self::OBJECT_TYPE_CTA, - self::OBJECT_TYPE_TASK_TEMPLATE, + self::OBJECT_TYPE_AI_FORECAST, + self::OBJECT_TYPE_ALL_PAGES, + self::OBJECT_TYPE_APPROVAL, + self::OBJECT_TYPE_APPROVAL_STEP, + self::OBJECT_TYPE_ATTRIBUTION, + self::OBJECT_TYPE_AUDIENCE, + self::OBJECT_TYPE_AUTOMATION_JOURNEY, self::OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW, - self::OBJECT_TYPE_OBJECT_LIST, - self::OBJECT_TYPE_NOTE, - self::OBJECT_TYPE_MEETING_EVENT, + self::OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION, + self::OBJECT_TYPE_BET_ALERT, + self::OBJECT_TYPE_BET_DELIVERABLE_SERVICE, + self::OBJECT_TYPE_BLOG_LISTING_PAGE, + self::OBJECT_TYPE_BLOG_POST, self::OBJECT_TYPE_CALL, - self::OBJECT_TYPE_EMAIL, - self::OBJECT_TYPE_PUBLISHING_TASK, - self::OBJECT_TYPE_CONVERSATION_SESSION, + self::OBJECT_TYPE_CAMPAIGN, + self::OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM, + self::OBJECT_TYPE_CAMPAIGN_SPEND_ITEM, + self::OBJECT_TYPE_CAMPAIGN_STEP, + self::OBJECT_TYPE_CAMPAIGN_TEMPLATE, + self::OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP, + self::OBJECT_TYPE_CART, + self::OBJECT_TYPE_CASE_STUDY, + self::OBJECT_TYPE_CHATFLOW, + self::OBJECT_TYPE_CLIP, + self::OBJECT_TYPE_CMS_URL, + self::OBJECT_TYPE_COMBO_EVENT_CONFIGURATION, + self::OBJECT_TYPE_COMMERCE_PAYMENT, + self::OBJECT_TYPE_COMMUNICATION, + self::OBJECT_TYPE_COMPANY, + self::OBJECT_TYPE_CONTACT, self::OBJECT_TYPE_CONTACT_CREATE_ATTRIBUTION, - self::OBJECT_TYPE_INVOICE, - self::OBJECT_TYPE_MARKETING_EVENT, + self::OBJECT_TYPE_CONTENT, + self::OBJECT_TYPE_CONTENT_AUDIT, + self::OBJECT_TYPE_CONTENT_AUDIT_PAGE, + self::OBJECT_TYPE_CONVERSATION, self::OBJECT_TYPE_CONVERSATION_INBOX, - self::OBJECT_TYPE_CHATFLOW, - self::OBJECT_TYPE_MEDIA_BRIDGE, - self::OBJECT_TYPE_SEQUENCE, - self::OBJECT_TYPE_SEQUENCE_STEP, - self::OBJECT_TYPE_FORECAST, - self::OBJECT_TYPE_SNIPPET, - self::OBJECT_TYPE_TEMPLATE, + self::OBJECT_TYPE_CONVERSATION_SESSION, + self::OBJECT_TYPE_CRM_OBJECTS_DUMMY_TYPE, + self::OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE, + self::OBJECT_TYPE_CTA, + self::OBJECT_TYPE_CTA_VARIANT, + self::OBJECT_TYPE_DATA_PRIVACY_CONSENT, + self::OBJECT_TYPE_DATA_SYNC_STATE, + self::OBJECT_TYPE_DEAL, self::OBJECT_TYPE_DEAL_CREATE_ATTRIBUTION, - self::OBJECT_TYPE_QUOTE_TEMPLATE, - self::OBJECT_TYPE_QUOTE_MODULE, - self::OBJECT_TYPE_QUOTE_MODULE_FIELD, - self::OBJECT_TYPE_QUOTE_FIELD, - self::OBJECT_TYPE_SEQUENCE_ENROLLMENT, - self::OBJECT_TYPE_SUBSCRIPTION, - self::OBJECT_TYPE_ACCEPTANCE_TEST, - self::OBJECT_TYPE_SOCIAL_BROADCAST, - self::OBJECT_TYPE_DEAL_SPLIT, self::OBJECT_TYPE_DEAL_REGISTRATION, - self::OBJECT_TYPE_GOAL_TARGET, - self::OBJECT_TYPE_GOAL_TARGET_GROUP, - self::OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE, - self::OBJECT_TYPE_FILE_MANAGER_FILE, - self::OBJECT_TYPE_FILE_MANAGER_FOLDER, - self::OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT, - self::OBJECT_TYPE_APPROVAL, - self::OBJECT_TYPE_APPROVAL_STEP, - self::OBJECT_TYPE_CTA_VARIANT, - self::OBJECT_TYPE_SALES_DOCUMENT, + self::OBJECT_TYPE_DEAL_SPLIT, self::OBJECT_TYPE_DISCOUNT, + self::OBJECT_TYPE_DISCOUNT_CODE, + self::OBJECT_TYPE_DISCOUNT_TEMPLATE, + self::OBJECT_TYPE_EMAIL, + self::OBJECT_TYPE_ENGAGEMENT, + self::OBJECT_TYPE_EXPORT, + self::OBJECT_TYPE_EXTERNAL_WEB_URL, self::OBJECT_TYPE_FEE, - self::OBJECT_TYPE_TAX, + self::OBJECT_TYPE_FEEDBACK_SUBMISSION, + self::OBJECT_TYPE_FEEDBACK_SURVEY, + self::OBJECT_TYPE_FILE_MANAGER_FILE, + self::OBJECT_TYPE_FILE_MANAGER_FOLDER, + self::OBJECT_TYPE_FOLDER, + self::OBJECT_TYPE_FORECAST, + self::OBJECT_TYPE_FORM, + self::OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB, + self::OBJECT_TYPE_GOAL_TARGET, + self::OBJECT_TYPE_GOAL_TARGET_GROUP, + self::OBJECT_TYPE_GOAL_TEMPLATE, + self::OBJECT_TYPE_GSC_PROPERTY, + self::OBJECT_TYPE_HUB, + self::OBJECT_TYPE_IMPORT, + self::OBJECT_TYPE_INVOICE, + self::OBJECT_TYPE_KEYWORD, + self::OBJECT_TYPE_KNOWLEDGE_ARTICLE, + self::OBJECT_TYPE_LANDING_PAGE, + self::OBJECT_TYPE_LEAD, + self::OBJECT_TYPE_LINE_ITEM, self::OBJECT_TYPE_MARKETING_CALENDAR, + self::OBJECT_TYPE_MARKETING_CAMPAIGN_UTM, + self::OBJECT_TYPE_MARKETING_EMAIL, + self::OBJECT_TYPE_MARKETING_EVENT, + self::OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE, + self::OBJECT_TYPE_MARKETING_SMS, + self::OBJECT_TYPE_MEDIA_BRIDGE, + self::OBJECT_TYPE_MEETING_EVENT, + self::OBJECT_TYPE_MIC, + self::OBJECT_TYPE_NOTE, + self::OBJECT_TYPE_OBJECT_LIST, + self::OBJECT_TYPE_ORDER, + self::OBJECT_TYPE_OWNER, + self::OBJECT_TYPE_PARTNER_ACCOUNT, + self::OBJECT_TYPE_PARTNER_CLIENT, + self::OBJECT_TYPE_PARTNER_CLIENT_REVENUE, + self::OBJECT_TYPE_PARTNER_SERVICE, + self::OBJECT_TYPE_PAYMENT_LINK, + self::OBJECT_TYPE_PAYMENT_SCHEDULE, + self::OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT, self::OBJECT_TYPE_PERMISSIONS_TESTING, - self::OBJECT_TYPE_PRIVACY_SCANNER_COOKIE, - self::OBJECT_TYPE_DATA_SYNC_STATE, - self::OBJECT_TYPE_WEB_INTERACTIVE, self::OBJECT_TYPE_PLAYBOOK, - self::OBJECT_TYPE_FOLDER, self::OBJECT_TYPE_PLAYBOOK_QUESTION, self::OBJECT_TYPE_PLAYBOOK_SUBMISSION, self::OBJECT_TYPE_PLAYBOOK_SUBMISSION_ANSWER, - self::OBJECT_TYPE_COMMERCE_PAYMENT, - self::OBJECT_TYPE_GSC_PROPERTY, - self::OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE, - self::OBJECT_TYPE_BLOG_LISTING_PAGE, - self::OBJECT_TYPE_QUARANTINED_SUBMISSION, - self::OBJECT_TYPE_PAYMENT_SCHEDULE, - self::OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT, - self::OBJECT_TYPE_MARKETING_CAMPAIGN_UTM, - self::OBJECT_TYPE_DISCOUNT_TEMPLATE, - self::OBJECT_TYPE_DISCOUNT_CODE, - self::OBJECT_TYPE_FEEDBACK_SURVEY, - self::OBJECT_TYPE_CMS_URL, - self::OBJECT_TYPE_SALES_TASK, - self::OBJECT_TYPE_SALES_WORKLOAD, - self::OBJECT_TYPE_USER, - self::OBJECT_TYPE_POSTAL_MAIL, - self::OBJECT_TYPE_SCHEMAS_BACKEND_TEST, - self::OBJECT_TYPE_PAYMENT_LINK, - self::OBJECT_TYPE_SUBMISSION_TAG, - self::OBJECT_TYPE_CAMPAIGN_STEP, - self::OBJECT_TYPE_SCHEDULING_PAGE, - self::OBJECT_TYPE_SOX_PROTECTED_TEST_TYPE, - self::OBJECT_TYPE_ORDER, - self::OBJECT_TYPE_MARKETING_SMS, - self::OBJECT_TYPE_PARTNER_ACCOUNT, - self::OBJECT_TYPE_CAMPAIGN_TEMPLATE, - self::OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP, self::OBJECT_TYPE_PLAYLIST, - self::OBJECT_TYPE_CLIP, - self::OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM, - self::OBJECT_TYPE_CAMPAIGN_SPEND_ITEM, - self::OBJECT_TYPE_MIC, - self::OBJECT_TYPE_CONTENT_AUDIT, - self::OBJECT_TYPE_CONTENT_AUDIT_PAGE, self::OBJECT_TYPE_PLAYLIST_FOLDER, - self::OBJECT_TYPE_LEAD, - self::OBJECT_TYPE_ABANDONED_CART, - self::OBJECT_TYPE_EXTERNAL_WEB_URL, - self::OBJECT_TYPE_VIEW, - self::OBJECT_TYPE_VIEW_BLOCK, - self::OBJECT_TYPE_ROSTER, - self::OBJECT_TYPE_CART, - self::OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION, - self::OBJECT_TYPE_SOCIAL_PROFILE, - self::OBJECT_TYPE_PARTNER_CLIENT, - self::OBJECT_TYPE_ROSTER_MEMBER, - self::OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE, - self::OBJECT_TYPE_ALL_PAGES, - self::OBJECT_TYPE_AI_FORECAST, - self::OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE, - self::OBJECT_TYPE_KNOWLEDGE_ARTICLE, + self::OBJECT_TYPE_PODCAST_EPISODE, + self::OBJECT_TYPE_PORTAL, + self::OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE, + self::OBJECT_TYPE_POSTAL_MAIL, + self::OBJECT_TYPE_PRIVACY_SCANNER_COOKIE, + self::OBJECT_TYPE_PRODUCT, + self::OBJECT_TYPE_PRODUCT_OR_FOLDER, self::OBJECT_TYPE_PROPERTY_INFO, - self::OBJECT_TYPE_DATA_PRIVACY_CONSENT, - self::OBJECT_TYPE_GOAL_TEMPLATE, + self::OBJECT_TYPE_PROSPECTING_AGENT_CONTACT_ASSIGNMENT, + self::OBJECT_TYPE_PUBLISHING_TASK, + self::OBJECT_TYPE_QUARANTINED_SUBMISSION, + self::OBJECT_TYPE_QUOTA, + self::OBJECT_TYPE_QUOTE, + self::OBJECT_TYPE_QUOTE_FIELD, + self::OBJECT_TYPE_QUOTE_MODULE, + self::OBJECT_TYPE_QUOTE_MODULE_FIELD, + self::OBJECT_TYPE_QUOTE_TEMPLATE, + self::OBJECT_TYPE_RESTORABLE_CRM_OBJECT, + self::OBJECT_TYPE_ROSTER, + self::OBJECT_TYPE_ROSTER_MEMBER, + self::OBJECT_TYPE_SALES_DOCUMENT, + self::OBJECT_TYPE_SALES_TASK, + self::OBJECT_TYPE_SALES_WORKLOAD, + self::OBJECT_TYPE_SALESFORCE_SYNC_ERROR, + self::OBJECT_TYPE_SCHEDULING_PAGE, + self::OBJECT_TYPE_SCHEMAS_BACKEND_TEST, self::OBJECT_TYPE_SCORE_CONFIGURATION, - self::OBJECT_TYPE_AUDIENCE, - self::OBJECT_TYPE_PARTNER_CLIENT_REVENUE, - self::OBJECT_TYPE_AUTOMATION_JOURNEY, - self::OBJECT_TYPE_COMBO_EVENT_CONFIGURATION, - self::OBJECT_TYPE_CRM_OBJECTS_DUMMY_TYPE, - self::OBJECT_TYPE_CASE_STUDY, + self::OBJECT_TYPE_SEQUENCE, + self::OBJECT_TYPE_SEQUENCE_ENROLLMENT, + self::OBJECT_TYPE_SEQUENCE_STEP, + self::OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT, self::OBJECT_TYPE_SERVICE, - self::OBJECT_TYPE_PODCAST_EPISODE, - self::OBJECT_TYPE_PARTNER_SERVICE, - self::OBJECT_TYPE_PROSPECTING_AGENT_CONTACT_ASSIGNMENT, + self::OBJECT_TYPE_SITE_PAGE, + self::OBJECT_TYPE_SNIPPET, + self::OBJECT_TYPE_SOCIAL_BROADCAST, + self::OBJECT_TYPE_SOCIAL_CHANNEL, + self::OBJECT_TYPE_SOCIAL_POST, + self::OBJECT_TYPE_SOCIAL_PROFILE, + self::OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE, + self::OBJECT_TYPE_SOX_PROTECTED_TEST_TYPE, + self::OBJECT_TYPE_SUBMISSION_TAG, + self::OBJECT_TYPE_SUBSCRIPTION, + self::OBJECT_TYPE_TASK, + self::OBJECT_TYPE_TASK_TEMPLATE, + self::OBJECT_TYPE_TAX, + self::OBJECT_TYPE_TEMPLATE, + self::OBJECT_TYPE_TICKET, self::OBJECT_TYPE_UNKNOWN, + self::OBJECT_TYPE_UNSUBSCRIBE, + self::OBJECT_TYPE_USER, + self::OBJECT_TYPE_VIEW, + self::OBJECT_TYPE_VIEW_BLOCK, + self::OBJECT_TYPE_WEB_INTERACTIVE, ]; } @@ -781,17 +781,17 @@ public function getObjectTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('extra_context', $data ?? [], null); - $this->setIfExists('object_type_id', $data ?? [], null); + $this->setIfExists('error_message', $data ?? [], null); $this->setIfExists('error_type', $data ?? [], null); + $this->setIfExists('extra_context', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); $this->setIfExists('invalid_property_value', $data ?? [], null); - $this->setIfExists('error_message', $data ?? [], null); - $this->setIfExists('known_column_number', $data ?? [], null); + $this->setIfExists('invalid_value', $data ?? [], null); $this->setIfExists('invalid_value_to_display', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('source_data', $data ?? [], null); + $this->setIfExists('known_column_number', $data ?? [], null); $this->setIfExists('object_type', $data ?? [], null); - $this->setIfExists('invalid_value', $data ?? [], null); + $this->setIfExists('object_type_id', $data ?? [], null); + $this->setIfExists('source_data', $data ?? [], null); } /** @@ -839,9 +839,6 @@ public function listInvalidProperties() if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } - if ($this->container['source_data'] === null) { - $invalidProperties[] = "'source_data' can't be null"; - } $allowedValues = $this->getObjectTypeAllowableValues(); if (!is_null($this->container['object_type']) && !in_array($this->container['object_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -851,6 +848,9 @@ public function listInvalidProperties() ); } + if ($this->container['source_data'] === null) { + $invalidProperties[] = "'source_data' can't be null"; + } return $invalidProperties; } @@ -879,7 +879,7 @@ public function getCreatedAt() /** * Sets created_at * - * @param int $created_at created_at + * @param int $created_at The epoch millisecond timestamp when this error was recorded. * * @return self */ @@ -894,55 +894,28 @@ public function setCreatedAt($created_at) } /** - * Gets extra_context - * - * @return string|null - */ - public function getExtraContext() - { - return $this->container['extra_context']; - } - - /** - * Sets extra_context - * - * @param string|null $extra_context extra_context - * - * @return self - */ - public function setExtraContext($extra_context) - { - if (is_null($extra_context)) { - throw new \InvalidArgumentException('non-nullable extra_context cannot be null'); - } - $this->container['extra_context'] = $extra_context; - - return $this; - } - - /** - * Gets object_type_id + * Gets error_message * * @return string|null */ - public function getObjectTypeId() + public function getErrorMessage() { - return $this->container['object_type_id']; + return $this->container['error_message']; } /** - * Sets object_type_id + * Sets error_message * - * @param string|null $object_type_id object_type_id + * @param string|null $error_message A human-readable error message. * * @return self */ - public function setObjectTypeId($object_type_id) + public function setErrorMessage($error_message) { - if (is_null($object_type_id)) { - throw new \InvalidArgumentException('non-nullable object_type_id cannot be null'); + if (is_null($error_message)) { + throw new \InvalidArgumentException('non-nullable error_message cannot be null'); } - $this->container['object_type_id'] = $object_type_id; + $this->container['error_message'] = $error_message; return $this; } @@ -960,7 +933,7 @@ public function getErrorType() /** * Sets error_type * - * @param string $error_type error_type + * @param string $error_type The classification of what went wrong during import processing. * * @return self */ @@ -985,163 +958,163 @@ public function setErrorType($error_type) } /** - * Gets invalid_property_value + * Gets extra_context * - * @return \HubSpot\Client\Crm\Imports\Model\PropertyValue|null + * @return string|null */ - public function getInvalidPropertyValue() + public function getExtraContext() { - return $this->container['invalid_property_value']; + return $this->container['extra_context']; } /** - * Sets invalid_property_value + * Sets extra_context * - * @param \HubSpot\Client\Crm\Imports\Model\PropertyValue|null $invalid_property_value invalid_property_value + * @param string|null $extra_context Additional human-readable context about the error. * * @return self */ - public function setInvalidPropertyValue($invalid_property_value) + public function setExtraContext($extra_context) { - if (is_null($invalid_property_value)) { - throw new \InvalidArgumentException('non-nullable invalid_property_value cannot be null'); + if (is_null($extra_context)) { + throw new \InvalidArgumentException('non-nullable extra_context cannot be null'); } - $this->container['invalid_property_value'] = $invalid_property_value; + $this->container['extra_context'] = $extra_context; return $this; } /** - * Gets error_message + * Gets id * - * @return string|null + * @return string */ - public function getErrorMessage() + public function getId() { - return $this->container['error_message']; + return $this->container['id']; } /** - * Sets error_message + * Sets id * - * @param string|null $error_message error_message + * @param string $id A unique, stable identifier for this specific error. * * @return self */ - public function setErrorMessage($error_message) + public function setId($id) { - if (is_null($error_message)) { - throw new \InvalidArgumentException('non-nullable error_message cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['error_message'] = $error_message; + $this->container['id'] = $id; return $this; } /** - * Gets known_column_number + * Gets invalid_property_value * - * @return int|null + * @return \HubSpot\Client\Crm\Imports\Model\PropertyValue|null */ - public function getKnownColumnNumber() + public function getInvalidPropertyValue() { - return $this->container['known_column_number']; + return $this->container['invalid_property_value']; } /** - * Sets known_column_number + * Sets invalid_property_value * - * @param int|null $known_column_number known_column_number + * @param \HubSpot\Client\Crm\Imports\Model\PropertyValue|null $invalid_property_value invalid_property_value * * @return self */ - public function setKnownColumnNumber($known_column_number) + public function setInvalidPropertyValue($invalid_property_value) { - if (is_null($known_column_number)) { - throw new \InvalidArgumentException('non-nullable known_column_number cannot be null'); + if (is_null($invalid_property_value)) { + throw new \InvalidArgumentException('non-nullable invalid_property_value cannot be null'); } - $this->container['known_column_number'] = $known_column_number; + $this->container['invalid_property_value'] = $invalid_property_value; return $this; } /** - * Gets invalid_value_to_display + * Gets invalid_value * * @return string|null */ - public function getInvalidValueToDisplay() + public function getInvalidValue() { - return $this->container['invalid_value_to_display']; + return $this->container['invalid_value']; } /** - * Sets invalid_value_to_display + * Sets invalid_value * - * @param string|null $invalid_value_to_display invalid_value_to_display + * @param string|null $invalid_value The raw string value from the import file that caused the validation failure. * * @return self */ - public function setInvalidValueToDisplay($invalid_value_to_display) + public function setInvalidValue($invalid_value) { - if (is_null($invalid_value_to_display)) { - throw new \InvalidArgumentException('non-nullable invalid_value_to_display cannot be null'); + if (is_null($invalid_value)) { + throw new \InvalidArgumentException('non-nullable invalid_value cannot be null'); } - $this->container['invalid_value_to_display'] = $invalid_value_to_display; + $this->container['invalid_value'] = $invalid_value; return $this; } /** - * Gets id + * Gets invalid_value_to_display * - * @return string + * @return string|null */ - public function getId() + public function getInvalidValueToDisplay() { - return $this->container['id']; + return $this->container['invalid_value_to_display']; } /** - * Sets id + * Sets invalid_value_to_display * - * @param string $id id + * @param string|null $invalid_value_to_display A convenience accessor that returns either the value from `invalidPropertyValue` or `invalidValue`, whichever is present (preferring the property value). * * @return self */ - public function setId($id) + public function setInvalidValueToDisplay($invalid_value_to_display) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($invalid_value_to_display)) { + throw new \InvalidArgumentException('non-nullable invalid_value_to_display cannot be null'); } - $this->container['id'] = $id; + $this->container['invalid_value_to_display'] = $invalid_value_to_display; return $this; } /** - * Gets source_data + * Gets known_column_number * - * @return \HubSpot\Client\Crm\Imports\Model\ImportRowCore + * @return int|null */ - public function getSourceData() + public function getKnownColumnNumber() { - return $this->container['source_data']; + return $this->container['known_column_number']; } /** - * Sets source_data + * Sets known_column_number * - * @param \HubSpot\Client\Crm\Imports\Model\ImportRowCore $source_data source_data + * @param int|null $known_column_number The zero-based column index in the import file where the error occurred * * @return self */ - public function setSourceData($source_data) + public function setKnownColumnNumber($known_column_number) { - if (is_null($source_data)) { - throw new \InvalidArgumentException('non-nullable source_data cannot be null'); + if (is_null($known_column_number)) { + throw new \InvalidArgumentException('non-nullable known_column_number cannot be null'); } - $this->container['source_data'] = $source_data; + $this->container['known_column_number'] = $known_column_number; return $this; } @@ -1159,7 +1132,7 @@ public function getObjectType() /** * Sets object_type * - * @param string|null $object_type object_type + * @param string|null $object_type The CRM object type affected by this error. * * @return self */ @@ -1184,39 +1157,66 @@ public function setObjectType($object_type) } /** - * Gets invalid_value + * Gets object_type_id * * @return string|null */ - public function getInvalidValue() + public function getObjectTypeId() { - return $this->container['invalid_value']; + return $this->container['object_type_id']; } /** - * Sets invalid_value + * Sets object_type_id * - * @param string|null $invalid_value invalid_value + * @param string|null $object_type_id The modern object type identifier for the CRM object affected by this error. * * @return self */ - public function setInvalidValue($invalid_value) + public function setObjectTypeId($object_type_id) { - if (is_null($invalid_value)) { - throw new \InvalidArgumentException('non-nullable invalid_value cannot be null'); + if (is_null($object_type_id)) { + throw new \InvalidArgumentException('non-nullable object_type_id cannot be null'); } - $this->container['invalid_value'] = $invalid_value; + $this->container['object_type_id'] = $object_type_id; + + return $this; + } + + /** + * Gets source_data + * + * @return \HubSpot\Client\Crm\Imports\Model\ImportRowCore + */ + public function getSourceData() + { + return $this->container['source_data']; + } + + /** + * Sets source_data + * + * @param \HubSpot\Client\Crm\Imports\Model\ImportRowCore $source_data source_data + * + * @return self + */ + public function setSourceData($source_data) + { + if (is_null($source_data)) { + throw new \InvalidArgumentException('non-nullable source_data cannot be null'); + } + $this->container['source_data'] = $source_data; return $this; } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -1224,12 +1224,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -1254,11 +1254,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/PublicImportMetadata.php b/codegen/Crm/Imports/Model/PublicImportMetadata.php index fcf59413..690430f4 100644 --- a/codegen/Crm/Imports/Model/PublicImportMetadata.php +++ b/codegen/Crm/Imports/Model/PublicImportMetadata.php @@ -2,7 +2,7 @@ /** * PublicImportMetadata * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -395,11 +395,11 @@ public function setObjectLists($object_lists) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -407,12 +407,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -437,11 +437,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/PublicImportResponse.php b/codegen/Crm/Imports/Model/PublicImportResponse.php index 50b6bfec..8bbf6643 100644 --- a/codegen/Crm/Imports/Model/PublicImportResponse.php +++ b/codegen/Crm/Imports/Model/PublicImportResponse.php @@ -2,7 +2,7 @@ /** * PublicImportResponse * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -57,16 +57,16 @@ class PublicImportResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'import_template' => '\HubSpot\Client\Crm\Imports\Model\ImportTemplate', 'created_at' => '\DateTime', - 'metadata' => '\HubSpot\Client\Crm\Imports\Model\PublicImportMetadata', + 'id' => 'string', + 'import_name' => 'string', 'import_request_json' => 'object', 'import_source' => 'string', - 'import_name' => 'string', - 'state' => 'string', - 'id' => 'string', - 'opt_out_import' => 'bool', + 'import_template' => '\HubSpot\Client\Crm\Imports\Model\ImportTemplate', 'mapped_object_type_ids' => 'string[]', + 'metadata' => '\HubSpot\Client\Crm\Imports\Model\PublicImportMetadata', + 'opt_out_import' => 'bool', + 'state' => 'string', 'updated_at' => '\DateTime' ]; @@ -78,16 +78,16 @@ class PublicImportResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'import_template' => null, 'created_at' => 'date-time', - 'metadata' => null, + 'id' => null, + 'import_name' => null, 'import_request_json' => null, 'import_source' => null, - 'import_name' => null, - 'state' => null, - 'id' => null, - 'opt_out_import' => null, + 'import_template' => null, 'mapped_object_type_ids' => null, + 'metadata' => null, + 'opt_out_import' => null, + 'state' => null, 'updated_at' => 'date-time' ]; @@ -97,16 +97,16 @@ class PublicImportResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @var boolean[] */ protected static array $openAPINullables = [ - 'import_template' => false, 'created_at' => false, - 'metadata' => false, + 'id' => false, + 'import_name' => false, 'import_request_json' => false, 'import_source' => false, - 'import_name' => false, - 'state' => false, - 'id' => false, - 'opt_out_import' => false, + 'import_template' => false, 'mapped_object_type_ids' => false, + 'metadata' => false, + 'opt_out_import' => false, + 'state' => false, 'updated_at' => false ]; @@ -196,16 +196,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'import_template' => 'importTemplate', 'created_at' => 'createdAt', - 'metadata' => 'metadata', + 'id' => 'id', + 'import_name' => 'importName', 'import_request_json' => 'importRequestJson', 'import_source' => 'importSource', - 'import_name' => 'importName', - 'state' => 'state', - 'id' => 'id', - 'opt_out_import' => 'optOutImport', + 'import_template' => 'importTemplate', 'mapped_object_type_ids' => 'mappedObjectTypeIds', + 'metadata' => 'metadata', + 'opt_out_import' => 'optOutImport', + 'state' => 'state', 'updated_at' => 'updatedAt' ]; @@ -215,16 +215,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'import_template' => 'setImportTemplate', 'created_at' => 'setCreatedAt', - 'metadata' => 'setMetadata', + 'id' => 'setId', + 'import_name' => 'setImportName', 'import_request_json' => 'setImportRequestJson', 'import_source' => 'setImportSource', - 'import_name' => 'setImportName', - 'state' => 'setState', - 'id' => 'setId', - 'opt_out_import' => 'setOptOutImport', + 'import_template' => 'setImportTemplate', 'mapped_object_type_ids' => 'setMappedObjectTypeIds', + 'metadata' => 'setMetadata', + 'opt_out_import' => 'setOptOutImport', + 'state' => 'setState', 'updated_at' => 'setUpdatedAt' ]; @@ -234,16 +234,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'import_template' => 'getImportTemplate', 'created_at' => 'getCreatedAt', - 'metadata' => 'getMetadata', + 'id' => 'getId', + 'import_name' => 'getImportName', 'import_request_json' => 'getImportRequestJson', 'import_source' => 'getImportSource', - 'import_name' => 'getImportName', - 'state' => 'getState', - 'id' => 'getId', - 'opt_out_import' => 'getOptOutImport', + 'import_template' => 'getImportTemplate', 'mapped_object_type_ids' => 'getMappedObjectTypeIds', + 'metadata' => 'getMetadata', + 'opt_out_import' => 'getOptOutImport', + 'state' => 'getState', 'updated_at' => 'getUpdatedAt' ]; @@ -294,13 +294,13 @@ public function getModelName() public const IMPORT_SOURCE_MOBILE_ANDROID = 'MOBILE_ANDROID'; public const IMPORT_SOURCE_MOBILE_IOS = 'MOBILE_IOS'; public const IMPORT_SOURCE_SALESFORCE = 'SALESFORCE'; - public const STATE_STARTED = 'STARTED'; - public const STATE_PROCESSING = 'PROCESSING'; - public const STATE_DONE = 'DONE'; - public const STATE_FAILED = 'FAILED'; public const STATE_CANCELED = 'CANCELED'; public const STATE_DEFERRED = 'DEFERRED'; + public const STATE_DONE = 'DONE'; + public const STATE_FAILED = 'FAILED'; + public const STATE_PROCESSING = 'PROCESSING'; public const STATE_REVERTED = 'REVERTED'; + public const STATE_STARTED = 'STARTED'; /** * Gets allowable values of the enum @@ -327,13 +327,13 @@ public function getImportSourceAllowableValues() public function getStateAllowableValues() { return [ - self::STATE_STARTED, - self::STATE_PROCESSING, - self::STATE_DONE, - self::STATE_FAILED, self::STATE_CANCELED, self::STATE_DEFERRED, + self::STATE_DONE, + self::STATE_FAILED, + self::STATE_PROCESSING, self::STATE_REVERTED, + self::STATE_STARTED, ]; } @@ -352,16 +352,16 @@ public function getStateAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('import_template', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('import_name', $data ?? [], null); $this->setIfExists('import_request_json', $data ?? [], null); $this->setIfExists('import_source', $data ?? [], null); - $this->setIfExists('import_name', $data ?? [], null); - $this->setIfExists('state', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('opt_out_import', $data ?? [], null); + $this->setIfExists('import_template', $data ?? [], null); $this->setIfExists('mapped_object_type_ids', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('opt_out_import', $data ?? [], null); + $this->setIfExists('state', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); } @@ -395,8 +395,8 @@ public function listInvalidProperties() if ($this->container['created_at'] === null) { $invalidProperties[] = "'created_at' can't be null"; } - if ($this->container['metadata'] === null) { - $invalidProperties[] = "'metadata' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } $allowedValues = $this->getImportSourceAllowableValues(); if (!is_null($this->container['import_source']) && !in_array($this->container['import_source'], $allowedValues, true)) { @@ -407,6 +407,15 @@ public function listInvalidProperties() ); } + if ($this->container['mapped_object_type_ids'] === null) { + $invalidProperties[] = "'mapped_object_type_ids' can't be null"; + } + if ($this->container['metadata'] === null) { + $invalidProperties[] = "'metadata' can't be null"; + } + if ($this->container['opt_out_import'] === null) { + $invalidProperties[] = "'opt_out_import' can't be null"; + } if ($this->container['state'] === null) { $invalidProperties[] = "'state' can't be null"; } @@ -419,15 +428,6 @@ public function listInvalidProperties() ); } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['opt_out_import'] === null) { - $invalidProperties[] = "'opt_out_import' can't be null"; - } - if ($this->container['mapped_object_type_ids'] === null) { - $invalidProperties[] = "'mapped_object_type_ids' can't be null"; - } if ($this->container['updated_at'] === null) { $invalidProperties[] = "'updated_at' can't be null"; } @@ -447,82 +447,82 @@ public function valid() /** - * Gets import_template + * Gets created_at * - * @return \HubSpot\Client\Crm\Imports\Model\ImportTemplate|null + * @return \DateTime */ - public function getImportTemplate() + public function getCreatedAt() { - return $this->container['import_template']; + return $this->container['created_at']; } /** - * Sets import_template + * Sets created_at * - * @param \HubSpot\Client\Crm\Imports\Model\ImportTemplate|null $import_template import_template + * @param \DateTime $created_at The timestamp when the object was created, in ISO 8601 format. * * @return self */ - public function setImportTemplate($import_template) + public function setCreatedAt($created_at) { - if (is_null($import_template)) { - throw new \InvalidArgumentException('non-nullable import_template cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } - $this->container['import_template'] = $import_template; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets created_at + * Gets id * - * @return \DateTime + * @return string */ - public function getCreatedAt() + public function getId() { - return $this->container['created_at']; + return $this->container['id']; } /** - * Sets created_at + * Sets id * - * @param \DateTime $created_at created_at + * @param string $id The unique identifier for this import. * * @return self */ - public function setCreatedAt($created_at) + public function setId($id) { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['created_at'] = $created_at; + $this->container['id'] = $id; return $this; } /** - * Gets metadata + * Gets import_name * - * @return \HubSpot\Client\Crm\Imports\Model\PublicImportMetadata + * @return string|null */ - public function getMetadata() + public function getImportName() { - return $this->container['metadata']; + return $this->container['import_name']; } /** - * Sets metadata + * Sets import_name * - * @param \HubSpot\Client\Crm\Imports\Model\PublicImportMetadata $metadata metadata + * @param string|null $import_name The user-provided name for this import. * * @return self */ - public function setMetadata($metadata) + public function setImportName($import_name) { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + if (is_null($import_name)) { + throw new \InvalidArgumentException('non-nullable import_name cannot be null'); } - $this->container['metadata'] = $metadata; + $this->container['import_name'] = $import_name; return $this; } @@ -540,7 +540,7 @@ public function getImportRequestJson() /** * Sets import_request_json * - * @param object|null $import_request_json import_request_json + * @param object|null $import_request_json The complete import request configuration as a JSON object. * * @return self */ @@ -567,7 +567,7 @@ public function getImportSource() /** * Sets import_source * - * @param string|null $import_source import_source + * @param string|null $import_source Indicates where/how the import was initiated. * * @return self */ @@ -592,92 +592,82 @@ public function setImportSource($import_source) } /** - * Gets import_name + * Gets import_template * - * @return string|null + * @return \HubSpot\Client\Crm\Imports\Model\ImportTemplate|null */ - public function getImportName() + public function getImportTemplate() { - return $this->container['import_name']; + return $this->container['import_template']; } /** - * Sets import_name + * Sets import_template * - * @param string|null $import_name import_name + * @param \HubSpot\Client\Crm\Imports\Model\ImportTemplate|null $import_template import_template * * @return self */ - public function setImportName($import_name) + public function setImportTemplate($import_template) { - if (is_null($import_name)) { - throw new \InvalidArgumentException('non-nullable import_name cannot be null'); + if (is_null($import_template)) { + throw new \InvalidArgumentException('non-nullable import_template cannot be null'); } - $this->container['import_name'] = $import_name; + $this->container['import_template'] = $import_template; return $this; } /** - * Gets state + * Gets mapped_object_type_ids * - * @return string + * @return string[] */ - public function getState() + public function getMappedObjectTypeIds() { - return $this->container['state']; + return $this->container['mapped_object_type_ids']; } /** - * Sets state + * Sets mapped_object_type_ids * - * @param string $state The status of the import. + * @param string[] $mapped_object_type_ids mapped_object_type_ids * * @return self */ - public function setState($state) + public function setMappedObjectTypeIds($mapped_object_type_ids) { - if (is_null($state)) { - throw new \InvalidArgumentException('non-nullable state cannot be null'); - } - $allowedValues = $this->getStateAllowableValues(); - if (!in_array($state, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'state', must be one of '%s'", - $state, - implode("', '", $allowedValues) - ) - ); + if (is_null($mapped_object_type_ids)) { + throw new \InvalidArgumentException('non-nullable mapped_object_type_ids cannot be null'); } - $this->container['state'] = $state; + $this->container['mapped_object_type_ids'] = $mapped_object_type_ids; return $this; } /** - * Gets id + * Gets metadata * - * @return string + * @return \HubSpot\Client\Crm\Imports\Model\PublicImportMetadata */ - public function getId() + public function getMetadata() { - return $this->container['id']; + return $this->container['metadata']; } /** - * Sets id + * Sets metadata * - * @param string $id id + * @param \HubSpot\Client\Crm\Imports\Model\PublicImportMetadata $metadata metadata * * @return self */ - public function setId($id) + public function setMetadata($metadata) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); } - $this->container['id'] = $id; + $this->container['metadata'] = $metadata; return $this; } @@ -710,28 +700,38 @@ public function setOptOutImport($opt_out_import) } /** - * Gets mapped_object_type_ids + * Gets state * - * @return string[] + * @return string */ - public function getMappedObjectTypeIds() + public function getState() { - return $this->container['mapped_object_type_ids']; + return $this->container['state']; } /** - * Sets mapped_object_type_ids + * Sets state * - * @param string[] $mapped_object_type_ids mapped_object_type_ids + * @param string $state The status of the import. * * @return self */ - public function setMappedObjectTypeIds($mapped_object_type_ids) + public function setState($state) { - if (is_null($mapped_object_type_ids)) { - throw new \InvalidArgumentException('non-nullable mapped_object_type_ids cannot be null'); + if (is_null($state)) { + throw new \InvalidArgumentException('non-nullable state cannot be null'); } - $this->container['mapped_object_type_ids'] = $mapped_object_type_ids; + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($state, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'state', must be one of '%s'", + $state, + implode("', '", $allowedValues) + ) + ); + } + $this->container['state'] = $state; return $this; } @@ -749,7 +749,7 @@ public function getUpdatedAt() /** * Sets updated_at * - * @param \DateTime $updated_at updated_at + * @param \DateTime $updated_at The timestamp when the import record was last updated, formatted as an ISO 8601 instant. * * @return self */ @@ -765,11 +765,11 @@ public function setUpdatedAt($updated_at) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -777,12 +777,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -807,11 +807,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/Model/PublicObjectListRecord.php b/codegen/Crm/Imports/Model/PublicObjectListRecord.php index 7d3069d9..9163b91b 100644 --- a/codegen/Crm/Imports/Model/PublicObjectListRecord.php +++ b/codegen/Crm/Imports/Model/PublicObjectListRecord.php @@ -2,7 +2,7 @@ /** * PublicObjectListRecord * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -358,11 +358,11 @@ public function setObjectType($object_type) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -370,12 +370,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -400,11 +400,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/codegen/Crm/Imports/ObjectSerializer.php b/codegen/Crm/Imports/ObjectSerializer.php index 2b3390d4..d3a3bfe9 100644 --- a/codegen/Crm/Imports/ObjectSerializer.php +++ b/codegen/Crm/Imports/ObjectSerializer.php @@ -2,7 +2,7 @@ /** * ObjectSerializer * - * PHP version 7.4 + * PHP version 8.1 * * @category Class * @package HubSpot\Client\Crm\Imports @@ -11,13 +11,13 @@ */ /** - * Imports + * CRM Imports * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.12.0 + * Generator version: 7.19.0 */ /** @@ -323,24 +323,6 @@ public static function toHeaderValue($value) return self::toString($value); } - /** - * Take value and turn it into a string suitable for inclusion in - * the http body (form parameter). If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 - * - * @param string|\SplFileObject $value the value of the form parameter - * - * @return string the form string - */ - public static function toFormValue($value) - { - if ($value instanceof \SplFileObject) { - return $value->getRealPath(); - } else { - return self::toString($value); - } - } - /** * Take value and turn it into a string suitable for inclusion in * the parameter. If it's a string, pass through unchanged @@ -612,6 +594,6 @@ public static function buildQuery(array $params, $encoding = PHP_QUERY_RFC3986): } } - return $qs ? (string) substr($qs, 0, -1) : ''; + return $qs ? substr($qs, 0, -1) : ''; } }