Skip to content

Commit

Permalink
Merge pull request #625 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Apr 18, 2024
2 parents c85d70c + 7bf8b43 commit 5cada20
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 40 deletions.
9 changes: 9 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
**Api changes**

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

- :warning: changed property `custom` of type `MyBusinessUnitDraft` from type `CustomFields` to `CustomFieldsDraft`
- :warning: changed property `custom` of type `MyCompanyDraft` from type `CustomFields` to `CustomFieldsDraft`
- :warning: changed property `custom` of type `MyDivisionDraft` from type `CustomFields` to `CustomFieldsDraft`
</details>


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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import com.commercetools.api.models.business_unit.BusinessUnitType;
import com.commercetools.api.models.common.BaseAddress;
import com.commercetools.api.models.type.CustomFields;
import com.commercetools.api.models.type.CustomFieldsDraft;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;

Expand All @@ -38,8 +38,8 @@
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "unitType", defaultImpl = MyBusinessUnitDraftImpl.class, visible = true)
@JsonDeserialize(as = MyBusinessUnitDraftImpl.class)
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public interface MyBusinessUnitDraft
extends com.commercetools.api.models.Customizable<MyBusinessUnitDraft>, com.commercetools.api.models.WithKey {
public interface MyBusinessUnitDraft extends com.commercetools.api.models.CustomizableDraft<MyBusinessUnitDraft>,
com.commercetools.api.models.WithKey {

/**
* <p>User-defined unique identifier for the BusinessUnit.</p>
Expand Down Expand Up @@ -79,7 +79,7 @@ public interface MyBusinessUnitDraft
*/
@Valid
@JsonProperty("custom")
public CustomFields getCustom();
public CustomFieldsDraft getCustom();

/**
* <p>Addresses used by the Business Unit.</p>
Expand Down Expand Up @@ -147,7 +147,7 @@ public interface MyBusinessUnitDraft
* @param custom value to be set
*/

public void setCustom(final CustomFields custom);
public void setCustom(final CustomFieldsDraft custom);

/**
* <p>Addresses used by the Business Unit.</p>
Expand Down Expand Up @@ -230,7 +230,7 @@ public static MyBusinessUnitDraft deepCopy(@Nullable final MyBusinessUnitDraft t
instance.setKey(template.getKey());
instance.setName(template.getName());
instance.setContactEmail(template.getContactEmail());
instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom()));
instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom()));
instance.setAddresses(Optional.ofNullable(template.getAddresses())
.map(t -> t.stream()
.map(com.commercetools.api.models.common.BaseAddress::deepCopy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class MyBusinessUnitDraftImpl implements MyBusinessUnitDraft, ModelBase {

private String contactEmail;

private com.commercetools.api.models.type.CustomFields custom;
private com.commercetools.api.models.type.CustomFieldsDraft custom;

private java.util.List<com.commercetools.api.models.common.BaseAddress> addresses;

Expand All @@ -49,7 +49,7 @@ public class MyBusinessUnitDraftImpl implements MyBusinessUnitDraft, ModelBase {
MyBusinessUnitDraftImpl(@JsonProperty("key") final String key,
@JsonProperty("unitType") final com.commercetools.api.models.business_unit.BusinessUnitType unitType,
@JsonProperty("name") final String name, @JsonProperty("contactEmail") final String contactEmail,
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom,
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom,
@JsonProperty("addresses") final java.util.List<com.commercetools.api.models.common.BaseAddress> addresses,
@JsonProperty("shippingAddresses") final java.util.List<Integer> shippingAddresses,
@JsonProperty("defaultShippingAddress") final Integer defaultShippingAddress,
Expand Down Expand Up @@ -109,7 +109,7 @@ public String getContactEmail() {
* <p>Custom Fields for the Business Unit.</p>
*/

public com.commercetools.api.models.type.CustomFields getCustom() {
public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
return this.custom;
}

Expand Down Expand Up @@ -165,7 +165,7 @@ public void setContactEmail(final String contactEmail) {
this.contactEmail = contactEmail;
}

public void setCustom(final com.commercetools.api.models.type.CustomFields custom) {
public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft custom) {
this.custom = custom;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static MyCompanyDraft deepCopy(@Nullable final MyCompanyDraft template) {
instance.setKey(template.getKey());
instance.setName(template.getName());
instance.setContactEmail(template.getContactEmail());
instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom()));
instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom()));
instance.setAddresses(Optional.ofNullable(template.getAddresses())
.map(t -> t.stream()
.map(com.commercetools.api.models.common.BaseAddress::deepCopy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class MyCompanyDraftBuilder implements Builder<MyCompanyDraft> {
private String contactEmail;

@Nullable
private com.commercetools.api.models.type.CustomFields custom;
private com.commercetools.api.models.type.CustomFieldsDraft custom;

@Nullable
private java.util.List<com.commercetools.api.models.common.BaseAddress> addresses;
Expand Down Expand Up @@ -90,8 +90,8 @@ public MyCompanyDraftBuilder contactEmail(@Nullable final String contactEmail) {
*/

public MyCompanyDraftBuilder custom(
Function<com.commercetools.api.models.type.CustomFieldsBuilder, com.commercetools.api.models.type.CustomFieldsBuilder> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsBuilder.of()).build();
Function<com.commercetools.api.models.type.CustomFieldsDraftBuilder, com.commercetools.api.models.type.CustomFieldsDraftBuilder> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsDraftBuilder.of()).build();
return this;
}

Expand All @@ -102,8 +102,8 @@ public MyCompanyDraftBuilder custom(
*/

public MyCompanyDraftBuilder withCustom(
Function<com.commercetools.api.models.type.CustomFieldsBuilder, com.commercetools.api.models.type.CustomFields> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsBuilder.of());
Function<com.commercetools.api.models.type.CustomFieldsDraftBuilder, com.commercetools.api.models.type.CustomFieldsDraft> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsDraftBuilder.of());
return this;
}

Expand All @@ -113,7 +113,7 @@ public MyCompanyDraftBuilder withCustom(
* @return Builder
*/

public MyCompanyDraftBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFields custom) {
public MyCompanyDraftBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFieldsDraft custom) {
this.custom = custom;
return this;
}
Expand Down Expand Up @@ -335,7 +335,7 @@ public String getContactEmail() {
*/

@Nullable
public com.commercetools.api.models.type.CustomFields getCustom() {
public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
return this.custom;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class MyCompanyDraftImpl implements MyCompanyDraft, ModelBase {

private String contactEmail;

private com.commercetools.api.models.type.CustomFields custom;
private com.commercetools.api.models.type.CustomFieldsDraft custom;

private java.util.List<com.commercetools.api.models.common.BaseAddress> addresses;

Expand All @@ -49,7 +49,7 @@ public class MyCompanyDraftImpl implements MyCompanyDraft, ModelBase {
@JsonCreator
MyCompanyDraftImpl(@JsonProperty("key") final String key, @JsonProperty("name") final String name,
@JsonProperty("contactEmail") final String contactEmail,
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom,
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom,
@JsonProperty("addresses") final java.util.List<com.commercetools.api.models.common.BaseAddress> addresses,
@JsonProperty("shippingAddresses") final java.util.List<Integer> shippingAddresses,
@JsonProperty("defaultShippingAddress") final Integer defaultShippingAddress,
Expand Down Expand Up @@ -110,7 +110,7 @@ public String getContactEmail() {
* <p>Custom Fields for the Business Unit.</p>
*/

public com.commercetools.api.models.type.CustomFields getCustom() {
public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
return this.custom;
}

Expand Down Expand Up @@ -166,7 +166,7 @@ public void setContactEmail(final String contactEmail) {
this.contactEmail = contactEmail;
}

public void setCustom(final com.commercetools.api.models.type.CustomFields custom) {
public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft custom) {
this.custom = custom;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static MyDivisionDraft deepCopy(@Nullable final MyDivisionDraft template)
instance.setKey(template.getKey());
instance.setName(template.getName());
instance.setContactEmail(template.getContactEmail());
instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom()));
instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom()));
instance.setAddresses(Optional.ofNullable(template.getAddresses())
.map(t -> t.stream()
.map(com.commercetools.api.models.common.BaseAddress::deepCopy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class MyDivisionDraftBuilder implements Builder<MyDivisionDraft> {
private String contactEmail;

@Nullable
private com.commercetools.api.models.type.CustomFields custom;
private com.commercetools.api.models.type.CustomFieldsDraft custom;

@Nullable
private java.util.List<com.commercetools.api.models.common.BaseAddress> addresses;
Expand Down Expand Up @@ -93,8 +93,8 @@ public MyDivisionDraftBuilder contactEmail(@Nullable final String contactEmail)
*/

public MyDivisionDraftBuilder custom(
Function<com.commercetools.api.models.type.CustomFieldsBuilder, com.commercetools.api.models.type.CustomFieldsBuilder> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsBuilder.of()).build();
Function<com.commercetools.api.models.type.CustomFieldsDraftBuilder, com.commercetools.api.models.type.CustomFieldsDraftBuilder> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsDraftBuilder.of()).build();
return this;
}

Expand All @@ -105,8 +105,8 @@ public MyDivisionDraftBuilder custom(
*/

public MyDivisionDraftBuilder withCustom(
Function<com.commercetools.api.models.type.CustomFieldsBuilder, com.commercetools.api.models.type.CustomFields> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsBuilder.of());
Function<com.commercetools.api.models.type.CustomFieldsDraftBuilder, com.commercetools.api.models.type.CustomFieldsDraft> builder) {
this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsDraftBuilder.of());
return this;
}

Expand All @@ -116,7 +116,7 @@ public MyDivisionDraftBuilder withCustom(
* @return Builder
*/

public MyDivisionDraftBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFields custom) {
public MyDivisionDraftBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFieldsDraft custom) {
this.custom = custom;
return this;
}
Expand Down Expand Up @@ -377,7 +377,7 @@ public String getContactEmail() {
*/

@Nullable
public com.commercetools.api.models.type.CustomFields getCustom() {
public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
return this.custom;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class MyDivisionDraftImpl implements MyDivisionDraft, ModelBase {

private String contactEmail;

private com.commercetools.api.models.type.CustomFields custom;
private com.commercetools.api.models.type.CustomFieldsDraft custom;

private java.util.List<com.commercetools.api.models.common.BaseAddress> addresses;

Expand All @@ -51,7 +51,7 @@ public class MyDivisionDraftImpl implements MyDivisionDraft, ModelBase {
@JsonCreator
MyDivisionDraftImpl(@JsonProperty("key") final String key, @JsonProperty("name") final String name,
@JsonProperty("contactEmail") final String contactEmail,
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom,
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom,
@JsonProperty("addresses") final java.util.List<com.commercetools.api.models.common.BaseAddress> addresses,
@JsonProperty("shippingAddresses") final java.util.List<Integer> shippingAddresses,
@JsonProperty("defaultShippingAddress") final Integer defaultShippingAddress,
Expand Down Expand Up @@ -114,7 +114,7 @@ public String getContactEmail() {
* <p>Custom Fields for the Business Unit.</p>
*/

public com.commercetools.api.models.type.CustomFields getCustom() {
public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
return this.custom;
}

Expand Down Expand Up @@ -178,7 +178,7 @@ public void setContactEmail(final String contactEmail) {
this.contactEmail = contactEmail;
}

public void setCustom(final com.commercetools.api.models.type.CustomFields custom) {
public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft custom) {
this.custom = custom;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public StringComparisonPredicateBuilder<MyBusinessUnitDraftQueryBuilderDsl> cont
}

public CombinationQueryPredicate<MyBusinessUnitDraftQueryBuilderDsl> custom(
Function<com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl>> fn) {
Function<com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl>> fn) {
return new CombinationQueryPredicate<>(
ContainerQueryPredicate.of()
.parent(ConstantQueryPredicate.of().constant("custom"))
.inner(fn.apply(com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl.of())),
.inner(fn.apply(com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl.of())),
MyBusinessUnitDraftQueryBuilderDsl::of);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public StringComparisonPredicateBuilder<MyCompanyDraftQueryBuilderDsl> contactEm
}

public CombinationQueryPredicate<MyCompanyDraftQueryBuilderDsl> custom(
Function<com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl>> fn) {
Function<com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl>> fn) {
return new CombinationQueryPredicate<>(
ContainerQueryPredicate.of()
.parent(ConstantQueryPredicate.of().constant("custom"))
.inner(fn.apply(com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl.of())),
.inner(fn.apply(com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl.of())),
MyCompanyDraftQueryBuilderDsl::of);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public StringComparisonPredicateBuilder<MyDivisionDraftQueryBuilderDsl> contactE
}

public CombinationQueryPredicate<MyDivisionDraftQueryBuilderDsl> custom(
Function<com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl>> fn) {
Function<com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl>> fn) {
return new CombinationQueryPredicate<>(
ContainerQueryPredicate.of()
.parent(ConstantQueryPredicate.of().constant("custom"))
.inner(fn.apply(com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl.of())),
.inner(fn.apply(com.commercetools.api.predicates.query.type.CustomFieldsDraftQueryBuilderDsl.of())),
MyDivisionDraftQueryBuilderDsl::of);
}

Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,4 @@ a9d748dbcbfc8d2a1cd8d0f8c4e48807e502e79e
90f86a472abcdf9adc0c3f0147e3094ec0a7c8ba
c8a374e9c967c7b8c5080c9a6ed2cd92261680ef
cbdd859f3702f084fa22a22d7e4459f7e4b43316
32b48b6b1b219f185cf066f9f4b53cd782f98435

0 comments on commit 5cada20

Please sign in to comment.