algolia 3.4.0 → 3.5.1

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.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/algolia/api/abtesting_client.rb +0 -7
  5. data/lib/algolia/api/analytics_client.rb +32 -88
  6. data/lib/algolia/api/ingestion_client.rb +2 -170
  7. data/lib/algolia/api/insights_client.rb +0 -22
  8. data/lib/algolia/api/monitoring_client.rb +11 -11
  9. data/lib/algolia/api/search_client.rb +19 -74
  10. data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -18
  11. data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +0 -18
  12. data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -18
  13. data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -18
  14. data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -18
  15. data/lib/algolia/models/abtesting/variant.rb +0 -18
  16. data/lib/algolia/models/analytics/click_position.rb +0 -32
  17. data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -28
  18. data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -24
  19. data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -28
  20. data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -28
  21. data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -32
  22. data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -18
  23. data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -14
  24. data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -14
  25. data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -14
  26. data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -28
  27. data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -24
  28. data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -18
  29. data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -28
  30. data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -28
  31. data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -32
  32. data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -18
  33. data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -14
  34. data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -56
  35. data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -98
  36. data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -90
  37. data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -132
  38. data/lib/algolia/models/ingestion/event.rb +0 -14
  39. data/lib/algolia/models/ingestion/pagination.rb +0 -60
  40. data/lib/algolia/models/ingestion/run.rb +0 -18
  41. data/lib/algolia/models/ingestion/source_csv.rb +0 -21
  42. data/lib/algolia/models/ingestion/task.rb +0 -18
  43. data/lib/algolia/models/ingestion/task_create.rb +0 -18
  44. data/lib/algolia/models/ingestion/task_create_v1.rb +0 -18
  45. data/lib/algolia/models/ingestion/task_update.rb +0 -18
  46. data/lib/algolia/models/ingestion/task_update_v1.rb +0 -18
  47. data/lib/algolia/models/ingestion/task_v1.rb +0 -18
  48. data/lib/algolia/models/ingestion/transformation.rb +1 -1
  49. data/lib/algolia/models/ingestion/transformation_create.rb +1 -1
  50. data/lib/algolia/models/insights/added_to_cart_object_ids.rb +0 -123
  51. data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +0 -149
  52. data/lib/algolia/models/insights/clicked_filters.rb +0 -105
  53. data/lib/algolia/models/insights/clicked_object_ids.rb +0 -105
  54. data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +0 -149
  55. data/lib/algolia/models/insights/converted_filters.rb +0 -105
  56. data/lib/algolia/models/insights/converted_object_ids.rb +0 -105
  57. data/lib/algolia/models/insights/converted_object_ids_after_search.rb +0 -131
  58. data/lib/algolia/models/insights/insights_events.rb +0 -18
  59. data/lib/algolia/models/insights/object_data_after_search.rb +0 -26
  60. data/lib/algolia/models/insights/purchased_object_ids.rb +0 -123
  61. data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +0 -123
  62. data/lib/algolia/models/insights/viewed_filters.rb +0 -105
  63. data/lib/algolia/models/insights/viewed_object_ids.rb +0 -105
  64. data/lib/algolia/models/personalization/personalization_strategy_params.rb +0 -18
  65. data/lib/algolia/models/query-suggestions/configuration.rb +0 -17
  66. data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -17
  67. data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -17
  68. data/lib/algolia/models/query-suggestions/source_index.rb +0 -28
  69. data/lib/algolia/models/recommend/banner.rb +218 -0
  70. data/lib/algolia/models/{query-suggestions/base_query_suggestions_configuration_response.rb → recommend/banner_image.rb} +31 -38
  71. data/lib/algolia/models/{query-suggestions/base_query_suggestions_configuration_with_index.rb → recommend/banner_image_url.rb} +23 -23
  72. data/lib/algolia/models/{query-suggestions/get_config_status200_response.rb → recommend/banner_link.rb} +13 -53
  73. data/lib/algolia/models/recommend/bought_together_query.rb +0 -36
  74. data/lib/algolia/models/recommend/condition.rb +0 -15
  75. data/lib/algolia/models/recommend/consequence.rb +0 -28
  76. data/lib/algolia/models/recommend/fallback_params.rb +8 -100
  77. data/lib/algolia/models/recommend/looking_similar_query.rb +0 -36
  78. data/lib/algolia/models/recommend/numeric_filters.rb +1 -1
  79. data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -14
  80. data/lib/algolia/models/recommend/ranking_info.rb +0 -112
  81. data/lib/algolia/models/recommend/recommend_hit.rb +0 -18
  82. data/lib/algolia/models/recommend/recommend_search_params.rb +8 -100
  83. data/lib/algolia/models/recommend/recommendations_results.rb +0 -61
  84. data/lib/algolia/models/recommend/recommended_for_you_query.rb +0 -36
  85. data/lib/algolia/models/recommend/related_query.rb +0 -36
  86. data/lib/algolia/models/recommend/rendering_content.rb +14 -5
  87. data/lib/algolia/models/recommend/search_recommend_rules_params.rb +0 -50
  88. data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -14
  89. data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -18
  90. data/lib/algolia/models/recommend/trending_facets_query.rb +0 -36
  91. data/lib/algolia/models/recommend/trending_items_query.rb +0 -36
  92. data/lib/algolia/models/recommend/typo_tolerance.rb +1 -1
  93. data/lib/algolia/models/recommend/widgets.rb +212 -0
  94. data/lib/algolia/models/search/api_key.rb +1 -1
  95. data/lib/algolia/models/search/banner.rb +218 -0
  96. data/lib/algolia/models/{query-suggestions/get_log_file200_response.rb → search/banner_image.rb} +21 -61
  97. data/lib/algolia/models/search/banner_image_url.rb +212 -0
  98. data/lib/algolia/models/search/banner_link.rb +212 -0
  99. data/lib/algolia/models/search/browse_params_object.rb +4 -132
  100. data/lib/algolia/models/search/browse_response.rb +0 -61
  101. data/lib/algolia/models/search/condition.rb +0 -15
  102. data/lib/algolia/models/search/consequence.rb +0 -28
  103. data/lib/algolia/models/search/consequence_params.rb +4 -132
  104. data/lib/algolia/models/search/delete_by_params.rb +1 -1
  105. data/lib/algolia/models/search/get_api_key_response.rb +1 -1
  106. data/lib/algolia/models/search/index_settings.rb +7 -85
  107. data/lib/algolia/models/search/log.rb +0 -34
  108. data/lib/algolia/models/search/numeric_filters.rb +1 -1
  109. data/lib/algolia/models/search/promote_object_ids.rb +0 -14
  110. data/lib/algolia/models/search/ranking_info.rb +0 -112
  111. data/lib/algolia/models/search/rendering_content.rb +14 -5
  112. data/lib/algolia/models/search/rule.rb +0 -18
  113. data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -32
  114. data/lib/algolia/models/search/search_dictionary_entries_response.rb +0 -14
  115. data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -14
  116. data/lib/algolia/models/search/search_for_facets.rb +4 -132
  117. data/lib/algolia/models/search/search_for_hits.rb +4 -132
  118. data/lib/algolia/models/search/search_params_object.rb +4 -132
  119. data/lib/algolia/models/search/search_response.rb +0 -61
  120. data/lib/algolia/models/search/search_rules_params.rb +0 -32
  121. data/lib/algolia/models/search/search_synonyms_params.rb +0 -32
  122. data/lib/algolia/models/search/search_user_ids_params.rb +0 -32
  123. data/lib/algolia/models/search/search_user_ids_response.rb +0 -32
  124. data/lib/algolia/models/search/settings_response.rb +7 -85
  125. data/lib/algolia/models/search/typo_tolerance.rb +1 -1
  126. data/lib/algolia/models/search/user_hit.rb +0 -15
  127. data/lib/algolia/models/search/user_id.rb +0 -15
  128. data/lib/algolia/models/search/widgets.rb +212 -0
  129. data/lib/algolia/version.rb +1 -1
  130. metadata +12 -9
  131. data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +0 -276
  132. data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +0 -316
  133. data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +0 -295
