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"

* * @return null|string diff --git a/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorBuilder.php b/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorBuilder.php index eba33e6ee63..eb452df4c2d 100644 --- a/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorBuilder.php +++ b/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorBuilder.php @@ -27,7 +27,8 @@ final class ObjectNotFoundErrorBuilder implements Builder private $message; /** - *

"A $resourceType with identifier $id was unexpectedly not found."

+ *

"A $resourceType with identifier $id was unexpectedly not found." or

+ *

"No index found for project"

* * @return null|string diff --git a/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorModel.php b/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorModel.php index e33cf7a20b0..96cfa209f16 100644 --- a/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorModel.php +++ b/lib/commercetools-api/src/Models/Error/ObjectNotFoundErrorModel.php @@ -63,7 +63,8 @@ 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"

* * * @return null|string diff --git a/references.txt b/references.txt index ee6526abc02..824ad884690 100644 --- a/references.txt +++ b/references.txt @@ -337,3 +337,4 @@ df53588d26d7953dfdf44166866ca03045f0a70b 175b7fc3843bb9be3aa5932b126d7fb3f1b0596d 6a47ba84abccefcacaf90152614687e121660c5c 9066fb1012d20a92037e102e18a6295bdbcb82e3 +4025ec42d633ae6b77320e24f6244d9dce608e6e