@@ -24,6 +24,8 @@ class BoughtTogetherQuery
2424 # Unique record identifier.
2525 attr_accessor :algolia_object_id
2626
27+ attr_accessor :fallback_parameters
28+
2729 # Attribute mapping from ruby-style variable name to JSON key.
2830 def self . attribute_map
2931 {
@@ -32,7 +34,8 @@ def self.attribute_map
3234 :max_recommendations => :maxRecommendations ,
3335 :query_parameters => :queryParameters ,
3436 :model => :model ,
35- :algolia_object_id => :objectID
37+ :algolia_object_id => :objectID ,
38+ :fallback_parameters => :fallbackParameters
3639 }
3740 end
3841
@@ -44,7 +47,8 @@ def self.types_mapping
4447 :max_recommendations => :"Integer" ,
4548 :query_parameters => :"RecommendSearchParams" ,
4649 :model => :"FbtModel" ,
47- :algolia_object_id => :"String"
50+ :algolia_object_id => :"String" ,
51+ :fallback_parameters => :"FallbackParams"
4852 }
4953 end
5054
@@ -117,6 +121,10 @@ def initialize(attributes = {})
117121 else
118122 self . algolia_object_id = nil
119123 end
124+
125+ if attributes . key? ( :fallback_parameters )
126+ self . fallback_parameters = attributes [ :fallback_parameters ]
127+ end
120128 end
121129
122130 # Checks equality by comparing each attribute.
@@ -129,7 +137,8 @@ def ==(other)
129137 max_recommendations == other . max_recommendations &&
130138 query_parameters == other . query_parameters &&
131139 model == other . model &&
132- algolia_object_id == other . algolia_object_id
140+ algolia_object_id == other . algolia_object_id &&
141+ fallback_parameters == other . fallback_parameters
133142 end
134143
135144 # @see the `==` method
@@ -141,7 +150,7 @@ def eql?(other)
141150 # Calculates hash code according to all attributes.
142151 # @return [Integer] Hash code
143152 def hash
144- [ index_name , threshold , max_recommendations , query_parameters , model , algolia_object_id ] . hash
153+ [ index_name , threshold , max_recommendations , query_parameters , model , algolia_object_id , fallback_parameters ] . hash
145154 end
146155
147156 # Builds the object from hash
0 commit comments