@@ -89,30 +89,6 @@ module Algolia
89
89
  end
90
90
  end
91
91
 
92
- # Custom attribute writer method with validation
93
- # @param [Object] average Value to be assigned
94
- def average=(average)
95
- if !average.nil? && average < 1
96
- raise ArgumentError, "invalid value for \"average\", must be greater than or equal to 1."
97
- end
98
-
99
- @average = average
100
- end
101
-
102
- # Custom attribute writer method with validation
103
- # @param [Object] click_count Value to be assigned
104
- def click_count=(click_count)
105
- if click_count.nil?
106
- raise ArgumentError, "click_count cannot be nil"
107
- end
108
-
109
- if click_count < 0
110
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
111
- end
112
-
113
- @click_count = click_count
114
- end
115
-
116
92
  # Checks equality by comparing each attribute.
117
93
  # @param [Object] Object to be compared
118
94
  def ==(other)
@@ -100,34 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if !rate.nil? && rate > 1
107
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
108
- end
109
-
110
- if !rate.nil? && rate < 0
111
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
112
- end
113
-
114
- @rate = rate
115
- end
116
-
117
- # Custom attribute writer method with validation
118
- # @param [Object] click_count Value to be assigned
119
- def click_count=(click_count)
120
- if click_count.nil?
121
- raise ArgumentError, "click_count cannot be nil"
122
- end
123
-
124
- if click_count < 0
125
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
126
- end
127
-
128
- @click_count = click_count
129
- end
130
-
131
103
  # Checks equality by comparing each attribute.
132
104
  # @param [Object] Object to be compared
133
105
  def ==(other)
@@ -100,34 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if !rate.nil? && rate > 1
107
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
108
- end
109
-
110
- if !rate.nil? && rate < 0
111
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
112
- end
113
-
114
- @rate = rate
115
- end
116
-
117
- # Custom attribute writer method with validation
118
- # @param [Object] conversion_count Value to be assigned
119
- def conversion_count=(conversion_count)
120
- if conversion_count.nil?
121
- raise ArgumentError, "conversion_count cannot be nil"
122
- end
123
-
124
- if conversion_count < 0
125
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
126
- end
127
-
128
- @conversion_count = conversion_count
129
- end
130
-
131
103
  # Checks equality by comparing each attribute.
132
104
  # @param [Object] Object to be compared
133
105
  def ==(other)
@@ -98,38 +98,6 @@ module Algolia
98
98
  end
99
99
  end
100
100
 
101
- # Custom attribute writer method with validation
102
- # @param [Object] rate Value to be assigned
103
- def rate=(rate)
104
- if rate.nil?
105
- raise ArgumentError, "rate cannot be nil"
106
- end
107
-
108
- if rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
- # Custom attribute writer method with validation
120
- # @param [Object] no_click_count Value to be assigned
121
- def no_click_count=(no_click_count)
122
- if no_click_count.nil?
123
- raise ArgumentError, "no_click_count cannot be nil"
124
- end
125
-
126
- if no_click_count < 1
127
- raise ArgumentError, "invalid value for \"no_click_count\", must be greater than or equal to 1."
128
- end
129
-
130
- @no_click_count = no_click_count
131
- end
132
-
133
101
  # Checks equality by comparing each attribute.
134
102
  # @param [Object] Object to be compared
135
103
  def ==(other)
@@ -98,24 +98,6 @@ module Algolia
98
98
  end
99
99
  end
100
100
 
101
- # Custom attribute writer method with validation
102
- # @param [Object] rate Value to be assigned
103
- def rate=(rate)
104
- if rate.nil?
105
- raise ArgumentError, "rate cannot be nil"
106
- end
107
-
108
- if rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
101
  # Checks equality by comparing each attribute.
120
102
  # @param [Object] Object to be compared
121
103
  def ==(other)
@@ -100,20 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if !rate.nil? && rate > 1
107
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
108
- end
109
-
110
- if !rate.nil? && rate < 0
111
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
112
- end
113
-
114
- @rate = rate
115
- end
116
-
117
103
  # Checks equality by comparing each attribute.
118
104
  # @param [Object] Object to be compared
119
105
  def ==(other)
@@ -87,20 +87,6 @@ module Algolia
87
87
  end
88
88
  end
89
89
 
90
- # Custom attribute writer method with validation
91
- # @param [Object] count Value to be assigned
92
- def count=(count)
93
- if count.nil?
94
- raise ArgumentError, "count cannot be nil"
95
- end
96
-
97
- if count < 1
98
- raise ArgumentError, "invalid value for \"count\", must be greater than or equal to 1."
99
- end
100
-
101
- @count = count
102
- end
103
-
104
90
  # Checks equality by comparing each attribute.
105
91
  # @param [Object] Object to be compared
106
92
  def ==(other)
@@ -87,20 +87,6 @@ module Algolia
87
87
  end
88
88
  end
89
89
 
90
- # Custom attribute writer method with validation
91
- # @param [Object] with_filter_count Value to be assigned
92
- def with_filter_count=(with_filter_count)
93
- if with_filter_count.nil?
94
- raise ArgumentError, "with_filter_count cannot be nil"
95
- end
96
-
97
- if with_filter_count < 0
98
- raise ArgumentError, "invalid value for \"with_filter_count\", must be greater than or equal to 0."
99
- end
100
-
101
- @with_filter_count = with_filter_count
102
- end
103
-
104
90
  # Checks equality by comparing each attribute.
105
91
  # @param [Object] Object to be compared
106
92
  def ==(other)
@@ -102,34 +102,6 @@ module Algolia
102
102
  end
103
103
  end
104
104
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] rate Value to be assigned
107
- def rate=(rate)
108
- if !rate.nil? && rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if !rate.nil? && rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
- # Custom attribute writer method with validation
120
- # @param [Object] add_to_cart_count Value to be assigned
121
- def add_to_cart_count=(add_to_cart_count)
122
- if add_to_cart_count.nil?
123
- raise ArgumentError, "add_to_cart_count cannot be nil"
124
- end
125
-
126
- if add_to_cart_count < 0
127
- raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
128
- end
129
-
130
- @add_to_cart_count = add_to_cart_count
131
- end
132
-
133
105
  # Checks equality by comparing each attribute.
134
106
  # @param [Object] Object to be compared
135
107
  def ==(other)
@@ -91,30 +91,6 @@ module Algolia
91
91
  end
92
92
  end
93
93
 
94
- # Custom attribute writer method with validation
95
- # @param [Object] average Value to be assigned
96
- def average=(average)
97
- if !average.nil? && average < 1
98
- raise ArgumentError, "invalid value for \"average\", must be greater than or equal to 1."
99
- end
100
-
101
- @average = average
102
- end
103
-
104
- # Custom attribute writer method with validation
105
- # @param [Object] click_count Value to be assigned
106
- def click_count=(click_count)
107
- if click_count.nil?
108
- raise ArgumentError, "click_count cannot be nil"
109
- end
110
-
111
- if click_count < 0
112
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
113
- end
114
-
115
- @click_count = click_count
116
- end
117
-
118
94
  # Checks equality by comparing each attribute.
119
95
  # @param [Object] Object to be compared
120
96
  def ==(other)
@@ -67,24 +67,6 @@ module Algolia
67
67
  end
68
68
  end
69
69
 
70
- # Custom attribute writer method with validation
71
- # @param [Object] positions Value to be assigned
72
- def positions=(positions)
73
- if positions.nil?
74
- raise ArgumentError, "positions cannot be nil"
75
- end
76
-
77
- if positions.length > 12
78
- raise ArgumentError, "invalid value for \"positions\", number of items must be less than or equal to 12."
79
- end
80
-
81
- if positions.length < 12
82
- raise ArgumentError, "invalid value for \"positions\", number of items must be greater than or equal to 12."
83
- end
84
-
85
- @positions = positions
86
- end
87
-
88
70
  # Checks equality by comparing each attribute.
89
71
  # @param [Object] Object to be compared
90
72
  def ==(other)
@@ -102,34 +102,6 @@ module Algolia
102
102
  end
103
103
  end
104
104
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] rate Value to be assigned
107
- def rate=(rate)
108
- if !rate.nil? && rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if !rate.nil? && rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
- # Custom attribute writer method with validation
120
- # @param [Object] click_count Value to be assigned
121
- def click_count=(click_count)
122
- if click_count.nil?
123
- raise ArgumentError, "click_count cannot be nil"
124
- end
125
-
126
- if click_count < 0
127
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
128
- end
129
-
130
- @click_count = click_count
131
- end
132
-
133
105
  # Checks equality by comparing each attribute.
134
106
  # @param [Object] Object to be compared
135
107
  def ==(other)
@@ -102,34 +102,6 @@ module Algolia
102
102
  end
103
103
  end
104
104
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] rate Value to be assigned
107
- def rate=(rate)
108
- if !rate.nil? && rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if !rate.nil? && rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
- # Custom attribute writer method with validation
120
- # @param [Object] conversion_count Value to be assigned
121
- def conversion_count=(conversion_count)
122
- if conversion_count.nil?
123
- raise ArgumentError, "conversion_count cannot be nil"
124
- end
125
-
126
- if conversion_count < 0
127
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
128
- end
129
-
130
- @conversion_count = conversion_count
131
- end
132
-
133
105
  # Checks equality by comparing each attribute.
134
106
  # @param [Object] Object to be compared
135
107
  def ==(other)
@@ -100,38 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if rate.nil?
107
- raise ArgumentError, "rate cannot be nil"
108
- end
109
-
110
- if rate > 1
111
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
112
- end
113
-
114
- if rate < 0
115
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
116
- end
117
-
118
- @rate = rate
119
- end
120
-
121
- # Custom attribute writer method with validation
122
- # @param [Object] no_click_count Value to be assigned
123
- def no_click_count=(no_click_count)
124
- if no_click_count.nil?
125
- raise ArgumentError, "no_click_count cannot be nil"
126
- end
127
-
128
- if no_click_count < 1
129
- raise ArgumentError, "invalid value for \"no_click_count\", must be greater than or equal to 1."
130
- end
131
-
132
- @no_click_count = no_click_count
133
- end
134
-
135
103
  # Checks equality by comparing each attribute.
136
104
  # @param [Object] Object to be compared
137
105
  def ==(other)
@@ -100,24 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if rate.nil?
107
- raise ArgumentError, "rate cannot be nil"
108
- end
109
-
110
- if rate > 1
111
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
112
- end
113
-
114
- if rate < 0
115
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
116
- end
117
-
118
- @rate = rate
119
- end
120
-
121
103
  # Checks equality by comparing each attribute.
122
104
  # @param [Object] Object to be compared
123
105
  def ==(other)
@@ -102,20 +102,6 @@ module Algolia
102
102
  end
103
103
  end
104
104
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] rate Value to be assigned
107
- def rate=(rate)
108
- if !rate.nil? && rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if !rate.nil? && rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
105
  # Checks equality by comparing each attribute.
120
106
  # @param [Object] Object to be compared
121
107
  def ==(other)
@@ -134,62 +134,6 @@ module Algolia
134
134
  end
135
135
  end
136
136
 
137
- # Custom attribute writer method with validation
138
- # @param [Object] click_through_rate Value to be assigned
139
- def click_through_rate=(click_through_rate)
140
- if !click_through_rate.nil? && click_through_rate > 1
141
- raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
142
- end
143
-
144
- if !click_through_rate.nil? && click_through_rate < 0
145
- raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
146
- end
147
-
148
- @click_through_rate = click_through_rate
149
- end
150
-
151
- # Custom attribute writer method with validation
152
- # @param [Object] conversion_rate Value to be assigned
153
- def conversion_rate=(conversion_rate)
154
- if !conversion_rate.nil? && conversion_rate > 1
155
- raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
156
- end
157
-
158
- if !conversion_rate.nil? && conversion_rate < 0
159
- raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
160
- end
161
-
162
- @conversion_rate = conversion_rate
163
- end
164
-
165
- # Custom attribute writer method with validation
166
- # @param [Object] click_count Value to be assigned
167
- def click_count=(click_count)
168
- if click_count.nil?
169
- raise ArgumentError, "click_count cannot be nil"
170
- end
171
-
172
- if click_count < 0
173
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
174
- end
175
-
176
- @click_count = click_count
177
- end
178
-
179
- # Custom attribute writer method with validation
180
- # @param [Object] conversion_count Value to be assigned
181
- def conversion_count=(conversion_count)
182
- if conversion_count.nil?
183
- raise ArgumentError, "conversion_count cannot be nil"
184
- end
185
-
186
- if conversion_count < 0
187
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
188
- end
189
-
190
- @conversion_count = conversion_count
191
- end
192
-
193
137
  # Checks equality by comparing each attribute.
