diff --git a/lib/commercetools-import/docs/RequestBuilder.md b/lib/commercetools-import/docs/RequestBuilder.md index 59342f1016b..21be69abde3 100644 --- a/lib/commercetools-import/docs/RequestBuilder.md +++ b/lib/commercetools-import/docs/RequestBuilder.md @@ -278,7 +278,9 @@ $request = $builder ``` ## `withProjectKeyValue("projectKey")->productVariantPatches()->importContainers()->withImportContainerKeyValue("importContainerKey")->post(null)` -Creates a new import request for product variant patches +Creates a new import request for Product Variant Patches. +Returns an [InvalidField](/error#invalidfielderror) error if the [ProductVariantPatchRequest](ctp:import:type:ProductVariantPatchRequest) contains patches with and without the `product` field set. + ### Example ```php diff --git a/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatch.php b/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatch.php index 52c76b25450..d0767744cf2 100644 --- a/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatch.php +++ b/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatch.php @@ -52,7 +52,9 @@ public function getAttributes(); public function getStaged(); /** - *

Reference to the Product which contains the ProductVariant. Setting a value will batch process the import operations to minimize concurrency errors. If set, this field is required for every ProductVariantPatch in the ProductVariantPatchRequest.

+ *

Reference to the Product that contains the ProductVariant.

+ *

We recommend to set this value to minimize concurrency errors. + * If set, this field is required for every ProductVariantPatch in the ProductVariantPatchRequest.

* * @return null|ProductKeyReference diff --git a/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchBuilder.php b/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchBuilder.php index 27929bcdd19..a947151efe2 100644 --- a/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchBuilder.php +++ b/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchBuilder.php @@ -89,7 +89,9 @@ public function getStaged() } /** - *

Reference to the Product which contains the ProductVariant. Setting a value will batch process the import operations to minimize concurrency errors. If set, this field is required for every ProductVariantPatch in the ProductVariantPatchRequest.

+ *

Reference to the Product that contains the ProductVariant.

+ *

We recommend to set this value to minimize concurrency errors. + * If set, this field is required for every ProductVariantPatch in the ProductVariantPatchRequest.

* * @return null|ProductKeyReference diff --git a/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchModel.php b/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchModel.php index 0e08bb6c9ac..20a92d90da3 100644 --- a/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchModel.php +++ b/lib/commercetools-import/src/Models/Productvariants/ProductVariantPatchModel.php @@ -133,7 +133,9 @@ public function getStaged() } /** - *

Reference to the Product which contains the ProductVariant. Setting a value will batch process the import operations to minimize concurrency errors. If set, this field is required for every ProductVariantPatch in the ProductVariantPatchRequest.

+ *

Reference to the Product that contains the ProductVariant.

+ *

We recommend to set this value to minimize concurrency errors. + * If set, this field is required for every ProductVariantPatch in the ProductVariantPatchRequest.

* * * @return null|ProductKeyReference diff --git a/references.txt b/references.txt index 25f11908b8b..a0848b48715 100644 --- a/references.txt +++ b/references.txt @@ -327,3 +327,4 @@ f254d17f05343dcc4299fc53ff9b335b5ef63d69 6892be230f1ad73f1150dd544c9fa7fee0e6b123 971c1b4ce06c29fcb8c2402dc2ca523b2907352c b747e1fa4f246b748a89bccbfd8a43f5b6f51175 +505b3af56b4452b22dfb595f93e010b3e2fccc53