Skip to content

Commit e4c5eea

Browse files
Merge pull request #699 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 708a5c5 + 0cd669e commit e4c5eea

File tree

10 files changed

+16
-152
lines changed

10 files changed

+16
-152
lines changed

changes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,12 @@
216216
- added type `ShippingMethodChangeActiveAction`
217217
</details>
218218

219+
**Import changes**
220+
221+
<details>
222+
<summary>Deprecated Property(s)</summary>
223+
224+
- property `PriceImport::publish` is removed
225+
- property `ProductVariantImport::publish` is removed
226+
</details>
227+

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/prices/PriceImport.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ public interface PriceImport extends ImportResource {
111111
@JsonProperty("discounted")
112112
public DiscountedPrice getDiscounted();
113113

114-
/**
115-
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
116-
* @return publish
117-
*/
118-
@Deprecated
119-
@JsonProperty("publish")
120-
public Boolean getPublish();
121-
122114
/**
123115
* <ul>
124116
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
@@ -220,13 +212,6 @@ public interface PriceImport extends ImportResource {
220212

221213
public void setDiscounted(final DiscountedPrice discounted);
222214

223-
/**
224-
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
225-
* @param publish value to be set
226-
*/
227-
@Deprecated
228-
public void setPublish(final Boolean publish);
229-
230215
/**
231216
* <ul>
232217
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
@@ -296,7 +281,6 @@ public static PriceImport of(final PriceImport template) {
296281
instance.setCustomerGroup(template.getCustomerGroup());
297282
instance.setChannel(template.getChannel());
298283
instance.setDiscounted(template.getDiscounted());
299-
instance.setPublish(template.getPublish());
300284
instance.setStaged(template.getStaged());
301285
instance.setTiers(template.getTiers());
302286
instance.setCustom(template.getCustom());
@@ -327,7 +311,6 @@ public static PriceImport deepCopy(@Nullable final PriceImport template) {
327311
com.commercetools.importapi.models.common.ChannelKeyReference.deepCopy(template.getChannel()));
328312
instance.setDiscounted(
329313
com.commercetools.importapi.models.common.DiscountedPrice.deepCopy(template.getDiscounted()));
330-
instance.setPublish(template.getPublish());
331314
instance.setStaged(template.getStaged());
332315
instance.setTiers(Optional.ofNullable(template.getTiers())
333316
.map(t -> t.stream()

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/prices/PriceImportBuilder.java

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ public class PriceImportBuilder implements Builder<PriceImport> {
4949
@Nullable
5050
private com.commercetools.importapi.models.common.DiscountedPrice discounted;
5151

52-
@Deprecated
53-
@Nullable
54-
private Boolean publish;
55-
5652
@Nullable
5753
private Boolean staged;
5854

@@ -244,17 +240,6 @@ public PriceImportBuilder discounted(
244240
return this;
245241
}
246242

247-
/**
248-
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
249-
* @param publish value to be set
250-
* @return Builder
251-
*/
252-
@Deprecated
253-
public PriceImportBuilder publish(@Nullable final Boolean publish) {
254-
this.publish = publish;
255-
return this;
256-
}
257-
258243
/**
259244
* <ul>
260245
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
@@ -543,16 +528,6 @@ public com.commercetools.importapi.models.common.DiscountedPrice getDiscounted()
543528
return this.discounted;
544529
}
545530

546-
/**
547-
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
548-
* @return publish
549-
*/
550-
@Deprecated
551-
@Nullable
552-
public Boolean getPublish() {
553-
return this.publish;
554-
}
555-
556531
/**
557532
* <ul>
558533
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
@@ -614,7 +589,7 @@ public PriceImport build() {
614589
Objects.requireNonNull(productVariant, PriceImport.class + ": productVariant is missing");
615590
Objects.requireNonNull(product, PriceImport.class + ": product is missing");
616591
return new PriceImportImpl(key, value, country, validFrom, validUntil, customerGroup, channel, discounted,
617-
publish, staged, tiers, custom, productVariant, product);
592+
staged, tiers, custom, productVariant, product);
618593
}
619594

620595
/**
@@ -623,7 +598,7 @@ public PriceImport build() {
623598
*/
624599
public PriceImport buildUnchecked() {
625600
return new PriceImportImpl(key, value, country, validFrom, validUntil, customerGroup, channel, discounted,
626-
publish, staged, tiers, custom, productVariant, product);
601+
staged, tiers, custom, productVariant, product);
627602
}
628603

629604
/**
@@ -649,7 +624,6 @@ public static PriceImportBuilder of(final PriceImport template) {
649624
builder.customerGroup = template.getCustomerGroup();
650625
builder.channel = template.getChannel();
651626
builder.discounted = template.getDiscounted();
652-
builder.publish = template.getPublish();
653627
builder.staged = template.getStaged();
654628
builder.tiers = template.getTiers();
655629
builder.custom = template.getCustom();

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/prices/PriceImportImpl.java

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public class PriceImportImpl implements PriceImport, ModelBase {
3838

3939
private com.commercetools.importapi.models.common.DiscountedPrice discounted;
4040

41-
@Deprecated
42-
private Boolean publish;
43-
4441
private Boolean staged;
4542

4643
private java.util.List<com.commercetools.importapi.models.common.PriceTier> tiers;
@@ -63,7 +60,7 @@ public class PriceImportImpl implements PriceImport, ModelBase {
6360
@JsonProperty("customerGroup") final com.commercetools.importapi.models.common.CustomerGroupKeyReference customerGroup,
6461
@JsonProperty("channel") final com.commercetools.importapi.models.common.ChannelKeyReference channel,
6562
@JsonProperty("discounted") final com.commercetools.importapi.models.common.DiscountedPrice discounted,
66-
@JsonProperty("publish") final Boolean publish, @JsonProperty("staged") final Boolean staged,
63+
@JsonProperty("staged") final Boolean staged,
6764
@JsonProperty("tiers") final java.util.List<com.commercetools.importapi.models.common.PriceTier> tiers,
6865
@JsonProperty("custom") final com.commercetools.importapi.models.customfields.Custom custom,
6966
@JsonProperty("productVariant") final com.commercetools.importapi.models.common.ProductVariantKeyReference productVariant,
@@ -76,7 +73,6 @@ public class PriceImportImpl implements PriceImport, ModelBase {
7673
this.customerGroup = customerGroup;
7774
this.channel = channel;
7875
this.discounted = discounted;
79-
this.publish = publish;
8076
this.staged = staged;
8177
this.tiers = tiers;
8278
this.custom = custom;
@@ -154,14 +150,6 @@ public com.commercetools.importapi.models.common.DiscountedPrice getDiscounted()
154150
return this.discounted;
155151
}
156152

157-
/**
158-
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
159-
*/
160-
@Deprecated
161-
public Boolean getPublish() {
162-
return this.publish;
163-
}
164-
165153
/**
166154
* <ul>
167155
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
@@ -238,11 +226,6 @@ public void setDiscounted(final com.commercetools.importapi.models.common.Discou
238226
this.discounted = discounted;
239227
}
240228

241-
@Deprecated
242-
public void setPublish(final Boolean publish) {
243-
this.publish = publish;
244-
}
245-
246229
public void setStaged(final Boolean staged) {
247230
this.staged = staged;
248231
}
@@ -286,7 +269,6 @@ public boolean equals(Object o) {
286269
.append(customerGroup, that.customerGroup)
287270
.append(channel, that.channel)
288271
.append(discounted, that.discounted)
289-
.append(publish, that.publish)
290272
.append(staged, that.staged)
291273
.append(tiers, that.tiers)
292274
.append(custom, that.custom)
@@ -300,7 +282,6 @@ public boolean equals(Object o) {
300282
.append(customerGroup, that.customerGroup)
301283
.append(channel, that.channel)
302284
.append(discounted, that.discounted)
303-
.append(publish, that.publish)
304285
.append(staged, that.staged)
305286
.append(tiers, that.tiers)
306287
.append(custom, that.custom)
@@ -319,7 +300,6 @@ public int hashCode() {
319300
.append(customerGroup)
320301
.append(channel)
321302
.append(discounted)
322-
.append(publish)
323303
.append(staged)
324304
.append(tiers)
325305
.append(custom)
@@ -338,7 +318,6 @@ public String toString() {
338318
.append("customerGroup", customerGroup)
339319
.append("channel", channel)
340320
.append("discounted", discounted)
341-
.append("publish", publish)
342321
.append("staged", staged)
343322
.append("tiers", tiers)
344323
.append("custom", custom)

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/productvariants/ProductVariantImport.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ public interface ProductVariantImport extends ImportResource {
8787
@JsonProperty("assets")
8888
public List<Asset> getAssets();
8989

90-
/**
91-
* <p>If <code>publish</code> is set to either <code>true</code> or <code>false</code>, both staged and current projections are set to the same value provided by the import data. If <code>publish</code> is not set, the staged projection is set to the provided import data, but the current projection stays unchanged. However, if the import data contains no update, that is, if it matches the staged projection of the existing Product, the import induces no change in the existing Product whether <code>publish</code> is set or not.</p>
92-
* @return publish
93-
*/
94-
@Deprecated
95-
@JsonProperty("publish")
96-
public Boolean getPublish();
97-
9890
/**
9991
* <ul>
10092
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
@@ -181,13 +173,6 @@ public interface ProductVariantImport extends ImportResource {
181173

182174
public void setAssets(final List<Asset> assets);
183175

184-
/**
185-
* <p>If <code>publish</code> is set to either <code>true</code> or <code>false</code>, both staged and current projections are set to the same value provided by the import data. If <code>publish</code> is not set, the staged projection is set to the provided import data, but the current projection stays unchanged. However, if the import data contains no update, that is, if it matches the staged projection of the existing Product, the import induces no change in the existing Product whether <code>publish</code> is set or not.</p>
186-
* @param publish value to be set
187-
*/
188-
@Deprecated
189-
public void setPublish(final Boolean publish);
190-
191176
/**
192177
* <ul>
193178
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
@@ -226,7 +211,6 @@ public static ProductVariantImport of(final ProductVariantImport template) {
226211
instance.setAttributes(template.getAttributes());
227212
instance.setImages(template.getImages());
228213
instance.setAssets(template.getAssets());
229-
instance.setPublish(template.getPublish());
230214
instance.setStaged(template.getStaged());
231215
instance.setProduct(template.getProduct());
232216
return instance;
@@ -261,7 +245,6 @@ public static ProductVariantImport deepCopy(@Nullable final ProductVariantImport
261245
.map(com.commercetools.importapi.models.common.Asset::deepCopy)
262246
.collect(Collectors.toList()))
263247
.orElse(null));
264-
instance.setPublish(template.getPublish());
265248
instance.setStaged(template.getStaged());
266249
instance.setProduct(
267250
com.commercetools.importapi.models.common.ProductKeyReference.deepCopy(template.getProduct()));

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/productvariants/ProductVariantImportBuilder.java

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ public class ProductVariantImportBuilder implements Builder<ProductVariantImport
4242
@Nullable
4343
private java.util.List<com.commercetools.importapi.models.common.Asset> assets;
4444

45-
@Deprecated
46-
@Nullable
47-
private Boolean publish;
48-
4945
@Nullable
5046
private Boolean staged;
5147

@@ -331,17 +327,6 @@ public ProductVariantImportBuilder setAssets(
331327
return assets(builder.apply(com.commercetools.importapi.models.common.AssetBuilder.of()));
332328
}
333329

334-
/**
335-
* <p>If <code>publish</code> is set to either <code>true</code> or <code>false</code>, both staged and current projections are set to the same value provided by the import data. If <code>publish</code> is not set, the staged projection is set to the provided import data, but the current projection stays unchanged. However, if the import data contains no update, that is, if it matches the staged projection of the existing Product, the import induces no change in the existing Product whether <code>publish</code> is set or not.</p>
336-
* @param publish value to be set
337-
* @return Builder
338-
*/
339-
@Deprecated
340-
public ProductVariantImportBuilder publish(@Nullable final Boolean publish) {
341-
this.publish = publish;
342-
return this;
343-
}
344-
345330
/**
346331
* <ul>
347332
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
@@ -450,16 +435,6 @@ public java.util.List<com.commercetools.importapi.models.common.Asset> getAssets
450435
return this.assets;
451436
}
452437

453-
/**
454-
* <p>If <code>publish</code> is set to either <code>true</code> or <code>false</code>, both staged and current projections are set to the same value provided by the import data. If <code>publish</code> is not set, the staged projection is set to the provided import data, but the current projection stays unchanged. However, if the import data contains no update, that is, if it matches the staged projection of the existing Product, the import induces no change in the existing Product whether <code>publish</code> is set or not.</p>
455-
* @return publish
456-
*/
457-
@Deprecated
458-
@Nullable
459-
public Boolean getPublish() {
460-
return this.publish;
461-
}
462-
463438
/**
464439
* <ul>
465440
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
@@ -490,17 +465,15 @@ public ProductVariantImport build() {
490465
Objects.requireNonNull(key, ProductVariantImport.class + ": key is missing");
491466
Objects.requireNonNull(isMasterVariant, ProductVariantImport.class + ": isMasterVariant is missing");
492467
Objects.requireNonNull(product, ProductVariantImport.class + ": product is missing");
493-
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, publish, staged,
494-
product);
468+
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, staged, product);
495469
}
496470

497471
/**
498472
* builds ProductVariantImport without checking for non-null required values
499473
* @return ProductVariantImport
500474
*/
501475
public ProductVariantImport buildUnchecked() {
502-
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, publish, staged,
503-
product);
476+
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, staged, product);
504477
}
505478

506479
/**
@@ -524,7 +497,6 @@ public static ProductVariantImportBuilder of(final ProductVariantImport template
524497
builder.attributes = template.getAttributes();
525498
builder.images = template.getImages();
526499
builder.assets = template.getAssets();
527-
builder.publish = template.getPublish();
528500
builder.staged = template.getStaged();
529501
builder.product = template.getProduct();
530502
return builder;

0 commit comments

Comments
 (0)