From 008022ad17d62f6e380834303a8ea6f1f61f01e1 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Mon, 9 Feb 2026 15:14:08 +0300 Subject: [PATCH] Codegen: Automation Actions --- .../Automation/Actions/Api/CallbacksApi.php | 2 +- .../Automation/Actions/Api/DefinitionsApi.php | 2 +- .../Automation/Actions/Api/FunctionsApi.php | 2 +- .../Automation/Actions/Api/RevisionsApi.php | 2 +- codegen/Automation/Actions/ApiException.php | 2 +- codegen/Automation/Actions/Configuration.php | 2 +- .../Automation/Actions/FormDataProcessor.php | 2 +- codegen/Automation/Actions/HeaderSelector.php | 2 +- ...tchInputCallbackCompletionBatchRequest.php | 2 +- .../Model/CallbackCompletionBatchRequest.php | 74 +- .../Model/CallbackCompletionRequest.php | 2 +- ...nsePublicActionDefinitionForwardPaging.php | 2 +- ...PublicActionFunctionIdentifierNoPaging.php | 2 +- ...ponsePublicActionRevisionForwardPaging.php | 2 +- codegen/Automation/Actions/Model/Error.php | 144 +-- .../Automation/Actions/Model/ErrorDetail.php | 120 +- .../Actions/Model/FieldTypeDefinition.php | 1036 ++++++++--------- .../Actions/Model/ForwardPaging.php | 2 +- .../Actions/Model/InputFieldDefinition.php | 116 +- .../Actions/Model/ModelInterface.php | 2 +- codegen/Automation/Actions/Model/NextPage.php | 68 +- codegen/Automation/Actions/Model/Option.php | 138 +-- .../Actions/Model/OutputFieldDefinition.php | 2 +- .../Actions/Model/PublicActionDefinition.php | 398 +++---- .../Model/PublicActionDefinitionEgg.php | 296 ++--- ...nDefinitionInputFieldDependenciesInner.php | 76 +- .../Model/PublicActionDefinitionPatch.php | 246 ++-- .../Actions/Model/PublicActionFunction.php | 10 +- .../Model/PublicActionFunctionIdentifier.php | 10 +- .../Actions/Model/PublicActionLabels.php | 242 ++-- .../Actions/Model/PublicActionRevision.php | 88 +- ...PublicConditionalSingleFieldDependency.php | 102 +- .../Model/PublicExecutionTranslationRule.php | 74 +- .../Model/PublicObjectRequestOptions.php | 2 +- .../Model/PublicSingleFieldDependency.php | 76 +- .../Automation/Actions/ObjectSerializer.php | 2 +- 36 files changed, 1675 insertions(+), 1675 deletions(-) diff --git a/codegen/Automation/Actions/Api/CallbacksApi.php b/codegen/Automation/Actions/Api/CallbacksApi.php index f7cc7870..c62cbb2d 100644 --- a/codegen/Automation/Actions/Api/CallbacksApi.php +++ b/codegen/Automation/Actions/Api/CallbacksApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Api/DefinitionsApi.php b/codegen/Automation/Actions/Api/DefinitionsApi.php index e6a6e80a..4b05bc43 100644 --- a/codegen/Automation/Actions/Api/DefinitionsApi.php +++ b/codegen/Automation/Actions/Api/DefinitionsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Api/FunctionsApi.php b/codegen/Automation/Actions/Api/FunctionsApi.php index 88ee69a9..0b0f6780 100644 --- a/codegen/Automation/Actions/Api/FunctionsApi.php +++ b/codegen/Automation/Actions/Api/FunctionsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Api/RevisionsApi.php b/codegen/Automation/Actions/Api/RevisionsApi.php index 2a0f704c..dc90f882 100644 --- a/codegen/Automation/Actions/Api/RevisionsApi.php +++ b/codegen/Automation/Actions/Api/RevisionsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/ApiException.php b/codegen/Automation/Actions/ApiException.php index 93b8e4ea..ddc1bdb4 100644 --- a/codegen/Automation/Actions/ApiException.php +++ b/codegen/Automation/Actions/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Configuration.php b/codegen/Automation/Actions/Configuration.php index 83b25247..b7c3fe0b 100644 --- a/codegen/Automation/Actions/Configuration.php +++ b/codegen/Automation/Actions/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/FormDataProcessor.php b/codegen/Automation/Actions/FormDataProcessor.php index 8d860b1f..3d0d5697 100644 --- a/codegen/Automation/Actions/FormDataProcessor.php +++ b/codegen/Automation/Actions/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/HeaderSelector.php b/codegen/Automation/Actions/HeaderSelector.php index 40508304..b82956e0 100644 --- a/codegen/Automation/Actions/HeaderSelector.php +++ b/codegen/Automation/Actions/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/BatchInputCallbackCompletionBatchRequest.php b/codegen/Automation/Actions/Model/BatchInputCallbackCompletionBatchRequest.php index 142337ef..069d158d 100644 --- a/codegen/Automation/Actions/Model/BatchInputCallbackCompletionBatchRequest.php +++ b/codegen/Automation/Actions/Model/BatchInputCallbackCompletionBatchRequest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/CallbackCompletionBatchRequest.php b/codegen/Automation/Actions/Model/CallbackCompletionBatchRequest.php index a5002d88..8a645980 100644 --- a/codegen/Automation/Actions/Model/CallbackCompletionBatchRequest.php +++ b/codegen/Automation/Actions/Model/CallbackCompletionBatchRequest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,8 +57,8 @@ class CallbackCompletionBatchRequest implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ - 'output_fields' => 'array', - 'callback_id' => 'string' + 'callback_id' => 'string', + 'output_fields' => 'array' ]; /** @@ -69,8 +69,8 @@ class CallbackCompletionBatchRequest implements ModelInterface, ArrayAccess, \Js * @psalm-var array */ protected static $openAPIFormats = [ - 'output_fields' => null, - 'callback_id' => null + 'callback_id' => null, + 'output_fields' => null ]; /** @@ -79,8 +79,8 @@ class CallbackCompletionBatchRequest implements ModelInterface, ArrayAccess, \Js * @var boolean[] */ protected static array $openAPINullables = [ - 'output_fields' => false, - 'callback_id' => false + 'callback_id' => false, + 'output_fields' => false ]; /** @@ -169,8 +169,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'output_fields' => 'outputFields', - 'callback_id' => 'callbackId' + 'callback_id' => 'callbackId', + 'output_fields' => 'outputFields' ]; /** @@ -179,8 +179,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'output_fields' => 'setOutputFields', - 'callback_id' => 'setCallbackId' + 'callback_id' => 'setCallbackId', + 'output_fields' => 'setOutputFields' ]; /** @@ -189,8 +189,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'output_fields' => 'getOutputFields', - 'callback_id' => 'getCallbackId' + 'callback_id' => 'getCallbackId', + 'output_fields' => 'getOutputFields' ]; /** @@ -250,8 +250,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('output_fields', $data ?? [], null); $this->setIfExists('callback_id', $data ?? [], null); + $this->setIfExists('output_fields', $data ?? [], null); } /** @@ -281,12 +281,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['output_fields'] === null) { - $invalidProperties[] = "'output_fields' can't be null"; - } if ($this->container['callback_id'] === null) { $invalidProperties[] = "'callback_id' can't be null"; } + if ($this->container['output_fields'] === null) { + $invalidProperties[] = "'output_fields' can't be null"; + } return $invalidProperties; } @@ -303,55 +303,55 @@ public function valid() /** - * Gets output_fields + * Gets callback_id * - * @return array + * @return string */ - public function getOutputFields() + public function getCallbackId() { - return $this->container['output_fields']; + return $this->container['callback_id']; } /** - * Sets output_fields + * Sets callback_id * - * @param array $output_fields output_fields + * @param string $callback_id callback_id * * @return self */ - public function setOutputFields($output_fields) + public function setCallbackId($callback_id) { - if (is_null($output_fields)) { - throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); + if (is_null($callback_id)) { + throw new \InvalidArgumentException('non-nullable callback_id cannot be null'); } - $this->container['output_fields'] = $output_fields; + $this->container['callback_id'] = $callback_id; return $this; } /** - * Gets callback_id + * Gets output_fields * - * @return string + * @return array */ - public function getCallbackId() + public function getOutputFields() { - return $this->container['callback_id']; + return $this->container['output_fields']; } /** - * Sets callback_id + * Sets output_fields * - * @param string $callback_id callback_id + * @param array $output_fields output_fields * * @return self */ - public function setCallbackId($callback_id) + public function setOutputFields($output_fields) { - if (is_null($callback_id)) { - throw new \InvalidArgumentException('non-nullable callback_id cannot be null'); + if (is_null($output_fields)) { + throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); } - $this->container['callback_id'] = $callback_id; + $this->container['output_fields'] = $output_fields; return $this; } diff --git a/codegen/Automation/Actions/Model/CallbackCompletionRequest.php b/codegen/Automation/Actions/Model/CallbackCompletionRequest.php index 155c947c..446aa9df 100644 --- a/codegen/Automation/Actions/Model/CallbackCompletionRequest.php +++ b/codegen/Automation/Actions/Model/CallbackCompletionRequest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/CollectionResponsePublicActionDefinitionForwardPaging.php b/codegen/Automation/Actions/Model/CollectionResponsePublicActionDefinitionForwardPaging.php index c1b82e8a..cb22d7b2 100644 --- a/codegen/Automation/Actions/Model/CollectionResponsePublicActionDefinitionForwardPaging.php +++ b/codegen/Automation/Actions/Model/CollectionResponsePublicActionDefinitionForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/CollectionResponsePublicActionFunctionIdentifierNoPaging.php b/codegen/Automation/Actions/Model/CollectionResponsePublicActionFunctionIdentifierNoPaging.php index 55a338e0..0927834a 100644 --- a/codegen/Automation/Actions/Model/CollectionResponsePublicActionFunctionIdentifierNoPaging.php +++ b/codegen/Automation/Actions/Model/CollectionResponsePublicActionFunctionIdentifierNoPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/CollectionResponsePublicActionRevisionForwardPaging.php b/codegen/Automation/Actions/Model/CollectionResponsePublicActionRevisionForwardPaging.php index 2d11c761..c0bf5bbd 100644 --- a/codegen/Automation/Actions/Model/CollectionResponsePublicActionRevisionForwardPaging.php +++ b/codegen/Automation/Actions/Model/CollectionResponsePublicActionRevisionForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/Error.php b/codegen/Automation/Actions/Model/Error.php index 6b2717ee..ffacc81a 100644 --- a/codegen/Automation/Actions/Model/Error.php +++ b/codegen/Automation/Actions/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Automation\Actions\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Automation\Actions\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\Automation\Actions\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Automation\Actions\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Automation\Actions\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\Automation\Actions\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Automation/Actions/Model/ErrorDetail.php b/codegen/Automation/Actions/Model/ErrorDetail.php index 3bda441b..cf43f6c4 100644 --- a/codegen/Automation/Actions/Model/ErrorDetail.php +++ b/codegen/Automation/Actions/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Automation/Actions/Model/FieldTypeDefinition.php b/codegen/Automation/Actions/Model/FieldTypeDefinition.php index df9f52d3..163d561a 100644 --- a/codegen/Automation/Actions/Model/FieldTypeDefinition.php +++ b/codegen/Automation/Actions/Model/FieldTypeDefinition.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,17 +57,17 @@ class FieldTypeDefinition implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'help_text' => 'string', - 'referenced_object_type' => 'string', - 'name' => 'string', - 'options' => '\HubSpot\Client\Automation\Actions\Model\Option[]', 'description' => 'string', + 'external_options' => 'bool', 'external_options_reference_type' => 'string', - 'label' => 'string', - 'type' => 'string', 'field_type' => 'string', + 'help_text' => 'string', + 'label' => 'string', + 'name' => 'string', + 'options' => '\HubSpot\Client\Automation\Actions\Model\Option[]', 'options_url' => 'string', - 'external_options' => 'bool' + 'referenced_object_type' => 'string', + 'type' => 'string' ]; /** @@ -78,17 +78,17 @@ class FieldTypeDefinition implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'help_text' => null, - 'referenced_object_type' => null, - 'name' => null, - 'options' => null, 'description' => null, + 'external_options' => null, 'external_options_reference_type' => null, - 'label' => null, - 'type' => null, 'field_type' => null, + 'help_text' => null, + 'label' => null, + 'name' => null, + 'options' => null, 'options_url' => null, - 'external_options' => null + 'referenced_object_type' => null, + 'type' => null ]; /** @@ -97,17 +97,17 @@ class FieldTypeDefinition implements ModelInterface, ArrayAccess, \JsonSerializa * @var boolean[] */ protected static array $openAPINullables = [ - 'help_text' => false, - 'referenced_object_type' => false, - 'name' => false, - 'options' => false, 'description' => false, + 'external_options' => false, 'external_options_reference_type' => false, - 'label' => false, - 'type' => false, 'field_type' => false, + 'help_text' => false, + 'label' => false, + 'name' => false, + 'options' => false, 'options_url' => false, - 'external_options' => false + 'referenced_object_type' => false, + 'type' => false ]; /** @@ -196,17 +196,17 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'help_text' => 'helpText', - 'referenced_object_type' => 'referencedObjectType', - 'name' => 'name', - 'options' => 'options', 'description' => 'description', + 'external_options' => 'externalOptions', 'external_options_reference_type' => 'externalOptionsReferenceType', - 'label' => 'label', - 'type' => 'type', 'field_type' => 'fieldType', + 'help_text' => 'helpText', + 'label' => 'label', + 'name' => 'name', + 'options' => 'options', 'options_url' => 'optionsUrl', - 'external_options' => 'externalOptions' + 'referenced_object_type' => 'referencedObjectType', + 'type' => 'type' ]; /** @@ -215,17 +215,17 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'help_text' => 'setHelpText', - 'referenced_object_type' => 'setReferencedObjectType', - 'name' => 'setName', - 'options' => 'setOptions', 'description' => 'setDescription', + 'external_options' => 'setExternalOptions', 'external_options_reference_type' => 'setExternalOptionsReferenceType', - 'label' => 'setLabel', - 'type' => 'setType', 'field_type' => 'setFieldType', + 'help_text' => 'setHelpText', + 'label' => 'setLabel', + 'name' => 'setName', + 'options' => 'setOptions', 'options_url' => 'setOptionsUrl', - 'external_options' => 'setExternalOptions' + 'referenced_object_type' => 'setReferencedObjectType', + 'type' => 'setType' ]; /** @@ -234,17 +234,17 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'help_text' => 'getHelpText', - 'referenced_object_type' => 'getReferencedObjectType', - 'name' => 'getName', - 'options' => 'getOptions', 'description' => 'getDescription', + 'external_options' => 'getExternalOptions', 'external_options_reference_type' => 'getExternalOptionsReferenceType', - 'label' => 'getLabel', - 'type' => 'getType', 'field_type' => 'getFieldType', + 'help_text' => 'getHelpText', + 'label' => 'getLabel', + 'name' => 'getName', + 'options' => 'getOptions', 'options_url' => 'getOptionsUrl', - 'external_options' => 'getExternalOptions' + 'referenced_object_type' => 'getReferencedObjectType', + 'type' => 'getType' ]; /** @@ -288,186 +288,213 @@ public function getModelName() return self::$openAPIModelName; } - public const REFERENCED_OBJECT_TYPE_CONTACT = 'CONTACT'; - public const REFERENCED_OBJECT_TYPE_COMPANY = 'COMPANY'; - public const REFERENCED_OBJECT_TYPE_DEAL = 'DEAL'; - public const REFERENCED_OBJECT_TYPE_ENGAGEMENT = 'ENGAGEMENT'; - public const REFERENCED_OBJECT_TYPE_TICKET = 'TICKET'; - public const REFERENCED_OBJECT_TYPE_OWNER = 'OWNER'; - public const REFERENCED_OBJECT_TYPE_PRODUCT = 'PRODUCT'; - public const REFERENCED_OBJECT_TYPE_LINE_ITEM = 'LINE_ITEM'; - public const REFERENCED_OBJECT_TYPE_BET_DELIVERABLE_SERVICE = 'BET_DELIVERABLE_SERVICE'; - public const REFERENCED_OBJECT_TYPE_CONTENT = 'CONTENT'; - public const REFERENCED_OBJECT_TYPE_CONVERSATION = 'CONVERSATION'; - public const REFERENCED_OBJECT_TYPE_BET_ALERT = 'BET_ALERT'; - public const REFERENCED_OBJECT_TYPE_PORTAL = 'PORTAL'; - public const REFERENCED_OBJECT_TYPE_QUOTE = 'QUOTE'; - public const REFERENCED_OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB = 'FORM_SUBMISSION_INBOUNDDB'; - public const REFERENCED_OBJECT_TYPE_QUOTA = 'QUOTA'; - public const REFERENCED_OBJECT_TYPE_UNSUBSCRIBE = 'UNSUBSCRIBE'; - public const REFERENCED_OBJECT_TYPE_COMMUNICATION = 'COMMUNICATION'; - public const REFERENCED_OBJECT_TYPE_FEEDBACK_SUBMISSION = 'FEEDBACK_SUBMISSION'; - public const REFERENCED_OBJECT_TYPE_ATTRIBUTION = 'ATTRIBUTION'; - public const REFERENCED_OBJECT_TYPE_SALESFORCE_SYNC_ERROR = 'SALESFORCE_SYNC_ERROR'; - public const REFERENCED_OBJECT_TYPE_RESTORABLE_CRM_OBJECT = 'RESTORABLE_CRM_OBJECT'; - public const REFERENCED_OBJECT_TYPE_HUB = 'HUB'; - public const REFERENCED_OBJECT_TYPE_LANDING_PAGE = 'LANDING_PAGE'; - public const REFERENCED_OBJECT_TYPE_PRODUCT_OR_FOLDER = 'PRODUCT_OR_FOLDER'; - public const REFERENCED_OBJECT_TYPE_TASK = 'TASK'; - public const REFERENCED_OBJECT_TYPE_FORM = 'FORM'; - public const REFERENCED_OBJECT_TYPE_MARKETING_EMAIL = 'MARKETING_EMAIL'; + public const FIELD_TYPE_BOOLEANCHECKBOX = 'booleancheckbox'; + public const FIELD_TYPE_CALCULATION_EQUATION = 'calculation_equation'; + public const FIELD_TYPE_CALCULATION_READ_TIME = 'calculation_read_time'; + public const FIELD_TYPE_CALCULATION_ROLLUP = 'calculation_rollup'; + public const FIELD_TYPE_CALCULATION_SCORE = 'calculation_score'; + public const FIELD_TYPE_CHECKBOX = 'checkbox'; + public const FIELD_TYPE_DATE = 'date'; + public const FIELD_TYPE_FILE = 'file'; + public const FIELD_TYPE_HTML = 'html'; + public const FIELD_TYPE_NUMBER = 'number'; + public const FIELD_TYPE_PHONENUMBER = 'phonenumber'; + public const FIELD_TYPE_RADIO = 'radio'; + public const FIELD_TYPE_SELECT = 'select'; + public const FIELD_TYPE_TEXT = 'text'; + public const FIELD_TYPE_TEXTAREA = 'textarea'; + public const FIELD_TYPE_UNKNOWN = 'unknown'; + public const REFERENCED_OBJECT_TYPE_ABANDONED_CART = 'ABANDONED_CART'; + public const REFERENCED_OBJECT_TYPE_ACCEPTANCE_TEST = 'ACCEPTANCE_TEST'; + public const REFERENCED_OBJECT_TYPE_AD = 'AD'; public const REFERENCED_OBJECT_TYPE_AD_ACCOUNT = 'AD_ACCOUNT'; public const REFERENCED_OBJECT_TYPE_AD_CAMPAIGN = 'AD_CAMPAIGN'; public const REFERENCED_OBJECT_TYPE_AD_GROUP = 'AD_GROUP'; - public const REFERENCED_OBJECT_TYPE_AD = 'AD'; - public const REFERENCED_OBJECT_TYPE_KEYWORD = 'KEYWORD'; - public const REFERENCED_OBJECT_TYPE_CAMPAIGN = 'CAMPAIGN'; - public const REFERENCED_OBJECT_TYPE_SOCIAL_CHANNEL = 'SOCIAL_CHANNEL'; - public const REFERENCED_OBJECT_TYPE_SOCIAL_POST = 'SOCIAL_POST'; - public const REFERENCED_OBJECT_TYPE_SITE_PAGE = 'SITE_PAGE'; - public const REFERENCED_OBJECT_TYPE_BLOG_POST = 'BLOG_POST'; - public const REFERENCED_OBJECT_TYPE_IMPORT = 'IMPORT'; - public const REFERENCED_OBJECT_TYPE_EXPORT = 'EXPORT'; - public const REFERENCED_OBJECT_TYPE_CTA = 'CTA'; - public const REFERENCED_OBJECT_TYPE_TASK_TEMPLATE = 'TASK_TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_AI_FORECAST = 'AI_FORECAST'; + public const REFERENCED_OBJECT_TYPE_ALL_PAGES = 'ALL_PAGES'; + public const REFERENCED_OBJECT_TYPE_APPROVAL = 'APPROVAL'; + public const REFERENCED_OBJECT_TYPE_APPROVAL_STEP = 'APPROVAL_STEP'; + public const REFERENCED_OBJECT_TYPE_ATTRIBUTION = 'ATTRIBUTION'; + public const REFERENCED_OBJECT_TYPE_AUDIENCE = 'AUDIENCE'; + public const REFERENCED_OBJECT_TYPE_AUTOMATION_JOURNEY = 'AUTOMATION_JOURNEY'; public const REFERENCED_OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW = 'AUTOMATION_PLATFORM_FLOW'; - public const REFERENCED_OBJECT_TYPE_OBJECT_LIST = 'OBJECT_LIST'; - public const REFERENCED_OBJECT_TYPE_NOTE = 'NOTE'; - public const REFERENCED_OBJECT_TYPE_MEETING_EVENT = 'MEETING_EVENT'; + public const REFERENCED_OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION = 'AUTOMATION_PLATFORM_FLOW_ACTION'; + public const REFERENCED_OBJECT_TYPE_BET_ALERT = 'BET_ALERT'; + public const REFERENCED_OBJECT_TYPE_BET_DELIVERABLE_SERVICE = 'BET_DELIVERABLE_SERVICE'; + public const REFERENCED_OBJECT_TYPE_BLOG_LISTING_PAGE = 'BLOG_LISTING_PAGE'; + public const REFERENCED_OBJECT_TYPE_BLOG_POST = 'BLOG_POST'; public const REFERENCED_OBJECT_TYPE_CALL = 'CALL'; - public const REFERENCED_OBJECT_TYPE_EMAIL = 'EMAIL'; - public const REFERENCED_OBJECT_TYPE_PUBLISHING_TASK = 'PUBLISHING_TASK'; - public const REFERENCED_OBJECT_TYPE_CONVERSATION_SESSION = 'CONVERSATION_SESSION'; + public const REFERENCED_OBJECT_TYPE_CAMPAIGN = 'CAMPAIGN'; + public const REFERENCED_OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM = 'CAMPAIGN_BUDGET_ITEM'; + public const REFERENCED_OBJECT_TYPE_CAMPAIGN_SPEND_ITEM = 'CAMPAIGN_SPEND_ITEM'; + public const REFERENCED_OBJECT_TYPE_CAMPAIGN_STEP = 'CAMPAIGN_STEP'; + public const REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE = 'CAMPAIGN_TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP = 'CAMPAIGN_TEMPLATE_STEP'; + public const REFERENCED_OBJECT_TYPE_CART = 'CART'; + public const REFERENCED_OBJECT_TYPE_CHATFLOW = 'CHATFLOW'; + public const REFERENCED_OBJECT_TYPE_CLIP = 'CLIP'; + public const REFERENCED_OBJECT_TYPE_CMS_URL = 'CMS_URL'; + public const REFERENCED_OBJECT_TYPE_COMMERCE_PAYMENT = 'COMMERCE_PAYMENT'; + public const REFERENCED_OBJECT_TYPE_COMMUNICATION = 'COMMUNICATION'; + public const REFERENCED_OBJECT_TYPE_COMPANY = 'COMPANY'; + public const REFERENCED_OBJECT_TYPE_CONTACT = 'CONTACT'; public const REFERENCED_OBJECT_TYPE_CONTACT_CREATE_ATTRIBUTION = 'CONTACT_CREATE_ATTRIBUTION'; - public const REFERENCED_OBJECT_TYPE_INVOICE = 'INVOICE'; - public const REFERENCED_OBJECT_TYPE_MARKETING_EVENT = 'MARKETING_EVENT'; + public const REFERENCED_OBJECT_TYPE_CONTENT = 'CONTENT'; + public const REFERENCED_OBJECT_TYPE_CONTENT_AUDIT = 'CONTENT_AUDIT'; + public const REFERENCED_OBJECT_TYPE_CONTENT_AUDIT_PAGE = 'CONTENT_AUDIT_PAGE'; + public const REFERENCED_OBJECT_TYPE_CONVERSATION = 'CONVERSATION'; public const REFERENCED_OBJECT_TYPE_CONVERSATION_INBOX = 'CONVERSATION_INBOX'; - public const REFERENCED_OBJECT_TYPE_CHATFLOW = 'CHATFLOW'; - public const REFERENCED_OBJECT_TYPE_MEDIA_BRIDGE = 'MEDIA_BRIDGE'; - public const REFERENCED_OBJECT_TYPE_SEQUENCE = 'SEQUENCE'; - public const REFERENCED_OBJECT_TYPE_SEQUENCE_STEP = 'SEQUENCE_STEP'; - public const REFERENCED_OBJECT_TYPE_FORECAST = 'FORECAST'; - public const REFERENCED_OBJECT_TYPE_SNIPPET = 'SNIPPET'; - public const REFERENCED_OBJECT_TYPE_TEMPLATE = 'TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_CONVERSATION_SESSION = 'CONVERSATION_SESSION'; + public const REFERENCED_OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE = 'CRM_PIPELINES_DUMMY_TYPE'; + public const REFERENCED_OBJECT_TYPE_CTA = 'CTA'; + public const REFERENCED_OBJECT_TYPE_CTA_VARIANT = 'CTA_VARIANT'; + public const REFERENCED_OBJECT_TYPE_DATA_PRIVACY_CONSENT = 'DATA_PRIVACY_CONSENT'; + public const REFERENCED_OBJECT_TYPE_DATA_SYNC_STATE = 'DATA_SYNC_STATE'; + public const REFERENCED_OBJECT_TYPE_DEAL = 'DEAL'; public const REFERENCED_OBJECT_TYPE_DEAL_CREATE_ATTRIBUTION = 'DEAL_CREATE_ATTRIBUTION'; - public const REFERENCED_OBJECT_TYPE_QUOTE_TEMPLATE = 'QUOTE_TEMPLATE'; - public const REFERENCED_OBJECT_TYPE_QUOTE_MODULE = 'QUOTE_MODULE'; - public const REFERENCED_OBJECT_TYPE_QUOTE_MODULE_FIELD = 'QUOTE_MODULE_FIELD'; - public const REFERENCED_OBJECT_TYPE_QUOTE_FIELD = 'QUOTE_FIELD'; - public const REFERENCED_OBJECT_TYPE_SEQUENCE_ENROLLMENT = 'SEQUENCE_ENROLLMENT'; - public const REFERENCED_OBJECT_TYPE_SUBSCRIPTION = 'SUBSCRIPTION'; - public const REFERENCED_OBJECT_TYPE_ACCEPTANCE_TEST = 'ACCEPTANCE_TEST'; - public const REFERENCED_OBJECT_TYPE_SOCIAL_BROADCAST = 'SOCIAL_BROADCAST'; - public const REFERENCED_OBJECT_TYPE_DEAL_SPLIT = 'DEAL_SPLIT'; public const REFERENCED_OBJECT_TYPE_DEAL_REGISTRATION = 'DEAL_REGISTRATION'; - public const REFERENCED_OBJECT_TYPE_GOAL_TARGET = 'GOAL_TARGET'; - public const REFERENCED_OBJECT_TYPE_GOAL_TARGET_GROUP = 'GOAL_TARGET_GROUP'; - public const REFERENCED_OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE = 'PORTAL_OBJECT_SYNC_MESSAGE'; - public const REFERENCED_OBJECT_TYPE_FILE_MANAGER_FILE = 'FILE_MANAGER_FILE'; - public const REFERENCED_OBJECT_TYPE_FILE_MANAGER_FOLDER = 'FILE_MANAGER_FOLDER'; - public const REFERENCED_OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT = 'SEQUENCE_STEP_ENROLLMENT'; - public const REFERENCED_OBJECT_TYPE_APPROVAL = 'APPROVAL'; - public const REFERENCED_OBJECT_TYPE_APPROVAL_STEP = 'APPROVAL_STEP'; - public const REFERENCED_OBJECT_TYPE_CTA_VARIANT = 'CTA_VARIANT'; - public const REFERENCED_OBJECT_TYPE_SALES_DOCUMENT = 'SALES_DOCUMENT'; + public const REFERENCED_OBJECT_TYPE_DEAL_SPLIT = 'DEAL_SPLIT'; public const REFERENCED_OBJECT_TYPE_DISCOUNT = 'DISCOUNT'; + public const REFERENCED_OBJECT_TYPE_DISCOUNT_CODE = 'DISCOUNT_CODE'; + public const REFERENCED_OBJECT_TYPE_DISCOUNT_TEMPLATE = 'DISCOUNT_TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_EMAIL = 'EMAIL'; + public const REFERENCED_OBJECT_TYPE_ENGAGEMENT = 'ENGAGEMENT'; + public const REFERENCED_OBJECT_TYPE_EXPORT = 'EXPORT'; + public const REFERENCED_OBJECT_TYPE_EXTERNAL_WEB_URL = 'EXTERNAL_WEB_URL'; public const REFERENCED_OBJECT_TYPE_FEE = 'FEE'; - public const REFERENCED_OBJECT_TYPE_TAX = 'TAX'; + public const REFERENCED_OBJECT_TYPE_FEEDBACK_SUBMISSION = 'FEEDBACK_SUBMISSION'; + public const REFERENCED_OBJECT_TYPE_FEEDBACK_SURVEY = 'FEEDBACK_SURVEY'; + public const REFERENCED_OBJECT_TYPE_FILE_MANAGER_FILE = 'FILE_MANAGER_FILE'; + public const REFERENCED_OBJECT_TYPE_FILE_MANAGER_FOLDER = 'FILE_MANAGER_FOLDER'; + public const REFERENCED_OBJECT_TYPE_FOLDER = 'FOLDER'; + public const REFERENCED_OBJECT_TYPE_FORECAST = 'FORECAST'; + public const REFERENCED_OBJECT_TYPE_FORM = 'FORM'; + public const REFERENCED_OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB = 'FORM_SUBMISSION_INBOUNDDB'; + public const REFERENCED_OBJECT_TYPE_GOAL_TARGET = 'GOAL_TARGET'; + public const REFERENCED_OBJECT_TYPE_GOAL_TARGET_GROUP = 'GOAL_TARGET_GROUP'; + public const REFERENCED_OBJECT_TYPE_GOAL_TEMPLATE = 'GOAL_TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_GSC_PROPERTY = 'GSC_PROPERTY'; + public const REFERENCED_OBJECT_TYPE_HUB = 'HUB'; + public const REFERENCED_OBJECT_TYPE_IMPORT = 'IMPORT'; + public const REFERENCED_OBJECT_TYPE_INVOICE = 'INVOICE'; + public const REFERENCED_OBJECT_TYPE_KEYWORD = 'KEYWORD'; + public const REFERENCED_OBJECT_TYPE_KNOWLEDGE_ARTICLE = 'KNOWLEDGE_ARTICLE'; + public const REFERENCED_OBJECT_TYPE_LANDING_PAGE = 'LANDING_PAGE'; + public const REFERENCED_OBJECT_TYPE_LEAD = 'LEAD'; + public const REFERENCED_OBJECT_TYPE_LINE_ITEM = 'LINE_ITEM'; public const REFERENCED_OBJECT_TYPE_MARKETING_CALENDAR = 'MARKETING_CALENDAR'; + public const REFERENCED_OBJECT_TYPE_MARKETING_CAMPAIGN_UTM = 'MARKETING_CAMPAIGN_UTM'; + public const REFERENCED_OBJECT_TYPE_MARKETING_EMAIL = 'MARKETING_EMAIL'; + public const REFERENCED_OBJECT_TYPE_MARKETING_EVENT = 'MARKETING_EVENT'; + public const REFERENCED_OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE = 'MARKETING_EVENT_ATTENDANCE'; + public const REFERENCED_OBJECT_TYPE_MARKETING_SMS = 'MARKETING_SMS'; + public const REFERENCED_OBJECT_TYPE_MEDIA_BRIDGE = 'MEDIA_BRIDGE'; + public const REFERENCED_OBJECT_TYPE_MEETING_EVENT = 'MEETING_EVENT'; + public const REFERENCED_OBJECT_TYPE_MIC = 'MIC'; + public const REFERENCED_OBJECT_TYPE_NOTE = 'NOTE'; + public const REFERENCED_OBJECT_TYPE_OBJECT_LIST = 'OBJECT_LIST'; + public const REFERENCED_OBJECT_TYPE_ORDER = 'ORDER'; + public const REFERENCED_OBJECT_TYPE_OWNER = 'OWNER'; + public const REFERENCED_OBJECT_TYPE_PARTNER_ACCOUNT = 'PARTNER_ACCOUNT'; + public const REFERENCED_OBJECT_TYPE_PARTNER_CLIENT = 'PARTNER_CLIENT'; + public const REFERENCED_OBJECT_TYPE_PARTNER_CLIENT_REVENUE = 'PARTNER_CLIENT_REVENUE'; + public const REFERENCED_OBJECT_TYPE_PAYMENT_LINK = 'PAYMENT_LINK'; + public const REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE = 'PAYMENT_SCHEDULE'; + public const REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT = 'PAYMENT_SCHEDULE_INSTALLMENT'; public const REFERENCED_OBJECT_TYPE_PERMISSIONS_TESTING = 'PERMISSIONS_TESTING'; - public const REFERENCED_OBJECT_TYPE_PRIVACY_SCANNER_COOKIE = 'PRIVACY_SCANNER_COOKIE'; - public const REFERENCED_OBJECT_TYPE_DATA_SYNC_STATE = 'DATA_SYNC_STATE'; - public const REFERENCED_OBJECT_TYPE_WEB_INTERACTIVE = 'WEB_INTERACTIVE'; public const REFERENCED_OBJECT_TYPE_PLAYBOOK = 'PLAYBOOK'; - public const REFERENCED_OBJECT_TYPE_FOLDER = 'FOLDER'; public const REFERENCED_OBJECT_TYPE_PLAYBOOK_QUESTION = 'PLAYBOOK_QUESTION'; public const REFERENCED_OBJECT_TYPE_PLAYBOOK_SUBMISSION = 'PLAYBOOK_SUBMISSION'; public const REFERENCED_OBJECT_TYPE_PLAYBOOK_SUBMISSION_ANSWER = 'PLAYBOOK_SUBMISSION_ANSWER'; - public const REFERENCED_OBJECT_TYPE_COMMERCE_PAYMENT = 'COMMERCE_PAYMENT'; - public const REFERENCED_OBJECT_TYPE_GSC_PROPERTY = 'GSC_PROPERTY'; - public const REFERENCED_OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE = 'SOX_PROTECTED_DUMMY_TYPE'; - public const REFERENCED_OBJECT_TYPE_BLOG_LISTING_PAGE = 'BLOG_LISTING_PAGE'; + public const REFERENCED_OBJECT_TYPE_PLAYLIST = 'PLAYLIST'; + public const REFERENCED_OBJECT_TYPE_PLAYLIST_FOLDER = 'PLAYLIST_FOLDER'; + public const REFERENCED_OBJECT_TYPE_PORTAL = 'PORTAL'; + public const REFERENCED_OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE = 'PORTAL_OBJECT_SYNC_MESSAGE'; + public const REFERENCED_OBJECT_TYPE_POSTAL_MAIL = 'POSTAL_MAIL'; + public const REFERENCED_OBJECT_TYPE_PRIVACY_SCANNER_COOKIE = 'PRIVACY_SCANNER_COOKIE'; + public const REFERENCED_OBJECT_TYPE_PRODUCT = 'PRODUCT'; + public const REFERENCED_OBJECT_TYPE_PRODUCT_OR_FOLDER = 'PRODUCT_OR_FOLDER'; + public const REFERENCED_OBJECT_TYPE_PROPERTY_INFO = 'PROPERTY_INFO'; + public const REFERENCED_OBJECT_TYPE_PUBLISHING_TASK = 'PUBLISHING_TASK'; public const REFERENCED_OBJECT_TYPE_QUARANTINED_SUBMISSION = 'QUARANTINED_SUBMISSION'; - public const REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE = 'PAYMENT_SCHEDULE'; - public const REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT = 'PAYMENT_SCHEDULE_INSTALLMENT'; - public const REFERENCED_OBJECT_TYPE_MARKETING_CAMPAIGN_UTM = 'MARKETING_CAMPAIGN_UTM'; - public const REFERENCED_OBJECT_TYPE_DISCOUNT_TEMPLATE = 'DISCOUNT_TEMPLATE'; - public const REFERENCED_OBJECT_TYPE_DISCOUNT_CODE = 'DISCOUNT_CODE'; - public const REFERENCED_OBJECT_TYPE_FEEDBACK_SURVEY = 'FEEDBACK_SURVEY'; - public const REFERENCED_OBJECT_TYPE_CMS_URL = 'CMS_URL'; + public const REFERENCED_OBJECT_TYPE_QUOTA = 'QUOTA'; + public const REFERENCED_OBJECT_TYPE_QUOTE = 'QUOTE'; + public const REFERENCED_OBJECT_TYPE_QUOTE_FIELD = 'QUOTE_FIELD'; + public const REFERENCED_OBJECT_TYPE_QUOTE_MODULE = 'QUOTE_MODULE'; + public const REFERENCED_OBJECT_TYPE_QUOTE_MODULE_FIELD = 'QUOTE_MODULE_FIELD'; + public const REFERENCED_OBJECT_TYPE_QUOTE_TEMPLATE = 'QUOTE_TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_RESTORABLE_CRM_OBJECT = 'RESTORABLE_CRM_OBJECT'; + public const REFERENCED_OBJECT_TYPE_ROSTER = 'ROSTER'; + public const REFERENCED_OBJECT_TYPE_ROSTER_MEMBER = 'ROSTER_MEMBER'; + public const REFERENCED_OBJECT_TYPE_SALES_DOCUMENT = 'SALES_DOCUMENT'; public const REFERENCED_OBJECT_TYPE_SALES_TASK = 'SALES_TASK'; public const REFERENCED_OBJECT_TYPE_SALES_WORKLOAD = 'SALES_WORKLOAD'; - public const REFERENCED_OBJECT_TYPE_USER = 'USER'; - public const REFERENCED_OBJECT_TYPE_POSTAL_MAIL = 'POSTAL_MAIL'; - public const REFERENCED_OBJECT_TYPE_SCHEMAS_BACKEND_TEST = 'SCHEMAS_BACKEND_TEST'; - public const REFERENCED_OBJECT_TYPE_PAYMENT_LINK = 'PAYMENT_LINK'; - public const REFERENCED_OBJECT_TYPE_SUBMISSION_TAG = 'SUBMISSION_TAG'; - public const REFERENCED_OBJECT_TYPE_CAMPAIGN_STEP = 'CAMPAIGN_STEP'; + public const REFERENCED_OBJECT_TYPE_SALESFORCE_SYNC_ERROR = 'SALESFORCE_SYNC_ERROR'; public const REFERENCED_OBJECT_TYPE_SCHEDULING_PAGE = 'SCHEDULING_PAGE'; + public const REFERENCED_OBJECT_TYPE_SCHEMAS_BACKEND_TEST = 'SCHEMAS_BACKEND_TEST'; + public const REFERENCED_OBJECT_TYPE_SCORE_CONFIGURATION = 'SCORE_CONFIGURATION'; + public const REFERENCED_OBJECT_TYPE_SEQUENCE = 'SEQUENCE'; + public const REFERENCED_OBJECT_TYPE_SEQUENCE_ENROLLMENT = 'SEQUENCE_ENROLLMENT'; + public const REFERENCED_OBJECT_TYPE_SEQUENCE_STEP = 'SEQUENCE_STEP'; + public const REFERENCED_OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT = 'SEQUENCE_STEP_ENROLLMENT'; + public const REFERENCED_OBJECT_TYPE_SITE_PAGE = 'SITE_PAGE'; + public const REFERENCED_OBJECT_TYPE_SNIPPET = 'SNIPPET'; + public const REFERENCED_OBJECT_TYPE_SOCIAL_BROADCAST = 'SOCIAL_BROADCAST'; + public const REFERENCED_OBJECT_TYPE_SOCIAL_CHANNEL = 'SOCIAL_CHANNEL'; + public const REFERENCED_OBJECT_TYPE_SOCIAL_POST = 'SOCIAL_POST'; + public const REFERENCED_OBJECT_TYPE_SOCIAL_PROFILE = 'SOCIAL_PROFILE'; + public const REFERENCED_OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE = 'SOX_PROTECTED_DUMMY_TYPE'; public const REFERENCED_OBJECT_TYPE_SOX_PROTECTED_TEST_TYPE = 'SOX_PROTECTED_TEST_TYPE'; - public const REFERENCED_OBJECT_TYPE_ORDER = 'ORDER'; - public const REFERENCED_OBJECT_TYPE_MARKETING_SMS = 'MARKETING_SMS'; - public const REFERENCED_OBJECT_TYPE_PARTNER_ACCOUNT = 'PARTNER_ACCOUNT'; - public const REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE = 'CAMPAIGN_TEMPLATE'; - public const REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP = 'CAMPAIGN_TEMPLATE_STEP'; - public const REFERENCED_OBJECT_TYPE_PLAYLIST = 'PLAYLIST'; - public const REFERENCED_OBJECT_TYPE_CLIP = 'CLIP'; - public const REFERENCED_OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM = 'CAMPAIGN_BUDGET_ITEM'; - public const REFERENCED_OBJECT_TYPE_CAMPAIGN_SPEND_ITEM = 'CAMPAIGN_SPEND_ITEM'; - public const REFERENCED_OBJECT_TYPE_MIC = 'MIC'; - public const REFERENCED_OBJECT_TYPE_CONTENT_AUDIT = 'CONTENT_AUDIT'; - public const REFERENCED_OBJECT_TYPE_CONTENT_AUDIT_PAGE = 'CONTENT_AUDIT_PAGE'; - public const REFERENCED_OBJECT_TYPE_PLAYLIST_FOLDER = 'PLAYLIST_FOLDER'; - public const REFERENCED_OBJECT_TYPE_LEAD = 'LEAD'; - public const REFERENCED_OBJECT_TYPE_ABANDONED_CART = 'ABANDONED_CART'; - public const REFERENCED_OBJECT_TYPE_EXTERNAL_WEB_URL = 'EXTERNAL_WEB_URL'; + public const REFERENCED_OBJECT_TYPE_SUBMISSION_TAG = 'SUBMISSION_TAG'; + public const REFERENCED_OBJECT_TYPE_SUBSCRIPTION = 'SUBSCRIPTION'; + public const REFERENCED_OBJECT_TYPE_TASK = 'TASK'; + public const REFERENCED_OBJECT_TYPE_TASK_TEMPLATE = 'TASK_TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_TAX = 'TAX'; + public const REFERENCED_OBJECT_TYPE_TEMPLATE = 'TEMPLATE'; + public const REFERENCED_OBJECT_TYPE_TICKET = 'TICKET'; + public const REFERENCED_OBJECT_TYPE_UNKNOWN = 'UNKNOWN'; + public const REFERENCED_OBJECT_TYPE_UNSUBSCRIBE = 'UNSUBSCRIBE'; + public const REFERENCED_OBJECT_TYPE_USER = 'USER'; public const REFERENCED_OBJECT_TYPE_VIEW = 'VIEW'; public const REFERENCED_OBJECT_TYPE_VIEW_BLOCK = 'VIEW_BLOCK'; - public const REFERENCED_OBJECT_TYPE_ROSTER = 'ROSTER'; - public const REFERENCED_OBJECT_TYPE_CART = 'CART'; - public const REFERENCED_OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION = 'AUTOMATION_PLATFORM_FLOW_ACTION'; - public const REFERENCED_OBJECT_TYPE_SOCIAL_PROFILE = 'SOCIAL_PROFILE'; - public const REFERENCED_OBJECT_TYPE_PARTNER_CLIENT = 'PARTNER_CLIENT'; - public const REFERENCED_OBJECT_TYPE_ROSTER_MEMBER = 'ROSTER_MEMBER'; - public const REFERENCED_OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE = 'MARKETING_EVENT_ATTENDANCE'; - public const REFERENCED_OBJECT_TYPE_ALL_PAGES = 'ALL_PAGES'; - public const REFERENCED_OBJECT_TYPE_AI_FORECAST = 'AI_FORECAST'; - public const REFERENCED_OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE = 'CRM_PIPELINES_DUMMY_TYPE'; - public const REFERENCED_OBJECT_TYPE_KNOWLEDGE_ARTICLE = 'KNOWLEDGE_ARTICLE'; - public const REFERENCED_OBJECT_TYPE_PROPERTY_INFO = 'PROPERTY_INFO'; - public const REFERENCED_OBJECT_TYPE_DATA_PRIVACY_CONSENT = 'DATA_PRIVACY_CONSENT'; - public const REFERENCED_OBJECT_TYPE_GOAL_TEMPLATE = 'GOAL_TEMPLATE'; - public const REFERENCED_OBJECT_TYPE_SCORE_CONFIGURATION = 'SCORE_CONFIGURATION'; - public const REFERENCED_OBJECT_TYPE_AUDIENCE = 'AUDIENCE'; - public const REFERENCED_OBJECT_TYPE_PARTNER_CLIENT_REVENUE = 'PARTNER_CLIENT_REVENUE'; - public const REFERENCED_OBJECT_TYPE_AUTOMATION_JOURNEY = 'AUTOMATION_JOURNEY'; - public const REFERENCED_OBJECT_TYPE_UNKNOWN = 'UNKNOWN'; - public const TYPE_STRING = 'string'; - public const TYPE_NUMBER = 'number'; + public const REFERENCED_OBJECT_TYPE_WEB_INTERACTIVE = 'WEB_INTERACTIVE'; public const TYPE_BOOL = 'bool'; + public const TYPE_CURRENCY_NUMBER = 'currency_number'; + public const TYPE_DATE = 'date'; public const TYPE_DATETIME = 'datetime'; public const TYPE_ENUMERATION = 'enumeration'; - public const TYPE_DATE = 'date'; - public const TYPE_PHONE_NUMBER = 'phone_number'; - public const TYPE_CURRENCY_NUMBER = 'currency_number'; public const TYPE_JSON = 'json'; + public const TYPE_NUMBER = 'number'; public const TYPE_OBJECT_COORDINATES = 'object_coordinates'; - public const FIELD_TYPE_BOOLEANCHECKBOX = 'booleancheckbox'; - public const FIELD_TYPE_CHECKBOX = 'checkbox'; - public const FIELD_TYPE_DATE = 'date'; - public const FIELD_TYPE_FILE = 'file'; - public const FIELD_TYPE_NUMBER = 'number'; - public const FIELD_TYPE_PHONENUMBER = 'phonenumber'; - public const FIELD_TYPE_RADIO = 'radio'; - public const FIELD_TYPE_SELECT = 'select'; - public const FIELD_TYPE_TEXT = 'text'; - public const FIELD_TYPE_TEXTAREA = 'textarea'; - public const FIELD_TYPE_CALCULATION_EQUATION = 'calculation_equation'; - public const FIELD_TYPE_CALCULATION_ROLLUP = 'calculation_rollup'; - public const FIELD_TYPE_CALCULATION_SCORE = 'calculation_score'; - public const FIELD_TYPE_CALCULATION_READ_TIME = 'calculation_read_time'; - public const FIELD_TYPE_UNKNOWN = 'unknown'; - public const FIELD_TYPE_HTML = 'html'; + public const TYPE_PHONE_NUMBER = 'phone_number'; + public const TYPE_STRING = 'string'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFieldTypeAllowableValues() + { + return [ + self::FIELD_TYPE_BOOLEANCHECKBOX, + self::FIELD_TYPE_CALCULATION_EQUATION, + self::FIELD_TYPE_CALCULATION_READ_TIME, + self::FIELD_TYPE_CALCULATION_ROLLUP, + self::FIELD_TYPE_CALCULATION_SCORE, + self::FIELD_TYPE_CHECKBOX, + self::FIELD_TYPE_DATE, + self::FIELD_TYPE_FILE, + self::FIELD_TYPE_HTML, + self::FIELD_TYPE_NUMBER, + self::FIELD_TYPE_PHONENUMBER, + self::FIELD_TYPE_RADIO, + self::FIELD_TYPE_SELECT, + self::FIELD_TYPE_TEXT, + self::FIELD_TYPE_TEXTAREA, + self::FIELD_TYPE_UNKNOWN, + ]; + } /** * Gets allowable values of the enum @@ -477,160 +504,160 @@ public function getModelName() public function getReferencedObjectTypeAllowableValues() { return [ - self::REFERENCED_OBJECT_TYPE_CONTACT, - self::REFERENCED_OBJECT_TYPE_COMPANY, - self::REFERENCED_OBJECT_TYPE_DEAL, - self::REFERENCED_OBJECT_TYPE_ENGAGEMENT, - self::REFERENCED_OBJECT_TYPE_TICKET, - self::REFERENCED_OBJECT_TYPE_OWNER, - self::REFERENCED_OBJECT_TYPE_PRODUCT, - self::REFERENCED_OBJECT_TYPE_LINE_ITEM, - self::REFERENCED_OBJECT_TYPE_BET_DELIVERABLE_SERVICE, - self::REFERENCED_OBJECT_TYPE_CONTENT, - self::REFERENCED_OBJECT_TYPE_CONVERSATION, - self::REFERENCED_OBJECT_TYPE_BET_ALERT, - self::REFERENCED_OBJECT_TYPE_PORTAL, - self::REFERENCED_OBJECT_TYPE_QUOTE, - self::REFERENCED_OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB, - self::REFERENCED_OBJECT_TYPE_QUOTA, - self::REFERENCED_OBJECT_TYPE_UNSUBSCRIBE, - self::REFERENCED_OBJECT_TYPE_COMMUNICATION, - self::REFERENCED_OBJECT_TYPE_FEEDBACK_SUBMISSION, - self::REFERENCED_OBJECT_TYPE_ATTRIBUTION, - self::REFERENCED_OBJECT_TYPE_SALESFORCE_SYNC_ERROR, - self::REFERENCED_OBJECT_TYPE_RESTORABLE_CRM_OBJECT, - self::REFERENCED_OBJECT_TYPE_HUB, - self::REFERENCED_OBJECT_TYPE_LANDING_PAGE, - self::REFERENCED_OBJECT_TYPE_PRODUCT_OR_FOLDER, - self::REFERENCED_OBJECT_TYPE_TASK, - self::REFERENCED_OBJECT_TYPE_FORM, - self::REFERENCED_OBJECT_TYPE_MARKETING_EMAIL, + self::REFERENCED_OBJECT_TYPE_ABANDONED_CART, + self::REFERENCED_OBJECT_TYPE_ACCEPTANCE_TEST, + self::REFERENCED_OBJECT_TYPE_AD, self::REFERENCED_OBJECT_TYPE_AD_ACCOUNT, self::REFERENCED_OBJECT_TYPE_AD_CAMPAIGN, self::REFERENCED_OBJECT_TYPE_AD_GROUP, - self::REFERENCED_OBJECT_TYPE_AD, - self::REFERENCED_OBJECT_TYPE_KEYWORD, - self::REFERENCED_OBJECT_TYPE_CAMPAIGN, - self::REFERENCED_OBJECT_TYPE_SOCIAL_CHANNEL, - self::REFERENCED_OBJECT_TYPE_SOCIAL_POST, - self::REFERENCED_OBJECT_TYPE_SITE_PAGE, - self::REFERENCED_OBJECT_TYPE_BLOG_POST, - self::REFERENCED_OBJECT_TYPE_IMPORT, - self::REFERENCED_OBJECT_TYPE_EXPORT, - self::REFERENCED_OBJECT_TYPE_CTA, - self::REFERENCED_OBJECT_TYPE_TASK_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_AI_FORECAST, + self::REFERENCED_OBJECT_TYPE_ALL_PAGES, + self::REFERENCED_OBJECT_TYPE_APPROVAL, + self::REFERENCED_OBJECT_TYPE_APPROVAL_STEP, + self::REFERENCED_OBJECT_TYPE_ATTRIBUTION, + self::REFERENCED_OBJECT_TYPE_AUDIENCE, + self::REFERENCED_OBJECT_TYPE_AUTOMATION_JOURNEY, self::REFERENCED_OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW, - self::REFERENCED_OBJECT_TYPE_OBJECT_LIST, - self::REFERENCED_OBJECT_TYPE_NOTE, - self::REFERENCED_OBJECT_TYPE_MEETING_EVENT, + self::REFERENCED_OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION, + self::REFERENCED_OBJECT_TYPE_BET_ALERT, + self::REFERENCED_OBJECT_TYPE_BET_DELIVERABLE_SERVICE, + self::REFERENCED_OBJECT_TYPE_BLOG_LISTING_PAGE, + self::REFERENCED_OBJECT_TYPE_BLOG_POST, self::REFERENCED_OBJECT_TYPE_CALL, - self::REFERENCED_OBJECT_TYPE_EMAIL, - self::REFERENCED_OBJECT_TYPE_PUBLISHING_TASK, - self::REFERENCED_OBJECT_TYPE_CONVERSATION_SESSION, + self::REFERENCED_OBJECT_TYPE_CAMPAIGN, + self::REFERENCED_OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM, + self::REFERENCED_OBJECT_TYPE_CAMPAIGN_SPEND_ITEM, + self::REFERENCED_OBJECT_TYPE_CAMPAIGN_STEP, + self::REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP, + self::REFERENCED_OBJECT_TYPE_CART, + self::REFERENCED_OBJECT_TYPE_CHATFLOW, + self::REFERENCED_OBJECT_TYPE_CLIP, + self::REFERENCED_OBJECT_TYPE_CMS_URL, + self::REFERENCED_OBJECT_TYPE_COMMERCE_PAYMENT, + self::REFERENCED_OBJECT_TYPE_COMMUNICATION, + self::REFERENCED_OBJECT_TYPE_COMPANY, + self::REFERENCED_OBJECT_TYPE_CONTACT, self::REFERENCED_OBJECT_TYPE_CONTACT_CREATE_ATTRIBUTION, - self::REFERENCED_OBJECT_TYPE_INVOICE, - self::REFERENCED_OBJECT_TYPE_MARKETING_EVENT, + self::REFERENCED_OBJECT_TYPE_CONTENT, + self::REFERENCED_OBJECT_TYPE_CONTENT_AUDIT, + self::REFERENCED_OBJECT_TYPE_CONTENT_AUDIT_PAGE, + self::REFERENCED_OBJECT_TYPE_CONVERSATION, self::REFERENCED_OBJECT_TYPE_CONVERSATION_INBOX, - self::REFERENCED_OBJECT_TYPE_CHATFLOW, - self::REFERENCED_OBJECT_TYPE_MEDIA_BRIDGE, - self::REFERENCED_OBJECT_TYPE_SEQUENCE, - self::REFERENCED_OBJECT_TYPE_SEQUENCE_STEP, - self::REFERENCED_OBJECT_TYPE_FORECAST, - self::REFERENCED_OBJECT_TYPE_SNIPPET, - self::REFERENCED_OBJECT_TYPE_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_CONVERSATION_SESSION, + self::REFERENCED_OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE, + self::REFERENCED_OBJECT_TYPE_CTA, + self::REFERENCED_OBJECT_TYPE_CTA_VARIANT, + self::REFERENCED_OBJECT_TYPE_DATA_PRIVACY_CONSENT, + self::REFERENCED_OBJECT_TYPE_DATA_SYNC_STATE, + self::REFERENCED_OBJECT_TYPE_DEAL, self::REFERENCED_OBJECT_TYPE_DEAL_CREATE_ATTRIBUTION, - self::REFERENCED_OBJECT_TYPE_QUOTE_TEMPLATE, - self::REFERENCED_OBJECT_TYPE_QUOTE_MODULE, - self::REFERENCED_OBJECT_TYPE_QUOTE_MODULE_FIELD, - self::REFERENCED_OBJECT_TYPE_QUOTE_FIELD, - self::REFERENCED_OBJECT_TYPE_SEQUENCE_ENROLLMENT, - self::REFERENCED_OBJECT_TYPE_SUBSCRIPTION, - self::REFERENCED_OBJECT_TYPE_ACCEPTANCE_TEST, - self::REFERENCED_OBJECT_TYPE_SOCIAL_BROADCAST, - self::REFERENCED_OBJECT_TYPE_DEAL_SPLIT, self::REFERENCED_OBJECT_TYPE_DEAL_REGISTRATION, - self::REFERENCED_OBJECT_TYPE_GOAL_TARGET, - self::REFERENCED_OBJECT_TYPE_GOAL_TARGET_GROUP, - self::REFERENCED_OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE, - self::REFERENCED_OBJECT_TYPE_FILE_MANAGER_FILE, - self::REFERENCED_OBJECT_TYPE_FILE_MANAGER_FOLDER, - self::REFERENCED_OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT, - self::REFERENCED_OBJECT_TYPE_APPROVAL, - self::REFERENCED_OBJECT_TYPE_APPROVAL_STEP, - self::REFERENCED_OBJECT_TYPE_CTA_VARIANT, - self::REFERENCED_OBJECT_TYPE_SALES_DOCUMENT, + self::REFERENCED_OBJECT_TYPE_DEAL_SPLIT, self::REFERENCED_OBJECT_TYPE_DISCOUNT, + self::REFERENCED_OBJECT_TYPE_DISCOUNT_CODE, + self::REFERENCED_OBJECT_TYPE_DISCOUNT_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_EMAIL, + self::REFERENCED_OBJECT_TYPE_ENGAGEMENT, + self::REFERENCED_OBJECT_TYPE_EXPORT, + self::REFERENCED_OBJECT_TYPE_EXTERNAL_WEB_URL, self::REFERENCED_OBJECT_TYPE_FEE, - self::REFERENCED_OBJECT_TYPE_TAX, + self::REFERENCED_OBJECT_TYPE_FEEDBACK_SUBMISSION, + self::REFERENCED_OBJECT_TYPE_FEEDBACK_SURVEY, + self::REFERENCED_OBJECT_TYPE_FILE_MANAGER_FILE, + self::REFERENCED_OBJECT_TYPE_FILE_MANAGER_FOLDER, + self::REFERENCED_OBJECT_TYPE_FOLDER, + self::REFERENCED_OBJECT_TYPE_FORECAST, + self::REFERENCED_OBJECT_TYPE_FORM, + self::REFERENCED_OBJECT_TYPE_FORM_SUBMISSION_INBOUNDDB, + self::REFERENCED_OBJECT_TYPE_GOAL_TARGET, + self::REFERENCED_OBJECT_TYPE_GOAL_TARGET_GROUP, + self::REFERENCED_OBJECT_TYPE_GOAL_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_GSC_PROPERTY, + self::REFERENCED_OBJECT_TYPE_HUB, + self::REFERENCED_OBJECT_TYPE_IMPORT, + self::REFERENCED_OBJECT_TYPE_INVOICE, + self::REFERENCED_OBJECT_TYPE_KEYWORD, + self::REFERENCED_OBJECT_TYPE_KNOWLEDGE_ARTICLE, + self::REFERENCED_OBJECT_TYPE_LANDING_PAGE, + self::REFERENCED_OBJECT_TYPE_LEAD, + self::REFERENCED_OBJECT_TYPE_LINE_ITEM, self::REFERENCED_OBJECT_TYPE_MARKETING_CALENDAR, + self::REFERENCED_OBJECT_TYPE_MARKETING_CAMPAIGN_UTM, + self::REFERENCED_OBJECT_TYPE_MARKETING_EMAIL, + self::REFERENCED_OBJECT_TYPE_MARKETING_EVENT, + self::REFERENCED_OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE, + self::REFERENCED_OBJECT_TYPE_MARKETING_SMS, + self::REFERENCED_OBJECT_TYPE_MEDIA_BRIDGE, + self::REFERENCED_OBJECT_TYPE_MEETING_EVENT, + self::REFERENCED_OBJECT_TYPE_MIC, + self::REFERENCED_OBJECT_TYPE_NOTE, + self::REFERENCED_OBJECT_TYPE_OBJECT_LIST, + self::REFERENCED_OBJECT_TYPE_ORDER, + self::REFERENCED_OBJECT_TYPE_OWNER, + self::REFERENCED_OBJECT_TYPE_PARTNER_ACCOUNT, + self::REFERENCED_OBJECT_TYPE_PARTNER_CLIENT, + self::REFERENCED_OBJECT_TYPE_PARTNER_CLIENT_REVENUE, + self::REFERENCED_OBJECT_TYPE_PAYMENT_LINK, + self::REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE, + self::REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT, self::REFERENCED_OBJECT_TYPE_PERMISSIONS_TESTING, - self::REFERENCED_OBJECT_TYPE_PRIVACY_SCANNER_COOKIE, - self::REFERENCED_OBJECT_TYPE_DATA_SYNC_STATE, - self::REFERENCED_OBJECT_TYPE_WEB_INTERACTIVE, self::REFERENCED_OBJECT_TYPE_PLAYBOOK, - self::REFERENCED_OBJECT_TYPE_FOLDER, self::REFERENCED_OBJECT_TYPE_PLAYBOOK_QUESTION, self::REFERENCED_OBJECT_TYPE_PLAYBOOK_SUBMISSION, self::REFERENCED_OBJECT_TYPE_PLAYBOOK_SUBMISSION_ANSWER, - self::REFERENCED_OBJECT_TYPE_COMMERCE_PAYMENT, - self::REFERENCED_OBJECT_TYPE_GSC_PROPERTY, - self::REFERENCED_OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE, - self::REFERENCED_OBJECT_TYPE_BLOG_LISTING_PAGE, + self::REFERENCED_OBJECT_TYPE_PLAYLIST, + self::REFERENCED_OBJECT_TYPE_PLAYLIST_FOLDER, + self::REFERENCED_OBJECT_TYPE_PORTAL, + self::REFERENCED_OBJECT_TYPE_PORTAL_OBJECT_SYNC_MESSAGE, + self::REFERENCED_OBJECT_TYPE_POSTAL_MAIL, + self::REFERENCED_OBJECT_TYPE_PRIVACY_SCANNER_COOKIE, + self::REFERENCED_OBJECT_TYPE_PRODUCT, + self::REFERENCED_OBJECT_TYPE_PRODUCT_OR_FOLDER, + self::REFERENCED_OBJECT_TYPE_PROPERTY_INFO, + self::REFERENCED_OBJECT_TYPE_PUBLISHING_TASK, self::REFERENCED_OBJECT_TYPE_QUARANTINED_SUBMISSION, - self::REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE, - self::REFERENCED_OBJECT_TYPE_PAYMENT_SCHEDULE_INSTALLMENT, - self::REFERENCED_OBJECT_TYPE_MARKETING_CAMPAIGN_UTM, - self::REFERENCED_OBJECT_TYPE_DISCOUNT_TEMPLATE, - self::REFERENCED_OBJECT_TYPE_DISCOUNT_CODE, - self::REFERENCED_OBJECT_TYPE_FEEDBACK_SURVEY, - self::REFERENCED_OBJECT_TYPE_CMS_URL, + self::REFERENCED_OBJECT_TYPE_QUOTA, + self::REFERENCED_OBJECT_TYPE_QUOTE, + self::REFERENCED_OBJECT_TYPE_QUOTE_FIELD, + self::REFERENCED_OBJECT_TYPE_QUOTE_MODULE, + self::REFERENCED_OBJECT_TYPE_QUOTE_MODULE_FIELD, + self::REFERENCED_OBJECT_TYPE_QUOTE_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_RESTORABLE_CRM_OBJECT, + self::REFERENCED_OBJECT_TYPE_ROSTER, + self::REFERENCED_OBJECT_TYPE_ROSTER_MEMBER, + self::REFERENCED_OBJECT_TYPE_SALES_DOCUMENT, self::REFERENCED_OBJECT_TYPE_SALES_TASK, self::REFERENCED_OBJECT_TYPE_SALES_WORKLOAD, - self::REFERENCED_OBJECT_TYPE_USER, - self::REFERENCED_OBJECT_TYPE_POSTAL_MAIL, - self::REFERENCED_OBJECT_TYPE_SCHEMAS_BACKEND_TEST, - self::REFERENCED_OBJECT_TYPE_PAYMENT_LINK, - self::REFERENCED_OBJECT_TYPE_SUBMISSION_TAG, - self::REFERENCED_OBJECT_TYPE_CAMPAIGN_STEP, + self::REFERENCED_OBJECT_TYPE_SALESFORCE_SYNC_ERROR, self::REFERENCED_OBJECT_TYPE_SCHEDULING_PAGE, + self::REFERENCED_OBJECT_TYPE_SCHEMAS_BACKEND_TEST, + self::REFERENCED_OBJECT_TYPE_SCORE_CONFIGURATION, + self::REFERENCED_OBJECT_TYPE_SEQUENCE, + self::REFERENCED_OBJECT_TYPE_SEQUENCE_ENROLLMENT, + self::REFERENCED_OBJECT_TYPE_SEQUENCE_STEP, + self::REFERENCED_OBJECT_TYPE_SEQUENCE_STEP_ENROLLMENT, + self::REFERENCED_OBJECT_TYPE_SITE_PAGE, + self::REFERENCED_OBJECT_TYPE_SNIPPET, + self::REFERENCED_OBJECT_TYPE_SOCIAL_BROADCAST, + self::REFERENCED_OBJECT_TYPE_SOCIAL_CHANNEL, + self::REFERENCED_OBJECT_TYPE_SOCIAL_POST, + self::REFERENCED_OBJECT_TYPE_SOCIAL_PROFILE, + self::REFERENCED_OBJECT_TYPE_SOX_PROTECTED_DUMMY_TYPE, self::REFERENCED_OBJECT_TYPE_SOX_PROTECTED_TEST_TYPE, - self::REFERENCED_OBJECT_TYPE_ORDER, - self::REFERENCED_OBJECT_TYPE_MARKETING_SMS, - self::REFERENCED_OBJECT_TYPE_PARTNER_ACCOUNT, - self::REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE, - self::REFERENCED_OBJECT_TYPE_CAMPAIGN_TEMPLATE_STEP, - self::REFERENCED_OBJECT_TYPE_PLAYLIST, - self::REFERENCED_OBJECT_TYPE_CLIP, - self::REFERENCED_OBJECT_TYPE_CAMPAIGN_BUDGET_ITEM, - self::REFERENCED_OBJECT_TYPE_CAMPAIGN_SPEND_ITEM, - self::REFERENCED_OBJECT_TYPE_MIC, - self::REFERENCED_OBJECT_TYPE_CONTENT_AUDIT, - self::REFERENCED_OBJECT_TYPE_CONTENT_AUDIT_PAGE, - self::REFERENCED_OBJECT_TYPE_PLAYLIST_FOLDER, - self::REFERENCED_OBJECT_TYPE_LEAD, - self::REFERENCED_OBJECT_TYPE_ABANDONED_CART, - self::REFERENCED_OBJECT_TYPE_EXTERNAL_WEB_URL, + self::REFERENCED_OBJECT_TYPE_SUBMISSION_TAG, + self::REFERENCED_OBJECT_TYPE_SUBSCRIPTION, + self::REFERENCED_OBJECT_TYPE_TASK, + self::REFERENCED_OBJECT_TYPE_TASK_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_TAX, + self::REFERENCED_OBJECT_TYPE_TEMPLATE, + self::REFERENCED_OBJECT_TYPE_TICKET, + self::REFERENCED_OBJECT_TYPE_UNKNOWN, + self::REFERENCED_OBJECT_TYPE_UNSUBSCRIBE, + self::REFERENCED_OBJECT_TYPE_USER, self::REFERENCED_OBJECT_TYPE_VIEW, self::REFERENCED_OBJECT_TYPE_VIEW_BLOCK, - self::REFERENCED_OBJECT_TYPE_ROSTER, - self::REFERENCED_OBJECT_TYPE_CART, - self::REFERENCED_OBJECT_TYPE_AUTOMATION_PLATFORM_FLOW_ACTION, - self::REFERENCED_OBJECT_TYPE_SOCIAL_PROFILE, - self::REFERENCED_OBJECT_TYPE_PARTNER_CLIENT, - self::REFERENCED_OBJECT_TYPE_ROSTER_MEMBER, - self::REFERENCED_OBJECT_TYPE_MARKETING_EVENT_ATTENDANCE, - self::REFERENCED_OBJECT_TYPE_ALL_PAGES, - self::REFERENCED_OBJECT_TYPE_AI_FORECAST, - self::REFERENCED_OBJECT_TYPE_CRM_PIPELINES_DUMMY_TYPE, - self::REFERENCED_OBJECT_TYPE_KNOWLEDGE_ARTICLE, - self::REFERENCED_OBJECT_TYPE_PROPERTY_INFO, - self::REFERENCED_OBJECT_TYPE_DATA_PRIVACY_CONSENT, - self::REFERENCED_OBJECT_TYPE_GOAL_TEMPLATE, - self::REFERENCED_OBJECT_TYPE_SCORE_CONFIGURATION, - self::REFERENCED_OBJECT_TYPE_AUDIENCE, - self::REFERENCED_OBJECT_TYPE_PARTNER_CLIENT_REVENUE, - self::REFERENCED_OBJECT_TYPE_AUTOMATION_JOURNEY, - self::REFERENCED_OBJECT_TYPE_UNKNOWN, + self::REFERENCED_OBJECT_TYPE_WEB_INTERACTIVE, ]; } @@ -642,43 +669,16 @@ public function getReferencedObjectTypeAllowableValues() public function getTypeAllowableValues() { return [ - self::TYPE_STRING, - self::TYPE_NUMBER, self::TYPE_BOOL, + self::TYPE_CURRENCY_NUMBER, + self::TYPE_DATE, self::TYPE_DATETIME, self::TYPE_ENUMERATION, - self::TYPE_DATE, - self::TYPE_PHONE_NUMBER, - self::TYPE_CURRENCY_NUMBER, self::TYPE_JSON, + self::TYPE_NUMBER, self::TYPE_OBJECT_COORDINATES, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFieldTypeAllowableValues() - { - return [ - self::FIELD_TYPE_BOOLEANCHECKBOX, - self::FIELD_TYPE_CHECKBOX, - self::FIELD_TYPE_DATE, - self::FIELD_TYPE_FILE, - self::FIELD_TYPE_NUMBER, - self::FIELD_TYPE_PHONENUMBER, - self::FIELD_TYPE_RADIO, - self::FIELD_TYPE_SELECT, - self::FIELD_TYPE_TEXT, - self::FIELD_TYPE_TEXTAREA, - self::FIELD_TYPE_CALCULATION_EQUATION, - self::FIELD_TYPE_CALCULATION_ROLLUP, - self::FIELD_TYPE_CALCULATION_SCORE, - self::FIELD_TYPE_CALCULATION_READ_TIME, - self::FIELD_TYPE_UNKNOWN, - self::FIELD_TYPE_HTML, + self::TYPE_PHONE_NUMBER, + self::TYPE_STRING, ]; } @@ -697,17 +697,17 @@ public function getFieldTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('help_text', $data ?? [], null); - $this->setIfExists('referenced_object_type', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('options', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('external_options', $data ?? [], null); $this->setIfExists('external_options_reference_type', $data ?? [], null); - $this->setIfExists('label', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); $this->setIfExists('field_type', $data ?? [], null); + $this->setIfExists('help_text', $data ?? [], null); + $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('options', $data ?? [], null); $this->setIfExists('options_url', $data ?? [], null); - $this->setIfExists('external_options', $data ?? [], null); + $this->setIfExists('referenced_object_type', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); } /** @@ -737,11 +737,14 @@ public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getReferencedObjectTypeAllowableValues(); - if (!is_null($this->container['referenced_object_type']) && !in_array($this->container['referenced_object_type'], $allowedValues, true)) { + if ($this->container['external_options'] === null) { + $invalidProperties[] = "'external_options' can't be null"; + } + $allowedValues = $this->getFieldTypeAllowableValues(); + if (!is_null($this->container['field_type']) && !in_array($this->container['field_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( - "invalid value '%s' for 'referenced_object_type', must be one of '%s'", - $this->container['referenced_object_type'], + "invalid value '%s' for 'field_type', must be one of '%s'", + $this->container['field_type'], implode("', '", $allowedValues) ); } @@ -752,6 +755,15 @@ public function listInvalidProperties() if ($this->container['options'] === null) { $invalidProperties[] = "'options' can't be null"; } + $allowedValues = $this->getReferencedObjectTypeAllowableValues(); + if (!is_null($this->container['referenced_object_type']) && !in_array($this->container['referenced_object_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'referenced_object_type', must be one of '%s'", + $this->container['referenced_object_type'], + implode("', '", $allowedValues) + ); + } + if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -764,201 +776,162 @@ public function listInvalidProperties() ); } - $allowedValues = $this->getFieldTypeAllowableValues(); - if (!is_null($this->container['field_type']) && !in_array($this->container['field_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'field_type', must be one of '%s'", - $this->container['field_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['external_options'] === null) { - $invalidProperties[] = "'external_options' can't be null"; - } return $invalidProperties; } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets help_text - * - * @return string|null - */ - public function getHelpText() - { - return $this->container['help_text']; - } - - /** - * Sets help_text - * - * @param string|null $help_text help_text + * Validate all the properties in the model + * return true if all passed * - * @return self + * @return bool True if all properties are valid */ - public function setHelpText($help_text) + public function valid() { - if (is_null($help_text)) { - throw new \InvalidArgumentException('non-nullable help_text cannot be null'); - } - $this->container['help_text'] = $help_text; - - return $this; + return count($this->listInvalidProperties()) === 0; } + /** - * Gets referenced_object_type + * Gets description * * @return string|null */ - public function getReferencedObjectType() + public function getDescription() { - return $this->container['referenced_object_type']; + return $this->container['description']; } /** - * Sets referenced_object_type + * Sets description * - * @param string|null $referenced_object_type referenced_object_type + * @param string|null $description description * * @return self */ - public function setReferencedObjectType($referenced_object_type) + public function setDescription($description) { - if (is_null($referenced_object_type)) { - throw new \InvalidArgumentException('non-nullable referenced_object_type cannot be null'); - } - $allowedValues = $this->getReferencedObjectTypeAllowableValues(); - if (!in_array($referenced_object_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'referenced_object_type', must be one of '%s'", - $referenced_object_type, - implode("', '", $allowedValues) - ) - ); + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); } - $this->container['referenced_object_type'] = $referenced_object_type; + $this->container['description'] = $description; return $this; } /** - * Gets name + * Gets external_options * - * @return string + * @return bool */ - public function getName() + public function getExternalOptions() { - return $this->container['name']; + return $this->container['external_options']; } /** - * Sets name + * Sets external_options * - * @param string $name name + * @param bool $external_options external_options * * @return self */ - public function setName($name) + public function setExternalOptions($external_options) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($external_options)) { + throw new \InvalidArgumentException('non-nullable external_options cannot be null'); } - $this->container['name'] = $name; + $this->container['external_options'] = $external_options; return $this; } /** - * Gets options + * Gets external_options_reference_type * - * @return \HubSpot\Client\Automation\Actions\Model\Option[] + * @return string|null */ - public function getOptions() + public function getExternalOptionsReferenceType() { - return $this->container['options']; + return $this->container['external_options_reference_type']; } /** - * Sets options + * Sets external_options_reference_type * - * @param \HubSpot\Client\Automation\Actions\Model\Option[] $options options + * @param string|null $external_options_reference_type external_options_reference_type * * @return self */ - public function setOptions($options) + public function setExternalOptionsReferenceType($external_options_reference_type) { - if (is_null($options)) { - throw new \InvalidArgumentException('non-nullable options cannot be null'); + if (is_null($external_options_reference_type)) { + throw new \InvalidArgumentException('non-nullable external_options_reference_type cannot be null'); } - $this->container['options'] = $options; + $this->container['external_options_reference_type'] = $external_options_reference_type; return $this; } /** - * Gets description + * Gets field_type * * @return string|null */ - public function getDescription() + public function getFieldType() { - return $this->container['description']; + return $this->container['field_type']; } /** - * Sets description + * Sets field_type * - * @param string|null $description description + * @param string|null $field_type field_type * * @return self */ - public function setDescription($description) + public function setFieldType($field_type) { - if (is_null($description)) { - throw new \InvalidArgumentException('non-nullable description cannot be null'); + if (is_null($field_type)) { + throw new \InvalidArgumentException('non-nullable field_type cannot be null'); } - $this->container['description'] = $description; + $allowedValues = $this->getFieldTypeAllowableValues(); + if (!in_array($field_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'field_type', must be one of '%s'", + $field_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['field_type'] = $field_type; return $this; } /** - * Gets external_options_reference_type + * Gets help_text * * @return string|null */ - public function getExternalOptionsReferenceType() + public function getHelpText() { - return $this->container['external_options_reference_type']; + return $this->container['help_text']; } /** - * Sets external_options_reference_type + * Sets help_text * - * @param string|null $external_options_reference_type external_options_reference_type + * @param string|null $help_text help_text * * @return self */ - public function setExternalOptionsReferenceType($external_options_reference_type) + public function setHelpText($help_text) { - if (is_null($external_options_reference_type)) { - throw new \InvalidArgumentException('non-nullable external_options_reference_type cannot be null'); + if (is_null($help_text)) { + throw new \InvalidArgumentException('non-nullable help_text cannot be null'); } - $this->container['external_options_reference_type'] = $external_options_reference_type; + $this->container['help_text'] = $help_text; return $this; } @@ -991,75 +964,55 @@ public function setLabel($label) } /** - * Gets type + * Gets name * * @return string */ - public function getType() + public function getName() { - return $this->container['type']; + return $this->container['name']; } /** - * Sets type + * Sets name * - * @param string $type type + * @param string $name name * * @return self */ - public function setType($type) + public function setName($name) { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); } - $this->container['type'] = $type; + $this->container['name'] = $name; return $this; } /** - * Gets field_type + * Gets options * - * @return string|null + * @return \HubSpot\Client\Automation\Actions\Model\Option[] */ - public function getFieldType() + public function getOptions() { - return $this->container['field_type']; + return $this->container['options']; } /** - * Sets field_type + * Sets options * - * @param string|null $field_type field_type + * @param \HubSpot\Client\Automation\Actions\Model\Option[] $options options * * @return self */ - public function setFieldType($field_type) + public function setOptions($options) { - if (is_null($field_type)) { - throw new \InvalidArgumentException('non-nullable field_type cannot be null'); - } - $allowedValues = $this->getFieldTypeAllowableValues(); - if (!in_array($field_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'field_type', must be one of '%s'", - $field_type, - implode("', '", $allowedValues) - ) - ); + if (is_null($options)) { + throw new \InvalidArgumentException('non-nullable options cannot be null'); } - $this->container['field_type'] = $field_type; + $this->container['options'] = $options; return $this; } @@ -1092,28 +1045,75 @@ public function setOptionsUrl($options_url) } /** - * Gets external_options + * Gets referenced_object_type * - * @return bool + * @return string|null */ - public function getExternalOptions() + public function getReferencedObjectType() { - return $this->container['external_options']; + return $this->container['referenced_object_type']; } /** - * Sets external_options + * Sets referenced_object_type * - * @param bool $external_options external_options + * @param string|null $referenced_object_type referenced_object_type * * @return self */ - public function setExternalOptions($external_options) + public function setReferencedObjectType($referenced_object_type) { - if (is_null($external_options)) { - throw new \InvalidArgumentException('non-nullable external_options cannot be null'); + if (is_null($referenced_object_type)) { + throw new \InvalidArgumentException('non-nullable referenced_object_type cannot be null'); } - $this->container['external_options'] = $external_options; + $allowedValues = $this->getReferencedObjectTypeAllowableValues(); + if (!in_array($referenced_object_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'referenced_object_type', must be one of '%s'", + $referenced_object_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['referenced_object_type'] = $referenced_object_type; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return self + */ + public function setType($type) + { + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; return $this; } diff --git a/codegen/Automation/Actions/Model/ForwardPaging.php b/codegen/Automation/Actions/Model/ForwardPaging.php index 8b7688d9..65c6a455 100644 --- a/codegen/Automation/Actions/Model/ForwardPaging.php +++ b/codegen/Automation/Actions/Model/ForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/InputFieldDefinition.php b/codegen/Automation/Actions/Model/InputFieldDefinition.php index e988512a..05f767a4 100644 --- a/codegen/Automation/Actions/Model/InputFieldDefinition.php +++ b/codegen/Automation/Actions/Model/InputFieldDefinition.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,10 +57,10 @@ class InputFieldDefinition implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'is_required' => 'bool', 'automation_field_type' => 'string', - 'type_definition' => '\HubSpot\Client\Automation\Actions\Model\FieldTypeDefinition', - 'supported_value_types' => 'string[]' + 'is_required' => 'bool', + 'supported_value_types' => 'string[]', + 'type_definition' => '\HubSpot\Client\Automation\Actions\Model\FieldTypeDefinition' ]; /** @@ -71,10 +71,10 @@ class InputFieldDefinition implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'is_required' => null, 'automation_field_type' => null, - 'type_definition' => null, - 'supported_value_types' => null + 'is_required' => null, + 'supported_value_types' => null, + 'type_definition' => null ]; /** @@ -83,10 +83,10 @@ class InputFieldDefinition implements ModelInterface, ArrayAccess, \JsonSerializ * @var boolean[] */ protected static array $openAPINullables = [ - 'is_required' => false, 'automation_field_type' => false, - 'type_definition' => false, - 'supported_value_types' => false + 'is_required' => false, + 'supported_value_types' => false, + 'type_definition' => false ]; /** @@ -175,10 +175,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'is_required' => 'isRequired', 'automation_field_type' => 'automationFieldType', - 'type_definition' => 'typeDefinition', - 'supported_value_types' => 'supportedValueTypes' + 'is_required' => 'isRequired', + 'supported_value_types' => 'supportedValueTypes', + 'type_definition' => 'typeDefinition' ]; /** @@ -187,10 +187,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'is_required' => 'setIsRequired', 'automation_field_type' => 'setAutomationFieldType', - 'type_definition' => 'setTypeDefinition', - 'supported_value_types' => 'setSupportedValueTypes' + 'is_required' => 'setIsRequired', + 'supported_value_types' => 'setSupportedValueTypes', + 'type_definition' => 'setTypeDefinition' ]; /** @@ -199,10 +199,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'is_required' => 'getIsRequired', 'automation_field_type' => 'getAutomationFieldType', - 'type_definition' => 'getTypeDefinition', - 'supported_value_types' => 'getSupportedValueTypes' + 'is_required' => 'getIsRequired', + 'supported_value_types' => 'getSupportedValueTypes', + 'type_definition' => 'getTypeDefinition' ]; /** @@ -283,10 +283,10 @@ public function getSupportedValueTypesAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('is_required', $data ?? [], null); $this->setIfExists('automation_field_type', $data ?? [], null); - $this->setIfExists('type_definition', $data ?? [], null); + $this->setIfExists('is_required', $data ?? [], null); $this->setIfExists('supported_value_types', $data ?? [], null); + $this->setIfExists('type_definition', $data ?? [], null); } /** @@ -337,33 +337,6 @@ public function valid() } - /** - * Gets is_required - * - * @return bool - */ - public function getIsRequired() - { - return $this->container['is_required']; - } - - /** - * Sets is_required - * - * @param bool $is_required is_required - * - * @return self - */ - public function setIsRequired($is_required) - { - if (is_null($is_required)) { - throw new \InvalidArgumentException('non-nullable is_required cannot be null'); - } - $this->container['is_required'] = $is_required; - - return $this; - } - /** * Gets automation_field_type * @@ -392,28 +365,28 @@ public function setAutomationFieldType($automation_field_type) } /** - * Gets type_definition + * Gets is_required * - * @return \HubSpot\Client\Automation\Actions\Model\FieldTypeDefinition + * @return bool */ - public function getTypeDefinition() + public function getIsRequired() { - return $this->container['type_definition']; + return $this->container['is_required']; } /** - * Sets type_definition + * Sets is_required * - * @param \HubSpot\Client\Automation\Actions\Model\FieldTypeDefinition $type_definition type_definition + * @param bool $is_required is_required * * @return self */ - public function setTypeDefinition($type_definition) + public function setIsRequired($is_required) { - if (is_null($type_definition)) { - throw new \InvalidArgumentException('non-nullable type_definition cannot be null'); + if (is_null($is_required)) { + throw new \InvalidArgumentException('non-nullable is_required cannot be null'); } - $this->container['type_definition'] = $type_definition; + $this->container['is_required'] = $is_required; return $this; } @@ -453,6 +426,33 @@ public function setSupportedValueTypes($supported_value_types) return $this; } + + /** + * Gets type_definition + * + * @return \HubSpot\Client\Automation\Actions\Model\FieldTypeDefinition + */ + public function getTypeDefinition() + { + return $this->container['type_definition']; + } + + /** + * Sets type_definition + * + * @param \HubSpot\Client\Automation\Actions\Model\FieldTypeDefinition $type_definition type_definition + * + * @return self + */ + public function setTypeDefinition($type_definition) + { + if (is_null($type_definition)) { + throw new \InvalidArgumentException('non-nullable type_definition cannot be null'); + } + $this->container['type_definition'] = $type_definition; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Automation/Actions/Model/ModelInterface.php b/codegen/Automation/Actions/Model/ModelInterface.php index a73f56a7..625fa585 100644 --- a/codegen/Automation/Actions/Model/ModelInterface.php +++ b/codegen/Automation/Actions/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/NextPage.php b/codegen/Automation/Actions/Model/NextPage.php index 71b09792..0d9c8e45 100644 --- a/codegen/Automation/Actions/Model/NextPage.php +++ b/codegen/Automation/Actions/Model/NextPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'link' => 'string', - 'after' => 'string' + 'after' => 'string', + 'link' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'link' => null, - 'after' => null + 'after' => null, + 'link' => null ]; /** @@ -80,8 +80,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'link' => false, - 'after' => false + 'after' => false, + 'link' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'link' => 'link', - 'after' => 'after' + 'after' => 'after', + 'link' => 'link' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'link' => 'setLink', - 'after' => 'setAfter' + 'after' => 'setAfter', + 'link' => 'setLink' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'link' => 'getLink', - 'after' => 'getAfter' + 'after' => 'getAfter', + 'link' => 'getLink' ]; /** @@ -251,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); } /** @@ -301,55 +301,55 @@ 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 A URL that can be used to retrieve the next page results. + * @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 A paging cursor token for retrieving subsequent pages. + * @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; } diff --git a/codegen/Automation/Actions/Model/Option.php b/codegen/Automation/Actions/Model/Option.php index 500cef5e..ed88d2f1 100644 --- a/codegen/Automation/Actions/Model/Option.php +++ b/codegen/Automation/Actions/Model/Option.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,12 +58,12 @@ class Option implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'hidden' => 'bool', + 'description' => 'string', 'display_order' => 'int', 'double_data' => 'float', - 'description' => 'string', - 'read_only' => 'bool', + 'hidden' => 'bool', 'label' => 'string', + 'read_only' => 'bool', 'value' => 'string' ]; @@ -75,12 +75,12 @@ class Option implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'hidden' => null, + 'description' => null, 'display_order' => 'int32', 'double_data' => null, - 'description' => null, - 'read_only' => null, + 'hidden' => null, 'label' => null, + 'read_only' => null, 'value' => null ]; @@ -90,12 +90,12 @@ class Option implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'hidden' => false, + 'description' => false, 'display_order' => false, 'double_data' => false, - 'description' => false, - 'read_only' => false, + 'hidden' => false, 'label' => false, + 'read_only' => false, 'value' => false ]; @@ -185,12 +185,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'hidden' => 'hidden', + 'description' => 'description', 'display_order' => 'displayOrder', 'double_data' => 'doubleData', - 'description' => 'description', - 'read_only' => 'readOnly', + 'hidden' => 'hidden', 'label' => 'label', + 'read_only' => 'readOnly', 'value' => 'value' ]; @@ -200,12 +200,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'hidden' => 'setHidden', + 'description' => 'setDescription', 'display_order' => 'setDisplayOrder', 'double_data' => 'setDoubleData', - 'description' => 'setDescription', - 'read_only' => 'setReadOnly', + 'hidden' => 'setHidden', 'label' => 'setLabel', + 'read_only' => 'setReadOnly', 'value' => 'setValue' ]; @@ -215,12 +215,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'hidden' => 'getHidden', + 'description' => 'getDescription', 'display_order' => 'getDisplayOrder', 'double_data' => 'getDoubleData', - 'description' => 'getDescription', - 'read_only' => 'getReadOnly', + 'hidden' => 'getHidden', 'label' => 'getLabel', + 'read_only' => 'getReadOnly', 'value' => 'getValue' ]; @@ -281,12 +281,12 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('hidden', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); $this->setIfExists('display_order', $data ?? [], null); $this->setIfExists('double_data', $data ?? [], null); - $this->setIfExists('description', $data ?? [], null); - $this->setIfExists('read_only', $data ?? [], null); + $this->setIfExists('hidden', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('read_only', $data ?? [], null); $this->setIfExists('value', $data ?? [], null); } @@ -317,8 +317,8 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['hidden'] === null) { - $invalidProperties[] = "'hidden' can't be null"; + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; } if ($this->container['display_order'] === null) { $invalidProperties[] = "'display_order' can't be null"; @@ -326,15 +326,15 @@ public function listInvalidProperties() if ($this->container['double_data'] === null) { $invalidProperties[] = "'double_data' can't be null"; } - if ($this->container['description'] === null) { - $invalidProperties[] = "'description' can't be null"; - } - if ($this->container['read_only'] === null) { - $invalidProperties[] = "'read_only' can't be null"; + if ($this->container['hidden'] === null) { + $invalidProperties[] = "'hidden' can't be null"; } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } + if ($this->container['read_only'] === null) { + $invalidProperties[] = "'read_only' can't be null"; + } if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } @@ -354,28 +354,28 @@ public function valid() /** - * Gets hidden + * Gets description * - * @return bool + * @return string */ - public function getHidden() + public function getDescription() { - return $this->container['hidden']; + return $this->container['description']; } /** - * Sets hidden + * Sets description * - * @param bool $hidden Whether the option is displayed in HubSpot's UI. + * @param string $description A description of the option. * * @return self */ - public function setHidden($hidden) + public function setDescription($description) { - if (is_null($hidden)) { - throw new \InvalidArgumentException('non-nullable hidden cannot be null'); + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); } - $this->container['hidden'] = $hidden; + $this->container['description'] = $description; return $this; } @@ -435,82 +435,82 @@ public function setDoubleData($double_data) } /** - * Gets description + * Gets hidden * - * @return string + * @return bool */ - public function getDescription() + public function getHidden() { - return $this->container['description']; + return $this->container['hidden']; } /** - * Sets description + * Sets hidden * - * @param string $description A description of the option. + * @param bool $hidden Whether the option is displayed in HubSpot's UI. * * @return self */ - public function setDescription($description) + public function setHidden($hidden) { - if (is_null($description)) { - throw new \InvalidArgumentException('non-nullable description cannot be null'); + if (is_null($hidden)) { + throw new \InvalidArgumentException('non-nullable hidden cannot be null'); } - $this->container['description'] = $description; + $this->container['hidden'] = $hidden; return $this; } /** - * Gets read_only + * Gets label * - * @return bool + * @return string */ - public function getReadOnly() + public function getLabel() { - return $this->container['read_only']; + return $this->container['label']; } /** - * Sets read_only + * Sets label * - * @param bool $read_only Whether the option is read-only. + * @param string $label A user-friendly label that identifies the option. * * @return self */ - public function setReadOnly($read_only) + public function setLabel($label) { - if (is_null($read_only)) { - throw new \InvalidArgumentException('non-nullable read_only cannot be null'); + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); } - $this->container['read_only'] = $read_only; + $this->container['label'] = $label; return $this; } /** - * Gets label + * Gets read_only * - * @return string + * @return bool */ - public function getLabel() + public function getReadOnly() { - return $this->container['label']; + return $this->container['read_only']; } /** - * Sets label + * Sets read_only * - * @param string $label A user-friendly label that identifies the option. + * @param bool $read_only Whether the option is read-only. * * @return self */ - public function setLabel($label) + public function setReadOnly($read_only) { - if (is_null($label)) { - throw new \InvalidArgumentException('non-nullable label cannot be null'); + if (is_null($read_only)) { + throw new \InvalidArgumentException('non-nullable read_only cannot be null'); } - $this->container['label'] = $label; + $this->container['read_only'] = $read_only; return $this; } diff --git a/codegen/Automation/Actions/Model/OutputFieldDefinition.php b/codegen/Automation/Actions/Model/OutputFieldDefinition.php index 06372ba8..12b5d687 100644 --- a/codegen/Automation/Actions/Model/OutputFieldDefinition.php +++ b/codegen/Automation/Actions/Model/OutputFieldDefinition.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/PublicActionDefinition.php b/codegen/Automation/Actions/Model/PublicActionDefinition.php index 2e80b454..4b0c2390 100644 --- a/codegen/Automation/Actions/Model/PublicActionDefinition.php +++ b/codegen/Automation/Actions/Model/PublicActionDefinition.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,19 +57,19 @@ class PublicActionDefinition implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'functions' => '\HubSpot\Client\Automation\Actions\Model\PublicActionFunctionIdentifier[]', 'action_url' => 'string', - 'published' => 'bool', - 'labels' => 'array', - 'input_fields' => '\HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]', - 'output_fields' => '\HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]', - 'revision_id' => 'string', 'archived_at' => 'int', - 'input_field_dependencies' => '\HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]', 'execution_rules' => '\HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]', + 'functions' => '\HubSpot\Client\Automation\Actions\Model\PublicActionFunctionIdentifier[]', 'id' => 'string', + 'input_field_dependencies' => '\HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]', + 'input_fields' => '\HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]', + 'labels' => 'array', + 'object_request_options' => '\HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions', 'object_types' => 'string[]', - 'object_request_options' => '\HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions' + 'output_fields' => '\HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]', + 'published' => 'bool', + 'revision_id' => 'string' ]; /** @@ -80,19 +80,19 @@ class PublicActionDefinition implements ModelInterface, ArrayAccess, \JsonSerial * @psalm-var array */ protected static $openAPIFormats = [ - 'functions' => null, 'action_url' => null, - 'published' => null, - 'labels' => null, - 'input_fields' => null, - 'output_fields' => null, - 'revision_id' => null, 'archived_at' => 'int64', - 'input_field_dependencies' => null, 'execution_rules' => null, + 'functions' => null, 'id' => null, + 'input_field_dependencies' => null, + 'input_fields' => null, + 'labels' => null, + 'object_request_options' => null, 'object_types' => null, - 'object_request_options' => null + 'output_fields' => null, + 'published' => null, + 'revision_id' => null ]; /** @@ -101,19 +101,19 @@ class PublicActionDefinition implements ModelInterface, ArrayAccess, \JsonSerial * @var boolean[] */ protected static array $openAPINullables = [ - 'functions' => false, 'action_url' => false, - 'published' => false, - 'labels' => false, - 'input_fields' => false, - 'output_fields' => false, - 'revision_id' => false, 'archived_at' => false, - 'input_field_dependencies' => false, 'execution_rules' => false, + 'functions' => false, 'id' => false, + 'input_field_dependencies' => false, + 'input_fields' => false, + 'labels' => false, + 'object_request_options' => false, 'object_types' => false, - 'object_request_options' => false + 'output_fields' => false, + 'published' => false, + 'revision_id' => false ]; /** @@ -202,19 +202,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'functions' => 'functions', 'action_url' => 'actionUrl', - 'published' => 'published', - 'labels' => 'labels', - 'input_fields' => 'inputFields', - 'output_fields' => 'outputFields', - 'revision_id' => 'revisionId', 'archived_at' => 'archivedAt', - 'input_field_dependencies' => 'inputFieldDependencies', 'execution_rules' => 'executionRules', + 'functions' => 'functions', 'id' => 'id', + 'input_field_dependencies' => 'inputFieldDependencies', + 'input_fields' => 'inputFields', + 'labels' => 'labels', + 'object_request_options' => 'objectRequestOptions', 'object_types' => 'objectTypes', - 'object_request_options' => 'objectRequestOptions' + 'output_fields' => 'outputFields', + 'published' => 'published', + 'revision_id' => 'revisionId' ]; /** @@ -223,19 +223,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'functions' => 'setFunctions', 'action_url' => 'setActionUrl', - 'published' => 'setPublished', - 'labels' => 'setLabels', - 'input_fields' => 'setInputFields', - 'output_fields' => 'setOutputFields', - 'revision_id' => 'setRevisionId', 'archived_at' => 'setArchivedAt', - 'input_field_dependencies' => 'setInputFieldDependencies', 'execution_rules' => 'setExecutionRules', + 'functions' => 'setFunctions', 'id' => 'setId', + 'input_field_dependencies' => 'setInputFieldDependencies', + 'input_fields' => 'setInputFields', + 'labels' => 'setLabels', + 'object_request_options' => 'setObjectRequestOptions', 'object_types' => 'setObjectTypes', - 'object_request_options' => 'setObjectRequestOptions' + 'output_fields' => 'setOutputFields', + 'published' => 'setPublished', + 'revision_id' => 'setRevisionId' ]; /** @@ -244,19 +244,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'functions' => 'getFunctions', 'action_url' => 'getActionUrl', - 'published' => 'getPublished', - 'labels' => 'getLabels', - 'input_fields' => 'getInputFields', - 'output_fields' => 'getOutputFields', - 'revision_id' => 'getRevisionId', 'archived_at' => 'getArchivedAt', - 'input_field_dependencies' => 'getInputFieldDependencies', 'execution_rules' => 'getExecutionRules', + 'functions' => 'getFunctions', 'id' => 'getId', + 'input_field_dependencies' => 'getInputFieldDependencies', + 'input_fields' => 'getInputFields', + 'labels' => 'getLabels', + 'object_request_options' => 'getObjectRequestOptions', 'object_types' => 'getObjectTypes', - 'object_request_options' => 'getObjectRequestOptions' + 'output_fields' => 'getOutputFields', + 'published' => 'getPublished', + 'revision_id' => 'getRevisionId' ]; /** @@ -316,19 +316,19 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('functions', $data ?? [], null); $this->setIfExists('action_url', $data ?? [], null); - $this->setIfExists('published', $data ?? [], null); - $this->setIfExists('labels', $data ?? [], null); - $this->setIfExists('input_fields', $data ?? [], null); - $this->setIfExists('output_fields', $data ?? [], null); - $this->setIfExists('revision_id', $data ?? [], null); $this->setIfExists('archived_at', $data ?? [], null); - $this->setIfExists('input_field_dependencies', $data ?? [], null); $this->setIfExists('execution_rules', $data ?? [], null); + $this->setIfExists('functions', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object_types', $data ?? [], null); + $this->setIfExists('input_field_dependencies', $data ?? [], null); + $this->setIfExists('input_fields', $data ?? [], null); + $this->setIfExists('labels', $data ?? [], null); $this->setIfExists('object_request_options', $data ?? [], null); + $this->setIfExists('object_types', $data ?? [], null); + $this->setIfExists('output_fields', $data ?? [], null); + $this->setIfExists('published', $data ?? [], null); + $this->setIfExists('revision_id', $data ?? [], null); } /** @@ -358,30 +358,30 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['functions'] === null) { - $invalidProperties[] = "'functions' can't be null"; - } if ($this->container['action_url'] === null) { $invalidProperties[] = "'action_url' can't be null"; } - if ($this->container['published'] === null) { - $invalidProperties[] = "'published' can't be null"; + if ($this->container['functions'] === null) { + $invalidProperties[] = "'functions' can't be null"; } - if ($this->container['labels'] === null) { - $invalidProperties[] = "'labels' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } if ($this->container['input_fields'] === null) { $invalidProperties[] = "'input_fields' can't be null"; } - if ($this->container['revision_id'] === null) { - $invalidProperties[] = "'revision_id' can't be null"; - } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['labels'] === null) { + $invalidProperties[] = "'labels' can't be null"; } if ($this->container['object_types'] === null) { $invalidProperties[] = "'object_types' can't be null"; } + if ($this->container['published'] === null) { + $invalidProperties[] = "'published' can't be null"; + } + if ($this->container['revision_id'] === null) { + $invalidProperties[] = "'revision_id' can't be null"; + } return $invalidProperties; } @@ -398,352 +398,352 @@ public function valid() /** - * Gets functions + * Gets action_url * - * @return \HubSpot\Client\Automation\Actions\Model\PublicActionFunctionIdentifier[] + * @return string */ - public function getFunctions() + public function getActionUrl() { - return $this->container['functions']; + return $this->container['action_url']; } /** - * Sets functions + * Sets action_url * - * @param \HubSpot\Client\Automation\Actions\Model\PublicActionFunctionIdentifier[] $functions functions + * @param string $action_url action_url * * @return self */ - public function setFunctions($functions) + public function setActionUrl($action_url) { - if (is_null($functions)) { - throw new \InvalidArgumentException('non-nullable functions cannot be null'); + if (is_null($action_url)) { + throw new \InvalidArgumentException('non-nullable action_url cannot be null'); } - $this->container['functions'] = $functions; + $this->container['action_url'] = $action_url; return $this; } /** - * Gets action_url + * Gets archived_at * - * @return string + * @return int|null */ - public function getActionUrl() + public function getArchivedAt() { - return $this->container['action_url']; + return $this->container['archived_at']; } /** - * Sets action_url + * Sets archived_at * - * @param string $action_url action_url + * @param int|null $archived_at archived_at * * @return self */ - public function setActionUrl($action_url) + public function setArchivedAt($archived_at) { - if (is_null($action_url)) { - throw new \InvalidArgumentException('non-nullable action_url cannot be null'); + if (is_null($archived_at)) { + throw new \InvalidArgumentException('non-nullable archived_at cannot be null'); } - $this->container['action_url'] = $action_url; + $this->container['archived_at'] = $archived_at; return $this; } /** - * Gets published + * Gets execution_rules * - * @return bool + * @return \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null */ - public function getPublished() + public function getExecutionRules() { - return $this->container['published']; + return $this->container['execution_rules']; } /** - * Sets published + * Sets execution_rules * - * @param bool $published published + * @param \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null $execution_rules execution_rules * * @return self */ - public function setPublished($published) + public function setExecutionRules($execution_rules) { - if (is_null($published)) { - throw new \InvalidArgumentException('non-nullable published cannot be null'); + if (is_null($execution_rules)) { + throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); } - $this->container['published'] = $published; + $this->container['execution_rules'] = $execution_rules; return $this; } /** - * Gets labels + * Gets functions * - * @return array + * @return \HubSpot\Client\Automation\Actions\Model\PublicActionFunctionIdentifier[] */ - public function getLabels() + public function getFunctions() { - return $this->container['labels']; + return $this->container['functions']; } /** - * Sets labels + * Sets functions * - * @param array $labels labels + * @param \HubSpot\Client\Automation\Actions\Model\PublicActionFunctionIdentifier[] $functions functions * * @return self */ - public function setLabels($labels) + public function setFunctions($functions) { - if (is_null($labels)) { - throw new \InvalidArgumentException('non-nullable labels cannot be null'); + if (is_null($functions)) { + throw new \InvalidArgumentException('non-nullable functions cannot be null'); } - $this->container['labels'] = $labels; + $this->container['functions'] = $functions; return $this; } /** - * Gets input_fields + * Gets id * - * @return \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] + * @return string */ - public function getInputFields() + public function getId() { - return $this->container['input_fields']; + return $this->container['id']; } /** - * Sets input_fields + * Sets id * - * @param \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] $input_fields input_fields + * @param string $id id * * @return self */ - public function setInputFields($input_fields) + public function setId($id) { - if (is_null($input_fields)) { - throw new \InvalidArgumentException('non-nullable input_fields cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['input_fields'] = $input_fields; + $this->container['id'] = $id; return $this; } /** - * Gets output_fields + * Gets input_field_dependencies * - * @return \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null + * @return \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null */ - public function getOutputFields() + public function getInputFieldDependencies() { - return $this->container['output_fields']; + return $this->container['input_field_dependencies']; } /** - * Sets output_fields + * Sets input_field_dependencies * - * @param \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null $output_fields output_fields + * @param \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null $input_field_dependencies input_field_dependencies * * @return self */ - public function setOutputFields($output_fields) + public function setInputFieldDependencies($input_field_dependencies) { - if (is_null($output_fields)) { - throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); + if (is_null($input_field_dependencies)) { + throw new \InvalidArgumentException('non-nullable input_field_dependencies cannot be null'); } - $this->container['output_fields'] = $output_fields; + $this->container['input_field_dependencies'] = $input_field_dependencies; return $this; } /** - * Gets revision_id + * Gets input_fields * - * @return string + * @return \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] */ - public function getRevisionId() + public function getInputFields() { - return $this->container['revision_id']; + return $this->container['input_fields']; } /** - * Sets revision_id + * Sets input_fields * - * @param string $revision_id revision_id + * @param \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] $input_fields input_fields * * @return self */ - public function setRevisionId($revision_id) + public function setInputFields($input_fields) { - if (is_null($revision_id)) { - throw new \InvalidArgumentException('non-nullable revision_id cannot be null'); + if (is_null($input_fields)) { + throw new \InvalidArgumentException('non-nullable input_fields cannot be null'); } - $this->container['revision_id'] = $revision_id; + $this->container['input_fields'] = $input_fields; return $this; } /** - * Gets archived_at + * Gets labels * - * @return int|null + * @return array */ - public function getArchivedAt() + public function getLabels() { - return $this->container['archived_at']; + return $this->container['labels']; } /** - * Sets archived_at + * Sets labels * - * @param int|null $archived_at archived_at + * @param array $labels labels * * @return self */ - public function setArchivedAt($archived_at) + public function setLabels($labels) { - if (is_null($archived_at)) { - throw new \InvalidArgumentException('non-nullable archived_at cannot be null'); + if (is_null($labels)) { + throw new \InvalidArgumentException('non-nullable labels cannot be null'); } - $this->container['archived_at'] = $archived_at; + $this->container['labels'] = $labels; return $this; } /** - * Gets input_field_dependencies + * Gets object_request_options * - * @return \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null + * @return \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null */ - public function getInputFieldDependencies() + public function getObjectRequestOptions() { - return $this->container['input_field_dependencies']; + return $this->container['object_request_options']; } /** - * Sets input_field_dependencies + * Sets object_request_options * - * @param \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null $input_field_dependencies input_field_dependencies + * @param \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null $object_request_options object_request_options * * @return self */ - public function setInputFieldDependencies($input_field_dependencies) + public function setObjectRequestOptions($object_request_options) { - if (is_null($input_field_dependencies)) { - throw new \InvalidArgumentException('non-nullable input_field_dependencies cannot be null'); + if (is_null($object_request_options)) { + throw new \InvalidArgumentException('non-nullable object_request_options cannot be null'); } - $this->container['input_field_dependencies'] = $input_field_dependencies; + $this->container['object_request_options'] = $object_request_options; return $this; } /** - * Gets execution_rules + * Gets object_types * - * @return \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null + * @return string[] */ - public function getExecutionRules() + public function getObjectTypes() { - return $this->container['execution_rules']; + return $this->container['object_types']; } /** - * Sets execution_rules + * Sets object_types * - * @param \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null $execution_rules execution_rules + * @param string[] $object_types object_types * * @return self */ - public function setExecutionRules($execution_rules) + public function setObjectTypes($object_types) { - if (is_null($execution_rules)) { - throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); + if (is_null($object_types)) { + throw new \InvalidArgumentException('non-nullable object_types cannot be null'); } - $this->container['execution_rules'] = $execution_rules; + $this->container['object_types'] = $object_types; return $this; } /** - * Gets id + * Gets output_fields * - * @return string + * @return \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null */ - public function getId() + public function getOutputFields() { - return $this->container['id']; + return $this->container['output_fields']; } /** - * Sets id + * Sets output_fields * - * @param string $id id + * @param \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null $output_fields output_fields * * @return self */ - public function setId($id) + public function setOutputFields($output_fields) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($output_fields)) { + throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); } - $this->container['id'] = $id; + $this->container['output_fields'] = $output_fields; return $this; } /** - * Gets object_types + * Gets published * - * @return string[] + * @return bool */ - public function getObjectTypes() + public function getPublished() { - return $this->container['object_types']; + return $this->container['published']; } /** - * Sets object_types + * Sets published * - * @param string[] $object_types object_types + * @param bool $published published * * @return self */ - public function setObjectTypes($object_types) + public function setPublished($published) { - if (is_null($object_types)) { - throw new \InvalidArgumentException('non-nullable object_types cannot be null'); + if (is_null($published)) { + throw new \InvalidArgumentException('non-nullable published cannot be null'); } - $this->container['object_types'] = $object_types; + $this->container['published'] = $published; return $this; } /** - * Gets object_request_options + * Gets revision_id * - * @return \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null + * @return string */ - public function getObjectRequestOptions() + public function getRevisionId() { - return $this->container['object_request_options']; + return $this->container['revision_id']; } /** - * Sets object_request_options + * Sets revision_id * - * @param \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null $object_request_options object_request_options + * @param string $revision_id revision_id * * @return self */ - public function setObjectRequestOptions($object_request_options) + public function setRevisionId($revision_id) { - if (is_null($object_request_options)) { - throw new \InvalidArgumentException('non-nullable object_request_options cannot be null'); + if (is_null($revision_id)) { + throw new \InvalidArgumentException('non-nullable revision_id cannot be null'); } - $this->container['object_request_options'] = $object_request_options; + $this->container['revision_id'] = $revision_id; return $this; } diff --git a/codegen/Automation/Actions/Model/PublicActionDefinitionEgg.php b/codegen/Automation/Actions/Model/PublicActionDefinitionEgg.php index 2603facf..193601ba 100644 --- a/codegen/Automation/Actions/Model/PublicActionDefinitionEgg.php +++ b/codegen/Automation/Actions/Model/PublicActionDefinitionEgg.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,17 +57,17 @@ class PublicActionDefinitionEgg implements ModelInterface, ArrayAccess, \JsonSer * @var string[] */ protected static $openAPITypes = [ - 'input_fields' => '\HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]', - 'output_fields' => '\HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]', + 'action_url' => 'string', 'archived_at' => 'int', + 'execution_rules' => '\HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]', 'functions' => '\HubSpot\Client\Automation\Actions\Model\PublicActionFunction[]', - 'action_url' => 'string', 'input_field_dependencies' => '\HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]', - 'published' => 'bool', - 'execution_rules' => '\HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]', - 'object_types' => 'string[]', + 'input_fields' => '\HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]', + 'labels' => 'array', 'object_request_options' => '\HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions', - 'labels' => 'array' + 'object_types' => 'string[]', + 'output_fields' => '\HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]', + 'published' => 'bool' ]; /** @@ -78,17 +78,17 @@ class PublicActionDefinitionEgg implements ModelInterface, ArrayAccess, \JsonSer * @psalm-var array */ protected static $openAPIFormats = [ - 'input_fields' => null, - 'output_fields' => null, + 'action_url' => null, 'archived_at' => 'int64', + 'execution_rules' => null, 'functions' => null, - 'action_url' => null, 'input_field_dependencies' => null, - 'published' => null, - 'execution_rules' => null, - 'object_types' => null, + 'input_fields' => null, + 'labels' => null, 'object_request_options' => null, - 'labels' => null + 'object_types' => null, + 'output_fields' => null, + 'published' => null ]; /** @@ -97,17 +97,17 @@ class PublicActionDefinitionEgg implements ModelInterface, ArrayAccess, \JsonSer * @var boolean[] */ protected static array $openAPINullables = [ - 'input_fields' => false, - 'output_fields' => false, + 'action_url' => false, 'archived_at' => false, + 'execution_rules' => false, 'functions' => false, - 'action_url' => false, 'input_field_dependencies' => false, - 'published' => false, - 'execution_rules' => false, - 'object_types' => false, + 'input_fields' => false, + 'labels' => false, 'object_request_options' => false, - 'labels' => false + 'object_types' => false, + 'output_fields' => false, + 'published' => false ]; /** @@ -196,17 +196,17 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'input_fields' => 'inputFields', - 'output_fields' => 'outputFields', + 'action_url' => 'actionUrl', 'archived_at' => 'archivedAt', + 'execution_rules' => 'executionRules', 'functions' => 'functions', - 'action_url' => 'actionUrl', 'input_field_dependencies' => 'inputFieldDependencies', - 'published' => 'published', - 'execution_rules' => 'executionRules', - 'object_types' => 'objectTypes', + 'input_fields' => 'inputFields', + 'labels' => 'labels', 'object_request_options' => 'objectRequestOptions', - 'labels' => 'labels' + 'object_types' => 'objectTypes', + 'output_fields' => 'outputFields', + 'published' => 'published' ]; /** @@ -215,17 +215,17 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'input_fields' => 'setInputFields', - 'output_fields' => 'setOutputFields', + 'action_url' => 'setActionUrl', 'archived_at' => 'setArchivedAt', + 'execution_rules' => 'setExecutionRules', 'functions' => 'setFunctions', - 'action_url' => 'setActionUrl', 'input_field_dependencies' => 'setInputFieldDependencies', - 'published' => 'setPublished', - 'execution_rules' => 'setExecutionRules', - 'object_types' => 'setObjectTypes', + 'input_fields' => 'setInputFields', + 'labels' => 'setLabels', 'object_request_options' => 'setObjectRequestOptions', - 'labels' => 'setLabels' + 'object_types' => 'setObjectTypes', + 'output_fields' => 'setOutputFields', + 'published' => 'setPublished' ]; /** @@ -234,17 +234,17 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'input_fields' => 'getInputFields', - 'output_fields' => 'getOutputFields', + 'action_url' => 'getActionUrl', 'archived_at' => 'getArchivedAt', + 'execution_rules' => 'getExecutionRules', 'functions' => 'getFunctions', - 'action_url' => 'getActionUrl', 'input_field_dependencies' => 'getInputFieldDependencies', - 'published' => 'getPublished', - 'execution_rules' => 'getExecutionRules', - 'object_types' => 'getObjectTypes', + 'input_fields' => 'getInputFields', + 'labels' => 'getLabels', 'object_request_options' => 'getObjectRequestOptions', - 'labels' => 'getLabels' + 'object_types' => 'getObjectTypes', + 'output_fields' => 'getOutputFields', + 'published' => 'getPublished' ]; /** @@ -304,17 +304,17 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('input_fields', $data ?? [], null); - $this->setIfExists('output_fields', $data ?? [], null); + $this->setIfExists('action_url', $data ?? [], null); $this->setIfExists('archived_at', $data ?? [], null); + $this->setIfExists('execution_rules', $data ?? [], null); $this->setIfExists('functions', $data ?? [], null); - $this->setIfExists('action_url', $data ?? [], null); $this->setIfExists('input_field_dependencies', $data ?? [], null); - $this->setIfExists('published', $data ?? [], null); - $this->setIfExists('execution_rules', $data ?? [], null); - $this->setIfExists('object_types', $data ?? [], null); - $this->setIfExists('object_request_options', $data ?? [], null); + $this->setIfExists('input_fields', $data ?? [], null); $this->setIfExists('labels', $data ?? [], null); + $this->setIfExists('object_request_options', $data ?? [], null); + $this->setIfExists('object_types', $data ?? [], null); + $this->setIfExists('output_fields', $data ?? [], null); + $this->setIfExists('published', $data ?? [], null); } /** @@ -344,23 +344,23 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['input_fields'] === null) { - $invalidProperties[] = "'input_fields' can't be null"; + if ($this->container['action_url'] === null) { + $invalidProperties[] = "'action_url' can't be null"; } if ($this->container['functions'] === null) { $invalidProperties[] = "'functions' can't be null"; } - if ($this->container['action_url'] === null) { - $invalidProperties[] = "'action_url' can't be null"; + if ($this->container['input_fields'] === null) { + $invalidProperties[] = "'input_fields' can't be null"; } - if ($this->container['published'] === null) { - $invalidProperties[] = "'published' can't be null"; + if ($this->container['labels'] === null) { + $invalidProperties[] = "'labels' can't be null"; } if ($this->container['object_types'] === null) { $invalidProperties[] = "'object_types' can't be null"; } - if ($this->container['labels'] === null) { - $invalidProperties[] = "'labels' can't be null"; + if ($this->container['published'] === null) { + $invalidProperties[] = "'published' can't be null"; } return $invalidProperties; } @@ -378,82 +378,82 @@ public function valid() /** - * Gets input_fields + * Gets action_url * - * @return \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] + * @return string */ - public function getInputFields() + public function getActionUrl() { - return $this->container['input_fields']; + return $this->container['action_url']; } /** - * Sets input_fields + * Sets action_url * - * @param \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] $input_fields input_fields + * @param string $action_url action_url * * @return self */ - public function setInputFields($input_fields) + public function setActionUrl($action_url) { - if (is_null($input_fields)) { - throw new \InvalidArgumentException('non-nullable input_fields cannot be null'); + if (is_null($action_url)) { + throw new \InvalidArgumentException('non-nullable action_url cannot be null'); } - $this->container['input_fields'] = $input_fields; + $this->container['action_url'] = $action_url; return $this; } /** - * Gets output_fields + * Gets archived_at * - * @return \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null + * @return int|null */ - public function getOutputFields() + public function getArchivedAt() { - return $this->container['output_fields']; + return $this->container['archived_at']; } /** - * Sets output_fields + * Sets archived_at * - * @param \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null $output_fields output_fields + * @param int|null $archived_at archived_at * * @return self */ - public function setOutputFields($output_fields) + public function setArchivedAt($archived_at) { - if (is_null($output_fields)) { - throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); + if (is_null($archived_at)) { + throw new \InvalidArgumentException('non-nullable archived_at cannot be null'); } - $this->container['output_fields'] = $output_fields; + $this->container['archived_at'] = $archived_at; return $this; } /** - * Gets archived_at + * Gets execution_rules * - * @return int|null + * @return \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null */ - public function getArchivedAt() + public function getExecutionRules() { - return $this->container['archived_at']; + return $this->container['execution_rules']; } /** - * Sets archived_at + * Sets execution_rules * - * @param int|null $archived_at archived_at + * @param \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null $execution_rules execution_rules * * @return self */ - public function setArchivedAt($archived_at) + public function setExecutionRules($execution_rules) { - if (is_null($archived_at)) { - throw new \InvalidArgumentException('non-nullable archived_at cannot be null'); + if (is_null($execution_rules)) { + throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); } - $this->container['archived_at'] = $archived_at; + $this->container['execution_rules'] = $execution_rules; return $this; } @@ -486,109 +486,109 @@ public function setFunctions($functions) } /** - * Gets action_url + * Gets input_field_dependencies * - * @return string + * @return \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null */ - public function getActionUrl() + public function getInputFieldDependencies() { - return $this->container['action_url']; + return $this->container['input_field_dependencies']; } /** - * Sets action_url + * Sets input_field_dependencies * - * @param string $action_url action_url + * @param \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null $input_field_dependencies input_field_dependencies * * @return self */ - public function setActionUrl($action_url) + public function setInputFieldDependencies($input_field_dependencies) { - if (is_null($action_url)) { - throw new \InvalidArgumentException('non-nullable action_url cannot be null'); + if (is_null($input_field_dependencies)) { + throw new \InvalidArgumentException('non-nullable input_field_dependencies cannot be null'); } - $this->container['action_url'] = $action_url; + $this->container['input_field_dependencies'] = $input_field_dependencies; return $this; } /** - * Gets input_field_dependencies + * Gets input_fields * - * @return \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null + * @return \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] */ - public function getInputFieldDependencies() + public function getInputFields() { - return $this->container['input_field_dependencies']; + return $this->container['input_fields']; } /** - * Sets input_field_dependencies + * Sets input_fields * - * @param \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null $input_field_dependencies input_field_dependencies + * @param \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[] $input_fields input_fields * * @return self */ - public function setInputFieldDependencies($input_field_dependencies) + public function setInputFields($input_fields) { - if (is_null($input_field_dependencies)) { - throw new \InvalidArgumentException('non-nullable input_field_dependencies cannot be null'); + if (is_null($input_fields)) { + throw new \InvalidArgumentException('non-nullable input_fields cannot be null'); } - $this->container['input_field_dependencies'] = $input_field_dependencies; + $this->container['input_fields'] = $input_fields; return $this; } /** - * Gets published + * Gets labels * - * @return bool + * @return array */ - public function getPublished() + public function getLabels() { - return $this->container['published']; + return $this->container['labels']; } /** - * Sets published + * Sets labels * - * @param bool $published published + * @param array $labels labels * * @return self */ - public function setPublished($published) + public function setLabels($labels) { - if (is_null($published)) { - throw new \InvalidArgumentException('non-nullable published cannot be null'); + if (is_null($labels)) { + throw new \InvalidArgumentException('non-nullable labels cannot be null'); } - $this->container['published'] = $published; + $this->container['labels'] = $labels; return $this; } /** - * Gets execution_rules + * Gets object_request_options * - * @return \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null + * @return \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null */ - public function getExecutionRules() + public function getObjectRequestOptions() { - return $this->container['execution_rules']; + return $this->container['object_request_options']; } /** - * Sets execution_rules + * Sets object_request_options * - * @param \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null $execution_rules execution_rules + * @param \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null $object_request_options object_request_options * * @return self */ - public function setExecutionRules($execution_rules) + public function setObjectRequestOptions($object_request_options) { - if (is_null($execution_rules)) { - throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); + if (is_null($object_request_options)) { + throw new \InvalidArgumentException('non-nullable object_request_options cannot be null'); } - $this->container['execution_rules'] = $execution_rules; + $this->container['object_request_options'] = $object_request_options; return $this; } @@ -621,55 +621,55 @@ public function setObjectTypes($object_types) } /** - * Gets object_request_options + * Gets output_fields * - * @return \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null + * @return \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null */ - public function getObjectRequestOptions() + public function getOutputFields() { - return $this->container['object_request_options']; + return $this->container['output_fields']; } /** - * Sets object_request_options + * Sets output_fields * - * @param \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null $object_request_options object_request_options + * @param \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null $output_fields output_fields * * @return self */ - public function setObjectRequestOptions($object_request_options) + public function setOutputFields($output_fields) { - if (is_null($object_request_options)) { - throw new \InvalidArgumentException('non-nullable object_request_options cannot be null'); + if (is_null($output_fields)) { + throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); } - $this->container['object_request_options'] = $object_request_options; + $this->container['output_fields'] = $output_fields; return $this; } /** - * Gets labels + * Gets published * - * @return array + * @return bool */ - public function getLabels() + public function getPublished() { - return $this->container['labels']; + return $this->container['published']; } /** - * Sets labels + * Sets published * - * @param array $labels labels + * @param bool $published published * * @return self */ - public function setLabels($labels) + public function setPublished($published) { - if (is_null($labels)) { - throw new \InvalidArgumentException('non-nullable labels cannot be null'); + if (is_null($published)) { + throw new \InvalidArgumentException('non-nullable published cannot be null'); } - $this->container['labels'] = $labels; + $this->container['published'] = $published; return $this; } diff --git a/codegen/Automation/Actions/Model/PublicActionDefinitionInputFieldDependenciesInner.php b/codegen/Automation/Actions/Model/PublicActionDefinitionInputFieldDependenciesInner.php index 04c170b2..4ef8182a 100644 --- a/codegen/Automation/Actions/Model/PublicActionDefinitionInputFieldDependenciesInner.php +++ b/codegen/Automation/Actions/Model/PublicActionDefinitionInputFieldDependenciesInner.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,8 +57,8 @@ class PublicActionDefinitionInputFieldDependenciesInner implements ModelInterfac * @var string[] */ protected static $openAPITypes = [ - 'dependency_type' => 'string', 'controlling_field_name' => 'string', + 'dependency_type' => 'string', 'dependent_field_names' => 'string[]', 'controlling_field_value' => 'string' ]; @@ -71,8 +71,8 @@ class PublicActionDefinitionInputFieldDependenciesInner implements ModelInterfac * @psalm-var array */ protected static $openAPIFormats = [ - 'dependency_type' => null, 'controlling_field_name' => null, + 'dependency_type' => null, 'dependent_field_names' => null, 'controlling_field_value' => null ]; @@ -83,8 +83,8 @@ class PublicActionDefinitionInputFieldDependenciesInner implements ModelInterfac * @var boolean[] */ protected static array $openAPINullables = [ - 'dependency_type' => false, 'controlling_field_name' => false, + 'dependency_type' => false, 'dependent_field_names' => false, 'controlling_field_value' => false ]; @@ -175,8 +175,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'dependency_type' => 'dependencyType', 'controlling_field_name' => 'controllingFieldName', + 'dependency_type' => 'dependencyType', 'dependent_field_names' => 'dependentFieldNames', 'controlling_field_value' => 'controllingFieldValue' ]; @@ -187,8 +187,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'dependency_type' => 'setDependencyType', 'controlling_field_name' => 'setControllingFieldName', + 'dependency_type' => 'setDependencyType', 'dependent_field_names' => 'setDependentFieldNames', 'controlling_field_value' => 'setControllingFieldValue' ]; @@ -199,8 +199,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'dependency_type' => 'getDependencyType', 'controlling_field_name' => 'getControllingFieldName', + 'dependency_type' => 'getDependencyType', 'dependent_field_names' => 'getDependentFieldNames', 'controlling_field_value' => 'getControllingFieldValue' ]; @@ -275,8 +275,8 @@ public function getDependencyTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('dependency_type', $data ?? [], 'CONDITIONAL_SINGLE_FIELD'); $this->setIfExists('controlling_field_name', $data ?? [], null); + $this->setIfExists('dependency_type', $data ?? [], 'CONDITIONAL_SINGLE_FIELD'); $this->setIfExists('dependent_field_names', $data ?? [], null); $this->setIfExists('controlling_field_value', $data ?? [], null); @@ -311,6 +311,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['controlling_field_name'] === null) { + $invalidProperties[] = "'controlling_field_name' can't be null"; + } if ($this->container['dependency_type'] === null) { $invalidProperties[] = "'dependency_type' can't be null"; } @@ -323,9 +326,6 @@ public function listInvalidProperties() ); } - if ($this->container['controlling_field_name'] === null) { - $invalidProperties[] = "'controlling_field_name' can't be null"; - } if ($this->container['dependent_field_names'] === null) { $invalidProperties[] = "'dependent_field_names' can't be null"; } @@ -347,6 +347,33 @@ public function valid() } + /** + * Gets controlling_field_name + * + * @return string + */ + public function getControllingFieldName() + { + return $this->container['controlling_field_name']; + } + + /** + * Sets controlling_field_name + * + * @param string $controlling_field_name controlling_field_name + * + * @return self + */ + public function setControllingFieldName($controlling_field_name) + { + if (is_null($controlling_field_name)) { + throw new \InvalidArgumentException('non-nullable controlling_field_name cannot be null'); + } + $this->container['controlling_field_name'] = $controlling_field_name; + + return $this; + } + /** * Gets dependency_type * @@ -384,33 +411,6 @@ public function setDependencyType($dependency_type) return $this; } - /** - * Gets controlling_field_name - * - * @return string - */ - public function getControllingFieldName() - { - return $this->container['controlling_field_name']; - } - - /** - * Sets controlling_field_name - * - * @param string $controlling_field_name controlling_field_name - * - * @return self - */ - public function setControllingFieldName($controlling_field_name) - { - if (is_null($controlling_field_name)) { - throw new \InvalidArgumentException('non-nullable controlling_field_name cannot be null'); - } - $this->container['controlling_field_name'] = $controlling_field_name; - - return $this; - } - /** * Gets dependent_field_names * diff --git a/codegen/Automation/Actions/Model/PublicActionDefinitionPatch.php b/codegen/Automation/Actions/Model/PublicActionDefinitionPatch.php index e3e8b3c2..2361c4b7 100644 --- a/codegen/Automation/Actions/Model/PublicActionDefinitionPatch.php +++ b/codegen/Automation/Actions/Model/PublicActionDefinitionPatch.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,15 +57,15 @@ class PublicActionDefinitionPatch implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'input_fields' => '\HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]', - 'output_fields' => '\HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]', 'action_url' => 'string', - 'input_field_dependencies' => '\HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]', - 'published' => 'bool', 'execution_rules' => '\HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]', - 'object_types' => 'string[]', + 'input_field_dependencies' => '\HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]', + 'input_fields' => '\HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]', + 'labels' => 'array', 'object_request_options' => '\HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions', - 'labels' => 'array' + 'object_types' => 'string[]', + 'output_fields' => '\HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]', + 'published' => 'bool' ]; /** @@ -76,15 +76,15 @@ class PublicActionDefinitionPatch implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'input_fields' => null, - 'output_fields' => null, 'action_url' => null, - 'input_field_dependencies' => null, - 'published' => null, 'execution_rules' => null, - 'object_types' => null, + 'input_field_dependencies' => null, + 'input_fields' => null, + 'labels' => null, 'object_request_options' => null, - 'labels' => null + 'object_types' => null, + 'output_fields' => null, + 'published' => null ]; /** @@ -93,15 +93,15 @@ class PublicActionDefinitionPatch implements ModelInterface, ArrayAccess, \JsonS * @var boolean[] */ protected static array $openAPINullables = [ - 'input_fields' => false, - 'output_fields' => false, 'action_url' => false, - 'input_field_dependencies' => false, - 'published' => false, 'execution_rules' => false, - 'object_types' => false, + 'input_field_dependencies' => false, + 'input_fields' => false, + 'labels' => false, 'object_request_options' => false, - 'labels' => false + 'object_types' => false, + 'output_fields' => false, + 'published' => false ]; /** @@ -190,15 +190,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'input_fields' => 'inputFields', - 'output_fields' => 'outputFields', 'action_url' => 'actionUrl', - 'input_field_dependencies' => 'inputFieldDependencies', - 'published' => 'published', 'execution_rules' => 'executionRules', - 'object_types' => 'objectTypes', + 'input_field_dependencies' => 'inputFieldDependencies', + 'input_fields' => 'inputFields', + 'labels' => 'labels', 'object_request_options' => 'objectRequestOptions', - 'labels' => 'labels' + 'object_types' => 'objectTypes', + 'output_fields' => 'outputFields', + 'published' => 'published' ]; /** @@ -207,15 +207,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'input_fields' => 'setInputFields', - 'output_fields' => 'setOutputFields', 'action_url' => 'setActionUrl', - 'input_field_dependencies' => 'setInputFieldDependencies', - 'published' => 'setPublished', 'execution_rules' => 'setExecutionRules', - 'object_types' => 'setObjectTypes', + 'input_field_dependencies' => 'setInputFieldDependencies', + 'input_fields' => 'setInputFields', + 'labels' => 'setLabels', 'object_request_options' => 'setObjectRequestOptions', - 'labels' => 'setLabels' + 'object_types' => 'setObjectTypes', + 'output_fields' => 'setOutputFields', + 'published' => 'setPublished' ]; /** @@ -224,15 +224,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'input_fields' => 'getInputFields', - 'output_fields' => 'getOutputFields', 'action_url' => 'getActionUrl', - 'input_field_dependencies' => 'getInputFieldDependencies', - 'published' => 'getPublished', 'execution_rules' => 'getExecutionRules', - 'object_types' => 'getObjectTypes', + 'input_field_dependencies' => 'getInputFieldDependencies', + 'input_fields' => 'getInputFields', + 'labels' => 'getLabels', 'object_request_options' => 'getObjectRequestOptions', - 'labels' => 'getLabels' + 'object_types' => 'getObjectTypes', + 'output_fields' => 'getOutputFields', + 'published' => 'getPublished' ]; /** @@ -292,15 +292,15 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('input_fields', $data ?? [], null); - $this->setIfExists('output_fields', $data ?? [], null); $this->setIfExists('action_url', $data ?? [], null); - $this->setIfExists('input_field_dependencies', $data ?? [], null); - $this->setIfExists('published', $data ?? [], null); $this->setIfExists('execution_rules', $data ?? [], null); - $this->setIfExists('object_types', $data ?? [], null); - $this->setIfExists('object_request_options', $data ?? [], null); + $this->setIfExists('input_field_dependencies', $data ?? [], null); + $this->setIfExists('input_fields', $data ?? [], null); $this->setIfExists('labels', $data ?? [], null); + $this->setIfExists('object_request_options', $data ?? [], null); + $this->setIfExists('object_types', $data ?? [], null); + $this->setIfExists('output_fields', $data ?? [], null); + $this->setIfExists('published', $data ?? [], null); } /** @@ -346,163 +346,163 @@ public function valid() /** - * Gets input_fields + * Gets action_url * - * @return \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]|null + * @return string|null */ - public function getInputFields() + public function getActionUrl() { - return $this->container['input_fields']; + return $this->container['action_url']; } /** - * Sets input_fields + * Sets action_url * - * @param \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]|null $input_fields input_fields + * @param string|null $action_url action_url * * @return self */ - public function setInputFields($input_fields) + public function setActionUrl($action_url) { - if (is_null($input_fields)) { - throw new \InvalidArgumentException('non-nullable input_fields cannot be null'); + if (is_null($action_url)) { + throw new \InvalidArgumentException('non-nullable action_url cannot be null'); } - $this->container['input_fields'] = $input_fields; + $this->container['action_url'] = $action_url; return $this; } /** - * Gets output_fields + * Gets execution_rules * - * @return \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null + * @return \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null */ - public function getOutputFields() + public function getExecutionRules() { - return $this->container['output_fields']; + return $this->container['execution_rules']; } /** - * Sets output_fields + * Sets execution_rules * - * @param \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null $output_fields output_fields + * @param \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null $execution_rules execution_rules * * @return self */ - public function setOutputFields($output_fields) + public function setExecutionRules($execution_rules) { - if (is_null($output_fields)) { - throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); + if (is_null($execution_rules)) { + throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); } - $this->container['output_fields'] = $output_fields; + $this->container['execution_rules'] = $execution_rules; return $this; } /** - * Gets action_url + * Gets input_field_dependencies * - * @return string|null + * @return \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null */ - public function getActionUrl() + public function getInputFieldDependencies() { - return $this->container['action_url']; + return $this->container['input_field_dependencies']; } /** - * Sets action_url + * Sets input_field_dependencies * - * @param string|null $action_url action_url + * @param \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null $input_field_dependencies input_field_dependencies * * @return self */ - public function setActionUrl($action_url) + public function setInputFieldDependencies($input_field_dependencies) { - if (is_null($action_url)) { - throw new \InvalidArgumentException('non-nullable action_url cannot be null'); + if (is_null($input_field_dependencies)) { + throw new \InvalidArgumentException('non-nullable input_field_dependencies cannot be null'); } - $this->container['action_url'] = $action_url; + $this->container['input_field_dependencies'] = $input_field_dependencies; return $this; } /** - * Gets input_field_dependencies + * Gets input_fields * - * @return \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null + * @return \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]|null */ - public function getInputFieldDependencies() + public function getInputFields() { - return $this->container['input_field_dependencies']; + return $this->container['input_fields']; } /** - * Sets input_field_dependencies + * Sets input_fields * - * @param \HubSpot\Client\Automation\Actions\Model\PublicActionDefinitionInputFieldDependenciesInner[]|null $input_field_dependencies input_field_dependencies + * @param \HubSpot\Client\Automation\Actions\Model\InputFieldDefinition[]|null $input_fields input_fields * * @return self */ - public function setInputFieldDependencies($input_field_dependencies) + public function setInputFields($input_fields) { - if (is_null($input_field_dependencies)) { - throw new \InvalidArgumentException('non-nullable input_field_dependencies cannot be null'); + if (is_null($input_fields)) { + throw new \InvalidArgumentException('non-nullable input_fields cannot be null'); } - $this->container['input_field_dependencies'] = $input_field_dependencies; + $this->container['input_fields'] = $input_fields; return $this; } /** - * Gets published + * Gets labels * - * @return bool|null + * @return array|null */ - public function getPublished() + public function getLabels() { - return $this->container['published']; + return $this->container['labels']; } /** - * Sets published + * Sets labels * - * @param bool|null $published published + * @param array|null $labels labels * * @return self */ - public function setPublished($published) + public function setLabels($labels) { - if (is_null($published)) { - throw new \InvalidArgumentException('non-nullable published cannot be null'); + if (is_null($labels)) { + throw new \InvalidArgumentException('non-nullable labels cannot be null'); } - $this->container['published'] = $published; + $this->container['labels'] = $labels; return $this; } /** - * Gets execution_rules + * Gets object_request_options * - * @return \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null + * @return \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null */ - public function getExecutionRules() + public function getObjectRequestOptions() { - return $this->container['execution_rules']; + return $this->container['object_request_options']; } /** - * Sets execution_rules + * Sets object_request_options * - * @param \HubSpot\Client\Automation\Actions\Model\PublicExecutionTranslationRule[]|null $execution_rules execution_rules + * @param \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null $object_request_options object_request_options * * @return self */ - public function setExecutionRules($execution_rules) + public function setObjectRequestOptions($object_request_options) { - if (is_null($execution_rules)) { - throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); + if (is_null($object_request_options)) { + throw new \InvalidArgumentException('non-nullable object_request_options cannot be null'); } - $this->container['execution_rules'] = $execution_rules; + $this->container['object_request_options'] = $object_request_options; return $this; } @@ -535,55 +535,55 @@ public function setObjectTypes($object_types) } /** - * Gets object_request_options + * Gets output_fields * - * @return \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null + * @return \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null */ - public function getObjectRequestOptions() + public function getOutputFields() { - return $this->container['object_request_options']; + return $this->container['output_fields']; } /** - * Sets object_request_options + * Sets output_fields * - * @param \HubSpot\Client\Automation\Actions\Model\PublicObjectRequestOptions|null $object_request_options object_request_options + * @param \HubSpot\Client\Automation\Actions\Model\OutputFieldDefinition[]|null $output_fields output_fields * * @return self */ - public function setObjectRequestOptions($object_request_options) + public function setOutputFields($output_fields) { - if (is_null($object_request_options)) { - throw new \InvalidArgumentException('non-nullable object_request_options cannot be null'); + if (is_null($output_fields)) { + throw new \InvalidArgumentException('non-nullable output_fields cannot be null'); } - $this->container['object_request_options'] = $object_request_options; + $this->container['output_fields'] = $output_fields; return $this; } /** - * Gets labels + * Gets published * - * @return array|null + * @return bool|null */ - public function getLabels() + public function getPublished() { - return $this->container['labels']; + return $this->container['published']; } /** - * Sets labels + * Sets published * - * @param array|null $labels labels + * @param bool|null $published published * * @return self */ - public function setLabels($labels) + public function setPublished($published) { - if (is_null($labels)) { - throw new \InvalidArgumentException('non-nullable labels cannot be null'); + if (is_null($published)) { + throw new \InvalidArgumentException('non-nullable published cannot be null'); } - $this->container['labels'] = $labels; + $this->container['published'] = $published; return $this; } diff --git a/codegen/Automation/Actions/Model/PublicActionFunction.php b/codegen/Automation/Actions/Model/PublicActionFunction.php index b2fe31b5..a5b66e66 100644 --- a/codegen/Automation/Actions/Model/PublicActionFunction.php +++ b/codegen/Automation/Actions/Model/PublicActionFunction.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -240,10 +240,10 @@ public function getModelName() return self::$openAPIModelName; } + public const FUNCTION_TYPE_POST_ACTION_EXECUTION = 'POST_ACTION_EXECUTION'; + public const FUNCTION_TYPE_POST_FETCH_OPTIONS = 'POST_FETCH_OPTIONS'; public const FUNCTION_TYPE_PRE_ACTION_EXECUTION = 'PRE_ACTION_EXECUTION'; public const FUNCTION_TYPE_PRE_FETCH_OPTIONS = 'PRE_FETCH_OPTIONS'; - public const FUNCTION_TYPE_POST_FETCH_OPTIONS = 'POST_FETCH_OPTIONS'; - public const FUNCTION_TYPE_POST_ACTION_EXECUTION = 'POST_ACTION_EXECUTION'; /** * Gets allowable values of the enum @@ -253,10 +253,10 @@ public function getModelName() public function getFunctionTypeAllowableValues() { return [ + self::FUNCTION_TYPE_POST_ACTION_EXECUTION, + self::FUNCTION_TYPE_POST_FETCH_OPTIONS, self::FUNCTION_TYPE_PRE_ACTION_EXECUTION, self::FUNCTION_TYPE_PRE_FETCH_OPTIONS, - self::FUNCTION_TYPE_POST_FETCH_OPTIONS, - self::FUNCTION_TYPE_POST_ACTION_EXECUTION, ]; } diff --git a/codegen/Automation/Actions/Model/PublicActionFunctionIdentifier.php b/codegen/Automation/Actions/Model/PublicActionFunctionIdentifier.php index ac2949d8..2f642474 100644 --- a/codegen/Automation/Actions/Model/PublicActionFunctionIdentifier.php +++ b/codegen/Automation/Actions/Model/PublicActionFunctionIdentifier.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -234,10 +234,10 @@ public function getModelName() return self::$openAPIModelName; } + public const FUNCTION_TYPE_POST_ACTION_EXECUTION = 'POST_ACTION_EXECUTION'; + public const FUNCTION_TYPE_POST_FETCH_OPTIONS = 'POST_FETCH_OPTIONS'; public const FUNCTION_TYPE_PRE_ACTION_EXECUTION = 'PRE_ACTION_EXECUTION'; public const FUNCTION_TYPE_PRE_FETCH_OPTIONS = 'PRE_FETCH_OPTIONS'; - public const FUNCTION_TYPE_POST_FETCH_OPTIONS = 'POST_FETCH_OPTIONS'; - public const FUNCTION_TYPE_POST_ACTION_EXECUTION = 'POST_ACTION_EXECUTION'; /** * Gets allowable values of the enum @@ -247,10 +247,10 @@ public function getModelName() public function getFunctionTypeAllowableValues() { return [ + self::FUNCTION_TYPE_POST_ACTION_EXECUTION, + self::FUNCTION_TYPE_POST_FETCH_OPTIONS, self::FUNCTION_TYPE_PRE_ACTION_EXECUTION, self::FUNCTION_TYPE_PRE_FETCH_OPTIONS, - self::FUNCTION_TYPE_POST_FETCH_OPTIONS, - self::FUNCTION_TYPE_POST_ACTION_EXECUTION, ]; } diff --git a/codegen/Automation/Actions/Model/PublicActionLabels.php b/codegen/Automation/Actions/Model/PublicActionLabels.php index f07bc286..8a0acb06 100644 --- a/codegen/Automation/Actions/Model/PublicActionLabels.php +++ b/codegen/Automation/Actions/Model/PublicActionLabels.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,15 +57,15 @@ class PublicActionLabels implements ModelInterface, ArrayAccess, \JsonSerializab * @var string[] */ protected static $openAPITypes = [ - 'input_field_descriptions' => 'array', - 'app_display_name' => 'string', - 'output_field_labels' => 'array', - 'input_field_option_labels' => 'array>', + 'action_card_content' => 'string', 'action_description' => 'string', + 'action_name' => 'string', + 'app_display_name' => 'string', 'execution_rules' => 'array', + 'input_field_descriptions' => 'array', 'input_field_labels' => 'array', - 'action_name' => 'string', - 'action_card_content' => 'string' + 'input_field_option_labels' => 'array>', + 'output_field_labels' => 'array' ]; /** @@ -76,15 +76,15 @@ class PublicActionLabels implements ModelInterface, ArrayAccess, \JsonSerializab * @psalm-var array */ protected static $openAPIFormats = [ - 'input_field_descriptions' => null, - 'app_display_name' => null, - 'output_field_labels' => null, - 'input_field_option_labels' => null, + 'action_card_content' => null, 'action_description' => null, + 'action_name' => null, + 'app_display_name' => null, 'execution_rules' => null, + 'input_field_descriptions' => null, 'input_field_labels' => null, - 'action_name' => null, - 'action_card_content' => null + 'input_field_option_labels' => null, + 'output_field_labels' => null ]; /** @@ -93,15 +93,15 @@ class PublicActionLabels implements ModelInterface, ArrayAccess, \JsonSerializab * @var boolean[] */ protected static array $openAPINullables = [ - 'input_field_descriptions' => false, - 'app_display_name' => false, - 'output_field_labels' => false, - 'input_field_option_labels' => false, + 'action_card_content' => false, 'action_description' => false, + 'action_name' => false, + 'app_display_name' => false, 'execution_rules' => false, + 'input_field_descriptions' => false, 'input_field_labels' => false, - 'action_name' => false, - 'action_card_content' => false + 'input_field_option_labels' => false, + 'output_field_labels' => false ]; /** @@ -190,15 +190,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'input_field_descriptions' => 'inputFieldDescriptions', - 'app_display_name' => 'appDisplayName', - 'output_field_labels' => 'outputFieldLabels', - 'input_field_option_labels' => 'inputFieldOptionLabels', + 'action_card_content' => 'actionCardContent', 'action_description' => 'actionDescription', + 'action_name' => 'actionName', + 'app_display_name' => 'appDisplayName', 'execution_rules' => 'executionRules', + 'input_field_descriptions' => 'inputFieldDescriptions', 'input_field_labels' => 'inputFieldLabels', - 'action_name' => 'actionName', - 'action_card_content' => 'actionCardContent' + 'input_field_option_labels' => 'inputFieldOptionLabels', + 'output_field_labels' => 'outputFieldLabels' ]; /** @@ -207,15 +207,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'input_field_descriptions' => 'setInputFieldDescriptions', - 'app_display_name' => 'setAppDisplayName', - 'output_field_labels' => 'setOutputFieldLabels', - 'input_field_option_labels' => 'setInputFieldOptionLabels', + 'action_card_content' => 'setActionCardContent', 'action_description' => 'setActionDescription', + 'action_name' => 'setActionName', + 'app_display_name' => 'setAppDisplayName', 'execution_rules' => 'setExecutionRules', + 'input_field_descriptions' => 'setInputFieldDescriptions', 'input_field_labels' => 'setInputFieldLabels', - 'action_name' => 'setActionName', - 'action_card_content' => 'setActionCardContent' + 'input_field_option_labels' => 'setInputFieldOptionLabels', + 'output_field_labels' => 'setOutputFieldLabels' ]; /** @@ -224,15 +224,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'input_field_descriptions' => 'getInputFieldDescriptions', - 'app_display_name' => 'getAppDisplayName', - 'output_field_labels' => 'getOutputFieldLabels', - 'input_field_option_labels' => 'getInputFieldOptionLabels', + 'action_card_content' => 'getActionCardContent', 'action_description' => 'getActionDescription', + 'action_name' => 'getActionName', + 'app_display_name' => 'getAppDisplayName', 'execution_rules' => 'getExecutionRules', + 'input_field_descriptions' => 'getInputFieldDescriptions', 'input_field_labels' => 'getInputFieldLabels', - 'action_name' => 'getActionName', - 'action_card_content' => 'getActionCardContent' + 'input_field_option_labels' => 'getInputFieldOptionLabels', + 'output_field_labels' => 'getOutputFieldLabels' ]; /** @@ -292,15 +292,15 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('input_field_descriptions', $data ?? [], null); - $this->setIfExists('app_display_name', $data ?? [], null); - $this->setIfExists('output_field_labels', $data ?? [], null); - $this->setIfExists('input_field_option_labels', $data ?? [], null); + $this->setIfExists('action_card_content', $data ?? [], null); $this->setIfExists('action_description', $data ?? [], null); + $this->setIfExists('action_name', $data ?? [], null); + $this->setIfExists('app_display_name', $data ?? [], null); $this->setIfExists('execution_rules', $data ?? [], null); + $this->setIfExists('input_field_descriptions', $data ?? [], null); $this->setIfExists('input_field_labels', $data ?? [], null); - $this->setIfExists('action_name', $data ?? [], null); - $this->setIfExists('action_card_content', $data ?? [], null); + $this->setIfExists('input_field_option_labels', $data ?? [], null); + $this->setIfExists('output_field_labels', $data ?? [], null); } /** @@ -349,163 +349,163 @@ public function valid() /** - * Gets input_field_descriptions + * Gets action_card_content * - * @return array|null + * @return string|null */ - public function getInputFieldDescriptions() + public function getActionCardContent() { - return $this->container['input_field_descriptions']; + return $this->container['action_card_content']; } /** - * Sets input_field_descriptions + * Sets action_card_content * - * @param array|null $input_field_descriptions input_field_descriptions + * @param string|null $action_card_content action_card_content * * @return self */ - public function setInputFieldDescriptions($input_field_descriptions) + public function setActionCardContent($action_card_content) { - if (is_null($input_field_descriptions)) { - throw new \InvalidArgumentException('non-nullable input_field_descriptions cannot be null'); + if (is_null($action_card_content)) { + throw new \InvalidArgumentException('non-nullable action_card_content cannot be null'); } - $this->container['input_field_descriptions'] = $input_field_descriptions; + $this->container['action_card_content'] = $action_card_content; return $this; } /** - * Gets app_display_name + * Gets action_description * * @return string|null */ - public function getAppDisplayName() + public function getActionDescription() { - return $this->container['app_display_name']; + return $this->container['action_description']; } /** - * Sets app_display_name + * Sets action_description * - * @param string|null $app_display_name app_display_name + * @param string|null $action_description action_description * * @return self */ - public function setAppDisplayName($app_display_name) + public function setActionDescription($action_description) { - if (is_null($app_display_name)) { - throw new \InvalidArgumentException('non-nullable app_display_name cannot be null'); + if (is_null($action_description)) { + throw new \InvalidArgumentException('non-nullable action_description cannot be null'); } - $this->container['app_display_name'] = $app_display_name; + $this->container['action_description'] = $action_description; return $this; } /** - * Gets output_field_labels + * Gets action_name * - * @return array|null + * @return string */ - public function getOutputFieldLabels() + public function getActionName() { - return $this->container['output_field_labels']; + return $this->container['action_name']; } /** - * Sets output_field_labels + * Sets action_name * - * @param array|null $output_field_labels output_field_labels + * @param string $action_name action_name * * @return self */ - public function setOutputFieldLabels($output_field_labels) + public function setActionName($action_name) { - if (is_null($output_field_labels)) { - throw new \InvalidArgumentException('non-nullable output_field_labels cannot be null'); + if (is_null($action_name)) { + throw new \InvalidArgumentException('non-nullable action_name cannot be null'); } - $this->container['output_field_labels'] = $output_field_labels; + $this->container['action_name'] = $action_name; return $this; } /** - * Gets input_field_option_labels + * Gets app_display_name * - * @return array>|null + * @return string|null */ - public function getInputFieldOptionLabels() + public function getAppDisplayName() { - return $this->container['input_field_option_labels']; + return $this->container['app_display_name']; } /** - * Sets input_field_option_labels + * Sets app_display_name * - * @param array>|null $input_field_option_labels input_field_option_labels + * @param string|null $app_display_name app_display_name * * @return self */ - public function setInputFieldOptionLabels($input_field_option_labels) + public function setAppDisplayName($app_display_name) { - if (is_null($input_field_option_labels)) { - throw new \InvalidArgumentException('non-nullable input_field_option_labels cannot be null'); + if (is_null($app_display_name)) { + throw new \InvalidArgumentException('non-nullable app_display_name cannot be null'); } - $this->container['input_field_option_labels'] = $input_field_option_labels; + $this->container['app_display_name'] = $app_display_name; return $this; } /** - * Gets action_description + * Gets execution_rules * - * @return string|null + * @return array|null */ - public function getActionDescription() + public function getExecutionRules() { - return $this->container['action_description']; + return $this->container['execution_rules']; } /** - * Sets action_description + * Sets execution_rules * - * @param string|null $action_description action_description + * @param array|null $execution_rules execution_rules * * @return self */ - public function setActionDescription($action_description) + public function setExecutionRules($execution_rules) { - if (is_null($action_description)) { - throw new \InvalidArgumentException('non-nullable action_description cannot be null'); + if (is_null($execution_rules)) { + throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); } - $this->container['action_description'] = $action_description; + $this->container['execution_rules'] = $execution_rules; return $this; } /** - * Gets execution_rules + * Gets input_field_descriptions * * @return array|null */ - public function getExecutionRules() + public function getInputFieldDescriptions() { - return $this->container['execution_rules']; + return $this->container['input_field_descriptions']; } /** - * Sets execution_rules + * Sets input_field_descriptions * - * @param array|null $execution_rules execution_rules + * @param array|null $input_field_descriptions input_field_descriptions * * @return self */ - public function setExecutionRules($execution_rules) + public function setInputFieldDescriptions($input_field_descriptions) { - if (is_null($execution_rules)) { - throw new \InvalidArgumentException('non-nullable execution_rules cannot be null'); + if (is_null($input_field_descriptions)) { + throw new \InvalidArgumentException('non-nullable input_field_descriptions cannot be null'); } - $this->container['execution_rules'] = $execution_rules; + $this->container['input_field_descriptions'] = $input_field_descriptions; return $this; } @@ -538,55 +538,55 @@ public function setInputFieldLabels($input_field_labels) } /** - * Gets action_name + * Gets input_field_option_labels * - * @return string + * @return array>|null */ - public function getActionName() + public function getInputFieldOptionLabels() { - return $this->container['action_name']; + return $this->container['input_field_option_labels']; } /** - * Sets action_name + * Sets input_field_option_labels * - * @param string $action_name action_name + * @param array>|null $input_field_option_labels input_field_option_labels * * @return self */ - public function setActionName($action_name) + public function setInputFieldOptionLabels($input_field_option_labels) { - if (is_null($action_name)) { - throw new \InvalidArgumentException('non-nullable action_name cannot be null'); + if (is_null($input_field_option_labels)) { + throw new \InvalidArgumentException('non-nullable input_field_option_labels cannot be null'); } - $this->container['action_name'] = $action_name; + $this->container['input_field_option_labels'] = $input_field_option_labels; return $this; } /** - * Gets action_card_content + * Gets output_field_labels * - * @return string|null + * @return array|null */ - public function getActionCardContent() + public function getOutputFieldLabels() { - return $this->container['action_card_content']; + return $this->container['output_field_labels']; } /** - * Sets action_card_content + * Sets output_field_labels * - * @param string|null $action_card_content action_card_content + * @param array|null $output_field_labels output_field_labels * * @return self */ - public function setActionCardContent($action_card_content) + public function setOutputFieldLabels($output_field_labels) { - if (is_null($action_card_content)) { - throw new \InvalidArgumentException('non-nullable action_card_content cannot be null'); + if (is_null($output_field_labels)) { + throw new \InvalidArgumentException('non-nullable output_field_labels cannot be null'); } - $this->container['action_card_content'] = $action_card_content; + $this->container['output_field_labels'] = $output_field_labels; return $this; } diff --git a/codegen/Automation/Actions/Model/PublicActionRevision.php b/codegen/Automation/Actions/Model/PublicActionRevision.php index 7f0a327f..8d55f350 100644 --- a/codegen/Automation/Actions/Model/PublicActionRevision.php +++ b/codegen/Automation/Actions/Model/PublicActionRevision.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,10 +57,10 @@ class PublicActionRevision implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'revision_id' => 'string', 'created_at' => '\DateTime', 'definition' => '\HubSpot\Client\Automation\Actions\Model\PublicActionDefinition', - 'id' => 'string' + 'id' => 'string', + 'revision_id' => 'string' ]; /** @@ -71,10 +71,10 @@ class PublicActionRevision implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'revision_id' => null, 'created_at' => 'date-time', 'definition' => null, - 'id' => null + 'id' => null, + 'revision_id' => null ]; /** @@ -83,10 +83,10 @@ class PublicActionRevision implements ModelInterface, ArrayAccess, \JsonSerializ * @var boolean[] */ protected static array $openAPINullables = [ - 'revision_id' => false, 'created_at' => false, 'definition' => false, - 'id' => false + 'id' => false, + 'revision_id' => false ]; /** @@ -175,10 +175,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'revision_id' => 'revisionId', 'created_at' => 'createdAt', 'definition' => 'definition', - 'id' => 'id' + 'id' => 'id', + 'revision_id' => 'revisionId' ]; /** @@ -187,10 +187,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'revision_id' => 'setRevisionId', 'created_at' => 'setCreatedAt', 'definition' => 'setDefinition', - 'id' => 'setId' + 'id' => 'setId', + 'revision_id' => 'setRevisionId' ]; /** @@ -199,10 +199,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'revision_id' => 'getRevisionId', 'created_at' => 'getCreatedAt', 'definition' => 'getDefinition', - 'id' => 'getId' + 'id' => 'getId', + 'revision_id' => 'getRevisionId' ]; /** @@ -262,10 +262,10 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('revision_id', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('definition', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('revision_id', $data ?? [], null); } /** @@ -295,9 +295,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['revision_id'] === null) { - $invalidProperties[] = "'revision_id' can't be null"; - } if ($this->container['created_at'] === null) { $invalidProperties[] = "'created_at' can't be null"; } @@ -307,6 +304,9 @@ public function listInvalidProperties() if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } + if ($this->container['revision_id'] === null) { + $invalidProperties[] = "'revision_id' can't be null"; + } return $invalidProperties; } @@ -322,33 +322,6 @@ public function valid() } - /** - * Gets revision_id - * - * @return string - */ - public function getRevisionId() - { - return $this->container['revision_id']; - } - - /** - * Sets revision_id - * - * @param string $revision_id revision_id - * - * @return self - */ - public function setRevisionId($revision_id) - { - if (is_null($revision_id)) { - throw new \InvalidArgumentException('non-nullable revision_id cannot be null'); - } - $this->container['revision_id'] = $revision_id; - - return $this; - } - /** * Gets created_at * @@ -429,6 +402,33 @@ public function setId($id) return $this; } + + /** + * Gets revision_id + * + * @return string + */ + public function getRevisionId() + { + return $this->container['revision_id']; + } + + /** + * Sets revision_id + * + * @param string $revision_id revision_id + * + * @return self + */ + public function setRevisionId($revision_id) + { + if (is_null($revision_id)) { + throw new \InvalidArgumentException('non-nullable revision_id cannot be null'); + } + $this->container['revision_id'] = $revision_id; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Automation/Actions/Model/PublicConditionalSingleFieldDependency.php b/codegen/Automation/Actions/Model/PublicConditionalSingleFieldDependency.php index 2692c8dc..0bb8363b 100644 --- a/codegen/Automation/Actions/Model/PublicConditionalSingleFieldDependency.php +++ b/codegen/Automation/Actions/Model/PublicConditionalSingleFieldDependency.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,9 +57,9 @@ class PublicConditionalSingleFieldDependency implements ModelInterface, ArrayAcc * @var string[] */ protected static $openAPITypes = [ - 'dependency_type' => 'string', 'controlling_field_name' => 'string', 'controlling_field_value' => 'string', + 'dependency_type' => 'string', 'dependent_field_names' => 'string[]' ]; @@ -71,9 +71,9 @@ class PublicConditionalSingleFieldDependency implements ModelInterface, ArrayAcc * @psalm-var array */ protected static $openAPIFormats = [ - 'dependency_type' => null, 'controlling_field_name' => null, 'controlling_field_value' => null, + 'dependency_type' => null, 'dependent_field_names' => null ]; @@ -83,9 +83,9 @@ class PublicConditionalSingleFieldDependency implements ModelInterface, ArrayAcc * @var boolean[] */ protected static array $openAPINullables = [ - 'dependency_type' => false, 'controlling_field_name' => false, 'controlling_field_value' => false, + 'dependency_type' => false, 'dependent_field_names' => false ]; @@ -175,9 +175,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'dependency_type' => 'dependencyType', 'controlling_field_name' => 'controllingFieldName', 'controlling_field_value' => 'controllingFieldValue', + 'dependency_type' => 'dependencyType', 'dependent_field_names' => 'dependentFieldNames' ]; @@ -187,9 +187,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'dependency_type' => 'setDependencyType', 'controlling_field_name' => 'setControllingFieldName', 'controlling_field_value' => 'setControllingFieldValue', + 'dependency_type' => 'setDependencyType', 'dependent_field_names' => 'setDependentFieldNames' ]; @@ -199,9 +199,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'dependency_type' => 'getDependencyType', 'controlling_field_name' => 'getControllingFieldName', 'controlling_field_value' => 'getControllingFieldValue', + 'dependency_type' => 'getDependencyType', 'dependent_field_names' => 'getDependentFieldNames' ]; @@ -275,9 +275,9 @@ public function getDependencyTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('dependency_type', $data ?? [], 'CONDITIONAL_SINGLE_FIELD'); $this->setIfExists('controlling_field_name', $data ?? [], null); $this->setIfExists('controlling_field_value', $data ?? [], null); + $this->setIfExists('dependency_type', $data ?? [], 'CONDITIONAL_SINGLE_FIELD'); $this->setIfExists('dependent_field_names', $data ?? [], null); } @@ -308,6 +308,12 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['controlling_field_name'] === null) { + $invalidProperties[] = "'controlling_field_name' can't be null"; + } + if ($this->container['controlling_field_value'] === null) { + $invalidProperties[] = "'controlling_field_value' can't be null"; + } if ($this->container['dependency_type'] === null) { $invalidProperties[] = "'dependency_type' can't be null"; } @@ -320,12 +326,6 @@ public function listInvalidProperties() ); } - if ($this->container['controlling_field_name'] === null) { - $invalidProperties[] = "'controlling_field_name' can't be null"; - } - if ($this->container['controlling_field_value'] === null) { - $invalidProperties[] = "'controlling_field_value' can't be null"; - } if ($this->container['dependent_field_names'] === null) { $invalidProperties[] = "'dependent_field_names' can't be null"; } @@ -344,43 +344,6 @@ public function valid() } - /** - * Gets dependency_type - * - * @return string - */ - public function getDependencyType() - { - return $this->container['dependency_type']; - } - - /** - * Sets dependency_type - * - * @param string $dependency_type dependency_type - * - * @return self - */ - public function setDependencyType($dependency_type) - { - if (is_null($dependency_type)) { - throw new \InvalidArgumentException('non-nullable dependency_type cannot be null'); - } - $allowedValues = $this->getDependencyTypeAllowableValues(); - if (!in_array($dependency_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'dependency_type', must be one of '%s'", - $dependency_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['dependency_type'] = $dependency_type; - - return $this; - } - /** * Gets controlling_field_name * @@ -435,6 +398,43 @@ public function setControllingFieldValue($controlling_field_value) return $this; } + /** + * Gets dependency_type + * + * @return string + */ + public function getDependencyType() + { + return $this->container['dependency_type']; + } + + /** + * Sets dependency_type + * + * @param string $dependency_type dependency_type + * + * @return self + */ + public function setDependencyType($dependency_type) + { + if (is_null($dependency_type)) { + throw new \InvalidArgumentException('non-nullable dependency_type cannot be null'); + } + $allowedValues = $this->getDependencyTypeAllowableValues(); + if (!in_array($dependency_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'dependency_type', must be one of '%s'", + $dependency_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['dependency_type'] = $dependency_type; + + return $this; + } + /** * Gets dependent_field_names * diff --git a/codegen/Automation/Actions/Model/PublicExecutionTranslationRule.php b/codegen/Automation/Actions/Model/PublicExecutionTranslationRule.php index 145ab6e3..792fab14 100644 --- a/codegen/Automation/Actions/Model/PublicExecutionTranslationRule.php +++ b/codegen/Automation/Actions/Model/PublicExecutionTranslationRule.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,8 +57,8 @@ class PublicExecutionTranslationRule implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ - 'label_name' => 'string', - 'conditions' => 'array' + 'conditions' => 'array', + 'label_name' => 'string' ]; /** @@ -69,8 +69,8 @@ class PublicExecutionTranslationRule implements ModelInterface, ArrayAccess, \Js * @psalm-var array */ protected static $openAPIFormats = [ - 'label_name' => null, - 'conditions' => null + 'conditions' => null, + 'label_name' => null ]; /** @@ -79,8 +79,8 @@ class PublicExecutionTranslationRule implements ModelInterface, ArrayAccess, \Js * @var boolean[] */ protected static array $openAPINullables = [ - 'label_name' => false, - 'conditions' => false + 'conditions' => false, + 'label_name' => false ]; /** @@ -169,8 +169,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'label_name' => 'labelName', - 'conditions' => 'conditions' + 'conditions' => 'conditions', + 'label_name' => 'labelName' ]; /** @@ -179,8 +179,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'label_name' => 'setLabelName', - 'conditions' => 'setConditions' + 'conditions' => 'setConditions', + 'label_name' => 'setLabelName' ]; /** @@ -189,8 +189,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'label_name' => 'getLabelName', - 'conditions' => 'getConditions' + 'conditions' => 'getConditions', + 'label_name' => 'getLabelName' ]; /** @@ -250,8 +250,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('label_name', $data ?? [], null); $this->setIfExists('conditions', $data ?? [], null); + $this->setIfExists('label_name', $data ?? [], null); } /** @@ -281,12 +281,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['label_name'] === null) { - $invalidProperties[] = "'label_name' can't be null"; - } if ($this->container['conditions'] === null) { $invalidProperties[] = "'conditions' can't be null"; } + if ($this->container['label_name'] === null) { + $invalidProperties[] = "'label_name' can't be null"; + } return $invalidProperties; } @@ -303,55 +303,55 @@ public function valid() /** - * Gets label_name + * Gets conditions * - * @return string + * @return array */ - public function getLabelName() + public function getConditions() { - return $this->container['label_name']; + return $this->container['conditions']; } /** - * Sets label_name + * Sets conditions * - * @param string $label_name label_name + * @param array $conditions conditions * * @return self */ - public function setLabelName($label_name) + public function setConditions($conditions) { - if (is_null($label_name)) { - throw new \InvalidArgumentException('non-nullable label_name cannot be null'); + if (is_null($conditions)) { + throw new \InvalidArgumentException('non-nullable conditions cannot be null'); } - $this->container['label_name'] = $label_name; + $this->container['conditions'] = $conditions; return $this; } /** - * Gets conditions + * Gets label_name * - * @return array + * @return string */ - public function getConditions() + public function getLabelName() { - return $this->container['conditions']; + return $this->container['label_name']; } /** - * Sets conditions + * Sets label_name * - * @param array $conditions conditions + * @param string $label_name label_name * * @return self */ - public function setConditions($conditions) + public function setLabelName($label_name) { - if (is_null($conditions)) { - throw new \InvalidArgumentException('non-nullable conditions cannot be null'); + if (is_null($label_name)) { + throw new \InvalidArgumentException('non-nullable label_name cannot be null'); } - $this->container['conditions'] = $conditions; + $this->container['label_name'] = $label_name; return $this; } diff --git a/codegen/Automation/Actions/Model/PublicObjectRequestOptions.php b/codegen/Automation/Actions/Model/PublicObjectRequestOptions.php index 836ea6fc..b2068787 100644 --- a/codegen/Automation/Actions/Model/PublicObjectRequestOptions.php +++ b/codegen/Automation/Actions/Model/PublicObjectRequestOptions.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Automation/Actions/Model/PublicSingleFieldDependency.php b/codegen/Automation/Actions/Model/PublicSingleFieldDependency.php index 020efa5c..0c11f9ec 100644 --- a/codegen/Automation/Actions/Model/PublicSingleFieldDependency.php +++ b/codegen/Automation/Actions/Model/PublicSingleFieldDependency.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,8 +57,8 @@ class PublicSingleFieldDependency implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'dependency_type' => 'string', 'controlling_field_name' => 'string', + 'dependency_type' => 'string', 'dependent_field_names' => 'string[]' ]; @@ -70,8 +70,8 @@ class PublicSingleFieldDependency implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'dependency_type' => null, 'controlling_field_name' => null, + 'dependency_type' => null, 'dependent_field_names' => null ]; @@ -81,8 +81,8 @@ class PublicSingleFieldDependency implements ModelInterface, ArrayAccess, \JsonS * @var boolean[] */ protected static array $openAPINullables = [ - 'dependency_type' => false, 'controlling_field_name' => false, + 'dependency_type' => false, 'dependent_field_names' => false ]; @@ -172,8 +172,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'dependency_type' => 'dependencyType', 'controlling_field_name' => 'controllingFieldName', + 'dependency_type' => 'dependencyType', 'dependent_field_names' => 'dependentFieldNames' ]; @@ -183,8 +183,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'dependency_type' => 'setDependencyType', 'controlling_field_name' => 'setControllingFieldName', + 'dependency_type' => 'setDependencyType', 'dependent_field_names' => 'setDependentFieldNames' ]; @@ -194,8 +194,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'dependency_type' => 'getDependencyType', 'controlling_field_name' => 'getControllingFieldName', + 'dependency_type' => 'getDependencyType', 'dependent_field_names' => 'getDependentFieldNames' ]; @@ -269,8 +269,8 @@ public function getDependencyTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('dependency_type', $data ?? [], 'SINGLE_FIELD'); $this->setIfExists('controlling_field_name', $data ?? [], null); + $this->setIfExists('dependency_type', $data ?? [], 'SINGLE_FIELD'); $this->setIfExists('dependent_field_names', $data ?? [], null); } @@ -301,6 +301,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['controlling_field_name'] === null) { + $invalidProperties[] = "'controlling_field_name' can't be null"; + } if ($this->container['dependency_type'] === null) { $invalidProperties[] = "'dependency_type' can't be null"; } @@ -313,9 +316,6 @@ public function listInvalidProperties() ); } - if ($this->container['controlling_field_name'] === null) { - $invalidProperties[] = "'controlling_field_name' can't be null"; - } if ($this->container['dependent_field_names'] === null) { $invalidProperties[] = "'dependent_field_names' can't be null"; } @@ -334,6 +334,33 @@ public function valid() } + /** + * Gets controlling_field_name + * + * @return string + */ + public function getControllingFieldName() + { + return $this->container['controlling_field_name']; + } + + /** + * Sets controlling_field_name + * + * @param string $controlling_field_name controlling_field_name + * + * @return self + */ + public function setControllingFieldName($controlling_field_name) + { + if (is_null($controlling_field_name)) { + throw new \InvalidArgumentException('non-nullable controlling_field_name cannot be null'); + } + $this->container['controlling_field_name'] = $controlling_field_name; + + return $this; + } + /** * Gets dependency_type * @@ -371,33 +398,6 @@ public function setDependencyType($dependency_type) return $this; } - /** - * Gets controlling_field_name - * - * @return string - */ - public function getControllingFieldName() - { - return $this->container['controlling_field_name']; - } - - /** - * Sets controlling_field_name - * - * @param string $controlling_field_name controlling_field_name - * - * @return self - */ - public function setControllingFieldName($controlling_field_name) - { - if (is_null($controlling_field_name)) { - throw new \InvalidArgumentException('non-nullable controlling_field_name cannot be null'); - } - $this->container['controlling_field_name'] = $controlling_field_name; - - return $this; - } - /** * Gets dependent_field_names * diff --git a/codegen/Automation/Actions/ObjectSerializer.php b/codegen/Automation/Actions/ObjectSerializer.php index 0582cd0c..01fc82ac 100644 --- a/codegen/Automation/Actions/ObjectSerializer.php +++ b/codegen/Automation/Actions/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v4 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /**