Skip to content

Commit 9f4de5f

Browse files
algolia-botraed667
andcommitted
feat(specs): add fallbackParameters to Frequently bought together [RECO-2443] (generated)
algolia/api-clients-automation#5579 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Raed <[email protected]>
1 parent 83bfbf8 commit 9f4de5f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

algoliasearch/src/main/java/com/algolia/model/recommend/BoughtTogetherQuery.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public class BoughtTogetherQuery implements RecommendationsRequest {
2929
@JsonProperty("objectID")
3030
private String objectID;
3131

32+
@JsonProperty("fallbackParameters")
33+
private FallbackParams fallbackParameters;
34+
3235
public BoughtTogetherQuery setIndexName(String indexName) {
3336
this.indexName = indexName;
3437
return this;
@@ -103,6 +106,17 @@ public String getObjectID() {
103106
return objectID;
104107
}
105108

109+
public BoughtTogetherQuery setFallbackParameters(FallbackParams fallbackParameters) {
110+
this.fallbackParameters = fallbackParameters;
111+
return this;
112+
}
113+
114+
/** Get fallbackParameters */
115+
@javax.annotation.Nullable
116+
public FallbackParams getFallbackParameters() {
117+
return fallbackParameters;
118+
}
119+
106120
@Override
107121
public boolean equals(Object o) {
108122
if (this == o) {
@@ -118,13 +132,14 @@ public boolean equals(Object o) {
118132
Objects.equals(this.maxRecommendations, boughtTogetherQuery.maxRecommendations) &&
119133
Objects.equals(this.queryParameters, boughtTogetherQuery.queryParameters) &&
120134
Objects.equals(this.model, boughtTogetherQuery.model) &&
121-
Objects.equals(this.objectID, boughtTogetherQuery.objectID)
135+
Objects.equals(this.objectID, boughtTogetherQuery.objectID) &&
136+
Objects.equals(this.fallbackParameters, boughtTogetherQuery.fallbackParameters)
122137
);
123138
}
124139

125140
@Override
126141
public int hashCode() {
127-
return Objects.hash(indexName, threshold, maxRecommendations, queryParameters, model, objectID);
142+
return Objects.hash(indexName, threshold, maxRecommendations, queryParameters, model, objectID, fallbackParameters);
128143
}
129144

130145
@Override
@@ -137,6 +152,7 @@ public String toString() {
137152
sb.append(" queryParameters: ").append(toIndentedString(queryParameters)).append("\n");
138153
sb.append(" model: ").append(toIndentedString(model)).append("\n");
139154
sb.append(" objectID: ").append(toIndentedString(objectID)).append("\n");
155+
sb.append(" fallbackParameters: ").append(toIndentedString(fallbackParameters)).append("\n");
140156
sb.append("}");
141157
return sb.toString();
142158
}

0 commit comments

Comments
 (0)