Skip to content

Commit d9ed84d

Browse files
feat(specs): add CT Query predicate property (generated)
algolia/api-clients-automation#4654 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Morgan Leroi <[email protected]>
1 parent cab7db5 commit d9ed84d

File tree

4 files changed

+128
-0
lines changed

4 files changed

+128
-0
lines changed

lib/Model/Ingestion/SourceCommercetools.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class SourceCommercetools extends AbstractModel implements ModelInterface, \Arra
2525
'url' => 'string',
2626
'projectKey' => 'string',
2727
'fallbackIsInStockValue' => 'bool',
28+
'productQueryPredicate' => 'string',
2829
'customFields' => '\Algolia\AlgoliaSearch\Model\Ingestion\CommercetoolsCustomFields',
2930
];
3031

@@ -39,6 +40,7 @@ class SourceCommercetools extends AbstractModel implements ModelInterface, \Arra
3940
'url' => null,
4041
'projectKey' => null,
4142
'fallbackIsInStockValue' => null,
43+
'productQueryPredicate' => null,
4244
'customFields' => null,
4345
];
4446

@@ -54,6 +56,7 @@ class SourceCommercetools extends AbstractModel implements ModelInterface, \Arra
5456
'url' => 'url',
5557
'projectKey' => 'projectKey',
5658
'fallbackIsInStockValue' => 'fallbackIsInStockValue',
59+
'productQueryPredicate' => 'productQueryPredicate',
5760
'customFields' => 'customFields',
5861
];
5962

@@ -68,6 +71,7 @@ class SourceCommercetools extends AbstractModel implements ModelInterface, \Arra
6871
'url' => 'setUrl',
6972
'projectKey' => 'setProjectKey',
7073
'fallbackIsInStockValue' => 'setFallbackIsInStockValue',
74+
'productQueryPredicate' => 'setProductQueryPredicate',
7175
'customFields' => 'setCustomFields',
7276
];
7377

@@ -82,6 +86,7 @@ class SourceCommercetools extends AbstractModel implements ModelInterface, \Arra
8286
'url' => 'getUrl',
8387
'projectKey' => 'getProjectKey',
8488
'fallbackIsInStockValue' => 'getFallbackIsInStockValue',
89+
'productQueryPredicate' => 'getProductQueryPredicate',
8590
'customFields' => 'getCustomFields',
8691
];
8792

@@ -114,6 +119,9 @@ public function __construct(?array $data = null)
114119
if (isset($data['fallbackIsInStockValue'])) {
115120
$this->container['fallbackIsInStockValue'] = $data['fallbackIsInStockValue'];
116121
}
122+
if (isset($data['productQueryPredicate'])) {
123+
$this->container['productQueryPredicate'] = $data['productQueryPredicate'];
124+
}
117125
if (isset($data['customFields'])) {
118126
$this->container['customFields'] = $data['customFields'];
119127
}
@@ -320,6 +328,30 @@ public function setFallbackIsInStockValue($fallbackIsInStockValue)
320328
return $this;
321329
}
322330

