Skip to content

Commit a41af1b

Browse files
committed
build(codegen): updating SDK
1 parent 5038b61 commit a41af1b

File tree

13 files changed

+158
-4
lines changed

13 files changed

+158
-4
lines changed

changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<details>
3030
<summary>Added Property(s)</summary>
3131

32+
- added property `sku` to type `InventoryEntryQuantitySetMessage`
33+
- added property `sku` to type `InventoryEntryQuantitySetMessagePayload`
3234
- added property `discounts` to type `Project`
3335
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
3436
</details>

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5322,6 +5322,7 @@ type InventoryEntryQuantitySet implements MessagePayload {
53225322
newQuantityOnStock: Long!
53235323
oldAvailableQuantity: Long!
53245324
newAvailableQuantity: Long!
5325+
sku: String
53255326
supplyChannel: Channel
53265327
supplyChannelRef: Reference
53275328
type: String!

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessage.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ public interface InventoryEntryQuantitySetMessage extends Message {
8181
@JsonProperty("newAvailableQuantity")
8282
public Long getNewAvailableQuantity();
8383

84+
/**
85+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
86+
* @return sku
87+
*/
88+
89+
@JsonProperty("sku")
90+
public String getSku();
91+
8492
/**
8593
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
8694
* @return supplyChannel
@@ -117,6 +125,13 @@ public interface InventoryEntryQuantitySetMessage extends Message {
117125

118126
public void setNewAvailableQuantity(final Long newAvailableQuantity);
119127

128+
/**
129+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
130+
* @param sku value to be set
131+
*/
132+
133+
public void setSku(final String sku);
134+
120135
/**
121136
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
122137
* @param supplyChannel value to be set
@@ -153,6 +168,7 @@ public static InventoryEntryQuantitySetMessage of(final InventoryEntryQuantitySe
153168
instance.setNewQuantityOnStock(template.getNewQuantityOnStock());
154169
instance.setOldAvailableQuantity(template.getOldAvailableQuantity());
155170
instance.setNewAvailableQuantity(template.getNewAvailableQuantity());
171+
instance.setSku(template.getSku());
156172
instance.setSupplyChannel(template.getSupplyChannel());
157173
return instance;
158174
}
@@ -186,6 +202,7 @@ public static InventoryEntryQuantitySetMessage deepCopy(@Nullable final Inventor
186202
instance.setNewQuantityOnStock(template.getNewQuantityOnStock());
187203
instance.setOldAvailableQuantity(template.getOldAvailableQuantity());
188204
instance.setNewAvailableQuantity(template.getNewAvailableQuantity());
205+
instance.setSku(template.getSku());
189206
instance.setSupplyChannel(
190207
com.commercetools.api.models.channel.ChannelReference.deepCopy(template.getSupplyChannel()));
191208
return instance;

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageBuilder.java

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public class InventoryEntryQuantitySetMessageBuilder implements Builder<Inventor
6565

6666
private Long newAvailableQuantity;
6767

68+
@Nullable
69+
private String sku;
70+
6871
@Nullable
6972
private com.commercetools.api.models.channel.ChannelReference supplyChannel;
7073

@@ -313,6 +316,17 @@ public InventoryEntryQuantitySetMessageBuilder newAvailableQuantity(final Long n
313316
return this;
314317
}
315318

319+
/**
320+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
321+
* @param sku value to be set
322+
* @return Builder
323+
*/
324+
325+
public InventoryEntryQuantitySetMessageBuilder sku(@Nullable final String sku) {
326+
this.sku = sku;
327+
return this;
328+
}
329+
316330
/**
317331
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
318332
* @param builder function to build the supplyChannel value
@@ -478,6 +492,16 @@ public Long getNewAvailableQuantity() {
478492
return this.newAvailableQuantity;
479493
}
480494

495+
/**
496+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
497+
* @return sku
498+
*/
499+
500+
@Nullable
501+
public String getSku() {
502+
return this.sku;
503+
}
504+
481505
/**
482506
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
483507
* @return supplyChannel
@@ -511,7 +535,7 @@ public InventoryEntryQuantitySetMessage build() {
511535
InventoryEntryQuantitySetMessage.class + ": newAvailableQuantity is missing");
512536
return new InventoryEntryQuantitySetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy,
513537
createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, oldQuantityOnStock,
514-
newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, supplyChannel);
538+
newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel);
515539
}
516540

517541
/**
@@ -521,7 +545,7 @@ public InventoryEntryQuantitySetMessage build() {
521545
public InventoryEntryQuantitySetMessage buildUnchecked() {
522546
return new InventoryEntryQuantitySetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy,
523547
createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, oldQuantityOnStock,
524-
newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, supplyChannel);
548+
newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel);
525549
}
526550

527551
/**
@@ -553,6 +577,7 @@ public static InventoryEntryQuantitySetMessageBuilder of(final InventoryEntryQua
553577
builder.newQuantityOnStock = template.getNewQuantityOnStock();
554578
builder.oldAvailableQuantity = template.getOldAvailableQuantity();
555579
builder.newAvailableQuantity = template.getNewAvailableQuantity();
580+
builder.sku = template.getSku();
556581
builder.supplyChannel = template.getSupplyChannel();
557582
return builder;
558583
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageImpl.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public class InventoryEntryQuantitySetMessageImpl implements InventoryEntryQuant
5252

5353
private Long newAvailableQuantity;
5454

55+
private String sku;
56+
5557
private com.commercetools.api.models.channel.ChannelReference supplyChannel;
5658

5759
/**
@@ -72,6 +74,7 @@ public class InventoryEntryQuantitySetMessageImpl implements InventoryEntryQuant
7274
@JsonProperty("newQuantityOnStock") final Long newQuantityOnStock,
7375
@JsonProperty("oldAvailableQuantity") final Long oldAvailableQuantity,
7476
@JsonProperty("newAvailableQuantity") final Long newAvailableQuantity,
77+
@JsonProperty("sku") final String sku,
7578
@JsonProperty("supplyChannel") final com.commercetools.api.models.channel.ChannelReference supplyChannel) {
7679
this.id = id;
7780
this.version = version;
@@ -87,6 +90,7 @@ public class InventoryEntryQuantitySetMessageImpl implements InventoryEntryQuant
8790
this.newQuantityOnStock = newQuantityOnStock;
8891
this.oldAvailableQuantity = oldAvailableQuantity;
8992
this.newAvailableQuantity = newAvailableQuantity;
93+
this.sku = sku;
9094
this.supplyChannel = supplyChannel;
9195
this.type = INVENTORY_ENTRY_QUANTITY_SET;
9296
}
@@ -218,6 +222,14 @@ public Long getNewAvailableQuantity() {
218222
return this.newAvailableQuantity;
219223
}
220224

225+
/**
226+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
227+
*/
228+
229+
public String getSku() {
230+
return this.sku;
231+
}
232+
221233
/**
222234
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
223235
*/
@@ -283,6 +295,10 @@ public void setNewAvailableQuantity(final Long newAvailableQuantity) {
283295
this.newAvailableQuantity = newAvailableQuantity;
284296
}
285297

298+
public void setSku(final String sku) {
299+
this.sku = sku;
300+
}
301+
286302
public void setSupplyChannel(final com.commercetools.api.models.channel.ChannelReference supplyChannel) {
287303
this.supplyChannel = supplyChannel;
288304
}
@@ -312,6 +328,7 @@ public boolean equals(Object o) {
312328
.append(newQuantityOnStock, that.newQuantityOnStock)
313329
.append(oldAvailableQuantity, that.oldAvailableQuantity)
314330
.append(newAvailableQuantity, that.newAvailableQuantity)
331+
.append(sku, that.sku)
315332
.append(supplyChannel, that.supplyChannel)
316333
.append(id, that.id)
317334
.append(version, that.version)
@@ -328,6 +345,7 @@ public boolean equals(Object o) {
328345
.append(newQuantityOnStock, that.newQuantityOnStock)
329346
.append(oldAvailableQuantity, that.oldAvailableQuantity)
330347
.append(newAvailableQuantity, that.newAvailableQuantity)
348+
.append(sku, that.sku)
331349
.append(supplyChannel, that.supplyChannel)
332350
.isEquals();
333351
}
@@ -349,6 +367,7 @@ public int hashCode() {
349367
.append(newQuantityOnStock)
350368
.append(oldAvailableQuantity)
351369
.append(newAvailableQuantity)
370+
.append(sku)
352371
.append(supplyChannel)
353372
.toHashCode();
354373
}
@@ -370,6 +389,7 @@ public String toString() {
370389
.append("newQuantityOnStock", newQuantityOnStock)
371390
.append("oldAvailableQuantity", oldAvailableQuantity)
372391
.append("newAvailableQuantity", newAvailableQuantity)
392+
.append("sku", sku)
373393
.append("supplyChannel", supplyChannel)
374394
.build();
375395
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayload.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ public interface InventoryEntryQuantitySetMessagePayload extends MessagePayload
7474
@JsonProperty("newAvailableQuantity")
7575
public Long getNewAvailableQuantity();
7676

77+
/**
78+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
79+
* @return sku
80+
*/
81+
82+
@JsonProperty("sku")
83+
public String getSku();
84+
7785
/**
7886
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
7987
* @return supplyChannel
@@ -110,6 +118,13 @@ public interface InventoryEntryQuantitySetMessagePayload extends MessagePayload
110118

111119
public void setNewAvailableQuantity(final Long newAvailableQuantity);
112120

121+
/**
122+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
123+
* @param sku value to be set
124+
*/
125+
126+
public void setSku(final String sku);
127+
113128
/**
114129
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
115130
* @param supplyChannel value to be set
@@ -136,6 +151,7 @@ public static InventoryEntryQuantitySetMessagePayload of(final InventoryEntryQua
136151
instance.setNewQuantityOnStock(template.getNewQuantityOnStock());
137152
instance.setOldAvailableQuantity(template.getOldAvailableQuantity());
138153
instance.setNewAvailableQuantity(template.getNewAvailableQuantity());
154+
instance.setSku(template.getSku());
139155
instance.setSupplyChannel(template.getSupplyChannel());
140156
return instance;
141157
}
@@ -158,6 +174,7 @@ public static InventoryEntryQuantitySetMessagePayload deepCopy(
158174
instance.setNewQuantityOnStock(template.getNewQuantityOnStock());
159175
instance.setOldAvailableQuantity(template.getOldAvailableQuantity());
160176
instance.setNewAvailableQuantity(template.getNewAvailableQuantity());
177+
instance.setSku(template.getSku());
161178
instance.setSupplyChannel(
162179
com.commercetools.api.models.channel.ChannelReference.deepCopy(template.getSupplyChannel()));
163180
return instance;

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadBuilder.java

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public class InventoryEntryQuantitySetMessagePayloadBuilder
3636

3737
private Long newAvailableQuantity;
3838

39+
@Nullable
40+
private String sku;
41+
3942
@Nullable
4043
private com.commercetools.api.models.channel.ChannelReference supplyChannel;
4144

@@ -83,6 +86,17 @@ public InventoryEntryQuantitySetMessagePayloadBuilder newAvailableQuantity(final
8386
return this;
8487
}
8588

89+
/**
90+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
91+
* @param sku value to be set
92+
* @return Builder
93+
*/
94+
95+
public InventoryEntryQuantitySetMessagePayloadBuilder sku(@Nullable final String sku) {
96+
this.sku = sku;
97+
return this;
98+
}
99+
86100
/**
87101
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
88102
* @param builder function to build the supplyChannel value
@@ -155,6 +169,16 @@ public Long getNewAvailableQuantity() {
155169
return this.newAvailableQuantity;
156170
}
157171

172+
/**
173+
* <p>SKU of the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> for which the quantity was updated.</p>
174+
* @return sku
175+
*/
176+
177+
@Nullable
178+
public String getSku() {
179+
return this.sku;
180+
}
181+
158182
/**
159183
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Reference" rel="nofollow">Reference</a> to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Channel" rel="nofollow">Channel</a> where the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntry" rel="nofollow">InventoryEntry</a> quantity was set.</p>
160184
* @return supplyChannel
@@ -179,7 +203,7 @@ public InventoryEntryQuantitySetMessagePayload build() {
179203
Objects.requireNonNull(newAvailableQuantity,
180204
InventoryEntryQuantitySetMessagePayload.class + ": newAvailableQuantity is missing");
181205
return new InventoryEntryQuantitySetMessagePayloadImpl(oldQuantityOnStock, newQuantityOnStock,
182-
oldAvailableQuantity, newAvailableQuantity, supplyChannel);
206+
oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel);
183207
}
184208

185209
/**
@@ -188,7 +212,7 @@ public InventoryEntryQuantitySetMessagePayload build() {
188212
*/
189213
public InventoryEntryQuantitySetMessagePayload buildUnchecked() {
190214
return new InventoryEntryQuantitySetMessagePayloadImpl(oldQuantityOnStock, newQuantityOnStock,
191-
oldAvailableQuantity, newAvailableQuantity, supplyChannel);
215+
oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel);
192216
}
193217

194218
/**
@@ -211,6 +235,7 @@ public static InventoryEntryQuantitySetMessagePayloadBuilder of(
211235
builder.newQuantityOnStock = template.getNewQuantityOnStock();
212236
builder.oldAvailableQuantity = template.getOldAvailableQuantity();
213237
builder.newAvailableQuantity = template.getNewAvailableQuantity();
238+
builder.sku = template.getSku();
214239
builder.supplyChannel = template.getSupplyChannel();
215240
return builder;
216241
}

0 commit comments

Comments
 (0)