Skip to content

Commit 0d4bb1d

Browse files
algolia-botsbellonemillotp
committed
feat(specs): add useImagesObjects property in commercetools source input (generated)
algolia/api-clients-automation#5586 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Sylvain Bellone <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 96f1c49 commit 0d4bb1d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

algoliasearch/Models/Ingestion/SourceCommercetools.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public SourceCommercetools(string url, string projectKey)
7272
[JsonPropertyName("productQueryPredicate")]
7373
public string ProductQueryPredicate { get; set; }
7474

75+
/// <summary>
76+
/// When set to true, the connector indexes objects with all images attributes instead of only the URLs.
77+
/// </summary>
78+
/// <value>When set to true, the connector indexes objects with all images attributes instead of only the URLs. </value>
79+
[JsonPropertyName("useImagesObjects")]
80+
public bool? UseImagesObjects { get; set; }
81+
7582
/// <summary>
7683
/// Gets or Sets CustomFields
7784
/// </summary>
@@ -92,6 +99,7 @@ public override string ToString()
9299
sb.Append(" ProjectKey: ").Append(ProjectKey).Append("\n");
93100
sb.Append(" FallbackIsInStockValue: ").Append(FallbackIsInStockValue).Append("\n");
94101
sb.Append(" ProductQueryPredicate: ").Append(ProductQueryPredicate).Append("\n");
102+
sb.Append(" UseImagesObjects: ").Append(UseImagesObjects).Append("\n");
95103
sb.Append(" CustomFields: ").Append(CustomFields).Append("\n");
96104
sb.Append("}\n");
97105
return sb.ToString();
@@ -141,6 +149,10 @@ public override bool Equals(object obj)
141149
ProductQueryPredicate != null && ProductQueryPredicate.Equals(input.ProductQueryPredicate)
142150
)
143151
)
152+
&& (
153+
UseImagesObjects == input.UseImagesObjects
154+
|| UseImagesObjects.Equals(input.UseImagesObjects)
155+
)
144156
&& (
145157
CustomFields == input.CustomFields
146158
|| (CustomFields != null && CustomFields.Equals(input.CustomFields))
@@ -177,6 +189,7 @@ public override int GetHashCode()
177189
{
178190
hashCode = (hashCode * 59) + ProductQueryPredicate.GetHashCode();
179191
}
192+
hashCode = (hashCode * 59) + UseImagesObjects.GetHashCode();
180193
if (CustomFields != null)
181194
{
182195
hashCode = (hashCode * 59) + CustomFields.GetHashCode();

algoliasearch/Models/Ingestion/SourceUpdateCommercetools.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public SourceUpdateCommercetools() { }
5454
[JsonPropertyName("productQueryPredicate")]
5555
public string ProductQueryPredicate { get; set; }
5656

57+
/// <summary>
58+
/// When set to true, the connector indexes objects with all images attributes instead of only the URLs.
59+
/// </summary>
60+
/// <value>When set to true, the connector indexes objects with all images attributes instead of only the URLs. </value>
61+
[JsonPropertyName("useImagesObjects")]
62+
public bool? UseImagesObjects { get; set; }
63+
5764
/// <summary>
5865
/// Gets or Sets CustomFields
5966
/// </summary>
@@ -73,6 +80,7 @@ public override string ToString()
7380
sb.Append(" Url: ").Append(Url).Append("\n");
7481
sb.Append(" FallbackIsInStockValue: ").Append(FallbackIsInStockValue).Append("\n");
7582
sb.Append(" ProductQueryPredicate: ").Append(ProductQueryPredicate).Append("\n");
83+
sb.Append(" UseImagesObjects: ").Append(UseImagesObjects).Append("\n");
7684
sb.Append(" CustomFields: ").Append(CustomFields).Append("\n");
7785
sb.Append("}\n");
7886
return sb.ToString();
@@ -118,6 +126,10 @@ public override bool Equals(object obj)
118126
ProductQueryPredicate != null && ProductQueryPredicate.Equals(input.ProductQueryPredicate)
119127
)
120128
)
129+
&& (
130+
UseImagesObjects == input.UseImagesObjects
131+
|| UseImagesObjects.Equals(input.UseImagesObjects)
132+
)
121133
&& (
122134
CustomFields == input.CustomFields
123135
|| (CustomFields != null && CustomFields.Equals(input.CustomFields))
@@ -150,6 +162,7 @@ public override int GetHashCode()
150162
{
151163
hashCode = (hashCode * 59) + ProductQueryPredicate.GetHashCode();
152164
}
165+
hashCode = (hashCode * 59) + UseImagesObjects.GetHashCode();
153166
if (CustomFields != null)
154167
{
155168
hashCode = (hashCode * 59) + CustomFields.GetHashCode();

0 commit comments

Comments
 (0)