diff --git a/changes.md b/changes.md
index 0a629920a4..4074481436 100644
--- a/changes.md
+++ b/changes.md
@@ -24,6 +24,12 @@
- added type `CountOnCustomLineItemUnits`
- added type `CountOnLineItemUnits`
- added type `PatternComponent`
+- added type `ShoppingListLineItemAddedMessage`
+- added type `ShoppingListLineItemRemovedMessage`
+- added type `ShoppingListMessage`
+- added type `ShoppingListLineItemAddedMessagePayload`
+- added type `ShoppingListLineItemRemovedMessagePayload`
+- added type `ShoppingListMessagePayload`
@@ -31,6 +37,7 @@
Generated after a successful Add ShoppingListLineItem update action.
+ * + *
+ * ShoppingListLineItemAddedMessage shoppingListLineItemAddedMessage = ShoppingListLineItemAddedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Line Item that was added to the ShoppingList.
+ * @return lineItem + */ + @NotNull + @Valid + @JsonProperty("lineItem") + public ShoppingListLineItem getLineItem(); + + /** + *Line Item that was added to the ShoppingList.
+ * @param lineItem value to be set + */ + + public void setLineItem(final ShoppingListLineItem lineItem); + + /** + * factory method + * @return instance of ShoppingListLineItemAddedMessage + */ + public static ShoppingListLineItemAddedMessage of() { + return new ShoppingListLineItemAddedMessageImpl(); + } + + /** + * factory method to create a shallow copy ShoppingListLineItemAddedMessage + * @param template instance to be copied + * @return copy instance + */ + public static ShoppingListLineItemAddedMessage of(final ShoppingListLineItemAddedMessage template) { + ShoppingListLineItemAddedMessageImpl instance = new ShoppingListLineItemAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setLineItem(template.getLineItem()); + return instance; + } + + /** + * factory method to create a deep copy of ShoppingListLineItemAddedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShoppingListLineItemAddedMessage deepCopy(@Nullable final ShoppingListLineItemAddedMessage template) { + if (template == null) { + return null; + } + ShoppingListLineItemAddedMessageImpl instance = new ShoppingListLineItemAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setLineItem( + com.commercetools.api.models.shopping_list.ShoppingListLineItem.deepCopy(template.getLineItem())); + return instance; + } + + /** + * builder factory method for ShoppingListLineItemAddedMessage + * @return builder + */ + public static ShoppingListLineItemAddedMessageBuilder builder() { + return ShoppingListLineItemAddedMessageBuilder.of(); + } + + /** + * create builder for ShoppingListLineItemAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemAddedMessageBuilder builder(final ShoppingListLineItemAddedMessage template) { + return ShoppingListLineItemAddedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ShoppingListLineItemAddedMessage shoppingListLineItemAddedMessage = ShoppingListLineItemAddedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @param id value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *Version of a resource. In case of Messages, this is always 1
.
Date and time (UTC) the Message was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Value of createdAt
.
IDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *IDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber
of the next Message for the resource is the successor of the sequenceNumber
of the current Message. Meaning, the sequenceNumber
of the next Message equals the sequenceNumber
of the current Message + 1. sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @param resource value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder resource( + final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *Reference to the resource on which the change or action was performed.
+ * @param builder function to build the resource value + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
Line Item that was added to the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder lineItem( + FunctionLine Item that was added to the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder withLineItem( + FunctionLine Item that was added to the ShoppingList.
+ * @param lineItem value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessageBuilder lineItem( + final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + return this; + } + + /** + *Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1
.
Date and time (UTC) the Message was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt
.
IDs and references that last modified the Message.
+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber
of the next Message for the resource is the successor of the sequenceNumber
of the current Message. Meaning, the sequenceNumber
of the next Message equals the sequenceNumber
of the current Message + 1. sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
Line Item that was added to the ShoppingList.
+ * @return lineItem + */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + /** + * builds ShoppingListLineItemAddedMessage with checking for non-null required values + * @return ShoppingListLineItemAddedMessage + */ + public ShoppingListLineItemAddedMessage build() { + Objects.requireNonNull(id, ShoppingListLineItemAddedMessage.class + ": id is missing"); + Objects.requireNonNull(version, ShoppingListLineItemAddedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, ShoppingListLineItemAddedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, ShoppingListLineItemAddedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, ShoppingListLineItemAddedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, ShoppingListLineItemAddedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + ShoppingListLineItemAddedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(lineItem, ShoppingListLineItemAddedMessage.class + ": lineItem is missing"); + return new ShoppingListLineItemAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, lineItem); + } + + /** + * builds ShoppingListLineItemAddedMessage without checking for non-null required values + * @return ShoppingListLineItemAddedMessage + */ + public ShoppingListLineItemAddedMessage buildUnchecked() { + return new ShoppingListLineItemAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, lineItem); + } + + /** + * factory method for an instance of ShoppingListLineItemAddedMessageBuilder + * @return builder + */ + public static ShoppingListLineItemAddedMessageBuilder of() { + return new ShoppingListLineItemAddedMessageBuilder(); + } + + /** + * create builder for ShoppingListLineItemAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemAddedMessageBuilder of(final ShoppingListLineItemAddedMessage template) { + ShoppingListLineItemAddedMessageBuilder builder = new ShoppingListLineItemAddedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.lineItem = template.getLineItem(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessageImpl.java new file mode 100644 index 0000000000..c3c62d028b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessageImpl.java @@ -0,0 +1,297 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Generated after a successful Add ShoppingListLineItem update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShoppingListLineItemAddedMessageImpl implements ShoppingListLineItemAddedMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem; + + /** + * create instance with all properties + */ + @JsonCreator + ShoppingListLineItemAddedMessageImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("lineItem") final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.lineItem = lineItem; + this.type = SHOPPING_LIST_LINE_ITEM_ADDED; + } + + /** + * create empty instance + */ + public ShoppingListLineItemAddedMessageImpl() { + this.type = SHOPPING_LIST_LINE_ITEM_ADDED; + } + + /** + *Unique identifier of the Message. Can be used to track which Messages have been processed.
+ */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1
.
Date and time (UTC) the Message was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt
.
IDs and references that last modified the Message.
+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber
of the next Message for the resource is the successor of the sequenceNumber
of the current Message. Meaning, the sequenceNumber
of the next Message equals the sequenceNumber
of the current Message + 1. sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *Message Type of the Message.
+ */ + + public String getType() { + return this.type; + } + + /** + *User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
Line Item that was added to the ShoppingList.
+ */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setLineItem(final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShoppingListLineItemAddedMessageImpl that = (ShoppingListLineItemAddedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(lineItem, that.lineItem) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(lineItem, that.lineItem) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(lineItem) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("lineItem", lineItem) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessagePayload.java new file mode 100644 index 0000000000..2def0dadc7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessagePayload.java @@ -0,0 +1,134 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.shopping_list.ShoppingListLineItem; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *Generated after a successful Add ShoppingListLineItem update action.
+ * + *
+ * ShoppingListLineItemAddedMessagePayload shoppingListLineItemAddedMessagePayload = ShoppingListLineItemAddedMessagePayload.builder()
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Line Item that was added to the ShoppingList.
+ * @return lineItem + */ + @NotNull + @Valid + @JsonProperty("lineItem") + public ShoppingListLineItem getLineItem(); + + /** + *Line Item that was added to the ShoppingList.
+ * @param lineItem value to be set + */ + + public void setLineItem(final ShoppingListLineItem lineItem); + + /** + * factory method + * @return instance of ShoppingListLineItemAddedMessagePayload + */ + public static ShoppingListLineItemAddedMessagePayload of() { + return new ShoppingListLineItemAddedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy ShoppingListLineItemAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static ShoppingListLineItemAddedMessagePayload of(final ShoppingListLineItemAddedMessagePayload template) { + ShoppingListLineItemAddedMessagePayloadImpl instance = new ShoppingListLineItemAddedMessagePayloadImpl(); + instance.setLineItem(template.getLineItem()); + return instance; + } + + /** + * factory method to create a deep copy of ShoppingListLineItemAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShoppingListLineItemAddedMessagePayload deepCopy( + @Nullable final ShoppingListLineItemAddedMessagePayload template) { + if (template == null) { + return null; + } + ShoppingListLineItemAddedMessagePayloadImpl instance = new ShoppingListLineItemAddedMessagePayloadImpl(); + instance.setLineItem( + com.commercetools.api.models.shopping_list.ShoppingListLineItem.deepCopy(template.getLineItem())); + return instance; + } + + /** + * builder factory method for ShoppingListLineItemAddedMessagePayload + * @return builder + */ + public static ShoppingListLineItemAddedMessagePayloadBuilder builder() { + return ShoppingListLineItemAddedMessagePayloadBuilder.of(); + } + + /** + * create builder for ShoppingListLineItemAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemAddedMessagePayloadBuilder builder( + final ShoppingListLineItemAddedMessagePayload template) { + return ShoppingListLineItemAddedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ShoppingListLineItemAddedMessagePayload shoppingListLineItemAddedMessagePayload = ShoppingListLineItemAddedMessagePayload.builder()
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Line Item that was added to the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemAddedMessagePayloadBuilder lineItem( + FunctionLine Item that was added to the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemAddedMessagePayloadBuilder withLineItem( + FunctionLine Item that was added to the ShoppingList.
+ * @param lineItem value to be set + * @return Builder + */ + + public ShoppingListLineItemAddedMessagePayloadBuilder lineItem( + final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + return this; + } + + /** + *Line Item that was added to the ShoppingList.
+ * @return lineItem + */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + /** + * builds ShoppingListLineItemAddedMessagePayload with checking for non-null required values + * @return ShoppingListLineItemAddedMessagePayload + */ + public ShoppingListLineItemAddedMessagePayload build() { + Objects.requireNonNull(lineItem, ShoppingListLineItemAddedMessagePayload.class + ": lineItem is missing"); + return new ShoppingListLineItemAddedMessagePayloadImpl(lineItem); + } + + /** + * builds ShoppingListLineItemAddedMessagePayload without checking for non-null required values + * @return ShoppingListLineItemAddedMessagePayload + */ + public ShoppingListLineItemAddedMessagePayload buildUnchecked() { + return new ShoppingListLineItemAddedMessagePayloadImpl(lineItem); + } + + /** + * factory method for an instance of ShoppingListLineItemAddedMessagePayloadBuilder + * @return builder + */ + public static ShoppingListLineItemAddedMessagePayloadBuilder of() { + return new ShoppingListLineItemAddedMessagePayloadBuilder(); + } + + /** + * create builder for ShoppingListLineItemAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemAddedMessagePayloadBuilder of( + final ShoppingListLineItemAddedMessagePayload template) { + ShoppingListLineItemAddedMessagePayloadBuilder builder = new ShoppingListLineItemAddedMessagePayloadBuilder(); + builder.lineItem = template.getLineItem(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessagePayloadImpl.java new file mode 100644 index 0000000000..fbf0348c0d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemAddedMessagePayloadImpl.java @@ -0,0 +1,95 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Generated after a successful Add ShoppingListLineItem update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShoppingListLineItemAddedMessagePayloadImpl implements ShoppingListLineItemAddedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem; + + /** + * create instance with all properties + */ + @JsonCreator + ShoppingListLineItemAddedMessagePayloadImpl( + @JsonProperty("lineItem") final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + this.type = SHOPPING_LIST_LINE_ITEM_ADDED; + } + + /** + * create empty instance + */ + public ShoppingListLineItemAddedMessagePayloadImpl() { + this.type = SHOPPING_LIST_LINE_ITEM_ADDED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *Line Item that was added to the ShoppingList.
+ */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + public void setLineItem(final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShoppingListLineItemAddedMessagePayloadImpl that = (ShoppingListLineItemAddedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(lineItem, that.lineItem) + .append(type, that.type) + .append(lineItem, that.lineItem) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(lineItem).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("lineItem", lineItem) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessage.java new file mode 100644 index 0000000000..822abd1fe2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessage.java @@ -0,0 +1,161 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.shopping_list.ShoppingListLineItem; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *Generated after a successful Remove ShoppingListLineItem update action.
+ * + *
+ * ShoppingListLineItemRemovedMessage shoppingListLineItemRemovedMessage = ShoppingListLineItemRemovedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Line Item that was removed from the ShoppingList.
+ * @return lineItem + */ + @NotNull + @Valid + @JsonProperty("lineItem") + public ShoppingListLineItem getLineItem(); + + /** + *Line Item that was removed from the ShoppingList.
+ * @param lineItem value to be set + */ + + public void setLineItem(final ShoppingListLineItem lineItem); + + /** + * factory method + * @return instance of ShoppingListLineItemRemovedMessage + */ + public static ShoppingListLineItemRemovedMessage of() { + return new ShoppingListLineItemRemovedMessageImpl(); + } + + /** + * factory method to create a shallow copy ShoppingListLineItemRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + public static ShoppingListLineItemRemovedMessage of(final ShoppingListLineItemRemovedMessage template) { + ShoppingListLineItemRemovedMessageImpl instance = new ShoppingListLineItemRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setLineItem(template.getLineItem()); + return instance; + } + + /** + * factory method to create a deep copy of ShoppingListLineItemRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShoppingListLineItemRemovedMessage deepCopy( + @Nullable final ShoppingListLineItemRemovedMessage template) { + if (template == null) { + return null; + } + ShoppingListLineItemRemovedMessageImpl instance = new ShoppingListLineItemRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setLineItem( + com.commercetools.api.models.shopping_list.ShoppingListLineItem.deepCopy(template.getLineItem())); + return instance; + } + + /** + * builder factory method for ShoppingListLineItemRemovedMessage + * @return builder + */ + public static ShoppingListLineItemRemovedMessageBuilder builder() { + return ShoppingListLineItemRemovedMessageBuilder.of(); + } + + /** + * create builder for ShoppingListLineItemRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemRemovedMessageBuilder builder(final ShoppingListLineItemRemovedMessage template) { + return ShoppingListLineItemRemovedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ShoppingListLineItemRemovedMessage shoppingListLineItemRemovedMessage = ShoppingListLineItemRemovedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @param id value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *Version of a resource. In case of Messages, this is always 1
.
Date and time (UTC) the Message was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Value of createdAt
.
IDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *IDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber
of the next Message for the resource is the successor of the sequenceNumber
of the current Message. Meaning, the sequenceNumber
of the next Message equals the sequenceNumber
of the current Message + 1. sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @param resource value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder resource( + final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *Reference to the resource on which the change or action was performed.
+ * @param builder function to build the resource value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
Line Item that was removed from the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder lineItem( + FunctionLine Item that was removed from the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder withLineItem( + FunctionLine Item that was removed from the ShoppingList.
+ * @param lineItem value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessageBuilder lineItem( + final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + return this; + } + + /** + *Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1
.
Date and time (UTC) the Message was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt
.
IDs and references that last modified the Message.
+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber
of the next Message for the resource is the successor of the sequenceNumber
of the current Message. Meaning, the sequenceNumber
of the next Message equals the sequenceNumber
of the current Message + 1. sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
Line Item that was removed from the ShoppingList.
+ * @return lineItem + */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + /** + * builds ShoppingListLineItemRemovedMessage with checking for non-null required values + * @return ShoppingListLineItemRemovedMessage + */ + public ShoppingListLineItemRemovedMessage build() { + Objects.requireNonNull(id, ShoppingListLineItemRemovedMessage.class + ": id is missing"); + Objects.requireNonNull(version, ShoppingListLineItemRemovedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, ShoppingListLineItemRemovedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + ShoppingListLineItemRemovedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + ShoppingListLineItemRemovedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, ShoppingListLineItemRemovedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + ShoppingListLineItemRemovedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(lineItem, ShoppingListLineItemRemovedMessage.class + ": lineItem is missing"); + return new ShoppingListLineItemRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, lineItem); + } + + /** + * builds ShoppingListLineItemRemovedMessage without checking for non-null required values + * @return ShoppingListLineItemRemovedMessage + */ + public ShoppingListLineItemRemovedMessage buildUnchecked() { + return new ShoppingListLineItemRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, lineItem); + } + + /** + * factory method for an instance of ShoppingListLineItemRemovedMessageBuilder + * @return builder + */ + public static ShoppingListLineItemRemovedMessageBuilder of() { + return new ShoppingListLineItemRemovedMessageBuilder(); + } + + /** + * create builder for ShoppingListLineItemRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemRemovedMessageBuilder of(final ShoppingListLineItemRemovedMessage template) { + ShoppingListLineItemRemovedMessageBuilder builder = new ShoppingListLineItemRemovedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.lineItem = template.getLineItem(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessageImpl.java new file mode 100644 index 0000000000..8ef5ae1f63 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessageImpl.java @@ -0,0 +1,297 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Generated after a successful Remove ShoppingListLineItem update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShoppingListLineItemRemovedMessageImpl implements ShoppingListLineItemRemovedMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem; + + /** + * create instance with all properties + */ + @JsonCreator + ShoppingListLineItemRemovedMessageImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("lineItem") final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.lineItem = lineItem; + this.type = SHOPPING_LIST_LINE_ITEM_REMOVED; + } + + /** + * create empty instance + */ + public ShoppingListLineItemRemovedMessageImpl() { + this.type = SHOPPING_LIST_LINE_ITEM_REMOVED; + } + + /** + *Unique identifier of the Message. Can be used to track which Messages have been processed.
+ */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1
.
Date and time (UTC) the Message was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt
.
IDs and references that last modified the Message.
+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber
of the next Message for the resource is the successor of the sequenceNumber
of the current Message. Meaning, the sequenceNumber
of the next Message equals the sequenceNumber
of the current Message + 1. sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *Message Type of the Message.
+ */ + + public String getType() { + return this.type; + } + + /** + *User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
Line Item that was removed from the ShoppingList.
+ */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setLineItem(final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShoppingListLineItemRemovedMessageImpl that = (ShoppingListLineItemRemovedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(lineItem, that.lineItem) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(lineItem, that.lineItem) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(lineItem) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("lineItem", lineItem) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessagePayload.java new file mode 100644 index 0000000000..d44cf52306 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessagePayload.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.shopping_list.ShoppingListLineItem; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *Generated after a successful Remove ShoppingListLineItem update action.
+ * + *
+ * ShoppingListLineItemRemovedMessagePayload shoppingListLineItemRemovedMessagePayload = ShoppingListLineItemRemovedMessagePayload.builder()
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Line Item that was removed from the ShoppingList.
+ * @return lineItem + */ + @NotNull + @Valid + @JsonProperty("lineItem") + public ShoppingListLineItem getLineItem(); + + /** + *Line Item that was removed from the ShoppingList.
+ * @param lineItem value to be set + */ + + public void setLineItem(final ShoppingListLineItem lineItem); + + /** + * factory method + * @return instance of ShoppingListLineItemRemovedMessagePayload + */ + public static ShoppingListLineItemRemovedMessagePayload of() { + return new ShoppingListLineItemRemovedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy ShoppingListLineItemRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static ShoppingListLineItemRemovedMessagePayload of( + final ShoppingListLineItemRemovedMessagePayload template) { + ShoppingListLineItemRemovedMessagePayloadImpl instance = new ShoppingListLineItemRemovedMessagePayloadImpl(); + instance.setLineItem(template.getLineItem()); + return instance; + } + + /** + * factory method to create a deep copy of ShoppingListLineItemRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShoppingListLineItemRemovedMessagePayload deepCopy( + @Nullable final ShoppingListLineItemRemovedMessagePayload template) { + if (template == null) { + return null; + } + ShoppingListLineItemRemovedMessagePayloadImpl instance = new ShoppingListLineItemRemovedMessagePayloadImpl(); + instance.setLineItem( + com.commercetools.api.models.shopping_list.ShoppingListLineItem.deepCopy(template.getLineItem())); + return instance; + } + + /** + * builder factory method for ShoppingListLineItemRemovedMessagePayload + * @return builder + */ + public static ShoppingListLineItemRemovedMessagePayloadBuilder builder() { + return ShoppingListLineItemRemovedMessagePayloadBuilder.of(); + } + + /** + * create builder for ShoppingListLineItemRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemRemovedMessagePayloadBuilder builder( + final ShoppingListLineItemRemovedMessagePayload template) { + return ShoppingListLineItemRemovedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ShoppingListLineItemRemovedMessagePayload shoppingListLineItemRemovedMessagePayload = ShoppingListLineItemRemovedMessagePayload.builder()
+ * .lineItem(lineItemBuilder -> lineItemBuilder)
+ * .build()
+ *
+ * Line Item that was removed from the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessagePayloadBuilder lineItem( + FunctionLine Item that was removed from the ShoppingList.
+ * @param builder function to build the lineItem value + * @return Builder + */ + + public ShoppingListLineItemRemovedMessagePayloadBuilder withLineItem( + FunctionLine Item that was removed from the ShoppingList.
+ * @param lineItem value to be set + * @return Builder + */ + + public ShoppingListLineItemRemovedMessagePayloadBuilder lineItem( + final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + return this; + } + + /** + *Line Item that was removed from the ShoppingList.
+ * @return lineItem + */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + /** + * builds ShoppingListLineItemRemovedMessagePayload with checking for non-null required values + * @return ShoppingListLineItemRemovedMessagePayload + */ + public ShoppingListLineItemRemovedMessagePayload build() { + Objects.requireNonNull(lineItem, ShoppingListLineItemRemovedMessagePayload.class + ": lineItem is missing"); + return new ShoppingListLineItemRemovedMessagePayloadImpl(lineItem); + } + + /** + * builds ShoppingListLineItemRemovedMessagePayload without checking for non-null required values + * @return ShoppingListLineItemRemovedMessagePayload + */ + public ShoppingListLineItemRemovedMessagePayload buildUnchecked() { + return new ShoppingListLineItemRemovedMessagePayloadImpl(lineItem); + } + + /** + * factory method for an instance of ShoppingListLineItemRemovedMessagePayloadBuilder + * @return builder + */ + public static ShoppingListLineItemRemovedMessagePayloadBuilder of() { + return new ShoppingListLineItemRemovedMessagePayloadBuilder(); + } + + /** + * create builder for ShoppingListLineItemRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShoppingListLineItemRemovedMessagePayloadBuilder of( + final ShoppingListLineItemRemovedMessagePayload template) { + ShoppingListLineItemRemovedMessagePayloadBuilder builder = new ShoppingListLineItemRemovedMessagePayloadBuilder(); + builder.lineItem = template.getLineItem(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessagePayloadImpl.java new file mode 100644 index 0000000000..6c5b6ea06e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListLineItemRemovedMessagePayloadImpl.java @@ -0,0 +1,96 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Generated after a successful Remove ShoppingListLineItem update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShoppingListLineItemRemovedMessagePayloadImpl + implements ShoppingListLineItemRemovedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem; + + /** + * create instance with all properties + */ + @JsonCreator + ShoppingListLineItemRemovedMessagePayloadImpl( + @JsonProperty("lineItem") final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + this.type = SHOPPING_LIST_LINE_ITEM_REMOVED; + } + + /** + * create empty instance + */ + public ShoppingListLineItemRemovedMessagePayloadImpl() { + this.type = SHOPPING_LIST_LINE_ITEM_REMOVED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *Line Item that was removed from the ShoppingList.
+ */ + + public com.commercetools.api.models.shopping_list.ShoppingListLineItem getLineItem() { + return this.lineItem; + } + + public void setLineItem(final com.commercetools.api.models.shopping_list.ShoppingListLineItem lineItem) { + this.lineItem = lineItem; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShoppingListLineItemRemovedMessagePayloadImpl that = (ShoppingListLineItemRemovedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(lineItem, that.lineItem) + .append(type, that.type) + .append(lineItem, that.lineItem) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(lineItem).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("lineItem", lineItem) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListMessage.java new file mode 100644 index 0000000000..6834e660b3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ShoppingListMessage.java @@ -0,0 +1,93 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShoppingListMessage + * + *
+ * ShoppingListMessage shoppingListMessage = ShoppingListMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .build()
+ *
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1
.
Date and time (UTC) the Message was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt
.
IDs and references that last modified the Message.
+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber
of the next Message for the resource is the successor of the sequenceNumber
of the current Message. Meaning, the sequenceNumber
of the next Message equals the sequenceNumber
of the current Message + 1. sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *Message Type of the Message.
+ */ + + public String getType() { + return this.type; + } + + /** + *User-provided identifiers of the resource, such as key
or externalId
. Only present if the resource has such identifiers.
+ * ShoppingListMessagePayload shoppingListMessagePayload = ShoppingListMessagePayload.builder()
+ * .build()
+ *
+ * The ProductVariant to be included in the ShoppingListLineItem must be specified using the productID
and variantID
, or by the sku
. If the ShoppingList already contains a ShoppingListLineItem for the same Product Variant with the same Custom Fields, then only the quantity of the existing ShoppingListLineItem is increased. A ShoppingListLineItem with an empty variantId
is not considered the same as a ShoppingListLineItem with a variantId
currently referring to the Master Variant.
Produces the Shopping List Line Item Added Message.
* *The ProductVariant to be included in the ShoppingListLineItem must be specified using the productID
and variantID
, or by the sku
. If the ShoppingList already contains a ShoppingListLineItem for the same Product Variant with the same Custom Fields, then only the quantity of the existing ShoppingListLineItem is increased. A ShoppingListLineItem with an empty variantId
is not considered the same as a ShoppingListLineItem with a variantId
currently referring to the Master Variant.
Produces the Shopping List Line Item Added Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ShoppingListAddLineItemActionImpl implements ShoppingListAddLineItemAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListRemoveLineItemAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListRemoveLineItemAction.java index 4eff3d9f5a..40db69382c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListRemoveLineItemAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListRemoveLineItemAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * ShoppingListRemoveLineItemAction + *Produces the Shopping List Line Item Removed Message.
* *Produces the Shopping List Line Item Removed Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ShoppingListRemoveLineItemActionImpl implements ShoppingListRemoveLineItemAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionResourceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionResourceTypeId.java index 869276854c..9af679dd9b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionResourceTypeId.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionResourceTypeId.java @@ -71,6 +71,9 @@ public interface MessageSubscriptionResourceTypeId extends JsonEnum {Messages related to Reviews.
*/ MessageSubscriptionResourceTypeId REVIEW = MessageSubscriptionResourceTypeIdEnum.REVIEW; /** +Messages related to Shopping Lists.
*/ + MessageSubscriptionResourceTypeId SHOPPING_LIST = MessageSubscriptionResourceTypeIdEnum.SHOPPING_LIST; + /**Messages related to Staged Quotes.
*/ MessageSubscriptionResourceTypeId STAGED_QUOTE = MessageSubscriptionResourceTypeIdEnum.STAGED_QUOTE; /** @@ -174,6 +177,11 @@ enum MessageSubscriptionResourceTypeIdEnum implements MessageSubscriptionResourc */ REVIEW("review"), + /** + * shopping-list + */ + SHOPPING_LIST("shopping-list"), + /** * staged-quote */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/ShoppingListLineItemAddedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/ShoppingListLineItemAddedMessageExpansionBuilderDsl.java new file mode 100644 index 0000000000..364eaf6db8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/ShoppingListLineItemAddedMessageExpansionBuilderDsl.java @@ -0,0 +1,51 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class ShoppingListLineItemAddedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List