@@ -28,6 +28,9 @@ public class SourceCommercetools implements SourceInput {
28
28
@ JsonProperty ("fallbackIsInStockValue" )
29
29
private Boolean fallbackIsInStockValue ;
30
30
31
+ @ JsonProperty ("productQueryPredicate" )
32
+ private String productQueryPredicate ;
33
+
31
34
@ JsonProperty ("customFields" )
32
35
private CommercetoolsCustomFields customFields ;
33
36
@@ -105,6 +108,20 @@ public Boolean getFallbackIsInStockValue() {
105
108
return fallbackIsInStockValue ;
106
109
}
107
110
111
+ public SourceCommercetools setProductQueryPredicate (String productQueryPredicate ) {
112
+ this .productQueryPredicate = productQueryPredicate ;
113
+ return this ;
114
+ }
115
+
116
+ /**
117
+ * Predicate to filter out specific products when indexing. For more information, see [Query
118
+ * Predicate](https://docs.commercetools.com/api/predicates/query).
119
+ */
120
+ @ javax .annotation .Nullable
121
+ public String getProductQueryPredicate () {
122
+ return productQueryPredicate ;
123
+ }
124
+
108
125
public SourceCommercetools setCustomFields (CommercetoolsCustomFields customFields ) {
109
126
this .customFields = customFields ;
110
127
return this ;
@@ -131,13 +148,14 @@ public boolean equals(Object o) {
131
148
Objects .equals (this .url , sourceCommercetools .url ) &&
132
149
Objects .equals (this .projectKey , sourceCommercetools .projectKey ) &&
133
150
Objects .equals (this .fallbackIsInStockValue , sourceCommercetools .fallbackIsInStockValue ) &&
151
+ Objects .equals (this .productQueryPredicate , sourceCommercetools .productQueryPredicate ) &&
134
152
Objects .equals (this .customFields , sourceCommercetools .customFields )
135
153
);
136
154
}
137
155
138
156
@ Override
139
157
public int hashCode () {
140
- return Objects .hash (storeKeys , locales , url , projectKey , fallbackIsInStockValue , customFields );
158
+ return Objects .hash (storeKeys , locales , url , projectKey , fallbackIsInStockValue , productQueryPredicate , customFields );
141
159
}
142
160
143
161
@ Override
@@ -149,6 +167,7 @@ public String toString() {
149
167
sb .append (" url: " ).append (toIndentedString (url )).append ("\n " );
150
168
sb .append (" projectKey: " ).append (toIndentedString (projectKey )).append ("\n " );
151
169
sb .append (" fallbackIsInStockValue: " ).append (toIndentedString (fallbackIsInStockValue )).append ("\n " );
170
+ sb .append (" productQueryPredicate: " ).append (toIndentedString (productQueryPredicate )).append ("\n " );
152
171
sb .append (" customFields: " ).append (toIndentedString (customFields )).append ("\n " );
153
172
sb .append ("}" );
154
173
return sb .toString ();
0 commit comments