194
138
  # @param [Object] Object to be compared
195
139
  def ==(other)
@@ -193,104 +193,6 @@ module Algolia
193
193
  end
194
194
  end
195
195
 
196
- # Custom attribute writer method with validation
197
- # @param [Object] click_through_rate Value to be assigned
198
- def click_through_rate=(click_through_rate)
199
- if !click_through_rate.nil? && click_through_rate > 1
200
- raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
201
- end
202
-
203
- if !click_through_rate.nil? && click_through_rate < 0
204
- raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
205
- end
206
-
207
- @click_through_rate = click_through_rate
208
- end
209
-
210
- # Custom attribute writer method with validation
211
- # @param [Object] conversion_rate Value to be assigned
212
- def conversion_rate=(conversion_rate)
213
- if !conversion_rate.nil? && conversion_rate > 1
214
- raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
215
- end
216
-
217
- if !conversion_rate.nil? && conversion_rate < 0
218
- raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
219
- end
220
-
221
- @conversion_rate = conversion_rate
222
- end
223
-
224
- # Custom attribute writer method with validation
225
- # @param [Object] click_count Value to be assigned
226
- def click_count=(click_count)
227
- if click_count.nil?
228
- raise ArgumentError, "click_count cannot be nil"
229
- end
230
-
231
- if click_count < 0
232
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
233
- end
234
-
235
- @click_count = click_count
236
- end
237
-
238
- # Custom attribute writer method with validation
239
- # @param [Object] conversion_count Value to be assigned
240
- def conversion_count=(conversion_count)
241
- if conversion_count.nil?
242
- raise ArgumentError, "conversion_count cannot be nil"
243
- end
244
-
245
- if conversion_count < 0
246
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
247
- end
248
-
249
- @conversion_count = conversion_count
250
- end
251
-
252
- # Custom attribute writer method with validation
253
- # @param [Object] add_to_cart_rate Value to be assigned
254
- def add_to_cart_rate=(add_to_cart_rate)
255
- if !add_to_cart_rate.nil? && add_to_cart_rate > 1
256
- raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be smaller than or equal to 1."
257
- end
258
-
259
- if !add_to_cart_rate.nil? && add_to_cart_rate < 0
260
- raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be greater than or equal to 0."
261
- end
262
-
263
- @add_to_cart_rate = add_to_cart_rate
264
- end
265
-
266
- # Custom attribute writer method with validation
267
- # @param [Object] add_to_cart_count Value to be assigned
268
- def add_to_cart_count=(add_to_cart_count)
269
- if add_to_cart_count.nil?
270
- raise ArgumentError, "add_to_cart_count cannot be nil"
271
- end
272
-
273
- if add_to_cart_count < 0
274
- raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
275
- end
276
-
277
- @add_to_cart_count = add_to_cart_count
278
- end
279
-
280
- # Custom attribute writer method with validation
281
- # @param [Object] purchase_rate Value to be assigned
282
- def purchase_rate=(purchase_rate)
283
- if !purchase_rate.nil? && purchase_rate > 1
284
- raise ArgumentError, "invalid value for \"purchase_rate\", must be smaller than or equal to 1."
285
- end
286
-
287
- if !purchase_rate.nil? && purchase_rate < 0
288
- raise ArgumentError, "invalid value for \"purchase_rate\", must be greater than or equal to 0."
289
- end
290
-
291
- @purchase_rate = purchase_rate
292
- end
293
-
294
196
  # Checks equality by comparing each attribute.
295
197
  # @param [Object] Object to be compared
296
198
  def ==(other)