Skip to content

Commit 6f653ba

Browse files
committed
build(codegen): updating SDK
1 parent d752133 commit 6f653ba

File tree

1,055 files changed

+80673
-7139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,055 files changed

+80673
-7139
lines changed

changes.md

Lines changed: 547 additions & 0 deletions
Large diffs are not rendered by default.

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/CustomLineItemReturnItemBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public CustomLineItemReturnItemBuilder lastModifiedAt(final java.time.ZonedDateT
173173
}
174174

175175
/**
176-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
176+
* <p>Date and time (UTC) the Return Item was initially created.</p>
177177
* @param createdAt value to be set
178178
* @return Builder
179179
*/
@@ -274,7 +274,7 @@ public java.time.ZonedDateTime getLastModifiedAt() {
274274
}
275275

276276
/**
277-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
277+
* <p>Date and time (UTC) the Return Item was initially created.</p>
278278
* @return createdAt
279279
*/
280280

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/CustomLineItemReturnItemImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public java.time.ZonedDateTime getLastModifiedAt() {
153153
}
154154

155155
/**
156-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
156+
* <p>Date and time (UTC) the Return Item was initially created.</p>
157157
*/
158158

159159
public java.time.ZonedDateTime getCreatedAt() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public LineItemReturnItemBuilder lastModifiedAt(final java.time.ZonedDateTime la
172172
}
173173

174174
/**
175-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
175+
* <p>Date and time (UTC) the Return Item was initially created.</p>
176176
* @param createdAt value to be set
177177
* @return Builder
178178
*/
@@ -273,7 +273,7 @@ public java.time.ZonedDateTime getLastModifiedAt() {
273273
}
274274

275275
/**
276-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
276+
* <p>Date and time (UTC) the Return Item was initially created.</p>
277277
* @return createdAt
278278
*/
279279

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public java.time.ZonedDateTime getLastModifiedAt() {
153153
}
154154

155155
/**
156-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
156+
* <p>Date and time (UTC) the Return Item was initially created.</p>
157157
*/
158158

159159
public java.time.ZonedDateTime getCreatedAt() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public interface ReturnItem extends com.commercetools.api.models.Customizable<Re
118118
public ZonedDateTime getLastModifiedAt();
119119

120120
/**
121-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
121+
* <p>Date and time (UTC) the Return Item was initially created.</p>
122122
* @return createdAt
123123
*/
124124
@NotNull
@@ -186,7 +186,7 @@ public interface ReturnItem extends com.commercetools.api.models.Customizable<Re
186186
public void setLastModifiedAt(final ZonedDateTime lastModifiedAt);
187187

188188
/**
189-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
189+
* <p>Date and time (UTC) the Return Item was initially created.</p>
190190
* @param createdAt value to be set
191191
*/
192192

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItemImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public java.time.ZonedDateTime getLastModifiedAt() {
149149
}
150150

151151
/**
152-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
152+
* <p>Date and time (UTC) the Return Item was initially created.</p>
153153
*/
154154

155155
public java.time.ZonedDateTime getCreatedAt() {

commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAssetChange.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
* .change("{change}")
3232
* .previousValue(previousValueBuilder -> previousValueBuilder)
3333
* .nextValue(nextValueBuilder -> nextValueBuilder)
34+
* .catalogData("{catalogData}")
35+
* .variant("{variant}")
3436
* .build()
3537
* </code></pre>
3638
* </div>
@@ -79,6 +81,27 @@ public interface AddAssetChange extends Change {
7981
@JsonProperty("nextValue")
8082
public Asset getNextValue();
8183

84+
/**
85+
* <p>Product data that was updated.</p>
86+
* <ul>
87+
* <li><code>staged</code>, if the staged <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
88+
* <li><code>current</code>, if the current <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
89+
* </ul>
90+
* @return catalogData
91+
*/
92+
@NotNull
93+
@JsonProperty("catalogData")
94+
public String getCatalogData();
95+
96+
/**
97+
* <p>Identifier of the updated Product Variant.</p>
98+
* <p>This field holds the SKU, if defined; otherwise the key; otherwise the ID.</p>
99+
* @return variant
100+
*/
101+
@NotNull
102+
@JsonProperty("variant")
103+
public String getVariant();
104+
82105
/**
83106
* set change
84107
* @param change value to be set
@@ -100,6 +123,25 @@ public interface AddAssetChange extends Change {
100123

101124
public void setNextValue(final Asset nextValue);
102125

126+
/**
127+
* <p>Product data that was updated.</p>
128+
* <ul>
129+
* <li><code>staged</code>, if the staged <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
130+
* <li><code>current</code>, if the current <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
131+
* </ul>
132+
* @param catalogData value to be set
133+
*/
134+
135+
public void setCatalogData(final String catalogData);
136+
137+
/**
138+
* <p>Identifier of the updated Product Variant.</p>
139+
* <p>This field holds the SKU, if defined; otherwise the key; otherwise the ID.</p>
140+
* @param variant value to be set
141+
*/
142+
143+
public void setVariant(final String variant);
144+
103145
/**
104146
* factory method
105147
* @return instance of AddAssetChange
@@ -118,6 +160,8 @@ public static AddAssetChange of(final AddAssetChange template) {
118160
instance.setChange(template.getChange());
119161
instance.setPreviousValue(template.getPreviousValue());
120162
instance.setNextValue(template.getNextValue());
163+
instance.setCatalogData(template.getCatalogData());
164+
instance.setVariant(template.getVariant());
121165
return instance;
122166
}
123167

@@ -137,6 +181,8 @@ public static AddAssetChange deepCopy(@Nullable final AddAssetChange template) {
137181
instance.setChange(template.getChange());
138182
instance.setPreviousValue(com.commercetools.history.models.common.Asset.deepCopy(template.getPreviousValue()));
139183
instance.setNextValue(com.commercetools.history.models.common.Asset.deepCopy(template.getNextValue()));
184+
instance.setCatalogData(template.getCatalogData());
185+
instance.setVariant(template.getVariant());
140186
return instance;
141187
}
142188

commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAssetChangeBuilder.java

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* .change("{change}")
1818
* .previousValue(previousValueBuilder -> previousValueBuilder)
1919
* .nextValue(nextValueBuilder -> nextValueBuilder)
20+
* .catalogData("{catalogData}")
21+
* .variant("{variant}")
2022
* .build()
2123
* </code></pre>
2224
* </div>
@@ -30,6 +32,10 @@ public class AddAssetChangeBuilder implements Builder<AddAssetChange> {
3032

3133
private com.commercetools.history.models.common.Asset nextValue;
3234

35+
private String catalogData;
36+
37+
private String variant;
38+
3339
/**
3440
* set the value to the change
3541
* @param change value to be set
@@ -111,6 +117,33 @@ public AddAssetChangeBuilder nextValue(final com.commercetools.history.models.co
111117
return this;
112118
}
113119

120+
/**
121+
* <p>Product data that was updated.</p>
122+
* <ul>
123+
* <li><code>staged</code>, if the staged <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
124+
* <li><code>current</code>, if the current <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
125+
* </ul>
126+
* @param catalogData value to be set
127+
* @return Builder
128+
*/
129+
130+
public AddAssetChangeBuilder catalogData(final String catalogData) {
131+
this.catalogData = catalogData;
132+
return this;
133+
}
134+
135+
/**
136+
* <p>Identifier of the updated Product Variant.</p>
137+
* <p>This field holds the SKU, if defined; otherwise the key; otherwise the ID.</p>
138+
* @param variant value to be set
139+
* @return Builder
140+
*/
141+
142+
public AddAssetChangeBuilder variant(final String variant) {
143+
this.variant = variant;
144+
return this;
145+
}
146+
114147
/**
115148
* value of change}
116149
* @return change
@@ -138,6 +171,29 @@ public com.commercetools.history.models.common.Asset getNextValue() {
138171
return this.nextValue;
139172
}
140173

174+
/**
175+
* <p>Product data that was updated.</p>
176+
* <ul>
177+
* <li><code>staged</code>, if the staged <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
178+
* <li><code>current</code>, if the current <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
179+
* </ul>
180+
* @return catalogData
181+
*/
182+
183+
public String getCatalogData() {
184+
return this.catalogData;
185+
}
186+
187+
/**
188+
* <p>Identifier of the updated Product Variant.</p>
189+
* <p>This field holds the SKU, if defined; otherwise the key; otherwise the ID.</p>
190+
* @return variant
191+
*/
192+
193+
public String getVariant() {
194+
return this.variant;
195+
}
196+
141197
/**
142198
* builds AddAssetChange with checking for non-null required values
143199
* @return AddAssetChange
@@ -146,15 +202,17 @@ public AddAssetChange build() {
146202
Objects.requireNonNull(change, AddAssetChange.class + ": change is missing");
147203
Objects.requireNonNull(previousValue, AddAssetChange.class + ": previousValue is missing");
148204
Objects.requireNonNull(nextValue, AddAssetChange.class + ": nextValue is missing");
149-
return new AddAssetChangeImpl(change, previousValue, nextValue);
205+
Objects.requireNonNull(catalogData, AddAssetChange.class + ": catalogData is missing");
206+
Objects.requireNonNull(variant, AddAssetChange.class + ": variant is missing");
207+
return new AddAssetChangeImpl(change, previousValue, nextValue, catalogData, variant);
150208
}
151209

152210
/**
153211
* builds AddAssetChange without checking for non-null required values
154212
* @return AddAssetChange
155213
*/
156214
public AddAssetChange buildUnchecked() {
157-
return new AddAssetChangeImpl(change, previousValue, nextValue);
215+
return new AddAssetChangeImpl(change, previousValue, nextValue, catalogData, variant);
158216
}
159217

160218
/**
@@ -175,6 +233,8 @@ public static AddAssetChangeBuilder of(final AddAssetChange template) {
175233
builder.change = template.getChange();
176234
builder.previousValue = template.getPreviousValue();
177235
builder.nextValue = template.getNextValue();
236+
builder.catalogData = template.getCatalogData();
237+
builder.variant = template.getVariant();
178238
return builder;
179239
}
180240

commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAssetChangeImpl.java

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,23 @@ public class AddAssetChangeImpl implements AddAssetChange, ModelBase {
3434

3535
private com.commercetools.history.models.common.Asset nextValue;
3636

37+
private String catalogData;
38+
39+
private String variant;
40+
3741
/**
3842
* create instance with all properties
3943
*/
4044
@JsonCreator
4145
AddAssetChangeImpl(@JsonProperty("change") final String change,
4246
@JsonProperty("previousValue") final com.commercetools.history.models.common.Asset previousValue,
43-
@JsonProperty("nextValue") final com.commercetools.history.models.common.Asset nextValue) {
47+
@JsonProperty("nextValue") final com.commercetools.history.models.common.Asset nextValue,
48+
@JsonProperty("catalogData") final String catalogData, @JsonProperty("variant") final String variant) {
4449
this.change = change;
4550
this.previousValue = previousValue;
4651
this.nextValue = nextValue;
52+
this.catalogData = catalogData;
53+
this.variant = variant;
4754
this.type = ADD_ASSET_CHANGE;
4855
}
4956

@@ -86,6 +93,27 @@ public com.commercetools.history.models.common.Asset getNextValue() {
8693
return this.nextValue;
8794
}
8895

96+
/**
97+
* <p>Product data that was updated.</p>
98+
* <ul>
99+
* <li><code>staged</code>, if the staged <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
100+
* <li><code>current</code>, if the current <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductCatalogData" rel="nofollow">ProductCatalogData</a> was updated.</li>
101+
* </ul>
102+
*/
103+
104+
public String getCatalogData() {
105+
return this.catalogData;
106+
}
107+
108+
/**
109+
* <p>Identifier of the updated Product Variant.</p>
110+
* <p>This field holds the SKU, if defined; otherwise the key; otherwise the ID.</p>
111+
*/
112+
113+
public String getVariant() {
114+
return this.variant;
115+
}
116+
89117
public void setChange(final String change) {
90118
this.change = change;
91119
}
@@ -98,6 +126,14 @@ public void setNextValue(final com.commercetools.history.models.common.Asset nex
98126
this.nextValue = nextValue;
99127
}
100128

129+
public void setCatalogData(final String catalogData) {
130+
this.catalogData = catalogData;
131+
}
132+
133+
public void setVariant(final String variant) {
134+
this.variant = variant;
135+
}
136+
101137
@Override
102138
public boolean equals(Object o) {
103139
if (this == o)
@@ -112,10 +148,14 @@ public boolean equals(Object o) {
112148
.append(change, that.change)
113149
.append(previousValue, that.previousValue)
114150
.append(nextValue, that.nextValue)
151+
.append(catalogData, that.catalogData)
152+
.append(variant, that.variant)
115153
.append(type, that.type)
116154
.append(change, that.change)
117155
.append(previousValue, that.previousValue)
118156
.append(nextValue, that.nextValue)
157+
.append(catalogData, that.catalogData)
158+
.append(variant, that.variant)
119159
.isEquals();
120160
}
121161

@@ -125,6 +165,8 @@ public int hashCode() {
125165
.append(change)
126166
.append(previousValue)
127167
.append(nextValue)
168+
.append(catalogData)
169+
.append(variant)
128170
.toHashCode();
129171
}
130172

@@ -134,6 +176,8 @@ public String toString() {
134176
.append("change", change)
135177
.append("previousValue", previousValue)
136178
.append("nextValue", nextValue)
179+
.append("catalogData", catalogData)
180+
.append("variant", variant)
137181
.build();
138182
}
139183

0 commit comments

Comments
 (0)