From 066e46137e2a3af81da40e50dc4ad805d1de4f79 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:41:34 +0000 Subject: [PATCH] build(codegen): updating SDK --- lib/commercetools-api/docs/RequestBuilder.md | 9 ++++++--- .../src/Models/Error/ObjectNotFoundError.php | 3 ++- .../src/Models/Error/ObjectNotFoundErrorBuilder.php | 3 ++- .../src/Models/Error/ObjectNotFoundErrorModel.php | 3 ++- references.txt | 1 + 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/commercetools-api/docs/RequestBuilder.md b/lib/commercetools-api/docs/RequestBuilder.md index 4367e1577f9..0d417b0b356 100644 --- a/lib/commercetools-api/docs/RequestBuilder.md +++ b/lib/commercetools-api/docs/RequestBuilder.md @@ -2939,7 +2939,8 @@ $request = $builder ``` ## `withProjectKey("projectKey")->customers()->search()->post(null)` -A [SearchNotReady](ctp:api:type:SearchNotReadyError) error is returned if the indexing is in progress or the feature is deactivated. If deactivated, you can [reactivate](/../api/projects/customer-search#reactivate) it. +If the initial indexing is in progress or the feature is inactive, a [SearchNotReady](ctp:api:type:SearchNotReadyError) error is returned. +If inactive, you can [reactivate](/../api/projects/customer-search#reactivate) it. ### Example @@ -2956,7 +2957,7 @@ $request = $builder ## `withProjectKey("projectKey")->customers()->search()->head()` Checks whether a search index of Customers exists for a Project. -If an index exists, a `200 OK` is returned; otherwise, a `409 Conflict`. +Returns a `200 OK` if an index exists; otherwise, returns a `409 Conflict`. ### Example @@ -9344,7 +9345,9 @@ $request = $builder ``` ## `withProjectKey("projectKey")->products()->search()->post(null)` -null +If the indexing is in progress or the feature is inactive, an [ObjectNotFound](ctp:api:type:ObjectNotFoundError) error is returned. +If inactive, you can [reactivate](/../api/projects/product-search#activation-of-the-feature) it. + ### Example ```php diff --git a/lib/commercetools-api/src/Models/Error/ObjectNotFoundError.php b/lib/commercetools-api/src/Models/Error/ObjectNotFoundError.php index b9de68fe6fc..72555f752ee 100644 --- a/lib/commercetools-api/src/Models/Error/ObjectNotFoundError.php +++ b/lib/commercetools-api/src/Models/Error/ObjectNotFoundError.php @@ -20,7 +20,8 @@ interface ObjectNotFoundError extends ErrorObject public function getCode(); /** - *
"A $resourceType with identifier $id was unexpectedly not found."
"A $resourceType with identifier $id was unexpectedly not found."
or
"No index found for project"
"A $resourceType with identifier $id was unexpectedly not found."
"A $resourceType with identifier $id was unexpectedly not found."
or
"No index found for project"
"A $resourceType with identifier $id was unexpectedly not found."
"A $resourceType with identifier $id was unexpectedly not found."
or
"No index found for project"