aboutyou-sdk 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWI0ZDkyZTNmMTZiMjg0NzQ4ZTA2ZDMzMDM2ZGFjMTVjMDE5ZjVkMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTRmMDE3YmUzMmY3ZDIyNDZlNzkwOWUzZWVkNDk4YmE5MDkyMjUxNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDE1MzliMjk0OWRlMDllNmI1MzUxNTEyMjM3MjE0OTkyMjgzOTU3ZmI5ZjVk
|
10
|
+
ODllYzAyNjNkMGQ1YzFmZjI5NzE5MTAxZTExN2I1MDM2MDVkYWRmOGYwZTdj
|
11
|
+
OTEzOTBmODcwOTY5ZTA1NTE2N2QzNjE3ZGQxMjI3MjdkMDFiYmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWI3ZDNlNGNiMTA5NjkwNTNhZjNkOGVjYjZhMTA0NWVlNzY3ZjlkYWM2MWMy
|
14
|
+
ZDI0N2FmNWZlZmEwZDA3ZmU2ZTYzOTYwNmI3MTRhY2Y2MTBhMGI4MjEwOWQ5
|
15
|
+
YzI4YTQ5NDk2MzNjODI3NTg4ZGUwNDcyN2Y4YmIyNTU2OGExMjY=
|
@@ -146,13 +146,14 @@ module AboutYou
|
|
146
146
|
# sets a filter for filtering by category ids
|
147
147
|
#
|
148
148
|
# * *Args* :
|
149
|
-
# - +attributes+ -> Array of Hashes containing the relation Group_Id =>
|
149
|
+
# - +attributes+ -> Array of Hashes containing the relation Group_Id => Array of Facet_Ids
|
150
150
|
# - +append+ -> determines whether to append the category ids to an already set value or not [optional]
|
151
151
|
#
|
152
152
|
# * *Returns* :
|
153
153
|
# - an instance of AboutYou::SDK::Criteria::ProductSearchCriteria
|
154
154
|
###
|
155
155
|
def filterByFacetIds(attributes, append = false)
|
156
|
+
merged = attributes[0]
|
156
157
|
if append && self.filter[FILTER_ATTRIBUTES]
|
157
158
|
merged = self.filter[FILTER_ATTRIBUTES]
|
158
159
|
attributes.each do |groupId, facetIds|
|
@@ -164,7 +165,7 @@ module AboutYou
|
|
164
165
|
end
|
165
166
|
attributes = merged
|
166
167
|
end
|
167
|
-
self.filterBy(FILTER_ATTRIBUTES,
|
168
|
+
self.filterBy(FILTER_ATTRIBUTES, merged)
|
168
169
|
end
|
169
170
|
|
170
171
|
|
data/lib/aboutyou-sdk/Query.rb
CHANGED
data/tests/Sinatra-test/Main.rb
CHANGED