diff --git a/changes.md b/changes.md
index fcc5b4bb7e5..5c0bf32a813 100644
--- a/changes.md
+++ b/changes.md
@@ -3,64 +3,65 @@
Added Type(s)
-- added type `InventoryEntrySetInventoryLimitsAction`
-- added type `RecurringOrderDeletedMessage`
-- added type `RecurringOrderExpiresAtSetMessage`
-- added type `RecurringOrderDeletedMessagePayload`
-- added type `RecurringOrderExpiresAtSetMessagePayload`
-- added type `ProductSearchFacetResultStats`
-- added type `ProductSearchFacetStatsExpression`
-- added type `ProductSearchFacetStatsValue`
-- added type `RecurringOrderSetExpiresAtAction`
-Removed Type(s)
-
-- :warning: removed type `RecurringOrderMessagePayload`
+- added type `CustomerDefaultBillingAddressSetMessage`
+- added type `CustomerDefaultShippingAddressSetMessage`
+- added type `CustomerStoresSetMessage`
+- added type `CustomerDefaultBillingAddressSetMessagePayload`
+- added type `CustomerDefaultShippingAddressSetMessagePayload`
+- added type `CustomerStoresSetMessagePayload`
Added Method(s)
-- added method `apiRoot.withProjectKey().recurringOrders().withId().delete()`
-- added method `apiRoot.withProjectKey().recurringOrders().withKey().delete()`
+- added method `apiRoot.withProjectKey().recurrencePolicies().withKey().delete()`
+- added method `apiRoot.withProjectKey().recurrencePolicies().withId().delete()`
Added Property(s)
+Added Type(s)
-- added property `minCartQuantity` to type `InventoryEntry`
-- added property `maxCartQuantity` to type `InventoryEntry`
-- added property `minCartQuantity` to type `InventoryEntryDraft`
-- added property `maxCartQuantity` to type `InventoryEntryDraft`
-- added property `expiresAt` to type `RecurringOrderDraft`
+- added type `AssociateRoleKeyReference`
+- added type `BusinessUnitKeyReference`
+- added type `BusinessUnitImportRequest`
+- added type `AssociateRoleInheritanceMode`
+- added type `BusinessUnitStatus`
+- added type `BusinessUnitAssociateMode`
+- added type `BusinessUnitApprovalRuleMode`
+- added type `BusinessUnitStoreMode`
+- added type `BusinessUnitType`
+- added type `AssociateRoleAssignmentDraft`
+- added type `AssociateDraft`
+- added type `BusinessUnitImport`
+- added type `CompanyBusinessUnitImport`
+- added type `DivisionBusinessUnitImport`
Added Enum(s)
+Added Method(s)
-- added enum `discount-group` to type `ChangeSubscriptionResourceTypeId`
+- added method `apiRoot.withProjectKeyValue().businessUnits().importContainers().withImportContainerKeyValue().post()`
Added Type(s)
+Added Resource(s)
-- added type `TooManyRequestsError`
-- added type `GraphQLTooManyRequestsError`
-- added type `GraphQLErrorObject`
+- added resource `/{projectKey}/business-units`
+- added resource `/{projectKey}/business-units/import-containers`
+- added resource `/{projectKey}/business-units/import-containers/{importContainerKey}`
Changed Property(s)
+Added Enum(s)
-- :warning: changed property `extensions` of type `GraphQLError` from type `object` to `GraphQLErrorObject`
+- added enum `business-unit` to type `ImportResourceType`
+- added enum `associate-role` to type `ReferenceType`
+- added enum `business-unit` to type `ReferenceType`
Deletes a Recurrence Policy in the Project.
+ *A Recurrence Policy can be deleted only if it is not referenced by any Embedded Price, Standalone Price, or (Custom) Line Item, otherwise a ReferenceExists error is returned.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .recurrencePolicies()
+ * .withId("{ID}")
+ * .delete()
+ * .withVersion(version)
+ * .execute()
+ * }
+ * Deletes a Recurrence Policy in the Project.
+ *A Recurrence Policy can be deleted only if it is not referenced by any Embedded Price, Standalone Price, or (Custom) Line Item, otherwise a ReferenceExists error is returned.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .recurrencePolicies()
+ * .withKey("{key}")
+ * .delete()
+ * .withVersion(version)
+ * .execute()
+ * }
+ * Sets the default billing address from addresses. The action adds the id of the specified Address to the billingAddressIds if not contained already. Either addressId or addressKey is required.
This action generates the CustomerDefaultBillingAddressSet Message.
* *Sets the default billing address from addresses. The action adds the id of the specified Address to the billingAddressIds if not contained already. Either addressId or addressKey is required.
This action generates the CustomerDefaultBillingAddressSet Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetDefaultBillingAddressActionImpl implements CustomerSetDefaultBillingAddressAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressAction.java index 22e09c651c1..6d0b8657542 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressAction.java @@ -14,6 +14,7 @@ /** *Sets the default shipping address from addresses. The action adds the id of the specified address to the shippingAddressIds if not contained already. Either addressId or addressKey is required.
This action generates the CustomerDefaultShippingAddressSet Message.
* *Sets the default shipping address from addresses. The action adds the id of the specified address to the shippingAddressIds if not contained already. Either addressId or addressKey is required.
This action generates the CustomerDefaultShippingAddressSet Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetDefaultShippingAddressActionImpl implements CustomerSetDefaultShippingAddressAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresAction.java index 64dad5ce413..c917aa721f2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresAction.java @@ -19,6 +19,7 @@ /** *Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.
+ *This action generates the CustomerStoresSet Message.
* *Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.
+ *This action generates the CustomerStoresSet Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetStoresActionImpl implements CustomerSetStoresAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessage.java new file mode 100644 index 00000000000..eb19b2f34e5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessage.java @@ -0,0 +1,162 @@ + +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.common.Address; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *Generated after a successful Set Default Billing Address update action.
+ * + *
+ * CustomerDefaultBillingAddressSetMessage customerDefaultBillingAddressSetMessage = CustomerDefaultBillingAddressSetMessage.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()
+ *
+ * The address that was set as the default billing address.
+ * @return address + */ + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *The address that was set as the default billing address.
+ * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerDefaultBillingAddressSetMessage + */ + public static CustomerDefaultBillingAddressSetMessage of() { + return new CustomerDefaultBillingAddressSetMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerDefaultBillingAddressSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerDefaultBillingAddressSetMessage of(final CustomerDefaultBillingAddressSetMessage template) { + CustomerDefaultBillingAddressSetMessageImpl instance = new CustomerDefaultBillingAddressSetMessageImpl(); + 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.setAddress(template.getAddress()); + return instance; + } + + public CustomerDefaultBillingAddressSetMessage copyDeep(); + + /** + * factory method to create a deep copy of CustomerDefaultBillingAddressSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerDefaultBillingAddressSetMessage deepCopy( + @Nullable final CustomerDefaultBillingAddressSetMessage template) { + if (template == null) { + return null; + } + CustomerDefaultBillingAddressSetMessageImpl instance = new CustomerDefaultBillingAddressSetMessageImpl(); + 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.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerDefaultBillingAddressSetMessage + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessageBuilder builder() { + return CustomerDefaultBillingAddressSetMessageBuilder.of(); + } + + /** + * create builder for CustomerDefaultBillingAddressSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessageBuilder builder( + final CustomerDefaultBillingAddressSetMessage template) { + return CustomerDefaultBillingAddressSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * CustomerDefaultBillingAddressSetMessage customerDefaultBillingAddressSetMessage = CustomerDefaultBillingAddressSetMessage.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.
+ * @param id value to be set + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder 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 CustomerDefaultBillingAddressSetMessageBuilder 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 CustomerDefaultBillingAddressSetMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder 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 CustomerDefaultBillingAddressSetMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder 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 CustomerDefaultBillingAddressSetMessageBuilder 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 CustomerDefaultBillingAddressSetMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder 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.
The address that was set as the default billing address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder address( + FunctionThe address that was set as the default billing address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder withAddress( + FunctionThe address that was set as the default billing address.
+ * @param address value to be set + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessageBuilder address( + @Nullable final com.commercetools.api.models.common.Address address) { + this.address = address; + 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.
The address that was set as the default billing address.
+ * @return address + */ + + @Nullable + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerDefaultBillingAddressSetMessage with checking for non-null required values + * @return CustomerDefaultBillingAddressSetMessage + */ + public CustomerDefaultBillingAddressSetMessage build() { + Objects.requireNonNull(id, CustomerDefaultBillingAddressSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerDefaultBillingAddressSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerDefaultBillingAddressSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerDefaultBillingAddressSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerDefaultBillingAddressSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerDefaultBillingAddressSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerDefaultBillingAddressSetMessage.class + ": resourceVersion is missing"); + return new CustomerDefaultBillingAddressSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * builds CustomerDefaultBillingAddressSetMessage without checking for non-null required values + * @return CustomerDefaultBillingAddressSetMessage + */ + public CustomerDefaultBillingAddressSetMessage buildUnchecked() { + return new CustomerDefaultBillingAddressSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * factory method for an instance of CustomerDefaultBillingAddressSetMessageBuilder + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessageBuilder of() { + return new CustomerDefaultBillingAddressSetMessageBuilder(); + } + + /** + * create builder for CustomerDefaultBillingAddressSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessageBuilder of( + final CustomerDefaultBillingAddressSetMessage template) { + CustomerDefaultBillingAddressSetMessageBuilder builder = new CustomerDefaultBillingAddressSetMessageBuilder(); + 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.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessageImpl.java new file mode 100644 index 00000000000..d73dd11f5d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessageImpl.java @@ -0,0 +1,301 @@ + +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 Set Default Billing Address update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerDefaultBillingAddressSetMessageImpl implements CustomerDefaultBillingAddressSetMessage, 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.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerDefaultBillingAddressSetMessageImpl(@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("address") final com.commercetools.api.models.common.Address address) { + 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.address = address; + this.type = CUSTOMER_DEFAULT_BILLING_ADDRESS_SET; + } + + /** + * create empty instance + */ + public CustomerDefaultBillingAddressSetMessageImpl() { + this.type = CUSTOMER_DEFAULT_BILLING_ADDRESS_SET; + } + + /** + *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.
The address that was set as the default billing address.
+ */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + 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 setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerDefaultBillingAddressSetMessageImpl that = (CustomerDefaultBillingAddressSetMessageImpl) 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(address, that.address) + .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(address, that.address) + .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(address) + .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("address", address) + .build(); + } + + @Override + public CustomerDefaultBillingAddressSetMessage copyDeep() { + return CustomerDefaultBillingAddressSetMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessagePayload.java new file mode 100644 index 00000000000..3886799a79a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessagePayload.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.common.Address; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *Generated after a successful Set Default Billing Address update action.
+ * + *
+ * CustomerDefaultBillingAddressSetMessagePayload customerDefaultBillingAddressSetMessagePayload = CustomerDefaultBillingAddressSetMessagePayload.builder()
+ * .build()
+ *
+ * The address that was set as the default billing address.
+ * @return address + */ + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *The address that was set as the default billing address.
+ * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerDefaultBillingAddressSetMessagePayload + */ + public static CustomerDefaultBillingAddressSetMessagePayload of() { + return new CustomerDefaultBillingAddressSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerDefaultBillingAddressSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerDefaultBillingAddressSetMessagePayload of( + final CustomerDefaultBillingAddressSetMessagePayload template) { + CustomerDefaultBillingAddressSetMessagePayloadImpl instance = new CustomerDefaultBillingAddressSetMessagePayloadImpl(); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerDefaultBillingAddressSetMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of CustomerDefaultBillingAddressSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerDefaultBillingAddressSetMessagePayload deepCopy( + @Nullable final CustomerDefaultBillingAddressSetMessagePayload template) { + if (template == null) { + return null; + } + CustomerDefaultBillingAddressSetMessagePayloadImpl instance = new CustomerDefaultBillingAddressSetMessagePayloadImpl(); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerDefaultBillingAddressSetMessagePayload + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessagePayloadBuilder builder() { + return CustomerDefaultBillingAddressSetMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerDefaultBillingAddressSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessagePayloadBuilder builder( + final CustomerDefaultBillingAddressSetMessagePayload template) { + return CustomerDefaultBillingAddressSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * CustomerDefaultBillingAddressSetMessagePayload customerDefaultBillingAddressSetMessagePayload = CustomerDefaultBillingAddressSetMessagePayload.builder()
+ * .build()
+ *
+ * The address that was set as the default billing address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessagePayloadBuilder address( + FunctionThe address that was set as the default billing address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessagePayloadBuilder withAddress( + FunctionThe address that was set as the default billing address.
+ * @param address value to be set + * @return Builder + */ + + public CustomerDefaultBillingAddressSetMessagePayloadBuilder address( + @Nullable final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *The address that was set as the default billing address.
+ * @return address + */ + + @Nullable + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerDefaultBillingAddressSetMessagePayload with checking for non-null required values + * @return CustomerDefaultBillingAddressSetMessagePayload + */ + public CustomerDefaultBillingAddressSetMessagePayload build() { + return new CustomerDefaultBillingAddressSetMessagePayloadImpl(address); + } + + /** + * builds CustomerDefaultBillingAddressSetMessagePayload without checking for non-null required values + * @return CustomerDefaultBillingAddressSetMessagePayload + */ + public CustomerDefaultBillingAddressSetMessagePayload buildUnchecked() { + return new CustomerDefaultBillingAddressSetMessagePayloadImpl(address); + } + + /** + * factory method for an instance of CustomerDefaultBillingAddressSetMessagePayloadBuilder + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessagePayloadBuilder of() { + return new CustomerDefaultBillingAddressSetMessagePayloadBuilder(); + } + + /** + * create builder for CustomerDefaultBillingAddressSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultBillingAddressSetMessagePayloadBuilder of( + final CustomerDefaultBillingAddressSetMessagePayload template) { + CustomerDefaultBillingAddressSetMessagePayloadBuilder builder = new CustomerDefaultBillingAddressSetMessagePayloadBuilder(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessagePayloadImpl.java new file mode 100644 index 00000000000..802e34a9c33 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultBillingAddressSetMessagePayloadImpl.java @@ -0,0 +1,100 @@ + +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 Set Default Billing Address update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerDefaultBillingAddressSetMessagePayloadImpl + implements CustomerDefaultBillingAddressSetMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerDefaultBillingAddressSetMessagePayloadImpl( + @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + this.address = address; + this.type = CUSTOMER_DEFAULT_BILLING_ADDRESS_SET; + } + + /** + * create empty instance + */ + public CustomerDefaultBillingAddressSetMessagePayloadImpl() { + this.type = CUSTOMER_DEFAULT_BILLING_ADDRESS_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *The address that was set as the default billing address.
+ */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerDefaultBillingAddressSetMessagePayloadImpl that = (CustomerDefaultBillingAddressSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(address, that.address) + .append(type, that.type) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("address", address) + .build(); + } + + @Override + public CustomerDefaultBillingAddressSetMessagePayload copyDeep() { + return CustomerDefaultBillingAddressSetMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessage.java new file mode 100644 index 00000000000..f427833a396 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessage.java @@ -0,0 +1,162 @@ + +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.common.Address; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *Generated after a successful Set Default Shipping Address update action.
+ * + *
+ * CustomerDefaultShippingAddressSetMessage customerDefaultShippingAddressSetMessage = CustomerDefaultShippingAddressSetMessage.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()
+ *
+ * The address that was set as the default shipping address.
+ * @return address + */ + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *The address that was set as the default shipping address.
+ * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerDefaultShippingAddressSetMessage + */ + public static CustomerDefaultShippingAddressSetMessage of() { + return new CustomerDefaultShippingAddressSetMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerDefaultShippingAddressSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerDefaultShippingAddressSetMessage of(final CustomerDefaultShippingAddressSetMessage template) { + CustomerDefaultShippingAddressSetMessageImpl instance = new CustomerDefaultShippingAddressSetMessageImpl(); + 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.setAddress(template.getAddress()); + return instance; + } + + public CustomerDefaultShippingAddressSetMessage copyDeep(); + + /** + * factory method to create a deep copy of CustomerDefaultShippingAddressSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerDefaultShippingAddressSetMessage deepCopy( + @Nullable final CustomerDefaultShippingAddressSetMessage template) { + if (template == null) { + return null; + } + CustomerDefaultShippingAddressSetMessageImpl instance = new CustomerDefaultShippingAddressSetMessageImpl(); + 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.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerDefaultShippingAddressSetMessage + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessageBuilder builder() { + return CustomerDefaultShippingAddressSetMessageBuilder.of(); + } + + /** + * create builder for CustomerDefaultShippingAddressSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessageBuilder builder( + final CustomerDefaultShippingAddressSetMessage template) { + return CustomerDefaultShippingAddressSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * CustomerDefaultShippingAddressSetMessage customerDefaultShippingAddressSetMessage = CustomerDefaultShippingAddressSetMessage.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.
+ * @param id value to be set + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder 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 CustomerDefaultShippingAddressSetMessageBuilder 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 CustomerDefaultShippingAddressSetMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder 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 CustomerDefaultShippingAddressSetMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder 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 CustomerDefaultShippingAddressSetMessageBuilder 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 CustomerDefaultShippingAddressSetMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder 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.
The address that was set as the default shipping address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder address( + FunctionThe address that was set as the default shipping address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder withAddress( + FunctionThe address that was set as the default shipping address.
+ * @param address value to be set + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessageBuilder address( + @Nullable final com.commercetools.api.models.common.Address address) { + this.address = address; + 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.
The address that was set as the default shipping address.
+ * @return address + */ + + @Nullable + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerDefaultShippingAddressSetMessage with checking for non-null required values + * @return CustomerDefaultShippingAddressSetMessage + */ + public CustomerDefaultShippingAddressSetMessage build() { + Objects.requireNonNull(id, CustomerDefaultShippingAddressSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerDefaultShippingAddressSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerDefaultShippingAddressSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerDefaultShippingAddressSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerDefaultShippingAddressSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerDefaultShippingAddressSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerDefaultShippingAddressSetMessage.class + ": resourceVersion is missing"); + return new CustomerDefaultShippingAddressSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * builds CustomerDefaultShippingAddressSetMessage without checking for non-null required values + * @return CustomerDefaultShippingAddressSetMessage + */ + public CustomerDefaultShippingAddressSetMessage buildUnchecked() { + return new CustomerDefaultShippingAddressSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * factory method for an instance of CustomerDefaultShippingAddressSetMessageBuilder + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessageBuilder of() { + return new CustomerDefaultShippingAddressSetMessageBuilder(); + } + + /** + * create builder for CustomerDefaultShippingAddressSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessageBuilder of( + final CustomerDefaultShippingAddressSetMessage template) { + CustomerDefaultShippingAddressSetMessageBuilder builder = new CustomerDefaultShippingAddressSetMessageBuilder(); + 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.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessageImpl.java new file mode 100644 index 00000000000..01dbe2f0003 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessageImpl.java @@ -0,0 +1,302 @@ + +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 Set Default Shipping Address update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerDefaultShippingAddressSetMessageImpl + implements CustomerDefaultShippingAddressSetMessage, 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.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerDefaultShippingAddressSetMessageImpl(@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("address") final com.commercetools.api.models.common.Address address) { + 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.address = address; + this.type = CUSTOMER_DEFAULT_SHIPPING_ADDRESS_SET; + } + + /** + * create empty instance + */ + public CustomerDefaultShippingAddressSetMessageImpl() { + this.type = CUSTOMER_DEFAULT_SHIPPING_ADDRESS_SET; + } + + /** + *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.
The address that was set as the default shipping address.
+ */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + 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 setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerDefaultShippingAddressSetMessageImpl that = (CustomerDefaultShippingAddressSetMessageImpl) 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(address, that.address) + .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(address, that.address) + .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(address) + .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("address", address) + .build(); + } + + @Override + public CustomerDefaultShippingAddressSetMessage copyDeep() { + return CustomerDefaultShippingAddressSetMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessagePayload.java new file mode 100644 index 00000000000..63a6e3b72ba --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessagePayload.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.common.Address; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *Generated after a successful Set Default Shipping Address update action.
+ * + *
+ * CustomerDefaultShippingAddressSetMessagePayload customerDefaultShippingAddressSetMessagePayload = CustomerDefaultShippingAddressSetMessagePayload.builder()
+ * .build()
+ *
+ * The address that was set as the default shipping address.
+ * @return address + */ + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *The address that was set as the default shipping address.
+ * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerDefaultShippingAddressSetMessagePayload + */ + public static CustomerDefaultShippingAddressSetMessagePayload of() { + return new CustomerDefaultShippingAddressSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerDefaultShippingAddressSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerDefaultShippingAddressSetMessagePayload of( + final CustomerDefaultShippingAddressSetMessagePayload template) { + CustomerDefaultShippingAddressSetMessagePayloadImpl instance = new CustomerDefaultShippingAddressSetMessagePayloadImpl(); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerDefaultShippingAddressSetMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of CustomerDefaultShippingAddressSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerDefaultShippingAddressSetMessagePayload deepCopy( + @Nullable final CustomerDefaultShippingAddressSetMessagePayload template) { + if (template == null) { + return null; + } + CustomerDefaultShippingAddressSetMessagePayloadImpl instance = new CustomerDefaultShippingAddressSetMessagePayloadImpl(); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerDefaultShippingAddressSetMessagePayload + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessagePayloadBuilder builder() { + return CustomerDefaultShippingAddressSetMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerDefaultShippingAddressSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessagePayloadBuilder builder( + final CustomerDefaultShippingAddressSetMessagePayload template) { + return CustomerDefaultShippingAddressSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * CustomerDefaultShippingAddressSetMessagePayload customerDefaultShippingAddressSetMessagePayload = CustomerDefaultShippingAddressSetMessagePayload.builder()
+ * .build()
+ *
+ * The address that was set as the default shipping address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessagePayloadBuilder address( + FunctionThe address that was set as the default shipping address.
+ * @param builder function to build the address value + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessagePayloadBuilder withAddress( + FunctionThe address that was set as the default shipping address.
+ * @param address value to be set + * @return Builder + */ + + public CustomerDefaultShippingAddressSetMessagePayloadBuilder address( + @Nullable final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *The address that was set as the default shipping address.
+ * @return address + */ + + @Nullable + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerDefaultShippingAddressSetMessagePayload with checking for non-null required values + * @return CustomerDefaultShippingAddressSetMessagePayload + */ + public CustomerDefaultShippingAddressSetMessagePayload build() { + return new CustomerDefaultShippingAddressSetMessagePayloadImpl(address); + } + + /** + * builds CustomerDefaultShippingAddressSetMessagePayload without checking for non-null required values + * @return CustomerDefaultShippingAddressSetMessagePayload + */ + public CustomerDefaultShippingAddressSetMessagePayload buildUnchecked() { + return new CustomerDefaultShippingAddressSetMessagePayloadImpl(address); + } + + /** + * factory method for an instance of CustomerDefaultShippingAddressSetMessagePayloadBuilder + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessagePayloadBuilder of() { + return new CustomerDefaultShippingAddressSetMessagePayloadBuilder(); + } + + /** + * create builder for CustomerDefaultShippingAddressSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerDefaultShippingAddressSetMessagePayloadBuilder of( + final CustomerDefaultShippingAddressSetMessagePayload template) { + CustomerDefaultShippingAddressSetMessagePayloadBuilder builder = new CustomerDefaultShippingAddressSetMessagePayloadBuilder(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessagePayloadImpl.java new file mode 100644 index 00000000000..28d19accc84 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDefaultShippingAddressSetMessagePayloadImpl.java @@ -0,0 +1,100 @@ + +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 Set Default Shipping Address update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerDefaultShippingAddressSetMessagePayloadImpl + implements CustomerDefaultShippingAddressSetMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerDefaultShippingAddressSetMessagePayloadImpl( + @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + this.address = address; + this.type = CUSTOMER_DEFAULT_SHIPPING_ADDRESS_SET; + } + + /** + * create empty instance + */ + public CustomerDefaultShippingAddressSetMessagePayloadImpl() { + this.type = CUSTOMER_DEFAULT_SHIPPING_ADDRESS_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *The address that was set as the default shipping address.
+ */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerDefaultShippingAddressSetMessagePayloadImpl that = (CustomerDefaultShippingAddressSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(address, that.address) + .append(type, that.type) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("address", address) + .build(); + } + + @Override + public CustomerDefaultShippingAddressSetMessagePayload copyDeep() { + return CustomerDefaultShippingAddressSetMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerStoresSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerStoresSetMessage.java new file mode 100644 index 00000000000..ab80ea99712 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerStoresSetMessage.java @@ -0,0 +1,206 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.store.StoreKeyReference; +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 Set Stores update action.
+ * + *
+ * CustomerStoresSetMessage customerStoresSetMessage = CustomerStoresSetMessage.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)
+ * .plusStores(storesBuilder -> storesBuilder)
+ * .plusOldStores(oldStoresBuilder -> oldStoresBuilder)
+ * .build()
+ *
+ * The Stores the Customer is associated with after the Set Stores update action.
+ * @return stores + */ + @NotNull + @Valid + @JsonProperty("stores") + public ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @return oldStores + */ + @NotNull + @Valid + @JsonProperty("oldStores") + public ListThe Stores the Customer is associated with after the Set Stores update action.
+ * @param stores values to be set + */ + + @JsonIgnore + public void setStores(final StoreKeyReference... stores); + + /** + *The Stores the Customer is associated with after the Set Stores update action.
+ * @param stores values to be set + */ + + public void setStores(final ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores values to be set + */ + + @JsonIgnore + public void setOldStores(final StoreKeyReference... oldStores); + + /** + *The Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores values to be set + */ + + public void setOldStores(final List
+ * CustomerStoresSetMessage customerStoresSetMessage = CustomerStoresSetMessage.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)
+ * .plusStores(storesBuilder -> storesBuilder)
+ * .plusOldStores(oldStoresBuilder -> oldStoresBuilder)
+ * .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 CustomerStoresSetMessageBuilder 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 CustomerStoresSetMessageBuilder 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 CustomerStoresSetMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder 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 CustomerStoresSetMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder 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 CustomerStoresSetMessageBuilder 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 CustomerStoresSetMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder 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.
The Stores the Customer is associated with after the Set Stores update action.
+ * @param stores value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder stores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + return this; + } + + /** + *The Stores the Customer is associated with after the Set Stores update action.
+ * @param stores value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder stores( + final java.util.ListThe Stores the Customer is associated with after the Set Stores update action.
+ * @param stores value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder plusStores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.addAll(Arrays.asList(stores)); + return this; + } + + /** + *The Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder plusStores( + FunctionThe Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder withStores( + FunctionThe Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder addStores( + FunctionThe Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder setStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder oldStores( + final com.commercetools.api.models.store.StoreKeyReference... oldStores) { + this.oldStores = new ArrayList<>(Arrays.asList(oldStores)); + return this; + } + + /** + *The Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder oldStores( + final java.util.ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores value to be set + * @return Builder + */ + + public CustomerStoresSetMessageBuilder plusOldStores( + final com.commercetools.api.models.store.StoreKeyReference... oldStores) { + if (this.oldStores == null) { + this.oldStores = new ArrayList<>(); + } + this.oldStores.addAll(Arrays.asList(oldStores)); + return this; + } + + /** + *The Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder plusOldStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder withOldStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder addOldStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessageBuilder setOldStores( + FunctionUnique 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.
The Stores the Customer is associated with after the Set Stores update action.
+ * @return stores + */ + + public java.util.ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @return oldStores + */ + + public java.util.ListGenerated after a successful Set Stores update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerStoresSetMessageImpl implements CustomerStoresSetMessage, 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 java.util.ListUnique 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.
The Stores the Customer is associated with after the Set Stores update action.
+ */ + + public java.util.ListThe Stores the Customer was associated with before the Set Stores update action.
+ */ + + public java.util.ListGenerated after a successful Set Stores update action.
+ * + *
+ * CustomerStoresSetMessagePayload customerStoresSetMessagePayload = CustomerStoresSetMessagePayload.builder()
+ * .plusStores(storesBuilder -> storesBuilder)
+ * .plusOldStores(oldStoresBuilder -> oldStoresBuilder)
+ * .build()
+ *
+ * The Stores the Customer is associated with after the Set Stores update action.
+ * @return stores + */ + @NotNull + @Valid + @JsonProperty("stores") + public ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @return oldStores + */ + @NotNull + @Valid + @JsonProperty("oldStores") + public ListThe Stores the Customer is associated with after the Set Stores update action.
+ * @param stores values to be set + */ + + @JsonIgnore + public void setStores(final StoreKeyReference... stores); + + /** + *The Stores the Customer is associated with after the Set Stores update action.
+ * @param stores values to be set + */ + + public void setStores(final ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores values to be set + */ + + @JsonIgnore + public void setOldStores(final StoreKeyReference... oldStores); + + /** + *The Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores values to be set + */ + + public void setOldStores(final List
+ * CustomerStoresSetMessagePayload customerStoresSetMessagePayload = CustomerStoresSetMessagePayload.builder()
+ * .plusStores(storesBuilder -> storesBuilder)
+ * .plusOldStores(oldStoresBuilder -> oldStoresBuilder)
+ * .build()
+ *
+ * The Stores the Customer is associated with after the Set Stores update action.
+ * @param stores value to be set + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder stores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + return this; + } + + /** + *The Stores the Customer is associated with after the Set Stores update action.
+ * @param stores value to be set + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder stores( + final java.util.ListThe Stores the Customer is associated with after the Set Stores update action.
+ * @param stores value to be set + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder plusStores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.addAll(Arrays.asList(stores)); + return this; + } + + /** + *The Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder plusStores( + FunctionThe Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder withStores( + FunctionThe Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder addStores( + FunctionThe Stores the Customer is associated with after the Set Stores update action.
+ * @param builder function to build the stores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder setStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores value to be set + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder oldStores( + final com.commercetools.api.models.store.StoreKeyReference... oldStores) { + this.oldStores = new ArrayList<>(Arrays.asList(oldStores)); + return this; + } + + /** + *The Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores value to be set + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder oldStores( + final java.util.ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @param oldStores value to be set + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder plusOldStores( + final com.commercetools.api.models.store.StoreKeyReference... oldStores) { + if (this.oldStores == null) { + this.oldStores = new ArrayList<>(); + } + this.oldStores.addAll(Arrays.asList(oldStores)); + return this; + } + + /** + *The Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder plusOldStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder withOldStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder addOldStores( + FunctionThe Stores the Customer was associated with before the Set Stores update action.
+ * @param builder function to build the oldStores value + * @return Builder + */ + + public CustomerStoresSetMessagePayloadBuilder setOldStores( + FunctionThe Stores the Customer is associated with after the Set Stores update action.
+ * @return stores + */ + + public java.util.ListThe Stores the Customer was associated with before the Set Stores update action.
+ * @return oldStores + */ + + public java.util.ListGenerated after a successful Set Stores update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerStoresSetMessagePayloadImpl implements CustomerStoresSetMessagePayload, ModelBase { + + private String type; + + private java.util.ListThe Stores the Customer is associated with after the Set Stores update action.
+ */ + + public java.util.ListThe Stores the Customer was associated with before the Set Stores update action.
+ */ + + public java.util.List