331+
/**
332+
* Gets productQueryPredicate.
333+
*
334+
* @return null|string
335+
*/
336+
public function getProductQueryPredicate()
337+
{
338+
return $this->container['productQueryPredicate'] ?? null;
339+
}
340+
341+
/**
342+
* Sets productQueryPredicate.
343+
*
344+
* @param null|string $productQueryPredicate Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
345+
*
346+
* @return self
347+
*/
348+
public function setProductQueryPredicate($productQueryPredicate)
349+
{
350+
$this->container['productQueryPredicate'] = $productQueryPredicate;
351+
352+
return $this;
353+
}
354+
323355
/**
324356
* Gets customFields.
325357
*

lib/Model/Ingestion/SourceInput.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class SourceInput extends AbstractModel implements ModelInterface, \ArrayAccess,
2525
'url' => 'string',
2626
'projectKey' => 'string',
2727
'fallbackIsInStockValue' => 'bool',
28+
'productQueryPredicate' => 'string',
2829
'customFields' => 'string[]',
2930
'storeHash' => 'string',
3031
'channel' => '\Algolia\AlgoliaSearch\Model\Ingestion\BigCommerceChannel',
@@ -57,6 +58,7 @@ class SourceInput extends AbstractModel implements ModelInterface, \ArrayAccess,
5758
'url' => null,
5859
'projectKey' => null,
5960
'fallbackIsInStockValue' => null,
61+
'productQueryPredicate' => null,
6062
'customFields' => null,
6163
'storeHash' => null,
6264
'channel' => null,
@@ -90,6 +92,7 @@ class SourceInput extends AbstractModel implements ModelInterface, \ArrayAccess,
9092
'url' => 'url',
9193
'projectKey' => 'projectKey',
9294
'fallbackIsInStockValue' => 'fallbackIsInStockValue',
95+
'productQueryPredicate' => 'productQueryPredicate',
9396
'customFields' => 'customFields',
9497
'storeHash' => 'storeHash',
9598
'channel' => 'channel',
@@ -122,6 +125,7 @@ class SourceInput extends AbstractModel implements ModelInterface, \ArrayAccess,
122125
'url' => 'setUrl',
123126
'projectKey' => 'setProjectKey',
124127
'fallbackIsInStockValue' => 'setFallbackIsInStockValue',
128+
'productQueryPredicate' => 'setProductQueryPredicate',
125129
'customFields' => 'setCustomFields',
126130
'storeHash' => 'setStoreHash',
127131
'channel' => 'setChannel',
@@ -154,6 +158,7 @@ class SourceInput extends AbstractModel implements ModelInterface, \ArrayAccess,
154158
'url' => 'getUrl',
155159
'projectKey' => 'getProjectKey',
156160
'fallbackIsInStockValue' => 'getFallbackIsInStockValue',
161+
'productQueryPredicate' => 'getProductQueryPredicate',
157162
'customFields' => 'getCustomFields',
158163
'storeHash' => 'getStoreHash',
159164
'channel' => 'getChannel',
@@ -204,6 +209,9 @@ public function __construct(?array $data = null)
204209
if (isset($data['fallbackIsInStockValue'])) {
205210
$this->container['fallbackIsInStockValue'] = $data['fallbackIsInStockValue'];
206211
}
212+
if (isset($data['productQueryPredicate'])) {
213+
$this->container['productQueryPredicate'] = $data['productQueryPredicate'];
214+
}
207215
if (isset($data['customFields'])) {
208216
$this->container['customFields'] = $data['customFields'];
209217
}
@@ -485,6 +493,30 @@ public function setFallbackIsInStockValue($fallbackIsInStockValue)
485493
return $this;
486494
}
487495

496+
/**
497+
* Gets productQueryPredicate.
498+
*
499+
* @return null|string
500+
*/
501+
public function getProductQueryPredicate()
502+
{
503+
return $this->container['productQueryPredicate'] ?? null;
504+
}
505+
506+
/**
507+
* Sets productQueryPredicate.
508+
*
509+
* @param null|string $productQueryPredicate Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
510+
*
511+
* @return self
512+
*/
513+
public function setProductQueryPredicate($productQueryPredicate)
514+
{
515+
$this->container['productQueryPredicate'] = $productQueryPredicate;
516+
517+
return $this;
518+
}
519+
488520
/**
489521
* Gets customFields.
490522
*

lib/Model/Ingestion/SourceUpdateCommercetools.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class SourceUpdateCommercetools extends AbstractModel implements ModelInterface,
2424
'locales' => 'string[]',
2525
'url' => 'string',
2626
'fallbackIsInStockValue' => 'bool',
27+
'productQueryPredicate' => 'string',
2728
'customFields' => '\Algolia\AlgoliaSearch\Model\Ingestion\CommercetoolsCustomFields',
2829
];
2930

@@ -37,6 +38,7 @@ class SourceUpdateCommercetools extends AbstractModel implements ModelInterface,
3738
'locales' => null,
3839
'url' => null,
3940
'fallbackIsInStockValue' => null,
41+
'productQueryPredicate' => null,
4042
'customFields' => null,
4143
];
4244

@@ -51,6 +53,7 @@ class SourceUpdateCommercetools extends AbstractModel implements ModelInterface,
5153
'locales' => 'locales',
5254
'url' => 'url',
5355
'fallbackIsInStockValue' => 'fallbackIsInStockValue',
56+
'productQueryPredicate' => 'productQueryPredicate',
5457
'customFields' => 'customFields',
5558
];
5659

@@ -64,6 +67,7 @@ class SourceUpdateCommercetools extends AbstractModel implements ModelInterface,
6467
'locales' => 'setLocales',
6568
'url' => 'setUrl',
6669
'fallbackIsInStockValue' => 'setFallbackIsInStockValue',
70+
'productQueryPredicate' => 'setProductQueryPredicate',
6771
'customFields' => 'setCustomFields',
6872
];
6973

@@ -77,6 +81,7 @@ class SourceUpdateCommercetools extends AbstractModel implements ModelInterface,
7781
'locales' => 'getLocales',
7882
'url' => 'getUrl',
7983
'fallbackIsInStockValue' => 'getFallbackIsInStockValue',
84+
'productQueryPredicate' => 'getProductQueryPredicate',
8085
'customFields' => 'getCustomFields',
8186
];
8287

@@ -106,6 +111,9 @@ public function __construct(?array $data = null)
106111
if (isset($data['fallbackIsInStockValue'])) {
107112
$this->container['fallbackIsInStockValue'] = $data['fallbackIsInStockValue'];
108113
}
114+
if (isset($data['productQueryPredicate'])) {
115+
$this->container['productQueryPredicate'] = $data['productQueryPredicate'];
116+
}
109117
if (isset($data['customFields'])) {
110118
$this->container['customFields'] = $data['customFields'];
111119
}
@@ -279,6 +287,30 @@ public function setFallbackIsInStockValue($fallbackIsInStockValue)
279287
return $this;
280288
}
281289

290+
/**
291+
* Gets productQueryPredicate.
292+
*
293+
* @return null|string
294+
*/
295+
public function getProductQueryPredicate()
296+
{
297+
return $this->container['productQueryPredicate'] ?? null;
298+
}
299+
300+
/**
301+
* Sets productQueryPredicate.
302+
*
303+
* @param null|string $productQueryPredicate Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
304+
*
305+
* @return self
306+
*/
307+
public function setProductQueryPredicate($productQueryPredicate)
308+
{
309+
$this->container['productQueryPredicate'] = $productQueryPredicate;
310+
311+
return $this;
312+
}
313+
282314
/**
283315
* Gets customFields.
284316
*

lib/Model/Ingestion/SourceUpdateInput.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class SourceUpdateInput extends AbstractModel implements ModelInterface, \ArrayA
2424
'locales' => 'string[]',
2525
'url' => 'string',
2626
'fallbackIsInStockValue' => 'bool',
27+
'productQueryPredicate' => 'string',
2728
'customFields' => '\Algolia\AlgoliaSearch\Model\Ingestion\CommercetoolsCustomFields',
2829
'uniqueIDColumn' => 'string',
2930
'method' => '\Algolia\AlgoliaSearch\Model\Ingestion\MethodType',
@@ -49,6 +50,7 @@ class SourceUpdateInput extends AbstractModel implements ModelInterface, \ArrayA
4950
'locales' => null,
5051
'url' => null,
5152
'fallbackIsInStockValue' => null,
53+
'productQueryPredicate' => null,
5254
'customFields' => null,
5355
'uniqueIDColumn' => null,
5456
'method' => null,
@@ -75,6 +77,7 @@ class SourceUpdateInput extends AbstractModel implements ModelInterface, \ArrayA
7577
'locales' => 'locales',
7678
'url' => 'url',
7779
'fallbackIsInStockValue' => 'fallbackIsInStockValue',
80+
'productQueryPredicate' => 'productQueryPredicate',
7881
'customFields' => 'customFields',
7982
'uniqueIDColumn' => 'uniqueIDColumn',
8083
'method' => 'method',
@@ -100,6 +103,7 @@ class SourceUpdateInput extends AbstractModel implements ModelInterface, \ArrayA
100103
'locales' => 'setLocales',
101104
'url' => 'setUrl',
102105
'fallbackIsInStockValue' => 'setFallbackIsInStockValue',
106+
'productQueryPredicate' => 'setProductQueryPredicate',
103107
'customFields' => 'setCustomFields',
104108
'uniqueIDColumn' => 'setUniqueIDColumn',
105109
'method' => 'setMethod',
@@ -125,6 +129,7 @@ class SourceUpdateInput extends AbstractModel implements ModelInterface, \ArrayA
125129
'locales' => 'getLocales',
126130
'url' => 'getUrl',
127131
'fallbackIsInStockValue' => 'getFallbackIsInStockValue',
132+
'productQueryPredicate' => 'getProductQueryPredicate',
128133
'customFields' => 'getCustomFields',
129134
'uniqueIDColumn' => 'getUniqueIDColumn',
130135
'method' => 'getMethod',
@@ -166,6 +171,9 @@ public function __construct(?array $data = null)
166171
if (isset($data['fallbackIsInStockValue'])) {
167172
$this->container['fallbackIsInStockValue'] = $data['fallbackIsInStockValue'];
168173
}
174+
if (isset($data['productQueryPredicate'])) {
175+
$this->container['productQueryPredicate'] = $data['productQueryPredicate'];
176+
}
169177
if (isset($data['customFields'])) {
170178
$this->container['customFields'] = $data['customFields'];
171179
}
@@ -393,6 +401,30 @@ public function setFallbackIsInStockValue($fallbackIsInStockValue)
393401
return $this;
394402
}
395403

404+
/**
405+
* Gets productQueryPredicate.
406+
*
407+
* @return null|string
408+
*/
409+
public function getProductQueryPredicate()
410+
{
411+
return $this->container['productQueryPredicate'] ?? null;
412+
}
413+
414+
/**
415+
* Sets productQueryPredicate.
416+
*
417+
* @param null|string $productQueryPredicate Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
418+
*
419+
* @return self
420+
*/
421+
public function setProductQueryPredicate($productQueryPredicate)
422+
{
423+
$this->container['productQueryPredicate'] = $productQueryPredicate;
424+
425+
return $this;
426+
}
427+
396428
/**
397429
* Gets customFields.
398430
*

0 commit comments

Comments
 (0)