From 4bad11e8e907a6186f50f3c2ac7bc2e637420e64 Mon Sep 17 00:00:00 2001 From: oleksandrkravchuk Date: Sat, 8 Aug 2020 18:28:32 +0300 Subject: [PATCH 1/3] magento/devdocs#7701: In-Store Pickup GraphQl intersection products assignments filter. Update devdocs page. --- .../v2.4/graphql/queries/pickup-locations.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/guides/v2.4/graphql/queries/pickup-locations.md b/src/guides/v2.4/graphql/queries/pickup-locations.md index eaeece9096e..0c5be1bccc8 100644 --- a/src/guides/v2.4/graphql/queries/pickup-locations.md +++ b/src/guides/v2.4/graphql/queries/pickup-locations.md @@ -43,7 +43,12 @@ Because `pageSize` is set to 1 and distance by `distance` is applied, result wil } pageSize: 1 currentPage: 1 - sort: {distance: ASC} + sort: {distance: ASC}, + productsInfo: [ + { + sku: "SKU-1" + } + ] ) { items { pickup_location_code @@ -117,6 +122,7 @@ Attribute | Data type | Description `sort` | [PickupLocationSortInput](#PickupLocationSortInput) | Specifies which attribute to sort on, and whether to return the results in ascending or descending order. `pageSize` | Int | The maximum number of pickup locations to return at once. The attribute is optional. The default value is 20. `currentPage` | Int | Specifies which page of results to return. The default value is 1. +`productsInfo` |[[ProductInfoInput]](#ProductInfoInput)| Information about products which should be delivered. The information is used to filter Pickup Locations which do not have relations with mentioned products. ### AreaInput object {#AreaInput} @@ -165,6 +171,14 @@ Attribute | Data type | Description `region_id` | SortEnum | ID of the region `street` | SortEnum | Street of the pickup location +### ProductInfoInput object {#ProductInfoInput} + +`ProductInfoInput` provides information about a product which should be delivered. In base implementation, the information will be used to filter Pickup Locations which do not have related source item with mentioned product. + +Attribute | Data type | Description +--- | --- | --- +`sku` | String! | Product SKU + ### PickupLocations object `PickupLocations` is the top-level object returned in a pickup locations search. From 80d890b1b5f4225b16f1bed41df85d35a95aa6c9 Mon Sep 17 00:00:00 2001 From: Oleksandr Kravchuk Date: Tue, 10 Nov 2020 10:21:19 +0200 Subject: [PATCH 2/3] Update src/guides/v2.4/graphql/queries/pickup-locations.md Co-authored-by: Kevin Harper --- src/guides/v2.4/graphql/queries/pickup-locations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guides/v2.4/graphql/queries/pickup-locations.md b/src/guides/v2.4/graphql/queries/pickup-locations.md index 0c5be1bccc8..23b34981491 100644 --- a/src/guides/v2.4/graphql/queries/pickup-locations.md +++ b/src/guides/v2.4/graphql/queries/pickup-locations.md @@ -173,7 +173,7 @@ Attribute | Data type | Description ### ProductInfoInput object {#ProductInfoInput} -`ProductInfoInput` provides information about a product which should be delivered. In base implementation, the information will be used to filter Pickup Locations which do not have related source item with mentioned product. +`ProductInfoInput` contains a list of SKUs. If this object is provided in the query, then the response contains locations where all the products are available for in-store pickup. If even one product in the list cannot be used as an in-store pickup location, that location will not be included in the response. Attribute | Data type | Description --- | --- | --- From 25b4799dd5a7d267db7146535a70dbbc0276391f Mon Sep 17 00:00:00 2001 From: Oleksandr Kravchuk Date: Tue, 10 Nov 2020 10:21:30 +0200 Subject: [PATCH 3/3] Update src/guides/v2.4/graphql/queries/pickup-locations.md Co-authored-by: Kevin Harper --- src/guides/v2.4/graphql/queries/pickup-locations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guides/v2.4/graphql/queries/pickup-locations.md b/src/guides/v2.4/graphql/queries/pickup-locations.md index 23b34981491..d27d55107e0 100644 --- a/src/guides/v2.4/graphql/queries/pickup-locations.md +++ b/src/guides/v2.4/graphql/queries/pickup-locations.md @@ -122,7 +122,7 @@ Attribute | Data type | Description `sort` | [PickupLocationSortInput](#PickupLocationSortInput) | Specifies which attribute to sort on, and whether to return the results in ascending or descending order. `pageSize` | Int | The maximum number of pickup locations to return at once. The attribute is optional. The default value is 20. `currentPage` | Int | Specifies which page of results to return. The default value is 1. -`productsInfo` |[[ProductInfoInput]](#ProductInfoInput)| Information about products which should be delivered. The information is used to filter Pickup Locations which do not have relations with mentioned products. +`productsInfo` |[[ProductInfoInput]](#ProductInfoInput)| Contains an array of SKUs to filter on. ### AreaInput object {#AreaInput}