@@ -20,6 +20,9 @@ class RecommendationsResults
2020
2121 attr_accessor :exhaustive
2222
23+ # Rules applied to the query.
24+ attr_accessor :applied_rules
25+
2326 # See the `facetsCount` field of the `exhaustive` object in the response.
2427 attr_accessor :exhaustive_facets_count
2528
@@ -100,6 +103,7 @@ def self.attribute_map
100103 :around_lat_lng => :aroundLatLng ,
101104 :automatic_radius => :automaticRadius ,
102105 :exhaustive => :exhaustive ,
106+ :applied_rules => :appliedRules ,
103107 :exhaustive_facets_count => :exhaustiveFacetsCount ,
104108 :exhaustive_nb_hits => :exhaustiveNbHits ,
105109 :exhaustive_typo => :exhaustiveTypo ,
@@ -141,6 +145,7 @@ def self.types_mapping
141145 :around_lat_lng => :"String" ,
142146 :automatic_radius => :"String" ,
143147 :exhaustive => :"Exhaustive" ,
148+ :applied_rules => :"Array<Object>" ,
144149 :exhaustive_facets_count => :"Boolean" ,
145150 :exhaustive_nb_hits => :"Boolean" ,
146151 :exhaustive_typo => :"Boolean" ,
@@ -228,6 +233,12 @@ def initialize(attributes = {})
228233 self . exhaustive = attributes [ :exhaustive ]
229234 end
230235
236+ if attributes . key? ( :applied_rules )
237+ if ( value = attributes [ :applied_rules ] ) . is_a? ( Array )
238+ self . applied_rules = value
239+ end
240+ end
241+
231242 if attributes . key? ( :exhaustive_facets_count )
232243 self . exhaustive_facets_count = attributes [ :exhaustive_facets_count ]
233244 end
@@ -349,6 +360,7 @@ def ==(other)
349360 around_lat_lng == other . around_lat_lng &&
350361 automatic_radius == other . automatic_radius &&
351362 exhaustive == other . exhaustive &&
363+ applied_rules == other . applied_rules &&
352364 exhaustive_facets_count == other . exhaustive_facets_count &&
353365 exhaustive_nb_hits == other . exhaustive_nb_hits &&
354366 exhaustive_typo == other . exhaustive_typo &&
@@ -391,6 +403,7 @@ def hash
391403 around_lat_lng ,
392404 automatic_radius ,
393405 exhaustive ,
406+ applied_rules ,
394407 exhaustive_facets_count ,
395408 exhaustive_nb_hits ,
396409 exhaustive_typo ,
0 commit comments