Skip to content

Commit c24d4db

Browse files
committed
build(codegen): updating SDK
1 parent 9b49f2e commit c24d4db

File tree

14 files changed

+816
-30
lines changed

14 files changed

+816
-30
lines changed

changes.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
**Api changes**
22

3+
<details>
4+
<summary>Changed Property(s)</summary>
5+
6+
- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue`
7+
</details>
8+
9+
10+
<details>
11+
<summary>Added Property(s)</summary>
12+
13+
- added property `businessUnits` to type `SearchIndexingConfiguration`
14+
</details>
15+
16+
317
<details>
418
<summary>Added Resource(s)</summary>
519

@@ -28,12 +42,6 @@
2842
- added type `BusinessUnitSearchResult`
2943
- added type `BusinessUnitSearchStatus`
3044
- added type `ProjectChangeBusinessUnitSearchStatusAction`
31-
</details>
32-
33-
34-
<details>
35-
<summary>Added Property(s)</summary>
36-
37-
- added property `businessUnits` to type `SearchIndexingConfiguration`
45+
- added type `SearchExactValue`
3846
</details>
3947

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpression.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public interface SearchExactExpression extends SearchQueryExpression {
3939
@NotNull
4040
@Valid
4141
@JsonProperty("exact")
42-
public SearchAnyValue getExact();
42+
public SearchExactValue getExact();
4343

4444
/**
4545
* set exact
4646
* @param exact value to be set
4747
*/
4848

49-
public void setExact(final SearchAnyValue exact);
49+
public void setExact(final SearchExactValue exact);
5050

5151
/**
5252
* factory method
@@ -78,7 +78,7 @@ public static SearchExactExpression deepCopy(@Nullable final SearchExactExpressi
7878
return null;
7979
}
8080
SearchExactExpressionImpl instance = new SearchExactExpressionImpl();
81-
instance.setExact(com.commercetools.api.models.search.SearchAnyValue.deepCopy(template.getExact()));
81+
instance.setExact(com.commercetools.api.models.search.SearchExactValue.deepCopy(template.getExact()));
8282
return instance;
8383
}
8484

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class SearchExactExpressionBuilder implements Builder<SearchExactExpression> {
2424

25-
private com.commercetools.api.models.search.SearchAnyValue exact;
25+
private com.commercetools.api.models.search.SearchExactValue exact;
2626

2727
/**
2828
* set the value to the exact using the builder function
@@ -31,8 +31,8 @@ public class SearchExactExpressionBuilder implements Builder<SearchExactExpressi
3131
*/
3232

3333
public SearchExactExpressionBuilder exact(
34-
Function<com.commercetools.api.models.search.SearchAnyValueBuilder, com.commercetools.api.models.search.SearchAnyValueBuilder> builder) {
35-
this.exact = builder.apply(com.commercetools.api.models.search.SearchAnyValueBuilder.of()).build();
34+
Function<com.commercetools.api.models.search.SearchExactValueBuilder, com.commercetools.api.models.search.SearchExactValueBuilder> builder) {
35+
this.exact = builder.apply(com.commercetools.api.models.search.SearchExactValueBuilder.of()).build();
3636
return this;
3737
}
3838

@@ -43,8 +43,8 @@ public SearchExactExpressionBuilder exact(
4343
*/
4444

4545
public SearchExactExpressionBuilder withExact(
46-
Function<com.commercetools.api.models.search.SearchAnyValueBuilder, com.commercetools.api.models.search.SearchAnyValue> builder) {
47-
this.exact = builder.apply(com.commercetools.api.models.search.SearchAnyValueBuilder.of());
46+
Function<com.commercetools.api.models.search.SearchExactValueBuilder, com.commercetools.api.models.search.SearchExactValue> builder) {
47+
this.exact = builder.apply(com.commercetools.api.models.search.SearchExactValueBuilder.of());
4848
return this;
4949
}
5050

@@ -54,7 +54,7 @@ public SearchExactExpressionBuilder withExact(
5454
* @return Builder
5555
*/
5656

57-
public SearchExactExpressionBuilder exact(final com.commercetools.api.models.search.SearchAnyValue exact) {
57+
public SearchExactExpressionBuilder exact(final com.commercetools.api.models.search.SearchExactValue exact) {
5858
this.exact = exact;
5959
return this;
6060
}
@@ -64,7 +64,7 @@ public SearchExactExpressionBuilder exact(final com.commercetools.api.models.sea
6464
* @return exact
6565
*/
6666

67-
public com.commercetools.api.models.search.SearchAnyValue getExact() {
67+
public com.commercetools.api.models.search.SearchExactValue getExact() {
6868
return this.exact;
6969
}
7070

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class SearchExactExpressionImpl implements SearchExactExpression, ModelBase {
2424

25-
private com.commercetools.api.models.search.SearchAnyValue exact;
25+
private com.commercetools.api.models.search.SearchExactValue exact;
2626

2727
/**
2828
* create instance with all properties
2929
*/
3030
@JsonCreator
31-
SearchExactExpressionImpl(@JsonProperty("exact") final com.commercetools.api.models.search.SearchAnyValue exact) {
31+
SearchExactExpressionImpl(@JsonProperty("exact") final com.commercetools.api.models.search.SearchExactValue exact) {
3232
this.exact = exact;
3333
}
3434

@@ -42,11 +42,11 @@ public SearchExactExpressionImpl() {
4242
*
4343
*/
4444

45-
public com.commercetools.api.models.search.SearchAnyValue getExact() {
45+
public com.commercetools.api.models.search.SearchExactValue getExact() {
4646
return this.exact;
4747
}
4848

49-
public void setExact(final com.commercetools.api.models.search.SearchAnyValue exact) {
49+
public void setExact(final com.commercetools.api.models.search.SearchExactValue exact) {
5050
this.exact = exact;
5151
}
5252

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
2+
package com.commercetools.api.models.search;
3+
4+
import java.time.*;
5+
import java.util.*;
6+
import java.util.function.Function;
7+
8+
import javax.annotation.Nullable;
9+
10+
import com.fasterxml.jackson.annotation.*;
11+
import com.fasterxml.jackson.databind.annotation.*;
12+
13+
import io.vrap.rmf.base.client.utils.Generated;
14+
15+
/**
16+
* SearchExactValue
17+
*
18+
* <hr>
19+
* Example to create an instance using the builder pattern
20+
* <div class=code-example>
21+
* <pre><code class='java'>
22+
* SearchExactValue searchExactValue = SearchExactValue.builder()
23+
* .field("{field}")
24+
* .build()
25+
* </code></pre>
26+
* </div>
27+
*/
28+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
29+
@JsonDeserialize(as = SearchExactValueImpl.class)
30+
public interface SearchExactValue extends SearchQueryExpressionValue {
31+
32+
/**
33+
*
34+
* @return value
35+
*/
36+
37+
@JsonProperty("value")
38+
public Object getValue();
39+
40+
/**
41+
*
42+
* @return values
43+
*/
44+
45+
@JsonProperty("values")
46+
public List<Object> getValues();
47+
48+
/**
49+
* <p>String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: <code>en</code>, <code>en-US</code>, <code>zh-Hans-SG</code>.</p>
50+
* @return language
51+
*/
52+
53+
@JsonProperty("language")
54+
public String getLanguage();
55+
56+
/**
57+
*
58+
* @return caseInsensitive
59+
*/
60+
61+
@JsonProperty("caseInsensitive")
62+
public Boolean getCaseInsensitive();
63+
64+
/**
65+
* set value
66+
* @param value value to be set
67+
*/
68+
69+
public void setValue(final Object value);
70+
71+
/**
72+
* set values
73+
* @param values values to be set
74+
*/
75+
76+
@JsonIgnore
77+
public void setValues(final Object... values);
78+
79+
/**
80+
* set values
81+
* @param values values to be set
82+
*/
83+
84+
public void setValues(final List<Object> values);
85+
86+
/**
87+
* <p>String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: <code>en</code>, <code>en-US</code>, <code>zh-Hans-SG</code>.</p>
88+
* @param language value to be set
89+
*/
90+
91+
public void setLanguage(final String language);
92+
93+
/**
94+
* set caseInsensitive
95+
* @param caseInsensitive value to be set
96+
*/
97+
98+
public void setCaseInsensitive(final Boolean caseInsensitive);
99+
100+
/**
101+
* factory method
102+
* @return instance of SearchExactValue
103+
*/
104+
public static SearchExactValue of() {
105+
return new SearchExactValueImpl();
106+
}
107+
108+
/**
109+
* factory method to create a shallow copy SearchExactValue
110+
* @param template instance to be copied
111+
* @return copy instance
112+
*/
113+
public static SearchExactValue of(final SearchExactValue template) {
114+
SearchExactValueImpl instance = new SearchExactValueImpl();
115+
instance.setField(template.getField());
116+
instance.setBoost(template.getBoost());
117+
instance.setFieldType(template.getFieldType());
118+
instance.setValue(template.getValue());
119+
instance.setValues(template.getValues());
120+
instance.setLanguage(template.getLanguage());
121+
instance.setCaseInsensitive(template.getCaseInsensitive());
122+
return instance;
123+
}
124+
125+
/**
126+
* factory method to create a deep copy of SearchExactValue
127+
* @param template instance to be copied
128+
* @return copy instance
129+
*/
130+
@Nullable
131+
public static SearchExactValue deepCopy(@Nullable final SearchExactValue template) {
132+
if (template == null) {
133+
return null;
134+
}
135+
SearchExactValueImpl instance = new SearchExactValueImpl();
136+
instance.setField(template.getField());
137+
instance.setBoost(template.getBoost());
138+
instance.setFieldType(template.getFieldType());
139+
instance.setValue(template.getValue());
140+
instance.setValues(Optional.ofNullable(template.getValues()).map(ArrayList::new).orElse(null));
141+
instance.setLanguage(template.getLanguage());
142+
instance.setCaseInsensitive(template.getCaseInsensitive());
143+
return instance;
144+
}
145+
146+
/**
147+
* builder factory method for SearchExactValue
148+
* @return builder
149+
*/
150+
public static SearchExactValueBuilder builder() {
151+
return SearchExactValueBuilder.of();
152+
}
153+
154+
/**
155+
* create builder for SearchExactValue instance
156+
* @param template instance with prefilled values for the builder
157+
* @return builder
158+
*/
159+
public static SearchExactValueBuilder builder(final SearchExactValue template) {
160+
return SearchExactValueBuilder.of(template);
161+
}
162+
163+
/**
164+
* accessor map function
165+
* @param <T> mapped type
166+
* @param helper function to map the object
167+
* @return mapped value
168+
*/
169+
default <T> T withSearchExactValue(Function<SearchExactValue, T> helper) {
170+
return helper.apply(this);
171+
}
172+
173+
/**
174+
* gives a TypeReference for usage with Jackson DataBind
175+
* @return TypeReference
176+
*/
177+
public static com.fasterxml.jackson.core.type.TypeReference<SearchExactValue> typeReference() {
178+
return new com.fasterxml.jackson.core.type.TypeReference<SearchExactValue>() {
179+
@Override
180+
public String toString() {
181+
return "TypeReference<SearchExactValue>";
182+
}
183+
};
184+
}
185+
}

0 commit comments

Comments
 (0)