diff --git a/codegen/Crm/Pipelines/Api/PipelineAuditsApi.php b/codegen/Crm/Pipelines/Api/PipelineAuditsApi.php index 1c7f421e..05dea032 100644 --- a/codegen/Crm/Pipelines/Api/PipelineAuditsApi.php +++ b/codegen/Crm/Pipelines/Api/PipelineAuditsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -130,8 +130,8 @@ public function getConfig() * * Return an audit of all changes to the pipeline * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) + * @param string $object_type The object type of the pipeline audit being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier for the pipeline whose audit history is being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -149,8 +149,8 @@ public function getAudit($object_type, $pipeline_id, string $contentType = self: * * Return an audit of all changes to the pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline audit being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier for the pipeline whose audit history is being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -249,8 +249,8 @@ public function getAuditWithHttpInfo($object_type, $pipeline_id, string $content * * Return an audit of all changes to the pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline audit being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier for the pipeline whose audit history is being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -271,8 +271,8 @@ function ($response) { * * Return an audit of all changes to the pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline audit being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier for the pipeline whose audit history is being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -322,8 +322,8 @@ function ($exception) { /** * Create request for operation 'getAudit' * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline audit being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier for the pipeline whose audit history is being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/codegen/Crm/Pipelines/Api/PipelineStageAuditsApi.php b/codegen/Crm/Pipelines/Api/PipelineStageAuditsApi.php index ad763810..1470855b 100644 --- a/codegen/Crm/Pipelines/Api/PipelineStageAuditsApi.php +++ b/codegen/Crm/Pipelines/Api/PipelineStageAuditsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -128,8 +128,10 @@ public function getConfig() /** * Operation getAudit * - * @param string $object_type object_type (required) - * @param string $stage_id stage_id (required) + * Retrieve a reverse chronological list of all changes made to a specific pipeline stage. + * + * @param string $object_type The object type of the stage audit being retrieved (ex. deals or tickets) (required) + * @param string $stage_id The unique identifier for the pipeline stage being audited. (required) * @param string $pipeline_id pipeline_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * @@ -146,8 +148,10 @@ public function getAudit($object_type, $stage_id, $pipeline_id, string $contentT /** * Operation getAuditWithHttpInfo * - * @param string $object_type (required) - * @param string $stage_id (required) + * Retrieve a reverse chronological list of all changes made to a specific pipeline stage. + * + * @param string $object_type The object type of the stage audit being retrieved (ex. deals or tickets) (required) + * @param string $stage_id The unique identifier for the pipeline stage being audited. (required) * @param string $pipeline_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * @@ -245,8 +249,10 @@ public function getAuditWithHttpInfo($object_type, $stage_id, $pipeline_id, stri /** * Operation getAuditAsync * - * @param string $object_type (required) - * @param string $stage_id (required) + * Retrieve a reverse chronological list of all changes made to a specific pipeline stage. + * + * @param string $object_type The object type of the stage audit being retrieved (ex. deals or tickets) (required) + * @param string $stage_id The unique identifier for the pipeline stage being audited. (required) * @param string $pipeline_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * @@ -266,8 +272,10 @@ function ($response) { /** * Operation getAuditAsyncWithHttpInfo * - * @param string $object_type (required) - * @param string $stage_id (required) + * Retrieve a reverse chronological list of all changes made to a specific pipeline stage. + * + * @param string $object_type The object type of the stage audit being retrieved (ex. deals or tickets) (required) + * @param string $stage_id The unique identifier for the pipeline stage being audited. (required) * @param string $pipeline_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * @@ -318,8 +326,8 @@ function ($exception) { /** * Create request for operation 'getAudit' * - * @param string $object_type (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage audit being retrieved (ex. deals or tickets) (required) + * @param string $stage_id The unique identifier for the pipeline stage being audited. (required) * @param string $pipeline_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAudit'] to see the possible values for this operation * diff --git a/codegen/Crm/Pipelines/Api/PipelineStagesApi.php b/codegen/Crm/Pipelines/Api/PipelineStagesApi.php index a65b5bab..4676d4de 100644 --- a/codegen/Crm/Pipelines/Api/PipelineStagesApi.php +++ b/codegen/Crm/Pipelines/Api/PipelineStagesApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -145,9 +145,9 @@ public function getConfig() * * Delete a pipeline stage * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) - * @param string $stage_id stage_id (required) + * @param string $object_type The object type of the stage being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline from which the stage will be deleted. (required) + * @param string $stage_id The unique identifier of the stage to be deleted from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -164,9 +164,9 @@ public function archive($object_type, $pipeline_id, $stage_id, string $contentTy * * Delete a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline from which the stage will be deleted. (required) + * @param string $stage_id The unique identifier of the stage to be deleted from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -223,9 +223,9 @@ public function archiveWithHttpInfo($object_type, $pipeline_id, $stage_id, strin * * Delete a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline from which the stage will be deleted. (required) + * @param string $stage_id The unique identifier of the stage to be deleted from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -246,9 +246,9 @@ function ($response) { * * Delete a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline from which the stage will be deleted. (required) + * @param string $stage_id The unique identifier of the stage to be deleted from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -285,9 +285,9 @@ function ($exception) { /** * Create request for operation 'archive' * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline from which the stage will be deleted. (required) + * @param string $stage_id The unique identifier of the stage to be deleted from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -415,8 +415,8 @@ public function archiveRequest($object_type, $pipeline_id, $stage_id, string $co * * Create a pipeline stage * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) + * @param string $object_type The object type of the stage being created (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage will be added. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -435,8 +435,8 @@ public function create($object_type, $pipeline_id, $pipeline_stage_input, string * * Create a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stage being created (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage will be added. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -536,8 +536,8 @@ public function createWithHttpInfo($object_type, $pipeline_id, $pipeline_stage_i * * Create a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stage being created (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage will be added. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -559,8 +559,8 @@ function ($response) { * * Create a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stage being created (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage will be added. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -611,8 +611,8 @@ function ($exception) { /** * Create request for operation 'create' * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stage being created (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage will be added. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -740,8 +740,8 @@ public function createRequest($object_type, $pipeline_id, $pipeline_stage_input, * * Return all stages of a pipeline * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) + * @param string $object_type The object type of the stages being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline whose stages are being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -759,8 +759,8 @@ public function getAll($object_type, $pipeline_id, string $contentType = self::c * * Return all stages of a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stages being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline whose stages are being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -859,8 +859,8 @@ public function getAllWithHttpInfo($object_type, $pipeline_id, string $contentTy * * Return all stages of a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stages being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline whose stages are being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -881,8 +881,8 @@ function ($response) { * * Return all stages of a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stages being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline whose stages are being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -932,8 +932,8 @@ function ($exception) { /** * Create request for operation 'getAll' * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the stages being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline whose stages are being retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1046,9 +1046,9 @@ public function getAllRequest($object_type, $pipeline_id, string $contentType = * * Return a pipeline stage by ID * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) - * @param string $stage_id stage_id (required) + * @param string $object_type The object type of the stage being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be retrieved. (required) + * @param string $stage_id The unique identifier of the stage to be retrieved from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1066,9 +1066,9 @@ public function getById($object_type, $pipeline_id, $stage_id, string $contentTy * * Return a pipeline stage by ID * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be retrieved. (required) + * @param string $stage_id The unique identifier of the stage to be retrieved from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1167,9 +1167,9 @@ public function getByIdWithHttpInfo($object_type, $pipeline_id, $stage_id, strin * * Return a pipeline stage by ID * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be retrieved. (required) + * @param string $stage_id The unique identifier of the stage to be retrieved from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1190,9 +1190,9 @@ function ($response) { * * Return a pipeline stage by ID * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be retrieved. (required) + * @param string $stage_id The unique identifier of the stage to be retrieved from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1242,9 +1242,9 @@ function ($exception) { /** * Create request for operation 'getById' * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be retrieved. (required) + * @param string $stage_id The unique identifier of the stage to be retrieved from the pipeline. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1372,9 +1372,9 @@ public function getByIdRequest($object_type, $pipeline_id, $stage_id, string $co * * Replace a pipeline stage * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) - * @param string $stage_id stage_id (required) + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage belongs. (required) + * @param string $stage_id The unique identifier of the stage to be replaced in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -1393,9 +1393,9 @@ public function replace($object_type, $pipeline_id, $stage_id, $pipeline_stage_i * * Replace a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage belongs. (required) + * @param string $stage_id The unique identifier of the stage to be replaced in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -1495,9 +1495,9 @@ public function replaceWithHttpInfo($object_type, $pipeline_id, $stage_id, $pipe * * Replace a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage belongs. (required) + * @param string $stage_id The unique identifier of the stage to be replaced in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -1519,9 +1519,9 @@ function ($response) { * * Replace a pipeline stage * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage belongs. (required) + * @param string $stage_id The unique identifier of the stage to be replaced in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -1572,9 +1572,9 @@ function ($exception) { /** * Create request for operation 'replace' * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to which the stage belongs. (required) + * @param string $stage_id The unique identifier of the stage to be replaced in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput $pipeline_stage_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * @@ -1715,9 +1715,11 @@ public function replaceRequest($object_type, $pipeline_id, $stage_id, $pipeline_ /** * Operation update * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) - * @param string $stage_id stage_id (required) + * Update specific properties of an existing pipeline stage. + * + * @param string $object_type The object type of the stage being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be updated. (required) + * @param string $stage_id The unique identifier of the stage to be updated in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStagePatchInput $pipeline_stage_patch_input pipeline_stage_patch_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1734,9 +1736,11 @@ public function update($object_type, $pipeline_id, $stage_id, $pipeline_stage_pa /** * Operation updateWithHttpInfo * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * Update specific properties of an existing pipeline stage. + * + * @param string $object_type The object type of the stage being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be updated. (required) + * @param string $stage_id The unique identifier of the stage to be updated in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStagePatchInput $pipeline_stage_patch_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1834,9 +1838,11 @@ public function updateWithHttpInfo($object_type, $pipeline_id, $stage_id, $pipel /** * Operation updateAsync * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * Update specific properties of an existing pipeline stage. + * + * @param string $object_type The object type of the stage being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be updated. (required) + * @param string $stage_id The unique identifier of the stage to be updated in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStagePatchInput $pipeline_stage_patch_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1856,9 +1862,11 @@ function ($response) { /** * Operation updateAsyncWithHttpInfo * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * Update specific properties of an existing pipeline stage. + * + * @param string $object_type The object type of the stage being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be updated. (required) + * @param string $stage_id The unique identifier of the stage to be updated in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStagePatchInput $pipeline_stage_patch_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1909,9 +1917,9 @@ function ($exception) { /** * Create request for operation 'update' * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param string $stage_id (required) + * @param string $object_type The object type of the stage being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline containing the stage to be updated. (required) + * @param string $stage_id The unique identifier of the stage to be updated in the pipeline. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStagePatchInput $pipeline_stage_patch_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * diff --git a/codegen/Crm/Pipelines/Api/PipelinesApi.php b/codegen/Crm/Pipelines/Api/PipelinesApi.php index ac343753..48c57353 100644 --- a/codegen/Crm/Pipelines/Api/PipelinesApi.php +++ b/codegen/Crm/Pipelines/Api/PipelinesApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -145,10 +145,10 @@ public function getConfig() * * Delete a pipeline * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) - * @param bool|null $validate_references_before_delete validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete validate_deal_stage_usages_before_delete (optional, default to false) + * @param string $object_type The object type of the pipeline being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be deleted. (required) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -165,10 +165,10 @@ public function archive($object_type, $pipeline_id, $validate_references_before_ * * Delete a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param string $object_type The object type of the pipeline being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be deleted. (required) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -225,10 +225,10 @@ public function archiveWithHttpInfo($object_type, $pipeline_id, $validate_refere * * Delete a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param string $object_type The object type of the pipeline being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be deleted. (required) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -249,10 +249,10 @@ function ($response) { * * Delete a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param string $object_type The object type of the pipeline being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be deleted. (required) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -289,10 +289,10 @@ function ($exception) { /** * Create request for operation 'archive' * - * @param string $object_type (required) - * @param string $pipeline_id (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param string $object_type The object type of the pipeline being deleted (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be deleted. (required) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -425,7 +425,7 @@ public function archiveRequest($object_type, $pipeline_id, $validate_references_ * * Create a pipeline * - * @param string $object_type object_type (required) + * @param string $object_type The object type of the pipeline being created (ex. deals or tickets) (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input pipeline_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -444,7 +444,7 @@ public function create($object_type, $pipeline_input, string $contentType = self * * Create a pipeline * - * @param string $object_type (required) + * @param string $object_type The object type of the pipeline being created (ex. deals or tickets) (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -544,7 +544,7 @@ public function createWithHttpInfo($object_type, $pipeline_input, string $conten * * Create a pipeline * - * @param string $object_type (required) + * @param string $object_type The object type of the pipeline being created (ex. deals or tickets) (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -566,7 +566,7 @@ function ($response) { * * Create a pipeline * - * @param string $object_type (required) + * @param string $object_type The object type of the pipeline being created (ex. deals or tickets) (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -617,7 +617,7 @@ function ($exception) { /** * Create request for operation 'create' * - * @param string $object_type (required) + * @param string $object_type The object type of the pipeline being created (ex. deals or tickets) (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -730,7 +730,7 @@ public function createRequest($object_type, $pipeline_input, string $contentType * * Retrieve all pipelines * - * @param string $object_type object_type (required) + * @param string $object_type The object type of the pipelines being retrieved (ex. deals or tickets) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -748,7 +748,7 @@ public function getAll($object_type, string $contentType = self::contentTypes['g * * Retrieve all pipelines * - * @param string $object_type (required) + * @param string $object_type The object type of the pipelines being retrieved (ex. deals or tickets) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -847,7 +847,7 @@ public function getAllWithHttpInfo($object_type, string $contentType = self::con * * Retrieve all pipelines * - * @param string $object_type (required) + * @param string $object_type The object type of the pipelines being retrieved (ex. deals or tickets) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -868,7 +868,7 @@ function ($response) { * * Retrieve all pipelines * - * @param string $object_type (required) + * @param string $object_type The object type of the pipelines being retrieved (ex. deals or tickets) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -918,7 +918,7 @@ function ($exception) { /** * Create request for operation 'getAll' * - * @param string $object_type (required) + * @param string $object_type The object type of the pipelines being retrieved (ex. deals or tickets) (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAll'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1016,8 +1016,8 @@ public function getAllRequest($object_type, string $contentType = self::contentT * * Return a pipeline by ID * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) + * @param string $object_type The object type of the pipeline being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1035,8 +1035,8 @@ public function getById($object_type, $pipeline_id, string $contentType = self:: * * Return a pipeline by ID * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1135,8 +1135,8 @@ public function getByIdWithHttpInfo($object_type, $pipeline_id, string $contentT * * Return a pipeline by ID * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1157,8 +1157,8 @@ function ($response) { * * Return a pipeline by ID * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1208,8 +1208,8 @@ function ($exception) { /** * Create request for operation 'getById' * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being retrieved (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be retrieved. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1322,11 +1322,11 @@ public function getByIdRequest($object_type, $pipeline_id, string $contentType = * * Replace a pipeline * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) + * @param string $object_type The object type of the pipeline being replaced (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be replaced. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input pipeline_input (required) - * @param bool|null $validate_references_before_delete validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1344,11 +1344,11 @@ public function replace($object_type, $pipeline_id, $pipeline_input, $validate_r * * Replace a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being replaced (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be replaced. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1447,11 +1447,11 @@ public function replaceWithHttpInfo($object_type, $pipeline_id, $pipeline_input, * * Replace a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being replaced (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be replaced. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1472,11 +1472,11 @@ function ($response) { * * Replace a pipeline * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being replaced (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be replaced. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1526,11 +1526,11 @@ function ($exception) { /** * Create request for operation 'replace' * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being replaced (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be replaced. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineInput $pipeline_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replace'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1675,11 +1675,13 @@ public function replaceRequest($object_type, $pipeline_id, $pipeline_input, $val /** * Operation update * - * @param string $object_type object_type (required) - * @param string $pipeline_id pipeline_id (required) + * Perform a partial update of the pipeline identified by pipelineId. + * + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be updated. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelinePatchInput $pipeline_patch_input pipeline_patch_input (required) - * @param bool|null $validate_references_before_delete validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1695,11 +1697,13 @@ public function update($object_type, $pipeline_id, $pipeline_patch_input, $valid /** * Operation updateWithHttpInfo * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * Perform a partial update of the pipeline identified by pipelineId. + * + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be updated. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelinePatchInput $pipeline_patch_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Pipelines\ApiException on non-2xx response or if the response body is not in the expected format @@ -1796,11 +1800,13 @@ public function updateWithHttpInfo($object_type, $pipeline_id, $pipeline_patch_i /** * Operation updateAsync * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * Perform a partial update of the pipeline identified by pipelineId. + * + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be updated. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelinePatchInput $pipeline_patch_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1819,11 +1825,13 @@ function ($response) { /** * Operation updateAsyncWithHttpInfo * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * Perform a partial update of the pipeline identified by pipelineId. + * + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be updated. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelinePatchInput $pipeline_patch_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1873,11 +1881,11 @@ function ($exception) { /** * Create request for operation 'update' * - * @param string $object_type (required) - * @param string $pipeline_id (required) + * @param string $object_type The object type of the pipeline being updated (ex. deals or tickets) (required) + * @param string $pipeline_id The unique identifier of the pipeline to be updated. (required) * @param \HubSpot\Client\Crm\Pipelines\Model\PipelinePatchInput $pipeline_patch_input (required) - * @param bool|null $validate_references_before_delete (optional, default to false) - * @param bool|null $validate_deal_stage_usages_before_delete (optional, default to false) + * @param bool|null $validate_references_before_delete Indicates whether to validate references before deleting the pipeline. (optional, default to false) + * @param bool|null $validate_deal_stage_usages_before_delete Indicates whether to validate deal stage usages before deleting the pipeline. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/codegen/Crm/Pipelines/ApiException.php b/codegen/Crm/Pipelines/ApiException.php index 23bd4fa1..21108e3f 100644 --- a/codegen/Crm/Pipelines/ApiException.php +++ b/codegen/Crm/Pipelines/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/Configuration.php b/codegen/Crm/Pipelines/Configuration.php index 05d14944..53248ef4 100644 --- a/codegen/Crm/Pipelines/Configuration.php +++ b/codegen/Crm/Pipelines/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/FormDataProcessor.php b/codegen/Crm/Pipelines/FormDataProcessor.php index 5ddd5816..0ead4767 100644 --- a/codegen/Crm/Pipelines/FormDataProcessor.php +++ b/codegen/Crm/Pipelines/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/HeaderSelector.php b/codegen/Crm/Pipelines/HeaderSelector.php index 09785b6f..048e6b7c 100644 --- a/codegen/Crm/Pipelines/HeaderSelector.php +++ b/codegen/Crm/Pipelines/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/Model/CollectionResponsePipelineNoPaging.php b/codegen/Crm/Pipelines/Model/CollectionResponsePipelineNoPaging.php index baecec9a..2609ac88 100644 --- a/codegen/Crm/Pipelines/Model/CollectionResponsePipelineNoPaging.php +++ b/codegen/Crm/Pipelines/Model/CollectionResponsePipelineNoPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/Model/CollectionResponsePipelineStageNoPaging.php b/codegen/Crm/Pipelines/Model/CollectionResponsePipelineStageNoPaging.php index 3a576338..21206333 100644 --- a/codegen/Crm/Pipelines/Model/CollectionResponsePipelineStageNoPaging.php +++ b/codegen/Crm/Pipelines/Model/CollectionResponsePipelineStageNoPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/Model/CollectionResponsePublicAuditInfoNoPaging.php b/codegen/Crm/Pipelines/Model/CollectionResponsePublicAuditInfoNoPaging.php index 1b2b33c5..8c37f285 100644 --- a/codegen/Crm/Pipelines/Model/CollectionResponsePublicAuditInfoNoPaging.php +++ b/codegen/Crm/Pipelines/Model/CollectionResponsePublicAuditInfoNoPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/Model/Error.php b/codegen/Crm/Pipelines/Model/Error.php index 06344e2f..ad5157b4 100644 --- a/codegen/Crm/Pipelines/Model/Error.php +++ b/codegen/Crm/Pipelines/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Crm\Pipelines\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Crm\Pipelines\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Crm\Pipelines\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Crm\Pipelines\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Crm\Pipelines\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Crm\Pipelines\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Crm/Pipelines/Model/ErrorDetail.php b/codegen/Crm/Pipelines/Model/ErrorDetail.php index 646e4cdc..881c9660 100644 --- a/codegen/Crm/Pipelines/Model/ErrorDetail.php +++ b/codegen/Crm/Pipelines/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Crm/Pipelines/Model/ModelInterface.php b/codegen/Crm/Pipelines/Model/ModelInterface.php index a77e7b96..33fe146e 100644 --- a/codegen/Crm/Pipelines/Model/ModelInterface.php +++ b/codegen/Crm/Pipelines/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/Model/Pipeline.php b/codegen/Crm/Pipelines/Model/Pipeline.php index 37f0ba01..ef993db5 100644 --- a/codegen/Crm/Pipelines/Model/Pipeline.php +++ b/codegen/Crm/Pipelines/Model/Pipeline.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,13 +58,13 @@ class Pipeline implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'created_at' => '\DateTime', - 'archived_at' => '\DateTime', 'archived' => 'bool', + 'archived_at' => '\DateTime', + 'created_at' => '\DateTime', 'display_order' => 'int', - 'stages' => '\HubSpot\Client\Crm\Pipelines\Model\PipelineStage[]', - 'label' => 'string', 'id' => 'string', + 'label' => 'string', + 'stages' => '\HubSpot\Client\Crm\Pipelines\Model\PipelineStage[]', 'updated_at' => '\DateTime' ]; @@ -76,13 +76,13 @@ class Pipeline implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'created_at' => 'date-time', - 'archived_at' => 'date-time', 'archived' => null, + 'archived_at' => 'date-time', + 'created_at' => 'date-time', 'display_order' => 'int32', - 'stages' => null, - 'label' => null, 'id' => null, + 'label' => null, + 'stages' => null, 'updated_at' => 'date-time' ]; @@ -92,13 +92,13 @@ class Pipeline implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'created_at' => false, - 'archived_at' => false, 'archived' => false, + 'archived_at' => false, + 'created_at' => false, 'display_order' => false, - 'stages' => false, - 'label' => false, 'id' => false, + 'label' => false, + 'stages' => false, 'updated_at' => false ]; @@ -188,13 +188,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'created_at' => 'createdAt', - 'archived_at' => 'archivedAt', 'archived' => 'archived', + 'archived_at' => 'archivedAt', + 'created_at' => 'createdAt', 'display_order' => 'displayOrder', - 'stages' => 'stages', - 'label' => 'label', 'id' => 'id', + 'label' => 'label', + 'stages' => 'stages', 'updated_at' => 'updatedAt' ]; @@ -204,13 +204,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'created_at' => 'setCreatedAt', - 'archived_at' => 'setArchivedAt', 'archived' => 'setArchived', + 'archived_at' => 'setArchivedAt', + 'created_at' => 'setCreatedAt', 'display_order' => 'setDisplayOrder', - 'stages' => 'setStages', - 'label' => 'setLabel', 'id' => 'setId', + 'label' => 'setLabel', + 'stages' => 'setStages', 'updated_at' => 'setUpdatedAt' ]; @@ -220,13 +220,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'created_at' => 'getCreatedAt', - 'archived_at' => 'getArchivedAt', 'archived' => 'getArchived', + 'archived_at' => 'getArchivedAt', + 'created_at' => 'getCreatedAt', 'display_order' => 'getDisplayOrder', - 'stages' => 'getStages', - 'label' => 'getLabel', 'id' => 'getId', + 'label' => 'getLabel', + 'stages' => 'getStages', 'updated_at' => 'getUpdatedAt' ]; @@ -287,13 +287,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('archived_at', $data ?? [], null); $this->setIfExists('archived', $data ?? [], null); + $this->setIfExists('archived_at', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('display_order', $data ?? [], null); - $this->setIfExists('stages', $data ?? [], null); - $this->setIfExists('label', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('stages', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); } @@ -324,23 +324,23 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['created_at'] === null) { - $invalidProperties[] = "'created_at' can't be null"; - } if ($this->container['archived'] === null) { $invalidProperties[] = "'archived' can't be null"; } + if ($this->container['created_at'] === null) { + $invalidProperties[] = "'created_at' can't be null"; + } if ($this->container['display_order'] === null) { $invalidProperties[] = "'display_order' can't be null"; } - if ($this->container['stages'] === null) { - $invalidProperties[] = "'stages' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['stages'] === null) { + $invalidProperties[] = "'stages' can't be null"; } if ($this->container['updated_at'] === null) { $invalidProperties[] = "'updated_at' can't be null"; @@ -361,28 +361,28 @@ public function valid() /** - * Gets created_at + * Gets archived * - * @return \DateTime + * @return bool */ - public function getCreatedAt() + public function getArchived() { - return $this->container['created_at']; + return $this->container['archived']; } /** - * Sets created_at + * Sets archived * - * @param \DateTime $created_at The date the pipeline was created. The default pipelines will have createdAt = 0. + * @param bool $archived Whether the pipeline is archived. * * @return self */ - public function setCreatedAt($created_at) + public function setArchived($archived) { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + if (is_null($archived)) { + throw new \InvalidArgumentException('non-nullable archived cannot be null'); } - $this->container['created_at'] = $created_at; + $this->container['archived'] = $archived; return $this; } @@ -415,28 +415,28 @@ public function setArchivedAt($archived_at) } /** - * Gets archived + * Gets created_at * - * @return bool + * @return \DateTime */ - public function getArchived() + public function getCreatedAt() { - return $this->container['archived']; + return $this->container['created_at']; } /** - * Sets archived + * Sets created_at * - * @param bool $archived Whether the pipeline is archived. + * @param \DateTime $created_at The date the pipeline was created. The default pipelines will have createdAt = 0. * * @return self */ - public function setArchived($archived) + public function setCreatedAt($created_at) { - if (is_null($archived)) { - throw new \InvalidArgumentException('non-nullable archived cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } - $this->container['archived'] = $archived; + $this->container['created_at'] = $created_at; return $this; } @@ -469,28 +469,28 @@ public function setDisplayOrder($display_order) } /** - * Gets stages + * Gets id * - * @return \HubSpot\Client\Crm\Pipelines\Model\PipelineStage[] + * @return string */ - public function getStages() + public function getId() { - return $this->container['stages']; + return $this->container['id']; } /** - * Sets stages + * Sets id * - * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStage[] $stages The stages associated with the pipeline. They can be retrieved and updated via the pipeline stages endpoints. + * @param string $id A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline. * * @return self */ - public function setStages($stages) + public function setId($id) { - if (is_null($stages)) { - throw new \InvalidArgumentException('non-nullable stages cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['stages'] = $stages; + $this->container['id'] = $id; return $this; } @@ -523,28 +523,28 @@ public function setLabel($label) } /** - * Gets id + * Gets stages * - * @return string + * @return \HubSpot\Client\Crm\Pipelines\Model\PipelineStage[] */ - public function getId() + public function getStages() { - return $this->container['id']; + return $this->container['stages']; } /** - * Sets id + * Sets stages * - * @param string $id A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline. + * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStage[] $stages The stages associated with the pipeline. They can be retrieved and updated via the pipeline stages endpoints. * * @return self */ - public function setId($id) + public function setStages($stages) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($stages)) { + throw new \InvalidArgumentException('non-nullable stages cannot be null'); } - $this->container['id'] = $id; + $this->container['stages'] = $stages; return $this; } diff --git a/codegen/Crm/Pipelines/Model/PipelineInput.php b/codegen/Crm/Pipelines/Model/PipelineInput.php index 8b4ada45..53682da5 100644 --- a/codegen/Crm/Pipelines/Model/PipelineInput.php +++ b/codegen/Crm/Pipelines/Model/PipelineInput.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,8 +59,8 @@ class PipelineInput implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'display_order' => 'int', - 'stages' => '\HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput[]', - 'label' => 'string' + 'label' => 'string', + 'stages' => '\HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput[]' ]; /** @@ -72,8 +72,8 @@ class PipelineInput implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'display_order' => 'int32', - 'stages' => null, - 'label' => null + 'label' => null, + 'stages' => null ]; /** @@ -83,8 +83,8 @@ class PipelineInput implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'display_order' => false, - 'stages' => false, - 'label' => false + 'label' => false, + 'stages' => false ]; /** @@ -174,8 +174,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'display_order' => 'displayOrder', - 'stages' => 'stages', - 'label' => 'label' + 'label' => 'label', + 'stages' => 'stages' ]; /** @@ -185,8 +185,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'display_order' => 'setDisplayOrder', - 'stages' => 'setStages', - 'label' => 'setLabel' + 'label' => 'setLabel', + 'stages' => 'setStages' ]; /** @@ -196,8 +196,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'display_order' => 'getDisplayOrder', - 'stages' => 'getStages', - 'label' => 'getLabel' + 'label' => 'getLabel', + 'stages' => 'getStages' ]; /** @@ -258,8 +258,8 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('display_order', $data ?? [], null); - $this->setIfExists('stages', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('stages', $data ?? [], null); } /** @@ -292,12 +292,12 @@ public function listInvalidProperties() if ($this->container['display_order'] === null) { $invalidProperties[] = "'display_order' can't be null"; } - if ($this->container['stages'] === null) { - $invalidProperties[] = "'stages' can't be null"; - } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } + if ($this->container['stages'] === null) { + $invalidProperties[] = "'stages' can't be null"; + } return $invalidProperties; } @@ -341,55 +341,55 @@ public function setDisplayOrder($display_order) } /** - * Gets stages + * Gets label * - * @return \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput[] + * @return string */ - public function getStages() + public function getLabel() { - return $this->container['stages']; + return $this->container['label']; } /** - * Sets stages + * Sets label * - * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput[] $stages Pipeline stage inputs used to create the new or replacement pipeline. + * @param string $label A unique label used to organize pipelines in HubSpot's UI * * @return self */ - public function setStages($stages) + public function setLabel($label) { - if (is_null($stages)) { - throw new \InvalidArgumentException('non-nullable stages cannot be null'); + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); } - $this->container['stages'] = $stages; + $this->container['label'] = $label; return $this; } /** - * Gets label + * Gets stages * - * @return string + * @return \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput[] */ - public function getLabel() + public function getStages() { - return $this->container['label']; + return $this->container['stages']; } /** - * Sets label + * Sets stages * - * @param string $label A unique label used to organize pipelines in HubSpot's UI + * @param \HubSpot\Client\Crm\Pipelines\Model\PipelineStageInput[] $stages Pipeline stage inputs used to create the new or replacement pipeline. * * @return self */ - public function setLabel($label) + public function setStages($stages) { - if (is_null($label)) { - throw new \InvalidArgumentException('non-nullable label cannot be null'); + if (is_null($stages)) { + throw new \InvalidArgumentException('non-nullable stages cannot be null'); } - $this->container['label'] = $label; + $this->container['stages'] = $stages; return $this; } diff --git a/codegen/Crm/Pipelines/Model/PipelinePatchInput.php b/codegen/Crm/Pipelines/Model/PipelinePatchInput.php index 7c8cd68f..28da87c2 100644 --- a/codegen/Crm/Pipelines/Model/PipelinePatchInput.php +++ b/codegen/Crm/Pipelines/Model/PipelinePatchInput.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Crm/Pipelines/Model/PipelineStage.php b/codegen/Crm/Pipelines/Model/PipelineStage.php index c4b19248..90f6760e 100644 --- a/codegen/Crm/Pipelines/Model/PipelineStage.php +++ b/codegen/Crm/Pipelines/Model/PipelineStage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,15 +58,15 @@ class PipelineStage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'created_at' => '\DateTime', - 'archived_at' => '\DateTime', 'archived' => 'bool', - 'metadata' => 'array', + 'archived_at' => '\DateTime', + 'created_at' => '\DateTime', 'display_order' => 'int', - 'write_permissions' => 'string', - 'label' => 'string', 'id' => 'string', - 'updated_at' => '\DateTime' + 'label' => 'string', + 'metadata' => 'array', + 'updated_at' => '\DateTime', + 'write_permissions' => 'string' ]; /** @@ -77,15 +77,15 @@ class PipelineStage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'created_at' => 'date-time', - 'archived_at' => 'date-time', 'archived' => null, - 'metadata' => null, + 'archived_at' => 'date-time', + 'created_at' => 'date-time', 'display_order' => 'int32', - 'write_permissions' => null, - 'label' => null, 'id' => null, - 'updated_at' => 'date-time' + 'label' => null, + 'metadata' => null, + 'updated_at' => 'date-time', + 'write_permissions' => null ]; /** @@ -94,15 +94,15 @@ class PipelineStage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'created_at' => false, - 'archived_at' => false, 'archived' => false, - 'metadata' => false, + 'archived_at' => false, + 'created_at' => false, 'display_order' => false, - 'write_permissions' => false, - 'label' => false, 'id' => false, - 'updated_at' => false + 'label' => false, + 'metadata' => false, + 'updated_at' => false, + 'write_permissions' => false ]; /** @@ -191,15 +191,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'created_at' => 'createdAt', - 'archived_at' => 'archivedAt', 'archived' => 'archived', - 'metadata' => 'metadata', + 'archived_at' => 'archivedAt', + 'created_at' => 'createdAt', 'display_order' => 'displayOrder', - 'write_permissions' => 'writePermissions', - 'label' => 'label', 'id' => 'id', - 'updated_at' => 'updatedAt' + 'label' => 'label', + 'metadata' => 'metadata', + 'updated_at' => 'updatedAt', + 'write_permissions' => 'writePermissions' ]; /** @@ -208,15 +208,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'created_at' => 'setCreatedAt', - 'archived_at' => 'setArchivedAt', 'archived' => 'setArchived', - 'metadata' => 'setMetadata', + 'archived_at' => 'setArchivedAt', + 'created_at' => 'setCreatedAt', 'display_order' => 'setDisplayOrder', - 'write_permissions' => 'setWritePermissions', - 'label' => 'setLabel', 'id' => 'setId', - 'updated_at' => 'setUpdatedAt' + 'label' => 'setLabel', + 'metadata' => 'setMetadata', + 'updated_at' => 'setUpdatedAt', + 'write_permissions' => 'setWritePermissions' ]; /** @@ -225,15 +225,15 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'created_at' => 'getCreatedAt', - 'archived_at' => 'getArchivedAt', 'archived' => 'getArchived', - 'metadata' => 'getMetadata', + 'archived_at' => 'getArchivedAt', + 'created_at' => 'getCreatedAt', 'display_order' => 'getDisplayOrder', - 'write_permissions' => 'getWritePermissions', - 'label' => 'getLabel', 'id' => 'getId', - 'updated_at' => 'getUpdatedAt' + 'label' => 'getLabel', + 'metadata' => 'getMetadata', + 'updated_at' => 'getUpdatedAt', + 'write_permissions' => 'getWritePermissions' ]; /** @@ -278,8 +278,8 @@ public function getModelName() } public const WRITE_PERMISSIONS_CRM_PERMISSIONS_ENFORCEMENT = 'CRM_PERMISSIONS_ENFORCEMENT'; - public const WRITE_PERMISSIONS_READ_ONLY = 'READ_ONLY'; public const WRITE_PERMISSIONS_INTERNAL_ONLY = 'INTERNAL_ONLY'; + public const WRITE_PERMISSIONS_READ_ONLY = 'READ_ONLY'; /** * Gets allowable values of the enum @@ -290,8 +290,8 @@ public function getWritePermissionsAllowableValues() { return [ self::WRITE_PERMISSIONS_CRM_PERMISSIONS_ENFORCEMENT, - self::WRITE_PERMISSIONS_READ_ONLY, self::WRITE_PERMISSIONS_INTERNAL_ONLY, + self::WRITE_PERMISSIONS_READ_ONLY, ]; } @@ -310,15 +310,15 @@ public function getWritePermissionsAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('archived_at', $data ?? [], null); $this->setIfExists('archived', $data ?? [], null); - $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('archived_at', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('display_order', $data ?? [], null); - $this->setIfExists('write_permissions', $data ?? [], null); - $this->setIfExists('label', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); + $this->setIfExists('write_permissions', $data ?? [], null); } /** @@ -348,17 +348,26 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['archived'] === null) { + $invalidProperties[] = "'archived' can't be null"; + } if ($this->container['created_at'] === null) { $invalidProperties[] = "'created_at' can't be null"; } - if ($this->container['archived'] === null) { - $invalidProperties[] = "'archived' can't be null"; + if ($this->container['display_order'] === null) { + $invalidProperties[] = "'display_order' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['label'] === null) { + $invalidProperties[] = "'label' can't be null"; } if ($this->container['metadata'] === null) { $invalidProperties[] = "'metadata' can't be null"; } - if ($this->container['display_order'] === null) { - $invalidProperties[] = "'display_order' can't be null"; + if ($this->container['updated_at'] === null) { + $invalidProperties[] = "'updated_at' can't be null"; } $allowedValues = $this->getWritePermissionsAllowableValues(); if (!is_null($this->container['write_permissions']) && !in_array($this->container['write_permissions'], $allowedValues, true)) { @@ -369,15 +378,6 @@ public function listInvalidProperties() ); } - if ($this->container['label'] === null) { - $invalidProperties[] = "'label' can't be null"; - } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['updated_at'] === null) { - $invalidProperties[] = "'updated_at' can't be null"; - } return $invalidProperties; } @@ -394,28 +394,28 @@ public function valid() /** - * Gets created_at + * Gets archived * - * @return \DateTime + * @return bool */ - public function getCreatedAt() + public function getArchived() { - return $this->container['created_at']; + return $this->container['archived']; } /** - * Sets created_at + * Sets archived * - * @param \DateTime $created_at The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0. + * @param bool $archived Whether the pipeline is archived. * * @return self */ - public function setCreatedAt($created_at) + public function setArchived($archived) { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + if (is_null($archived)) { + throw new \InvalidArgumentException('non-nullable archived cannot be null'); } - $this->container['created_at'] = $created_at; + $this->container['archived'] = $archived; return $this; } @@ -448,55 +448,28 @@ public function setArchivedAt($archived_at) } /** - * Gets archived - * - * @return bool - */ - public function getArchived() - { - return $this->container['archived']; - } - - /** - * Sets archived - * - * @param bool $archived Whether the pipeline is archived. - * - * @return self - */ - public function setArchived($archived) - { - if (is_null($archived)) { - throw new \InvalidArgumentException('non-nullable archived cannot be null'); - } - $this->container['archived'] = $archived; - - return $this; - } - - /** - * Gets metadata + * Gets created_at * - * @return array + * @return \DateTime */ - public function getMetadata() + public function getCreatedAt() { - return $this->container['metadata']; + return $this->container['created_at']; } /** - * Sets metadata + * Sets created_at * - * @param array $metadata A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. + * @param \DateTime $created_at The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0. * * @return self */ - public function setMetadata($metadata) + public function setCreatedAt($created_at) { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } - $this->container['metadata'] = $metadata; + $this->container['created_at'] = $created_at; return $this; } @@ -529,38 +502,28 @@ public function setDisplayOrder($display_order) } /** - * Gets write_permissions + * Gets id * - * @return string|null + * @return string */ - public function getWritePermissions() + public function getId() { - return $this->container['write_permissions']; + return $this->container['id']; } /** - * Sets write_permissions + * Sets id * - * @param string|null $write_permissions Defines the level of write access for the pipeline stage, with possible values being CRM_PERMISSIONS_ENFORCEMENT, READ_ONLY, or INTERNAL_ONLY. + * @param string $id A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage. * * @return self */ - public function setWritePermissions($write_permissions) + public function setId($id) { - if (is_null($write_permissions)) { - throw new \InvalidArgumentException('non-nullable write_permissions cannot be null'); - } - $allowedValues = $this->getWritePermissionsAllowableValues(); - if (!in_array($write_permissions, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'write_permissions', must be one of '%s'", - $write_permissions, - implode("', '", $allowedValues) - ) - ); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['write_permissions'] = $write_permissions; + $this->container['id'] = $id; return $this; } @@ -593,28 +556,28 @@ public function setLabel($label) } /** - * Gets id + * Gets metadata * - * @return string + * @return array */ - public function getId() + public function getMetadata() { - return $this->container['id']; + return $this->container['metadata']; } /** - * Sets id + * Sets metadata * - * @param string $id A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage. + * @param array $metadata A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. * * @return self */ - public function setId($id) + public function setMetadata($metadata) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); } - $this->container['id'] = $id; + $this->container['metadata'] = $metadata; return $this; } @@ -645,6 +608,43 @@ public function setUpdatedAt($updated_at) return $this; } + + /** + * Gets write_permissions + * + * @return string|null + */ + public function getWritePermissions() + { + return $this->container['write_permissions']; + } + + /** + * Sets write_permissions + * + * @param string|null $write_permissions Defines the level of write access for the pipeline stage, with possible values being CRM_PERMISSIONS_ENFORCEMENT, READ_ONLY, or INTERNAL_ONLY. + * + * @return self + */ + public function setWritePermissions($write_permissions) + { + if (is_null($write_permissions)) { + throw new \InvalidArgumentException('non-nullable write_permissions cannot be null'); + } + $allowedValues = $this->getWritePermissionsAllowableValues(); + if (!in_array($write_permissions, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'write_permissions', must be one of '%s'", + $write_permissions, + implode("', '", $allowedValues) + ) + ); + } + $this->container['write_permissions'] = $write_permissions; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Crm/Pipelines/Model/PipelineStageInput.php b/codegen/Crm/Pipelines/Model/PipelineStageInput.php index fd35b50c..02100d12 100644 --- a/codegen/Crm/Pipelines/Model/PipelineStageInput.php +++ b/codegen/Crm/Pipelines/Model/PipelineStageInput.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,9 +58,9 @@ class PipelineStageInput implements ModelInterface, ArrayAccess, \JsonSerializab * @var string[] */ protected static $openAPITypes = [ - 'metadata' => 'array', 'display_order' => 'int', - 'label' => 'string' + 'label' => 'string', + 'metadata' => 'array' ]; /** @@ -71,9 +71,9 @@ class PipelineStageInput implements ModelInterface, ArrayAccess, \JsonSerializab * @psalm-var array */ protected static $openAPIFormats = [ - 'metadata' => null, 'display_order' => 'int32', - 'label' => null + 'label' => null, + 'metadata' => null ]; /** @@ -82,9 +82,9 @@ class PipelineStageInput implements ModelInterface, ArrayAccess, \JsonSerializab * @var boolean[] */ protected static array $openAPINullables = [ - 'metadata' => false, 'display_order' => false, - 'label' => false + 'label' => false, + 'metadata' => false ]; /** @@ -173,9 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'metadata' => 'metadata', 'display_order' => 'displayOrder', - 'label' => 'label' + 'label' => 'label', + 'metadata' => 'metadata' ]; /** @@ -184,9 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'metadata' => 'setMetadata', 'display_order' => 'setDisplayOrder', - 'label' => 'setLabel' + 'label' => 'setLabel', + 'metadata' => 'setMetadata' ]; /** @@ -195,9 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'metadata' => 'getMetadata', 'display_order' => 'getDisplayOrder', - 'label' => 'getLabel' + 'label' => 'getLabel', + 'metadata' => 'getMetadata' ]; /** @@ -257,9 +257,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('metadata', $data ?? [], null); $this->setIfExists('display_order', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); } /** @@ -289,15 +289,15 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['metadata'] === null) { - $invalidProperties[] = "'metadata' can't be null"; - } if ($this->container['display_order'] === null) { $invalidProperties[] = "'display_order' can't be null"; } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } + if ($this->container['metadata'] === null) { + $invalidProperties[] = "'metadata' can't be null"; + } return $invalidProperties; } @@ -313,33 +313,6 @@ public function valid() } - /** - * Gets metadata - * - * @return array - */ - public function getMetadata() - { - return $this->container['metadata']; - } - - /** - * Sets metadata - * - * @param array $metadata A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. - * - * @return self - */ - public function setMetadata($metadata) - { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); - } - $this->container['metadata'] = $metadata; - - return $this; - } - /** * Gets display_order * @@ -393,6 +366,33 @@ public function setLabel($label) return $this; } + + /** + * Gets metadata + * + * @return array + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param array $metadata A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Crm/Pipelines/Model/PipelineStagePatchInput.php b/codegen/Crm/Pipelines/Model/PipelineStagePatchInput.php index 8f9901aa..fa405941 100644 --- a/codegen/Crm/Pipelines/Model/PipelineStagePatchInput.php +++ b/codegen/Crm/Pipelines/Model/PipelineStagePatchInput.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,9 +59,9 @@ class PipelineStagePatchInput implements ModelInterface, ArrayAccess, \JsonSeria */ protected static $openAPITypes = [ 'archived' => 'bool', - 'metadata' => 'array', 'display_order' => 'int', - 'label' => 'string' + 'label' => 'string', + 'metadata' => 'array' ]; /** @@ -73,9 +73,9 @@ class PipelineStagePatchInput implements ModelInterface, ArrayAccess, \JsonSeria */ protected static $openAPIFormats = [ 'archived' => null, - 'metadata' => null, 'display_order' => 'int32', - 'label' => null + 'label' => null, + 'metadata' => null ]; /** @@ -85,9 +85,9 @@ class PipelineStagePatchInput implements ModelInterface, ArrayAccess, \JsonSeria */ protected static array $openAPINullables = [ 'archived' => false, - 'metadata' => false, 'display_order' => false, - 'label' => false + 'label' => false, + 'metadata' => false ]; /** @@ -177,9 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'archived' => 'archived', - 'metadata' => 'metadata', 'display_order' => 'displayOrder', - 'label' => 'label' + 'label' => 'label', + 'metadata' => 'metadata' ]; /** @@ -189,9 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'archived' => 'setArchived', - 'metadata' => 'setMetadata', 'display_order' => 'setDisplayOrder', - 'label' => 'setLabel' + 'label' => 'setLabel', + 'metadata' => 'setMetadata' ]; /** @@ -201,9 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'archived' => 'getArchived', - 'metadata' => 'getMetadata', 'display_order' => 'getDisplayOrder', - 'label' => 'getLabel' + 'label' => 'getLabel', + 'metadata' => 'getMetadata' ]; /** @@ -264,9 +264,9 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('archived', $data ?? [], null); - $this->setIfExists('metadata', $data ?? [], null); $this->setIfExists('display_order', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); } /** @@ -341,33 +341,6 @@ public function setArchived($archived) return $this; } - /** - * Gets metadata - * - * @return array - */ - public function getMetadata() - { - return $this->container['metadata']; - } - - /** - * Sets metadata - * - * @param array $metadata A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. - * - * @return self - */ - public function setMetadata($metadata) - { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); - } - $this->container['metadata'] = $metadata; - - return $this; - } - /** * Gets display_order * @@ -421,6 +394,33 @@ public function setLabel($label) return $this; } + + /** + * Gets metadata + * + * @return array + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param array $metadata A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Crm/Pipelines/Model/PublicAuditInfo.php b/codegen/Crm/Pipelines/Model/PublicAuditInfo.php index 6e5a3d36..421cee81 100644 --- a/codegen/Crm/Pipelines/Model/PublicAuditInfo.php +++ b/codegen/Crm/Pipelines/Model/PublicAuditInfo.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,12 +57,12 @@ class PublicAuditInfo implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'identifier' => 'string', - 'raw_object' => 'object', - 'from_user_id' => 'int', - 'portal_id' => 'int', 'action' => 'string', + 'from_user_id' => 'int', + 'identifier' => 'string', 'message' => 'string', + 'portal_id' => 'int', + 'raw_object' => 'object', 'timestamp' => '\DateTime' ]; @@ -74,12 +74,12 @@ class PublicAuditInfo implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'identifier' => null, - 'raw_object' => null, - 'from_user_id' => 'int32', - 'portal_id' => 'int32', 'action' => null, + 'from_user_id' => 'int32', + 'identifier' => null, 'message' => null, + 'portal_id' => 'int32', + 'raw_object' => null, 'timestamp' => 'date-time' ]; @@ -89,12 +89,12 @@ class PublicAuditInfo implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'identifier' => false, - 'raw_object' => false, - 'from_user_id' => false, - 'portal_id' => false, 'action' => false, + 'from_user_id' => false, + 'identifier' => false, 'message' => false, + 'portal_id' => false, + 'raw_object' => false, 'timestamp' => false ]; @@ -184,12 +184,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'identifier' => 'identifier', - 'raw_object' => 'rawObject', - 'from_user_id' => 'fromUserId', - 'portal_id' => 'portalId', 'action' => 'action', + 'from_user_id' => 'fromUserId', + 'identifier' => 'identifier', 'message' => 'message', + 'portal_id' => 'portalId', + 'raw_object' => 'rawObject', 'timestamp' => 'timestamp' ]; @@ -199,12 +199,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'identifier' => 'setIdentifier', - 'raw_object' => 'setRawObject', - 'from_user_id' => 'setFromUserId', - 'portal_id' => 'setPortalId', 'action' => 'setAction', + 'from_user_id' => 'setFromUserId', + 'identifier' => 'setIdentifier', 'message' => 'setMessage', + 'portal_id' => 'setPortalId', + 'raw_object' => 'setRawObject', 'timestamp' => 'setTimestamp' ]; @@ -214,12 +214,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'identifier' => 'getIdentifier', - 'raw_object' => 'getRawObject', - 'from_user_id' => 'getFromUserId', - 'portal_id' => 'getPortalId', 'action' => 'getAction', + 'from_user_id' => 'getFromUserId', + 'identifier' => 'getIdentifier', 'message' => 'getMessage', + 'portal_id' => 'getPortalId', + 'raw_object' => 'getRawObject', 'timestamp' => 'getTimestamp' ]; @@ -280,12 +280,12 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('identifier', $data ?? [], null); - $this->setIfExists('raw_object', $data ?? [], null); - $this->setIfExists('from_user_id', $data ?? [], null); - $this->setIfExists('portal_id', $data ?? [], null); $this->setIfExists('action', $data ?? [], null); + $this->setIfExists('from_user_id', $data ?? [], null); + $this->setIfExists('identifier', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('portal_id', $data ?? [], null); + $this->setIfExists('raw_object', $data ?? [], null); $this->setIfExists('timestamp', $data ?? [], null); } @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['action'] === null) { + $invalidProperties[] = "'action' can't be null"; + } if ($this->container['identifier'] === null) { $invalidProperties[] = "'identifier' can't be null"; } if ($this->container['portal_id'] === null) { $invalidProperties[] = "'portal_id' can't be null"; } - if ($this->container['action'] === null) { - $invalidProperties[] = "'action' can't be null"; - } return $invalidProperties; } @@ -341,163 +341,163 @@ public function valid() /** - * Gets identifier + * Gets action * * @return string */ - public function getIdentifier() + public function getAction() { - return $this->container['identifier']; + return $this->container['action']; } /** - * Sets identifier + * Sets action * - * @param string $identifier A unique string identifier for the audit event. + * @param string $action The action performed that triggered the audit event. * * @return self */ - public function setIdentifier($identifier) + public function setAction($action) { - if (is_null($identifier)) { - throw new \InvalidArgumentException('non-nullable identifier cannot be null'); + if (is_null($action)) { + throw new \InvalidArgumentException('non-nullable action cannot be null'); } - $this->container['identifier'] = $identifier; + $this->container['action'] = $action; return $this; } /** - * Gets raw_object + * Gets from_user_id * - * @return object|null + * @return int|null */ - public function getRawObject() + public function getFromUserId() { - return $this->container['raw_object']; + return $this->container['from_user_id']; } /** - * Sets raw_object + * Sets from_user_id * - * @param object|null $raw_object An object containing the raw data associated with the audit event. + * @param int|null $from_user_id The ID of the user who initiated the audit event. * * @return self */ - public function setRawObject($raw_object) + public function setFromUserId($from_user_id) { - if (is_null($raw_object)) { - throw new \InvalidArgumentException('non-nullable raw_object cannot be null'); + if (is_null($from_user_id)) { + throw new \InvalidArgumentException('non-nullable from_user_id cannot be null'); } - $this->container['raw_object'] = $raw_object; + $this->container['from_user_id'] = $from_user_id; return $this; } /** - * Gets from_user_id + * Gets identifier * - * @return int|null + * @return string */ - public function getFromUserId() + public function getIdentifier() { - return $this->container['from_user_id']; + return $this->container['identifier']; } /** - * Sets from_user_id + * Sets identifier * - * @param int|null $from_user_id The ID of the user who initiated the audit event. + * @param string $identifier A unique string identifier for the audit event. * * @return self */ - public function setFromUserId($from_user_id) + public function setIdentifier($identifier) { - if (is_null($from_user_id)) { - throw new \InvalidArgumentException('non-nullable from_user_id cannot be null'); + if (is_null($identifier)) { + throw new \InvalidArgumentException('non-nullable identifier cannot be null'); } - $this->container['from_user_id'] = $from_user_id; + $this->container['identifier'] = $identifier; return $this; } /** - * Gets portal_id + * Gets message * - * @return int + * @return string|null */ - public function getPortalId() + public function getMessage() { - return $this->container['portal_id']; + return $this->container['message']; } /** - * Sets portal_id + * Sets message * - * @param int $portal_id The unique identifier for the HubSpot portal where the audit event occurred. + * @param string|null $message A descriptive message related to the audit event. * * @return self */ - public function setPortalId($portal_id) + public function setMessage($message) { - if (is_null($portal_id)) { - throw new \InvalidArgumentException('non-nullable portal_id cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['portal_id'] = $portal_id; + $this->container['message'] = $message; return $this; } /** - * Gets action + * Gets portal_id * - * @return string + * @return int */ - public function getAction() + public function getPortalId() { - return $this->container['action']; + return $this->container['portal_id']; } /** - * Sets action + * Sets portal_id * - * @param string $action The action performed that triggered the audit event. + * @param int $portal_id The unique identifier for the HubSpot portal where the audit event occurred. * * @return self */ - public function setAction($action) + public function setPortalId($portal_id) { - if (is_null($action)) { - throw new \InvalidArgumentException('non-nullable action cannot be null'); + if (is_null($portal_id)) { + throw new \InvalidArgumentException('non-nullable portal_id cannot be null'); } - $this->container['action'] = $action; + $this->container['portal_id'] = $portal_id; return $this; } /** - * Gets message + * Gets raw_object * - * @return string|null + * @return object|null */ - public function getMessage() + public function getRawObject() { - return $this->container['message']; + return $this->container['raw_object']; } /** - * Sets message + * Sets raw_object * - * @param string|null $message A descriptive message related to the audit event. + * @param object|null $raw_object An object containing the raw data associated with the audit event. * * @return self */ - public function setMessage($message) + public function setRawObject($raw_object) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($raw_object)) { + throw new \InvalidArgumentException('non-nullable raw_object cannot be null'); } - $this->container['message'] = $message; + $this->container['raw_object'] = $raw_object; return $this; } diff --git a/codegen/Crm/Pipelines/ObjectSerializer.php b/codegen/Crm/Pipelines/ObjectSerializer.php index 74056fc1..7a73bfec 100644 --- a/codegen/Crm/Pipelines/ObjectSerializer.php +++ b/codegen/Crm/Pipelines/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /**