Skip to content

Update generated SDKs #699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,12 @@
- added type `ShippingMethodChangeActiveAction`
</details>

**Import changes**

<details>
<summary>Deprecated Property(s)</summary>

- property `PriceImport::publish` is removed
- property `ProductVariantImport::publish` is removed
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ public interface PriceImport extends ImportResource {
@JsonProperty("discounted")
public DiscountedPrice getDiscounted();

/**
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
* @return publish
*/
@Deprecated
@JsonProperty("publish")
public Boolean getPublish();

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
Expand Down Expand Up @@ -220,13 +212,6 @@ public interface PriceImport extends ImportResource {

public void setDiscounted(final DiscountedPrice discounted);

/**
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
* @param publish value to be set
*/
@Deprecated
public void setPublish(final Boolean publish);

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
Expand Down Expand Up @@ -296,7 +281,6 @@ public static PriceImport of(final PriceImport template) {
instance.setCustomerGroup(template.getCustomerGroup());
instance.setChannel(template.getChannel());
instance.setDiscounted(template.getDiscounted());
instance.setPublish(template.getPublish());
instance.setStaged(template.getStaged());
instance.setTiers(template.getTiers());
instance.setCustom(template.getCustom());
Expand Down Expand Up @@ -327,7 +311,6 @@ public static PriceImport deepCopy(@Nullable final PriceImport template) {
com.commercetools.importapi.models.common.ChannelKeyReference.deepCopy(template.getChannel()));
instance.setDiscounted(
com.commercetools.importapi.models.common.DiscountedPrice.deepCopy(template.getDiscounted()));
instance.setPublish(template.getPublish());
instance.setStaged(template.getStaged());
instance.setTiers(Optional.ofNullable(template.getTiers())
.map(t -> t.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ public class PriceImportBuilder implements Builder<PriceImport> {
@Nullable
private com.commercetools.importapi.models.common.DiscountedPrice discounted;

@Deprecated
@Nullable
private Boolean publish;

@Nullable
private Boolean staged;

Expand Down Expand Up @@ -244,17 +240,6 @@ public PriceImportBuilder discounted(
return this;
}

/**
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
* @param publish value to be set
* @return Builder
*/
@Deprecated
public PriceImportBuilder publish(@Nullable final Boolean publish) {
this.publish = publish;
return this;
}

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
Expand Down Expand Up @@ -543,16 +528,6 @@ public com.commercetools.importapi.models.common.DiscountedPrice getDiscounted()
return this.discounted;
}

/**
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
* @return publish
*/
@Deprecated
@Nullable
public Boolean getPublish() {
return this.publish;
}

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
Expand Down Expand Up @@ -614,7 +589,7 @@ public PriceImport build() {
Objects.requireNonNull(productVariant, PriceImport.class + ": productVariant is missing");
Objects.requireNonNull(product, PriceImport.class + ": product is missing");
return new PriceImportImpl(key, value, country, validFrom, validUntil, customerGroup, channel, discounted,
publish, staged, tiers, custom, productVariant, product);
staged, tiers, custom, productVariant, product);
}

/**
Expand All @@ -623,7 +598,7 @@ public PriceImport build() {
*/
public PriceImport buildUnchecked() {
return new PriceImportImpl(key, value, country, validFrom, validUntil, customerGroup, channel, discounted,
publish, staged, tiers, custom, productVariant, product);
staged, tiers, custom, productVariant, product);
}

/**
Expand All @@ -649,7 +624,6 @@ public static PriceImportBuilder of(final PriceImport template) {
builder.customerGroup = template.getCustomerGroup();
builder.channel = template.getChannel();
builder.discounted = template.getDiscounted();
builder.publish = template.getPublish();
builder.staged = template.getStaged();
builder.tiers = template.getTiers();
builder.custom = template.getCustom();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public class PriceImportImpl implements PriceImport, ModelBase {

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

@Deprecated
private Boolean publish;

private Boolean staged;

private java.util.List<com.commercetools.importapi.models.common.PriceTier> tiers;
Expand All @@ -63,7 +60,7 @@ public class PriceImportImpl implements PriceImport, ModelBase {
@JsonProperty("customerGroup") final com.commercetools.importapi.models.common.CustomerGroupKeyReference customerGroup,
@JsonProperty("channel") final com.commercetools.importapi.models.common.ChannelKeyReference channel,
@JsonProperty("discounted") final com.commercetools.importapi.models.common.DiscountedPrice discounted,
@JsonProperty("publish") final Boolean publish, @JsonProperty("staged") final Boolean staged,
@JsonProperty("staged") final Boolean staged,
@JsonProperty("tiers") final java.util.List<com.commercetools.importapi.models.common.PriceTier> tiers,
@JsonProperty("custom") final com.commercetools.importapi.models.customfields.Custom custom,
@JsonProperty("productVariant") final com.commercetools.importapi.models.common.ProductVariantKeyReference productVariant,
Expand All @@ -76,7 +73,6 @@ public class PriceImportImpl implements PriceImport, ModelBase {
this.customerGroup = customerGroup;
this.channel = channel;
this.discounted = discounted;
this.publish = publish;
this.staged = staged;
this.tiers = tiers;
this.custom = custom;
Expand Down Expand Up @@ -154,14 +150,6 @@ public com.commercetools.importapi.models.common.DiscountedPrice getDiscounted()
return this.discounted;
}

/**
* <p>Only the Embedded Price updates will be published to <code>staged</code> and <code>current</code> projection.</p>
*/
@Deprecated
public Boolean getPublish() {
return this.publish;
}

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Price data.</li>
Expand Down Expand Up @@ -238,11 +226,6 @@ public void setDiscounted(final com.commercetools.importapi.models.common.Discou
this.discounted = discounted;
}

@Deprecated
public void setPublish(final Boolean publish) {
this.publish = publish;
}

public void setStaged(final Boolean staged) {
this.staged = staged;
}
Expand Down Expand Up @@ -286,7 +269,6 @@ public boolean equals(Object o) {
.append(customerGroup, that.customerGroup)
.append(channel, that.channel)
.append(discounted, that.discounted)
.append(publish, that.publish)
.append(staged, that.staged)
.append(tiers, that.tiers)
.append(custom, that.custom)
Expand All @@ -300,7 +282,6 @@ public boolean equals(Object o) {
.append(customerGroup, that.customerGroup)
.append(channel, that.channel)
.append(discounted, that.discounted)
.append(publish, that.publish)
.append(staged, that.staged)
.append(tiers, that.tiers)
.append(custom, that.custom)
Expand All @@ -319,7 +300,6 @@ public int hashCode() {
.append(customerGroup)
.append(channel)
.append(discounted)
.append(publish)
.append(staged)
.append(tiers)
.append(custom)
Expand All @@ -338,7 +318,6 @@ public String toString() {
.append("customerGroup", customerGroup)
.append("channel", channel)
.append("discounted", discounted)
.append("publish", publish)
.append("staged", staged)
.append("tiers", tiers)
.append("custom", custom)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ public interface ProductVariantImport extends ImportResource {
@JsonProperty("assets")
public List<Asset> getAssets();

/**
* <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>
* @return publish
*/
@Deprecated
@JsonProperty("publish")
public Boolean getPublish();

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
Expand Down Expand Up @@ -181,13 +173,6 @@ public interface ProductVariantImport extends ImportResource {

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

/**
* <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>
* @param publish value to be set
*/
@Deprecated
public void setPublish(final Boolean publish);

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
Expand Down Expand Up @@ -226,7 +211,6 @@ public static ProductVariantImport of(final ProductVariantImport template) {
instance.setAttributes(template.getAttributes());
instance.setImages(template.getImages());
instance.setAssets(template.getAssets());
instance.setPublish(template.getPublish());
instance.setStaged(template.getStaged());
instance.setProduct(template.getProduct());
return instance;
Expand Down Expand Up @@ -261,7 +245,6 @@ public static ProductVariantImport deepCopy(@Nullable final ProductVariantImport
.map(com.commercetools.importapi.models.common.Asset::deepCopy)
.collect(Collectors.toList()))
.orElse(null));
instance.setPublish(template.getPublish());
instance.setStaged(template.getStaged());
instance.setProduct(
com.commercetools.importapi.models.common.ProductKeyReference.deepCopy(template.getProduct()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public class ProductVariantImportBuilder implements Builder<ProductVariantImport
@Nullable
private java.util.List<com.commercetools.importapi.models.common.Asset> assets;

@Deprecated
@Nullable
private Boolean publish;

@Nullable
private Boolean staged;

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

/**
* <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>
* @param publish value to be set
* @return Builder
*/
@Deprecated
public ProductVariantImportBuilder publish(@Nullable final Boolean publish) {
this.publish = publish;
return this;
}

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
Expand Down Expand Up @@ -450,16 +435,6 @@ public java.util.List<com.commercetools.importapi.models.common.Asset> getAssets
return this.assets;
}

/**
* <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>
* @return publish
*/
@Deprecated
@Nullable
public Boolean getPublish() {
return this.publish;
}

/**
* <ul>
* <li>Set to <code>false</code> to update both the current and staged projections of the Product with the new Product Variant data.</li>
Expand Down Expand Up @@ -490,17 +465,15 @@ public ProductVariantImport build() {
Objects.requireNonNull(key, ProductVariantImport.class + ": key is missing");
Objects.requireNonNull(isMasterVariant, ProductVariantImport.class + ": isMasterVariant is missing");
Objects.requireNonNull(product, ProductVariantImport.class + ": product is missing");
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, publish, staged,
product);
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, staged, product);
}

/**
* builds ProductVariantImport without checking for non-null required values
* @return ProductVariantImport
*/
public ProductVariantImport buildUnchecked() {
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, publish, staged,
product);
return new ProductVariantImportImpl(key, sku, isMasterVariant, attributes, images, assets, staged, product);
}

/**
Expand All @@ -524,7 +497,6 @@ public static ProductVariantImportBuilder of(final ProductVariantImport template
builder.attributes = template.getAttributes();
builder.images = template.getImages();
builder.assets = template.getAssets();
builder.publish = template.getPublish();
builder.staged = template.getStaged();
builder.product = template.getProduct();
return builder;
Expand Down
Loading
Loading