diff --git a/changes.md b/changes.md new file mode 100644 index 00000000000..8fddc984f81 --- /dev/null +++ b/changes.md @@ -0,0 +1,111 @@ +**Api changes** + +
+Added Property(s) + +- added property `shippingKey` to type `CartSetLineItemTaxAmountAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/cart/updates/CartSetLineItemTaxAmountAction.raml:12:2) +- added property `shippingKey` to type `CartSetLineItemTaxRateAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/cart/updates/CartSetLineItemTaxRateAction.raml:12:2) +- added property `salutation` to type `MyCustomerDraft` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/me/MyCustomerDraft.raml:32:2) +- added property `shippingKey` to type `StagedOrderSetLineItemTaxAmountAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/order-edit/updates/StagedOrderSetLineItemTaxAmountAction.raml:12:2) +- added property `shippingKey` to type `StagedOrderSetLineItemTaxRateAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/order-edit/updates/StagedOrderSetLineItemTaxRateAction.raml:12:2) +- added property `quoteStateToAccepted` to type `OrderFromQuoteDraft` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/order/OrderFromQuoteDraft.raml:13:2) +- added property `stagedQuoteStateToSent` to type `QuoteDraft` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/quote/QuoteDraft.raml:14:2) +- added property `quoteRequestStateToAccepted` to type `StagedQuoteDraft` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/staged-quote/StagedQuoteDraft.raml:15:2) +- added property `authenticationMode` to type `SnsDestination` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/SnsDestination.raml:23:2) +- added property `authenticationMode` to type `SqsDestination` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/SqsDestination.raml:29:2) +
+ + +
+Changed Property(s) + +- :warning: changed property `locale` of type `Customer` from type `string` to `Locale` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/customer/Customer.raml:124:2) +- :warning: changed property `locale` of type `CustomerDraft` from type `string` to `Locale` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/customer/CustomerDraft.raml:117:2) +- :warning: changed property `locale` of type `CustomerSetLocaleAction` from type `string` to `Locale` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/customer/updates/CustomerSetLocaleAction.raml:8:2) +- :warning: changed property `locale` of type `MyCustomerDraft` from type `string` to `Locale` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/me/MyCustomerDraft.raml:68:2) +- :warning: changed property `locale` of type `MyCustomerSetLocaleAction` from type `string` to `Locale` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/me/updates/MyCustomerSetLocaleAction.raml:8:2) +- :warning: changed property `sort` of type `OrderSearchRequest` from type `OrderSearchSorting` to `null` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/order/OrderSearchRequest.raml:8:2) +- :warning: changed property `resourceTypeId` of type `ChangeSubscription` from type `string` to `ChangeSubscriptionResourceTypeId` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/ChangeSubscription.raml:9:2) +- :warning: changed property `resourceTypeId` of type `MessageSubscription` from type `string` to `MessageSubscriptionResourceTypeId` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/MessageSubscription.raml:9:2) +- :warning: changed property `payloadNotIncluded` of type `MessageDeliveryPayload` to be optional (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/MessageDeliveryPayload.raml:38:2) +- :warning: changed property `accessKey` of type `SnsDestination` to be optional (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/SnsDestination.raml:14:2) +- :warning: changed property `accessSecret` of type `SnsDestination` to be optional (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/SnsDestination.raml:17:2) +- :warning: changed property `accessKey` of type `SqsDestination` to be optional (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/SqsDestination.raml:15:2) +- :warning: changed property `accessSecret` of type `SqsDestination` to be optional (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/subscription/SqsDestination.raml:18:2) +- :warning: changed property `authenticationMode` of type `Customer` to be required (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/customer/Customer.raml:139:2) +
+ + +
+Added Type(s) + +- added type `AttributeGroup` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:6:0) +- added type `AttributeGroupDraft` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:7:0) +- added type `AttributeGroupPagedQueryResponse` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:8:0) +- added type `AttributeGroupReference` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:9:0) +- added type `AttributeGroupResourceIdentifier` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:10:0) +- added type `AttributeGroupUpdate` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:11:0) +- added type `AttributeGroupUpdateAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:12:0) +- added type `AttributeReference` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:13:0) +- added type `AttributeGroupAddAttributeAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:14:0) +- added type `AttributeGroupChangeNameAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:15:0) +- added type `AttributeGroupRemoveAttributeAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:16:0) +- added type `AttributeGroupSetAttributesAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:17:0) +- added type `AttributeGroupSetDescriptionAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:18:0) +- added type `AttributeGroupSetKeyAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:19:0) +- added type `MyCustomerEmailVerify` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:353:0) +- added type `AwsAuthenticationMode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1629:0) +- added type `ChangeSubscriptionResourceTypeId` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1633:0) +- added type `CloudEventsPayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1635:0) +- added type `MessageSubscriptionResourceTypeId` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1644:0) +
+ + +
+Changed Type(s) + +- :warning: changed type `OrderSearchSorting` from type `string` to `object` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1096:0) +- marked type `ShippingMethodSetDescriptionAction` as deprecated (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1512:0) +- marked type `IronMqDestination` as deprecated (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1641:0) +
+ + +
+Added Method(s) + +- added method `get /{projectKey}/attribute-groups` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:11:0) +- added method `post /{projectKey}/attribute-groups` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:25:0) +- added method `get /{projectKey}/subscriptions/{ID}/health` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/subscriptions.raml:102:4) +- added method `get /{projectKey}/attribute-groups/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:49:2) +- added method `post /{projectKey}/attribute-groups/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:63:2) +- added method `delete /{projectKey}/attribute-groups/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:80:2) +- added method `get /{projectKey}/attribute-groups/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:101:2) +- added method `post /{projectKey}/attribute-groups/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:115:2) +- added method `delete /{projectKey}/attribute-groups/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:132:2) +
+ + +
+Added Resource(s) + +- added resource `/{projectKey}/attribute-groups` (file:///home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/api.raml:216:2) +- added resource `/{projectKey}/subscriptions/{ID}/health` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/subscriptions.raml:100:2) +- added resource `/{projectKey}/attribute-groups/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:42:0) +- added resource `/{projectKey}/attribute-groups/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/resources/attribute-groups.raml:94:0) +
+ +**Import changes** + +
+Added Property(s) + +- added property `store` to type `OrderImport` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/importapi/types/order-import.raml:535:6) +
+ + +
+Removed Property(s) + +- :warning: removed property `totalTax` from type `TaxedPrice` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/importapi/types/order-import.raml:327:6) +
+ diff --git a/commercetools/commercetools-sdk-compat-v1/src/integrationTest/java/com/commercetools/compat/CommercetoolsTestUtils.java b/commercetools/commercetools-sdk-compat-v1/src/integrationTest/java/com/commercetools/compat/CommercetoolsTestUtils.java index 5ca6fe45aa0..8274d6cecb9 100644 --- a/commercetools/commercetools-sdk-compat-v1/src/integrationTest/java/com/commercetools/compat/CommercetoolsTestUtils.java +++ b/commercetools/commercetools-sdk-compat-v1/src/integrationTest/java/com/commercetools/compat/CommercetoolsTestUtils.java @@ -3,7 +3,6 @@ import java.util.UUID; -import com.commercetools.api.client.ByProjectKeyRequestBuilder; import com.commercetools.api.client.ProjectApiRoot; import com.commercetools.api.defaultconfig.ApiRootBuilder; import com.commercetools.api.defaultconfig.ServiceRegion; diff --git a/commercetools/commercetools-sdk-compat-v1/src/main/java/com/commercetools/compat/QueryBuilder.java b/commercetools/commercetools-sdk-compat-v1/src/main/java/com/commercetools/compat/QueryBuilder.java index 752cbc38105..42fcde7dc72 100644 --- a/commercetools/commercetools-sdk-compat-v1/src/main/java/com/commercetools/compat/QueryBuilder.java +++ b/commercetools/commercetools-sdk-compat-v1/src/main/java/com/commercetools/compat/QueryBuilder.java @@ -7,7 +7,6 @@ import com.commercetools.api.client.*; import com.commercetools.api.models.PagedQueryResourceRequest; -import com.commercetools.api.models.cart.CartPagedQueryResponse; import io.sphere.sdk.cartdiscounts.queries.CartDiscountQuery; import io.sphere.sdk.carts.queries.CartQuery; import io.sphere.sdk.categories.queries.CategoryQuery; @@ -26,7 +25,6 @@ import io.sphere.sdk.products.ProductProjectionType; import io.sphere.sdk.products.queries.ProductProjectionQuery; import io.sphere.sdk.products.queries.ProductQuery; -import io.sphere.sdk.productselections.queries.ProductSelectionQuery; import io.sphere.sdk.producttypes.queries.ProductTypeQuery; import io.sphere.sdk.queries.MetaModelQueryDsl; import io.sphere.sdk.queries.QueryPredicate; @@ -106,7 +104,8 @@ public ByProjectKeyCartDiscountsGet cartDiscount(final Supplier ByProjectKeyCustomObjectsGet customObject(Class valueClass, final Function, CustomObjectQuery> queryDsl) { + public ByProjectKeyCustomObjectsGet customObject(Class valueClass, + final Function, CustomObjectQuery> queryDsl) { return with(queryDsl.apply(CustomObjectQuery.of(valueClass))); } @@ -160,8 +159,7 @@ public ByProjectKeyProductProjectionsGet productProjections( return with(queryDsl.apply(ProductProjectionQuery.ofCurrent())); } - public ByProjectKeyProductProjectionsGet productProjections( - final Supplier queryDsl) { + public ByProjectKeyProductProjectionsGet productProjections(final Supplier queryDsl) { return with(queryDsl.get()); } @@ -180,8 +178,7 @@ public ByProjectKeyCustomerGroupsGet customerGroups( return with(queryDsl.apply(CustomerGroupQuery.of())); } - public ByProjectKeyCustomerGroupsGet customerGroups( - final Supplier queryDsl) { + public ByProjectKeyCustomerGroupsGet customerGroups(final Supplier queryDsl) { return with(queryDsl.get()); } @@ -230,8 +227,7 @@ public ByProjectKeyProductDiscountsGet productDiscounts( return with(queryDsl.apply(ProductDiscountQuery.of())); } - public ByProjectKeyProductDiscountsGet productDiscounts( - final Supplier queryDsl) { + public ByProjectKeyProductDiscountsGet productDiscounts(final Supplier queryDsl) { return with(queryDsl.get()); } @@ -260,8 +256,7 @@ public ByProjectKeyShippingMethodsGet shippingMethods( return with(queryDsl.apply(ShippingMethodQuery.of())); } - public ByProjectKeyShippingMethodsGet shippingMethods( - final Supplier queryDsl) { + public ByProjectKeyShippingMethodsGet shippingMethods(final Supplier queryDsl) { return with(queryDsl.get()); } @@ -602,9 +597,9 @@ public ByProjectKeyProductDiscountsGet with(final ProductDiscountQuery queryDsl) return query(apiRoot.productDiscounts().get(), queryDsl); } -// public ByProjectKeyProductSelectionsGet with(final ProductSelectionQuery queryDsl) { -// return query(apiRoot.productSelections().get(), queryDsl); -// } + // public ByProjectKeyProductSelectionsGet with(final ProductSelectionQuery queryDsl) { + // return query(apiRoot.productSelections().get(), queryDsl); + // } public ByProjectKeyProductTypesGet with(final ProductTypeQuery queryDsl) { return query(apiRoot.productTypes().get(), queryDsl); diff --git a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/subscription/SubscriptionFixtures.java b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/subscription/SubscriptionFixtures.java index 1efb91d13bb..e4eab026e45 100644 --- a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/subscription/SubscriptionFixtures.java +++ b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/subscription/SubscriptionFixtures.java @@ -37,7 +37,8 @@ public static Subscription createSubscription() { .key(CommercetoolsTestUtils.randomKey()) //TODO connection string .destination(AzureServiceBusDestinationBuilder.of().connectionString("").build()) - .messages(Arrays.asList(MessageSubscriptionBuilder.of().resourceTypeId("review").build())) + .messages(Arrays.asList( + MessageSubscriptionBuilder.of().resourceTypeId(MessageSubscriptionResourceTypeId.REVIEW).build())) .build(); Subscription subscription = CommercetoolsTestUtils.getProjectApiRoot() diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDDelete.java new file mode 100644 index 00000000000..d3aabd61b4f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDDelete.java @@ -0,0 +1,246 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withId("{ID}")
+ *            .delete()
+ *            .withVersion(version)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsByIDDelete extends + ApiMethod + implements com.commercetools.api.client.VersionedTrait, + com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + private String projectKey; + private String ID; + + public ByProjectKeyAttributeGroupsByIDDelete(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyAttributeGroupsByIDDelete(ByProjectKeyAttributeGroupsByIDDelete t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.DELETE, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public List getVersion() { + return this.getQueryParam("version"); + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + /** + * set version with the specified value + */ + public ByProjectKeyAttributeGroupsByIDDelete withVersion(final TValue version) { + return copy().withQueryParam("version", version); + } + + /** + * add additional version query parameter + */ + public ByProjectKeyAttributeGroupsByIDDelete addVersion(final TValue version) { + return copy().addQueryParam("version", version); + } + + /** + * set version with the specified value + */ + public ByProjectKeyAttributeGroupsByIDDelete withVersion(final Supplier supplier) { + return copy().withQueryParam("version", supplier.get()); + } + + /** + * add additional version query parameter + */ + public ByProjectKeyAttributeGroupsByIDDelete addVersion(final Supplier supplier) { + return copy().addQueryParam("version", supplier.get()); + } + + /** + * set version with the specified value + */ + public ByProjectKeyAttributeGroupsByIDDelete withVersion(final Function op) { + return copy().withQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * add additional version query parameter + */ + public ByProjectKeyAttributeGroupsByIDDelete addVersion(final Function op) { + return copy().addQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * set version with the specified values + */ + public ByProjectKeyAttributeGroupsByIDDelete withVersion(final Collection version) { + return copy().withoutQueryParam("version") + .addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional version query parameters + */ + public ByProjectKeyAttributeGroupsByIDDelete addVersion(final Collection version) { + return copy().addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDDelete withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDDelete addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDDelete withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDDelete addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDDelete withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDDelete addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsByIDDelete withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsByIDDelete addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsByIDDelete that = (ByProjectKeyAttributeGroupsByIDDelete) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsByIDDelete copy() { + return new ByProjectKeyAttributeGroupsByIDDelete(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDGet.java new file mode 100644 index 00000000000..95eff7f8e04 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDGet.java @@ -0,0 +1,180 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withId("{ID}")
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsByIDGet extends + ApiMethod + implements com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + private String projectKey; + private String ID; + + public ByProjectKeyAttributeGroupsByIDGet(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyAttributeGroupsByIDGet(ByProjectKeyAttributeGroupsByIDGet t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDGet withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDGet addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDGet withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDGet addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDGet withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDGet addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsByIDGet withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsByIDGet addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsByIDGet that = (ByProjectKeyAttributeGroupsByIDGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsByIDGet copy() { + return new ByProjectKeyAttributeGroupsByIDGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDPost.java new file mode 100644 index 00000000000..954a8dbe0d2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDPost.java @@ -0,0 +1,203 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withId("{ID}")
+ *            .post(null)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsByIDPost extends + BodyApiMethod + implements com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.Deprecatable200Trait, + com.commercetools.api.client.ErrorableTrait { + + private String projectKey; + private String ID; + + private com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate; + + public ByProjectKeyAttributeGroupsByIDPost(final ApiHttpClient apiHttpClient, String projectKey, String ID, + com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + this.attributeGroupUpdate = attributeGroupUpdate; + } + + public ByProjectKeyAttributeGroupsByIDPost(ByProjectKeyAttributeGroupsByIDPost t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + this.attributeGroupUpdate = t.attributeGroupUpdate; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + io.vrap.rmf.base.client.utils.json.JsonUtils + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(attributeGroupUpdate))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDPost withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDPost addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDPost withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDPost addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsByIDPost withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsByIDPost addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsByIDPost withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsByIDPost addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupUpdate getBody() { + return attributeGroupUpdate; + } + + public ByProjectKeyAttributeGroupsByIDPost withBody( + com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { + ByProjectKeyAttributeGroupsByIDPost t = copy(); + t.attributeGroupUpdate = attributeGroupUpdate; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsByIDPost that = (ByProjectKeyAttributeGroupsByIDPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(ID, that.ID) + .append(attributeGroupUpdate, that.attributeGroupUpdate) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).append(attributeGroupUpdate).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsByIDPost copy() { + return new ByProjectKeyAttributeGroupsByIDPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDRequestBuilder.java new file mode 100644 index 00000000000..ce21ef6eb30 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDRequestBuilder.java @@ -0,0 +1,34 @@ + +package com.commercetools.api.client; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsByIDRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String ID; + + public ByProjectKeyAttributeGroupsByIDRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey, + final String ID) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyAttributeGroupsByIDGet get() { + return new ByProjectKeyAttributeGroupsByIDGet(apiHttpClient, projectKey, ID); + } + + public ByProjectKeyAttributeGroupsByIDPost post( + com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { + return new ByProjectKeyAttributeGroupsByIDPost(apiHttpClient, projectKey, ID, attributeGroupUpdate); + } + + public ByProjectKeyAttributeGroupsByIDDelete delete() { + return new ByProjectKeyAttributeGroupsByIDDelete(apiHttpClient, projectKey, ID); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsGet.java new file mode 100644 index 00000000000..b2fef37d3d0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsGet.java @@ -0,0 +1,525 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsGet extends + ApiMethod + implements com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.SortableTrait, + com.commercetools.api.client.PagingTrait, + com.commercetools.api.client.QueryTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + private String projectKey; + + public ByProjectKeyAttributeGroupsGet(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyAttributeGroupsGet(ByProjectKeyAttributeGroupsGet t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, + com.commercetools.api.models.attribute_group.AttributeGroupPagedQueryResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroupPagedQueryResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public List getSort() { + return this.getQueryParam("sort"); + } + + public List getLimit() { + return this.getQueryParam("limit"); + } + + public List getOffset() { + return this.getQueryParam("offset"); + } + + public List getWithTotal() { + return this.getQueryParam("withTotal"); + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsGet withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsGet addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsGet withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsGet addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsGet withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsGet addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsGet withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsGet addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * set sort with the specified value + */ + public ByProjectKeyAttributeGroupsGet withSort(final TValue sort) { + return copy().withQueryParam("sort", sort); + } + + /** + * add additional sort query parameter + */ + public ByProjectKeyAttributeGroupsGet addSort(final TValue sort) { + return copy().addQueryParam("sort", sort); + } + + /** + * set sort with the specified value + */ + public ByProjectKeyAttributeGroupsGet withSort(final Supplier supplier) { + return copy().withQueryParam("sort", supplier.get()); + } + + /** + * add additional sort query parameter + */ + public ByProjectKeyAttributeGroupsGet addSort(final Supplier supplier) { + return copy().addQueryParam("sort", supplier.get()); + } + + /** + * set sort with the specified value + */ + public ByProjectKeyAttributeGroupsGet withSort(final Function op) { + return copy().withQueryParam("sort", op.apply(new StringBuilder())); + } + + /** + * add additional sort query parameter + */ + public ByProjectKeyAttributeGroupsGet addSort(final Function op) { + return copy().addQueryParam("sort", op.apply(new StringBuilder())); + } + + /** + * set sort with the specified values + */ + public ByProjectKeyAttributeGroupsGet withSort(final Collection sort) { + return copy().withoutQueryParam("sort") + .addQueryParams( + sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional sort query parameters + */ + public ByProjectKeyAttributeGroupsGet addSort(final Collection sort) { + return copy().addQueryParams( + sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList())); + } + + /** + * set limit with the specified value + */ + public ByProjectKeyAttributeGroupsGet withLimit(final TValue limit) { + return copy().withQueryParam("limit", limit); + } + + /** + * add additional limit query parameter + */ + public ByProjectKeyAttributeGroupsGet addLimit(final TValue limit) { + return copy().addQueryParam("limit", limit); + } + + /** + * set limit with the specified value + */ + public ByProjectKeyAttributeGroupsGet withLimit(final Supplier supplier) { + return copy().withQueryParam("limit", supplier.get()); + } + + /** + * add additional limit query parameter + */ + public ByProjectKeyAttributeGroupsGet addLimit(final Supplier supplier) { + return copy().addQueryParam("limit", supplier.get()); + } + + /** + * set limit with the specified value + */ + public ByProjectKeyAttributeGroupsGet withLimit(final Function op) { + return copy().withQueryParam("limit", op.apply(new StringBuilder())); + } + + /** + * add additional limit query parameter + */ + public ByProjectKeyAttributeGroupsGet addLimit(final Function op) { + return copy().addQueryParam("limit", op.apply(new StringBuilder())); + } + + /** + * set limit with the specified values + */ + public ByProjectKeyAttributeGroupsGet withLimit(final Collection limit) { + return copy().withoutQueryParam("limit") + .addQueryParams( + limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional limit query parameters + */ + public ByProjectKeyAttributeGroupsGet addLimit(final Collection limit) { + return copy().addQueryParams( + limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList())); + } + + /** + * set offset with the specified value + */ + public ByProjectKeyAttributeGroupsGet withOffset(final TValue offset) { + return copy().withQueryParam("offset", offset); + } + + /** + * add additional offset query parameter + */ + public ByProjectKeyAttributeGroupsGet addOffset(final TValue offset) { + return copy().addQueryParam("offset", offset); + } + + /** + * set offset with the specified value + */ + public ByProjectKeyAttributeGroupsGet withOffset(final Supplier supplier) { + return copy().withQueryParam("offset", supplier.get()); + } + + /** + * add additional offset query parameter + */ + public ByProjectKeyAttributeGroupsGet addOffset(final Supplier supplier) { + return copy().addQueryParam("offset", supplier.get()); + } + + /** + * set offset with the specified value + */ + public ByProjectKeyAttributeGroupsGet withOffset(final Function op) { + return copy().withQueryParam("offset", op.apply(new StringBuilder())); + } + + /** + * add additional offset query parameter + */ + public ByProjectKeyAttributeGroupsGet addOffset(final Function op) { + return copy().addQueryParam("offset", op.apply(new StringBuilder())); + } + + /** + * set offset with the specified values + */ + public ByProjectKeyAttributeGroupsGet withOffset(final Collection offset) { + return copy().withoutQueryParam("offset") + .addQueryParams( + offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional offset query parameters + */ + public ByProjectKeyAttributeGroupsGet addOffset(final Collection offset) { + return copy().addQueryParams( + offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList())); + } + + /** + * set withTotal with the specified value + */ + public ByProjectKeyAttributeGroupsGet withWithTotal(final TValue withTotal) { + return copy().withQueryParam("withTotal", withTotal); + } + + /** + * add additional withTotal query parameter + */ + public ByProjectKeyAttributeGroupsGet addWithTotal(final TValue withTotal) { + return copy().addQueryParam("withTotal", withTotal); + } + + /** + * set withTotal with the specified value + */ + public ByProjectKeyAttributeGroupsGet withWithTotal(final Supplier supplier) { + return copy().withQueryParam("withTotal", supplier.get()); + } + + /** + * add additional withTotal query parameter + */ + public ByProjectKeyAttributeGroupsGet addWithTotal(final Supplier supplier) { + return copy().addQueryParam("withTotal", supplier.get()); + } + + /** + * set withTotal with the specified value + */ + public ByProjectKeyAttributeGroupsGet withWithTotal(final Function op) { + return copy().withQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * add additional withTotal query parameter + */ + public ByProjectKeyAttributeGroupsGet addWithTotal(final Function op) { + return copy().addQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * set withTotal with the specified values + */ + public ByProjectKeyAttributeGroupsGet withWithTotal(final Collection withTotal) { + return copy().withoutQueryParam("withTotal") + .addQueryParams(withTotal.stream() + .map(s -> new ParamEntry<>("withTotal", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional withTotal query parameters + */ + public ByProjectKeyAttributeGroupsGet addWithTotal(final Collection withTotal) { + return copy().addQueryParams( + withTotal.stream().map(s -> new ParamEntry<>("withTotal", s.toString())).collect(Collectors.toList())); + } + + /** + * set where with the specified value + */ + public ByProjectKeyAttributeGroupsGet withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + */ + public ByProjectKeyAttributeGroupsGet addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + */ + public ByProjectKeyAttributeGroupsGet withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + */ + public ByProjectKeyAttributeGroupsGet addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + */ + public ByProjectKeyAttributeGroupsGet withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + */ + public ByProjectKeyAttributeGroupsGet addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + */ + public ByProjectKeyAttributeGroupsGet withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + */ + public ByProjectKeyAttributeGroupsGet addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * set predicateVar with the specificied value + */ + public ByProjectKeyAttributeGroupsGet withPredicateVar(final String varName, final TValue predicateVar) { + return copy().withQueryParam(String.format("var.%s", varName), predicateVar); + } + + /** + * add additional predicateVar query parameter + */ + public ByProjectKeyAttributeGroupsGet addPredicateVar(final String varName, final TValue predicateVar) { + return copy().addQueryParam(String.format("var.%s", varName), predicateVar); + } + + /** + * set predicateVar with the specificied values + */ + public ByProjectKeyAttributeGroupsGet withPredicateVar(final String varName, + final Collection predicateVar) { + final String placeholderName = String.format("var.%s", varName); + return copy().withoutQueryParam(placeholderName) + .addQueryParams(predicateVar.stream() + .map(s -> new ParamEntry<>(placeholderName, s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional predicateVar query parameters + */ + public ByProjectKeyAttributeGroupsGet addPredicateVar(final String varName, + final Collection predicateVar) { + final String placeholderName = String.format("var.%s", varName); + return copy().addQueryParams(predicateVar.stream() + .map(s -> new ParamEntry<>(placeholderName, s.toString())) + .collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsGet that = (ByProjectKeyAttributeGroupsGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsGet copy() { + return new ByProjectKeyAttributeGroupsGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyDelete.java new file mode 100644 index 00000000000..3a3c1ee50b9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyDelete.java @@ -0,0 +1,246 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withKey("{key}")
+ *            .delete()
+ *            .withVersion(version)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsKeyByKeyDelete extends + ApiMethod + implements com.commercetools.api.client.VersionedTrait, + com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + private String projectKey; + private String key; + + public ByProjectKeyAttributeGroupsKeyByKeyDelete(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyAttributeGroupsKeyByKeyDelete(ByProjectKeyAttributeGroupsKeyByKeyDelete t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.DELETE, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public List getVersion() { + return this.getQueryParam("version"); + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + /** + * set version with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withVersion(final TValue version) { + return copy().withQueryParam("version", version); + } + + /** + * add additional version query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addVersion(final TValue version) { + return copy().addQueryParam("version", version); + } + + /** + * set version with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withVersion(final Supplier supplier) { + return copy().withQueryParam("version", supplier.get()); + } + + /** + * add additional version query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addVersion(final Supplier supplier) { + return copy().addQueryParam("version", supplier.get()); + } + + /** + * set version with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withVersion(final Function op) { + return copy().withQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * add additional version query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addVersion(final Function op) { + return copy().addQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * set version with the specified values + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withVersion(final Collection version) { + return copy().withoutQueryParam("version") + .addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional version query parameters + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addVersion(final Collection version) { + return copy().addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsKeyByKeyDelete addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsKeyByKeyDelete that = (ByProjectKeyAttributeGroupsKeyByKeyDelete) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsKeyByKeyDelete copy() { + return new ByProjectKeyAttributeGroupsKeyByKeyDelete(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyGet.java new file mode 100644 index 00000000000..966f7afac1a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyGet.java @@ -0,0 +1,180 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withKey("{key}")
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsKeyByKeyGet extends + ApiMethod + implements com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + private String projectKey; + private String key; + + public ByProjectKeyAttributeGroupsKeyByKeyGet(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyAttributeGroupsKeyByKeyGet(ByProjectKeyAttributeGroupsKeyByKeyGet t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsKeyByKeyGet addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsKeyByKeyGet that = (ByProjectKeyAttributeGroupsKeyByKeyGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsKeyByKeyGet copy() { + return new ByProjectKeyAttributeGroupsKeyByKeyGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyPost.java new file mode 100644 index 00000000000..bf536458d86 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyPost.java @@ -0,0 +1,203 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withKey("{key}")
+ *            .post(null)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsKeyByKeyPost extends + BodyApiMethod + implements com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.Deprecatable200Trait, + com.commercetools.api.client.ErrorableTrait { + + private String projectKey; + private String key; + + private com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate; + + public ByProjectKeyAttributeGroupsKeyByKeyPost(final ApiHttpClient apiHttpClient, String projectKey, String key, + com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + this.attributeGroupUpdate = attributeGroupUpdate; + } + + public ByProjectKeyAttributeGroupsKeyByKeyPost(ByProjectKeyAttributeGroupsKeyByKeyPost t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + this.attributeGroupUpdate = t.attributeGroupUpdate; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + io.vrap.rmf.base.client.utils.json.JsonUtils + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(attributeGroupUpdate))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsKeyByKeyPost addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupUpdate getBody() { + return attributeGroupUpdate; + } + + public ByProjectKeyAttributeGroupsKeyByKeyPost withBody( + com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { + ByProjectKeyAttributeGroupsKeyByKeyPost t = copy(); + t.attributeGroupUpdate = attributeGroupUpdate; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsKeyByKeyPost that = (ByProjectKeyAttributeGroupsKeyByKeyPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(key, that.key) + .append(attributeGroupUpdate, that.attributeGroupUpdate) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).append(attributeGroupUpdate).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsKeyByKeyPost copy() { + return new ByProjectKeyAttributeGroupsKeyByKeyPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder.java new file mode 100644 index 00000000000..d49681d8c62 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder.java @@ -0,0 +1,34 @@ + +package com.commercetools.api.client; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String key; + + public ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey, + final String key) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyAttributeGroupsKeyByKeyGet get() { + return new ByProjectKeyAttributeGroupsKeyByKeyGet(apiHttpClient, projectKey, key); + } + + public ByProjectKeyAttributeGroupsKeyByKeyPost post( + com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { + return new ByProjectKeyAttributeGroupsKeyByKeyPost(apiHttpClient, projectKey, key, attributeGroupUpdate); + } + + public ByProjectKeyAttributeGroupsKeyByKeyDelete delete() { + return new ByProjectKeyAttributeGroupsKeyByKeyDelete(apiHttpClient, projectKey, key); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsPost.java new file mode 100644 index 00000000000..35b3dc01e22 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsPost.java @@ -0,0 +1,189 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .post(null)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsPost extends + BodyApiMethod + implements com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.Deprecatable201Trait, + com.commercetools.api.client.ErrorableTrait { + + private String projectKey; + + private com.commercetools.api.models.attribute_group.AttributeGroupDraft attributeGroupDraft; + + public ByProjectKeyAttributeGroupsPost(final ApiHttpClient apiHttpClient, String projectKey, + com.commercetools.api.models.attribute_group.AttributeGroupDraft attributeGroupDraft) { + super(apiHttpClient); + this.projectKey = projectKey; + this.attributeGroupDraft = attributeGroupDraft; + } + + public ByProjectKeyAttributeGroupsPost(ByProjectKeyAttributeGroupsPost t) { + super(t); + this.projectKey = t.projectKey; + this.attributeGroupDraft = t.attributeGroupDraft; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/attribute-groups", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + io.vrap.rmf.base.client.utils.json.JsonUtils + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(attributeGroupDraft))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.attribute_group.AttributeGroup.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsPost withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsPost addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsPost withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsPost addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + */ + public ByProjectKeyAttributeGroupsPost withExpand(final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + */ + public ByProjectKeyAttributeGroupsPost addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + */ + public ByProjectKeyAttributeGroupsPost withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + */ + public ByProjectKeyAttributeGroupsPost addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupDraft getBody() { + return attributeGroupDraft; + } + + public ByProjectKeyAttributeGroupsPost withBody( + com.commercetools.api.models.attribute_group.AttributeGroupDraft attributeGroupDraft) { + ByProjectKeyAttributeGroupsPost t = copy(); + t.attributeGroupDraft = attributeGroupDraft; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsPost that = (ByProjectKeyAttributeGroupsPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(attributeGroupDraft, that.attributeGroupDraft) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(attributeGroupDraft).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsPost copy() { + return new ByProjectKeyAttributeGroupsPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsRequestBuilder.java new file mode 100644 index 00000000000..b925f0c902a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsRequestBuilder.java @@ -0,0 +1,34 @@ + +package com.commercetools.api.client; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + + public ByProjectKeyAttributeGroupsRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + } + + public ByProjectKeyAttributeGroupsGet get() { + return new ByProjectKeyAttributeGroupsGet(apiHttpClient, projectKey); + } + + public ByProjectKeyAttributeGroupsPost post( + com.commercetools.api.models.attribute_group.AttributeGroupDraft attributeGroupDraft) { + return new ByProjectKeyAttributeGroupsPost(apiHttpClient, projectKey, attributeGroupDraft); + } + + public ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder withKey(String key) { + return new ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder(apiHttpClient, projectKey, key); + } + + public ByProjectKeyAttributeGroupsByIDRequestBuilder withId(String ID) { + return new ByProjectKeyAttributeGroupsByIDRequestBuilder(apiHttpClient, projectKey, ID); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDDelete.java index d691b5720ad..ecad31aae7a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDDelete.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deleting a Customer produces the CustomerDeleted Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailConfirmPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailConfirmPost.java index 753e94d491d..8283c35408d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailConfirmPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailConfirmPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Verifies customer's email using a token.

+ *

Verifying the email of the Customer produces the CustomerEmailVerified Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailTokenPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailTokenPost.java index 7b24172cb68..0050c31ecfc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailTokenPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersEmailTokenPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Create a Token for verifying the Customer's Email

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyDelete.java index 72c37ba56d6..7b2cb1ee4dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyDelete.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deleting a Customer produces the CustomerDeleted Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordPost.java index 10fa1f9d206..cdc4644f0c4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Change a customers password

+ *

Changing the password produces the CustomerPasswordUpdated Message with reset=false.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordResetPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordResetPost.java index c836df4dd27..406956cdbe3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordResetPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordResetPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Set a new password using a token.

+ *

Resetting the password of the Customer produces the CustomerPasswordUpdated Message with reset=true.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordTokenPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordTokenPost.java index 404cd55ab7e..bc109e70038 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordTokenPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPasswordTokenPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

The token value is used to reset the password of the customer with the given email. The token is valid only for 10 minutes.

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPost.java index 92476dc42e8..9481c199434 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersPost.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Creates a customer. If an anonymous cart is passed in, then the cart is assigned to the created customer and the version number of the Cart will increase. If the ID of an anonymous session is given, all carts and orders will be assigned to the created customer.

+ *

If the anonymousCart field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the anonymousId field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same anonymousId. Creating a Customer produces the CustomerCreated Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete.java index 2662fbe81ce..100983b369b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete.java @@ -18,7 +18,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deleting a Customer produces the CustomerDeleted Message.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDGet.java index 45af431c418..e216042b534 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDGet.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Returns a customer by its ID from a specific Store. It also considers customers that do not have the stores field. If the customer exists in the project but the stores field references different stores, this method returns a ResourceNotFound error.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDPost.java index 3a30dd23c26..b3a49b65491 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDPost.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Updates a customer in the store specified by {storeKey}. If the customer exists in the project but the stores field references a different store, this method returns a ResourceNotFound error.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailConfirmPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailConfirmPost.java index 09c1f9a053a..6b685021100 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailConfirmPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailConfirmPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Verifies customer's email using a token.

+ *

The customer verifies the email using the token value. Verifying the email of the Customer produces the CustomerEmailVerified Message.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenByEmailTokenGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenByEmailTokenGet.java index a1545919f6e..4b192da3531 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenByEmailTokenGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenByEmailTokenGet.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenPost.java index 967732f3cc8..bfeeb29ddf2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Create a Token for verifying the Customer's Email in store

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyDelete.java index ed3b56cd00f..166ee761466 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyDelete.java @@ -18,7 +18,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deleting a Customer produces the CustomerDeleted Message.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyGet.java index 8397032b0a8..8256f56558d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyGet.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Returns a customer by its Key from a specific Store. It also considers customers that do not have the stores field. If the customer exists in the project but the stores field references different stores, this method returns a ResourceNotFound error.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyPost.java index c478a1e0081..cf1cc3371fb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyPost.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the customer exists in the project but the stores field references a different store, this method returns a ResourceNotFound error.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordPost.java index 5f6e7a85efb..42a2d25a569 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Change a customers password

+ *

Changing the password of the Customer produces the CustomerPasswordUpdated Message with reset=false.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost.java index 67c004a35b3..de8a8eb6791 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Set a new password using a token.

+ *

Resetting the password of the Customer produces the CustomerPasswordUpdated Message with reset=true.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
@@ -31,22 +32,22 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost extends - BodyApiMethod + BodyApiMethod implements com.commercetools.api.client.ErrorableTrait { private String projectKey; private String storeKey; - private com.commercetools.api.models.customer.MyCustomerResetPassword myCustomerResetPassword; + private com.commercetools.api.models.customer.CustomerResetPassword customerResetPassword; public ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost(final ApiHttpClient apiHttpClient, String projectKey, String storeKey, - com.commercetools.api.models.customer.MyCustomerResetPassword myCustomerResetPassword) { + com.commercetools.api.models.customer.CustomerResetPassword customerResetPassword) { super(apiHttpClient); this.projectKey = projectKey; this.storeKey = storeKey; - this.myCustomerResetPassword = myCustomerResetPassword; + this.customerResetPassword = customerResetPassword; } public ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost( @@ -54,7 +55,7 @@ public ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost( super(t); this.projectKey = t.projectKey; this.storeKey = t.storeKey; - this.myCustomerResetPassword = t.myCustomerResetPassword; + this.customerResetPassword = t.customerResetPassword; } @Override @@ -67,7 +68,7 @@ protected ApiHttpRequest buildHttpRequest() { } return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), io.vrap.rmf.base.client.utils.json.JsonUtils - .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(myCustomerResetPassword))); + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(customerResetPassword))); } @@ -99,14 +100,14 @@ public void setStoreKey(final String storeKey) { this.storeKey = storeKey; } - public com.commercetools.api.models.customer.MyCustomerResetPassword getBody() { - return myCustomerResetPassword; + public com.commercetools.api.models.customer.CustomerResetPassword getBody() { + return customerResetPassword; } public ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost withBody( - com.commercetools.api.models.customer.MyCustomerResetPassword myCustomerResetPassword) { + com.commercetools.api.models.customer.CustomerResetPassword customerResetPassword) { ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost t = copy(); - t.myCustomerResetPassword = myCustomerResetPassword; + t.customerResetPassword = customerResetPassword; return t; } @@ -122,7 +123,7 @@ public boolean equals(Object o) { return new EqualsBuilder().append(projectKey, that.projectKey) .append(storeKey, that.storeKey) - .append(myCustomerResetPassword, that.myCustomerResetPassword) + .append(customerResetPassword, that.customerResetPassword) .isEquals(); } @@ -130,7 +131,7 @@ public boolean equals(Object o) { public int hashCode() { return new HashCodeBuilder(17, 37).append(projectKey) .append(storeKey) - .append(myCustomerResetPassword) + .append(customerResetPassword) .toHashCode(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetRequestBuilder.java index 69145fbe551..23f0172eef3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetRequestBuilder.java @@ -19,9 +19,9 @@ public ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetRequestBuilder(fina } public ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost post( - com.commercetools.api.models.customer.MyCustomerResetPassword myCustomerResetPassword) { + com.commercetools.api.models.customer.CustomerResetPassword customerResetPassword) { return new ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPost(apiHttpClient, projectKey, storeKey, - myCustomerResetPassword); + customerResetPassword); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenByPasswordTokenGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenByPasswordTokenGet.java index 4e2e227cd4d..d7dcc8a71ba 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenByPasswordTokenGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenByPasswordTokenGet.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost.java index b8d3feb9563..01d2e57f418 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

The token value is used to reset the password of the customer with the given email. The token is valid only for 10 minutes.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPost.java index f897132a287..01fb9b385f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersPost.java @@ -18,7 +18,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Creates a customer in a specific Store. When using this endpoint, if omitted, the customer's stores field is set to the store specified in the path parameter. If an anonymous cart is passed in as when using this method, then the cart is assigned to the created customer and the version number of the Cart increases. If the ID of an anonymous session is given, all carts and orders will be assigned to the created customer and the store specified. If you pass in a cart with a store field specified, the store field must reference the same store specified in the {storeKey} path parameter.

+ *

When using this endpoint, if omitted, the Customer stores field is set to the Store specified in the path parameter.

+ *

If the anonymousCart field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the anonymousId field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same anonymousId. If a Cart with a store field specified, the store field must reference the same Store specified in the {storeKey} path parameter. Creating a Customer produces the CustomerCreated Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java index a9b7969b1d7..ad69e3ac3f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Authenticate Customer (Sign In) in store

+ *

Authenticates a Customer associated with a Store. For more information, see Global versus Store-specific Customers.

+ *

If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeDelete.java index f59ef71c898..e98fc64276f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeDelete.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Delete my Customer in a store

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost.java index c62853cd2a4..83dc82d4201 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

This is the last step in the email verification process of a Customer.

* *
*
@@ -31,27 +31,27 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost extends - BodyApiMethod + BodyApiMethod implements com.commercetools.api.client.ErrorableTrait { private String projectKey; private String storeKey; - private com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify; + private com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify; public ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost(final ApiHttpClient apiHttpClient, String projectKey, - String storeKey, com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify) { + String storeKey, com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify) { super(apiHttpClient); this.projectKey = projectKey; this.storeKey = storeKey; - this.customerEmailVerify = customerEmailVerify; + this.myCustomerEmailVerify = myCustomerEmailVerify; } public ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost(ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost t) { super(t); this.projectKey = t.projectKey; this.storeKey = t.storeKey; - this.customerEmailVerify = t.customerEmailVerify; + this.myCustomerEmailVerify = t.myCustomerEmailVerify; } @Override @@ -63,7 +63,7 @@ protected ApiHttpRequest buildHttpRequest() { } return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), io.vrap.rmf.base.client.utils.json.JsonUtils - .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(customerEmailVerify))); + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(myCustomerEmailVerify))); } @@ -95,14 +95,14 @@ public void setStoreKey(final String storeKey) { this.storeKey = storeKey; } - public com.commercetools.api.models.customer.CustomerEmailVerify getBody() { - return customerEmailVerify; + public com.commercetools.api.models.customer.MyCustomerEmailVerify getBody() { + return myCustomerEmailVerify; } public ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost withBody( - com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify) { + com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify) { ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost t = copy(); - t.customerEmailVerify = customerEmailVerify; + t.myCustomerEmailVerify = myCustomerEmailVerify; return t; } @@ -118,13 +118,16 @@ public boolean equals(Object o) { return new EqualsBuilder().append(projectKey, that.projectKey) .append(storeKey, that.storeKey) - .append(customerEmailVerify, that.customerEmailVerify) + .append(myCustomerEmailVerify, that.myCustomerEmailVerify) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(customerEmailVerify).toHashCode(); + return new HashCodeBuilder(17, 37).append(projectKey) + .append(storeKey) + .append(myCustomerEmailVerify) + .toHashCode(); } @Override diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestBuilder.java index e6b4d336e1f..4189805fc09 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestBuilder.java @@ -19,9 +19,9 @@ public ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestBuilder(final ApiHtt } public ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost post( - com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify) { + com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify) { return new ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPost(apiHttpClient, projectKey, storeKey, - customerEmailVerify); + myCustomerEmailVerify); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPost.java index 3a233e66593..53385c8b510 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPost.java @@ -14,7 +14,13 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves the authenticated Customer (that matches the given email/password pair) if they are part of a specific Store.

+ *
    + *
  • If the Customer does not have a Cart, the most recently modified anonymous cart becomes the Customer's Cart.
  • + *
  • If the Customer already has a Cart, the most recently modified anonymous cart is handled according to AnonymousCartSignInMode.
  • + *
+ *

If a Cart is returned as part of CustomerSignInResult, it has been recalculated with up-to-date prices, taxes, discounts, and invalid line items removed.

+ *

If an account with the given credentials is not found, an InvalidCredentials error is returned.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPost.java index a9e882d6210..1069c01209e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Changing the password of the Customer produces the CustomerPasswordUpdated Message with reset=false.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPost.java index 5953c6cdaf6..1cf061fc939 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

This is the last step in the password reset process of the authenticated Customer.

+ *

Resetting a password produces the of the Customer CustomerPasswordUpdated Message with reset=true.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePost.java index acaa81feec6..4ba1d2c1b6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Update my customer in a store

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPost.java index 621b7eb7bbd..a3ad55eb448 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

If omitted in the request body, the Customer stores field is set to the Store specified in the path parameter.

+ *

Creating a Customer produces the CustomerCreated Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java index d88ca9b6faa..75373c36964 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Authenticate Customer (Sign In). Retrieves the authenticated customer (a customer that matches the given email/password pair). If used with an access token for Anonymous Sessions, all orders and carts belonging to the anonymousId will be assigned to the newly created customer. If a cart is is returned as part of the CustomerSignInResult, it has been recalculated (It will have up-to-date prices, taxes and discounts, and invalid line items have been removed.).

+ *

Authenticates a global Customer not associated with a Store. For more information, see Global versus Store-specific Customers. If the Customer is registered in a Store, use the Authenticate (sign in) Customer in Store method.

+ *

If an account with the given credentials is not found, an InvalidCredentials error is returned.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeDelete.java index fbcd2e8410c..797bc0d8bc3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeDelete.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Delete my Customer

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmPost.java index 7c58be4a50f..79179285fc3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmPost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

This is the last step in the email verification process of a Customer.

* *
*
@@ -30,24 +30,24 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ByProjectKeyMeEmailConfirmPost extends - BodyApiMethod + BodyApiMethod implements com.commercetools.api.client.ErrorableTrait { private String projectKey; - private com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify; + private com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify; public ByProjectKeyMeEmailConfirmPost(final ApiHttpClient apiHttpClient, String projectKey, - com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify) { + com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify) { super(apiHttpClient); this.projectKey = projectKey; - this.customerEmailVerify = customerEmailVerify; + this.myCustomerEmailVerify = myCustomerEmailVerify; } public ByProjectKeyMeEmailConfirmPost(ByProjectKeyMeEmailConfirmPost t) { super(t); this.projectKey = t.projectKey; - this.customerEmailVerify = t.customerEmailVerify; + this.myCustomerEmailVerify = t.myCustomerEmailVerify; } @Override @@ -59,7 +59,7 @@ protected ApiHttpRequest buildHttpRequest() { } return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), io.vrap.rmf.base.client.utils.json.JsonUtils - .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(customerEmailVerify))); + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(myCustomerEmailVerify))); } @@ -83,14 +83,14 @@ public void setProjectKey(final String projectKey) { this.projectKey = projectKey; } - public com.commercetools.api.models.customer.CustomerEmailVerify getBody() { - return customerEmailVerify; + public com.commercetools.api.models.customer.MyCustomerEmailVerify getBody() { + return myCustomerEmailVerify; } public ByProjectKeyMeEmailConfirmPost withBody( - com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify) { + com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify) { ByProjectKeyMeEmailConfirmPost t = copy(); - t.customerEmailVerify = customerEmailVerify; + t.myCustomerEmailVerify = myCustomerEmailVerify; return t; } @@ -105,13 +105,13 @@ public boolean equals(Object o) { ByProjectKeyMeEmailConfirmPost that = (ByProjectKeyMeEmailConfirmPost) o; return new EqualsBuilder().append(projectKey, that.projectKey) - .append(customerEmailVerify, that.customerEmailVerify) + .append(myCustomerEmailVerify, that.myCustomerEmailVerify) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(projectKey).append(customerEmailVerify).toHashCode(); + return new HashCodeBuilder(17, 37).append(projectKey).append(myCustomerEmailVerify).toHashCode(); } @Override diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmRequestBuilder.java index 72560eb2f67..a082df2239e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeEmailConfirmRequestBuilder.java @@ -16,8 +16,8 @@ public ByProjectKeyMeEmailConfirmRequestBuilder(final ApiHttpClient apiHttpClien } public ByProjectKeyMeEmailConfirmPost post( - com.commercetools.api.models.customer.CustomerEmailVerify customerEmailVerify) { - return new ByProjectKeyMeEmailConfirmPost(apiHttpClient, projectKey, customerEmailVerify); + com.commercetools.api.models.customer.MyCustomerEmailVerify myCustomerEmailVerify) { + return new ByProjectKeyMeEmailConfirmPost(apiHttpClient, projectKey, myCustomerEmailVerify); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPost.java index 903c1c3f17d..fd3dc4205b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPost.java @@ -14,7 +14,14 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves the authenticated customer (that matches the given email/password pair).

+ *

If used with an access token for an anonymous session, all Orders and Carts that belong to the anonymousId are assigned to the newly logged-in Customer.

+ *
    + *
  • If the Customer does not have a Cart yet, the most recently modified anonymous cart becomes the Customer's Cart.
  • + *
  • If the Customer already has a Cart, the most recently modified anonymous cart is handled in accordance with AnonymousCartSignInMode.
  • + *
+ *

A Cart returned as part of the CustomerSignInResult is recalculated with up-to-date prices, taxes, discounts, and invalid line items removed.

+ *

If an account with the given credentials is not found, an InvalidCredentials error is returned.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordPost.java index a97331887a5..dc19d04bc5e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Changing the password of the Customer produces the CustomerPasswordUpdated Message with reset=false.

+ *

If the current password does not match, an InvalidCurrentPassword error is returned.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordResetPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordResetPost.java index 0a8290ec680..f13203769b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordResetPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePasswordResetPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

This is the last step in the password reset process of a Customer.

+ *

Resetting a password of the Customer produces the CustomerPasswordUpdated Message with reset=true.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePost.java index 94d48b80ed0..784008c573c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePost.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Update my customer

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeSignupPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeSignupPost.java index b27d66a6a01..1253fd7f34c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeSignupPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeSignupPost.java @@ -14,7 +14,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

If used with an access token for an anonymous session, all Orders and Carts that belong to the anonymousId are assigned to the newly created Customer.

+ *

Creating a Customer produces the CustomerCreated Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java index 25d008a5994..7715c5cc1e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java @@ -176,4 +176,8 @@ public ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyRequestBuilder inBusinessUn return new ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyRequestBuilder(apiHttpClient, projectKey, businessUnitKey); } + + public ByProjectKeyAttributeGroupsRequestBuilder attributeGroups() { + return new ByProjectKeyAttributeGroupsRequestBuilder(apiHttpClient, projectKey); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDGet.java index 01a07757e61..4ce48f7dd84 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDGet.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Retrieves the representation of a subscription by its id.

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHealthGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHealthGet.java new file mode 100644 index 00000000000..9e09b9725ed --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHealthGet.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

This endpoint can be polled by a monitoring or alerting system that checks the health of your Subscriptions. To ease integration with such systems this endpoint does not require Authorization.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .subscriptions()
+ *            .withId("{ID}")
+ *            .withIdHealth()
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeySubscriptionsByIDHealthGet + extends ApiMethod { + + private String projectKey; + private String ID; + + public ByProjectKeySubscriptionsByIDHealthGet(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeySubscriptionsByIDHealthGet(ByProjectKeySubscriptionsByIDHealthGet t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("/%s/subscriptions/%s/health", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeySubscriptionsByIDHealthGet that = (ByProjectKeySubscriptionsByIDHealthGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeySubscriptionsByIDHealthGet copy() { + return new ByProjectKeySubscriptionsByIDHealthGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHealthRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHealthRequestBuilder.java new file mode 100644 index 00000000000..3e7bcbf2c03 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHealthRequestBuilder.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.client; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeySubscriptionsByIDHealthRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String ID; + + public ByProjectKeySubscriptionsByIDHealthRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey, + final String ID) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeySubscriptionsByIDHealthGet get() { + return new ByProjectKeySubscriptionsByIDHealthGet(apiHttpClient, projectKey, ID); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java index 6ffdf254f65..dddae436ec9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java @@ -31,4 +31,7 @@ public ByProjectKeySubscriptionsByIDDelete delete() { return new ByProjectKeySubscriptionsByIDDelete(apiHttpClient, projectKey, ID); } + public ByProjectKeySubscriptionsByIDHealthRequestBuilder withIdHealth() { + return new ByProjectKeySubscriptionsByIDHealthRequestBuilder(apiHttpClient, projectKey, ID); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyGet.java index cfccf715f65..67ecd8d1cb8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyGet.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Retrieves the representation of a subscription by its key.

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsPost.java index 1fb9407d4f7..fa876e7f98a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsPost.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

The creation of a Subscription is eventually consistent, it may take up to a minute before it becomes fully active. In order to test that the destination is correctly configured, a test message will be put into the queue. If the message could not be delivered, the subscription will not be created. The payload of the test message is a notification of type ResourceCreated for the resourceTypeId subscription. Currently, a maximum of 25 subscriptions can be created per project.

+ *

A test message is sent to ensure the correct configuration of the Destination. If the message cannot be delivered, the Subscription will not be created. The payload of the test message is a notification of type ResourceCreated for the resourceTypeId subscription.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroup.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroup.java new file mode 100644 index 00000000000..732d2db5e22 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroup.java @@ -0,0 +1,177 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.common.BaseResource; +import com.commercetools.api.models.common.CreatedBy; +import com.commercetools.api.models.common.LastModifiedBy; +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroup + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroup attributeGroup = AttributeGroup.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .name(nameBuilder -> nameBuilder)
+ *             .plusAttributes(attributesBuilder -> attributesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupImpl.class) +public interface AttributeGroup extends BaseResource, com.commercetools.api.models.DomainResource { + + /** + *

Platform-generated unique identifier of the AttributeGroup.

+ */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

Current version of the AttributeGroup.

+ */ + @NotNull + @JsonProperty("version") + public Long getVersion(); + + /** + *

Date and time (UTC) the AttributeGroup was initially created.

+ */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *

Date and time (UTC) the AttributeGroup was last updated.

+ */ + @NotNull + @JsonProperty("lastModifiedAt") + public ZonedDateTime getLastModifiedAt(); + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + @Valid + @JsonProperty("lastModifiedBy") + public LastModifiedBy getLastModifiedBy(); + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + @Valid + @JsonProperty("createdBy") + public CreatedBy getCreatedBy(); + + /** + *

Name of the AttributeGroup.

+ */ + @NotNull + @Valid + @JsonProperty("name") + public LocalizedString getName(); + + /** + *

Description of the AttributeGroup.

+ */ + @Valid + @JsonProperty("description") + public LocalizedString getDescription(); + + /** + *

Attributes with unique values.

+ */ + @NotNull + @Valid + @JsonProperty("attributes") + public List getAttributes(); + + /** + *

User-defined unique identifier of the AttributeGroup.

+ */ + + @JsonProperty("key") + public String getKey(); + + public void setId(final String id); + + public void setVersion(final Long version); + + public void setCreatedAt(final ZonedDateTime createdAt); + + public void setLastModifiedAt(final ZonedDateTime lastModifiedAt); + + public void setLastModifiedBy(final LastModifiedBy lastModifiedBy); + + public void setCreatedBy(final CreatedBy createdBy); + + public void setName(final LocalizedString name); + + public void setDescription(final LocalizedString description); + + @JsonIgnore + public void setAttributes(final AttributeReference... attributes); + + public void setAttributes(final List attributes); + + public void setKey(final String key); + + public static AttributeGroup of() { + return new AttributeGroupImpl(); + } + + public static AttributeGroup of(final AttributeGroup template) { + AttributeGroupImpl instance = new AttributeGroupImpl(); + 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.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setAttributes(template.getAttributes()); + instance.setKey(template.getKey()); + return instance; + } + + public static AttributeGroupBuilder builder() { + return AttributeGroupBuilder.of(); + } + + public static AttributeGroupBuilder builder(final AttributeGroup template) { + return AttributeGroupBuilder.of(template); + } + + default T withAttributeGroup(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeAction.java new file mode 100644 index 00000000000..85fdf32bf2b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeAction.java @@ -0,0 +1,75 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupAddAttributeAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupAddAttributeAction attributeGroupAddAttributeAction = AttributeGroupAddAttributeAction.builder()
+ *             .attribute(attributeBuilder -> attributeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupAddAttributeActionImpl.class) +public interface AttributeGroupAddAttributeAction extends AttributeGroupUpdateAction { + + String ADD_ATTRIBUTE = "addAttribute"; + + /** + *

Value to add.

+ */ + @NotNull + @Valid + @JsonProperty("attribute") + public AttributeReference getAttribute(); + + public void setAttribute(final AttributeReference attribute); + + public static AttributeGroupAddAttributeAction of() { + return new AttributeGroupAddAttributeActionImpl(); + } + + public static AttributeGroupAddAttributeAction of(final AttributeGroupAddAttributeAction template) { + AttributeGroupAddAttributeActionImpl instance = new AttributeGroupAddAttributeActionImpl(); + instance.setAttribute(template.getAttribute()); + return instance; + } + + public static AttributeGroupAddAttributeActionBuilder builder() { + return AttributeGroupAddAttributeActionBuilder.of(); + } + + public static AttributeGroupAddAttributeActionBuilder builder(final AttributeGroupAddAttributeAction template) { + return AttributeGroupAddAttributeActionBuilder.of(template); + } + + default T withAttributeGroupAddAttributeAction(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeActionBuilder.java new file mode 100644 index 00000000000..70685ad1da4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeActionBuilder.java @@ -0,0 +1,74 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupAddAttributeActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupAddAttributeAction attributeGroupAddAttributeAction = AttributeGroupAddAttributeAction.builder()
+ *             .attribute(attributeBuilder -> attributeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupAddAttributeActionBuilder implements Builder { + + private com.commercetools.api.models.attribute_group.AttributeReference attribute; + + /** + *

Value to add.

+ */ + + public AttributeGroupAddAttributeActionBuilder attribute( + Function builder) { + this.attribute = builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

Value to add.

+ */ + + public AttributeGroupAddAttributeActionBuilder attribute( + final com.commercetools.api.models.attribute_group.AttributeReference attribute) { + this.attribute = attribute; + return this; + } + + public com.commercetools.api.models.attribute_group.AttributeReference getAttribute() { + return this.attribute; + } + + public AttributeGroupAddAttributeAction build() { + Objects.requireNonNull(attribute, AttributeGroupAddAttributeAction.class + ": attribute is missing"); + return new AttributeGroupAddAttributeActionImpl(attribute); + } + + /** + * builds AttributeGroupAddAttributeAction without checking for non null required values + */ + public AttributeGroupAddAttributeAction buildUnchecked() { + return new AttributeGroupAddAttributeActionImpl(attribute); + } + + public static AttributeGroupAddAttributeActionBuilder of() { + return new AttributeGroupAddAttributeActionBuilder(); + } + + public static AttributeGroupAddAttributeActionBuilder of(final AttributeGroupAddAttributeAction template) { + AttributeGroupAddAttributeActionBuilder builder = new AttributeGroupAddAttributeActionBuilder(); + builder.attribute = template.getAttribute(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeActionImpl.java new file mode 100644 index 00000000000..eece73da83f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupAddAttributeActionImpl.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupAddAttributeAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupAddAttributeActionImpl implements AttributeGroupAddAttributeAction, ModelBase { + + private String action; + + private com.commercetools.api.models.attribute_group.AttributeReference attribute; + + @JsonCreator + AttributeGroupAddAttributeActionImpl( + @JsonProperty("attribute") final com.commercetools.api.models.attribute_group.AttributeReference attribute) { + this.attribute = attribute; + this.action = ADD_ATTRIBUTE; + } + + public AttributeGroupAddAttributeActionImpl() { + this.action = ADD_ATTRIBUTE; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Value to add.

+ */ + + public com.commercetools.api.models.attribute_group.AttributeReference getAttribute() { + return this.attribute; + } + + public void setAttribute(final com.commercetools.api.models.attribute_group.AttributeReference attribute) { + this.attribute = attribute; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupAddAttributeActionImpl that = (AttributeGroupAddAttributeActionImpl) o; + + return new EqualsBuilder().append(action, that.action).append(attribute, that.attribute).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(attribute).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupBuilder.java new file mode 100644 index 00000000000..e588cabdbcc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupBuilder.java @@ -0,0 +1,320 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroup attributeGroup = AttributeGroup.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .name(nameBuilder -> nameBuilder)
+ *             .plusAttributes(attributesBuilder -> attributesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private com.commercetools.api.models.common.LocalizedString name; + + @Nullable + private com.commercetools.api.models.common.LocalizedString description; + + private java.util.List attributes; + + @Nullable + private String key; + + /** + *

Platform-generated unique identifier of the AttributeGroup.

+ */ + + public AttributeGroupBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

Current version of the AttributeGroup.

+ */ + + public AttributeGroupBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

Date and time (UTC) the AttributeGroup was initially created.

+ */ + + public AttributeGroupBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Date and time (UTC) the AttributeGroup was last updated.

+ */ + + public AttributeGroupBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + public AttributeGroupBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + public AttributeGroupBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + public AttributeGroupBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + public AttributeGroupBuilder createdBy(@Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

Name of the AttributeGroup.

+ */ + + public AttributeGroupBuilder name( + Function builder) { + this.name = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

Name of the AttributeGroup.

+ */ + + public AttributeGroupBuilder name(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + return this; + } + + /** + *

Description of the AttributeGroup.

+ */ + + public AttributeGroupBuilder description( + Function builder) { + this.description = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

Description of the AttributeGroup.

+ */ + + public AttributeGroupBuilder description( + @Nullable final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupBuilder attributes( + final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + this.attributes = new ArrayList<>(Arrays.asList(attributes)); + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupBuilder attributes( + final java.util.List attributes) { + this.attributes = attributes; + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupBuilder plusAttributes( + final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.addAll(Arrays.asList(attributes)); + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupBuilder plusAttributes( + Function builder) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()).build()); + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupBuilder withAttributes( + Function builder) { + this.attributes = new ArrayList<>(); + this.attributes.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()).build()); + return this; + } + + /** + *

User-defined unique identifier of the AttributeGroup.

+ */ + + public AttributeGroupBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + public String getId() { + return this.id; + } + + public Long getVersion() { + return this.version; + } + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + @Nullable + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + public java.util.List getAttributes() { + return this.attributes; + } + + @Nullable + public String getKey() { + return this.key; + } + + public AttributeGroup build() { + Objects.requireNonNull(id, AttributeGroup.class + ": id is missing"); + Objects.requireNonNull(version, AttributeGroup.class + ": version is missing"); + Objects.requireNonNull(createdAt, AttributeGroup.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, AttributeGroup.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(name, AttributeGroup.class + ": name is missing"); + Objects.requireNonNull(attributes, AttributeGroup.class + ": attributes is missing"); + return new AttributeGroupImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, name, + description, attributes, key); + } + + /** + * builds AttributeGroup without checking for non null required values + */ + public AttributeGroup buildUnchecked() { + return new AttributeGroupImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, name, + description, attributes, key); + } + + public static AttributeGroupBuilder of() { + return new AttributeGroupBuilder(); + } + + public static AttributeGroupBuilder of(final AttributeGroup template) { + AttributeGroupBuilder builder = new AttributeGroupBuilder(); + 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.name = template.getName(); + builder.description = template.getDescription(); + builder.attributes = template.getAttributes(); + builder.key = template.getKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameAction.java new file mode 100644 index 00000000000..8131104a1b0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameAction.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupChangeNameAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupChangeNameAction attributeGroupChangeNameAction = AttributeGroupChangeNameAction.builder()
+ *             .name(nameBuilder -> nameBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupChangeNameActionImpl.class) +public interface AttributeGroupChangeNameAction extends AttributeGroupUpdateAction { + + String CHANGE_NAME = "changeName"; + + /** + *

New value to set. Must not be empty.

+ */ + @NotNull + @Valid + @JsonProperty("name") + public LocalizedString getName(); + + public void setName(final LocalizedString name); + + public static AttributeGroupChangeNameAction of() { + return new AttributeGroupChangeNameActionImpl(); + } + + public static AttributeGroupChangeNameAction of(final AttributeGroupChangeNameAction template) { + AttributeGroupChangeNameActionImpl instance = new AttributeGroupChangeNameActionImpl(); + instance.setName(template.getName()); + return instance; + } + + public static AttributeGroupChangeNameActionBuilder builder() { + return AttributeGroupChangeNameActionBuilder.of(); + } + + public static AttributeGroupChangeNameActionBuilder builder(final AttributeGroupChangeNameAction template) { + return AttributeGroupChangeNameActionBuilder.of(template); + } + + default T withAttributeGroupChangeNameAction(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameActionBuilder.java new file mode 100644 index 00000000000..e07203baae0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameActionBuilder.java @@ -0,0 +1,72 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupChangeNameActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupChangeNameAction attributeGroupChangeNameAction = AttributeGroupChangeNameAction.builder()
+ *             .name(nameBuilder -> nameBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupChangeNameActionBuilder implements Builder { + + private com.commercetools.api.models.common.LocalizedString name; + + /** + *

New value to set. Must not be empty.

+ */ + + public AttributeGroupChangeNameActionBuilder name( + Function builder) { + this.name = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

New value to set. Must not be empty.

+ */ + + public AttributeGroupChangeNameActionBuilder name(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + return this; + } + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + public AttributeGroupChangeNameAction build() { + Objects.requireNonNull(name, AttributeGroupChangeNameAction.class + ": name is missing"); + return new AttributeGroupChangeNameActionImpl(name); + } + + /** + * builds AttributeGroupChangeNameAction without checking for non null required values + */ + public AttributeGroupChangeNameAction buildUnchecked() { + return new AttributeGroupChangeNameActionImpl(name); + } + + public static AttributeGroupChangeNameActionBuilder of() { + return new AttributeGroupChangeNameActionBuilder(); + } + + public static AttributeGroupChangeNameActionBuilder of(final AttributeGroupChangeNameAction template) { + AttributeGroupChangeNameActionBuilder builder = new AttributeGroupChangeNameActionBuilder(); + builder.name = template.getName(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameActionImpl.java new file mode 100644 index 00000000000..66bd63c4844 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupChangeNameActionImpl.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupChangeNameAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupChangeNameActionImpl implements AttributeGroupChangeNameAction, ModelBase { + + private String action; + + private com.commercetools.api.models.common.LocalizedString name; + + @JsonCreator + AttributeGroupChangeNameActionImpl( + @JsonProperty("name") final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + this.action = CHANGE_NAME; + } + + public AttributeGroupChangeNameActionImpl() { + this.action = CHANGE_NAME; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

New value to set. Must not be empty.

+ */ + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + public void setName(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupChangeNameActionImpl that = (AttributeGroupChangeNameActionImpl) o; + + return new EqualsBuilder().append(action, that.action).append(name, that.name).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(name).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraft.java new file mode 100644 index 00000000000..137558146eb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraft.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupDraft + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupDraft attributeGroupDraft = AttributeGroupDraft.builder()
+ *             .name(nameBuilder -> nameBuilder)
+ *             .plusAttributes(attributesBuilder -> attributesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupDraftImpl.class) +public interface AttributeGroupDraft { + + /** + *

Name of the AttributeGroup.

+ */ + @NotNull + @Valid + @JsonProperty("name") + public LocalizedString getName(); + + /** + *

Description of the AttributeGroup.

+ */ + @Valid + @JsonProperty("description") + public LocalizedString getDescription(); + + /** + *

Attributes with unique values.

+ */ + @NotNull + @Valid + @JsonProperty("attributes") + public List getAttributes(); + + /** + *

User-defined unique identifier for the AttributeGroup.

+ */ + + @JsonProperty("key") + public String getKey(); + + public void setName(final LocalizedString name); + + public void setDescription(final LocalizedString description); + + @JsonIgnore + public void setAttributes(final AttributeReference... attributes); + + public void setAttributes(final List attributes); + + public void setKey(final String key); + + public static AttributeGroupDraft of() { + return new AttributeGroupDraftImpl(); + } + + public static AttributeGroupDraft of(final AttributeGroupDraft template) { + AttributeGroupDraftImpl instance = new AttributeGroupDraftImpl(); + instance.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setAttributes(template.getAttributes()); + instance.setKey(template.getKey()); + return instance; + } + + public static AttributeGroupDraftBuilder builder() { + return AttributeGroupDraftBuilder.of(); + } + + public static AttributeGroupDraftBuilder builder(final AttributeGroupDraft template) { + return AttributeGroupDraftBuilder.of(template); + } + + default T withAttributeGroupDraft(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraftBuilder.java new file mode 100644 index 00000000000..a063bad6a92 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraftBuilder.java @@ -0,0 +1,189 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupDraftBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupDraft attributeGroupDraft = AttributeGroupDraft.builder()
+ *             .name(nameBuilder -> nameBuilder)
+ *             .plusAttributes(attributesBuilder -> attributesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupDraftBuilder implements Builder { + + private com.commercetools.api.models.common.LocalizedString name; + + @Nullable + private com.commercetools.api.models.common.LocalizedString description; + + private java.util.List attributes; + + @Nullable + private String key; + + /** + *

Name of the AttributeGroup.

+ */ + + public AttributeGroupDraftBuilder name( + Function builder) { + this.name = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

Name of the AttributeGroup.

+ */ + + public AttributeGroupDraftBuilder name(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + return this; + } + + /** + *

Description of the AttributeGroup.

+ */ + + public AttributeGroupDraftBuilder description( + Function builder) { + this.description = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

Description of the AttributeGroup.

+ */ + + public AttributeGroupDraftBuilder description( + @Nullable final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupDraftBuilder attributes( + final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + this.attributes = new ArrayList<>(Arrays.asList(attributes)); + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupDraftBuilder attributes( + final java.util.List attributes) { + this.attributes = attributes; + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupDraftBuilder plusAttributes( + final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.addAll(Arrays.asList(attributes)); + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupDraftBuilder plusAttributes( + Function builder) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()).build()); + return this; + } + + /** + *

Attributes with unique values.

+ */ + + public AttributeGroupDraftBuilder withAttributes( + Function builder) { + this.attributes = new ArrayList<>(); + this.attributes.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()).build()); + return this; + } + + /** + *

User-defined unique identifier for the AttributeGroup.

+ */ + + public AttributeGroupDraftBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + @Nullable + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + public java.util.List getAttributes() { + return this.attributes; + } + + @Nullable + public String getKey() { + return this.key; + } + + public AttributeGroupDraft build() { + Objects.requireNonNull(name, AttributeGroupDraft.class + ": name is missing"); + Objects.requireNonNull(attributes, AttributeGroupDraft.class + ": attributes is missing"); + return new AttributeGroupDraftImpl(name, description, attributes, key); + } + + /** + * builds AttributeGroupDraft without checking for non null required values + */ + public AttributeGroupDraft buildUnchecked() { + return new AttributeGroupDraftImpl(name, description, attributes, key); + } + + public static AttributeGroupDraftBuilder of() { + return new AttributeGroupDraftBuilder(); + } + + public static AttributeGroupDraftBuilder of(final AttributeGroupDraft template) { + AttributeGroupDraftBuilder builder = new AttributeGroupDraftBuilder(); + builder.name = template.getName(); + builder.description = template.getDescription(); + builder.attributes = template.getAttributes(); + builder.key = template.getKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraftImpl.java new file mode 100644 index 00000000000..ddf0fbdbfce --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupDraftImpl.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupDraft + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupDraftImpl implements AttributeGroupDraft, ModelBase { + + private com.commercetools.api.models.common.LocalizedString name; + + private com.commercetools.api.models.common.LocalizedString description; + + private java.util.List attributes; + + private String key; + + @JsonCreator + AttributeGroupDraftImpl(@JsonProperty("name") final com.commercetools.api.models.common.LocalizedString name, + @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description, + @JsonProperty("attributes") final java.util.List attributes, + @JsonProperty("key") final String key) { + this.name = name; + this.description = description; + this.attributes = attributes; + this.key = key; + } + + public AttributeGroupDraftImpl() { + } + + /** + *

Name of the AttributeGroup.

+ */ + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + /** + *

Description of the AttributeGroup.

+ */ + + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + /** + *

Attributes with unique values.

+ */ + + public java.util.List getAttributes() { + return this.attributes; + } + + /** + *

User-defined unique identifier for the AttributeGroup.

+ */ + + public String getKey() { + return this.key; + } + + public void setName(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + } + + public void setDescription(final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + } + + public void setAttributes(final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + this.attributes = new ArrayList<>(Arrays.asList(attributes)); + } + + public void setAttributes( + final java.util.List attributes) { + this.attributes = attributes; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupDraftImpl that = (AttributeGroupDraftImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(description, that.description) + .append(attributes, that.attributes) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name).append(description).append(attributes).append(key).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupImpl.java new file mode 100644 index 00000000000..3b3a153da84 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupImpl.java @@ -0,0 +1,231 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroup + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupImpl implements AttributeGroup, 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 com.commercetools.api.models.common.LocalizedString name; + + private com.commercetools.api.models.common.LocalizedString description; + + private java.util.List attributes; + + private String key; + + @JsonCreator + AttributeGroupImpl(@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("name") final com.commercetools.api.models.common.LocalizedString name, + @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description, + @JsonProperty("attributes") final java.util.List attributes, + @JsonProperty("key") final String key) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.name = name; + this.description = description; + this.attributes = attributes; + this.key = key; + } + + public AttributeGroupImpl() { + } + + /** + *

Platform-generated unique identifier of the AttributeGroup.

+ */ + + public String getId() { + return this.id; + } + + /** + *

Current version of the AttributeGroup.

+ */ + + public Long getVersion() { + return this.version; + } + + /** + *

Date and time (UTC) the AttributeGroup was initially created.

+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

Date and time (UTC) the AttributeGroup was last updated.

+ */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

Name of the AttributeGroup.

+ */ + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + /** + *

Description of the AttributeGroup.

+ */ + + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + /** + *

Attributes with unique values.

+ */ + + public java.util.List getAttributes() { + return this.attributes; + } + + /** + *

User-defined unique identifier of the AttributeGroup.

+ */ + + public String getKey() { + return this.key; + } + + 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 setName(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + } + + public void setDescription(final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + } + + public void setAttributes(final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + this.attributes = new ArrayList<>(Arrays.asList(attributes)); + } + + public void setAttributes( + final java.util.List attributes) { + this.attributes = attributes; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupImpl that = (AttributeGroupImpl) 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(name, that.name) + .append(description, that.description) + .append(attributes, that.attributes) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(name) + .append(description) + .append(attributes) + .append(key) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponse.java new file mode 100644 index 00000000000..58bdc81b1a2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponse.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

PagedQueryResult with results containing an array of AttributeGroup.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupPagedQueryResponse attributeGroupPagedQueryResponse = AttributeGroupPagedQueryResponse.builder()
+ *             .limit(0.3)
+ *             .offset(0.3)
+ *             .count(0.3)
+ *             .plusResults(resultsBuilder -> resultsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupPagedQueryResponseImpl.class) +public interface AttributeGroupPagedQueryResponse + extends com.commercetools.api.models.ResourcePagedQueryResponse { + + /** + *

Number of results requested in the query request.

+ */ + @NotNull + @JsonProperty("limit") + public Long getLimit(); + + /** + *

Offset supplied by the client or the server default. It is the number of elements skipped, not a page number.

+ */ + @NotNull + @JsonProperty("offset") + public Long getOffset(); + + /** + *

Actual number of results returned.

+ */ + @NotNull + @JsonProperty("count") + public Long getCount(); + + /** + *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

+ */ + + @JsonProperty("total") + public Long getTotal(); + + /** + *

AttributeGroups matching the query.

+ */ + @NotNull + @Valid + @JsonProperty("results") + public List getResults(); + + public void setLimit(final Long limit); + + public void setOffset(final Long offset); + + public void setCount(final Long count); + + public void setTotal(final Long total); + + @JsonIgnore + public void setResults(final AttributeGroup... results); + + public void setResults(final List results); + + public static AttributeGroupPagedQueryResponse of() { + return new AttributeGroupPagedQueryResponseImpl(); + } + + public static AttributeGroupPagedQueryResponse of(final AttributeGroupPagedQueryResponse template) { + AttributeGroupPagedQueryResponseImpl instance = new AttributeGroupPagedQueryResponseImpl(); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + instance.setCount(template.getCount()); + instance.setTotal(template.getTotal()); + instance.setResults(template.getResults()); + return instance; + } + + public static AttributeGroupPagedQueryResponseBuilder builder() { + return AttributeGroupPagedQueryResponseBuilder.of(); + } + + public static AttributeGroupPagedQueryResponseBuilder builder(final AttributeGroupPagedQueryResponse template) { + return AttributeGroupPagedQueryResponseBuilder.of(template); + } + + default T withAttributeGroupPagedQueryResponse(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponseBuilder.java new file mode 100644 index 00000000000..88a9eb27047 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponseBuilder.java @@ -0,0 +1,186 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupPagedQueryResponseBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupPagedQueryResponse attributeGroupPagedQueryResponse = AttributeGroupPagedQueryResponse.builder()
+ *             .limit(0.3)
+ *             .offset(0.3)
+ *             .count(0.3)
+ *             .plusResults(resultsBuilder -> resultsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupPagedQueryResponseBuilder implements Builder { + + private Long limit; + + private Long offset; + + private Long count; + + @Nullable + private Long total; + + private java.util.List results; + + /** + *

Number of results requested in the query request.

+ */ + + public AttributeGroupPagedQueryResponseBuilder limit(final Long limit) { + this.limit = limit; + return this; + } + + /** + *

Offset supplied by the client or the server default. It is the number of elements skipped, not a page number.

+ */ + + public AttributeGroupPagedQueryResponseBuilder offset(final Long offset) { + this.offset = offset; + return this; + } + + /** + *

Actual number of results returned.

+ */ + + public AttributeGroupPagedQueryResponseBuilder count(final Long count) { + this.count = count; + return this; + } + + /** + *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

+ */ + + public AttributeGroupPagedQueryResponseBuilder total(@Nullable final Long total) { + this.total = total; + return this; + } + + /** + *

AttributeGroups matching the query.

+ */ + + public AttributeGroupPagedQueryResponseBuilder results( + final com.commercetools.api.models.attribute_group.AttributeGroup... results) { + this.results = new ArrayList<>(Arrays.asList(results)); + return this; + } + + /** + *

AttributeGroups matching the query.

+ */ + + public AttributeGroupPagedQueryResponseBuilder results( + final java.util.List results) { + this.results = results; + return this; + } + + /** + *

AttributeGroups matching the query.

+ */ + + public AttributeGroupPagedQueryResponseBuilder plusResults( + final com.commercetools.api.models.attribute_group.AttributeGroup... results) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.addAll(Arrays.asList(results)); + return this; + } + + /** + *

AttributeGroups matching the query.

+ */ + + public AttributeGroupPagedQueryResponseBuilder plusResults( + Function builder) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results + .add(builder.apply(com.commercetools.api.models.attribute_group.AttributeGroupBuilder.of()).build()); + return this; + } + + /** + *

AttributeGroups matching the query.

+ */ + + public AttributeGroupPagedQueryResponseBuilder withResults( + Function builder) { + this.results = new ArrayList<>(); + this.results + .add(builder.apply(com.commercetools.api.models.attribute_group.AttributeGroupBuilder.of()).build()); + return this; + } + + public Long getLimit() { + return this.limit; + } + + public Long getOffset() { + return this.offset; + } + + public Long getCount() { + return this.count; + } + + @Nullable + public Long getTotal() { + return this.total; + } + + public java.util.List getResults() { + return this.results; + } + + public AttributeGroupPagedQueryResponse build() { + Objects.requireNonNull(limit, AttributeGroupPagedQueryResponse.class + ": limit is missing"); + Objects.requireNonNull(offset, AttributeGroupPagedQueryResponse.class + ": offset is missing"); + Objects.requireNonNull(count, AttributeGroupPagedQueryResponse.class + ": count is missing"); + Objects.requireNonNull(results, AttributeGroupPagedQueryResponse.class + ": results is missing"); + return new AttributeGroupPagedQueryResponseImpl(limit, offset, count, total, results); + } + + /** + * builds AttributeGroupPagedQueryResponse without checking for non null required values + */ + public AttributeGroupPagedQueryResponse buildUnchecked() { + return new AttributeGroupPagedQueryResponseImpl(limit, offset, count, total, results); + } + + public static AttributeGroupPagedQueryResponseBuilder of() { + return new AttributeGroupPagedQueryResponseBuilder(); + } + + public static AttributeGroupPagedQueryResponseBuilder of(final AttributeGroupPagedQueryResponse template) { + AttributeGroupPagedQueryResponseBuilder builder = new AttributeGroupPagedQueryResponseBuilder(); + builder.limit = template.getLimit(); + builder.offset = template.getOffset(); + builder.count = template.getCount(); + builder.total = template.getTotal(); + builder.results = template.getResults(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponseImpl.java new file mode 100644 index 00000000000..fcec80f8837 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupPagedQueryResponseImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + *

PagedQueryResult with results containing an array of AttributeGroup.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupPagedQueryResponseImpl implements AttributeGroupPagedQueryResponse, ModelBase { + + private Long limit; + + private Long offset; + + private Long count; + + private Long total; + + private java.util.List results; + + @JsonCreator + AttributeGroupPagedQueryResponseImpl(@JsonProperty("limit") final Long limit, + @JsonProperty("offset") final Long offset, @JsonProperty("count") final Long count, + @JsonProperty("total") final Long total, + @JsonProperty("results") final java.util.List results) { + this.limit = limit; + this.offset = offset; + this.count = count; + this.total = total; + this.results = results; + } + + public AttributeGroupPagedQueryResponseImpl() { + } + + /** + *

Number of results requested in the query request.

+ */ + + public Long getLimit() { + return this.limit; + } + + /** + *

Offset supplied by the client or the server default. It is the number of elements skipped, not a page number.

+ */ + + public Long getOffset() { + return this.offset; + } + + /** + *

Actual number of results returned.

+ */ + + public Long getCount() { + return this.count; + } + + /** + *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

+ */ + + public Long getTotal() { + return this.total; + } + + /** + *

AttributeGroups matching the query.

+ */ + + public java.util.List getResults() { + return this.results; + } + + public void setLimit(final Long limit) { + this.limit = limit; + } + + public void setOffset(final Long offset) { + this.offset = offset; + } + + public void setCount(final Long count) { + this.count = count; + } + + public void setTotal(final Long total) { + this.total = total; + } + + public void setResults(final com.commercetools.api.models.attribute_group.AttributeGroup... results) { + this.results = new ArrayList<>(Arrays.asList(results)); + } + + public void setResults(final java.util.List results) { + this.results = results; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupPagedQueryResponseImpl that = (AttributeGroupPagedQueryResponseImpl) o; + + return new EqualsBuilder().append(limit, that.limit) + .append(offset, that.offset) + .append(count, that.count) + .append(total, that.total) + .append(results, that.results) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(limit) + .append(offset) + .append(count) + .append(total) + .append(results) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReference.java new file mode 100644 index 00000000000..e56de69792b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReference.java @@ -0,0 +1,85 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.common.Reference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Reference to an AttributeGroup.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupReference attributeGroupReference = AttributeGroupReference.builder()
+ *             .id("{id}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupReferenceImpl.class) +public interface AttributeGroupReference extends Reference, com.commercetools.api.models.Identifiable { + + String ATTRIBUTE_GROUP = "attribute-group"; + + /** + *

Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

+ */ + @Valid + @JsonProperty("obj") + public AttributeGroup getObj(); + + /** + *

Platform-generated unique identifier of the referenced AttributeGroup.

+ */ + @NotNull + @JsonProperty("id") + public String getId(); + + public void setObj(final AttributeGroup obj); + + public void setId(final String id); + + public static AttributeGroupReference of() { + return new AttributeGroupReferenceImpl(); + } + + public static AttributeGroupReference of(final AttributeGroupReference template) { + AttributeGroupReferenceImpl instance = new AttributeGroupReferenceImpl(); + instance.setId(template.getId()); + instance.setObj(template.getObj()); + return instance; + } + + public static AttributeGroupReferenceBuilder builder() { + return AttributeGroupReferenceBuilder.of(); + } + + public static AttributeGroupReferenceBuilder builder(final AttributeGroupReference template) { + return AttributeGroupReferenceBuilder.of(template); + } + + default T withAttributeGroupReference(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReferenceBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReferenceBuilder.java new file mode 100644 index 00000000000..7e2ea1578e8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReferenceBuilder.java @@ -0,0 +1,93 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupReferenceBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupReference attributeGroupReference = AttributeGroupReference.builder()
+ *             .id("{id}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupReferenceBuilder implements Builder { + + private String id; + + @Nullable + private com.commercetools.api.models.attribute_group.AttributeGroup obj; + + /** + *

Platform-generated unique identifier of the referenced AttributeGroup.

+ */ + + public AttributeGroupReferenceBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

+ */ + + public AttributeGroupReferenceBuilder obj( + Function builder) { + this.obj = builder.apply(com.commercetools.api.models.attribute_group.AttributeGroupBuilder.of()).build(); + return this; + } + + /** + *

Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

+ */ + + public AttributeGroupReferenceBuilder obj( + @Nullable final com.commercetools.api.models.attribute_group.AttributeGroup obj) { + this.obj = obj; + return this; + } + + public String getId() { + return this.id; + } + + @Nullable + public com.commercetools.api.models.attribute_group.AttributeGroup getObj() { + return this.obj; + } + + public AttributeGroupReference build() { + Objects.requireNonNull(id, AttributeGroupReference.class + ": id is missing"); + return new AttributeGroupReferenceImpl(id, obj); + } + + /** + * builds AttributeGroupReference without checking for non null required values + */ + public AttributeGroupReference buildUnchecked() { + return new AttributeGroupReferenceImpl(id, obj); + } + + public static AttributeGroupReferenceBuilder of() { + return new AttributeGroupReferenceBuilder(); + } + + public static AttributeGroupReferenceBuilder of(final AttributeGroupReference template) { + AttributeGroupReferenceBuilder builder = new AttributeGroupReferenceBuilder(); + builder.id = template.getId(); + builder.obj = template.getObj(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReferenceImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReferenceImpl.java new file mode 100644 index 00000000000..6bf4aa41ec2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReferenceImpl.java @@ -0,0 +1,92 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.common.ReferenceTypeId; +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; + +/** + *

Reference to an AttributeGroup.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupReferenceImpl implements AttributeGroupReference, ModelBase { + + private com.commercetools.api.models.common.ReferenceTypeId typeId; + + private String id; + + private com.commercetools.api.models.attribute_group.AttributeGroup obj; + + @JsonCreator + AttributeGroupReferenceImpl(@JsonProperty("id") final String id, + @JsonProperty("obj") final com.commercetools.api.models.attribute_group.AttributeGroup obj) { + this.id = id; + this.obj = obj; + this.typeId = ReferenceTypeId.findEnum("attribute-group"); + } + + public AttributeGroupReferenceImpl() { + this.typeId = ReferenceTypeId.findEnum("attribute-group"); + } + + /** + *

Type of referenced resource.

+ */ + + public com.commercetools.api.models.common.ReferenceTypeId getTypeId() { + return this.typeId; + } + + /** + *

Platform-generated unique identifier of the referenced AttributeGroup.

+ */ + + public String getId() { + return this.id; + } + + /** + *

Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

+ */ + + public com.commercetools.api.models.attribute_group.AttributeGroup getObj() { + return this.obj; + } + + public void setId(final String id) { + this.id = id; + } + + public void setObj(final com.commercetools.api.models.attribute_group.AttributeGroup obj) { + this.obj = obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupReferenceImpl that = (AttributeGroupReferenceImpl) o; + + return new EqualsBuilder().append(typeId, that.typeId).append(id, that.id).append(obj, that.obj).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(typeId).append(id).append(obj).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeAction.java new file mode 100644 index 00000000000..0e14782e7bc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeAction.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupRemoveAttributeAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupRemoveAttributeAction attributeGroupRemoveAttributeAction = AttributeGroupRemoveAttributeAction.builder()
+ *             .attribute(attributeBuilder -> attributeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupRemoveAttributeActionImpl.class) +public interface AttributeGroupRemoveAttributeAction extends AttributeGroupUpdateAction { + + String REMOVE_ATTRIBUTE = "removeAttribute"; + + /** + *

Value to remove.

+ */ + @NotNull + @Valid + @JsonProperty("attribute") + public AttributeReference getAttribute(); + + public void setAttribute(final AttributeReference attribute); + + public static AttributeGroupRemoveAttributeAction of() { + return new AttributeGroupRemoveAttributeActionImpl(); + } + + public static AttributeGroupRemoveAttributeAction of(final AttributeGroupRemoveAttributeAction template) { + AttributeGroupRemoveAttributeActionImpl instance = new AttributeGroupRemoveAttributeActionImpl(); + instance.setAttribute(template.getAttribute()); + return instance; + } + + public static AttributeGroupRemoveAttributeActionBuilder builder() { + return AttributeGroupRemoveAttributeActionBuilder.of(); + } + + public static AttributeGroupRemoveAttributeActionBuilder builder( + final AttributeGroupRemoveAttributeAction template) { + return AttributeGroupRemoveAttributeActionBuilder.of(template); + } + + default T withAttributeGroupRemoveAttributeAction(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeActionBuilder.java new file mode 100644 index 00000000000..9a894ee46c2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeActionBuilder.java @@ -0,0 +1,74 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupRemoveAttributeActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupRemoveAttributeAction attributeGroupRemoveAttributeAction = AttributeGroupRemoveAttributeAction.builder()
+ *             .attribute(attributeBuilder -> attributeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupRemoveAttributeActionBuilder implements Builder { + + private com.commercetools.api.models.attribute_group.AttributeReference attribute; + + /** + *

Value to remove.

+ */ + + public AttributeGroupRemoveAttributeActionBuilder attribute( + Function builder) { + this.attribute = builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

Value to remove.

+ */ + + public AttributeGroupRemoveAttributeActionBuilder attribute( + final com.commercetools.api.models.attribute_group.AttributeReference attribute) { + this.attribute = attribute; + return this; + } + + public com.commercetools.api.models.attribute_group.AttributeReference getAttribute() { + return this.attribute; + } + + public AttributeGroupRemoveAttributeAction build() { + Objects.requireNonNull(attribute, AttributeGroupRemoveAttributeAction.class + ": attribute is missing"); + return new AttributeGroupRemoveAttributeActionImpl(attribute); + } + + /** + * builds AttributeGroupRemoveAttributeAction without checking for non null required values + */ + public AttributeGroupRemoveAttributeAction buildUnchecked() { + return new AttributeGroupRemoveAttributeActionImpl(attribute); + } + + public static AttributeGroupRemoveAttributeActionBuilder of() { + return new AttributeGroupRemoveAttributeActionBuilder(); + } + + public static AttributeGroupRemoveAttributeActionBuilder of(final AttributeGroupRemoveAttributeAction template) { + AttributeGroupRemoveAttributeActionBuilder builder = new AttributeGroupRemoveAttributeActionBuilder(); + builder.attribute = template.getAttribute(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeActionImpl.java new file mode 100644 index 00000000000..f2c12f5deda --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupRemoveAttributeActionImpl.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupRemoveAttributeAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupRemoveAttributeActionImpl implements AttributeGroupRemoveAttributeAction, ModelBase { + + private String action; + + private com.commercetools.api.models.attribute_group.AttributeReference attribute; + + @JsonCreator + AttributeGroupRemoveAttributeActionImpl( + @JsonProperty("attribute") final com.commercetools.api.models.attribute_group.AttributeReference attribute) { + this.attribute = attribute; + this.action = REMOVE_ATTRIBUTE; + } + + public AttributeGroupRemoveAttributeActionImpl() { + this.action = REMOVE_ATTRIBUTE; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Value to remove.

+ */ + + public com.commercetools.api.models.attribute_group.AttributeReference getAttribute() { + return this.attribute; + } + + public void setAttribute(final com.commercetools.api.models.attribute_group.AttributeReference attribute) { + this.attribute = attribute; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupRemoveAttributeActionImpl that = (AttributeGroupRemoveAttributeActionImpl) o; + + return new EqualsBuilder().append(action, that.action).append(attribute, that.attribute).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(attribute).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifier.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifier.java new file mode 100644 index 00000000000..44b2a8e1573 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifier.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import com.commercetools.api.models.common.ResourceIdentifier; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

ResourceIdentifier to an AttributeGroup.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupResourceIdentifier attributeGroupResourceIdentifier = AttributeGroupResourceIdentifier.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupResourceIdentifierImpl.class) +public interface AttributeGroupResourceIdentifier + extends ResourceIdentifier, com.commercetools.api.models.Identifiable { + + String ATTRIBUTE_GROUP = "attribute-group"; + + /** + *

Platform-generated unique identifier of the referenced AttributeGroup. Either id or key is required.

+ */ + + @JsonProperty("id") + public String getId(); + + /** + *

User-generated unique identifier of the referenced AttributeGroup. Either id or key is required.

+ */ + + @JsonProperty("key") + public String getKey(); + + public void setId(final String id); + + public void setKey(final String key); + + public static AttributeGroupResourceIdentifier of() { + return new AttributeGroupResourceIdentifierImpl(); + } + + public static AttributeGroupResourceIdentifier of(final AttributeGroupResourceIdentifier template) { + AttributeGroupResourceIdentifierImpl instance = new AttributeGroupResourceIdentifierImpl(); + instance.setId(template.getId()); + instance.setKey(template.getKey()); + return instance; + } + + public static AttributeGroupResourceIdentifierBuilder builder() { + return AttributeGroupResourceIdentifierBuilder.of(); + } + + public static AttributeGroupResourceIdentifierBuilder builder(final AttributeGroupResourceIdentifier template) { + return AttributeGroupResourceIdentifierBuilder.of(template); + } + + default T withAttributeGroupResourceIdentifier(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifierBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifierBuilder.java new file mode 100644 index 00000000000..4d894f34fcc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifierBuilder.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupResourceIdentifierBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupResourceIdentifier attributeGroupResourceIdentifier = AttributeGroupResourceIdentifier.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupResourceIdentifierBuilder implements Builder { + + @Nullable + private String id; + + @Nullable + private String key; + + /** + *

Platform-generated unique identifier of the referenced AttributeGroup. Either id or key is required.

+ */ + + public AttributeGroupResourceIdentifierBuilder id(@Nullable final String id) { + this.id = id; + return this; + } + + /** + *

User-generated unique identifier of the referenced AttributeGroup. Either id or key is required.

+ */ + + public AttributeGroupResourceIdentifierBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + @Nullable + public String getId() { + return this.id; + } + + @Nullable + public String getKey() { + return this.key; + } + + public AttributeGroupResourceIdentifier build() { + return new AttributeGroupResourceIdentifierImpl(id, key); + } + + /** + * builds AttributeGroupResourceIdentifier without checking for non null required values + */ + public AttributeGroupResourceIdentifier buildUnchecked() { + return new AttributeGroupResourceIdentifierImpl(id, key); + } + + public static AttributeGroupResourceIdentifierBuilder of() { + return new AttributeGroupResourceIdentifierBuilder(); + } + + public static AttributeGroupResourceIdentifierBuilder of(final AttributeGroupResourceIdentifier template) { + AttributeGroupResourceIdentifierBuilder builder = new AttributeGroupResourceIdentifierBuilder(); + builder.id = template.getId(); + builder.key = template.getKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifierImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifierImpl.java new file mode 100644 index 00000000000..a9b6e243914 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupResourceIdentifierImpl.java @@ -0,0 +1,91 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.common.ReferenceTypeId; +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; + +/** + *

ResourceIdentifier to an AttributeGroup.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupResourceIdentifierImpl implements AttributeGroupResourceIdentifier, ModelBase { + + private com.commercetools.api.models.common.ReferenceTypeId typeId; + + private String id; + + private String key; + + @JsonCreator + AttributeGroupResourceIdentifierImpl(@JsonProperty("id") final String id, @JsonProperty("key") final String key) { + this.id = id; + this.key = key; + this.typeId = ReferenceTypeId.findEnum("attribute-group"); + } + + public AttributeGroupResourceIdentifierImpl() { + this.typeId = ReferenceTypeId.findEnum("attribute-group"); + } + + /** + *

Type of referenced resource. If given, it must match the expected ReferenceTypeId of the referenced resource.

+ */ + + public com.commercetools.api.models.common.ReferenceTypeId getTypeId() { + return this.typeId; + } + + /** + *

Platform-generated unique identifier of the referenced AttributeGroup. Either id or key is required.

+ */ + + public String getId() { + return this.id; + } + + /** + *

User-generated unique identifier of the referenced AttributeGroup. Either id or key is required.

+ */ + + public String getKey() { + return this.key; + } + + public void setId(final String id) { + this.id = id; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupResourceIdentifierImpl that = (AttributeGroupResourceIdentifierImpl) o; + + return new EqualsBuilder().append(typeId, that.typeId).append(id, that.id).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(typeId).append(id).append(key).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesAction.java new file mode 100644 index 00000000000..6e44e4579ae --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesAction.java @@ -0,0 +1,78 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupSetAttributesAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupSetAttributesAction attributeGroupSetAttributesAction = AttributeGroupSetAttributesAction.builder()
+ *             .plusAttributes(attributesBuilder -> attributesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupSetAttributesActionImpl.class) +public interface AttributeGroupSetAttributesAction extends AttributeGroupUpdateAction { + + String SET_ATTRIBUTES = "setAttributes"; + + /** + *

New unique values to set.

+ */ + @NotNull + @Valid + @JsonProperty("attributes") + public List getAttributes(); + + @JsonIgnore + public void setAttributes(final AttributeReference... attributes); + + public void setAttributes(final List attributes); + + public static AttributeGroupSetAttributesAction of() { + return new AttributeGroupSetAttributesActionImpl(); + } + + public static AttributeGroupSetAttributesAction of(final AttributeGroupSetAttributesAction template) { + AttributeGroupSetAttributesActionImpl instance = new AttributeGroupSetAttributesActionImpl(); + instance.setAttributes(template.getAttributes()); + return instance; + } + + public static AttributeGroupSetAttributesActionBuilder builder() { + return AttributeGroupSetAttributesActionBuilder.of(); + } + + public static AttributeGroupSetAttributesActionBuilder builder(final AttributeGroupSetAttributesAction template) { + return AttributeGroupSetAttributesActionBuilder.of(template); + } + + default T withAttributeGroupSetAttributesAction(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesActionBuilder.java new file mode 100644 index 00000000000..b43e94c7494 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesActionBuilder.java @@ -0,0 +1,112 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupSetAttributesActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupSetAttributesAction attributeGroupSetAttributesAction = AttributeGroupSetAttributesAction.builder()
+ *             .plusAttributes(attributesBuilder -> attributesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupSetAttributesActionBuilder implements Builder { + + private java.util.List attributes; + + /** + *

New unique values to set.

+ */ + + public AttributeGroupSetAttributesActionBuilder attributes( + final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + this.attributes = new ArrayList<>(Arrays.asList(attributes)); + return this; + } + + /** + *

New unique values to set.

+ */ + + public AttributeGroupSetAttributesActionBuilder attributes( + final java.util.List attributes) { + this.attributes = attributes; + return this; + } + + /** + *

New unique values to set.

+ */ + + public AttributeGroupSetAttributesActionBuilder plusAttributes( + final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.addAll(Arrays.asList(attributes)); + return this; + } + + /** + *

New unique values to set.

+ */ + + public AttributeGroupSetAttributesActionBuilder plusAttributes( + Function builder) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()).build()); + return this; + } + + /** + *

New unique values to set.

+ */ + + public AttributeGroupSetAttributesActionBuilder withAttributes( + Function builder) { + this.attributes = new ArrayList<>(); + this.attributes.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeReferenceBuilder.of()).build()); + return this; + } + + public java.util.List getAttributes() { + return this.attributes; + } + + public AttributeGroupSetAttributesAction build() { + Objects.requireNonNull(attributes, AttributeGroupSetAttributesAction.class + ": attributes is missing"); + return new AttributeGroupSetAttributesActionImpl(attributes); + } + + /** + * builds AttributeGroupSetAttributesAction without checking for non null required values + */ + public AttributeGroupSetAttributesAction buildUnchecked() { + return new AttributeGroupSetAttributesActionImpl(attributes); + } + + public static AttributeGroupSetAttributesActionBuilder of() { + return new AttributeGroupSetAttributesActionBuilder(); + } + + public static AttributeGroupSetAttributesActionBuilder of(final AttributeGroupSetAttributesAction template) { + AttributeGroupSetAttributesActionBuilder builder = new AttributeGroupSetAttributesActionBuilder(); + builder.attributes = template.getAttributes(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesActionImpl.java new file mode 100644 index 00000000000..261610d5605 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetAttributesActionImpl.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupSetAttributesAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupSetAttributesActionImpl implements AttributeGroupSetAttributesAction, ModelBase { + + private String action; + + private java.util.List attributes; + + @JsonCreator + AttributeGroupSetAttributesActionImpl( + @JsonProperty("attributes") final java.util.List attributes) { + this.attributes = attributes; + this.action = SET_ATTRIBUTES; + } + + public AttributeGroupSetAttributesActionImpl() { + this.action = SET_ATTRIBUTES; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

New unique values to set.

+ */ + + public java.util.List getAttributes() { + return this.attributes; + } + + public void setAttributes(final com.commercetools.api.models.attribute_group.AttributeReference... attributes) { + this.attributes = new ArrayList<>(Arrays.asList(attributes)); + } + + public void setAttributes( + final java.util.List attributes) { + this.attributes = attributes; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupSetAttributesActionImpl that = (AttributeGroupSetAttributesActionImpl) o; + + return new EqualsBuilder().append(action, that.action).append(attributes, that.attributes).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(attributes).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionAction.java new file mode 100644 index 00000000000..541685d68d3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionAction.java @@ -0,0 +1,73 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; + +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupSetDescriptionAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupSetDescriptionAction attributeGroupSetDescriptionAction = AttributeGroupSetDescriptionAction.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupSetDescriptionActionImpl.class) +public interface AttributeGroupSetDescriptionAction extends AttributeGroupUpdateAction { + + String SET_DESCRIPTION = "setDescription"; + + /** + *

Value to set. If empty, any existing value will be removed.

+ */ + @Valid + @JsonProperty("description") + public LocalizedString getDescription(); + + public void setDescription(final LocalizedString description); + + public static AttributeGroupSetDescriptionAction of() { + return new AttributeGroupSetDescriptionActionImpl(); + } + + public static AttributeGroupSetDescriptionAction of(final AttributeGroupSetDescriptionAction template) { + AttributeGroupSetDescriptionActionImpl instance = new AttributeGroupSetDescriptionActionImpl(); + instance.setDescription(template.getDescription()); + return instance; + } + + public static AttributeGroupSetDescriptionActionBuilder builder() { + return AttributeGroupSetDescriptionActionBuilder.of(); + } + + public static AttributeGroupSetDescriptionActionBuilder builder(final AttributeGroupSetDescriptionAction template) { + return AttributeGroupSetDescriptionActionBuilder.of(template); + } + + default T withAttributeGroupSetDescriptionAction(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionActionBuilder.java new file mode 100644 index 00000000000..c142665f21c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionActionBuilder.java @@ -0,0 +1,75 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupSetDescriptionActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupSetDescriptionAction attributeGroupSetDescriptionAction = AttributeGroupSetDescriptionAction.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupSetDescriptionActionBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.common.LocalizedString description; + + /** + *

Value to set. If empty, any existing value will be removed.

+ */ + + public AttributeGroupSetDescriptionActionBuilder description( + Function builder) { + this.description = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

Value to set. If empty, any existing value will be removed.

+ */ + + public AttributeGroupSetDescriptionActionBuilder description( + @Nullable final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + return this; + } + + @Nullable + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + public AttributeGroupSetDescriptionAction build() { + return new AttributeGroupSetDescriptionActionImpl(description); + } + + /** + * builds AttributeGroupSetDescriptionAction without checking for non null required values + */ + public AttributeGroupSetDescriptionAction buildUnchecked() { + return new AttributeGroupSetDescriptionActionImpl(description); + } + + public static AttributeGroupSetDescriptionActionBuilder of() { + return new AttributeGroupSetDescriptionActionBuilder(); + } + + public static AttributeGroupSetDescriptionActionBuilder of(final AttributeGroupSetDescriptionAction template) { + AttributeGroupSetDescriptionActionBuilder builder = new AttributeGroupSetDescriptionActionBuilder(); + builder.description = template.getDescription(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionActionImpl.java new file mode 100644 index 00000000000..e654b1a11dd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetDescriptionActionImpl.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupSetDescriptionAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupSetDescriptionActionImpl implements AttributeGroupSetDescriptionAction, ModelBase { + + private String action; + + private com.commercetools.api.models.common.LocalizedString description; + + @JsonCreator + AttributeGroupSetDescriptionActionImpl( + @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + this.action = SET_DESCRIPTION; + } + + public AttributeGroupSetDescriptionActionImpl() { + this.action = SET_DESCRIPTION; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Value to set. If empty, any existing value will be removed.

+ */ + + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + public void setDescription(final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupSetDescriptionActionImpl that = (AttributeGroupSetDescriptionActionImpl) o; + + return new EqualsBuilder().append(action, that.action).append(description, that.description).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(description).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyAction.java new file mode 100644 index 00000000000..a5eef1c2ed1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyAction.java @@ -0,0 +1,70 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupSetKeyAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupSetKeyAction attributeGroupSetKeyAction = AttributeGroupSetKeyAction.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupSetKeyActionImpl.class) +public interface AttributeGroupSetKeyAction extends AttributeGroupUpdateAction { + + String SET_KEY = "setKey"; + + /** + *

If key is absent or null, the existing key, if any, will be removed.

+ */ + + @JsonProperty("key") + public String getKey(); + + public void setKey(final String key); + + public static AttributeGroupSetKeyAction of() { + return new AttributeGroupSetKeyActionImpl(); + } + + public static AttributeGroupSetKeyAction of(final AttributeGroupSetKeyAction template) { + AttributeGroupSetKeyActionImpl instance = new AttributeGroupSetKeyActionImpl(); + instance.setKey(template.getKey()); + return instance; + } + + public static AttributeGroupSetKeyActionBuilder builder() { + return AttributeGroupSetKeyActionBuilder.of(); + } + + public static AttributeGroupSetKeyActionBuilder builder(final AttributeGroupSetKeyAction template) { + return AttributeGroupSetKeyActionBuilder.of(template); + } + + default T withAttributeGroupSetKeyAction(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyActionBuilder.java new file mode 100644 index 00000000000..13d24adc8d4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyActionBuilder.java @@ -0,0 +1,63 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupSetKeyActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupSetKeyAction attributeGroupSetKeyAction = AttributeGroupSetKeyAction.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupSetKeyActionBuilder implements Builder { + + @Nullable + private String key; + + /** + *

If key is absent or null, the existing key, if any, will be removed.

+ */ + + public AttributeGroupSetKeyActionBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + @Nullable + public String getKey() { + return this.key; + } + + public AttributeGroupSetKeyAction build() { + return new AttributeGroupSetKeyActionImpl(key); + } + + /** + * builds AttributeGroupSetKeyAction without checking for non null required values + */ + public AttributeGroupSetKeyAction buildUnchecked() { + return new AttributeGroupSetKeyActionImpl(key); + } + + public static AttributeGroupSetKeyActionBuilder of() { + return new AttributeGroupSetKeyActionBuilder(); + } + + public static AttributeGroupSetKeyActionBuilder of(final AttributeGroupSetKeyAction template) { + AttributeGroupSetKeyActionBuilder builder = new AttributeGroupSetKeyActionBuilder(); + builder.key = template.getKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyActionImpl.java new file mode 100644 index 00000000000..77ba0a4cece --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupSetKeyActionImpl.java @@ -0,0 +1,75 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupSetKeyAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupSetKeyActionImpl implements AttributeGroupSetKeyAction, ModelBase { + + private String action; + + private String key; + + @JsonCreator + AttributeGroupSetKeyActionImpl(@JsonProperty("key") final String key) { + this.key = key; + this.action = SET_KEY; + } + + public AttributeGroupSetKeyActionImpl() { + this.action = SET_KEY; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

If key is absent or null, the existing key, if any, will be removed.

+ */ + + public String getKey() { + return this.key; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupSetKeyActionImpl that = (AttributeGroupSetKeyActionImpl) o; + + return new EqualsBuilder().append(action, that.action).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(key).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdate.java new file mode 100644 index 00000000000..80452af7758 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdate.java @@ -0,0 +1,88 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupUpdate + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupUpdate attributeGroupUpdate = AttributeGroupUpdate.builder()
+ *             .version(0.3)
+ *             .plusActions(actionsBuilder -> actionsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeGroupUpdateImpl.class) +public interface AttributeGroupUpdate extends + com.commercetools.api.models.ResourceUpdate { + + /** + *

Expected version of the AttributeGroup on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.

+ */ + @NotNull + @JsonProperty("version") + public Long getVersion(); + + /** + *

Update actions to be performed on the AttributeGroup.

+ */ + @NotNull + @Valid + @JsonProperty("actions") + public List getActions(); + + public void setVersion(final Long version); + + @JsonIgnore + public void setActions(final AttributeGroupUpdateAction... actions); + + public void setActions(final List actions); + + public static AttributeGroupUpdate of() { + return new AttributeGroupUpdateImpl(); + } + + public static AttributeGroupUpdate of(final AttributeGroupUpdate template) { + AttributeGroupUpdateImpl instance = new AttributeGroupUpdateImpl(); + instance.setVersion(template.getVersion()); + instance.setActions(template.getActions()); + return instance; + } + + public static AttributeGroupUpdateBuilder builder() { + return AttributeGroupUpdateBuilder.of(); + } + + public static AttributeGroupUpdateBuilder builder(final AttributeGroupUpdate template) { + return AttributeGroupUpdateBuilder.of(template); + } + + default T withAttributeGroupUpdate(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateAction.java new file mode 100644 index 00000000000..46b4f780d46 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateAction.java @@ -0,0 +1,84 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupUpdateAction + * + *
+ * Example to create a subtype instance using the builder pattern + *
+ *

+ *     AttributeGroupUpdateAction attributeGroupUpdateAction = AttributeGroupUpdateAction.addAttributeBuilder()
+ *             attribute(attributeBuilder -> attributeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@JsonSubTypes({ + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupAddAttributeActionImpl.class, name = AttributeGroupAddAttributeAction.ADD_ATTRIBUTE), + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupChangeNameActionImpl.class, name = AttributeGroupChangeNameAction.CHANGE_NAME), + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupRemoveAttributeActionImpl.class, name = AttributeGroupRemoveAttributeAction.REMOVE_ATTRIBUTE), + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupSetAttributesActionImpl.class, name = AttributeGroupSetAttributesAction.SET_ATTRIBUTES), + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupSetDescriptionActionImpl.class, name = AttributeGroupSetDescriptionAction.SET_DESCRIPTION), + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupSetKeyActionImpl.class, name = AttributeGroupSetKeyAction.SET_KEY) }) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "action", defaultImpl = AttributeGroupUpdateActionImpl.class, visible = true) +@JsonDeserialize(as = AttributeGroupUpdateActionImpl.class) +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface AttributeGroupUpdateAction + extends com.commercetools.api.models.ResourceUpdateAction { + + /** + * + */ + @NotNull + @JsonProperty("action") + public String getAction(); + + public static com.commercetools.api.models.attribute_group.AttributeGroupAddAttributeActionBuilder addAttributeBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupAddAttributeActionBuilder.of(); + } + + public static com.commercetools.api.models.attribute_group.AttributeGroupChangeNameActionBuilder changeNameBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupChangeNameActionBuilder.of(); + } + + public static com.commercetools.api.models.attribute_group.AttributeGroupRemoveAttributeActionBuilder removeAttributeBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupRemoveAttributeActionBuilder.of(); + } + + public static com.commercetools.api.models.attribute_group.AttributeGroupSetAttributesActionBuilder setAttributesBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupSetAttributesActionBuilder.of(); + } + + public static com.commercetools.api.models.attribute_group.AttributeGroupSetDescriptionActionBuilder setDescriptionBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupSetDescriptionActionBuilder.of(); + } + + public static com.commercetools.api.models.attribute_group.AttributeGroupSetKeyActionBuilder setKeyBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupSetKeyActionBuilder.of(); + } + + default T withAttributeGroupUpdateAction(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateActionBuilder.java new file mode 100644 index 00000000000..cc2a66a4e93 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateActionBuilder.java @@ -0,0 +1,41 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupUpdateActionBuilder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupUpdateActionBuilder { + + public com.commercetools.api.models.attribute_group.AttributeGroupAddAttributeActionBuilder addAttributeBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupAddAttributeActionBuilder.of(); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupChangeNameActionBuilder changeNameBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupChangeNameActionBuilder.of(); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupRemoveAttributeActionBuilder removeAttributeBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupRemoveAttributeActionBuilder.of(); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupSetAttributesActionBuilder setAttributesBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupSetAttributesActionBuilder.of(); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupSetDescriptionActionBuilder setDescriptionBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupSetDescriptionActionBuilder.of(); + } + + public com.commercetools.api.models.attribute_group.AttributeGroupSetKeyActionBuilder setKeyBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupSetKeyActionBuilder.of(); + } + + public static AttributeGroupUpdateActionBuilder of() { + return new AttributeGroupUpdateActionBuilder(); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateActionImpl.java new file mode 100644 index 00000000000..4cb41685d24 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateActionImpl.java @@ -0,0 +1,59 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupUpdateAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupUpdateActionImpl implements AttributeGroupUpdateAction, ModelBase { + + private String action; + + @JsonCreator + AttributeGroupUpdateActionImpl(@JsonProperty("action") final String action) { + this.action = action; + } + + public AttributeGroupUpdateActionImpl() { + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupUpdateActionImpl that = (AttributeGroupUpdateActionImpl) o; + + return new EqualsBuilder().append(action, that.action).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateBuilder.java new file mode 100644 index 00000000000..cc40c523e66 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateBuilder.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeGroupUpdateBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeGroupUpdate attributeGroupUpdate = AttributeGroupUpdate.builder()
+ *             .version(0.3)
+ *             .plusActions(actionsBuilder -> actionsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupUpdateBuilder implements Builder { + + private Long version; + + private java.util.List actions; + + /** + *

Expected version of the AttributeGroup on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.

+ */ + + public AttributeGroupUpdateBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

Update actions to be performed on the AttributeGroup.

+ */ + + public AttributeGroupUpdateBuilder actions( + final com.commercetools.api.models.attribute_group.AttributeGroupUpdateAction... actions) { + this.actions = new ArrayList<>(Arrays.asList(actions)); + return this; + } + + /** + *

Update actions to be performed on the AttributeGroup.

+ */ + + public AttributeGroupUpdateBuilder actions( + final java.util.List actions) { + this.actions = actions; + return this; + } + + /** + *

Update actions to be performed on the AttributeGroup.

+ */ + + public AttributeGroupUpdateBuilder plusActions( + final com.commercetools.api.models.attribute_group.AttributeGroupUpdateAction... actions) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.addAll(Arrays.asList(actions)); + return this; + } + + /** + *

Update actions to be performed on the AttributeGroup.

+ */ + + public AttributeGroupUpdateBuilder plusActions( + Function> builder) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeGroupUpdateActionBuilder.of()).build()); + return this; + } + + /** + *

Update actions to be performed on the AttributeGroup.

+ */ + + public AttributeGroupUpdateBuilder withActions( + Function> builder) { + this.actions = new ArrayList<>(); + this.actions.add( + builder.apply(com.commercetools.api.models.attribute_group.AttributeGroupUpdateActionBuilder.of()).build()); + return this; + } + + public Long getVersion() { + return this.version; + } + + public java.util.List getActions() { + return this.actions; + } + + public AttributeGroupUpdate build() { + Objects.requireNonNull(version, AttributeGroupUpdate.class + ": version is missing"); + Objects.requireNonNull(actions, AttributeGroupUpdate.class + ": actions is missing"); + return new AttributeGroupUpdateImpl(version, actions); + } + + /** + * builds AttributeGroupUpdate without checking for non null required values + */ + public AttributeGroupUpdate buildUnchecked() { + return new AttributeGroupUpdateImpl(version, actions); + } + + public static AttributeGroupUpdateBuilder of() { + return new AttributeGroupUpdateBuilder(); + } + + public static AttributeGroupUpdateBuilder of(final AttributeGroupUpdate template) { + AttributeGroupUpdateBuilder builder = new AttributeGroupUpdateBuilder(); + builder.version = template.getVersion(); + builder.actions = template.getActions(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateImpl.java new file mode 100644 index 00000000000..0bcd634ea35 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupUpdateImpl.java @@ -0,0 +1,84 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeGroupUpdate + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeGroupUpdateImpl implements AttributeGroupUpdate, ModelBase { + + private Long version; + + private java.util.List actions; + + @JsonCreator + AttributeGroupUpdateImpl(@JsonProperty("version") final Long version, + @JsonProperty("actions") final java.util.List actions) { + this.version = version; + this.actions = actions; + } + + public AttributeGroupUpdateImpl() { + } + + /** + *

Expected version of the AttributeGroup on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.

+ */ + + public Long getVersion() { + return this.version; + } + + /** + *

Update actions to be performed on the AttributeGroup.

+ */ + + public java.util.List getActions() { + return this.actions; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setActions(final com.commercetools.api.models.attribute_group.AttributeGroupUpdateAction... actions) { + this.actions = new ArrayList<>(Arrays.asList(actions)); + } + + public void setActions( + final java.util.List actions) { + this.actions = actions; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeGroupUpdateImpl that = (AttributeGroupUpdateImpl) o; + + return new EqualsBuilder().append(version, that.version).append(actions, that.actions).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(version).append(actions).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReference.java new file mode 100644 index 00000000000..ff5195abbe0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReference.java @@ -0,0 +1,71 @@ + +package com.commercetools.api.models.attribute_group; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeReference + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeReference attributeReference = AttributeReference.builder()
+ *             .key("{key}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = AttributeReferenceImpl.class) +public interface AttributeReference { + + /** + *

Key of the attribute.

+ */ + @NotNull + @JsonProperty("key") + public String getKey(); + + public void setKey(final String key); + + public static AttributeReference of() { + return new AttributeReferenceImpl(); + } + + public static AttributeReference of(final AttributeReference template) { + AttributeReferenceImpl instance = new AttributeReferenceImpl(); + instance.setKey(template.getKey()); + return instance; + } + + public static AttributeReferenceBuilder builder() { + return AttributeReferenceBuilder.of(); + } + + public static AttributeReferenceBuilder builder(final AttributeReference template) { + return AttributeReferenceBuilder.of(template); + } + + default T withAttributeReference(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReferenceBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReferenceBuilder.java new file mode 100644 index 00000000000..3f0ffd0b361 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReferenceBuilder.java @@ -0,0 +1,61 @@ + +package com.commercetools.api.models.attribute_group; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * AttributeReferenceBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     AttributeReference attributeReference = AttributeReference.builder()
+ *             .key("{key}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeReferenceBuilder implements Builder { + + private String key; + + /** + *

Key of the attribute.

+ */ + + public AttributeReferenceBuilder key(final String key) { + this.key = key; + return this; + } + + public String getKey() { + return this.key; + } + + public AttributeReference build() { + Objects.requireNonNull(key, AttributeReference.class + ": key is missing"); + return new AttributeReferenceImpl(key); + } + + /** + * builds AttributeReference without checking for non null required values + */ + public AttributeReference buildUnchecked() { + return new AttributeReferenceImpl(key); + } + + public static AttributeReferenceBuilder of() { + return new AttributeReferenceBuilder(); + } + + public static AttributeReferenceBuilder of(final AttributeReference template) { + AttributeReferenceBuilder builder = new AttributeReferenceBuilder(); + builder.key = template.getKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReferenceImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReferenceImpl.java new file mode 100644 index 00000000000..7a7f6756e1b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeReferenceImpl.java @@ -0,0 +1,63 @@ + +package com.commercetools.api.models.attribute_group; + +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; + +/** + * AttributeReference + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AttributeReferenceImpl implements AttributeReference, ModelBase { + + private String key; + + @JsonCreator + AttributeReferenceImpl(@JsonProperty("key") final String key) { + this.key = key; + } + + public AttributeReferenceImpl() { + } + + /** + *

Key of the attribute.

+ */ + + public String getKey() { + return this.key; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AttributeReferenceImpl that = (AttributeReferenceImpl) o; + + return new EqualsBuilder().append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(key).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountAction.java index 5ba715fbbf1..2c8655a75fb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountAction.java @@ -46,10 +46,19 @@ public interface CartSetLineItemTaxAmountAction extends CartUpdateAction { @JsonProperty("externalTaxAmount") public ExternalTaxAmountDraft getExternalTaxAmount(); + /** + *

key of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + @JsonProperty("shippingKey") + public String getShippingKey(); + public void setLineItemId(final String lineItemId); public void setExternalTaxAmount(final ExternalTaxAmountDraft externalTaxAmount); + public void setShippingKey(final String shippingKey); + public static CartSetLineItemTaxAmountAction of() { return new CartSetLineItemTaxAmountActionImpl(); } @@ -58,6 +67,7 @@ public static CartSetLineItemTaxAmountAction of(final CartSetLineItemTaxAmountAc CartSetLineItemTaxAmountActionImpl instance = new CartSetLineItemTaxAmountActionImpl(); instance.setLineItemId(template.getLineItemId()); instance.setExternalTaxAmount(template.getExternalTaxAmount()); + instance.setShippingKey(template.getShippingKey()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionBuilder.java index 8a8ea944cc7..84d12628e5f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionBuilder.java @@ -29,6 +29,9 @@ public class CartSetLineItemTaxAmountActionBuilder implements Builderkey of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + public CartSetLineItemTaxAmountActionBuilder shippingKey(@Nullable final String shippingKey) { + this.shippingKey = shippingKey; + return this; + } + public String getLineItemId() { return this.lineItemId; } @@ -68,16 +80,21 @@ public com.commercetools.api.models.cart.ExternalTaxAmountDraft getExternalTaxAm return this.externalTaxAmount; } + @Nullable + public String getShippingKey() { + return this.shippingKey; + } + public CartSetLineItemTaxAmountAction build() { Objects.requireNonNull(lineItemId, CartSetLineItemTaxAmountAction.class + ": lineItemId is missing"); - return new CartSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount); + return new CartSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount, shippingKey); } /** * builds CartSetLineItemTaxAmountAction without checking for non null required values */ public CartSetLineItemTaxAmountAction buildUnchecked() { - return new CartSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount); + return new CartSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount, shippingKey); } public static CartSetLineItemTaxAmountActionBuilder of() { @@ -88,6 +105,7 @@ public static CartSetLineItemTaxAmountActionBuilder of(final CartSetLineItemTaxA CartSetLineItemTaxAmountActionBuilder builder = new CartSetLineItemTaxAmountActionBuilder(); builder.lineItemId = template.getLineItemId(); builder.externalTaxAmount = template.getExternalTaxAmount(); + builder.shippingKey = template.getShippingKey(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionImpl.java index cbba6c3e8ca..eb83326a3ab 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxAmountActionImpl.java @@ -26,11 +26,15 @@ public class CartSetLineItemTaxAmountActionImpl implements CartSetLineItemTaxAmo private com.commercetools.api.models.cart.ExternalTaxAmountDraft externalTaxAmount; + private String shippingKey; + @JsonCreator CartSetLineItemTaxAmountActionImpl(@JsonProperty("lineItemId") final String lineItemId, - @JsonProperty("externalTaxAmount") final com.commercetools.api.models.cart.ExternalTaxAmountDraft externalTaxAmount) { + @JsonProperty("externalTaxAmount") final com.commercetools.api.models.cart.ExternalTaxAmountDraft externalTaxAmount, + @JsonProperty("shippingKey") final String shippingKey) { this.lineItemId = lineItemId; this.externalTaxAmount = externalTaxAmount; + this.shippingKey = shippingKey; this.action = SET_LINE_ITEM_TAX_AMOUNT; } @@ -62,6 +66,14 @@ public com.commercetools.api.models.cart.ExternalTaxAmountDraft getExternalTaxAm return this.externalTaxAmount; } + /** + *

key of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + public String getShippingKey() { + return this.shippingKey; + } + public void setLineItemId(final String lineItemId) { this.lineItemId = lineItemId; } @@ -70,6 +82,10 @@ public void setExternalTaxAmount(final com.commercetools.api.models.cart.Externa this.externalTaxAmount = externalTaxAmount; } + public void setShippingKey(final String shippingKey) { + this.shippingKey = shippingKey; + } + @Override public boolean equals(Object o) { if (this == o) @@ -83,12 +99,17 @@ public boolean equals(Object o) { return new EqualsBuilder().append(action, that.action) .append(lineItemId, that.lineItemId) .append(externalTaxAmount, that.externalTaxAmount) + .append(shippingKey, that.shippingKey) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(action).append(lineItemId).append(externalTaxAmount).toHashCode(); + return new HashCodeBuilder(17, 37).append(action) + .append(lineItemId) + .append(externalTaxAmount) + .append(shippingKey) + .toHashCode(); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateAction.java index cb23c381e72..32963cdc92e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateAction.java @@ -46,10 +46,19 @@ public interface CartSetLineItemTaxRateAction extends CartUpdateAction { @JsonProperty("externalTaxRate") public ExternalTaxRateDraft getExternalTaxRate(); + /** + *

key of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + @JsonProperty("shippingKey") + public String getShippingKey(); + public void setLineItemId(final String lineItemId); public void setExternalTaxRate(final ExternalTaxRateDraft externalTaxRate); + public void setShippingKey(final String shippingKey); + public static CartSetLineItemTaxRateAction of() { return new CartSetLineItemTaxRateActionImpl(); } @@ -58,6 +67,7 @@ public static CartSetLineItemTaxRateAction of(final CartSetLineItemTaxRateAction CartSetLineItemTaxRateActionImpl instance = new CartSetLineItemTaxRateActionImpl(); instance.setLineItemId(template.getLineItemId()); instance.setExternalTaxRate(template.getExternalTaxRate()); + instance.setShippingKey(template.getShippingKey()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionBuilder.java index 3a20d6014e3..de1c386da36 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionBuilder.java @@ -29,6 +29,9 @@ public class CartSetLineItemTaxRateActionBuilder implements Builderkey of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + public CartSetLineItemTaxRateActionBuilder shippingKey(@Nullable final String shippingKey) { + this.shippingKey = shippingKey; + return this; + } + public String getLineItemId() { return this.lineItemId; } @@ -68,16 +80,21 @@ public com.commercetools.api.models.cart.ExternalTaxRateDraft getExternalTaxRate return this.externalTaxRate; } + @Nullable + public String getShippingKey() { + return this.shippingKey; + } + public CartSetLineItemTaxRateAction build() { Objects.requireNonNull(lineItemId, CartSetLineItemTaxRateAction.class + ": lineItemId is missing"); - return new CartSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate); + return new CartSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate, shippingKey); } /** * builds CartSetLineItemTaxRateAction without checking for non null required values */ public CartSetLineItemTaxRateAction buildUnchecked() { - return new CartSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate); + return new CartSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate, shippingKey); } public static CartSetLineItemTaxRateActionBuilder of() { @@ -88,6 +105,7 @@ public static CartSetLineItemTaxRateActionBuilder of(final CartSetLineItemTaxRat CartSetLineItemTaxRateActionBuilder builder = new CartSetLineItemTaxRateActionBuilder(); builder.lineItemId = template.getLineItemId(); builder.externalTaxRate = template.getExternalTaxRate(); + builder.shippingKey = template.getShippingKey(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionImpl.java index 20172d21252..700934d0d73 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTaxRateActionImpl.java @@ -26,11 +26,15 @@ public class CartSetLineItemTaxRateActionImpl implements CartSetLineItemTaxRateA private com.commercetools.api.models.cart.ExternalTaxRateDraft externalTaxRate; + private String shippingKey; + @JsonCreator CartSetLineItemTaxRateActionImpl(@JsonProperty("lineItemId") final String lineItemId, - @JsonProperty("externalTaxRate") final com.commercetools.api.models.cart.ExternalTaxRateDraft externalTaxRate) { + @JsonProperty("externalTaxRate") final com.commercetools.api.models.cart.ExternalTaxRateDraft externalTaxRate, + @JsonProperty("shippingKey") final String shippingKey) { this.lineItemId = lineItemId; this.externalTaxRate = externalTaxRate; + this.shippingKey = shippingKey; this.action = SET_LINE_ITEM_TAX_RATE; } @@ -62,6 +66,14 @@ public com.commercetools.api.models.cart.ExternalTaxRateDraft getExternalTaxRate return this.externalTaxRate; } + /** + *

key of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + public String getShippingKey() { + return this.shippingKey; + } + public void setLineItemId(final String lineItemId) { this.lineItemId = lineItemId; } @@ -70,6 +82,10 @@ public void setExternalTaxRate(final com.commercetools.api.models.cart.ExternalT this.externalTaxRate = externalTaxRate; } + public void setShippingKey(final String shippingKey) { + this.shippingKey = shippingKey; + } + @Override public boolean equals(Object o) { if (this == o) @@ -83,12 +99,17 @@ public boolean equals(Object o) { return new EqualsBuilder().append(action, that.action) .append(lineItemId, that.lineItemId) .append(externalTaxRate, that.externalTaxRate) + .append(shippingKey, that.shippingKey) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(action).append(lineItemId).append(externalTaxRate).toHashCode(); + return new HashCodeBuilder(17, 37).append(action) + .append(lineItemId) + .append(externalTaxRate) + .append(shippingKey) + .toHashCode(); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/Reference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/Reference.java index f151768785b..c62075dbe53 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/Reference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/Reference.java @@ -7,6 +7,7 @@ import javax.validation.constraints.NotNull; +import com.commercetools.api.models.attribute_group.AttributeGroupReference; import com.commercetools.api.models.business_unit.BusinessUnitReference; import com.commercetools.api.models.cart.CartReference; import com.commercetools.api.models.cart_discount.CartDiscountReference; @@ -48,13 +49,14 @@ * Example to create a subtype instance using the builder pattern *
*

- *     Reference reference = Reference.businessUnitBuilder()
+ *     Reference reference = Reference.attributeGroupBuilder()
  *             id("{id}")
  *             .build()
  * 
*
*/ @JsonSubTypes({ + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupReferenceImpl.class, name = AttributeGroupReference.ATTRIBUTE_GROUP), @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitReferenceImpl.class, name = BusinessUnitReference.BUSINESS_UNIT), @JsonSubTypes.Type(value = com.commercetools.api.models.cart_discount.CartDiscountReferenceImpl.class, name = CartDiscountReference.CART_DISCOUNT), @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartReferenceImpl.class, name = CartReference.CART), @@ -105,6 +107,10 @@ public interface Reference { public void setId(final String id); + public static com.commercetools.api.models.attribute_group.AttributeGroupReferenceBuilder attributeGroupBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupReferenceBuilder.of(); + } + public static com.commercetools.api.models.business_unit.BusinessUnitReferenceBuilder businessUnitBuilder() { return com.commercetools.api.models.business_unit.BusinessUnitReferenceBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceBuilder.java index 753759c099a..f889b7e489a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceBuilder.java @@ -11,6 +11,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ReferenceBuilder { + public com.commercetools.api.models.attribute_group.AttributeGroupReferenceBuilder attributeGroupBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupReferenceBuilder.of(); + } + public com.commercetools.api.models.business_unit.BusinessUnitReferenceBuilder businessUnitBuilder() { return com.commercetools.api.models.business_unit.BusinessUnitReferenceBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceTypeId.java index fa43b11d454..ecb80d6999a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceTypeId.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ReferenceTypeId.java @@ -15,6 +15,11 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface ReferenceTypeId { + /** +

References an AttributeGroup.

+ + */ + ReferenceTypeId ATTRIBUTE_GROUP = ReferenceTypeIdEnum.ATTRIBUTE_GROUP; /**

References a BusinessUnit.

@@ -177,6 +182,8 @@ public interface ReferenceTypeId { ReferenceTypeId ZONE = ReferenceTypeIdEnum.ZONE; enum ReferenceTypeIdEnum implements ReferenceTypeId { + ATTRIBUTE_GROUP("attribute-group"), + BUSINESS_UNIT("business-unit"), CART("cart"), diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifier.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifier.java index 6cf704fac55..2c4dae72536 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifier.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifier.java @@ -5,6 +5,7 @@ import java.util.*; import java.util.function.Function; +import com.commercetools.api.models.attribute_group.AttributeGroupResourceIdentifier; import com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier; import com.commercetools.api.models.cart.CartResourceIdentifier; import com.commercetools.api.models.cart_discount.CartDiscountResourceIdentifier; @@ -46,12 +47,13 @@ * Example to create a subtype instance using the builder pattern *
*

- *     ResourceIdentifier resourceIdentifier = ResourceIdentifier.businessUnitBuilder()
+ *     ResourceIdentifier resourceIdentifier = ResourceIdentifier.attributeGroupBuilder()
  *             .build()
  * 
*
*/ @JsonSubTypes({ + @JsonSubTypes.Type(value = com.commercetools.api.models.attribute_group.AttributeGroupResourceIdentifierImpl.class, name = AttributeGroupResourceIdentifier.ATTRIBUTE_GROUP), @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierImpl.class, name = BusinessUnitResourceIdentifier.BUSINESS_UNIT), @JsonSubTypes.Type(value = com.commercetools.api.models.cart_discount.CartDiscountResourceIdentifierImpl.class, name = CartDiscountResourceIdentifier.CART_DISCOUNT), @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartResourceIdentifierImpl.class, name = CartResourceIdentifier.CART), @@ -110,6 +112,10 @@ public interface ResourceIdentifier { public void setKey(final String key); + public static com.commercetools.api.models.attribute_group.AttributeGroupResourceIdentifierBuilder attributeGroupBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupResourceIdentifierBuilder.of(); + } + public static com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder businessUnitBuilder() { return com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifierBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifierBuilder.java index b51b82c60d7..9996310e35c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifierBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/ResourceIdentifierBuilder.java @@ -11,6 +11,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ResourceIdentifierBuilder { + public com.commercetools.api.models.attribute_group.AttributeGroupResourceIdentifierBuilder attributeGroupBuilder() { + return com.commercetools.api.models.attribute_group.AttributeGroupResourceIdentifierBuilder.of(); + } + public com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder businessUnitBuilder() { return com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AnonymousCartSignInMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AnonymousCartSignInMode.java index 623e028da3a..8c3add6b98a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AnonymousCartSignInMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AnonymousCartSignInMode.java @@ -15,8 +15,15 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface AnonymousCartSignInMode { + /** +

If set, LineItems of an anonymous Cart are merged with the active Customer Cart that has been modified most recently. The CartState of the anonymous Cart changes to Merged while the CartState of the Customer's Cart remains Active. If a LineItem or CustomLineItem in the anonymous Cart matches an existing Line Item or Custom Line Item in the Customer's Cart, the maximum quantity of both line items is used as the new quantity.

+ + */ AnonymousCartSignInMode MERGE_WITH_EXISTING_CUSTOMER_CART = AnonymousCartSignInModeEnum.MERGE_WITH_EXISTING_CUSTOMER_CART; + /** +

If set, an anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.

+ */ AnonymousCartSignInMode USE_AS_NEW_ACTIVE_CUSTOMER_CART = AnonymousCartSignInModeEnum.USE_AS_NEW_ACTIVE_CUSTOMER_CART; enum AnonymousCartSignInModeEnum implements AnonymousCartSignInMode { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AuthenticationMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AuthenticationMode.java index d5e94400a72..4ead7ec9fd1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AuthenticationMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/AuthenticationMode.java @@ -15,8 +15,15 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface AuthenticationMode { + /** +

This is the default value. If set, the password field is required on CustomerDraft and is present on Customer.

+ + */ AuthenticationMode PASSWORD = AuthenticationModeEnum.PASSWORD; + /** +

If set, the password field is optional on CustomerDraft and is not present on Customer.

+ */ AuthenticationMode EXTERNAL_AUTH = AuthenticationModeEnum.EXTERNAL_AUTH; enum AuthenticationModeEnum implements AuthenticationMode { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java index 528b1a7e52c..d4ce1eaaf0c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java @@ -23,7 +23,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * Customer + *

If stores is not empty, the Customer is specific to those Stores.

* *
* Example to create an instance using the builder pattern @@ -37,6 +37,7 @@ * .email("{email}") * .plusAddresses(addressesBuilder -> addressesBuilder) * .isEmailVerified(true) + * .authenticationMode(AuthenticationMode.PASSWORD) * .build() * *
@@ -56,21 +57,43 @@ public interface Customer extends BaseResource, com.commercetools.api.models.Dom public String getId(); /** - *

The current version of the customer.

+ *

Current version of the Customer.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

User-defined unique identifier of the Customer.

+ */ + + @JsonProperty("key") + public String getKey(); + + /** + *

User-defined unique identifier of the Customer.

+ *

Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).

+ */ + + @JsonProperty("customerNumber") + public String getCustomerNumber(); + + /** + *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ */ + + @JsonProperty("externalId") + public String getExternalId(); + + /** + *

Date and time (UTC) the Customer was initially created.

*/ @NotNull @JsonProperty("createdAt") public ZonedDateTime getCreatedAt(); /** - * + *

Date and time (UTC) the Customer was last updated.

*/ @NotNull @JsonProperty("lastModifiedAt") @@ -91,77 +114,70 @@ public interface Customer extends BaseResource, com.commercetools.api.models.Dom public CreatedBy getCreatedBy(); /** - *

The customer number can be used to create a more human-readable (in contrast to ID) identifier for the customer. It should be unique across a project. Once the field was set it cannot be changed anymore.

- */ - - @JsonProperty("customerNumber") - public String getCustomerNumber(); - - /** - *

The customer's email address and the main identifier of uniqueness for a customer account. Email addresses are either unique to the store they're specified for, or for the entire project. For more information, see Email uniquenes.

+ *

Email address of the Customer that is unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ @NotNull @JsonProperty("email") public String getEmail(); /** - *

Only present with the default authenticationMode, Password.

+ *

Present only when authenticationMode is set to Password.

*/ @JsonProperty("password") public String getPassword(); /** - * + *

Given name (first name) of the Customer.

*/ @JsonProperty("firstName") public String getFirstName(); /** - * + *

Family name (last name) of the Customer.

*/ @JsonProperty("lastName") public String getLastName(); /** - * + *

Middle name of the Customer.

*/ @JsonProperty("middleName") public String getMiddleName(); /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ @JsonProperty("title") public String getTitle(); /** - * + *

Date of birth of the Customer.

*/ @JsonProperty("dateOfBirth") public LocalDate getDateOfBirth(); /** - * + *

Company name of the Customer.

*/ @JsonProperty("companyName") public String getCompanyName(); /** - * + *

Unique VAT ID of the Customer.

*/ @JsonProperty("vatId") public String getVatId(); /** - *

The addresses have unique IDs in the addresses list

+ *

Addresses used by the Customer.

*/ @NotNull @Valid @@ -169,93 +185,83 @@ public interface Customer extends BaseResource, com.commercetools.api.models.Dom public List
getAddresses(); /** - *

The address ID in the addresses list

+ *

ID of the address in addresses used as the default shipping address.

*/ @JsonProperty("defaultShippingAddressId") public String getDefaultShippingAddressId(); /** - *

The IDs from the addresses list which are used as shipping addresses

+ *

IDs of addresses in addresses used as shipping addresses.

*/ @JsonProperty("shippingAddressIds") public List getShippingAddressIds(); /** - *

The address ID in the addresses list

+ *

ID of the address in addresses used as the default billing address.

*/ @JsonProperty("defaultBillingAddressId") public String getDefaultBillingAddressId(); /** - *

The IDs from the addresses list which are used as billing addresses

+ *

IDs of addresses in addresses used as billing addresses.

*/ @JsonProperty("billingAddressIds") public List getBillingAddressIds(); /** - * + *

Indicates whether the email address of the Customer is verified.

*/ @NotNull @JsonProperty("isEmailVerified") public Boolean getIsEmailVerified(); /** - * - */ - - @JsonProperty("externalId") - public String getExternalId(); - - /** - * + *

CustomerGroup to which the Customer belongs.

*/ @Valid @JsonProperty("customerGroup") public CustomerGroupReference getCustomerGroup(); /** - * + *

Custom Fields for the Customer.

*/ @Valid @JsonProperty("custom") public CustomFields getCustom(); /** - * + *

Preferred language of the Customer.

*/ @JsonProperty("locale") public String getLocale(); /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

*/ @JsonProperty("salutation") public String getSalutation(); /** - *

User-defined unique identifier of the Customer.

- */ - - @JsonProperty("key") - public String getKey(); - - /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Stores to which the Customer is assigned to.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ @Valid @JsonProperty("stores") public List getStores(); /** - *

Defines whether a Customer has a password.

+ *

Indicates whether the password is required for the Customer.

*/ - + @NotNull @JsonProperty("authenticationMode") public AuthenticationMode getAuthenticationMode(); @@ -263,6 +269,12 @@ public interface Customer extends BaseResource, com.commercetools.api.models.Dom public void setVersion(final Long version); + public void setKey(final String key); + + public void setCustomerNumber(final String customerNumber); + + public void setExternalId(final String externalId); + public void setCreatedAt(final ZonedDateTime createdAt); public void setLastModifiedAt(final ZonedDateTime lastModifiedAt); @@ -271,8 +283,6 @@ public interface Customer extends BaseResource, com.commercetools.api.models.Dom public void setCreatedBy(final CreatedBy createdBy); - public void setCustomerNumber(final String customerNumber); - public void setEmail(final String email); public void setPassword(final String password); @@ -312,8 +322,6 @@ public interface Customer extends BaseResource, com.commercetools.api.models.Dom public void setIsEmailVerified(final Boolean isEmailVerified); - public void setExternalId(final String externalId); - public void setCustomerGroup(final CustomerGroupReference customerGroup); public void setCustom(final CustomFields custom); @@ -322,8 +330,6 @@ public interface Customer extends BaseResource, com.commercetools.api.models.Dom public void setSalutation(final String salutation); - public void setKey(final String key); - @JsonIgnore public void setStores(final StoreKeyReference... stores); @@ -341,9 +347,11 @@ public static Customer of(final Customer template) { instance.setVersion(template.getVersion()); instance.setCreatedAt(template.getCreatedAt()); instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setKey(template.getKey()); + instance.setCustomerNumber(template.getCustomerNumber()); + instance.setExternalId(template.getExternalId()); instance.setLastModifiedBy(template.getLastModifiedBy()); instance.setCreatedBy(template.getCreatedBy()); - instance.setCustomerNumber(template.getCustomerNumber()); instance.setEmail(template.getEmail()); instance.setPassword(template.getPassword()); instance.setFirstName(template.getFirstName()); @@ -359,12 +367,10 @@ public static Customer of(final Customer template) { instance.setDefaultBillingAddressId(template.getDefaultBillingAddressId()); instance.setBillingAddressIds(template.getBillingAddressIds()); instance.setIsEmailVerified(template.getIsEmailVerified()); - instance.setExternalId(template.getExternalId()); instance.setCustomerGroup(template.getCustomerGroup()); instance.setCustom(template.getCustom()); instance.setLocale(template.getLocale()); instance.setSalutation(template.getSalutation()); - instance.setKey(template.getKey()); instance.setStores(template.getStores()); instance.setAuthenticationMode(template.getAuthenticationMode()); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressAction.java index da68b80c360..1d346840cea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressAction.java @@ -15,7 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerAddAddressAction + *

Adding an address to the Customer produces the CustomerAddressAdded Message.

* *
* Example to create an instance using the builder pattern @@ -34,7 +34,7 @@ public interface CustomerAddAddressAction extends CustomerUpdateAction { String ADD_ADDRESS = "addAddress"; /** - * + *

Value to append to the addresses array.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionBuilder.java index 9e1588db37b..e073cc8f4bf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionBuilder.java @@ -25,7 +25,7 @@ public class CustomerAddAddressActionBuilder implements BuilderValue to append to the addresses array.

*/ public CustomerAddAddressActionBuilder address( @@ -35,7 +35,7 @@ public CustomerAddAddressActionBuilder address( } /** - * + *

Value to append to the addresses array.

*/ public CustomerAddAddressActionBuilder address(final com.commercetools.api.models.common.BaseAddress address) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionImpl.java index b59d49cad80..7582c1e066b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddAddressActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerAddAddressAction + *

Adding an address to the Customer produces the CustomerAddressAdded Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerAddAddressActionImpl implements CustomerAddAddressAction, ModelBase { @@ -44,7 +44,7 @@ public String getAction() { } /** - * + *

Value to append to the addresses array.

*/ public com.commercetools.api.models.common.BaseAddress getAddress() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdAction.java index 84b46a15032..2ff0cb7c4d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerAddBillingAddressIdAction + *

Adds an Address from the addresses array to billingAddressIds. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface CustomerAddBillingAddressIdAction extends CustomerUpdateAction String ADD_BILLING_ADDRESS_ID = "addBillingAddressId"; /** - * + *

id of the Address to become a billing address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become a billing address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionBuilder.java index 5cb9d1a6d71..e474097e4bd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerAddBillingAddressIdActionBuilder implements Builderid of the Address to become a billing address.

*/ public CustomerAddBillingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public CustomerAddBillingAddressIdActionBuilder addressId(@Nullable final String } /** - * + *

key of the Address to become a billing address.

*/ public CustomerAddBillingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionImpl.java index 26d1db21d34..42db37f1558 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddBillingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerAddBillingAddressIdAction + *

Adds an Address from the addresses array to billingAddressIds. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerAddBillingAddressIdActionImpl implements CustomerAddBillingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to become a billing address.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become a billing address.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdAction.java index 963331be16f..fb10c39829b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerAddShippingAddressIdAction + *

Adds an Address from the addresses array to shippingAddressIds. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface CustomerAddShippingAddressIdAction extends CustomerUpdateAction String ADD_SHIPPING_ADDRESS_ID = "addShippingAddressId"; /** - * + *

id of the Address to become a shipping address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become a shipping address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionBuilder.java index 43afe58bc2c..d4139431076 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerAddShippingAddressIdActionBuilder implements Builderid of the Address to become a shipping address.

*/ public CustomerAddShippingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public CustomerAddShippingAddressIdActionBuilder addressId(@Nullable final Strin } /** - * + *

key of the Address to become a shipping address.

*/ public CustomerAddShippingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionImpl.java index 2e0d4853eb1..3ffe2d5fb2c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddShippingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerAddShippingAddressIdAction + *

Adds an Address from the addresses array to shippingAddressIds. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerAddShippingAddressIdActionImpl implements CustomerAddShippingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to become a shipping address.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become a shipping address.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreAction.java index 23423e1f4e7..97dff1a705a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreAction.java @@ -15,7 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerAddStoreAction + *

Associates the Customer with a Store.

* *
* Example to create an instance using the builder pattern @@ -34,7 +34,7 @@ public interface CustomerAddStoreAction extends CustomerUpdateAction { String ADD_STORE = "addStore"; /** - *

ResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to add.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionBuilder.java index ccba98dc0a0..5f093444b9c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionBuilder.java @@ -25,7 +25,7 @@ public class CustomerAddStoreActionBuilder implements BuilderResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to add.

*/ public CustomerAddStoreActionBuilder store( @@ -35,7 +35,7 @@ public CustomerAddStoreActionBuilder store( } /** - *

ResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to add.

*/ public CustomerAddStoreActionBuilder store(final com.commercetools.api.models.store.StoreResourceIdentifier store) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionImpl.java index fd5b8439c65..0c085642aa7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddStoreActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerAddStoreAction + *

Associates the Customer with a Store.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerAddStoreActionImpl implements CustomerAddStoreAction, ModelBase { @@ -44,7 +44,7 @@ public String getAction() { } /** - *

ResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to add.

*/ public com.commercetools.api.models.store.StoreResourceIdentifier getStore() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java index 3d50bb3c0bf..4746d7e6534 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java @@ -23,6 +23,7 @@ * .email("{email}") * .plusAddresses(addressesBuilder -> addressesBuilder) * .isEmailVerified(true) + * .authenticationMode(AuthenticationMode.PASSWORD) * .build() * *
@@ -39,13 +40,19 @@ public class CustomerBuilder implements Builder { private java.time.ZonedDateTime lastModifiedAt; @Nullable - private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + private String key; @Nullable - private com.commercetools.api.models.common.CreatedBy createdBy; + private String customerNumber; @Nullable - private String customerNumber; + private String externalId; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; private String email; @@ -89,9 +96,6 @@ public class CustomerBuilder implements Builder { private Boolean isEmailVerified; - @Nullable - private String externalId; - @Nullable private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup; @@ -104,13 +108,9 @@ public class CustomerBuilder implements Builder { @Nullable private String salutation; - @Nullable - private String key; - @Nullable private java.util.List stores; - @Nullable private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; /** @@ -123,7 +123,7 @@ public CustomerBuilder id(final String id) { } /** - *

The current version of the customer.

+ *

Current version of the Customer.

*/ public CustomerBuilder version(final Long version) { @@ -132,7 +132,7 @@ public CustomerBuilder version(final Long version) { } /** - * + *

Date and time (UTC) the Customer was initially created.

*/ public CustomerBuilder createdAt(final java.time.ZonedDateTime createdAt) { @@ -141,7 +141,7 @@ public CustomerBuilder createdAt(final java.time.ZonedDateTime createdAt) { } /** - * + *

Date and time (UTC) the Customer was last updated.

*/ public CustomerBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { @@ -149,6 +149,34 @@ public CustomerBuilder lastModifiedAt(final java.time.ZonedDateTime lastModified return this; } + /** + *

User-defined unique identifier of the Customer.

+ */ + + public CustomerBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + /** + *

User-defined unique identifier of the Customer.

+ *

Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).

+ */ + + public CustomerBuilder customerNumber(@Nullable final String customerNumber) { + this.customerNumber = customerNumber; + return this; + } + + /** + *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ */ + + public CustomerBuilder externalId(@Nullable final String externalId) { + this.externalId = externalId; + return this; + } + /** *

Present on resources created after 1 February 2019 except for events not tracked.

*/ @@ -189,16 +217,7 @@ public CustomerBuilder createdBy(@Nullable final com.commercetools.api.models.co } /** - *

The customer number can be used to create a more human-readable (in contrast to ID) identifier for the customer. It should be unique across a project. Once the field was set it cannot be changed anymore.

- */ - - public CustomerBuilder customerNumber(@Nullable final String customerNumber) { - this.customerNumber = customerNumber; - return this; - } - - /** - *

The customer's email address and the main identifier of uniqueness for a customer account. Email addresses are either unique to the store they're specified for, or for the entire project. For more information, see Email uniquenes.

+ *

Email address of the Customer that is unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ public CustomerBuilder email(final String email) { @@ -207,7 +226,7 @@ public CustomerBuilder email(final String email) { } /** - *

Only present with the default authenticationMode, Password.

+ *

Present only when authenticationMode is set to Password.

*/ public CustomerBuilder password(@Nullable final String password) { @@ -216,7 +235,7 @@ public CustomerBuilder password(@Nullable final String password) { } /** - * + *

Given name (first name) of the Customer.

*/ public CustomerBuilder firstName(@Nullable final String firstName) { @@ -225,7 +244,7 @@ public CustomerBuilder firstName(@Nullable final String firstName) { } /** - * + *

Family name (last name) of the Customer.

*/ public CustomerBuilder lastName(@Nullable final String lastName) { @@ -234,7 +253,7 @@ public CustomerBuilder lastName(@Nullable final String lastName) { } /** - * + *

Middle name of the Customer.

*/ public CustomerBuilder middleName(@Nullable final String middleName) { @@ -243,7 +262,7 @@ public CustomerBuilder middleName(@Nullable final String middleName) { } /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ public CustomerBuilder title(@Nullable final String title) { @@ -252,7 +271,7 @@ public CustomerBuilder title(@Nullable final String title) { } /** - * + *

Date of birth of the Customer.

*/ public CustomerBuilder dateOfBirth(@Nullable final java.time.LocalDate dateOfBirth) { @@ -261,7 +280,7 @@ public CustomerBuilder dateOfBirth(@Nullable final java.time.LocalDate dateOfBir } /** - * + *

Company name of the Customer.

*/ public CustomerBuilder companyName(@Nullable final String companyName) { @@ -270,7 +289,7 @@ public CustomerBuilder companyName(@Nullable final String companyName) { } /** - * + *

Unique VAT ID of the Customer.

*/ public CustomerBuilder vatId(@Nullable final String vatId) { @@ -279,7 +298,7 @@ public CustomerBuilder vatId(@Nullable final String vatId) { } /** - *

The addresses have unique IDs in the addresses list

+ *

Addresses used by the Customer.

*/ public CustomerBuilder addresses(final com.commercetools.api.models.common.Address... addresses) { @@ -288,7 +307,7 @@ public CustomerBuilder addresses(final com.commercetools.api.models.common.Addre } /** - *

The addresses have unique IDs in the addresses list

+ *

Addresses used by the Customer.

*/ public CustomerBuilder addresses(final java.util.List addresses) { @@ -297,7 +316,7 @@ public CustomerBuilder addresses(final java.util.ListThe addresses have unique IDs in the addresses list

+ *

Addresses used by the Customer.

*/ public CustomerBuilder plusAddresses(final com.commercetools.api.models.common.Address... addresses) { @@ -309,7 +328,7 @@ public CustomerBuilder plusAddresses(final com.commercetools.api.models.common.A } /** - *

The addresses have unique IDs in the addresses list

+ *

Addresses used by the Customer.

*/ public CustomerBuilder plusAddresses( @@ -322,7 +341,7 @@ public CustomerBuilder plusAddresses( } /** - *

The addresses have unique IDs in the addresses list

+ *

Addresses used by the Customer.

*/ public CustomerBuilder withAddresses( @@ -333,7 +352,7 @@ public CustomerBuilder withAddresses( } /** - *

The address ID in the addresses list

+ *

ID of the address in addresses used as the default shipping address.

*/ public CustomerBuilder defaultShippingAddressId(@Nullable final String defaultShippingAddressId) { @@ -342,7 +361,7 @@ public CustomerBuilder defaultShippingAddressId(@Nullable final String defaultSh } /** - *

The IDs from the addresses list which are used as shipping addresses

+ *

IDs of addresses in addresses used as shipping addresses.

*/ public CustomerBuilder shippingAddressIds(@Nullable final String... shippingAddressIds) { @@ -351,7 +370,7 @@ public CustomerBuilder shippingAddressIds(@Nullable final String... shippingAddr } /** - *

The IDs from the addresses list which are used as shipping addresses

+ *

IDs of addresses in addresses used as shipping addresses.

*/ public CustomerBuilder shippingAddressIds(@Nullable final java.util.List shippingAddressIds) { @@ -360,7 +379,7 @@ public CustomerBuilder shippingAddressIds(@Nullable final java.util.List } /** - *

The IDs from the addresses list which are used as shipping addresses

+ *

IDs of addresses in addresses used as shipping addresses.

*/ public CustomerBuilder plusShippingAddressIds(@Nullable final String... shippingAddressIds) { @@ -372,7 +391,7 @@ public CustomerBuilder plusShippingAddressIds(@Nullable final String... shipping } /** - *

The address ID in the addresses list

+ *

ID of the address in addresses used as the default billing address.

*/ public CustomerBuilder defaultBillingAddressId(@Nullable final String defaultBillingAddressId) { @@ -381,7 +400,7 @@ public CustomerBuilder defaultBillingAddressId(@Nullable final String defaultBil } /** - *

The IDs from the addresses list which are used as billing addresses

+ *

IDs of addresses in addresses used as billing addresses.

*/ public CustomerBuilder billingAddressIds(@Nullable final String... billingAddressIds) { @@ -390,7 +409,7 @@ public CustomerBuilder billingAddressIds(@Nullable final String... billingAddres } /** - *

The IDs from the addresses list which are used as billing addresses

+ *

IDs of addresses in addresses used as billing addresses.

*/ public CustomerBuilder billingAddressIds(@Nullable final java.util.List billingAddressIds) { @@ -399,7 +418,7 @@ public CustomerBuilder billingAddressIds(@Nullable final java.util.List } /** - *

The IDs from the addresses list which are used as billing addresses

+ *

IDs of addresses in addresses used as billing addresses.

*/ public CustomerBuilder plusBillingAddressIds(@Nullable final String... billingAddressIds) { @@ -411,7 +430,7 @@ public CustomerBuilder plusBillingAddressIds(@Nullable final String... billingAd } /** - * + *

Indicates whether the email address of the Customer is verified.

*/ public CustomerBuilder isEmailVerified(final Boolean isEmailVerified) { @@ -420,16 +439,7 @@ public CustomerBuilder isEmailVerified(final Boolean isEmailVerified) { } /** - * - */ - - public CustomerBuilder externalId(@Nullable final String externalId) { - this.externalId = externalId; - return this; - } - - /** - * + *

CustomerGroup to which the Customer belongs.

*/ public CustomerBuilder customerGroup( @@ -441,7 +451,7 @@ public CustomerBuilder customerGroup( } /** - * + *

CustomerGroup to which the Customer belongs.

*/ public CustomerBuilder customerGroup( @@ -451,7 +461,7 @@ public CustomerBuilder customerGroup( } /** - * + *

Custom Fields for the Customer.

*/ public CustomerBuilder custom( @@ -461,7 +471,7 @@ public CustomerBuilder custom( } /** - * + *

Custom Fields for the Customer.

*/ public CustomerBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFields custom) { @@ -470,7 +480,7 @@ public CustomerBuilder custom(@Nullable final com.commercetools.api.models.type. } /** - * + *

Preferred language of the Customer.

*/ public CustomerBuilder locale(@Nullable final String locale) { @@ -479,7 +489,7 @@ public CustomerBuilder locale(@Nullable final String locale) { } /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

*/ public CustomerBuilder salutation(@Nullable final String salutation) { @@ -488,16 +498,11 @@ public CustomerBuilder salutation(@Nullable final String salutation) { } /** - *

User-defined unique identifier of the Customer.

- */ - - public CustomerBuilder key(@Nullable final String key) { - this.key = key; - return this; - } - - /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Stores to which the Customer is assigned to.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerBuilder stores(@Nullable final com.commercetools.api.models.store.StoreKeyReference... stores) { @@ -506,7 +511,11 @@ public CustomerBuilder stores(@Nullable final com.commercetools.api.models.store } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Stores to which the Customer is assigned to.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerBuilder stores( @@ -516,7 +525,11 @@ public CustomerBuilder stores( } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Stores to which the Customer is assigned to.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerBuilder plusStores(@Nullable final com.commercetools.api.models.store.StoreKeyReference... stores) { @@ -528,7 +541,11 @@ public CustomerBuilder plusStores(@Nullable final com.commercetools.api.models.s } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Stores to which the Customer is assigned to.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerBuilder plusStores( @@ -541,7 +558,11 @@ public CustomerBuilder plusStores( } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Stores to which the Customer is assigned to.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerBuilder withStores( @@ -552,11 +573,11 @@ public CustomerBuilder withStores( } /** - *

Defines whether a Customer has a password.

+ *

Indicates whether the password is required for the Customer.

*/ public CustomerBuilder authenticationMode( - @Nullable final com.commercetools.api.models.customer.AuthenticationMode authenticationMode) { + final com.commercetools.api.models.customer.AuthenticationMode authenticationMode) { this.authenticationMode = authenticationMode; return this; } @@ -577,6 +598,21 @@ public java.time.ZonedDateTime getLastModifiedAt() { return this.lastModifiedAt; } + @Nullable + public String getKey() { + return this.key; + } + + @Nullable + public String getCustomerNumber() { + return this.customerNumber; + } + + @Nullable + public String getExternalId() { + return this.externalId; + } + @Nullable public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { return this.lastModifiedBy; @@ -587,11 +623,6 @@ public com.commercetools.api.models.common.CreatedBy getCreatedBy() { return this.createdBy; } - @Nullable - public String getCustomerNumber() { - return this.customerNumber; - } - public String getEmail() { return this.email; } @@ -664,11 +695,6 @@ public Boolean getIsEmailVerified() { return this.isEmailVerified; } - @Nullable - public String getExternalId() { - return this.externalId; - } - @Nullable public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroup() { return this.customerGroup; @@ -689,17 +715,11 @@ public String getSalutation() { return this.salutation; } - @Nullable - public String getKey() { - return this.key; - } - @Nullable public java.util.List getStores() { return this.stores; } - @Nullable public com.commercetools.api.models.customer.AuthenticationMode getAuthenticationMode() { return this.authenticationMode; } @@ -712,20 +732,21 @@ public Customer build() { Objects.requireNonNull(email, Customer.class + ": email is missing"); Objects.requireNonNull(addresses, Customer.class + ": addresses is missing"); Objects.requireNonNull(isEmailVerified, Customer.class + ": isEmailVerified is missing"); - return new CustomerImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, customerNumber, - email, password, firstName, lastName, middleName, title, dateOfBirth, companyName, vatId, addresses, - defaultShippingAddressId, shippingAddressIds, defaultBillingAddressId, billingAddressIds, isEmailVerified, - externalId, customerGroup, custom, locale, salutation, key, stores, authenticationMode); + Objects.requireNonNull(authenticationMode, Customer.class + ": authenticationMode is missing"); + return new CustomerImpl(id, version, createdAt, lastModifiedAt, key, customerNumber, externalId, lastModifiedBy, + createdBy, email, password, firstName, lastName, middleName, title, dateOfBirth, companyName, vatId, + addresses, defaultShippingAddressId, shippingAddressIds, defaultBillingAddressId, billingAddressIds, + isEmailVerified, customerGroup, custom, locale, salutation, stores, authenticationMode); } /** * builds Customer without checking for non null required values */ public Customer buildUnchecked() { - return new CustomerImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, customerNumber, - email, password, firstName, lastName, middleName, title, dateOfBirth, companyName, vatId, addresses, - defaultShippingAddressId, shippingAddressIds, defaultBillingAddressId, billingAddressIds, isEmailVerified, - externalId, customerGroup, custom, locale, salutation, key, stores, authenticationMode); + return new CustomerImpl(id, version, createdAt, lastModifiedAt, key, customerNumber, externalId, lastModifiedBy, + createdBy, email, password, firstName, lastName, middleName, title, dateOfBirth, companyName, vatId, + addresses, defaultShippingAddressId, shippingAddressIds, defaultBillingAddressId, billingAddressIds, + isEmailVerified, customerGroup, custom, locale, salutation, stores, authenticationMode); } public static CustomerBuilder of() { @@ -738,9 +759,11 @@ public static CustomerBuilder of(final Customer template) { builder.version = template.getVersion(); builder.createdAt = template.getCreatedAt(); builder.lastModifiedAt = template.getLastModifiedAt(); + builder.key = template.getKey(); + builder.customerNumber = template.getCustomerNumber(); + builder.externalId = template.getExternalId(); builder.lastModifiedBy = template.getLastModifiedBy(); builder.createdBy = template.getCreatedBy(); - builder.customerNumber = template.getCustomerNumber(); builder.email = template.getEmail(); builder.password = template.getPassword(); builder.firstName = template.getFirstName(); @@ -756,12 +779,10 @@ public static CustomerBuilder of(final Customer template) { builder.defaultBillingAddressId = template.getDefaultBillingAddressId(); builder.billingAddressIds = template.getBillingAddressIds(); builder.isEmailVerified = template.getIsEmailVerified(); - builder.externalId = template.getExternalId(); builder.customerGroup = template.getCustomerGroup(); builder.custom = template.getCustom(); builder.locale = template.getLocale(); builder.salutation = template.getSalutation(); - builder.key = template.getKey(); builder.stores = template.getStores(); builder.authenticationMode = template.getAuthenticationMode(); return builder; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressAction.java index d1f6bfa6bb7..3b88dc9ba9f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressAction.java @@ -15,7 +15,8 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerChangeAddressAction + *

Changing an address of the Customer produces the CustomerAddressChanged Message.

+ *

Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -34,21 +35,21 @@ public interface CustomerChangeAddressAction extends CustomerUpdateAction { String CHANGE_ADDRESS = "changeAddress"; /** - * + *

id of the Address to change.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to change.

*/ @JsonProperty("addressKey") public String getAddressKey(); /** - * + *

Value to set.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionBuilder.java index 5f25a8e4749..c80ea795ae5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionBuilder.java @@ -33,7 +33,7 @@ public class CustomerChangeAddressActionBuilder implements Builderid of the Address to change.

*/ public CustomerChangeAddressActionBuilder addressId(@Nullable final String addressId) { @@ -42,7 +42,7 @@ public CustomerChangeAddressActionBuilder addressId(@Nullable final String addre } /** - * + *

key of the Address to change.

*/ public CustomerChangeAddressActionBuilder addressKey(@Nullable final String addressKey) { @@ -51,7 +51,7 @@ public CustomerChangeAddressActionBuilder addressKey(@Nullable final String addr } /** - * + *

Value to set.

*/ public CustomerChangeAddressActionBuilder address( @@ -61,7 +61,7 @@ public CustomerChangeAddressActionBuilder address( } /** - * + *

Value to set.

*/ public CustomerChangeAddressActionBuilder address(final com.commercetools.api.models.common.BaseAddress address) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionImpl.java index c0d4a6b75ff..8d7a2fd66a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeAddressActionImpl.java @@ -15,7 +15,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerChangeAddressAction + *

Changing an address of the Customer produces the CustomerAddressChanged Message.

+ *

Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerChangeAddressActionImpl implements CustomerChangeAddressAction, ModelBase { @@ -51,7 +52,7 @@ public String getAction() { } /** - * + *

id of the Address to change.

*/ public String getAddressId() { @@ -59,7 +60,7 @@ public String getAddressId() { } /** - * + *

key of the Address to change.

*/ public String getAddressKey() { @@ -67,7 +68,7 @@ public String getAddressKey() { } /** - * + *

Value to set.

*/ public com.commercetools.api.models.common.BaseAddress getAddress() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailAction.java index 97e0dd6c314..cfa186bcd18 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerChangeEmailAction + *

Changing the email of the Customer produces the CustomerEmailChanged Message.

* *
* Example to create an instance using the builder pattern @@ -32,7 +32,7 @@ public interface CustomerChangeEmailAction extends CustomerUpdateAction { String CHANGE_EMAIL = "changeEmail"; /** - * + *

Value to set.

*/ @NotNull @JsonProperty("email") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionBuilder.java index 8a3364852c9..b41004ab38a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionBuilder.java @@ -24,7 +24,7 @@ public class CustomerChangeEmailActionBuilder implements BuilderValue to set.

*/ public CustomerChangeEmailActionBuilder email(final String email) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionImpl.java index 3c6752fe685..eadd6d72250 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangeEmailActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerChangeEmailAction + *

Changing the email of the Customer produces the CustomerEmailChanged Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerChangeEmailActionImpl implements CustomerChangeEmailAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set.

*/ public String getEmail() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePassword.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePassword.java index e5aaa314a6a..c44ce6c16cd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePassword.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePassword.java @@ -40,21 +40,22 @@ public interface CustomerChangePassword { public String getId(); /** - * + *

Expected version of the Customer on which the changes should be applied.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Current password of the Customer.

+ *

If the current password does not match, an InvalidCurrentPassword error is returned.

*/ @NotNull @JsonProperty("currentPassword") public String getCurrentPassword(); /** - * + *

New password to be set.

*/ @NotNull @JsonProperty("newPassword") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordBuilder.java index f24bef55ca0..6c4f23c4c62 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordBuilder.java @@ -42,7 +42,7 @@ public CustomerChangePasswordBuilder id(final String id) { } /** - * + *

Expected version of the Customer on which the changes should be applied.

*/ public CustomerChangePasswordBuilder version(final Long version) { @@ -51,7 +51,8 @@ public CustomerChangePasswordBuilder version(final Long version) { } /** - * + *

Current password of the Customer.

+ *

If the current password does not match, an InvalidCurrentPassword error is returned.

*/ public CustomerChangePasswordBuilder currentPassword(final String currentPassword) { @@ -60,7 +61,7 @@ public CustomerChangePasswordBuilder currentPassword(final String currentPasswor } /** - * + *

New password to be set.

*/ public CustomerChangePasswordBuilder newPassword(final String newPassword) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordImpl.java index fd61837f0da..875ab052c2e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerChangePasswordImpl.java @@ -50,7 +50,7 @@ public String getId() { } /** - * + *

Expected version of the Customer on which the changes should be applied.

*/ public Long getVersion() { @@ -58,7 +58,8 @@ public Long getVersion() { } /** - * + *

Current password of the Customer.

+ *

If the current password does not match, an InvalidCurrentPassword error is returned.

*/ public String getCurrentPassword() { @@ -66,7 +67,7 @@ public String getCurrentPassword() { } /** - * + *

New password to be set.

*/ public String getNewPassword() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java index a8b8b0c3819..a7067f0af8b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java @@ -31,21 +31,21 @@ public interface CustomerCreateEmailToken { /** - *

Unique identifier of the email token.

+ *

Unique identifier of the Customer.

*/ @NotNull @JsonProperty("id") public String getId(); /** - * + *

Expected version of the Customer.

*/ @JsonProperty("version") public Long getVersion(); /** - * + *

Validity period of the generated token in minutes.

*/ @NotNull @JsonProperty("ttlMinutes") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java index 8b7b6ca5317..6edf22c26ff 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java @@ -32,7 +32,7 @@ public class CustomerCreateEmailTokenBuilder implements BuilderUnique identifier of the email token.

+ *

Unique identifier of the Customer.

*/ public CustomerCreateEmailTokenBuilder id(final String id) { @@ -41,7 +41,7 @@ public CustomerCreateEmailTokenBuilder id(final String id) { } /** - * + *

Expected version of the Customer.

*/ public CustomerCreateEmailTokenBuilder version(@Nullable final Long version) { @@ -50,7 +50,7 @@ public CustomerCreateEmailTokenBuilder version(@Nullable final Long version) { } /** - * + *

Validity period of the generated token in minutes.

*/ public CustomerCreateEmailTokenBuilder ttlMinutes(final Long ttlMinutes) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java index 824dcab3e5e..a0a67d0c3cd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java @@ -38,7 +38,7 @@ public CustomerCreateEmailTokenImpl() { } /** - *

Unique identifier of the email token.

+ *

Unique identifier of the Customer.

*/ public String getId() { @@ -46,7 +46,7 @@ public String getId() { } /** - * + *

Expected version of the Customer.

*/ public Long getVersion() { @@ -54,7 +54,7 @@ public Long getVersion() { } /** - * + *

Validity period of the generated token in minutes.

*/ public Long getTtlMinutes() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java index 709f70cc9bd..eab9e21c74e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java @@ -30,14 +30,14 @@ public interface CustomerCreatePasswordResetToken { /** - * + *

Email address of the Customer treated as case-insensitive.

*/ @NotNull @JsonProperty("email") public String getEmail(); /** - * + *

Validity period of the generated token in minutes.

*/ @JsonProperty("ttlMinutes") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java index 04fa9d54489..e23716d68b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java @@ -29,7 +29,7 @@ public class CustomerCreatePasswordResetTokenBuilder implements BuilderEmail address of the Customer treated as case-insensitive.

*/ public CustomerCreatePasswordResetTokenBuilder email(final String email) { @@ -38,7 +38,7 @@ public CustomerCreatePasswordResetTokenBuilder email(final String email) { } /** - * + *

Validity period of the generated token in minutes.

*/ public CustomerCreatePasswordResetTokenBuilder ttlMinutes(@Nullable final Long ttlMinutes) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java index 973facfa9d7..bb001f738fb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java @@ -35,7 +35,7 @@ public CustomerCreatePasswordResetTokenImpl() { } /** - * + *

Email address of the Customer treated as case-insensitive.

*/ public String getEmail() { @@ -43,7 +43,7 @@ public String getEmail() { } /** - * + *

Validity period of the generated token in minutes.

*/ public Long getTtlMinutes() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java index 6f5c0d9c188..d936b6478b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java @@ -37,196 +37,208 @@ public interface CustomerDraft extends com.commercetools.api.models.CustomizableDraft { /** - *

String that uniquely identifies a customer. It can be used to create more human-readable (in contrast to ID) identifier for the customer. It should be unique across a project. Once it's set it cannot be changed.

+ *

User-defined unique identifier for the Customer. The key field is preferred over customerNumber as it is mutable and provides more flexibility.

+ */ + + @JsonProperty("key") + public String getKey(); + + /** + *

User-defined unique identifier for a Customer. Once set, it cannot be changed.

+ *

Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).

*/ @JsonProperty("customerNumber") public String getCustomerNumber(); /** - *

The customer's email address and the main identifier of uniqueness for a customer account. Email addresses are either unique to the store they're specified for, or for the entire project, and are case insensitive. For more information, see Email uniquenes.

+ *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ */ + + @JsonProperty("externalId") + public String getExternalId(); + + /** + *

Email address of the Customer that must be unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ @NotNull @JsonProperty("email") public String getEmail(); /** - *

Only optional with authenticationMode set to ExternalAuth.

+ *

Required when authenticationMode is set to Password. Provide the Customer's password in plain text. The API stores passwords in an encrypted format.

*/ @JsonProperty("password") public String getPassword(); /** - * + *

Given name (first name) of the Customer.

*/ @JsonProperty("firstName") public String getFirstName(); /** - * + *

Family name (last name) of the Customer.

*/ @JsonProperty("lastName") public String getLastName(); /** - * + *

Middle name of the Customer.

*/ @JsonProperty("middleName") public String getMiddleName(); /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ @JsonProperty("title") public String getTitle(); /** - *

Identifies a single cart that will be assigned to the new customer account.

+ *

Deprecated since an anonymous Cart can be identified by its id or external key.

*/ @Deprecated @JsonProperty("anonymousCartId") public String getAnonymousCartId(); /** - *

Identifies a single cart that will be assigned to the new customer account.

+ *

Identifies a Cart that will be assigned to the new Customer.

*/ @Valid @JsonProperty("anonymousCart") public CartResourceIdentifier getAnonymousCart(); /** - *

Identifies carts and orders belonging to an anonymous session that will be assigned to the new customer account.

+ *

Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.

*/ @JsonProperty("anonymousId") public String getAnonymousId(); /** - * + *

Date of birth of the Customer.

*/ @JsonProperty("dateOfBirth") public LocalDate getDateOfBirth(); /** - * + *

Company name of the Customer. When representing a company as a Customer, Business Units provide extended funtionality.

*/ @JsonProperty("companyName") public String getCompanyName(); /** - * + *

Unique VAT ID of the Customer.

*/ @JsonProperty("vatId") public String getVatId(); /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ @Valid @JsonProperty("addresses") public List getAddresses(); /** - *

The index of the address in the addresses array. The defaultShippingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

*/ @JsonProperty("defaultShippingAddress") public Integer getDefaultShippingAddress(); /** - *

The indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of that addresses.

+ *

Indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of these addresses.

*/ @JsonProperty("shippingAddresses") public List getShippingAddresses(); /** - *

The index of the address in the addresses array. The defaultBillingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

*/ @JsonProperty("defaultBillingAddress") public Integer getDefaultBillingAddress(); /** - *

The indices of the billing addresses in the addresses array. The billingAddressIds of the customer will be set to the IDs of that addresses.

+ *

Indices of the billing addresses in the addresses array. The billingAddressIds of the Customer will be set to the IDs of these addresses.

*/ @JsonProperty("billingAddresses") public List getBillingAddresses(); /** - * + *

Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

*/ @JsonProperty("isEmailVerified") public Boolean getIsEmailVerified(); /** - * - */ - - @JsonProperty("externalId") - public String getExternalId(); - - /** - * + *

Sets the CustomerGroup for the Customer.

*/ @Valid @JsonProperty("customerGroup") public CustomerGroupResourceIdentifier getCustomerGroup(); /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ @Valid @JsonProperty("custom") public CustomFieldsDraft getCustom(); /** - *

Must be one of the languages supported for this project

+ *

Preferred language of the Customer. Must be one of the languages supported by the Project.

*/ @JsonProperty("locale") public String getLocale(); /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

*/ @JsonProperty("salutation") public String getSalutation(); /** - *

User-defined unique identifier for the Customer.

- */ - - @JsonProperty("key") - public String getKey(); - - /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Sets the Stores for the Customer.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ @Valid @JsonProperty("stores") public List getStores(); /** - *

Defines whether a password field is a required field for the Customer.

+ *
    + *
  • Set to Password to make the password field required for the Customer.
  • + *
  • Set to ExternalAuth when the password is not required for the Customer.
  • + *
*/ @JsonProperty("authenticationMode") public AuthenticationMode getAuthenticationMode(); + public void setKey(final String key); + public void setCustomerNumber(final String customerNumber); + public void setExternalId(final String externalId); + public void setEmail(final String email); public void setPassword(final String password); @@ -273,8 +285,6 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable public void setIsEmailVerified(final Boolean isEmailVerified); - public void setExternalId(final String externalId); - public void setCustomerGroup(final CustomerGroupResourceIdentifier customerGroup); public void setCustom(final CustomFieldsDraft custom); @@ -283,8 +293,6 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable public void setSalutation(final String salutation); - public void setKey(final String key); - @JsonIgnore public void setStores(final StoreResourceIdentifier... stores); @@ -298,7 +306,9 @@ public static CustomerDraft of() { public static CustomerDraft of(final CustomerDraft template) { CustomerDraftImpl instance = new CustomerDraftImpl(); + instance.setKey(template.getKey()); instance.setCustomerNumber(template.getCustomerNumber()); + instance.setExternalId(template.getExternalId()); instance.setEmail(template.getEmail()); instance.setPassword(template.getPassword()); instance.setFirstName(template.getFirstName()); @@ -317,12 +327,10 @@ public static CustomerDraft of(final CustomerDraft template) { instance.setDefaultBillingAddress(template.getDefaultBillingAddress()); instance.setBillingAddresses(template.getBillingAddresses()); instance.setIsEmailVerified(template.getIsEmailVerified()); - instance.setExternalId(template.getExternalId()); instance.setCustomerGroup(template.getCustomerGroup()); instance.setCustom(template.getCustom()); instance.setLocale(template.getLocale()); instance.setSalutation(template.getSalutation()); - instance.setKey(template.getKey()); instance.setStores(template.getStores()); instance.setAuthenticationMode(template.getAuthenticationMode()); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java index be97b367b68..4b4dde56fd3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java @@ -24,9 +24,15 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerDraftBuilder implements Builder { + @Nullable + private String key; + @Nullable private String customerNumber; + @Nullable + private String externalId; + private String email; @Nullable @@ -81,9 +87,6 @@ public class CustomerDraftBuilder implements Builder { @Nullable private Boolean isEmailVerified; - @Nullable - private String externalId; - @Nullable private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; @@ -96,9 +99,6 @@ public class CustomerDraftBuilder implements Builder { @Nullable private String salutation; - @Nullable - private String key; - @Nullable private java.util.List stores; @@ -106,7 +106,17 @@ public class CustomerDraftBuilder implements Builder { private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; /** - *

String that uniquely identifies a customer. It can be used to create more human-readable (in contrast to ID) identifier for the customer. It should be unique across a project. Once it's set it cannot be changed.

+ *

User-defined unique identifier for the Customer. The key field is preferred over customerNumber as it is mutable and provides more flexibility.

+ */ + + public CustomerDraftBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + /** + *

User-defined unique identifier for a Customer. Once set, it cannot be changed.

+ *

Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).

*/ public CustomerDraftBuilder customerNumber(@Nullable final String customerNumber) { @@ -115,7 +125,16 @@ public CustomerDraftBuilder customerNumber(@Nullable final String customerNumber } /** - *

The customer's email address and the main identifier of uniqueness for a customer account. Email addresses are either unique to the store they're specified for, or for the entire project, and are case insensitive. For more information, see Email uniquenes.

+ *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ */ + + public CustomerDraftBuilder externalId(@Nullable final String externalId) { + this.externalId = externalId; + return this; + } + + /** + *

Email address of the Customer that must be unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ public CustomerDraftBuilder email(final String email) { @@ -124,7 +143,7 @@ public CustomerDraftBuilder email(final String email) { } /** - *

Only optional with authenticationMode set to ExternalAuth.

+ *

Required when authenticationMode is set to Password. Provide the Customer's password in plain text. The API stores passwords in an encrypted format.

*/ public CustomerDraftBuilder password(@Nullable final String password) { @@ -133,7 +152,7 @@ public CustomerDraftBuilder password(@Nullable final String password) { } /** - * + *

Given name (first name) of the Customer.

*/ public CustomerDraftBuilder firstName(@Nullable final String firstName) { @@ -142,7 +161,7 @@ public CustomerDraftBuilder firstName(@Nullable final String firstName) { } /** - * + *

Family name (last name) of the Customer.

*/ public CustomerDraftBuilder lastName(@Nullable final String lastName) { @@ -151,7 +170,7 @@ public CustomerDraftBuilder lastName(@Nullable final String lastName) { } /** - * + *

Middle name of the Customer.

*/ public CustomerDraftBuilder middleName(@Nullable final String middleName) { @@ -160,7 +179,7 @@ public CustomerDraftBuilder middleName(@Nullable final String middleName) { } /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ public CustomerDraftBuilder title(@Nullable final String title) { @@ -169,7 +188,7 @@ public CustomerDraftBuilder title(@Nullable final String title) { } /** - *

Identifies a single cart that will be assigned to the new customer account.

+ *

Deprecated since an anonymous Cart can be identified by its id or external key.

*/ @Deprecated public CustomerDraftBuilder anonymousCartId(@Nullable final String anonymousCartId) { @@ -178,7 +197,7 @@ public CustomerDraftBuilder anonymousCartId(@Nullable final String anonymousCart } /** - *

Identifies a single cart that will be assigned to the new customer account.

+ *

Identifies a Cart that will be assigned to the new Customer.

*/ public CustomerDraftBuilder anonymousCart( @@ -189,7 +208,7 @@ public CustomerDraftBuilder anonymousCart( } /** - *

Identifies a single cart that will be assigned to the new customer account.

+ *

Identifies a Cart that will be assigned to the new Customer.

*/ public CustomerDraftBuilder anonymousCart( @@ -199,7 +218,7 @@ public CustomerDraftBuilder anonymousCart( } /** - *

Identifies carts and orders belonging to an anonymous session that will be assigned to the new customer account.

+ *

Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.

*/ public CustomerDraftBuilder anonymousId(@Nullable final String anonymousId) { @@ -208,7 +227,7 @@ public CustomerDraftBuilder anonymousId(@Nullable final String anonymousId) { } /** - * + *

Date of birth of the Customer.

*/ public CustomerDraftBuilder dateOfBirth(@Nullable final java.time.LocalDate dateOfBirth) { @@ -217,7 +236,7 @@ public CustomerDraftBuilder dateOfBirth(@Nullable final java.time.LocalDate date } /** - * + *

Company name of the Customer. When representing a company as a Customer, Business Units provide extended funtionality.

*/ public CustomerDraftBuilder companyName(@Nullable final String companyName) { @@ -226,7 +245,7 @@ public CustomerDraftBuilder companyName(@Nullable final String companyName) { } /** - * + *

Unique VAT ID of the Customer.

*/ public CustomerDraftBuilder vatId(@Nullable final String vatId) { @@ -235,7 +254,7 @@ public CustomerDraftBuilder vatId(@Nullable final String vatId) { } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public CustomerDraftBuilder addresses( @@ -245,7 +264,7 @@ public CustomerDraftBuilder addresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public CustomerDraftBuilder addresses( @@ -255,7 +274,7 @@ public CustomerDraftBuilder addresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public CustomerDraftBuilder plusAddresses( @@ -268,7 +287,7 @@ public CustomerDraftBuilder plusAddresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public CustomerDraftBuilder plusAddresses( @@ -281,7 +300,7 @@ public CustomerDraftBuilder plusAddresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public CustomerDraftBuilder withAddresses( @@ -292,7 +311,7 @@ public CustomerDraftBuilder withAddresses( } /** - *

The index of the address in the addresses array. The defaultShippingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

*/ public CustomerDraftBuilder defaultShippingAddress(@Nullable final Integer defaultShippingAddress) { @@ -301,7 +320,7 @@ public CustomerDraftBuilder defaultShippingAddress(@Nullable final Integer defau } /** - *

The indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of that addresses.

+ *

Indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public CustomerDraftBuilder shippingAddresses(@Nullable final Integer... shippingAddresses) { @@ -310,7 +329,7 @@ public CustomerDraftBuilder shippingAddresses(@Nullable final Integer... shippin } /** - *

The indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of that addresses.

+ *

Indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public CustomerDraftBuilder shippingAddresses(@Nullable final java.util.List shippingAddresses) { @@ -319,7 +338,7 @@ public CustomerDraftBuilder shippingAddresses(@Nullable final java.util.ListThe indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of that addresses.

+ *

Indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public CustomerDraftBuilder plusShippingAddresses(@Nullable final Integer... shippingAddresses) { @@ -331,7 +350,7 @@ public CustomerDraftBuilder plusShippingAddresses(@Nullable final Integer... shi } /** - *

The index of the address in the addresses array. The defaultBillingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

*/ public CustomerDraftBuilder defaultBillingAddress(@Nullable final Integer defaultBillingAddress) { @@ -340,7 +359,7 @@ public CustomerDraftBuilder defaultBillingAddress(@Nullable final Integer defaul } /** - *

The indices of the billing addresses in the addresses array. The billingAddressIds of the customer will be set to the IDs of that addresses.

+ *

Indices of the billing addresses in the addresses array. The billingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public CustomerDraftBuilder billingAddresses(@Nullable final Integer... billingAddresses) { @@ -349,7 +368,7 @@ public CustomerDraftBuilder billingAddresses(@Nullable final Integer... billingA } /** - *

The indices of the billing addresses in the addresses array. The billingAddressIds of the customer will be set to the IDs of that addresses.

+ *

Indices of the billing addresses in the addresses array. The billingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public CustomerDraftBuilder billingAddresses(@Nullable final java.util.List billingAddresses) { @@ -358,7 +377,7 @@ public CustomerDraftBuilder billingAddresses(@Nullable final java.util.ListThe indices of the billing addresses in the addresses array. The billingAddressIds of the customer will be set to the IDs of that addresses.

+ *

Indices of the billing addresses in the addresses array. The billingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public CustomerDraftBuilder plusBillingAddresses(@Nullable final Integer... billingAddresses) { @@ -370,7 +389,7 @@ public CustomerDraftBuilder plusBillingAddresses(@Nullable final Integer... bill } /** - * + *

Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

*/ public CustomerDraftBuilder isEmailVerified(@Nullable final Boolean isEmailVerified) { @@ -379,16 +398,7 @@ public CustomerDraftBuilder isEmailVerified(@Nullable final Boolean isEmailVerif } /** - * - */ - - public CustomerDraftBuilder externalId(@Nullable final String externalId) { - this.externalId = externalId; - return this; - } - - /** - * + *

Sets the CustomerGroup for the Customer.

*/ public CustomerDraftBuilder customerGroup( @@ -400,7 +410,7 @@ public CustomerDraftBuilder customerGroup( } /** - * + *

Sets the CustomerGroup for the Customer.

*/ public CustomerDraftBuilder customerGroup( @@ -410,7 +420,7 @@ public CustomerDraftBuilder customerGroup( } /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ public CustomerDraftBuilder custom( @@ -420,7 +430,7 @@ public CustomerDraftBuilder custom( } /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ public CustomerDraftBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFieldsDraft custom) { @@ -429,7 +439,7 @@ public CustomerDraftBuilder custom(@Nullable final com.commercetools.api.models. } /** - *

Must be one of the languages supported for this project

+ *

Preferred language of the Customer. Must be one of the languages supported by the Project.

*/ public CustomerDraftBuilder locale(@Nullable final String locale) { @@ -438,7 +448,7 @@ public CustomerDraftBuilder locale(@Nullable final String locale) { } /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

*/ public CustomerDraftBuilder salutation(@Nullable final String salutation) { @@ -447,16 +457,11 @@ public CustomerDraftBuilder salutation(@Nullable final String salutation) { } /** - *

User-defined unique identifier for the Customer.

- */ - - public CustomerDraftBuilder key(@Nullable final String key) { - this.key = key; - return this; - } - - /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Sets the Stores for the Customer.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerDraftBuilder stores( @@ -466,7 +471,11 @@ public CustomerDraftBuilder stores( } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Sets the Stores for the Customer.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerDraftBuilder stores( @@ -476,7 +485,11 @@ public CustomerDraftBuilder stores( } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Sets the Stores for the Customer.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerDraftBuilder plusStores( @@ -489,7 +502,11 @@ public CustomerDraftBuilder plusStores( } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Sets the Stores for the Customer.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerDraftBuilder plusStores( @@ -502,7 +519,11 @@ public CustomerDraftBuilder plusStores( } /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Sets the Stores for the Customer.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public CustomerDraftBuilder withStores( @@ -513,7 +534,10 @@ public CustomerDraftBuilder withStores( } /** - *

Defines whether a password field is a required field for the Customer.

+ *
    + *
  • Set to Password to make the password field required for the Customer.
  • + *
  • Set to ExternalAuth when the password is not required for the Customer.
  • + *
*/ public CustomerDraftBuilder authenticationMode( @@ -522,11 +546,21 @@ public CustomerDraftBuilder authenticationMode( return this; } + @Nullable + public String getKey() { + return this.key; + } + @Nullable public String getCustomerNumber() { return this.customerNumber; } + @Nullable + public String getExternalId() { + return this.externalId; + } + public String getEmail() { return this.email; } @@ -617,11 +651,6 @@ public Boolean getIsEmailVerified() { return this.isEmailVerified; } - @Nullable - public String getExternalId() { - return this.externalId; - } - @Nullable public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { return this.customerGroup; @@ -642,11 +671,6 @@ public String getSalutation() { return this.salutation; } - @Nullable - public String getKey() { - return this.key; - } - @Nullable public java.util.List getStores() { return this.stores; @@ -659,20 +683,20 @@ public com.commercetools.api.models.customer.AuthenticationMode getAuthenticatio public CustomerDraft build() { Objects.requireNonNull(email, CustomerDraft.class + ": email is missing"); - return new CustomerDraftImpl(customerNumber, email, password, firstName, lastName, middleName, title, - anonymousCartId, anonymousCart, anonymousId, dateOfBirth, companyName, vatId, addresses, + return new CustomerDraftImpl(key, customerNumber, externalId, email, password, firstName, lastName, middleName, + title, anonymousCartId, anonymousCart, anonymousId, dateOfBirth, companyName, vatId, addresses, defaultShippingAddress, shippingAddresses, defaultBillingAddress, billingAddresses, isEmailVerified, - externalId, customerGroup, custom, locale, salutation, key, stores, authenticationMode); + customerGroup, custom, locale, salutation, stores, authenticationMode); } /** * builds CustomerDraft without checking for non null required values */ public CustomerDraft buildUnchecked() { - return new CustomerDraftImpl(customerNumber, email, password, firstName, lastName, middleName, title, - anonymousCartId, anonymousCart, anonymousId, dateOfBirth, companyName, vatId, addresses, + return new CustomerDraftImpl(key, customerNumber, externalId, email, password, firstName, lastName, middleName, + title, anonymousCartId, anonymousCart, anonymousId, dateOfBirth, companyName, vatId, addresses, defaultShippingAddress, shippingAddresses, defaultBillingAddress, billingAddresses, isEmailVerified, - externalId, customerGroup, custom, locale, salutation, key, stores, authenticationMode); + customerGroup, custom, locale, salutation, stores, authenticationMode); } public static CustomerDraftBuilder of() { @@ -681,7 +705,9 @@ public static CustomerDraftBuilder of() { public static CustomerDraftBuilder of(final CustomerDraft template) { CustomerDraftBuilder builder = new CustomerDraftBuilder(); + builder.key = template.getKey(); builder.customerNumber = template.getCustomerNumber(); + builder.externalId = template.getExternalId(); builder.email = template.getEmail(); builder.password = template.getPassword(); builder.firstName = template.getFirstName(); @@ -700,12 +726,10 @@ public static CustomerDraftBuilder of(final CustomerDraft template) { builder.defaultBillingAddress = template.getDefaultBillingAddress(); builder.billingAddresses = template.getBillingAddresses(); builder.isEmailVerified = template.getIsEmailVerified(); - builder.externalId = template.getExternalId(); builder.customerGroup = template.getCustomerGroup(); builder.custom = template.getCustom(); builder.locale = template.getLocale(); builder.salutation = template.getSalutation(); - builder.key = template.getKey(); builder.stores = template.getStores(); builder.authenticationMode = template.getAuthenticationMode(); return builder; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java index d98c0dd7994..ec325073b71 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java @@ -20,8 +20,12 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerDraftImpl implements CustomerDraft, ModelBase { + private String key; + private String customerNumber; + private String externalId; + private String email; private String password; @@ -59,8 +63,6 @@ public class CustomerDraftImpl implements CustomerDraft, ModelBase { private Boolean isEmailVerified; - private String externalId; - private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; private com.commercetools.api.models.type.CustomFieldsDraft custom; @@ -69,18 +71,17 @@ public class CustomerDraftImpl implements CustomerDraft, ModelBase { private String salutation; - private String key; - private java.util.List stores; private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; @JsonCreator - CustomerDraftImpl(@JsonProperty("customerNumber") final String customerNumber, - @JsonProperty("email") final String email, @JsonProperty("password") final String password, - @JsonProperty("firstName") final String firstName, @JsonProperty("lastName") final String lastName, - @JsonProperty("middleName") final String middleName, @JsonProperty("title") final String title, - @JsonProperty("anonymousCartId") final String anonymousCartId, + CustomerDraftImpl(@JsonProperty("key") final String key, + @JsonProperty("customerNumber") final String customerNumber, + @JsonProperty("externalId") final String externalId, @JsonProperty("email") final String email, + @JsonProperty("password") final String password, @JsonProperty("firstName") final String firstName, + @JsonProperty("lastName") final String lastName, @JsonProperty("middleName") final String middleName, + @JsonProperty("title") final String title, @JsonProperty("anonymousCartId") final String anonymousCartId, @JsonProperty("anonymousCart") final com.commercetools.api.models.cart.CartResourceIdentifier anonymousCart, @JsonProperty("anonymousId") final String anonymousId, @JsonProperty("dateOfBirth") final java.time.LocalDate dateOfBirth, @@ -91,14 +92,14 @@ public class CustomerDraftImpl implements CustomerDraft, ModelBase { @JsonProperty("defaultBillingAddress") final Integer defaultBillingAddress, @JsonProperty("billingAddresses") final java.util.List billingAddresses, @JsonProperty("isEmailVerified") final Boolean isEmailVerified, - @JsonProperty("externalId") final String externalId, @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom, @JsonProperty("locale") final String locale, @JsonProperty("salutation") final String salutation, - @JsonProperty("key") final String key, @JsonProperty("stores") final java.util.List stores, @JsonProperty("authenticationMode") final com.commercetools.api.models.customer.AuthenticationMode authenticationMode) { + this.key = key; this.customerNumber = customerNumber; + this.externalId = externalId; this.email = email; this.password = password; this.firstName = firstName; @@ -117,12 +118,10 @@ public class CustomerDraftImpl implements CustomerDraft, ModelBase { this.defaultBillingAddress = defaultBillingAddress; this.billingAddresses = billingAddresses; this.isEmailVerified = isEmailVerified; - this.externalId = externalId; this.customerGroup = customerGroup; this.custom = custom; this.locale = locale; this.salutation = salutation; - this.key = key; this.stores = stores; this.authenticationMode = authenticationMode; } @@ -131,7 +130,16 @@ public CustomerDraftImpl() { } /** - *

String that uniquely identifies a customer. It can be used to create more human-readable (in contrast to ID) identifier for the customer. It should be unique across a project. Once it's set it cannot be changed.

+ *

User-defined unique identifier for the Customer. The key field is preferred over customerNumber as it is mutable and provides more flexibility.

+ */ + + public String getKey() { + return this.key; + } + + /** + *

User-defined unique identifier for a Customer. Once set, it cannot be changed.

+ *

Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).

*/ public String getCustomerNumber() { @@ -139,7 +147,15 @@ public String getCustomerNumber() { } /** - *

The customer's email address and the main identifier of uniqueness for a customer account. Email addresses are either unique to the store they're specified for, or for the entire project, and are case insensitive. For more information, see Email uniquenes.

+ *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ */ + + public String getExternalId() { + return this.externalId; + } + + /** + *

Email address of the Customer that must be unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ public String getEmail() { @@ -147,7 +163,7 @@ public String getEmail() { } /** - *

Only optional with authenticationMode set to ExternalAuth.

+ *

Required when authenticationMode is set to Password. Provide the Customer's password in plain text. The API stores passwords in an encrypted format.

*/ public String getPassword() { @@ -155,7 +171,7 @@ public String getPassword() { } /** - * + *

Given name (first name) of the Customer.

*/ public String getFirstName() { @@ -163,7 +179,7 @@ public String getFirstName() { } /** - * + *

Family name (last name) of the Customer.

*/ public String getLastName() { @@ -171,7 +187,7 @@ public String getLastName() { } /** - * + *

Middle name of the Customer.

*/ public String getMiddleName() { @@ -179,7 +195,7 @@ public String getMiddleName() { } /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ public String getTitle() { @@ -187,7 +203,7 @@ public String getTitle() { } /** - *

Identifies a single cart that will be assigned to the new customer account.

+ *

Deprecated since an anonymous Cart can be identified by its id or external key.

*/ @Deprecated public String getAnonymousCartId() { @@ -195,7 +211,7 @@ public String getAnonymousCartId() { } /** - *

Identifies a single cart that will be assigned to the new customer account.

+ *

Identifies a Cart that will be assigned to the new Customer.

*/ public com.commercetools.api.models.cart.CartResourceIdentifier getAnonymousCart() { @@ -203,7 +219,7 @@ public com.commercetools.api.models.cart.CartResourceIdentifier getAnonymousCart } /** - *

Identifies carts and orders belonging to an anonymous session that will be assigned to the new customer account.

+ *

Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.

*/ public String getAnonymousId() { @@ -211,7 +227,7 @@ public String getAnonymousId() { } /** - * + *

Date of birth of the Customer.

*/ public java.time.LocalDate getDateOfBirth() { @@ -219,7 +235,7 @@ public java.time.LocalDate getDateOfBirth() { } /** - * + *

Company name of the Customer. When representing a company as a Customer, Business Units provide extended funtionality.

*/ public String getCompanyName() { @@ -227,7 +243,7 @@ public String getCompanyName() { } /** - * + *

Unique VAT ID of the Customer.

*/ public String getVatId() { @@ -235,7 +251,7 @@ public String getVatId() { } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public java.util.List getAddresses() { @@ -243,7 +259,7 @@ public java.util.List getAddres } /** - *

The index of the address in the addresses array. The defaultShippingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

*/ public Integer getDefaultShippingAddress() { @@ -251,7 +267,7 @@ public Integer getDefaultShippingAddress() { } /** - *

The indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of that addresses.

+ *

Indices of the shipping addresses in the addresses array. The shippingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public java.util.List getShippingAddresses() { @@ -259,7 +275,7 @@ public java.util.List getShippingAddresses() { } /** - *

The index of the address in the addresses array. The defaultBillingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

*/ public Integer getDefaultBillingAddress() { @@ -267,7 +283,7 @@ public Integer getDefaultBillingAddress() { } /** - *

The indices of the billing addresses in the addresses array. The billingAddressIds of the customer will be set to the IDs of that addresses.

+ *

Indices of the billing addresses in the addresses array. The billingAddressIds of the Customer will be set to the IDs of these addresses.

*/ public java.util.List getBillingAddresses() { @@ -275,7 +291,7 @@ public java.util.List getBillingAddresses() { } /** - * + *

Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

*/ public Boolean getIsEmailVerified() { @@ -283,15 +299,7 @@ public Boolean getIsEmailVerified() { } /** - * - */ - - public String getExternalId() { - return this.externalId; - } - - /** - * + *

Sets the CustomerGroup for the Customer.

*/ public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { @@ -299,7 +307,7 @@ public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifi } /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { @@ -307,7 +315,7 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { } /** - *

Must be one of the languages supported for this project

+ *

Preferred language of the Customer. Must be one of the languages supported by the Project.

*/ public String getLocale() { @@ -315,7 +323,7 @@ public String getLocale() { } /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

*/ public String getSalutation() { @@ -323,15 +331,11 @@ public String getSalutation() { } /** - *

User-defined unique identifier for the Customer.

- */ - - public String getKey() { - return this.key; - } - - /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Sets the Stores for the Customer.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public java.util.List getStores() { @@ -339,17 +343,28 @@ public java.util.ListDefines whether a password field is a required field for the Customer.

+ *
    + *
  • Set to Password to make the password field required for the Customer.
  • + *
  • Set to ExternalAuth when the password is not required for the Customer.
  • + *
*/ public com.commercetools.api.models.customer.AuthenticationMode getAuthenticationMode() { return this.authenticationMode; } + public void setKey(final String key) { + this.key = key; + } + public void setCustomerNumber(final String customerNumber) { this.customerNumber = customerNumber; } + public void setExternalId(final String externalId) { + this.externalId = externalId; + } + public void setEmail(final String email) { this.email = email; } @@ -435,10 +450,6 @@ public void setIsEmailVerified(final Boolean isEmailVerified) { this.isEmailVerified = isEmailVerified; } - public void setExternalId(final String externalId) { - this.externalId = externalId; - } - public void setCustomerGroup( final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { this.customerGroup = customerGroup; @@ -456,10 +467,6 @@ public void setSalutation(final String salutation) { this.salutation = salutation; } - public void setKey(final String key) { - this.key = key; - } - public void setStores(final com.commercetools.api.models.store.StoreResourceIdentifier... stores) { this.stores = new ArrayList<>(Arrays.asList(stores)); } @@ -483,7 +490,9 @@ public boolean equals(Object o) { CustomerDraftImpl that = (CustomerDraftImpl) o; - return new EqualsBuilder().append(customerNumber, that.customerNumber) + return new EqualsBuilder().append(key, that.key) + .append(customerNumber, that.customerNumber) + .append(externalId, that.externalId) .append(email, that.email) .append(password, that.password) .append(firstName, that.firstName) @@ -502,12 +511,10 @@ public boolean equals(Object o) { .append(defaultBillingAddress, that.defaultBillingAddress) .append(billingAddresses, that.billingAddresses) .append(isEmailVerified, that.isEmailVerified) - .append(externalId, that.externalId) .append(customerGroup, that.customerGroup) .append(custom, that.custom) .append(locale, that.locale) .append(salutation, that.salutation) - .append(key, that.key) .append(stores, that.stores) .append(authenticationMode, that.authenticationMode) .isEquals(); @@ -515,7 +522,9 @@ public boolean equals(Object o) { @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(customerNumber) + return new HashCodeBuilder(17, 37).append(key) + .append(customerNumber) + .append(externalId) .append(email) .append(password) .append(firstName) @@ -534,12 +543,10 @@ public int hashCode() { .append(defaultBillingAddress) .append(billingAddresses) .append(isEmailVerified) - .append(externalId) .append(customerGroup) .append(custom) .append(locale) .append(salutation) - .append(key) .append(stores) .append(authenticationMode) .toHashCode(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerify.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerify.java index 603e01c7089..cdacdd1a3de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerify.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerify.java @@ -30,14 +30,14 @@ public interface CustomerEmailVerify { /** - * + *

Expected version of the Customer.

*/ @JsonProperty("version") public Long getVersion(); /** - * + *

Value of the token to verify Customer email.

*/ @NotNull @JsonProperty("tokenValue") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyBuilder.java index 7b09447c3da..2fa4ea4ec55 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyBuilder.java @@ -29,7 +29,7 @@ public class CustomerEmailVerifyBuilder implements Builder private String tokenValue; /** - * + *

Expected version of the Customer.

*/ public CustomerEmailVerifyBuilder version(@Nullable final Long version) { @@ -38,7 +38,7 @@ public CustomerEmailVerifyBuilder version(@Nullable final Long version) { } /** - * + *

Value of the token to verify Customer email.

*/ public CustomerEmailVerifyBuilder tokenValue(final String tokenValue) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyImpl.java index d22dbefd3b4..6d413fccf4c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerEmailVerifyImpl.java @@ -35,7 +35,7 @@ public CustomerEmailVerifyImpl() { } /** - * + *

Expected version of the Customer.

*/ public Long getVersion() { @@ -43,7 +43,7 @@ public Long getVersion() { } /** - * + *

Value of the token to verify Customer email.

*/ public String getTokenValue() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java index 119b0184a47..10be3819e2b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * Customer + *

If stores is not empty, the Customer is specific to those Stores.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerImpl implements Customer, ModelBase { @@ -28,12 +28,16 @@ public class CustomerImpl implements Customer, ModelBase { private java.time.ZonedDateTime lastModifiedAt; + private String key; + + private String customerNumber; + + private String externalId; + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; private com.commercetools.api.models.common.CreatedBy createdBy; - private String customerNumber; - private String email; private String password; @@ -64,8 +68,6 @@ public class CustomerImpl implements Customer, ModelBase { private Boolean isEmailVerified; - private String externalId; - private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup; private com.commercetools.api.models.type.CustomFields custom; @@ -74,8 +76,6 @@ public class CustomerImpl implements Customer, ModelBase { private String salutation; - private String key; - private java.util.List stores; private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; @@ -84,12 +84,13 @@ public class CustomerImpl implements Customer, ModelBase { CustomerImpl(@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("key") final String key, @JsonProperty("customerNumber") final String customerNumber, + @JsonProperty("externalId") final String externalId, @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, - @JsonProperty("customerNumber") final String customerNumber, @JsonProperty("email") final String email, - @JsonProperty("password") final String password, @JsonProperty("firstName") final String firstName, - @JsonProperty("lastName") final String lastName, @JsonProperty("middleName") final String middleName, - @JsonProperty("title") final String title, + @JsonProperty("email") final String email, @JsonProperty("password") final String password, + @JsonProperty("firstName") final String firstName, @JsonProperty("lastName") final String lastName, + @JsonProperty("middleName") final String middleName, @JsonProperty("title") final String title, @JsonProperty("dateOfBirth") final java.time.LocalDate dateOfBirth, @JsonProperty("companyName") final String companyName, @JsonProperty("vatId") final String vatId, @JsonProperty("addresses") final java.util.List addresses, @@ -98,20 +99,20 @@ public class CustomerImpl implements Customer, ModelBase { @JsonProperty("defaultBillingAddressId") final String defaultBillingAddressId, @JsonProperty("billingAddressIds") final java.util.List billingAddressIds, @JsonProperty("isEmailVerified") final Boolean isEmailVerified, - @JsonProperty("externalId") final String externalId, @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom, @JsonProperty("locale") final String locale, @JsonProperty("salutation") final String salutation, - @JsonProperty("key") final String key, @JsonProperty("stores") final java.util.List stores, @JsonProperty("authenticationMode") final com.commercetools.api.models.customer.AuthenticationMode authenticationMode) { this.id = id; this.version = version; this.createdAt = createdAt; this.lastModifiedAt = lastModifiedAt; + this.key = key; + this.customerNumber = customerNumber; + this.externalId = externalId; this.lastModifiedBy = lastModifiedBy; this.createdBy = createdBy; - this.customerNumber = customerNumber; this.email = email; this.password = password; this.firstName = firstName; @@ -127,12 +128,10 @@ public class CustomerImpl implements Customer, ModelBase { this.defaultBillingAddressId = defaultBillingAddressId; this.billingAddressIds = billingAddressIds; this.isEmailVerified = isEmailVerified; - this.externalId = externalId; this.customerGroup = customerGroup; this.custom = custom; this.locale = locale; this.salutation = salutation; - this.key = key; this.stores = stores; this.authenticationMode = authenticationMode; } @@ -149,7 +148,7 @@ public String getId() { } /** - *

The current version of the customer.

+ *

Current version of the Customer.

*/ public Long getVersion() { @@ -157,7 +156,7 @@ public Long getVersion() { } /** - * + *

Date and time (UTC) the Customer was initially created.

*/ public java.time.ZonedDateTime getCreatedAt() { @@ -165,7 +164,7 @@ public java.time.ZonedDateTime getCreatedAt() { } /** - * + *

Date and time (UTC) the Customer was last updated.

*/ public java.time.ZonedDateTime getLastModifiedAt() { @@ -173,31 +172,48 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - *

Present on resources created after 1 February 2019 except for events not tracked.

+ *

User-defined unique identifier of the Customer.

*/ - public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { - return this.lastModifiedBy; + public String getKey() { + return this.key; + } + + /** + *

User-defined unique identifier of the Customer.

+ *

Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).

+ */ + + public String getCustomerNumber() { + return this.customerNumber; + } + + /** + *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ */ + + public String getExternalId() { + return this.externalId; } /** *

Present on resources created after 1 February 2019 except for events not tracked.

*/ - public com.commercetools.api.models.common.CreatedBy getCreatedBy() { - return this.createdBy; + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; } /** - *

The customer number can be used to create a more human-readable (in contrast to ID) identifier for the customer. It should be unique across a project. Once the field was set it cannot be changed anymore.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ - public String getCustomerNumber() { - return this.customerNumber; + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; } /** - *

The customer's email address and the main identifier of uniqueness for a customer account. Email addresses are either unique to the store they're specified for, or for the entire project. For more information, see Email uniquenes.

+ *

Email address of the Customer that is unique for an entire Project or to a Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ public String getEmail() { @@ -205,7 +221,7 @@ public String getEmail() { } /** - *

Only present with the default authenticationMode, Password.

+ *

Present only when authenticationMode is set to Password.

*/ public String getPassword() { @@ -213,7 +229,7 @@ public String getPassword() { } /** - * + *

Given name (first name) of the Customer.

*/ public String getFirstName() { @@ -221,7 +237,7 @@ public String getFirstName() { } /** - * + *

Family name (last name) of the Customer.

*/ public String getLastName() { @@ -229,7 +245,7 @@ public String getLastName() { } /** - * + *

Middle name of the Customer.

*/ public String getMiddleName() { @@ -237,7 +253,7 @@ public String getMiddleName() { } /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ public String getTitle() { @@ -245,7 +261,7 @@ public String getTitle() { } /** - * + *

Date of birth of the Customer.

*/ public java.time.LocalDate getDateOfBirth() { @@ -253,7 +269,7 @@ public java.time.LocalDate getDateOfBirth() { } /** - * + *

Company name of the Customer.

*/ public String getCompanyName() { @@ -261,7 +277,7 @@ public String getCompanyName() { } /** - * + *

Unique VAT ID of the Customer.

*/ public String getVatId() { @@ -269,7 +285,7 @@ public String getVatId() { } /** - *

The addresses have unique IDs in the addresses list

+ *

Addresses used by the Customer.

*/ public java.util.List getAddresses() { @@ -277,7 +293,7 @@ public java.util.List getAddresses( } /** - *

The address ID in the addresses list

+ *

ID of the address in addresses used as the default shipping address.

*/ public String getDefaultShippingAddressId() { @@ -285,7 +301,7 @@ public String getDefaultShippingAddressId() { } /** - *

The IDs from the addresses list which are used as shipping addresses

+ *

IDs of addresses in addresses used as shipping addresses.

*/ public java.util.List getShippingAddressIds() { @@ -293,7 +309,7 @@ public java.util.List getShippingAddressIds() { } /** - *

The address ID in the addresses list

+ *

ID of the address in addresses used as the default billing address.

*/ public String getDefaultBillingAddressId() { @@ -301,7 +317,7 @@ public String getDefaultBillingAddressId() { } /** - *

The IDs from the addresses list which are used as billing addresses

+ *

IDs of addresses in addresses used as billing addresses.

*/ public java.util.List getBillingAddressIds() { @@ -309,7 +325,7 @@ public java.util.List getBillingAddressIds() { } /** - * + *

Indicates whether the email address of the Customer is verified.

*/ public Boolean getIsEmailVerified() { @@ -317,15 +333,7 @@ public Boolean getIsEmailVerified() { } /** - * - */ - - public String getExternalId() { - return this.externalId; - } - - /** - * + *

CustomerGroup to which the Customer belongs.

*/ public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroup() { @@ -333,7 +341,7 @@ public com.commercetools.api.models.customer_group.CustomerGroupReference getCus } /** - * + *

Custom Fields for the Customer.

*/ public com.commercetools.api.models.type.CustomFields getCustom() { @@ -341,7 +349,7 @@ public com.commercetools.api.models.type.CustomFields getCustom() { } /** - * + *

Preferred language of the Customer.

*/ public String getLocale() { @@ -349,7 +357,7 @@ public String getLocale() { } /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

*/ public String getSalutation() { @@ -357,15 +365,11 @@ public String getSalutation() { } /** - *

User-defined unique identifier of the Customer.

- */ - - public String getKey() { - return this.key; - } - - /** - *

References to the stores the customer account is associated with. If no stores are specified, the customer is a global customer, and can log in using the Password Flow for global Customers. If one or more stores are specified, the customer can only log in using the Password Flow for Customers in a Store for those specific stores.

+ *

Stores to which the Customer is assigned to.

+ *
    + *
  • If no Stores are specified, the Customer is a global customer, and can log in using the Password Flow for global Customers.
  • + *
  • If any Stores are specified, the Customer can only log in using the Password Flow for Customers in a Store for those specific Stores.
  • + *
*/ public java.util.List getStores() { @@ -373,7 +377,7 @@ public java.util.List getS } /** - *

Defines whether a Customer has a password.

+ *

Indicates whether the password is required for the Customer.

*/ public com.commercetools.api.models.customer.AuthenticationMode getAuthenticationMode() { @@ -396,6 +400,18 @@ public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { this.lastModifiedAt = lastModifiedAt; } + public void setKey(final String key) { + this.key = key; + } + + public void setCustomerNumber(final String customerNumber) { + this.customerNumber = customerNumber; + } + + public void setExternalId(final String externalId) { + this.externalId = externalId; + } + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } @@ -404,10 +420,6 @@ public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy cre this.createdBy = createdBy; } - public void setCustomerNumber(final String customerNumber) { - this.customerNumber = customerNumber; - } - public void setEmail(final String email) { this.email = email; } @@ -480,10 +492,6 @@ public void setIsEmailVerified(final Boolean isEmailVerified) { this.isEmailVerified = isEmailVerified; } - public void setExternalId(final String externalId) { - this.externalId = externalId; - } - public void setCustomerGroup( final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup) { this.customerGroup = customerGroup; @@ -501,10 +509,6 @@ public void setSalutation(final String salutation) { this.salutation = salutation; } - public void setKey(final String key) { - this.key = key; - } - public void setStores(final com.commercetools.api.models.store.StoreKeyReference... stores) { this.stores = new ArrayList<>(Arrays.asList(stores)); } @@ -532,9 +536,11 @@ public boolean equals(Object o) { .append(version, that.version) .append(createdAt, that.createdAt) .append(lastModifiedAt, that.lastModifiedAt) + .append(key, that.key) + .append(customerNumber, that.customerNumber) + .append(externalId, that.externalId) .append(lastModifiedBy, that.lastModifiedBy) .append(createdBy, that.createdBy) - .append(customerNumber, that.customerNumber) .append(email, that.email) .append(password, that.password) .append(firstName, that.firstName) @@ -550,12 +556,10 @@ public boolean equals(Object o) { .append(defaultBillingAddressId, that.defaultBillingAddressId) .append(billingAddressIds, that.billingAddressIds) .append(isEmailVerified, that.isEmailVerified) - .append(externalId, that.externalId) .append(customerGroup, that.customerGroup) .append(custom, that.custom) .append(locale, that.locale) .append(salutation, that.salutation) - .append(key, that.key) .append(stores, that.stores) .append(authenticationMode, that.authenticationMode) .isEquals(); @@ -567,9 +571,11 @@ public int hashCode() { .append(version) .append(createdAt) .append(lastModifiedAt) + .append(key) + .append(customerNumber) + .append(externalId) .append(lastModifiedBy) .append(createdBy) - .append(customerNumber) .append(email) .append(password) .append(firstName) @@ -585,12 +591,10 @@ public int hashCode() { .append(defaultBillingAddressId) .append(billingAddressIds) .append(isEmailVerified) - .append(externalId) .append(customerGroup) .append(custom) .append(locale) .append(salutation) - .append(key) .append(stores) .append(authenticationMode) .toHashCode(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponse.java index 4bece7fec2f..e626874f84f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponse.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponse.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerPagedQueryResponse + *

PagedQueryResult with results containing an array of Customer.

* *
* Example to create an instance using the builder pattern @@ -22,8 +22,8 @@ *

  *     CustomerPagedQueryResponse customerPagedQueryResponse = CustomerPagedQueryResponse.builder()
  *             .limit(0.3)
- *             .count(0.3)
  *             .offset(0.3)
+ *             .count(0.3)
  *             .plusResults(resultsBuilder -> resultsBuilder)
  *             .build()
  * 
@@ -41,28 +41,28 @@ public interface CustomerPagedQueryResponse extends com.commercetools.api.models public Long getLimit(); /** - * + *

Number of elements skipped.

+ */ + @NotNull + @JsonProperty("offset") + public Long getOffset(); + + /** + *

Actual number of results returned.

*/ @NotNull @JsonProperty("count") public Long getCount(); /** - * + *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

*/ @JsonProperty("total") public Long getTotal(); /** - *

Number of elements skipped.

- */ - @NotNull - @JsonProperty("offset") - public Long getOffset(); - - /** - * + *

Customers matching the query.

*/ @NotNull @Valid @@ -71,12 +71,12 @@ public interface CustomerPagedQueryResponse extends com.commercetools.api.models public void setLimit(final Long limit); + public void setOffset(final Long offset); + public void setCount(final Long count); public void setTotal(final Long total); - public void setOffset(final Long offset); - @JsonIgnore public void setResults(final Customer... results); @@ -89,9 +89,9 @@ public static CustomerPagedQueryResponse of() { public static CustomerPagedQueryResponse of(final CustomerPagedQueryResponse template) { CustomerPagedQueryResponseImpl instance = new CustomerPagedQueryResponseImpl(); instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); instance.setCount(template.getCount()); instance.setTotal(template.getTotal()); - instance.setOffset(template.getOffset()); instance.setResults(template.getResults()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseBuilder.java index 2232891e271..db75912ec6e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseBuilder.java @@ -17,8 +17,8 @@ *

  *     CustomerPagedQueryResponse customerPagedQueryResponse = CustomerPagedQueryResponse.builder()
  *             .limit(0.3)
- *             .count(0.3)
  *             .offset(0.3)
+ *             .count(0.3)
  *             .plusResults(resultsBuilder -> resultsBuilder)
  *             .build()
  * 
@@ -29,13 +29,13 @@ public class CustomerPagedQueryResponseBuilder implements Builder results; /** @@ -48,34 +48,34 @@ public CustomerPagedQueryResponseBuilder limit(final Long limit) { } /** - * + *

Number of elements skipped.

*/ - public CustomerPagedQueryResponseBuilder count(final Long count) { - this.count = count; + public CustomerPagedQueryResponseBuilder offset(final Long offset) { + this.offset = offset; return this; } /** - * + *

Actual number of results returned.

*/ - public CustomerPagedQueryResponseBuilder total(@Nullable final Long total) { - this.total = total; + public CustomerPagedQueryResponseBuilder count(final Long count) { + this.count = count; return this; } /** - *

Number of elements skipped.

+ *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

*/ - public CustomerPagedQueryResponseBuilder offset(final Long offset) { - this.offset = offset; + public CustomerPagedQueryResponseBuilder total(@Nullable final Long total) { + this.total = total; return this; } /** - * + *

Customers matching the query.

*/ public CustomerPagedQueryResponseBuilder results(final com.commercetools.api.models.customer.Customer... results) { @@ -84,7 +84,7 @@ public CustomerPagedQueryResponseBuilder results(final com.commercetools.api.mod } /** - * + *

Customers matching the query.

*/ public CustomerPagedQueryResponseBuilder results( @@ -94,7 +94,7 @@ public CustomerPagedQueryResponseBuilder results( } /** - * + *

Customers matching the query.

*/ public CustomerPagedQueryResponseBuilder plusResults( @@ -107,7 +107,7 @@ public CustomerPagedQueryResponseBuilder plusResults( } /** - * + *

Customers matching the query.

*/ public CustomerPagedQueryResponseBuilder plusResults( @@ -120,7 +120,7 @@ public CustomerPagedQueryResponseBuilder plusResults( } /** - * + *

Customers matching the query.

*/ public CustomerPagedQueryResponseBuilder withResults( @@ -134,6 +134,10 @@ public Long getLimit() { return this.limit; } + public Long getOffset() { + return this.offset; + } + public Long getCount() { return this.count; } @@ -143,27 +147,23 @@ public Long getTotal() { return this.total; } - public Long getOffset() { - return this.offset; - } - public java.util.List getResults() { return this.results; } public CustomerPagedQueryResponse build() { Objects.requireNonNull(limit, CustomerPagedQueryResponse.class + ": limit is missing"); - Objects.requireNonNull(count, CustomerPagedQueryResponse.class + ": count is missing"); Objects.requireNonNull(offset, CustomerPagedQueryResponse.class + ": offset is missing"); + Objects.requireNonNull(count, CustomerPagedQueryResponse.class + ": count is missing"); Objects.requireNonNull(results, CustomerPagedQueryResponse.class + ": results is missing"); - return new CustomerPagedQueryResponseImpl(limit, count, total, offset, results); + return new CustomerPagedQueryResponseImpl(limit, offset, count, total, results); } /** * builds CustomerPagedQueryResponse without checking for non null required values */ public CustomerPagedQueryResponse buildUnchecked() { - return new CustomerPagedQueryResponseImpl(limit, count, total, offset, results); + return new CustomerPagedQueryResponseImpl(limit, offset, count, total, results); } public static CustomerPagedQueryResponseBuilder of() { @@ -173,9 +173,9 @@ public static CustomerPagedQueryResponseBuilder of() { public static CustomerPagedQueryResponseBuilder of(final CustomerPagedQueryResponse template) { CustomerPagedQueryResponseBuilder builder = new CustomerPagedQueryResponseBuilder(); builder.limit = template.getLimit(); + builder.offset = template.getOffset(); builder.count = template.getCount(); builder.total = template.getTotal(); - builder.offset = template.getOffset(); builder.results = template.getResults(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseImpl.java index dbdaa6824bd..c8b12218db1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerPagedQueryResponseImpl.java @@ -15,29 +15,29 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerPagedQueryResponse + *

PagedQueryResult with results containing an array of Customer.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerPagedQueryResponseImpl implements CustomerPagedQueryResponse, ModelBase { private Long limit; + private Long offset; + private Long count; private Long total; - private Long offset; - private java.util.List results; @JsonCreator - CustomerPagedQueryResponseImpl(@JsonProperty("limit") final Long limit, @JsonProperty("count") final Long count, - @JsonProperty("total") final Long total, @JsonProperty("offset") final Long offset, + CustomerPagedQueryResponseImpl(@JsonProperty("limit") final Long limit, @JsonProperty("offset") final Long offset, + @JsonProperty("count") final Long count, @JsonProperty("total") final Long total, @JsonProperty("results") final java.util.List results) { this.limit = limit; + this.offset = offset; this.count = count; this.total = total; - this.offset = offset; this.results = results; } @@ -53,31 +53,31 @@ public Long getLimit() { } /** - * + *

Number of elements skipped.

*/ - public Long getCount() { - return this.count; + public Long getOffset() { + return this.offset; } /** - * + *

Actual number of results returned.

*/ - public Long getTotal() { - return this.total; + public Long getCount() { + return this.count; } /** - *

Number of elements skipped.

+ *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

*/ - public Long getOffset() { - return this.offset; + public Long getTotal() { + return this.total; } /** - * + *

Customers matching the query.

*/ public java.util.List getResults() { @@ -88,6 +88,10 @@ public void setLimit(final Long limit) { this.limit = limit; } + public void setOffset(final Long offset) { + this.offset = offset; + } + public void setCount(final Long count) { this.count = count; } @@ -96,10 +100,6 @@ public void setTotal(final Long total) { this.total = total; } - public void setOffset(final Long offset) { - this.offset = offset; - } - public void setResults(final com.commercetools.api.models.customer.Customer... results) { this.results = new ArrayList<>(Arrays.asList(results)); } @@ -119,9 +119,9 @@ public boolean equals(Object o) { CustomerPagedQueryResponseImpl that = (CustomerPagedQueryResponseImpl) o; return new EqualsBuilder().append(limit, that.limit) + .append(offset, that.offset) .append(count, that.count) .append(total, that.total) - .append(offset, that.offset) .append(results, that.results) .isEquals(); } @@ -129,9 +129,9 @@ public boolean equals(Object o) { @Override public int hashCode() { return new HashCodeBuilder(17, 37).append(limit) + .append(offset) .append(count) .append(total) - .append(offset) .append(results) .toHashCode(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressAction.java index aabd3d0504d..ef819101b43 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressAction.java @@ -11,7 +11,8 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerRemoveAddressAction + *

Removing an address from the Customer produces the CustomerAddressRemoved Message.

+ *

Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +30,14 @@ public interface CustomerRemoveAddressAction extends CustomerUpdateAction { String REMOVE_ADDRESS = "removeAddress"; /** - * + *

id of the Address to remove.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to remove.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionBuilder.java index 23d8ecf0bd7..a7c1ca5cd37 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerRemoveAddressActionBuilder implements Builderid of the Address to remove.

*/ public CustomerRemoveAddressActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public CustomerRemoveAddressActionBuilder addressId(@Nullable final String addre } /** - * + *

key of the Address to remove.

*/ public CustomerRemoveAddressActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionImpl.java index bda59f2e4d6..e6b09861221 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveAddressActionImpl.java @@ -15,7 +15,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerRemoveAddressAction + *

Removing an address from the Customer produces the CustomerAddressRemoved Message.

+ *

Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerRemoveAddressActionImpl implements CustomerRemoveAddressAction, ModelBase { @@ -47,7 +48,7 @@ public String getAction() { } /** - * + *

id of the Address to remove.

*/ public String getAddressId() { @@ -55,7 +56,7 @@ public String getAddressId() { } /** - * + *

key of the Address to remove.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java index afecb9b9494..ce8a163cbc4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerRemoveBillingAddressIdAction + *

Removes a billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface CustomerRemoveBillingAddressIdAction extends CustomerUpdateActi String REMOVE_BILLING_ADDRESS_ID = "removeBillingAddressId"; /** - * + *

id of the Address to remove from billingAddressesIds.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to remove from billingAddressesIds.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java index bd547cb331b..70b56c39a1d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerRemoveBillingAddressIdActionBuilder implements Builderid of the Address to remove from billingAddressesIds.

*/ public CustomerRemoveBillingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public CustomerRemoveBillingAddressIdActionBuilder addressId(@Nullable final Str } /** - * + *

key of the Address to remove from billingAddressesIds.

*/ public CustomerRemoveBillingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java index 744a039c49d..5a0fd67d9d2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerRemoveBillingAddressIdAction + *

Removes a billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerRemoveBillingAddressIdActionImpl implements CustomerRemoveBillingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to remove from billingAddressesIds.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to remove from billingAddressesIds.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java index e7051701ac3..463d568951d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerRemoveShippingAddressIdAction + *

Removes a shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface CustomerRemoveShippingAddressIdAction extends CustomerUpdateAct String REMOVE_SHIPPING_ADDRESS_ID = "removeShippingAddressId"; /** - * + *

id of the Address to remove from shippingAddressesIds.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to remove from shippingAddressesIds.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java index 05c673882f8..5708efcc8eb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerRemoveShippingAddressIdActionBuilder implements Builderid of the Address to remove from shippingAddressesIds.

*/ public CustomerRemoveShippingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public CustomerRemoveShippingAddressIdActionBuilder addressId(@Nullable final St } /** - * + *

key of the Address to remove from shippingAddressesIds.

*/ public CustomerRemoveShippingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java index 5cebf22ef21..8c9b99ec1dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerRemoveShippingAddressIdAction + *

Removes a shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerRemoveShippingAddressIdActionImpl implements CustomerRemoveShippingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to remove from shippingAddressesIds.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to remove from shippingAddressesIds.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreAction.java index 4bcdbbfcaec..f1cd211dcc6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreAction.java @@ -15,7 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerRemoveStoreAction + *

Removes the association to a Store from the Customer. If no more Stores are assigned, the Customer becomes a global Customer.

* *
* Example to create an instance using the builder pattern @@ -34,7 +34,7 @@ public interface CustomerRemoveStoreAction extends CustomerUpdateAction { String REMOVE_STORE = "removeStore"; /** - *

ResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to remove.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionBuilder.java index 935302796f9..84d2500eec2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionBuilder.java @@ -25,7 +25,7 @@ public class CustomerRemoveStoreActionBuilder implements BuilderResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to remove.

*/ public CustomerRemoveStoreActionBuilder store( @@ -35,7 +35,7 @@ public CustomerRemoveStoreActionBuilder store( } /** - *

ResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to remove.

*/ public CustomerRemoveStoreActionBuilder store( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionImpl.java index 79f2ba96f34..7a8ee2f1d56 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveStoreActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerRemoveStoreAction + *

Removes the association to a Store from the Customer. If no more Stores are assigned, the Customer becomes a global Customer.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerRemoveStoreActionImpl implements CustomerRemoveStoreAction, ModelBase { @@ -44,7 +44,7 @@ public String getAction() { } /** - *

ResourceIdentifier to a Store.

+ *

ResourceIdentifier of the Store to remove.

*/ public com.commercetools.api.models.store.StoreResourceIdentifier getStore() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPassword.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPassword.java index 872d4e56e4b..3080dd2e1a0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPassword.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPassword.java @@ -31,21 +31,21 @@ public interface CustomerResetPassword { /** - * + *

Value of the token to reset the Customer password.

*/ @NotNull @JsonProperty("tokenValue") public String getTokenValue(); /** - * + *

New password to be set.

*/ @NotNull @JsonProperty("newPassword") public String getNewPassword(); /** - * + *

Expected version of the Customer.

*/ @JsonProperty("version") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordBuilder.java index da5a9a3b1e7..46bbfd77b7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordBuilder.java @@ -32,7 +32,7 @@ public class CustomerResetPasswordBuilder implements BuilderValue of the token to reset the Customer password.

*/ public CustomerResetPasswordBuilder tokenValue(final String tokenValue) { @@ -41,7 +41,7 @@ public CustomerResetPasswordBuilder tokenValue(final String tokenValue) { } /** - * + *

New password to be set.

*/ public CustomerResetPasswordBuilder newPassword(final String newPassword) { @@ -50,7 +50,7 @@ public CustomerResetPasswordBuilder newPassword(final String newPassword) { } /** - * + *

Expected version of the Customer.

*/ public CustomerResetPasswordBuilder version(@Nullable final Long version) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordImpl.java index 6fe1de2bbee..b7f99b738b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResetPasswordImpl.java @@ -38,7 +38,7 @@ public CustomerResetPasswordImpl() { } /** - * + *

Value of the token to reset the Customer password.

*/ public String getTokenValue() { @@ -46,7 +46,7 @@ public String getTokenValue() { } /** - * + *

New password to be set.

*/ public String getNewPassword() { @@ -54,7 +54,7 @@ public String getNewPassword() { } /** - * + *

Expected version of the Customer.

*/ public Long getVersion() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifier.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifier.java index 8eb34e2ce55..442ab22f1bf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifier.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifier.java @@ -12,7 +12,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

ResourceIdentifier to a Customer.

+ *

ResourceIdentifier to a Customer. Either id or key is required.

* *
* Example to create an instance using the builder pattern @@ -31,14 +31,14 @@ public interface CustomerResourceIdentifier String CUSTOMER = "customer"; /** - *

Unique identifier of the referenced Customer. Either id or key is required.

+ *

Unique identifier of the referenced Customer.

*/ @JsonProperty("id") public String getId(); /** - *

User-defined unique identifier of the referenced Customer. Either id or key is required.

+ *

User-defined unique identifier of the referenced Customer.

*/ @JsonProperty("key") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierBuilder.java index 045b627e2c3..baee03b4a21 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierBuilder.java @@ -29,7 +29,7 @@ public class CustomerResourceIdentifierBuilder implements BuilderUnique identifier of the referenced Customer. Either id or key is required.

+ *

Unique identifier of the referenced Customer.

*/ public CustomerResourceIdentifierBuilder id(@Nullable final String id) { @@ -38,7 +38,7 @@ public CustomerResourceIdentifierBuilder id(@Nullable final String id) { } /** - *

User-defined unique identifier of the referenced Customer. Either id or key is required.

+ *

User-defined unique identifier of the referenced Customer.

*/ public CustomerResourceIdentifierBuilder key(@Nullable final String key) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierImpl.java index b72a469cbc3..c3458540e59 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerResourceIdentifierImpl.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

ResourceIdentifier to a Customer.

+ *

ResourceIdentifier to a Customer. Either id or key is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerResourceIdentifierImpl implements CustomerResourceIdentifier, ModelBase { @@ -47,7 +47,7 @@ public com.commercetools.api.models.common.ReferenceTypeId getTypeId() { } /** - *

Unique identifier of the referenced Customer. Either id or key is required.

+ *

Unique identifier of the referenced Customer.

*/ public String getId() { @@ -55,7 +55,7 @@ public String getId() { } /** - *

User-defined unique identifier of the referenced Customer. Either id or key is required.

+ *

User-defined unique identifier of the referenced Customer.

*/ public String getKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldAction.java index e257d1d7518..515a412fc98 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldAction.java @@ -33,7 +33,7 @@ public interface CustomerSetAddressCustomFieldAction extends CustomerUpdateActio String SET_ADDRESS_CUSTOM_FIELD = "setAddressCustomField"; /** - * + *

User-defined unique identifier of the Address to be updated.

*/ @NotNull @JsonProperty("addressId") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionBuilder.java index aab36d883c8..51ee2ad1db6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionBuilder.java @@ -32,7 +32,7 @@ public class CustomerSetAddressCustomFieldActionBuilder implements BuilderUser-defined unique identifier of the Address to be updated.

*/ public CustomerSetAddressCustomFieldActionBuilder addressId(final String addressId) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionImpl.java index 3f83a160348..5088afd0be6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomFieldActionImpl.java @@ -50,7 +50,7 @@ public String getAction() { } /** - * + *

User-defined unique identifier of the Address to be updated.

*/ public String getAddressId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeAction.java index 1eb3aca2cdf..410d024ca97 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeAction.java @@ -34,6 +34,13 @@ public interface CustomerSetAddressCustomTypeAction extends CustomerUpdateAction String SET_ADDRESS_CUSTOM_TYPE = "setAddressCustomType"; + /** + *

User-defined unique identifier of the Address to be updated.

+ */ + @NotNull + @JsonProperty("addressId") + public String getAddressId(); + /** *

Defines the Type that extends the address with Custom Fields. If absent, any existing Type and Custom Fields are removed from the address.

*/ @@ -48,28 +55,21 @@ public interface CustomerSetAddressCustomTypeAction extends CustomerUpdateAction @JsonProperty("fields") public FieldContainer getFields(); - /** - * - */ - @NotNull - @JsonProperty("addressId") - public String getAddressId(); + public void setAddressId(final String addressId); public void setType(final TypeResourceIdentifier type); public void setFields(final FieldContainer fields); - public void setAddressId(final String addressId); - public static CustomerSetAddressCustomTypeAction of() { return new CustomerSetAddressCustomTypeActionImpl(); } public static CustomerSetAddressCustomTypeAction of(final CustomerSetAddressCustomTypeAction template) { CustomerSetAddressCustomTypeActionImpl instance = new CustomerSetAddressCustomTypeActionImpl(); + instance.setAddressId(template.getAddressId()); instance.setType(template.getType()); instance.setFields(template.getFields()); - instance.setAddressId(template.getAddressId()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionBuilder.java index 3567eaf3af2..948edabbe0c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionBuilder.java @@ -24,13 +24,22 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetAddressCustomTypeActionBuilder implements Builder { + private String addressId; + @Nullable private com.commercetools.api.models.type.TypeResourceIdentifier type; @Nullable private com.commercetools.api.models.type.FieldContainer fields; - private String addressId; + /** + *

User-defined unique identifier of the Address to be updated.

+ */ + + public CustomerSetAddressCustomTypeActionBuilder addressId(final String addressId) { + this.addressId = addressId; + return this; + } /** *

Defines the Type that extends the address with Custom Fields. If absent, any existing Type and Custom Fields are removed from the address.

@@ -72,13 +81,8 @@ public CustomerSetAddressCustomTypeActionBuilder fields( return this; } - /** - * - */ - - public CustomerSetAddressCustomTypeActionBuilder addressId(final String addressId) { - this.addressId = addressId; - return this; + public String getAddressId() { + return this.addressId; } @Nullable @@ -91,20 +95,16 @@ public com.commercetools.api.models.type.FieldContainer getFields() { return this.fields; } - public String getAddressId() { - return this.addressId; - } - public CustomerSetAddressCustomTypeAction build() { Objects.requireNonNull(addressId, CustomerSetAddressCustomTypeAction.class + ": addressId is missing"); - return new CustomerSetAddressCustomTypeActionImpl(type, fields, addressId); + return new CustomerSetAddressCustomTypeActionImpl(addressId, type, fields); } /** * builds CustomerSetAddressCustomTypeAction without checking for non null required values */ public CustomerSetAddressCustomTypeAction buildUnchecked() { - return new CustomerSetAddressCustomTypeActionImpl(type, fields, addressId); + return new CustomerSetAddressCustomTypeActionImpl(addressId, type, fields); } public static CustomerSetAddressCustomTypeActionBuilder of() { @@ -113,9 +113,9 @@ public static CustomerSetAddressCustomTypeActionBuilder of() { public static CustomerSetAddressCustomTypeActionBuilder of(final CustomerSetAddressCustomTypeAction template) { CustomerSetAddressCustomTypeActionBuilder builder = new CustomerSetAddressCustomTypeActionBuilder(); + builder.addressId = template.getAddressId(); builder.type = template.getType(); builder.fields = template.getFields(); - builder.addressId = template.getAddressId(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionImpl.java index 9e5bffadd97..0b191d52001 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAddressCustomTypeActionImpl.java @@ -22,20 +22,19 @@ public class CustomerSetAddressCustomTypeActionImpl implements CustomerSetAddres private String action; + private String addressId; + private com.commercetools.api.models.type.TypeResourceIdentifier type; private com.commercetools.api.models.type.FieldContainer fields; - private String addressId; - @JsonCreator - CustomerSetAddressCustomTypeActionImpl( + CustomerSetAddressCustomTypeActionImpl(@JsonProperty("addressId") final String addressId, @JsonProperty("type") final com.commercetools.api.models.type.TypeResourceIdentifier type, - @JsonProperty("fields") final com.commercetools.api.models.type.FieldContainer fields, - @JsonProperty("addressId") final String addressId) { + @JsonProperty("fields") final com.commercetools.api.models.type.FieldContainer fields) { + this.addressId = addressId; this.type = type; this.fields = fields; - this.addressId = addressId; this.action = SET_ADDRESS_CUSTOM_TYPE; } @@ -51,6 +50,14 @@ public String getAction() { return this.action; } + /** + *

User-defined unique identifier of the Address to be updated.

+ */ + + public String getAddressId() { + return this.addressId; + } + /** *

Defines the Type that extends the address with Custom Fields. If absent, any existing Type and Custom Fields are removed from the address.

*/ @@ -67,12 +74,8 @@ public com.commercetools.api.models.type.FieldContainer getFields() { return this.fields; } - /** - * - */ - - public String getAddressId() { - return this.addressId; + public void setAddressId(final String addressId) { + this.addressId = addressId; } public void setType(final com.commercetools.api.models.type.TypeResourceIdentifier type) { @@ -83,10 +86,6 @@ public void setFields(final com.commercetools.api.models.type.FieldContainer fie this.fields = fields; } - public void setAddressId(final String addressId) { - this.addressId = addressId; - } - @Override public boolean equals(Object o) { if (this == o) @@ -98,15 +97,15 @@ public boolean equals(Object o) { CustomerSetAddressCustomTypeActionImpl that = (CustomerSetAddressCustomTypeActionImpl) o; return new EqualsBuilder().append(action, that.action) + .append(addressId, that.addressId) .append(type, that.type) .append(fields, that.fields) - .append(addressId, that.addressId) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(action).append(type).append(fields).append(addressId).toHashCode(); + return new HashCodeBuilder(17, 37).append(action).append(addressId).append(type).append(fields).toHashCode(); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeAction.java index a3be979d8f5..8c21fdc2190 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeAction.java @@ -32,14 +32,14 @@ public interface CustomerSetAuthenticationModeAction extends CustomerUpdateActio String SET_AUTHENTICATION_MODE = "setAuthenticationMode"; /** - * + *

Value to set. Changing a Customer's authMode from Password to ExternalAuth deletes the Customer's password.

*/ @NotNull @JsonProperty("authMode") public AuthenticationMode getAuthMode(); /** - *

Required when authMode is Password

+ *

Required when authMode is Password.

*/ @JsonProperty("password") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionBuilder.java index 48ed98be10a..6be90eb375e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerSetAuthenticationModeActionBuilder implements BuilderValue to set. Changing a Customer's authMode from Password to ExternalAuth deletes the Customer's password.

*/ public CustomerSetAuthenticationModeActionBuilder authMode( @@ -39,7 +39,7 @@ public CustomerSetAuthenticationModeActionBuilder authMode( } /** - *

Required when authMode is Password

+ *

Required when authMode is Password.

*/ public CustomerSetAuthenticationModeActionBuilder password(@Nullable final String password) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionImpl.java index 5737ebd2abc..b5071baf109 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetAuthenticationModeActionImpl.java @@ -48,7 +48,7 @@ public String getAction() { } /** - * + *

Value to set. Changing a Customer's authMode from Password to ExternalAuth deletes the Customer's password.

*/ public com.commercetools.api.models.customer.AuthenticationMode getAuthMode() { @@ -56,7 +56,7 @@ public com.commercetools.api.models.customer.AuthenticationMode getAuthMode() { } /** - *

Required when authMode is Password

+ *

Required when authMode is Password.

*/ public String getPassword() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameAction.java index 97679cfd077..01fbf793f0d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetCompanyNameAction + *

Setting a company name produces the CustomerCompanyNameSet Message.

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface CustomerSetCompanyNameAction extends CustomerUpdateAction { String SET_COMPANY_NAME = "setCompanyName"; /** - *

If not defined, the company name is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("companyName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionBuilder.java index b6cbb29922f..8f65ecd09fe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetCompanyNameActionBuilder implements BuilderIf not defined, the company name is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public CustomerSetCompanyNameActionBuilder companyName(@Nullable final String companyName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionImpl.java index 8f3a3e5b65f..27cf94d1b0e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCompanyNameActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetCompanyNameAction + *

Setting a company name produces the CustomerCompanyNameSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetCompanyNameActionImpl implements CustomerSetCompanyNameAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - *

If not defined, the company name is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public String getCompanyName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAction.java index 06cf20f4183..c88dc4476b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAction.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetCustomerGroupAction + *

Setting the Customer Group of the Customer produces the CustomerGroupSet Message.

* *
* Example to create an instance using the builder pattern @@ -32,7 +32,7 @@ public interface CustomerSetCustomerGroupAction extends CustomerUpdateAction { String SET_CUSTOMER_GROUP = "setCustomerGroup"; /** - *

If not defined, the customer group is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ @Valid @JsonProperty("customerGroup") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionBuilder.java index cdb9d162519..d075c4f27d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionBuilder.java @@ -27,7 +27,7 @@ public class CustomerSetCustomerGroupActionBuilder implements BuilderIf not defined, the customer group is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public CustomerSetCustomerGroupActionBuilder customerGroup( @@ -39,7 +39,7 @@ public CustomerSetCustomerGroupActionBuilder customerGroup( } /** - *

If not defined, the customer group is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public CustomerSetCustomerGroupActionBuilder customerGroup( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionImpl.java index 9baefb9bab7..bf5221696a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetCustomerGroupAction + *

Setting the Customer Group of the Customer produces the CustomerGroupSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetCustomerGroupActionImpl implements CustomerSetCustomerGroupAction, ModelBase { @@ -44,7 +44,7 @@ public String getAction() { } /** - *

If not defined, the customer group is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberAction.java index b98e38ac6a9..95e70eb54e9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetCustomerNumberAction + *

Sets a new ID that can be used to refer to a Customer in a human-reabable way (for use in emails, invoices, etc).

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface CustomerSetCustomerNumberAction extends CustomerUpdateAction { String SET_CUSTOMER_NUMBER = "setCustomerNumber"; /** - *

It should be unique across a project. Once it's set, it cannot be changed.

+ *

Value to set. Once set, it cannot be changed.

*/ @JsonProperty("customerNumber") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionBuilder.java index fd13547abae..dd93ef7623e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetCustomerNumberActionBuilder implements BuilderIt should be unique across a project. Once it's set, it cannot be changed.

+ *

Value to set. Once set, it cannot be changed.

*/ public CustomerSetCustomerNumberActionBuilder customerNumber(@Nullable final String customerNumber) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionImpl.java index ad7a13c5683..f91081e4cfb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerNumberActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetCustomerNumberAction + *

Sets a new ID that can be used to refer to a Customer in a human-reabable way (for use in emails, invoices, etc).

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetCustomerNumberActionImpl implements CustomerSetCustomerNumberAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - *

It should be unique across a project. Once it's set, it cannot be changed.

+ *

Value to set. Once set, it cannot be changed.

*/ public String getCustomerNumber() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthAction.java index e6cce453621..e4edfbbff64 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthAction.java @@ -12,7 +12,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetDateOfBirthAction + *

Setting the date of birth of the Customer produces the CustomerDateOfBirthSet Message.

* *
* Example to create an instance using the builder pattern @@ -30,7 +30,7 @@ public interface CustomerSetDateOfBirthAction extends CustomerUpdateAction { String SET_DATE_OF_BIRTH = "setDateOfBirth"; /** - *

If not defined, the date of birth is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("dateOfBirth") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionBuilder.java index ba05f4d3863..102344d13de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetDateOfBirthActionBuilder implements BuilderIf not defined, the date of birth is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public CustomerSetDateOfBirthActionBuilder dateOfBirth(@Nullable final java.time.LocalDate dateOfBirth) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionImpl.java index a2662a1bf21..e3bd4d2ddc2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDateOfBirthActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetDateOfBirthAction + *

Setting the date of birth of the Customer produces the CustomerDateOfBirthSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetDateOfBirthActionImpl implements CustomerSetDateOfBirthAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - *

If not defined, the date of birth is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public java.time.LocalDate getDateOfBirth() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressAction.java index 95f011e88b7..1fc2c1a80c4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetDefaultBillingAddressAction + *

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.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface CustomerSetDefaultBillingAddressAction extends CustomerUpdateAc String SET_DEFAULT_BILLING_ADDRESS = "setDefaultBillingAddress"; /** - *

If not defined, the customer's defaultBillingAddress is unset.

+ *

id of the Address to become the default billing address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become the default billing address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionBuilder.java index ab4da665922..0a97551e023 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerSetDefaultBillingAddressActionBuilder implements BuilderIf not defined, the customer's defaultBillingAddress is unset.

+ *

id of the Address to become the default billing address.

*/ public CustomerSetDefaultBillingAddressActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public CustomerSetDefaultBillingAddressActionBuilder addressId(@Nullable final S } /** - * + *

key of the Address to become the default billing address.

*/ public CustomerSetDefaultBillingAddressActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionImpl.java index 12f7fae6128..f8322a03333 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetDefaultBillingAddressAction + *

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.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetDefaultBillingAddressActionImpl implements CustomerSetDefaultBillingAddressAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - *

If not defined, the customer's defaultBillingAddress is unset.

+ *

id of the Address to become the default billing address.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become the default billing address.

*/ public String getAddressKey() { 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 8ffabc1c3c0..874785e1cd5 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 @@ -11,7 +11,8 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetDefaultShippingAddressAction + *

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.

+ *

If the Tax Category of the Cart ShippingInfo is missing the TaxRate matching country and state given in the shippingAddress of that Cart, a MissingTaxRateForCountry error is returned.

* *
* Example to create an instance using the builder pattern @@ -29,14 +30,14 @@ public interface CustomerSetDefaultShippingAddressAction extends CustomerUpdateA String SET_DEFAULT_SHIPPING_ADDRESS = "setDefaultShippingAddress"; /** - *

If not defined, the customer's defaultShippingAddress is unset.

+ *

id of the Address to become the default shipping address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become the default shipping address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionBuilder.java index 7ea413f15e0..2bd01020463 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionBuilder.java @@ -30,7 +30,7 @@ public class CustomerSetDefaultShippingAddressActionBuilder private String addressKey; /** - *

If not defined, the customer's defaultShippingAddress is unset.

+ *

id of the Address to become the default shipping address.

*/ public CustomerSetDefaultShippingAddressActionBuilder addressId(@Nullable final String addressId) { @@ -39,7 +39,7 @@ public CustomerSetDefaultShippingAddressActionBuilder addressId(@Nullable final } /** - * + *

key of the Address to become the default shipping address.

*/ public CustomerSetDefaultShippingAddressActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionImpl.java index 725a6fb0a56..86bc7dbb96b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionImpl.java @@ -15,7 +15,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetDefaultShippingAddressAction + *

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.

+ *

If the Tax Category of the Cart ShippingInfo is missing the TaxRate matching country and state given in the shippingAddress of that Cart, a MissingTaxRateForCountry error is returned.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetDefaultShippingAddressActionImpl implements CustomerSetDefaultShippingAddressAction, ModelBase { @@ -47,7 +48,7 @@ public String getAction() { } /** - *

If not defined, the customer's defaultShippingAddress is unset.

+ *

id of the Address to become the default shipping address.

*/ public String getAddressId() { @@ -55,7 +56,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become the default shipping address.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java index 051e35ac811..2dad85b39ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java @@ -29,7 +29,7 @@ public interface CustomerSetExternalIdAction extends CustomerUpdateAction { String SET_EXTERNAL_ID = "setExternalId"; /** - *

If not defined, the external ID is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("externalId") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionBuilder.java index 4329af19593..2393806f3dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetExternalIdActionBuilder implements BuilderIf not defined, the external ID is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public CustomerSetExternalIdActionBuilder externalId(@Nullable final String externalId) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java index 494a9db585e..3fccd15f7c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - *

If not defined, the external ID is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public String getExternalId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java index 61404ba7faf..9631f079eaf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java @@ -29,7 +29,7 @@ public interface CustomerSetFirstNameAction extends CustomerUpdateAction { String SET_FIRST_NAME = "setFirstName"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("firstName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionBuilder.java index fddaea8a0ca..9d2d23be113 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetFirstNameActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public CustomerSetFirstNameActionBuilder firstName(@Nullable final String firstName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionImpl.java index 662b251f08f..f163f207c5a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getFirstName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyAction.java index fef74a47e3b..aee06e70e92 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyAction.java @@ -29,7 +29,7 @@ public interface CustomerSetKeyAction extends CustomerUpdateAction { String SET_KEY = "setKey"; /** - *

If key is absent or null, this field will be removed if it exists.

+ *

If key is absent or null, the existing key, if any, will be removed.

*/ @JsonProperty("key") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionBuilder.java index 1416e1680c6..22a5876bd1f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetKeyActionBuilder implements BuilderIf key is absent or null, this field will be removed if it exists.

+ *

If key is absent or null, the existing key, if any, will be removed.

*/ public CustomerSetKeyActionBuilder key(@Nullable final String key) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionImpl.java index 0950cd2a1c3..bc839acc5d5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetKeyActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - *

If key is absent or null, this field will be removed if it exists.

+ *

If key is absent or null, the existing key, if any, will be removed.

*/ public String getKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java index ee476fb32be..938d2f560a4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetLastNameAction + *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface CustomerSetLastNameAction extends CustomerUpdateAction { String SET_LAST_NAME = "setLastName"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("lastName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionBuilder.java index 935ab2fe90a..e6097b8f80d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetLastNameActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public CustomerSetLastNameActionBuilder lastName(@Nullable final String lastName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionImpl.java index 449341d5e26..2b06bc015d1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetLastNameAction + *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetLastNameActionImpl implements CustomerSetLastNameAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getLastName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleAction.java index 5d7286af1af..45fbb6e95ff 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleAction.java @@ -29,7 +29,7 @@ public interface CustomerSetLocaleAction extends CustomerUpdateAction { String SET_LOCALE = "setLocale"; /** - * + *

Value to set. Must be one of the languages supported by the Project.

*/ @JsonProperty("locale") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionBuilder.java index 447080d459f..939c3885316 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetLocaleActionBuilder implements BuilderValue to set. Must be one of the languages supported by the Project.

*/ public CustomerSetLocaleActionBuilder locale(@Nullable final String locale) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionImpl.java index 205ce95fea7..47098cb3df4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLocaleActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. Must be one of the languages supported by the Project.

*/ public String getLocale() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameAction.java index a9ff4c0a936..d904215a3f8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameAction.java @@ -29,7 +29,7 @@ public interface CustomerSetMiddleNameAction extends CustomerUpdateAction { String SET_MIDDLE_NAME = "setMiddleName"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("middleName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionBuilder.java index dee41535e35..8447fb377c0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetMiddleNameActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public CustomerSetMiddleNameActionBuilder middleName(@Nullable final String middleName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionImpl.java index 5f925ef81c8..da58283dbad 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetMiddleNameActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getMiddleName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationAction.java index 376263b2d72..986ad65b60c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationAction.java @@ -29,7 +29,7 @@ public interface CustomerSetSalutationAction extends CustomerUpdateAction { String SET_SALUTATION = "setSalutation"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("salutation") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionBuilder.java index 1cee94774f7..96563fe2098 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetSalutationActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public CustomerSetSalutationActionBuilder salutation(@Nullable final String salutation) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionImpl.java index 8029de986a6..e3c55ef68c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetSalutationActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getSalutation() { 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 82a73b396e2..f61152a309e 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 @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetStoresAction + *

Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.

* *
* Example to create an instance using the builder pattern @@ -32,7 +32,7 @@ public interface CustomerSetStoresAction extends CustomerUpdateAction { String SET_STORES = "setStores"; /** - * + *

ResourceIdentifier of the Stores to set.

*/ @Valid @JsonProperty("stores") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionBuilder.java index 1fec2d5ec56..1f42d14d718 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionBuilder.java @@ -27,7 +27,7 @@ public class CustomerSetStoresActionBuilder implements Builder stores; /** - * + *

ResourceIdentifier of the Stores to set.

*/ public CustomerSetStoresActionBuilder stores( @@ -37,7 +37,7 @@ public CustomerSetStoresActionBuilder stores( } /** - * + *

ResourceIdentifier of the Stores to set.

*/ public CustomerSetStoresActionBuilder stores( @@ -47,7 +47,7 @@ public CustomerSetStoresActionBuilder stores( } /** - * + *

ResourceIdentifier of the Stores to set.

*/ public CustomerSetStoresActionBuilder plusStores( @@ -60,7 +60,7 @@ public CustomerSetStoresActionBuilder plusStores( } /** - * + *

ResourceIdentifier of the Stores to set.

*/ public CustomerSetStoresActionBuilder plusStores( @@ -73,7 +73,7 @@ public CustomerSetStoresActionBuilder plusStores( } /** - * + *

ResourceIdentifier of the Stores to set.

*/ public CustomerSetStoresActionBuilder withStores( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionImpl.java index 5cce29f1d67..bba84e559a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetStoresAction + *

Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetStoresActionImpl implements CustomerSetStoresAction, ModelBase { @@ -44,7 +44,7 @@ public String getAction() { } /** - * + *

ResourceIdentifier of the Stores to set.

*/ public java.util.List getStores() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java index 4b2be06afc0..a1f69fdb0c5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetTitleAction + *

Setting the title of the Customer produces the CustomerTitleSetMessage.

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface CustomerSetTitleAction extends CustomerUpdateAction { String SET_TITLE = "setTitle"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("title") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionBuilder.java index 6aa8dfc2d1e..80645865318 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetTitleActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public CustomerSetTitleActionBuilder title(@Nullable final String title) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionImpl.java index 6f592af4e91..7ca46fbd72e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CustomerSetTitleAction + *

Setting the title of the Customer produces the CustomerTitleSetMessage.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetTitleActionImpl implements CustomerSetTitleAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getTitle() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdAction.java index d7f9b67097b..613b50a083d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdAction.java @@ -29,7 +29,7 @@ public interface CustomerSetVatIdAction extends CustomerUpdateAction { String SET_VAT_ID = "setVatId"; /** - *

If not defined, the vat Id is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("vatId") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionBuilder.java index deaa65c36bd..9b79ad70b94 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionBuilder.java @@ -26,7 +26,7 @@ public class CustomerSetVatIdActionBuilder implements BuilderIf not defined, the vat Id is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public CustomerSetVatIdActionBuilder vatId(@Nullable final String vatId) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionImpl.java index f92ffa36335..5054b7c5ea4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetVatIdActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - *

If not defined, the vat Id is unset.

+ *

Value to set. If empty, any existing value is removed.

*/ public String getVatId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResult.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResult.java index f5ba5cc77c1..b5f2a033849 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResult.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResult.java @@ -32,7 +32,7 @@ public interface CustomerSignInResult { /** - * + *

Customer signed up or signed in after authentication.

*/ @NotNull @Valid @@ -40,7 +40,7 @@ public interface CustomerSignInResult { public Customer getCustomer(); /** - *

A cart that is associated to the customer. Empty if the customer does not have a cart yet.

+ *

Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.

*/ @Valid @JsonProperty("cart") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultBuilder.java index 0910e1baff6..e14b4e89203 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultBuilder.java @@ -30,7 +30,7 @@ public class CustomerSignInResultBuilder implements BuilderCustomer signed up or signed in after authentication.

*/ public CustomerSignInResultBuilder customer( @@ -40,7 +40,7 @@ public CustomerSignInResultBuilder customer( } /** - * + *

Customer signed up or signed in after authentication.

*/ public CustomerSignInResultBuilder customer(final com.commercetools.api.models.customer.Customer customer) { @@ -49,7 +49,7 @@ public CustomerSignInResultBuilder customer(final com.commercetools.api.models.c } /** - *

A cart that is associated to the customer. Empty if the customer does not have a cart yet.

+ *

Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.

*/ public CustomerSignInResultBuilder cart( @@ -59,7 +59,7 @@ public CustomerSignInResultBuilder cart( } /** - *

A cart that is associated to the customer. Empty if the customer does not have a cart yet.

+ *

Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.

*/ public CustomerSignInResultBuilder cart(@Nullable final com.commercetools.api.models.cart.Cart cart) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultImpl.java index 2b0c5bd5215..a557b3620e4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignInResultImpl.java @@ -35,7 +35,7 @@ public CustomerSignInResultImpl() { } /** - * + *

Customer signed up or signed in after authentication.

*/ public com.commercetools.api.models.customer.Customer getCustomer() { @@ -43,7 +43,7 @@ public com.commercetools.api.models.customer.Customer getCustomer() { } /** - *

A cart that is associated to the customer. Empty if the customer does not have a cart yet.

+ *

Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.

*/ public com.commercetools.api.models.cart.Cart getCart() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java index 7ab934a0595..84d343c3aa6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java @@ -33,49 +33,55 @@ public interface CustomerSignin { /** - * + *

Email address of the Customer treated as case-insensitive.

*/ @NotNull @JsonProperty("email") public String getEmail(); /** - * + *

Password of the Customer.

*/ @NotNull @JsonProperty("password") public String getPassword(); /** - * + *

Deprecated since it is now possible to identify an anonymous cart by using its id or external key.

*/ @Deprecated @JsonProperty("anonymousCartId") public String getAnonymousCartId(); /** - *

ResourceIdentifier to a Cart.

+ *

Identifies a Cart that will be assigned to the Customer.

*/ @Valid @JsonProperty("anonymousCart") public CartResourceIdentifier getAnonymousCart(); /** - * + *
    + *
  • Set to MergeWithExistingCustomerCart if LineItems of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently.
  • + *
  • Set to UseAsNewActiveCustomerCart if the anonymous Cart should be used as the new active Customer Cart and no LineItems are to be merged.
  • + *
*/ @JsonProperty("anonymousCartSignInMode") public AnonymousCartSignInMode getAnonymousCartSignInMode(); /** - * + *

If both anonymousCart and anonymousId are provided, the anonymousId on the CustomerSignin must match that of the anonymous [Cart](ctp:api:type:Cart]. Otherwise a 400 Bad Request Invalid Operation error is returned with the message: "Cart with the ID cart-id does not have the expected anonymousId.".

*/ @JsonProperty("anonymousId") public String getAnonymousId(); /** - * + *
    + *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
  • + *
  • If false, only the prices, discounts, and tax rates will be updated.
  • + *
*/ @JsonProperty("updateProductData") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java index 482033001d0..c708f5366dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java @@ -46,7 +46,7 @@ public class CustomerSigninBuilder implements Builder { private Boolean updateProductData; /** - * + *

Email address of the Customer treated as case-insensitive.

*/ public CustomerSigninBuilder email(final String email) { @@ -55,7 +55,7 @@ public CustomerSigninBuilder email(final String email) { } /** - * + *

Password of the Customer.

*/ public CustomerSigninBuilder password(final String password) { @@ -64,7 +64,7 @@ public CustomerSigninBuilder password(final String password) { } /** - * + *

Deprecated since it is now possible to identify an anonymous cart by using its id or external key.

*/ @Deprecated public CustomerSigninBuilder anonymousCartId(@Nullable final String anonymousCartId) { @@ -73,7 +73,7 @@ public CustomerSigninBuilder anonymousCartId(@Nullable final String anonymousCar } /** - *

ResourceIdentifier to a Cart.

+ *

Identifies a Cart that will be assigned to the Customer.

*/ public CustomerSigninBuilder anonymousCart( @@ -84,7 +84,7 @@ public CustomerSigninBuilder anonymousCart( } /** - *

ResourceIdentifier to a Cart.

+ *

Identifies a Cart that will be assigned to the Customer.

*/ public CustomerSigninBuilder anonymousCart( @@ -94,7 +94,10 @@ public CustomerSigninBuilder anonymousCart( } /** - * + *
    + *
  • Set to MergeWithExistingCustomerCart if LineItems of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently.
  • + *
  • Set to UseAsNewActiveCustomerCart if the anonymous Cart should be used as the new active Customer Cart and no LineItems are to be merged.
  • + *
*/ public CustomerSigninBuilder anonymousCartSignInMode( @@ -104,7 +107,7 @@ public CustomerSigninBuilder anonymousCartSignInMode( } /** - * + *

If both anonymousCart and anonymousId are provided, the anonymousId on the CustomerSignin must match that of the anonymous [Cart](ctp:api:type:Cart]. Otherwise a 400 Bad Request Invalid Operation error is returned with the message: "Cart with the ID cart-id does not have the expected anonymousId.".

*/ public CustomerSigninBuilder anonymousId(@Nullable final String anonymousId) { @@ -113,7 +116,10 @@ public CustomerSigninBuilder anonymousId(@Nullable final String anonymousId) { } /** - * + *
    + *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
  • + *
  • If false, only the prices, discounts, and tax rates will be updated.
  • + *
*/ public CustomerSigninBuilder updateProductData(@Nullable final Boolean updateProductData) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java index 88c028b7565..0605db19b59 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java @@ -55,7 +55,7 @@ public CustomerSigninImpl() { } /** - * + *

Email address of the Customer treated as case-insensitive.

*/ public String getEmail() { @@ -63,7 +63,7 @@ public String getEmail() { } /** - * + *

Password of the Customer.

*/ public String getPassword() { @@ -71,7 +71,7 @@ public String getPassword() { } /** - * + *

Deprecated since it is now possible to identify an anonymous cart by using its id or external key.

*/ @Deprecated public String getAnonymousCartId() { @@ -79,7 +79,7 @@ public String getAnonymousCartId() { } /** - *

ResourceIdentifier to a Cart.

+ *

Identifies a Cart that will be assigned to the Customer.

*/ public com.commercetools.api.models.cart.CartResourceIdentifier getAnonymousCart() { @@ -87,7 +87,10 @@ public com.commercetools.api.models.cart.CartResourceIdentifier getAnonymousCart } /** - * + *
    + *
  • Set to MergeWithExistingCustomerCart if LineItems of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently.
  • + *
  • Set to UseAsNewActiveCustomerCart if the anonymous Cart should be used as the new active Customer Cart and no LineItems are to be merged.
  • + *
*/ public com.commercetools.api.models.customer.AnonymousCartSignInMode getAnonymousCartSignInMode() { @@ -95,7 +98,7 @@ public com.commercetools.api.models.customer.AnonymousCartSignInMode getAnonymou } /** - * + *

If both anonymousCart and anonymousId are provided, the anonymousId on the CustomerSignin must match that of the anonymous [Cart](ctp:api:type:Cart]. Otherwise a 400 Bad Request Invalid Operation error is returned with the message: "Cart with the ID cart-id does not have the expected anonymousId.".

*/ public String getAnonymousId() { @@ -103,7 +106,10 @@ public String getAnonymousId() { } /** - * + *
    + *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
  • + *
  • If false, only the prices, discounts, and tax rates will be updated.
  • + *
*/ public Boolean getUpdateProductData() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java index df9f238d4c0..261d280a207 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java @@ -35,42 +35,42 @@ public interface CustomerToken { /** - *

Unique identifier of the CustomerToken.

+ *

Unique identifier of the token.

*/ @NotNull @JsonProperty("id") public String getId(); /** - * + *

Date and time (UTC) the token was initially created.

*/ @NotNull @JsonProperty("createdAt") public ZonedDateTime getCreatedAt(); /** - * + *

When the token is created, lastModifiedAt is set to createdAt.

*/ @JsonProperty("lastModifiedAt") public ZonedDateTime getLastModifiedAt(); /** - * + *

The id of the Customer.

*/ @NotNull @JsonProperty("customerId") public String getCustomerId(); /** - * + *

Date and time (UTC) the token expires.

*/ @NotNull @JsonProperty("expiresAt") public ZonedDateTime getExpiresAt(); /** - * + *

Value of the token.

*/ @NotNull @JsonProperty("value") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java index 1049020c9f5..088623f7f1a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java @@ -41,7 +41,7 @@ public class CustomerTokenBuilder implements Builder { private String value; /** - *

Unique identifier of the CustomerToken.

+ *

Unique identifier of the token.

*/ public CustomerTokenBuilder id(final String id) { @@ -50,7 +50,7 @@ public CustomerTokenBuilder id(final String id) { } /** - * + *

Date and time (UTC) the token was initially created.

*/ public CustomerTokenBuilder createdAt(final java.time.ZonedDateTime createdAt) { @@ -59,7 +59,7 @@ public CustomerTokenBuilder createdAt(final java.time.ZonedDateTime createdAt) { } /** - * + *

When the token is created, lastModifiedAt is set to createdAt.

*/ public CustomerTokenBuilder lastModifiedAt(@Nullable final java.time.ZonedDateTime lastModifiedAt) { @@ -68,7 +68,7 @@ public CustomerTokenBuilder lastModifiedAt(@Nullable final java.time.ZonedDateTi } /** - * + *

The id of the Customer.

*/ public CustomerTokenBuilder customerId(final String customerId) { @@ -77,7 +77,7 @@ public CustomerTokenBuilder customerId(final String customerId) { } /** - * + *

Date and time (UTC) the token expires.

*/ public CustomerTokenBuilder expiresAt(final java.time.ZonedDateTime expiresAt) { @@ -86,7 +86,7 @@ public CustomerTokenBuilder expiresAt(final java.time.ZonedDateTime expiresAt) { } /** - * + *

Value of the token.

*/ public CustomerTokenBuilder value(final String value) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java index 88908303ec3..b95fb90d459 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java @@ -51,7 +51,7 @@ public CustomerTokenImpl() { } /** - *

Unique identifier of the CustomerToken.

+ *

Unique identifier of the token.

*/ public String getId() { @@ -59,7 +59,7 @@ public String getId() { } /** - * + *

Date and time (UTC) the token was initially created.

*/ public java.time.ZonedDateTime getCreatedAt() { @@ -67,7 +67,7 @@ public java.time.ZonedDateTime getCreatedAt() { } /** - * + *

When the token is created, lastModifiedAt is set to createdAt.

*/ public java.time.ZonedDateTime getLastModifiedAt() { @@ -75,7 +75,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - * + *

The id of the Customer.

*/ public String getCustomerId() { @@ -83,7 +83,7 @@ public String getCustomerId() { } /** - * + *

Date and time (UTC) the token expires.

*/ public java.time.ZonedDateTime getExpiresAt() { @@ -91,7 +91,7 @@ public java.time.ZonedDateTime getExpiresAt() { } /** - * + *

Value of the token.

*/ public String getValue() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdate.java index ac9ea2a3dc6..88be4b6e18f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdate.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdate.java @@ -33,14 +33,14 @@ public interface CustomerUpdate extends com.commercetools.api.models.ResourceUpdate { /** - * + *

Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Update actions to be performed on the Customer.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateBuilder.java index a09a206b48c..8b7097711d6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateBuilder.java @@ -28,7 +28,7 @@ public class CustomerUpdateBuilder implements Builder { private java.util.List actions; /** - * + *

Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

*/ public CustomerUpdateBuilder version(final Long version) { @@ -37,7 +37,7 @@ public CustomerUpdateBuilder version(final Long version) { } /** - * + *

Update actions to be performed on the Customer.

*/ public CustomerUpdateBuilder actions(final com.commercetools.api.models.customer.CustomerUpdateAction... actions) { @@ -46,7 +46,7 @@ public CustomerUpdateBuilder actions(final com.commercetools.api.models.customer } /** - * + *

Update actions to be performed on the Customer.

*/ public CustomerUpdateBuilder actions( @@ -56,7 +56,7 @@ public CustomerUpdateBuilder actions( } /** - * + *

Update actions to be performed on the Customer.

*/ public CustomerUpdateBuilder plusActions( @@ -69,7 +69,7 @@ public CustomerUpdateBuilder plusActions( } /** - * + *

Update actions to be performed on the Customer.

*/ public CustomerUpdateBuilder plusActions( @@ -82,7 +82,7 @@ public CustomerUpdateBuilder plusActions( } /** - * + *

Update actions to be performed on the Customer.

*/ public CustomerUpdateBuilder withActions( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateImpl.java index 15a453e6af7..260f2de6034 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateImpl.java @@ -35,7 +35,7 @@ public CustomerUpdateImpl() { } /** - * + *

Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

*/ public Long getVersion() { @@ -43,7 +43,7 @@ public Long getVersion() { } /** - * + *

Update actions to be performed on the Customer.

*/ public java.util.List getActions() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePassword.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePassword.java index 0bcb6a3d2b8..b5efd4fff7b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePassword.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePassword.java @@ -32,21 +32,22 @@ public interface MyCustomerChangePassword { /** - * + *

Expected version of the Customer on which the changes should be applied.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Current password of the Customer.

+ *

If the current password does not match, an InvalidCurrentPassword error is returned.

*/ @NotNull @JsonProperty("currentPassword") public String getCurrentPassword(); /** - * + *

New password to be set.

*/ @NotNull @JsonProperty("newPassword") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordBuilder.java index 5bdd1168e96..65964e600fc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordBuilder.java @@ -30,7 +30,7 @@ public class MyCustomerChangePasswordBuilder implements BuilderExpected version of the Customer on which the changes should be applied.

*/ public MyCustomerChangePasswordBuilder version(final Long version) { @@ -39,7 +39,8 @@ public MyCustomerChangePasswordBuilder version(final Long version) { } /** - * + *

Current password of the Customer.

+ *

If the current password does not match, an InvalidCurrentPassword error is returned.

*/ public MyCustomerChangePasswordBuilder currentPassword(final String currentPassword) { @@ -48,7 +49,7 @@ public MyCustomerChangePasswordBuilder currentPassword(final String currentPassw } /** - * + *

New password to be set.

*/ public MyCustomerChangePasswordBuilder newPassword(final String newPassword) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordImpl.java index 37ea4cb6553..bbdcff52abb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerChangePasswordImpl.java @@ -39,7 +39,7 @@ public MyCustomerChangePasswordImpl() { } /** - * + *

Expected version of the Customer on which the changes should be applied.

*/ public Long getVersion() { @@ -47,7 +47,8 @@ public Long getVersion() { } /** - * + *

Current password of the Customer.

+ *

If the current password does not match, an InvalidCurrentPassword error is returned.

*/ public String getCurrentPassword() { @@ -55,7 +56,7 @@ public String getCurrentPassword() { } /** - * + *

New password to be set.

*/ public String getNewPassword() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerify.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerify.java new file mode 100644 index 00000000000..90218471af2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerify.java @@ -0,0 +1,71 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * MyCustomerEmailVerify + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     MyCustomerEmailVerify myCustomerEmailVerify = MyCustomerEmailVerify.builder()
+ *             .tokenValue("{tokenValue}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = MyCustomerEmailVerifyImpl.class) +public interface MyCustomerEmailVerify { + + /** + *

Value of the token to verify Customer email.

+ */ + @NotNull + @JsonProperty("tokenValue") + public String getTokenValue(); + + public void setTokenValue(final String tokenValue); + + public static MyCustomerEmailVerify of() { + return new MyCustomerEmailVerifyImpl(); + } + + public static MyCustomerEmailVerify of(final MyCustomerEmailVerify template) { + MyCustomerEmailVerifyImpl instance = new MyCustomerEmailVerifyImpl(); + instance.setTokenValue(template.getTokenValue()); + return instance; + } + + public static MyCustomerEmailVerifyBuilder builder() { + return MyCustomerEmailVerifyBuilder.of(); + } + + public static MyCustomerEmailVerifyBuilder builder(final MyCustomerEmailVerify template) { + return MyCustomerEmailVerifyBuilder.of(template); + } + + default T withMyCustomerEmailVerify(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerifyBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerifyBuilder.java new file mode 100644 index 00000000000..c3898596582 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerifyBuilder.java @@ -0,0 +1,61 @@ + +package com.commercetools.api.models.customer; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * MyCustomerEmailVerifyBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     MyCustomerEmailVerify myCustomerEmailVerify = MyCustomerEmailVerify.builder()
+ *             .tokenValue("{tokenValue}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class MyCustomerEmailVerifyBuilder implements Builder { + + private String tokenValue; + + /** + *

Value of the token to verify Customer email.

+ */ + + public MyCustomerEmailVerifyBuilder tokenValue(final String tokenValue) { + this.tokenValue = tokenValue; + return this; + } + + public String getTokenValue() { + return this.tokenValue; + } + + public MyCustomerEmailVerify build() { + Objects.requireNonNull(tokenValue, MyCustomerEmailVerify.class + ": tokenValue is missing"); + return new MyCustomerEmailVerifyImpl(tokenValue); + } + + /** + * builds MyCustomerEmailVerify without checking for non null required values + */ + public MyCustomerEmailVerify buildUnchecked() { + return new MyCustomerEmailVerifyImpl(tokenValue); + } + + public static MyCustomerEmailVerifyBuilder of() { + return new MyCustomerEmailVerifyBuilder(); + } + + public static MyCustomerEmailVerifyBuilder of(final MyCustomerEmailVerify template) { + MyCustomerEmailVerifyBuilder builder = new MyCustomerEmailVerifyBuilder(); + builder.tokenValue = template.getTokenValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerifyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerifyImpl.java new file mode 100644 index 00000000000..2add00b2ce0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerEmailVerifyImpl.java @@ -0,0 +1,63 @@ + +package com.commercetools.api.models.customer; + +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; + +/** + * MyCustomerEmailVerify + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class MyCustomerEmailVerifyImpl implements MyCustomerEmailVerify, ModelBase { + + private String tokenValue; + + @JsonCreator + MyCustomerEmailVerifyImpl(@JsonProperty("tokenValue") final String tokenValue) { + this.tokenValue = tokenValue; + } + + public MyCustomerEmailVerifyImpl() { + } + + /** + *

Value of the token to verify Customer email.

+ */ + + public String getTokenValue() { + return this.tokenValue; + } + + public void setTokenValue(final String tokenValue) { + this.tokenValue = tokenValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + MyCustomerEmailVerifyImpl that = (MyCustomerEmailVerifyImpl) o; + + return new EqualsBuilder().append(tokenValue, that.tokenValue).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(tokenValue).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPassword.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPassword.java index 06f350b7642..05788886163 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPassword.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPassword.java @@ -31,14 +31,14 @@ public interface MyCustomerResetPassword { /** - * + *

Value of the token to reset the Customer password.

*/ @NotNull @JsonProperty("tokenValue") public String getTokenValue(); /** - * + *

New password to be set.

*/ @NotNull @JsonProperty("newPassword") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordBuilder.java index 34d310719da..7c0c883e5f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordBuilder.java @@ -27,7 +27,7 @@ public class MyCustomerResetPasswordBuilder implements BuilderValue of the token to reset the Customer password.

*/ public MyCustomerResetPasswordBuilder tokenValue(final String tokenValue) { @@ -36,7 +36,7 @@ public MyCustomerResetPasswordBuilder tokenValue(final String tokenValue) { } /** - * + *

New password to be set.

*/ public MyCustomerResetPasswordBuilder newPassword(final String newPassword) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordImpl.java index 432453d4daf..918e62ec049 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerResetPasswordImpl.java @@ -35,7 +35,7 @@ public MyCustomerResetPasswordImpl() { } /** - * + *

Value of the token to reset the Customer password.

*/ public String getTokenValue() { @@ -43,7 +43,7 @@ public String getTokenValue() { } /** - * + *

New password to be set.

*/ public String getNewPassword() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java index 0fb8bcc0040..582c370b440 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java @@ -31,28 +31,34 @@ public interface MyCustomerSignin { /** - * + *

Email address of the Customer treated as case-insensitive.

*/ @NotNull @JsonProperty("email") public String getEmail(); /** - * + *

Password of the Customer.

*/ @NotNull @JsonProperty("password") public String getPassword(); /** - * + *
    + *
  • If MergeWithExistingCustomerCart, LineItems of the anonymous Cart are merged with the recently modified active Customer Cart.
  • + *
  • If UseAsNewActiveCustomerCart, the anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.
  • + *
*/ @JsonProperty("activeCartSignInMode") public AnonymousCartSignInMode getActiveCartSignInMode(); /** - * + *
    + *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
  • + *
  • If false, only the prices, discounts, and tax rates are updated.
  • + *
*/ @JsonProperty("updateProductData") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java index f7af2ea47ea..d120c1bcf65 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java @@ -35,7 +35,7 @@ public class MyCustomerSigninBuilder implements Builder { private Boolean updateProductData; /** - * + *

Email address of the Customer treated as case-insensitive.

*/ public MyCustomerSigninBuilder email(final String email) { @@ -44,7 +44,7 @@ public MyCustomerSigninBuilder email(final String email) { } /** - * + *

Password of the Customer.

*/ public MyCustomerSigninBuilder password(final String password) { @@ -53,7 +53,10 @@ public MyCustomerSigninBuilder password(final String password) { } /** - * + *
    + *
  • If MergeWithExistingCustomerCart, LineItems of the anonymous Cart are merged with the recently modified active Customer Cart.
  • + *
  • If UseAsNewActiveCustomerCart, the anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.
  • + *
*/ public MyCustomerSigninBuilder activeCartSignInMode( @@ -63,7 +66,10 @@ public MyCustomerSigninBuilder activeCartSignInMode( } /** - * + *
    + *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
  • + *
  • If false, only the prices, discounts, and tax rates are updated.
  • + *
*/ public MyCustomerSigninBuilder updateProductData(@Nullable final Boolean updateProductData) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java index 4b5b8358483..e5149e42954 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java @@ -42,7 +42,7 @@ public MyCustomerSigninImpl() { } /** - * + *

Email address of the Customer treated as case-insensitive.

*/ public String getEmail() { @@ -50,7 +50,7 @@ public String getEmail() { } /** - * + *

Password of the Customer.

*/ public String getPassword() { @@ -58,7 +58,10 @@ public String getPassword() { } /** - * + *
    + *
  • If MergeWithExistingCustomerCart, LineItems of the anonymous Cart are merged with the recently modified active Customer Cart.
  • + *
  • If UseAsNewActiveCustomerCart, the anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.
  • + *
*/ public com.commercetools.api.models.customer.AnonymousCartSignInMode getActiveCartSignInMode() { @@ -66,7 +69,10 @@ public com.commercetools.api.models.customer.AnonymousCartSignInMode getActiveCa } /** - * + *
    + *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
  • + *
  • If false, only the prices, discounts, and tax rates are updated.
  • + *
*/ public Boolean getUpdateProductData() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededError.java index 576f205b2e6..60aaebf0d64 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededError.java @@ -22,7 +22,7 @@ *

  *     MaxResourceLimitExceededError maxResourceLimitExceededError = MaxResourceLimitExceededError.builder()
  *             .message("{message}")
- *             .exceededResource(ReferenceTypeId.BUSINESS_UNIT)
+ *             .exceededResource(ReferenceTypeId.ATTRIBUTE_GROUP)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorBuilder.java index 2a9c8999882..ca283d09925 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorBuilder.java @@ -14,7 +14,7 @@ *

  *     MaxResourceLimitExceededError maxResourceLimitExceededError = MaxResourceLimitExceededError.builder()
  *             .message("{message}")
- *             .exceededResource(ReferenceTypeId.BUSINESS_UNIT)
+ *             .exceededResource(ReferenceTypeId.ATTRIBUTE_GROUP)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundError.java index f96ca493c94..8d9b919a771 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundError.java @@ -22,7 +22,7 @@ *

  *     ReferencedResourceNotFoundError referencedResourceNotFoundError = ReferencedResourceNotFoundError.builder()
  *             .message("{message}")
- *             .typeId(ReferenceTypeId.BUSINESS_UNIT)
+ *             .typeId(ReferenceTypeId.ATTRIBUTE_GROUP)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorBuilder.java index db4bbed812d..ec30f8f6e57 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorBuilder.java @@ -16,7 +16,7 @@ *

  *     ReferencedResourceNotFoundError referencedResourceNotFoundError = ReferencedResourceNotFoundError.builder()
  *             .message("{message}")
- *             .typeId(ReferenceTypeId.BUSINESS_UNIT)
+ *             .typeId(ReferenceTypeId.ATTRIBUTE_GROUP)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateAction.java similarity index 95% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateAction.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateAction.java index d2993251490..636d311c2be 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateAction.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; @@ -8,7 +8,7 @@ import javax.validation.Valid; import javax.validation.constraints.NotNull; -import com.commercetools.api.models.me.MyBusinessUnitUpdateAction; +import com.commercetools.api.models.business_unit.AssociateDraft; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateActionBuilder.java similarity index 98% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateActionBuilder.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateActionBuilder.java index 4fd920941ba..bde12e8cddd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateActionBuilder.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.util.*; import java.util.function.Function; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateActionImpl.java similarity index 97% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateActionImpl.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateActionImpl.java index bd276138bdd..1a3ab314d92 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeAssociateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeAssociateActionImpl.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameAction.java similarity index 95% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameAction.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameAction.java index 7a3ce4f7f7c..20bd8529ab6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameAction.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; @@ -7,7 +7,6 @@ import javax.validation.constraints.NotNull; -import com.commercetools.api.models.me.MyBusinessUnitUpdateAction; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameActionBuilder.java similarity index 97% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameActionBuilder.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameActionBuilder.java index f9b3c7b48a7..a508a08e7bc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameActionBuilder.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameActionImpl.java similarity index 97% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameActionImpl.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameActionImpl.java index 494d3c3e13f..c99b1d02cac 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeNameActionImpl.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitAction.java similarity index 95% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitAction.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitAction.java index bad42953071..2dd298376f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitAction.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; @@ -8,7 +8,7 @@ import javax.validation.Valid; import javax.validation.constraints.NotNull; -import com.commercetools.api.models.me.MyBusinessUnitUpdateAction; +import com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitActionBuilder.java similarity index 98% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitActionBuilder.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitActionBuilder.java index d5bd027ef1b..ffb34efe63a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitActionBuilder.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.util.*; import java.util.function.Function; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitActionImpl.java similarity index 97% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitActionImpl.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitActionImpl.java index 4db50aaf481..dc6551367df 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitChangeParentUnitActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitChangeParentUnitActionImpl.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressAction.java similarity index 96% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressAction.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressAction.java index b860b11ad14..851256908d7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressAction.java @@ -1,11 +1,10 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; import java.util.function.Function; -import com.commercetools.api.models.me.MyBusinessUnitUpdateAction; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressActionBuilder.java similarity index 98% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressActionBuilder.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressActionBuilder.java index f7f707b652a..282e52141f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressActionBuilder.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressActionImpl.java similarity index 98% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressActionImpl.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressActionImpl.java index 0a6042ef144..4cb115c9cd1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultBillingAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultBillingAddressActionImpl.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressAction.java similarity index 96% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressAction.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressAction.java index 7ea12e18088..bd3005be5b7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressAction.java @@ -1,11 +1,10 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; import java.util.function.Function; -import com.commercetools.api.models.me.MyBusinessUnitUpdateAction; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressActionBuilder.java similarity index 98% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressActionBuilder.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressActionBuilder.java index 5a320f77b90..dc9d63c8f02 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressActionBuilder.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressActionImpl.java similarity index 98% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressActionImpl.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressActionImpl.java index 42a5134b739..b8f045a8212 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/MyBusinessUnitSetDefaultShippingAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitSetDefaultShippingAddressActionImpl.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.business_unit; +package com.commercetools.api.models.me; import java.time.*; import java.util.*; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateAction.java index 6a693930960..0028870180c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateAction.java @@ -7,11 +7,6 @@ import javax.validation.constraints.NotNull; -import com.commercetools.api.models.business_unit.MyBusinessUnitChangeAssociateAction; -import com.commercetools.api.models.business_unit.MyBusinessUnitChangeNameAction; -import com.commercetools.api.models.business_unit.MyBusinessUnitChangeParentUnitAction; -import com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultBillingAddressAction; -import com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultShippingAddressAction; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -35,9 +30,9 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitAddBillingAddressIdActionImpl.class, name = MyBusinessUnitAddBillingAddressIdAction.ADD_BILLING_ADDRESS_ID), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitAddShippingAddressIdActionImpl.class, name = MyBusinessUnitAddShippingAddressIdAction.ADD_SHIPPING_ADDRESS_ID), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitChangeAddressActionImpl.class, name = MyBusinessUnitChangeAddressAction.CHANGE_ADDRESS), - @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.MyBusinessUnitChangeAssociateActionImpl.class, name = MyBusinessUnitChangeAssociateAction.CHANGE_ASSOCIATE), - @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.MyBusinessUnitChangeNameActionImpl.class, name = MyBusinessUnitChangeNameAction.CHANGE_NAME), - @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.MyBusinessUnitChangeParentUnitActionImpl.class, name = MyBusinessUnitChangeParentUnitAction.CHANGE_PARENT_UNIT), + @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitChangeAssociateActionImpl.class, name = MyBusinessUnitChangeAssociateAction.CHANGE_ASSOCIATE), + @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitChangeNameActionImpl.class, name = MyBusinessUnitChangeNameAction.CHANGE_NAME), + @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitChangeParentUnitActionImpl.class, name = MyBusinessUnitChangeParentUnitAction.CHANGE_PARENT_UNIT), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitRemoveAddressActionImpl.class, name = MyBusinessUnitRemoveAddressAction.REMOVE_ADDRESS), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitRemoveAssociateActionImpl.class, name = MyBusinessUnitRemoveAssociateAction.REMOVE_ASSOCIATE), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitRemoveBillingAddressIdActionImpl.class, name = MyBusinessUnitRemoveBillingAddressIdAction.REMOVE_BILLING_ADDRESS_ID), @@ -47,8 +42,8 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitSetContactEmailActionImpl.class, name = MyBusinessUnitSetContactEmailAction.SET_CONTACT_EMAIL), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitSetCustomFieldActionImpl.class, name = MyBusinessUnitSetCustomFieldAction.SET_CUSTOM_FIELD), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitSetCustomTypeActionImpl.class, name = MyBusinessUnitSetCustomTypeAction.SET_CUSTOM_TYPE), - @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultBillingAddressActionImpl.class, name = MyBusinessUnitSetDefaultBillingAddressAction.SET_DEFAULT_BILLING_ADDRESS), - @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultShippingAddressActionImpl.class, name = MyBusinessUnitSetDefaultShippingAddressAction.SET_DEFAULT_SHIPPING_ADDRESS) }) + @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitSetDefaultBillingAddressActionImpl.class, name = MyBusinessUnitSetDefaultBillingAddressAction.SET_DEFAULT_BILLING_ADDRESS), + @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyBusinessUnitSetDefaultShippingAddressActionImpl.class, name = MyBusinessUnitSetDefaultShippingAddressAction.SET_DEFAULT_SHIPPING_ADDRESS) }) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "action", defaultImpl = MyBusinessUnitUpdateActionImpl.class, visible = true) @JsonDeserialize(as = MyBusinessUnitUpdateActionImpl.class) @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @@ -77,16 +72,16 @@ public static com.commercetools.api.models.me.MyBusinessUnitChangeAddressActionB return com.commercetools.api.models.me.MyBusinessUnitChangeAddressActionBuilder.of(); } - public static com.commercetools.api.models.business_unit.MyBusinessUnitChangeAssociateActionBuilder changeAssociateBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitChangeAssociateActionBuilder.of(); + public static com.commercetools.api.models.me.MyBusinessUnitChangeAssociateActionBuilder changeAssociateBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitChangeAssociateActionBuilder.of(); } - public static com.commercetools.api.models.business_unit.MyBusinessUnitChangeNameActionBuilder changeNameBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitChangeNameActionBuilder.of(); + public static com.commercetools.api.models.me.MyBusinessUnitChangeNameActionBuilder changeNameBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitChangeNameActionBuilder.of(); } - public static com.commercetools.api.models.business_unit.MyBusinessUnitChangeParentUnitActionBuilder changeParentUnitBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitChangeParentUnitActionBuilder.of(); + public static com.commercetools.api.models.me.MyBusinessUnitChangeParentUnitActionBuilder changeParentUnitBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitChangeParentUnitActionBuilder.of(); } public static com.commercetools.api.models.me.MyBusinessUnitRemoveAddressActionBuilder removeAddressBuilder() { @@ -125,12 +120,12 @@ public static com.commercetools.api.models.me.MyBusinessUnitSetCustomTypeActionB return com.commercetools.api.models.me.MyBusinessUnitSetCustomTypeActionBuilder.of(); } - public static com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultBillingAddressActionBuilder setDefaultBillingAddressBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultBillingAddressActionBuilder.of(); + public static com.commercetools.api.models.me.MyBusinessUnitSetDefaultBillingAddressActionBuilder setDefaultBillingAddressBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitSetDefaultBillingAddressActionBuilder.of(); } - public static com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultShippingAddressActionBuilder setDefaultShippingAddressBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultShippingAddressActionBuilder.of(); + public static com.commercetools.api.models.me.MyBusinessUnitSetDefaultShippingAddressActionBuilder setDefaultShippingAddressBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitSetDefaultShippingAddressActionBuilder.of(); } default T withMyBusinessUnitUpdateAction(Function helper) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateActionBuilder.java index 7ede045846f..b3a5a6cb162 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyBusinessUnitUpdateActionBuilder.java @@ -27,16 +27,16 @@ public com.commercetools.api.models.me.MyBusinessUnitChangeAddressActionBuilder return com.commercetools.api.models.me.MyBusinessUnitChangeAddressActionBuilder.of(); } - public com.commercetools.api.models.business_unit.MyBusinessUnitChangeAssociateActionBuilder changeAssociateBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitChangeAssociateActionBuilder.of(); + public com.commercetools.api.models.me.MyBusinessUnitChangeAssociateActionBuilder changeAssociateBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitChangeAssociateActionBuilder.of(); } - public com.commercetools.api.models.business_unit.MyBusinessUnitChangeNameActionBuilder changeNameBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitChangeNameActionBuilder.of(); + public com.commercetools.api.models.me.MyBusinessUnitChangeNameActionBuilder changeNameBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitChangeNameActionBuilder.of(); } - public com.commercetools.api.models.business_unit.MyBusinessUnitChangeParentUnitActionBuilder changeParentUnitBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitChangeParentUnitActionBuilder.of(); + public com.commercetools.api.models.me.MyBusinessUnitChangeParentUnitActionBuilder changeParentUnitBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitChangeParentUnitActionBuilder.of(); } public com.commercetools.api.models.me.MyBusinessUnitRemoveAddressActionBuilder removeAddressBuilder() { @@ -75,12 +75,12 @@ public com.commercetools.api.models.me.MyBusinessUnitSetCustomTypeActionBuilder return com.commercetools.api.models.me.MyBusinessUnitSetCustomTypeActionBuilder.of(); } - public com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultBillingAddressActionBuilder setDefaultBillingAddressBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultBillingAddressActionBuilder.of(); + public com.commercetools.api.models.me.MyBusinessUnitSetDefaultBillingAddressActionBuilder setDefaultBillingAddressBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitSetDefaultBillingAddressActionBuilder.of(); } - public com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultShippingAddressActionBuilder setDefaultShippingAddressBuilder() { - return com.commercetools.api.models.business_unit.MyBusinessUnitSetDefaultShippingAddressActionBuilder.of(); + public com.commercetools.api.models.me.MyBusinessUnitSetDefaultShippingAddressActionBuilder setDefaultShippingAddressBuilder() { + return com.commercetools.api.models.me.MyBusinessUnitSetDefaultShippingAddressActionBuilder.of(); } public static MyBusinessUnitUpdateActionBuilder of() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressAction.java index 4c7fe04567f..de77ac2713f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressAction.java @@ -15,7 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerAddAddressAction + *

Adding an address to the Customer produces the CustomerAddressAdded Message.

* *
* Example to create an instance using the builder pattern @@ -34,7 +34,7 @@ public interface MyCustomerAddAddressAction extends MyCustomerUpdateAction { String ADD_ADDRESS = "addAddress"; /** - * + *

Value to append to the addresses array.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionBuilder.java index 65f279934dd..b2ebdcd64ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionBuilder.java @@ -25,7 +25,7 @@ public class MyCustomerAddAddressActionBuilder implements BuilderValue to append to the addresses array.

*/ public MyCustomerAddAddressActionBuilder address( @@ -35,7 +35,7 @@ public MyCustomerAddAddressActionBuilder address( } /** - * + *

Value to append to the addresses array.

*/ public MyCustomerAddAddressActionBuilder address(final com.commercetools.api.models.common.BaseAddress address) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionImpl.java index cc68f1af2fc..7487006a93b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddAddressActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerAddAddressAction + *

Adding an address to the Customer produces the CustomerAddressAdded Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerAddAddressActionImpl implements MyCustomerAddAddressAction, ModelBase { @@ -44,7 +44,7 @@ public String getAction() { } /** - * + *

Value to append to the addresses array.

*/ public com.commercetools.api.models.common.BaseAddress getAddress() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdAction.java index cdd59ab797a..aad4af8ffd5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerAddBillingAddressIdAction + *

Adds an address from the addresses array to billingAddressIds. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface MyCustomerAddBillingAddressIdAction extends MyCustomerUpdateAct String ADD_BILLING_ADDRESS_ID = "addBillingAddressId"; /** - * + *

id of the Address to become a billing address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become a billing address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionBuilder.java index ecf052a6288..6d418e1f0ef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class MyCustomerAddBillingAddressIdActionBuilder implements Builderid of the Address to become a billing address.

*/ public MyCustomerAddBillingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public MyCustomerAddBillingAddressIdActionBuilder addressId(@Nullable final Stri } /** - * + *

key of the Address to become a billing address.

*/ public MyCustomerAddBillingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionImpl.java index 09f3a7ff680..8ca713a7280 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddBillingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerAddBillingAddressIdAction + *

Adds an address from the addresses array to billingAddressIds. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerAddBillingAddressIdActionImpl implements MyCustomerAddBillingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to become a billing address.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become a billing address.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdAction.java index 832e18fc278..4ec358a3d58 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerAddShippingAddressIdAction + *

Adds an address from the addresses array to shippingAddressIds. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface MyCustomerAddShippingAddressIdAction extends MyCustomerUpdateAc String ADD_SHIPPING_ADDRESS_ID = "addShippingAddressId"; /** - * + *

id of the Address to become a shipping address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become a shipping address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionBuilder.java index 99682d107b9..6ab0ac079ef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class MyCustomerAddShippingAddressIdActionBuilder implements Builderid of the Address to become a shipping address.

*/ public MyCustomerAddShippingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public MyCustomerAddShippingAddressIdActionBuilder addressId(@Nullable final Str } /** - * + *

key of the Address to become a shipping address.

*/ public MyCustomerAddShippingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionImpl.java index 1516d50b6ff..c23d3a69fa6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerAddShippingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerAddShippingAddressIdAction + *

Adds an address from the addresses array to shippingAddressIds. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerAddShippingAddressIdActionImpl implements MyCustomerAddShippingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to become a shipping address.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become a shipping address.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressAction.java index 08f225c5eb6..4c93b614194 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressAction.java @@ -15,7 +15,8 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerChangeAddressAction + *

Changing an address of the Customer produces the CustomerAddressChanged Message.

+ *

Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -34,21 +35,21 @@ public interface MyCustomerChangeAddressAction extends MyCustomerUpdateAction { String CHANGE_ADDRESS = "changeAddress"; /** - * + *

id of the Address to change.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to change.

*/ @JsonProperty("addressKey") public String getAddressKey(); /** - * + *

Value to set.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionBuilder.java index 24038b3b012..0c7732caaca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionBuilder.java @@ -33,7 +33,7 @@ public class MyCustomerChangeAddressActionBuilder implements Builderid of the Address to change.

*/ public MyCustomerChangeAddressActionBuilder addressId(@Nullable final String addressId) { @@ -42,7 +42,7 @@ public MyCustomerChangeAddressActionBuilder addressId(@Nullable final String add } /** - * + *

key of the Address to change.

*/ public MyCustomerChangeAddressActionBuilder addressKey(@Nullable final String addressKey) { @@ -51,7 +51,7 @@ public MyCustomerChangeAddressActionBuilder addressKey(@Nullable final String ad } /** - * + *

Value to set.

*/ public MyCustomerChangeAddressActionBuilder address( @@ -61,7 +61,7 @@ public MyCustomerChangeAddressActionBuilder address( } /** - * + *

Value to set.

*/ public MyCustomerChangeAddressActionBuilder address(final com.commercetools.api.models.common.BaseAddress address) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionImpl.java index 33f0805b1f5..2406d2cff3b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeAddressActionImpl.java @@ -15,7 +15,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerChangeAddressAction + *

Changing an address of the Customer produces the CustomerAddressChanged Message.

+ *

Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerChangeAddressActionImpl implements MyCustomerChangeAddressAction, ModelBase { @@ -51,7 +52,7 @@ public String getAction() { } /** - * + *

id of the Address to change.

*/ public String getAddressId() { @@ -59,7 +60,7 @@ public String getAddressId() { } /** - * + *

key of the Address to change.

*/ public String getAddressKey() { @@ -67,7 +68,7 @@ public String getAddressKey() { } /** - * + *

Value to set.

*/ public com.commercetools.api.models.common.BaseAddress getAddress() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailAction.java index 65624029eee..d8d189c4954 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerChangeEmailAction + *

Changing the email of the Customer produces the CustomerEmailChanged Message.

* *
* Example to create an instance using the builder pattern @@ -32,7 +32,7 @@ public interface MyCustomerChangeEmailAction extends MyCustomerUpdateAction { String CHANGE_EMAIL = "changeEmail"; /** - * + *

New value to set.

*/ @NotNull @JsonProperty("email") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionBuilder.java index ca2299c475b..2ff7ce48b91 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionBuilder.java @@ -24,7 +24,7 @@ public class MyCustomerChangeEmailActionBuilder implements BuilderNew value to set.

*/ public MyCustomerChangeEmailActionBuilder email(final String email) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionImpl.java index 9e4258bae7f..5ba9879cbca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerChangeEmailActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerChangeEmailAction + *

Changing the email of the Customer produces the CustomerEmailChanged Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerChangeEmailActionImpl implements MyCustomerChangeEmailAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

New value to set.

*/ public String getEmail() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraft.java index 7150e365bb7..6343deae1d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraft.java @@ -36,105 +36,112 @@ public interface MyCustomerDraft extends com.commercetools.api.models.CustomizableDraft { /** - * + *

Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ @NotNull @JsonProperty("email") public String getEmail(); /** - * + *

Password of the Customer.

*/ @NotNull @JsonProperty("password") public String getPassword(); /** - * + *

Given name (first name) of the Customer.

*/ @JsonProperty("firstName") public String getFirstName(); /** - * + *

Family name (last name) of the Customer.

*/ @JsonProperty("lastName") public String getLastName(); /** - * + *

Middle name of the Customer.

*/ @JsonProperty("middleName") public String getMiddleName(); /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ @JsonProperty("title") public String getTitle(); /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

+ */ + + @JsonProperty("salutation") + public String getSalutation(); + + /** + *

Date of birth of the Customer.

*/ @JsonProperty("dateOfBirth") public LocalDate getDateOfBirth(); /** - * + *

Company name of the Customer.

*/ @JsonProperty("companyName") public String getCompanyName(); /** - * + *

Unique VAT ID of the Customer.

*/ @JsonProperty("vatId") public String getVatId(); /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ @Valid @JsonProperty("addresses") public List getAddresses(); /** - *

The index of the address in the addresses array. The defaultShippingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

*/ @JsonProperty("defaultShippingAddress") public Long getDefaultShippingAddress(); /** - *

The index of the address in the addresses array. The defaultBillingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

*/ @JsonProperty("defaultBillingAddress") public Long getDefaultBillingAddress(); /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ @Valid @JsonProperty("custom") public CustomFieldsDraft getCustom(); /** - * + *

Preferred language of the Customer. Must be one of the languages supported by the Project.

*/ @JsonProperty("locale") public String getLocale(); /** - * + *

Sets the Stores for the Customer.

*/ @Valid @JsonProperty("stores") @@ -152,6 +159,8 @@ public interface MyCustomerDraft extends com.commercetools.api.models.Customizab public void setTitle(final String title); + public void setSalutation(final String salutation); + public void setDateOfBirth(final LocalDate dateOfBirth); public void setCompanyName(final String companyName); @@ -188,6 +197,7 @@ public static MyCustomerDraft of(final MyCustomerDraft template) { instance.setLastName(template.getLastName()); instance.setMiddleName(template.getMiddleName()); instance.setTitle(template.getTitle()); + instance.setSalutation(template.getSalutation()); instance.setDateOfBirth(template.getDateOfBirth()); instance.setCompanyName(template.getCompanyName()); instance.setVatId(template.getVatId()); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraftBuilder.java index 0af74d03a93..ce79ce62555 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerDraftBuilder.java @@ -41,6 +41,9 @@ public class MyCustomerDraftBuilder implements Builder { @Nullable private String title; + @Nullable + private String salutation; + @Nullable private java.time.LocalDate dateOfBirth; @@ -69,7 +72,7 @@ public class MyCustomerDraftBuilder implements Builder { private java.util.List stores; /** - * + *

Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ public MyCustomerDraftBuilder email(final String email) { @@ -78,7 +81,7 @@ public MyCustomerDraftBuilder email(final String email) { } /** - * + *

Password of the Customer.

*/ public MyCustomerDraftBuilder password(final String password) { @@ -87,7 +90,7 @@ public MyCustomerDraftBuilder password(final String password) { } /** - * + *

Given name (first name) of the Customer.

*/ public MyCustomerDraftBuilder firstName(@Nullable final String firstName) { @@ -96,7 +99,7 @@ public MyCustomerDraftBuilder firstName(@Nullable final String firstName) { } /** - * + *

Family name (last name) of the Customer.

*/ public MyCustomerDraftBuilder lastName(@Nullable final String lastName) { @@ -105,7 +108,7 @@ public MyCustomerDraftBuilder lastName(@Nullable final String lastName) { } /** - * + *

Middle name of the Customer.

*/ public MyCustomerDraftBuilder middleName(@Nullable final String middleName) { @@ -114,7 +117,7 @@ public MyCustomerDraftBuilder middleName(@Nullable final String middleName) { } /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ public MyCustomerDraftBuilder title(@Nullable final String title) { @@ -123,7 +126,16 @@ public MyCustomerDraftBuilder title(@Nullable final String title) { } /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

+ */ + + public MyCustomerDraftBuilder salutation(@Nullable final String salutation) { + this.salutation = salutation; + return this; + } + + /** + *

Date of birth of the Customer.

*/ public MyCustomerDraftBuilder dateOfBirth(@Nullable final java.time.LocalDate dateOfBirth) { @@ -132,7 +144,7 @@ public MyCustomerDraftBuilder dateOfBirth(@Nullable final java.time.LocalDate da } /** - * + *

Company name of the Customer.

*/ public MyCustomerDraftBuilder companyName(@Nullable final String companyName) { @@ -141,7 +153,7 @@ public MyCustomerDraftBuilder companyName(@Nullable final String companyName) { } /** - * + *

Unique VAT ID of the Customer.

*/ public MyCustomerDraftBuilder vatId(@Nullable final String vatId) { @@ -150,7 +162,7 @@ public MyCustomerDraftBuilder vatId(@Nullable final String vatId) { } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public MyCustomerDraftBuilder addresses( @@ -160,7 +172,7 @@ public MyCustomerDraftBuilder addresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public MyCustomerDraftBuilder addresses( @@ -170,7 +182,7 @@ public MyCustomerDraftBuilder addresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public MyCustomerDraftBuilder plusAddresses( @@ -183,7 +195,7 @@ public MyCustomerDraftBuilder plusAddresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public MyCustomerDraftBuilder plusAddresses( @@ -196,7 +208,7 @@ public MyCustomerDraftBuilder plusAddresses( } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public MyCustomerDraftBuilder withAddresses( @@ -207,7 +219,7 @@ public MyCustomerDraftBuilder withAddresses( } /** - *

The index of the address in the addresses array. The defaultShippingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

*/ public MyCustomerDraftBuilder defaultShippingAddress(@Nullable final Long defaultShippingAddress) { @@ -216,7 +228,7 @@ public MyCustomerDraftBuilder defaultShippingAddress(@Nullable final Long defaul } /** - *

The index of the address in the addresses array. The defaultBillingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

*/ public MyCustomerDraftBuilder defaultBillingAddress(@Nullable final Long defaultBillingAddress) { @@ -225,7 +237,7 @@ public MyCustomerDraftBuilder defaultBillingAddress(@Nullable final Long default } /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ public MyCustomerDraftBuilder custom( @@ -235,7 +247,7 @@ public MyCustomerDraftBuilder custom( } /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ public MyCustomerDraftBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFieldsDraft custom) { @@ -244,7 +256,7 @@ public MyCustomerDraftBuilder custom(@Nullable final com.commercetools.api.model } /** - * + *

Preferred language of the Customer. Must be one of the languages supported by the Project.

*/ public MyCustomerDraftBuilder locale(@Nullable final String locale) { @@ -253,7 +265,7 @@ public MyCustomerDraftBuilder locale(@Nullable final String locale) { } /** - * + *

Sets the Stores for the Customer.

*/ public MyCustomerDraftBuilder stores( @@ -263,7 +275,7 @@ public MyCustomerDraftBuilder stores( } /** - * + *

Sets the Stores for the Customer.

*/ public MyCustomerDraftBuilder stores( @@ -273,7 +285,7 @@ public MyCustomerDraftBuilder stores( } /** - * + *

Sets the Stores for the Customer.

*/ public MyCustomerDraftBuilder plusStores( @@ -286,7 +298,7 @@ public MyCustomerDraftBuilder plusStores( } /** - * + *

Sets the Stores for the Customer.

*/ public MyCustomerDraftBuilder plusStores( @@ -299,7 +311,7 @@ public MyCustomerDraftBuilder plusStores( } /** - * + *

Sets the Stores for the Customer.

*/ public MyCustomerDraftBuilder withStores( @@ -337,6 +349,11 @@ public String getTitle() { return this.title; } + @Nullable + public String getSalutation() { + return this.salutation; + } + @Nullable public java.time.LocalDate getDateOfBirth() { return this.dateOfBirth; @@ -385,7 +402,7 @@ public java.util.List addresses, @@ -68,6 +71,7 @@ public class MyCustomerDraftImpl implements MyCustomerDraft, ModelBase { this.lastName = lastName; this.middleName = middleName; this.title = title; + this.salutation = salutation; this.dateOfBirth = dateOfBirth; this.companyName = companyName; this.vatId = vatId; @@ -83,7 +87,7 @@ public MyCustomerDraftImpl() { } /** - * + *

Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

*/ public String getEmail() { @@ -91,7 +95,7 @@ public String getEmail() { } /** - * + *

Password of the Customer.

*/ public String getPassword() { @@ -99,7 +103,7 @@ public String getPassword() { } /** - * + *

Given name (first name) of the Customer.

*/ public String getFirstName() { @@ -107,7 +111,7 @@ public String getFirstName() { } /** - * + *

Family name (last name) of the Customer.

*/ public String getLastName() { @@ -115,7 +119,7 @@ public String getLastName() { } /** - * + *

Middle name of the Customer.

*/ public String getMiddleName() { @@ -123,7 +127,7 @@ public String getMiddleName() { } /** - * + *

Title of the Customer, for example, 'Dr.'.

*/ public String getTitle() { @@ -131,7 +135,15 @@ public String getTitle() { } /** - * + *

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

+ */ + + public String getSalutation() { + return this.salutation; + } + + /** + *

Date of birth of the Customer.

*/ public java.time.LocalDate getDateOfBirth() { @@ -139,7 +151,7 @@ public java.time.LocalDate getDateOfBirth() { } /** - * + *

Company name of the Customer.

*/ public String getCompanyName() { @@ -147,7 +159,7 @@ public String getCompanyName() { } /** - * + *

Unique VAT ID of the Customer.

*/ public String getVatId() { @@ -155,7 +167,7 @@ public String getVatId() { } /** - *

Sets the ID of each address to be unique in the addresses list.

+ *

Addresses of the Customer.

*/ public java.util.List getAddresses() { @@ -163,7 +175,7 @@ public java.util.List getAddres } /** - *

The index of the address in the addresses array. The defaultShippingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

*/ public Long getDefaultShippingAddress() { @@ -171,7 +183,7 @@ public Long getDefaultShippingAddress() { } /** - *

The index of the address in the addresses array. The defaultBillingAddressId of the customer will be set to the ID of that address.

+ *

Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

*/ public Long getDefaultBillingAddress() { @@ -179,7 +191,7 @@ public Long getDefaultBillingAddress() { } /** - *

The custom fields.

+ *

Custom Fields for the Customer.

*/ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { @@ -187,7 +199,7 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { } /** - * + *

Preferred language of the Customer. Must be one of the languages supported by the Project.

*/ public String getLocale() { @@ -195,7 +207,7 @@ public String getLocale() { } /** - * + *

Sets the Stores for the Customer.

*/ public java.util.List getStores() { @@ -226,6 +238,10 @@ public void setTitle(final String title) { this.title = title; } + public void setSalutation(final String salutation) { + this.salutation = salutation; + } + public void setDateOfBirth(final java.time.LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; } @@ -286,6 +302,7 @@ public boolean equals(Object o) { .append(lastName, that.lastName) .append(middleName, that.middleName) .append(title, that.title) + .append(salutation, that.salutation) .append(dateOfBirth, that.dateOfBirth) .append(companyName, that.companyName) .append(vatId, that.vatId) @@ -306,6 +323,7 @@ public int hashCode() { .append(lastName) .append(middleName) .append(title) + .append(salutation) .append(dateOfBirth) .append(companyName) .append(vatId) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressAction.java index d7bd6b95579..33700f2c77f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressAction.java @@ -11,7 +11,8 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerRemoveAddressAction + *

Removing an address of the Customer produces the CustomerAddressRemoved Message.

+ *

Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +30,14 @@ public interface MyCustomerRemoveAddressAction extends MyCustomerUpdateAction { String REMOVE_ADDRESS = "removeAddress"; /** - * + *

id of the Address to remove.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to remove.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionBuilder.java index 5c2e3ae18bf..8ef0c6d05b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionBuilder.java @@ -29,7 +29,7 @@ public class MyCustomerRemoveAddressActionBuilder implements Builderid of the Address to remove.

*/ public MyCustomerRemoveAddressActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public MyCustomerRemoveAddressActionBuilder addressId(@Nullable final String add } /** - * + *

key of the Address to remove.

*/ public MyCustomerRemoveAddressActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionImpl.java index 486f3e60f69..bf66ae0f4b8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveAddressActionImpl.java @@ -15,7 +15,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerRemoveAddressAction + *

Removing an address of the Customer produces the CustomerAddressRemoved Message.

+ *

Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerRemoveAddressActionImpl implements MyCustomerRemoveAddressAction, ModelBase { @@ -47,7 +48,7 @@ public String getAction() { } /** - * + *

id of the Address to remove.

*/ public String getAddressId() { @@ -55,7 +56,7 @@ public String getAddressId() { } /** - * + *

key of the Address to remove.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java index ba75fedc307..619421f3799 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerRemoveBillingAddressIdAction + *

Removes an existing billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface MyCustomerRemoveBillingAddressIdAction extends MyCustomerUpdate String REMOVE_BILLING_ADDRESS_ID = "removeBillingAddressId"; /** - * + *

id of the Address to remove from billingAddressesIds.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to remove from billingAddressesIds.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java index d967d93554e..abda2f024ab 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class MyCustomerRemoveBillingAddressIdActionBuilder implements Builderid of the Address to remove from billingAddressesIds.

*/ public MyCustomerRemoveBillingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -38,7 +38,7 @@ public MyCustomerRemoveBillingAddressIdActionBuilder addressId(@Nullable final S } /** - * + *

key of the Address to remove from billingAddressesIds.

*/ public MyCustomerRemoveBillingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java index f6f4292e3c0..672e5801451 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerRemoveBillingAddressIdAction + *

Removes an existing billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerRemoveBillingAddressIdActionImpl implements MyCustomerRemoveBillingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to remove from billingAddressesIds.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to remove from billingAddressesIds.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java index 94a2c782604..576f1187f18 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerRemoveShippingAddressIdAction + *

Removes an existing shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface MyCustomerRemoveShippingAddressIdAction extends MyCustomerUpdat String REMOVE_SHIPPING_ADDRESS_ID = "removeShippingAddressId"; /** - * + *

id of the Address to remove from shippingAddressesIds.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to remove from shippingAddressesIds.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java index d98adee2a87..ab898a27f89 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java @@ -30,7 +30,7 @@ public class MyCustomerRemoveShippingAddressIdActionBuilder private String addressKey; /** - * + *

id of the Address to remove from shippingAddressesIds.

*/ public MyCustomerRemoveShippingAddressIdActionBuilder addressId(@Nullable final String addressId) { @@ -39,7 +39,7 @@ public MyCustomerRemoveShippingAddressIdActionBuilder addressId(@Nullable final } /** - * + *

key of the Address to remove from shippingAddressesIds.

*/ public MyCustomerRemoveShippingAddressIdActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java index d0675906998..31dd78bfc47 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerRemoveShippingAddressIdAction + *

Removes an existing shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerRemoveShippingAddressIdActionImpl implements MyCustomerRemoveShippingAddressIdAction, ModelBase { @@ -47,7 +47,7 @@ public String getAction() { } /** - * + *

id of the Address to remove from shippingAddressesIds.

*/ public String getAddressId() { @@ -55,7 +55,7 @@ public String getAddressId() { } /** - * + *

key of the Address to remove from shippingAddressesIds.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameAction.java index f0edbf74ed5..7ea0df55c9e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerSetCompanyNameAction + *

Setting the companyName field on the Customer produces the CustomerCompanyNameSet Message.

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface MyCustomerSetCompanyNameAction extends MyCustomerUpdateAction { String SET_COMPANY_NAME = "setCompanyName"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("companyName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionBuilder.java index 9be734e6f54..ac3506d6b22 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetCompanyNameActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetCompanyNameActionBuilder companyName(@Nullable final String companyName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionImpl.java index c6236bb7cc5..26edafa99e0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetCompanyNameActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerSetCompanyNameAction + *

Setting the companyName field on the Customer produces the CustomerCompanyNameSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetCompanyNameActionImpl implements MyCustomerSetCompanyNameAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getCompanyName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthAction.java index 1af527cda0c..aa5ff5caa81 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthAction.java @@ -12,7 +12,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerSetDateOfBirthAction + *

Setting the date of birth of the Customer produces the CustomerDateOfBirthSet Message.

* *
* Example to create an instance using the builder pattern @@ -30,7 +30,7 @@ public interface MyCustomerSetDateOfBirthAction extends MyCustomerUpdateAction { String SET_DATE_OF_BIRTH = "setDateOfBirth"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("dateOfBirth") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionBuilder.java index 4e81d5b592c..320118e0330 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetDateOfBirthActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetDateOfBirthActionBuilder dateOfBirth(@Nullable final java.time.LocalDate dateOfBirth) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionImpl.java index fd17bb2e61b..cc6d25638e3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDateOfBirthActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerSetDateOfBirthAction + *

Setting the date of birth of the Customer produces the CustomerDateOfBirthSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetDateOfBirthActionImpl implements MyCustomerSetDateOfBirthAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public java.time.LocalDate getDateOfBirth() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressAction.java index 7faccff0fe6..6fcef299d92 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerSetDefaultBillingAddressAction + *

Sets the default billing address from addresses. If the address is not currently a billing address, it is added to billingAddressIds. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface MyCustomerSetDefaultBillingAddressAction extends MyCustomerUpda String SET_DEFAULT_BILLING_ADDRESS = "setDefaultBillingAddress"; /** - * + *

id of the Address to become the default billing address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become the default billing address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionBuilder.java index 8c0a4816ecd..051b4c2c423 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionBuilder.java @@ -30,7 +30,7 @@ public class MyCustomerSetDefaultBillingAddressActionBuilder private String addressKey; /** - * + *

id of the Address to become the default billing address.

*/ public MyCustomerSetDefaultBillingAddressActionBuilder addressId(@Nullable final String addressId) { @@ -39,7 +39,7 @@ public MyCustomerSetDefaultBillingAddressActionBuilder addressId(@Nullable final } /** - * + *

key of the Address to become the default billing address.

*/ public MyCustomerSetDefaultBillingAddressActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionImpl.java index 1e6b10e0178..fbf4d87ce6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultBillingAddressActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerSetDefaultBillingAddressAction + *

Sets the default billing address from addresses. If the address is not currently a billing address, it is added to billingAddressIds. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetDefaultBillingAddressActionImpl @@ -48,7 +48,7 @@ public String getAction() { } /** - * + *

id of the Address to become the default billing address.

*/ public String getAddressId() { @@ -56,7 +56,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become the default billing address.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressAction.java index c578dc01160..d69c370f9a0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerSetDefaultShippingAddressAction + *

Sets the default shipping address from addresses. If the address is not currently a shipping address, it is added to shippingAddressIds. Either addressId or addressKey is required.

* *
* Example to create an instance using the builder pattern @@ -29,14 +29,14 @@ public interface MyCustomerSetDefaultShippingAddressAction extends MyCustomerUpd String SET_DEFAULT_SHIPPING_ADDRESS = "setDefaultShippingAddress"; /** - * + *

id of the Address to become the default shipping address.

*/ @JsonProperty("addressId") public String getAddressId(); /** - * + *

key of the Address to become the default shipping address.

*/ @JsonProperty("addressKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionBuilder.java index a94bf745edc..7b93c1688ac 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionBuilder.java @@ -30,7 +30,7 @@ public class MyCustomerSetDefaultShippingAddressActionBuilder private String addressKey; /** - * + *

id of the Address to become the default shipping address.

*/ public MyCustomerSetDefaultShippingAddressActionBuilder addressId(@Nullable final String addressId) { @@ -39,7 +39,7 @@ public MyCustomerSetDefaultShippingAddressActionBuilder addressId(@Nullable fina } /** - * + *

key of the Address to become the default shipping address.

*/ public MyCustomerSetDefaultShippingAddressActionBuilder addressKey(@Nullable final String addressKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionImpl.java index 8d611328369..3e652db2bef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetDefaultShippingAddressActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerSetDefaultShippingAddressAction + *

Sets the default shipping address from addresses. If the address is not currently a shipping address, it is added to shippingAddressIds. Either addressId or addressKey is required.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetDefaultShippingAddressActionImpl @@ -48,7 +48,7 @@ public String getAction() { } /** - * + *

id of the Address to become the default shipping address.

*/ public String getAddressId() { @@ -56,7 +56,7 @@ public String getAddressId() { } /** - * + *

key of the Address to become the default shipping address.

*/ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java index 4343d2fd815..d4a407c3200 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerSetFirstNameAction + *

Setting the first name of the Customer produces the CustomerFirstNameSetMessage.

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface MyCustomerSetFirstNameAction extends MyCustomerUpdateAction { String SET_FIRST_NAME = "setFirstName"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("firstName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionBuilder.java index 8d36c8ebbb1..4ae2f605315 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetFirstNameActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetFirstNameActionBuilder firstName(@Nullable final String firstName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionImpl.java index 41be65f2ed3..97589d17efb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerSetFirstNameAction + *

Setting the first name of the Customer produces the CustomerFirstNameSetMessage.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetFirstNameActionImpl implements MyCustomerSetFirstNameAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getFirstName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java index 1818c24a041..b9b15958a14 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerSetLastNameAction + *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface MyCustomerSetLastNameAction extends MyCustomerUpdateAction { String SET_LAST_NAME = "setLastName"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("lastName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionBuilder.java index 8e672fc8147..dea93c92caa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetLastNameActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetLastNameActionBuilder lastName(@Nullable final String lastName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionImpl.java index aeac8194827..fd0e58b5663 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerSetLastNameAction + *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetLastNameActionImpl implements MyCustomerSetLastNameAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getLastName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleAction.java index 700b37d5a66..366784b7c8f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleAction.java @@ -29,7 +29,7 @@ public interface MyCustomerSetLocaleAction extends MyCustomerUpdateAction { String SET_LOCALE = "setLocale"; /** - * + *

Value to set. Must be one of the languages supported by the Project.

*/ @JsonProperty("locale") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionBuilder.java index e1284e89f3d..3f5617c971f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetLocaleActionBuilder implements BuilderValue to set. Must be one of the languages supported by the Project.

*/ public MyCustomerSetLocaleActionBuilder locale(@Nullable final String locale) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionImpl.java index f596f0abbe2..11a81948ec7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLocaleActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. Must be one of the languages supported by the Project.

*/ public String getLocale() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameAction.java index 968722144eb..178274a022d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameAction.java @@ -29,7 +29,7 @@ public interface MyCustomerSetMiddleNameAction extends MyCustomerUpdateAction { String SET_MIDDLE_NAME = "setMiddleName"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("middleName") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionBuilder.java index f91a6d22ed1..2f64f5fed1c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetMiddleNameActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetMiddleNameActionBuilder middleName(@Nullable final String middleName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionImpl.java index dd5b0de880c..94ca2d262d4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetMiddleNameActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getMiddleName() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationAction.java index 7e196187b60..696754a53b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationAction.java @@ -29,7 +29,7 @@ public interface MyCustomerSetSalutationAction extends MyCustomerUpdateAction { String SET_SALUTATION = "setSalutation"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("salutation") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionBuilder.java index b941f25b3da..66f133f23cf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetSalutationActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetSalutationActionBuilder salutation(@Nullable final String salutation) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionImpl.java index 9fa3366d149..6869c06d260 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetSalutationActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getSalutation() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleAction.java index af3cbdd9475..b304cbf142f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleAction.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MyCustomerSetTitleAction + *

Setting the title of the Customer produces the CustomerTitleSetMessage.

* *
* Example to create an instance using the builder pattern @@ -29,7 +29,7 @@ public interface MyCustomerSetTitleAction extends MyCustomerUpdateAction { String SET_TITLE = "setTitle"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("title") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionBuilder.java index bce32f35a9e..a87f4dcad32 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetTitleActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetTitleActionBuilder title(@Nullable final String title) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionImpl.java index 44227920d9f..707df1dd485 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetTitleActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MyCustomerSetTitleAction + *

Setting the title of the Customer produces the CustomerTitleSetMessage.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetTitleActionImpl implements MyCustomerSetTitleAction, ModelBase { @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getTitle() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdAction.java index 8d62f3b4141..fe45f4de6a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdAction.java @@ -29,7 +29,7 @@ public interface MyCustomerSetVatIdAction extends MyCustomerUpdateAction { String SET_VAT_ID = "setVatId"; /** - * + *

Value to set. If empty, any existing value is removed.

*/ @JsonProperty("vatId") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionBuilder.java index 7c59a5986df..e44075fb473 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionBuilder.java @@ -26,7 +26,7 @@ public class MyCustomerSetVatIdActionBuilder implements BuilderValue to set. If empty, any existing value is removed.

*/ public MyCustomerSetVatIdActionBuilder vatId(@Nullable final String vatId) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionImpl.java index 561d4b3ba5b..789d0ca941d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetVatIdActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - * + *

Value to set. If empty, any existing value is removed.

*/ public String getVatId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdate.java index dc2a57968ec..44c27daad27 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdate.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdate.java @@ -33,14 +33,14 @@ public interface MyCustomerUpdate extends com.commercetools.api.models.ResourceUpdate { /** - * + *

Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Update actions to be performed on the Customer.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateBuilder.java index 552349017af..b1ef05a9fbf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateBuilder.java @@ -28,7 +28,7 @@ public class MyCustomerUpdateBuilder implements Builder { private java.util.List actions; /** - * + *

Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

*/ public MyCustomerUpdateBuilder version(final Long version) { @@ -37,7 +37,7 @@ public MyCustomerUpdateBuilder version(final Long version) { } /** - * + *

Update actions to be performed on the Customer.

*/ public MyCustomerUpdateBuilder actions(final com.commercetools.api.models.me.MyCustomerUpdateAction... actions) { @@ -46,7 +46,7 @@ public MyCustomerUpdateBuilder actions(final com.commercetools.api.models.me.MyC } /** - * + *

Update actions to be performed on the Customer.

*/ public MyCustomerUpdateBuilder actions( @@ -56,7 +56,7 @@ public MyCustomerUpdateBuilder actions( } /** - * + *

Update actions to be performed on the Customer.

*/ public MyCustomerUpdateBuilder plusActions( @@ -69,7 +69,7 @@ public MyCustomerUpdateBuilder plusActions( } /** - * + *

Update actions to be performed on the Customer.

*/ public MyCustomerUpdateBuilder plusActions( @@ -82,7 +82,7 @@ public MyCustomerUpdateBuilder plusActions( } /** - * + *

Update actions to be performed on the Customer.

*/ public MyCustomerUpdateBuilder withActions( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateImpl.java index 28d4096257f..e0a9af48445 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerUpdateImpl.java @@ -35,7 +35,7 @@ public MyCustomerUpdateImpl() { } /** - * + *

Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

*/ public Long getVersion() { @@ -43,7 +43,7 @@ public Long getVersion() { } /** - * + *

Update actions to be performed on the Customer.

*/ public java.util.List getActions() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessage.java index 873e6f10b85..e2aa86c4b43 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessage.java @@ -39,7 +39,7 @@ public interface CustomerPasswordUpdatedMessage extends Message { String CUSTOMER_PASSWORD_UPDATED = "CustomerPasswordUpdated"; /** - *

Whether the Customer's password was updated during the Customer's Password Reset workflow.

+ *

Whether the Customer's password was updated during the Reset password or Change password flow.

*/ @NotNull @JsonProperty("reset") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageBuilder.java index abae4826f01..41ecaf938a6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageBuilder.java @@ -193,7 +193,7 @@ public CustomerPasswordUpdatedMessageBuilder resourceUserProvidedIdentifiers( } /** - *

Whether the Customer's password was updated during the Customer's Password Reset workflow.

+ *

Whether the Customer's password was updated during the Reset password or Change password flow.

*/ public CustomerPasswordUpdatedMessageBuilder reset(final Boolean reset) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageImpl.java index e3ce951928b..085ca4a4d83 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessageImpl.java @@ -162,7 +162,7 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU } /** - *

Whether the Customer's password was updated during the Customer's Password Reset workflow.

+ *

Whether the Customer's password was updated during the Reset password or Change password flow.

*/ public Boolean getReset() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayload.java index f55ad0283ff..df7842caa96 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayload.java @@ -32,7 +32,7 @@ public interface CustomerPasswordUpdatedMessagePayload extends MessagePayload { String CUSTOMER_PASSWORD_UPDATED = "CustomerPasswordUpdated"; /** - *

Whether the Customer's password was updated during the Customer's Password Reset workflow.

+ *

Whether the Customer's password was updated during the Reset password or Change password flow.

*/ @NotNull @JsonProperty("reset") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadBuilder.java index 12dfb59eb0a..98a4ca6c457 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadBuilder.java @@ -24,7 +24,7 @@ public class CustomerPasswordUpdatedMessagePayloadBuilder implements BuilderWhether the Customer's password was updated during the Customer's Password Reset workflow.

+ *

Whether the Customer's password was updated during the Reset password or Change password flow.

*/ public CustomerPasswordUpdatedMessagePayloadBuilder reset(final Boolean reset) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadImpl.java index 93e6fb90487..91a67e3bc09 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordUpdatedMessagePayloadImpl.java @@ -43,7 +43,7 @@ public String getType() { } /** - *

Whether the Customer's password was updated during the Customer's Password Reset workflow.

+ *

Whether the Customer's password was updated during the Reset password or Change password flow.

*/ public Boolean getReset() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessage.java index c104bfceda8..a4a89524583 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessage.java @@ -42,6 +42,7 @@ public interface PaymentStatusInterfaceCodeSetMessage extends Message { *

Unique identifier for the Payment for which the Set StatusInterfaceCode update action was applied.

*/ @NotNull + @Deprecated @JsonProperty("paymentId") public String getPaymentId(); @@ -52,6 +53,7 @@ public interface PaymentStatusInterfaceCodeSetMessage extends Message { @JsonProperty("interfaceCode") public String getInterfaceCode(); + @Deprecated public void setPaymentId(final String paymentId); public void setInterfaceCode(final String interfaceCode); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageBuilder.java index 305d33f5749..9935ca6070d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageBuilder.java @@ -54,6 +54,8 @@ public class PaymentStatusInterfaceCodeSetMessageBuilder implements BuilderUnique identifier for the Payment for which the Set StatusInterfaceCode update action was applied.

*/ - + @Deprecated public PaymentStatusInterfaceCodeSetMessageBuilder paymentId(final String paymentId) { this.paymentId = paymentId; return this; @@ -256,6 +258,8 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU return this.resourceUserProvidedIdentifiers; } + @Deprecated + public String getPaymentId() { return this.paymentId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageImpl.java index 3bddb02337a..f7ae75b754c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessageImpl.java @@ -42,6 +42,7 @@ public class PaymentStatusInterfaceCodeSetMessageImpl implements PaymentStatusIn private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + @Deprecated private String paymentId; private String interfaceCode; @@ -169,7 +170,7 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU /** *

Unique identifier for the Payment for which the Set StatusInterfaceCode update action was applied.

*/ - + @Deprecated public String getPaymentId() { return this.paymentId; } @@ -223,6 +224,7 @@ public void setResourceUserProvidedIdentifiers( this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; } + @Deprecated public void setPaymentId(final String paymentId) { this.paymentId = paymentId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayload.java index 3e213fa4ca9..6559a580aeb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayload.java @@ -35,6 +35,7 @@ public interface PaymentStatusInterfaceCodeSetMessagePayload extends MessagePayl *

Unique identifier for the Payment for which the Set StatusInterfaceCode update action was applied.

*/ @NotNull + @Deprecated @JsonProperty("paymentId") public String getPaymentId(); @@ -45,6 +46,7 @@ public interface PaymentStatusInterfaceCodeSetMessagePayload extends MessagePayl @JsonProperty("interfaceCode") public String getInterfaceCode(); + @Deprecated public void setPaymentId(final String paymentId); public void setInterfaceCode(final String interfaceCode); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadBuilder.java index a8c67aca426..69d1378106c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadBuilder.java @@ -24,6 +24,8 @@ public class PaymentStatusInterfaceCodeSetMessagePayloadBuilder implements Builder { + @Deprecated + private String paymentId; @Nullable @@ -32,7 +34,7 @@ public class PaymentStatusInterfaceCodeSetMessagePayloadBuilder /** *

Unique identifier for the Payment for which the Set StatusInterfaceCode update action was applied.

*/ - + @Deprecated public PaymentStatusInterfaceCodeSetMessagePayloadBuilder paymentId(final String paymentId) { this.paymentId = paymentId; return this; @@ -47,6 +49,8 @@ public PaymentStatusInterfaceCodeSetMessagePayloadBuilder interfaceCode(@Nullabl return this; } + @Deprecated + public String getPaymentId() { return this.paymentId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadImpl.java index 4346689f2c9..897229e3ab2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/PaymentStatusInterfaceCodeSetMessagePayloadImpl.java @@ -23,6 +23,7 @@ public class PaymentStatusInterfaceCodeSetMessagePayloadImpl private String type; + @Deprecated private String paymentId; private String interfaceCode; @@ -50,7 +51,7 @@ public String getType() { /** *

Unique identifier for the Payment for which the Set StatusInterfaceCode update action was applied.

*/ - + @Deprecated public String getPaymentId() { return this.paymentId; } @@ -63,6 +64,7 @@ public String getInterfaceCode() { return this.interfaceCode; } + @Deprecated public void setPaymentId(final String paymentId) { this.paymentId = paymentId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java index d7ab97eccbf..7bb4ecfd782 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java @@ -34,7 +34,7 @@ public interface OrderFromQuoteDraft { /** - *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also if the Quote has expired (validTo check).

+ *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also fail if the Quote has expired (validTo check).

*/ @NotNull @Valid @@ -48,6 +48,13 @@ public interface OrderFromQuoteDraft { @JsonProperty("version") public Long getVersion(); + /** + *

If true, the quoteState of the referenced Quote will be set to Accepted.

+ */ + + @JsonProperty("quoteStateToAccepted") + public Boolean getQuoteStateToAccepted(); + /** *

String that uniquely identifies an order. It can be used to create more human-readable (in contrast to ID) identifier for the order. It should be unique across a project. Once it's set it cannot be changed. For easier use on Get, Update and Delete actions we suggest assigning order numbers that match the regular expression [a-z0-9_\-]{2,36}.

*/ @@ -87,6 +94,8 @@ public interface OrderFromQuoteDraft { public void setVersion(final Long version); + public void setQuoteStateToAccepted(final Boolean quoteStateToAccepted); + public void setOrderNumber(final String orderNumber); public void setPaymentState(final PaymentState paymentState); @@ -105,6 +114,7 @@ public static OrderFromQuoteDraft of(final OrderFromQuoteDraft template) { OrderFromQuoteDraftImpl instance = new OrderFromQuoteDraftImpl(); instance.setQuote(template.getQuote()); instance.setVersion(template.getVersion()); + instance.setQuoteStateToAccepted(template.getQuoteStateToAccepted()); instance.setOrderNumber(template.getOrderNumber()); instance.setPaymentState(template.getPaymentState()); instance.setShipmentState(template.getShipmentState()); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java index 201636e72ab..d044b6be32d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java @@ -29,6 +29,9 @@ public class OrderFromQuoteDraftBuilder implements Builder private Long version; + @Nullable + private Boolean quoteStateToAccepted; + @Nullable private String orderNumber; @@ -45,7 +48,7 @@ public class OrderFromQuoteDraftBuilder implements Builder private com.commercetools.api.models.state.StateResourceIdentifier state; /** - *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also if the Quote has expired (validTo check).

+ *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also fail if the Quote has expired (validTo check).

*/ public OrderFromQuoteDraftBuilder quote( @@ -55,7 +58,7 @@ public OrderFromQuoteDraftBuilder quote( } /** - *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also if the Quote has expired (validTo check).

+ *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also fail if the Quote has expired (validTo check).

*/ public OrderFromQuoteDraftBuilder quote(final com.commercetools.api.models.quote.QuoteResourceIdentifier quote) { @@ -72,6 +75,15 @@ public OrderFromQuoteDraftBuilder version(final Long version) { return this; } + /** + *

If true, the quoteState of the referenced Quote will be set to Accepted.

+ */ + + public OrderFromQuoteDraftBuilder quoteStateToAccepted(@Nullable final Boolean quoteStateToAccepted) { + this.quoteStateToAccepted = quoteStateToAccepted; + return this; + } + /** *

String that uniquely identifies an order. It can be used to create more human-readable (in contrast to ID) identifier for the order. It should be unique across a project. Once it's set it cannot be changed. For easier use on Get, Update and Delete actions we suggest assigning order numbers that match the regular expression [a-z0-9_\-]{2,36}.

*/ @@ -139,6 +151,11 @@ public Long getVersion() { return this.version; } + @Nullable + public Boolean getQuoteStateToAccepted() { + return this.quoteStateToAccepted; + } + @Nullable public String getOrderNumber() { return this.orderNumber; @@ -167,14 +184,16 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { public OrderFromQuoteDraft build() { Objects.requireNonNull(quote, OrderFromQuoteDraft.class + ": quote is missing"); Objects.requireNonNull(version, OrderFromQuoteDraft.class + ": version is missing"); - return new OrderFromQuoteDraftImpl(quote, version, orderNumber, paymentState, shipmentState, orderState, state); + return new OrderFromQuoteDraftImpl(quote, version, quoteStateToAccepted, orderNumber, paymentState, + shipmentState, orderState, state); } /** * builds OrderFromQuoteDraft without checking for non null required values */ public OrderFromQuoteDraft buildUnchecked() { - return new OrderFromQuoteDraftImpl(quote, version, orderNumber, paymentState, shipmentState, orderState, state); + return new OrderFromQuoteDraftImpl(quote, version, quoteStateToAccepted, orderNumber, paymentState, + shipmentState, orderState, state); } public static OrderFromQuoteDraftBuilder of() { @@ -185,6 +204,7 @@ public static OrderFromQuoteDraftBuilder of(final OrderFromQuoteDraft template) OrderFromQuoteDraftBuilder builder = new OrderFromQuoteDraftBuilder(); builder.quote = template.getQuote(); builder.version = template.getVersion(); + builder.quoteStateToAccepted = template.getQuoteStateToAccepted(); builder.orderNumber = template.getOrderNumber(); builder.paymentState = template.getPaymentState(); builder.shipmentState = template.getShipmentState(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java index 92c6ca8d2e4..062be9b16aa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java @@ -24,6 +24,8 @@ public class OrderFromQuoteDraftImpl implements OrderFromQuoteDraft, ModelBase { private Long version; + private Boolean quoteStateToAccepted; + private String orderNumber; private com.commercetools.api.models.order.PaymentState paymentState; @@ -37,13 +39,16 @@ public class OrderFromQuoteDraftImpl implements OrderFromQuoteDraft, ModelBase { @JsonCreator OrderFromQuoteDraftImpl( @JsonProperty("quote") final com.commercetools.api.models.quote.QuoteResourceIdentifier quote, - @JsonProperty("version") final Long version, @JsonProperty("orderNumber") final String orderNumber, + @JsonProperty("version") final Long version, + @JsonProperty("quoteStateToAccepted") final Boolean quoteStateToAccepted, + @JsonProperty("orderNumber") final String orderNumber, @JsonProperty("paymentState") final com.commercetools.api.models.order.PaymentState paymentState, @JsonProperty("shipmentState") final com.commercetools.api.models.order.ShipmentState shipmentState, @JsonProperty("orderState") final com.commercetools.api.models.order.OrderState orderState, @JsonProperty("state") final com.commercetools.api.models.state.StateResourceIdentifier state) { this.quote = quote; this.version = version; + this.quoteStateToAccepted = quoteStateToAccepted; this.orderNumber = orderNumber; this.paymentState = paymentState; this.shipmentState = shipmentState; @@ -55,7 +60,7 @@ public OrderFromQuoteDraftImpl() { } /** - *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also if the Quote has expired (validTo check).

+ *

ResourceIdentifier of the Quote from which this Order is created. If the Quote has QuoteState in Accepted, Declined or Withdrawn then the order creation will fail. The creation will also fail if the Quote has expired (validTo check).

*/ public com.commercetools.api.models.quote.QuoteResourceIdentifier getQuote() { @@ -70,6 +75,14 @@ public Long getVersion() { return this.version; } + /** + *

If true, the quoteState of the referenced Quote will be set to Accepted.

+ */ + + public Boolean getQuoteStateToAccepted() { + return this.quoteStateToAccepted; + } + /** *

String that uniquely identifies an order. It can be used to create more human-readable (in contrast to ID) identifier for the order. It should be unique across a project. Once it's set it cannot be changed. For easier use on Get, Update and Delete actions we suggest assigning order numbers that match the regular expression [a-z0-9_\-]{2,36}.

*/ @@ -118,6 +131,10 @@ public void setVersion(final Long version) { this.version = version; } + public void setQuoteStateToAccepted(final Boolean quoteStateToAccepted) { + this.quoteStateToAccepted = quoteStateToAccepted; + } + public void setOrderNumber(final String orderNumber) { this.orderNumber = orderNumber; } @@ -150,6 +167,7 @@ public boolean equals(Object o) { return new EqualsBuilder().append(quote, that.quote) .append(version, that.version) + .append(quoteStateToAccepted, that.quoteStateToAccepted) .append(orderNumber, that.orderNumber) .append(paymentState, that.paymentState) .append(shipmentState, that.shipmentState) @@ -162,6 +180,7 @@ public boolean equals(Object o) { public int hashCode() { return new HashCodeBuilder(17, 37).append(quote) .append(version) + .append(quoteStateToAccepted) .append(orderNumber) .append(paymentState) .append(shipmentState) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java index ece718be457..6e548fd4a15 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java @@ -41,9 +41,9 @@ public interface OrderSearchRequest { /** *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

*/ - + @Valid @JsonProperty("sort") - public String getSort(); + public List getSort(); /** *

The maximum number of search results to be returned.

@@ -61,7 +61,10 @@ public interface OrderSearchRequest { public void setQuery(final OrderSearchQuery query); - public void setSort(final String sort); + @JsonIgnore + public void setSort(final OrderSearchSorting... sort); + + public void setSort(final List sort); public void setLimit(final Integer limit); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java index 764e340f058..7df77656e08 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java @@ -27,7 +27,7 @@ public class OrderSearchRequestBuilder implements Builder { private com.commercetools.api.models.order.OrderSearchQuery query; @Nullable - private String sort; + private java.util.List sort; @Nullable private Integer limit; @@ -58,11 +58,59 @@ public OrderSearchRequestBuilder query(final com.commercetools.api.models.order. *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

*/ - public OrderSearchRequestBuilder sort(@Nullable final String sort) { + public OrderSearchRequestBuilder sort( + @Nullable final com.commercetools.api.models.order.OrderSearchSorting... sort) { + this.sort = new ArrayList<>(Arrays.asList(sort)); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ */ + + public OrderSearchRequestBuilder sort( + @Nullable final java.util.List sort) { this.sort = sort; return this; } + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ */ + + public OrderSearchRequestBuilder plusSort( + @Nullable final com.commercetools.api.models.order.OrderSearchSorting... sort) { + if (this.sort == null) { + this.sort = new ArrayList<>(); + } + this.sort.addAll(Arrays.asList(sort)); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ */ + + public OrderSearchRequestBuilder plusSort( + Function builder) { + if (this.sort == null) { + this.sort = new ArrayList<>(); + } + this.sort.add(builder.apply(com.commercetools.api.models.order.OrderSearchSortingBuilder.of()).build()); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ */ + + public OrderSearchRequestBuilder withSort( + Function builder) { + this.sort = new ArrayList<>(); + this.sort.add(builder.apply(com.commercetools.api.models.order.OrderSearchSortingBuilder.of()).build()); + return this; + } + /** *

The maximum number of search results to be returned.

*/ @@ -86,7 +134,7 @@ public com.commercetools.api.models.order.OrderSearchQuery getQuery() { } @Nullable - public String getSort() { + public java.util.List getSort() { return this.sort; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java index be6cd65b52a..d08b5a18ed0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java @@ -22,7 +22,7 @@ public class OrderSearchRequestImpl implements OrderSearchRequest, ModelBase { private com.commercetools.api.models.order.OrderSearchQuery query; - private String sort; + private java.util.List sort; private Integer limit; @@ -30,8 +30,8 @@ public class OrderSearchRequestImpl implements OrderSearchRequest, ModelBase { @JsonCreator OrderSearchRequestImpl(@JsonProperty("query") final com.commercetools.api.models.order.OrderSearchQuery query, - @JsonProperty("sort") final String sort, @JsonProperty("limit") final Integer limit, - @JsonProperty("offset") final Integer offset) { + @JsonProperty("sort") final java.util.List sort, + @JsonProperty("limit") final Integer limit, @JsonProperty("offset") final Integer offset) { this.query = query; this.sort = sort; this.limit = limit; @@ -53,7 +53,7 @@ public com.commercetools.api.models.order.OrderSearchQuery getQuery() { *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

*/ - public String getSort() { + public java.util.List getSort() { return this.sort; } @@ -77,7 +77,11 @@ public void setQuery(final com.commercetools.api.models.order.OrderSearchQuery q this.query = query; } - public void setSort(final String sort) { + public void setSort(final com.commercetools.api.models.order.OrderSearchSorting... sort) { + this.sort = new ArrayList<>(Arrays.asList(sort)); + } + + public void setSort(final java.util.List sort) { this.sort = sort; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSorting.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSorting.java new file mode 100644 index 00000000000..8244b7acc71 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSorting.java @@ -0,0 +1,58 @@ + +package com.commercetools.api.models.order; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * OrderSearchSorting + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     OrderSearchSorting orderSearchSorting = OrderSearchSorting.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = OrderSearchSortingImpl.class) +public interface OrderSearchSorting { + + public static OrderSearchSorting of() { + return new OrderSearchSortingImpl(); + } + + public static OrderSearchSorting of(final OrderSearchSorting template) { + OrderSearchSortingImpl instance = new OrderSearchSortingImpl(); + return instance; + } + + public static OrderSearchSortingBuilder builder() { + return OrderSearchSortingBuilder.of(); + } + + public static OrderSearchSortingBuilder builder(final OrderSearchSorting template) { + return OrderSearchSortingBuilder.of(template); + } + + default T withOrderSearchSorting(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSortingBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSortingBuilder.java new file mode 100644 index 00000000000..a7a7cf0f163 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSortingBuilder.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.order; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * OrderSearchSortingBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     OrderSearchSorting orderSearchSorting = OrderSearchSorting.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class OrderSearchSortingBuilder implements Builder { + + public OrderSearchSorting build() { + return new OrderSearchSortingImpl(); + } + + /** + * builds OrderSearchSorting without checking for non null required values + */ + public OrderSearchSorting buildUnchecked() { + return new OrderSearchSortingImpl(); + } + + public static OrderSearchSortingBuilder of() { + return new OrderSearchSortingBuilder(); + } + + public static OrderSearchSortingBuilder of(final OrderSearchSorting template) { + OrderSearchSortingBuilder builder = new OrderSearchSortingBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSortingImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSortingImpl.java new file mode 100644 index 00000000000..5b2554e683e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchSortingImpl.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.order; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +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; + +/** + * OrderSearchSorting + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class OrderSearchSortingImpl implements OrderSearchSorting, ModelBase { + + @JsonCreator + OrderSearchSortingImpl() { + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + OrderSearchSortingImpl that = (OrderSearchSortingImpl) o; + + return new EqualsBuilder().isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountAction.java index 790654cdedd..d983aa94bb2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountAction.java @@ -48,10 +48,19 @@ public interface StagedOrderSetLineItemTaxAmountAction extends StagedOrderUpdate @JsonProperty("externalTaxAmount") public ExternalTaxAmountDraft getExternalTaxAmount(); + /** + *

key of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + @JsonProperty("shippingKey") + public String getShippingKey(); + public void setLineItemId(final String lineItemId); public void setExternalTaxAmount(final ExternalTaxAmountDraft externalTaxAmount); + public void setShippingKey(final String shippingKey); + public static StagedOrderSetLineItemTaxAmountAction of() { return new StagedOrderSetLineItemTaxAmountActionImpl(); } @@ -60,6 +69,7 @@ public static StagedOrderSetLineItemTaxAmountAction of(final StagedOrderSetLineI StagedOrderSetLineItemTaxAmountActionImpl instance = new StagedOrderSetLineItemTaxAmountActionImpl(); instance.setLineItemId(template.getLineItemId()); instance.setExternalTaxAmount(template.getExternalTaxAmount()); + instance.setShippingKey(template.getShippingKey()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionBuilder.java index 2702d83b3fd..7a0605f1bb4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionBuilder.java @@ -29,6 +29,9 @@ public class StagedOrderSetLineItemTaxAmountActionBuilder implements Builderkey of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + public StagedOrderSetLineItemTaxAmountActionBuilder shippingKey(@Nullable final String shippingKey) { + this.shippingKey = shippingKey; + return this; + } + public String getLineItemId() { return this.lineItemId; } @@ -68,16 +80,21 @@ public com.commercetools.api.models.cart.ExternalTaxAmountDraft getExternalTaxAm return this.externalTaxAmount; } + @Nullable + public String getShippingKey() { + return this.shippingKey; + } + public StagedOrderSetLineItemTaxAmountAction build() { Objects.requireNonNull(lineItemId, StagedOrderSetLineItemTaxAmountAction.class + ": lineItemId is missing"); - return new StagedOrderSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount); + return new StagedOrderSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount, shippingKey); } /** * builds StagedOrderSetLineItemTaxAmountAction without checking for non null required values */ public StagedOrderSetLineItemTaxAmountAction buildUnchecked() { - return new StagedOrderSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount); + return new StagedOrderSetLineItemTaxAmountActionImpl(lineItemId, externalTaxAmount, shippingKey); } public static StagedOrderSetLineItemTaxAmountActionBuilder of() { @@ -89,6 +106,7 @@ public static StagedOrderSetLineItemTaxAmountActionBuilder of( StagedOrderSetLineItemTaxAmountActionBuilder builder = new StagedOrderSetLineItemTaxAmountActionBuilder(); builder.lineItemId = template.getLineItemId(); builder.externalTaxAmount = template.getExternalTaxAmount(); + builder.shippingKey = template.getShippingKey(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionImpl.java index 7386d3811d1..5c6a37ed2b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxAmountActionImpl.java @@ -26,11 +26,15 @@ public class StagedOrderSetLineItemTaxAmountActionImpl implements StagedOrderSet private com.commercetools.api.models.cart.ExternalTaxAmountDraft externalTaxAmount; + private String shippingKey; + @JsonCreator StagedOrderSetLineItemTaxAmountActionImpl(@JsonProperty("lineItemId") final String lineItemId, - @JsonProperty("externalTaxAmount") final com.commercetools.api.models.cart.ExternalTaxAmountDraft externalTaxAmount) { + @JsonProperty("externalTaxAmount") final com.commercetools.api.models.cart.ExternalTaxAmountDraft externalTaxAmount, + @JsonProperty("shippingKey") final String shippingKey) { this.lineItemId = lineItemId; this.externalTaxAmount = externalTaxAmount; + this.shippingKey = shippingKey; this.action = SET_LINE_ITEM_TAX_AMOUNT; } @@ -62,6 +66,14 @@ public com.commercetools.api.models.cart.ExternalTaxAmountDraft getExternalTaxAm return this.externalTaxAmount; } + /** + *

key of the ShippingMethod used for this Line Item.``` This is required for Carts with Multiple ShippingMode.

+ */ + + public String getShippingKey() { + return this.shippingKey; + } + public void setLineItemId(final String lineItemId) { this.lineItemId = lineItemId; } @@ -70,6 +82,10 @@ public void setExternalTaxAmount(final com.commercetools.api.models.cart.Externa this.externalTaxAmount = externalTaxAmount; } + public void setShippingKey(final String shippingKey) { + this.shippingKey = shippingKey; + } + @Override public boolean equals(Object o) { if (this == o) @@ -83,12 +99,17 @@ public boolean equals(Object o) { return new EqualsBuilder().append(action, that.action) .append(lineItemId, that.lineItemId) .append(externalTaxAmount, that.externalTaxAmount) + .append(shippingKey, that.shippingKey) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(action).append(lineItemId).append(externalTaxAmount).toHashCode(); + return new HashCodeBuilder(17, 37).append(action) + .append(lineItemId) + .append(externalTaxAmount) + .append(shippingKey) + .toHashCode(); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateAction.java index 999201933e1..c06fd34cc4e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateAction.java @@ -48,10 +48,19 @@ public interface StagedOrderSetLineItemTaxRateAction extends StagedOrderUpdateAc @JsonProperty("externalTaxRate") public ExternalTaxRateDraft getExternalTaxRate(); + /** + *

key of the ShippingMethod used for this Line Item. This is required for Carts with Multiple ShippingMode.

+ */ + + @JsonProperty("shippingKey") + public String getShippingKey(); + public void setLineItemId(final String lineItemId); public void setExternalTaxRate(final ExternalTaxRateDraft externalTaxRate); + public void setShippingKey(final String shippingKey); + public static StagedOrderSetLineItemTaxRateAction of() { return new StagedOrderSetLineItemTaxRateActionImpl(); } @@ -60,6 +69,7 @@ public static StagedOrderSetLineItemTaxRateAction of(final StagedOrderSetLineIte StagedOrderSetLineItemTaxRateActionImpl instance = new StagedOrderSetLineItemTaxRateActionImpl(); instance.setLineItemId(template.getLineItemId()); instance.setExternalTaxRate(template.getExternalTaxRate()); + instance.setShippingKey(template.getShippingKey()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionBuilder.java index 6a194f70519..eac55b1eaa2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionBuilder.java @@ -29,6 +29,9 @@ public class StagedOrderSetLineItemTaxRateActionBuilder implements Builderkey of the ShippingMethod used for this Line Item. This is required for Carts with Multiple ShippingMode.

+ */ + + public StagedOrderSetLineItemTaxRateActionBuilder shippingKey(@Nullable final String shippingKey) { + this.shippingKey = shippingKey; + return this; + } + public String getLineItemId() { return this.lineItemId; } @@ -68,16 +80,21 @@ public com.commercetools.api.models.cart.ExternalTaxRateDraft getExternalTaxRate return this.externalTaxRate; } + @Nullable + public String getShippingKey() { + return this.shippingKey; + } + public StagedOrderSetLineItemTaxRateAction build() { Objects.requireNonNull(lineItemId, StagedOrderSetLineItemTaxRateAction.class + ": lineItemId is missing"); - return new StagedOrderSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate); + return new StagedOrderSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate, shippingKey); } /** * builds StagedOrderSetLineItemTaxRateAction without checking for non null required values */ public StagedOrderSetLineItemTaxRateAction buildUnchecked() { - return new StagedOrderSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate); + return new StagedOrderSetLineItemTaxRateActionImpl(lineItemId, externalTaxRate, shippingKey); } public static StagedOrderSetLineItemTaxRateActionBuilder of() { @@ -88,6 +105,7 @@ public static StagedOrderSetLineItemTaxRateActionBuilder of(final StagedOrderSet StagedOrderSetLineItemTaxRateActionBuilder builder = new StagedOrderSetLineItemTaxRateActionBuilder(); builder.lineItemId = template.getLineItemId(); builder.externalTaxRate = template.getExternalTaxRate(); + builder.shippingKey = template.getShippingKey(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionImpl.java index 3739d5333ee..4047d34fa37 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderSetLineItemTaxRateActionImpl.java @@ -26,11 +26,15 @@ public class StagedOrderSetLineItemTaxRateActionImpl implements StagedOrderSetLi private com.commercetools.api.models.cart.ExternalTaxRateDraft externalTaxRate; + private String shippingKey; + @JsonCreator StagedOrderSetLineItemTaxRateActionImpl(@JsonProperty("lineItemId") final String lineItemId, - @JsonProperty("externalTaxRate") final com.commercetools.api.models.cart.ExternalTaxRateDraft externalTaxRate) { + @JsonProperty("externalTaxRate") final com.commercetools.api.models.cart.ExternalTaxRateDraft externalTaxRate, + @JsonProperty("shippingKey") final String shippingKey) { this.lineItemId = lineItemId; this.externalTaxRate = externalTaxRate; + this.shippingKey = shippingKey; this.action = SET_LINE_ITEM_TAX_RATE; } @@ -62,6 +66,14 @@ public com.commercetools.api.models.cart.ExternalTaxRateDraft getExternalTaxRate return this.externalTaxRate; } + /** + *

key of the ShippingMethod used for this Line Item. This is required for Carts with Multiple ShippingMode.

+ */ + + public String getShippingKey() { + return this.shippingKey; + } + public void setLineItemId(final String lineItemId) { this.lineItemId = lineItemId; } @@ -70,6 +82,10 @@ public void setExternalTaxRate(final com.commercetools.api.models.cart.ExternalT this.externalTaxRate = externalTaxRate; } + public void setShippingKey(final String shippingKey) { + this.shippingKey = shippingKey; + } + @Override public boolean equals(Object o) { if (this == o) @@ -83,12 +99,17 @@ public boolean equals(Object o) { return new EqualsBuilder().append(action, that.action) .append(lineItemId, that.lineItemId) .append(externalTaxRate, that.externalTaxRate) + .append(shippingKey, that.shippingKey) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(action).append(lineItemId).append(externalTaxRate).toHashCode(); + return new HashCodeBuilder(17, 37).append(action) + .append(lineItemId) + .append(externalTaxRate) + .append(shippingKey) + .toHashCode(); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java index ed6c8bd3187..fabaa61b56e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java @@ -49,6 +49,13 @@ public interface QuoteDraft { @JsonProperty("stagedQuoteVersion") public Long getStagedQuoteVersion(); + /** + *

If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

+ */ + + @JsonProperty("stagedQuoteStateToSent") + public Boolean getStagedQuoteStateToSent(); + /** *

User-defined unique identifier for the Quote.

*/ @@ -78,6 +85,8 @@ public interface QuoteDraft { public void setStagedQuoteVersion(final Long stagedQuoteVersion); + public void setStagedQuoteStateToSent(final Boolean stagedQuoteStateToSent); + public void setKey(final String key); public void setCustom(final CustomFieldsDraft custom); @@ -92,6 +101,7 @@ public static QuoteDraft of(final QuoteDraft template) { QuoteDraftImpl instance = new QuoteDraftImpl(); instance.setStagedQuote(template.getStagedQuote()); instance.setStagedQuoteVersion(template.getStagedQuoteVersion()); + instance.setStagedQuoteStateToSent(template.getStagedQuoteStateToSent()); instance.setKey(template.getKey()); instance.setCustom(template.getCustom()); instance.setState(template.getState()); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java index e0c87835387..612beaa4392 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java @@ -29,6 +29,9 @@ public class QuoteDraftBuilder implements Builder { private Long stagedQuoteVersion; + @Nullable + private Boolean stagedQuoteStateToSent; + @Nullable private String key; @@ -69,6 +72,15 @@ public QuoteDraftBuilder stagedQuoteVersion(final Long stagedQuoteVersion) { return this; } + /** + *

If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

+ */ + + public QuoteDraftBuilder stagedQuoteStateToSent(@Nullable final Boolean stagedQuoteStateToSent) { + this.stagedQuoteStateToSent = stagedQuoteStateToSent; + return this; + } + /** *

User-defined unique identifier for the Quote.

*/ @@ -132,6 +144,11 @@ public Long getStagedQuoteVersion() { return this.stagedQuoteVersion; } + @Nullable + public Boolean getStagedQuoteStateToSent() { + return this.stagedQuoteStateToSent; + } + @Nullable public String getKey() { return this.key; @@ -150,14 +167,14 @@ public com.commercetools.api.models.state.StateReference getState() { public QuoteDraft build() { Objects.requireNonNull(stagedQuote, QuoteDraft.class + ": stagedQuote is missing"); Objects.requireNonNull(stagedQuoteVersion, QuoteDraft.class + ": stagedQuoteVersion is missing"); - return new QuoteDraftImpl(stagedQuote, stagedQuoteVersion, key, custom, state); + return new QuoteDraftImpl(stagedQuote, stagedQuoteVersion, stagedQuoteStateToSent, key, custom, state); } /** * builds QuoteDraft without checking for non null required values */ public QuoteDraft buildUnchecked() { - return new QuoteDraftImpl(stagedQuote, stagedQuoteVersion, key, custom, state); + return new QuoteDraftImpl(stagedQuote, stagedQuoteVersion, stagedQuoteStateToSent, key, custom, state); } public static QuoteDraftBuilder of() { @@ -168,6 +185,7 @@ public static QuoteDraftBuilder of(final QuoteDraft template) { QuoteDraftBuilder builder = new QuoteDraftBuilder(); builder.stagedQuote = template.getStagedQuote(); builder.stagedQuoteVersion = template.getStagedQuoteVersion(); + builder.stagedQuoteStateToSent = template.getStagedQuoteStateToSent(); builder.key = template.getKey(); builder.custom = template.getCustom(); builder.state = template.getState(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java index 1637dccb66e..cd56765ce5b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java @@ -24,6 +24,8 @@ public class QuoteDraftImpl implements QuoteDraft, ModelBase { private Long stagedQuoteVersion; + private Boolean stagedQuoteStateToSent; + private String key; private com.commercetools.api.models.type.CustomFieldsDraft custom; @@ -33,11 +35,14 @@ public class QuoteDraftImpl implements QuoteDraft, ModelBase { @JsonCreator QuoteDraftImpl( @JsonProperty("stagedQuote") final com.commercetools.api.models.staged_quote.StagedQuoteResourceIdentifier stagedQuote, - @JsonProperty("stagedQuoteVersion") final Long stagedQuoteVersion, @JsonProperty("key") final String key, + @JsonProperty("stagedQuoteVersion") final Long stagedQuoteVersion, + @JsonProperty("stagedQuoteStateToSent") final Boolean stagedQuoteStateToSent, + @JsonProperty("key") final String key, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom, @JsonProperty("state") final com.commercetools.api.models.state.StateReference state) { this.stagedQuote = stagedQuote; this.stagedQuoteVersion = stagedQuoteVersion; + this.stagedQuoteStateToSent = stagedQuoteStateToSent; this.key = key; this.custom = custom; this.state = state; @@ -62,6 +67,14 @@ public Long getStagedQuoteVersion() { return this.stagedQuoteVersion; } + /** + *

If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

+ */ + + public Boolean getStagedQuoteStateToSent() { + return this.stagedQuoteStateToSent; + } + /** *

User-defined unique identifier for the Quote.

*/ @@ -99,6 +112,10 @@ public void setStagedQuoteVersion(final Long stagedQuoteVersion) { this.stagedQuoteVersion = stagedQuoteVersion; } + public void setStagedQuoteStateToSent(final Boolean stagedQuoteStateToSent) { + this.stagedQuoteStateToSent = stagedQuoteStateToSent; + } + public void setKey(final String key) { this.key = key; } @@ -123,6 +140,7 @@ public boolean equals(Object o) { return new EqualsBuilder().append(stagedQuote, that.stagedQuote) .append(stagedQuoteVersion, that.stagedQuoteVersion) + .append(stagedQuoteStateToSent, that.stagedQuoteStateToSent) .append(key, that.key) .append(custom, that.custom) .append(state, that.state) @@ -133,6 +151,7 @@ public boolean equals(Object o) { public int hashCode() { return new HashCodeBuilder(17, 37).append(stagedQuote) .append(stagedQuoteVersion) + .append(stagedQuoteStateToSent) .append(key) .append(custom) .append(state) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionAction.java index b8518e8bf70..9b3f9647da7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionAction.java @@ -24,6 +24,7 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ShippingMethodSetDescriptionActionImpl.class) +@Deprecated public interface ShippingMethodSetDescriptionAction extends ShippingMethodUpdateAction { String SET_DESCRIPTION = "setDescription"; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionBuilder.java index 22e246e492c..b9c4361dbf3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionBuilder.java @@ -20,6 +20,7 @@ *
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@Deprecated public class ShippingMethodSetDescriptionActionBuilder implements Builder { @Nullable diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionImpl.java index b3177655808..a19ae48f71e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodSetDescriptionActionImpl.java @@ -18,6 +18,7 @@ * ShippingMethodSetDescriptionAction */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@Deprecated public class ShippingMethodSetDescriptionActionImpl implements ShippingMethodSetDescriptionAction, ModelBase { private String action; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java index c5c3d45e0ce..5d528ba4025 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java @@ -49,6 +49,13 @@ public interface StagedQuoteDraft { @JsonProperty("quoteRequestVersion") public Long getQuoteRequestVersion(); + /** + *

If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

+ */ + + @JsonProperty("quoteRequestStateToAccepted") + public Boolean getQuoteRequestStateToAccepted(); + /** *

User-defined unique identifier for the StagedQuote.

*/ @@ -78,6 +85,8 @@ public interface StagedQuoteDraft { public void setQuoteRequestVersion(final Long quoteRequestVersion); + public void setQuoteRequestStateToAccepted(final Boolean quoteRequestStateToAccepted); + public void setKey(final String key); public void setCustom(final CustomFieldsDraft custom); @@ -92,6 +101,7 @@ public static StagedQuoteDraft of(final StagedQuoteDraft template) { StagedQuoteDraftImpl instance = new StagedQuoteDraftImpl(); instance.setQuoteRequest(template.getQuoteRequest()); instance.setQuoteRequestVersion(template.getQuoteRequestVersion()); + instance.setQuoteRequestStateToAccepted(template.getQuoteRequestStateToAccepted()); instance.setKey(template.getKey()); instance.setCustom(template.getCustom()); instance.setState(template.getState()); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java index 0ba8896a62d..e685a7d7c8c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java @@ -29,6 +29,9 @@ public class StagedQuoteDraftBuilder implements Builder { private Long quoteRequestVersion; + @Nullable + private Boolean quoteRequestStateToAccepted; + @Nullable private String key; @@ -69,6 +72,15 @@ public StagedQuoteDraftBuilder quoteRequestVersion(final Long quoteRequestVersio return this; } + /** + *

If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

+ */ + + public StagedQuoteDraftBuilder quoteRequestStateToAccepted(@Nullable final Boolean quoteRequestStateToAccepted) { + this.quoteRequestStateToAccepted = quoteRequestStateToAccepted; + return this; + } + /** *

User-defined unique identifier for the StagedQuote.

*/ @@ -132,6 +144,11 @@ public Long getQuoteRequestVersion() { return this.quoteRequestVersion; } + @Nullable + public Boolean getQuoteRequestStateToAccepted() { + return this.quoteRequestStateToAccepted; + } + @Nullable public String getKey() { return this.key; @@ -150,14 +167,16 @@ public com.commercetools.api.models.state.StateReference getState() { public StagedQuoteDraft build() { Objects.requireNonNull(quoteRequest, StagedQuoteDraft.class + ": quoteRequest is missing"); Objects.requireNonNull(quoteRequestVersion, StagedQuoteDraft.class + ": quoteRequestVersion is missing"); - return new StagedQuoteDraftImpl(quoteRequest, quoteRequestVersion, key, custom, state); + return new StagedQuoteDraftImpl(quoteRequest, quoteRequestVersion, quoteRequestStateToAccepted, key, custom, + state); } /** * builds StagedQuoteDraft without checking for non null required values */ public StagedQuoteDraft buildUnchecked() { - return new StagedQuoteDraftImpl(quoteRequest, quoteRequestVersion, key, custom, state); + return new StagedQuoteDraftImpl(quoteRequest, quoteRequestVersion, quoteRequestStateToAccepted, key, custom, + state); } public static StagedQuoteDraftBuilder of() { @@ -168,6 +187,7 @@ public static StagedQuoteDraftBuilder of(final StagedQuoteDraft template) { StagedQuoteDraftBuilder builder = new StagedQuoteDraftBuilder(); builder.quoteRequest = template.getQuoteRequest(); builder.quoteRequestVersion = template.getQuoteRequestVersion(); + builder.quoteRequestStateToAccepted = template.getQuoteRequestStateToAccepted(); builder.key = template.getKey(); builder.custom = template.getCustom(); builder.state = template.getState(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java index ff44b409f0d..e1de30e88b1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java @@ -24,6 +24,8 @@ public class StagedQuoteDraftImpl implements StagedQuoteDraft, ModelBase { private Long quoteRequestVersion; + private Boolean quoteRequestStateToAccepted; + private String key; private com.commercetools.api.models.type.CustomFieldsDraft custom; @@ -33,11 +35,14 @@ public class StagedQuoteDraftImpl implements StagedQuoteDraft, ModelBase { @JsonCreator StagedQuoteDraftImpl( @JsonProperty("quoteRequest") final com.commercetools.api.models.quote_request.QuoteRequestResourceIdentifier quoteRequest, - @JsonProperty("quoteRequestVersion") final Long quoteRequestVersion, @JsonProperty("key") final String key, + @JsonProperty("quoteRequestVersion") final Long quoteRequestVersion, + @JsonProperty("quoteRequestStateToAccepted") final Boolean quoteRequestStateToAccepted, + @JsonProperty("key") final String key, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom, @JsonProperty("state") final com.commercetools.api.models.state.StateReference state) { this.quoteRequest = quoteRequest; this.quoteRequestVersion = quoteRequestVersion; + this.quoteRequestStateToAccepted = quoteRequestStateToAccepted; this.key = key; this.custom = custom; this.state = state; @@ -62,6 +67,14 @@ public Long getQuoteRequestVersion() { return this.quoteRequestVersion; } + /** + *

If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

+ */ + + public Boolean getQuoteRequestStateToAccepted() { + return this.quoteRequestStateToAccepted; + } + /** *

User-defined unique identifier for the StagedQuote.

*/ @@ -99,6 +112,10 @@ public void setQuoteRequestVersion(final Long quoteRequestVersion) { this.quoteRequestVersion = quoteRequestVersion; } + public void setQuoteRequestStateToAccepted(final Boolean quoteRequestStateToAccepted) { + this.quoteRequestStateToAccepted = quoteRequestStateToAccepted; + } + public void setKey(final String key) { this.key = key; } @@ -123,6 +140,7 @@ public boolean equals(Object o) { return new EqualsBuilder().append(quoteRequest, that.quoteRequest) .append(quoteRequestVersion, that.quoteRequestVersion) + .append(quoteRequestStateToAccepted, that.quoteRequestStateToAccepted) .append(key, that.key) .append(custom, that.custom) .append(state, that.state) @@ -133,6 +151,7 @@ public boolean equals(Object o) { public int hashCode() { return new HashCodeBuilder(17, 37).append(quoteRequest) .append(quoteRequestVersion) + .append(quoteRequestStateToAccepted) .append(key) .append(custom) .append(state) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AwsAuthenticationMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AwsAuthenticationMode.java index ba277c05637..30ef97c40a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AwsAuthenticationMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AwsAuthenticationMode.java @@ -10,13 +10,20 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Defines the method of authentication for AWS SQS and SNS Destinations. Subscriptions with Credentials authentication mode are authenticated using an accessKey and accessSecret pair. Subscriptions with IAM authentication mode are authenticated using Identity and Access Management (IAM). In this case, the user arn:aws:iam::362576667341:user/subscriptions requires permissions to send messages to the queue or publish to the topic. This is the recommended authenticationMode, as it doesn't require additional key management.

+ *

Defines the method of authentication for AWS SQS and SNS Destinations.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface AwsAuthenticationMode { + /** +

Subscriptions with Credentials authentication mode are authenticated using an accessKey and accessSecret pair. This is the default authentication mode for backwards compatibility.

+ + */ AwsAuthenticationMode CREDENTIALS = AwsAuthenticationModeEnum.CREDENTIALS; + /** +

Subscriptions with IAM authentication mode are authenticated using Identity and Access Management (IAM). In this case, the user arn:aws:iam::362576667341:user/subscriptions requires permissions to send messages to the queue or publish to the topic. This is the recommended authentication mode, as it doesn't require additional key management.

+ */ AwsAuthenticationMode IAM = AwsAuthenticationModeEnum.IAM; enum AwsAuthenticationModeEnum implements AwsAuthenticationMode { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestination.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestination.java index 22e3aab2a01..6dd39f6c6a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestination.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestination.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * AzureEventGridDestination + *

Azure Event Grid can be used to push messages to Azure Functions, HTTP endpoints (webhooks), and several other Azure tools. Event Grid can only be used with the CloudEventsFormat. To set up a Subscription with Azure Event Grid, first create a topic in the Azure Portal. To allow Composable Commerce to push messages to your topic, provide an access key.

* *
* Example to create an instance using the builder pattern @@ -33,14 +33,14 @@ public interface AzureEventGridDestination extends Destination { String EVENT_GRID = "EventGrid"; /** - * + *

URI of the topic.

*/ @NotNull @JsonProperty("uri") public String getUri(); /** - * + *

Partially hidden on retrieval for security reasons.

*/ @NotNull @JsonProperty("accessKey") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationBuilder.java index abff9910ffa..0c72891b72f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationBuilder.java @@ -27,7 +27,7 @@ public class AzureEventGridDestinationBuilder implements BuilderURI of the topic.

*/ public AzureEventGridDestinationBuilder uri(final String uri) { @@ -36,7 +36,7 @@ public AzureEventGridDestinationBuilder uri(final String uri) { } /** - * + *

Partially hidden on retrieval for security reasons.

*/ public AzureEventGridDestinationBuilder accessKey(final String accessKey) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationImpl.java index 77fb63d882e..0ad16191c02 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureEventGridDestinationImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * AzureEventGridDestination + *

Azure Event Grid can be used to push messages to Azure Functions, HTTP endpoints (webhooks), and several other Azure tools. Event Grid can only be used with the CloudEventsFormat. To set up a Subscription with Azure Event Grid, first create a topic in the Azure Portal. To allow Composable Commerce to push messages to your topic, provide an access key.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class AzureEventGridDestinationImpl implements AzureEventGridDestination, ModelBase { @@ -47,7 +47,7 @@ public String getType() { } /** - * + *

URI of the topic.

*/ public String getUri() { @@ -55,7 +55,7 @@ public String getUri() { } /** - * + *

Partially hidden on retrieval for security reasons.

*/ public String getAccessKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestination.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestination.java index a3b937afdd6..f4f0eb311e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestination.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestination.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * AzureServiceBusDestination + *

Azure Service Bus can be used as a pull-queue with Queues, or to fan-out messages with Topics and Subscriptions. To set up a Subscription with Azure Service Bus, first create a queue/topic in the Azure Portal with a Shared Access Policy including the Send permission.

* *
* Example to create an instance using the builder pattern @@ -32,7 +32,7 @@ public interface AzureServiceBusDestination extends Destination { String AZURE_SERVICE_BUS = "AzureServiceBus"; /** - * + *

SharedAccessKey is partially hidden on retrieval for security reasons.

*/ @NotNull @JsonProperty("connectionString") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationBuilder.java index 047bc65f12d..e196c45c5d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationBuilder.java @@ -24,7 +24,7 @@ public class AzureServiceBusDestinationBuilder implements BuilderSharedAccessKey is partially hidden on retrieval for security reasons.

*/ public AzureServiceBusDestinationBuilder connectionString(final String connectionString) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationImpl.java index 085e0c5e875..069c112f3a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/AzureServiceBusDestinationImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * AzureServiceBusDestination + *

Azure Service Bus can be used as a pull-queue with Queues, or to fan-out messages with Topics and Subscriptions. To set up a Subscription with Azure Service Bus, first create a queue/topic in the Azure Portal with a Shared Access Policy including the Send permission.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class AzureServiceBusDestinationImpl implements AzureServiceBusDestination, ModelBase { @@ -43,7 +43,7 @@ public String getType() { } /** - * + *

SharedAccessKey is partially hidden on retrieval for security reasons.

*/ public String getConnectionString() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscription.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscription.java index b67b21d5a0f..48ffc620f6e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscription.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscription.java @@ -13,14 +13,14 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * ChangeSubscription + *

Notification about changes to a resource. The payload format differs for resource creation, update, and deletion.

* *
* Example to create an instance using the builder pattern *
*

  *     ChangeSubscription changeSubscription = ChangeSubscription.builder()
- *             .resourceTypeId("{resourceTypeId}")
+ *             .resourceTypeId(ChangeSubscriptionResourceTypeId.BUSINESS_UNIT)
  *             .build()
  * 
*
@@ -30,13 +30,13 @@ public interface ChangeSubscription { /** - * + *

Unique identifier for the type of resource, for example, cart.

*/ @NotNull @JsonProperty("resourceTypeId") - public String getResourceTypeId(); + public ChangeSubscriptionResourceTypeId getResourceTypeId(); - public void setResourceTypeId(final String resourceTypeId); + public void setResourceTypeId(final ChangeSubscriptionResourceTypeId resourceTypeId); public static ChangeSubscription of() { return new ChangeSubscriptionImpl(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionBuilder.java index a0a3e668b09..8db6ee10131 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionBuilder.java @@ -13,7 +13,7 @@ *
*

  *     ChangeSubscription changeSubscription = ChangeSubscription.builder()
- *             .resourceTypeId("{resourceTypeId}")
+ *             .resourceTypeId(ChangeSubscriptionResourceTypeId.BUSINESS_UNIT)
  *             .build()
  * 
*
@@ -21,18 +21,19 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ChangeSubscriptionBuilder implements Builder { - private String resourceTypeId; + private com.commercetools.api.models.subscription.ChangeSubscriptionResourceTypeId resourceTypeId; /** - * + *

Unique identifier for the type of resource, for example, cart.

*/ - public ChangeSubscriptionBuilder resourceTypeId(final String resourceTypeId) { + public ChangeSubscriptionBuilder resourceTypeId( + final com.commercetools.api.models.subscription.ChangeSubscriptionResourceTypeId resourceTypeId) { this.resourceTypeId = resourceTypeId; return this; } - public String getResourceTypeId() { + public com.commercetools.api.models.subscription.ChangeSubscriptionResourceTypeId getResourceTypeId() { return this.resourceTypeId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionImpl.java index a96ac362413..3477e416235 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionImpl.java @@ -15,15 +15,16 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * ChangeSubscription + *

Notification about changes to a resource. The payload format differs for resource creation, update, and deletion.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ChangeSubscriptionImpl implements ChangeSubscription, ModelBase { - private String resourceTypeId; + private com.commercetools.api.models.subscription.ChangeSubscriptionResourceTypeId resourceTypeId; @JsonCreator - ChangeSubscriptionImpl(@JsonProperty("resourceTypeId") final String resourceTypeId) { + ChangeSubscriptionImpl( + @JsonProperty("resourceTypeId") final com.commercetools.api.models.subscription.ChangeSubscriptionResourceTypeId resourceTypeId) { this.resourceTypeId = resourceTypeId; } @@ -31,14 +32,15 @@ public ChangeSubscriptionImpl() { } /** - * + *

Unique identifier for the type of resource, for example, cart.

*/ - public String getResourceTypeId() { + public com.commercetools.api.models.subscription.ChangeSubscriptionResourceTypeId getResourceTypeId() { return this.resourceTypeId; } - public void setResourceTypeId(final String resourceTypeId) { + public void setResourceTypeId( + final com.commercetools.api.models.subscription.ChangeSubscriptionResourceTypeId resourceTypeId) { this.resourceTypeId = resourceTypeId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionResourceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionResourceTypeId.java new file mode 100644 index 00000000000..228f2370021 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionResourceTypeId.java @@ -0,0 +1,305 @@ + +package com.commercetools.api.models.subscription; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Resource types supported by ChangeSubscriptions:

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ChangeSubscriptionResourceTypeId { + + /** +

Changes to Business Units.

+ + */ + ChangeSubscriptionResourceTypeId BUSINESS_UNIT = ChangeSubscriptionResourceTypeIdEnum.BUSINESS_UNIT; + /** +

Changes to Carts.

+ + */ + ChangeSubscriptionResourceTypeId CART = ChangeSubscriptionResourceTypeIdEnum.CART; + /** +

Changes to CartDiscounts.

+ + */ + ChangeSubscriptionResourceTypeId CART_DISCOUNT = ChangeSubscriptionResourceTypeIdEnum.CART_DISCOUNT; + /** +

Changes to Categories.

+ + */ + ChangeSubscriptionResourceTypeId CATEGORY = ChangeSubscriptionResourceTypeIdEnum.CATEGORY; + /** +

Changes to Channels.

+ + */ + ChangeSubscriptionResourceTypeId CHANNEL = ChangeSubscriptionResourceTypeIdEnum.CHANNEL; + /** +

Changes to Customers.

+ + */ + ChangeSubscriptionResourceTypeId CUSTOMER = ChangeSubscriptionResourceTypeIdEnum.CUSTOMER; + /** +

Changes to CustomerTokens.

+ + */ + ChangeSubscriptionResourceTypeId CUSTOMER_EMAIL_TOKEN = ChangeSubscriptionResourceTypeIdEnum.CUSTOMER_EMAIL_TOKEN; + /** +

Changes to CustomerGroups.

+ + */ + ChangeSubscriptionResourceTypeId CUSTOMER_GROUP = ChangeSubscriptionResourceTypeIdEnum.CUSTOMER_GROUP; + /** +

Changes to CustomerTokens.

+ + */ + ChangeSubscriptionResourceTypeId CUSTOMER_PASSWORD_TOKEN = ChangeSubscriptionResourceTypeIdEnum.CUSTOMER_PASSWORD_TOKEN; + /** +

Changes to DiscountCodes.

+ + */ + ChangeSubscriptionResourceTypeId DISCOUNT_CODE = ChangeSubscriptionResourceTypeIdEnum.DISCOUNT_CODE; + /** +

Changes to Extensions.

+ + */ + ChangeSubscriptionResourceTypeId EXTENSION = ChangeSubscriptionResourceTypeIdEnum.EXTENSION; + /** +

Changes to InventoryEntries.

+ + */ + ChangeSubscriptionResourceTypeId INVENTORY_ENTRY = ChangeSubscriptionResourceTypeIdEnum.INVENTORY_ENTRY; + /** +

Changes to CustomObjects.

+ + */ + ChangeSubscriptionResourceTypeId KEY_VALUE_DOCUMENT = ChangeSubscriptionResourceTypeIdEnum.KEY_VALUE_DOCUMENT; + /** +

Changes to Orders. Changes to Orders via Order Edits do not trigger a Message. To achieve this, a MessageSubscription to Order Edit Applied Message is necessary.

+ + */ + ChangeSubscriptionResourceTypeId ORDER = ChangeSubscriptionResourceTypeIdEnum.ORDER; + /** +

Changes to OrderEdits.

+ + */ + ChangeSubscriptionResourceTypeId ORDER_EDIT = ChangeSubscriptionResourceTypeIdEnum.ORDER_EDIT; + /** +

Changes to Payments.

+ + */ + ChangeSubscriptionResourceTypeId PAYMENT = ChangeSubscriptionResourceTypeIdEnum.PAYMENT; + /** +

Changes to Products.

+ + */ + ChangeSubscriptionResourceTypeId PRODUCT = ChangeSubscriptionResourceTypeIdEnum.PRODUCT; + /** +

Changes to ProductDiscount.

+ + */ + ChangeSubscriptionResourceTypeId PRODUCT_DISCOUNT = ChangeSubscriptionResourceTypeIdEnum.PRODUCT_DISCOUNT; + /** +

Changes to EmbeddedPrices.

+ + */ + ChangeSubscriptionResourceTypeId PRODUCT_PRICE = ChangeSubscriptionResourceTypeIdEnum.PRODUCT_PRICE; + /** +

Changes to ProductSelections.

+ + */ + ChangeSubscriptionResourceTypeId PRODUCT_SELECTION = ChangeSubscriptionResourceTypeIdEnum.PRODUCT_SELECTION; + /** +

Changes to ProductTypes.

+ + */ + ChangeSubscriptionResourceTypeId PRODUCT_TYPE = ChangeSubscriptionResourceTypeIdEnum.PRODUCT_TYPE; + /** +

Changes to Quotes.

+ + */ + ChangeSubscriptionResourceTypeId QUOTE = ChangeSubscriptionResourceTypeIdEnum.QUOTE; + /** +

Changes to Quote Requests.

+ + */ + ChangeSubscriptionResourceTypeId QUOTE_REQUEST = ChangeSubscriptionResourceTypeIdEnum.QUOTE_REQUEST; + /** +

Changes to Reviews.

+ + */ + ChangeSubscriptionResourceTypeId REVIEW = ChangeSubscriptionResourceTypeIdEnum.REVIEW; + /** +

Changes to ShippingMethods.

+ + */ + ChangeSubscriptionResourceTypeId SHIPPING_METHOD = ChangeSubscriptionResourceTypeIdEnum.SHIPPING_METHOD; + /** +

Changes to ShoppingLists.

+ + */ + ChangeSubscriptionResourceTypeId SHOPPING_LIST = ChangeSubscriptionResourceTypeIdEnum.SHOPPING_LIST; + /** +

Changes to Staged Quotes.

+ + */ + ChangeSubscriptionResourceTypeId STAGED_QUOTE = ChangeSubscriptionResourceTypeIdEnum.STAGED_QUOTE; + /** +

Changes to StandalonePrices.

+ + */ + ChangeSubscriptionResourceTypeId STANDALONE_PRICE = ChangeSubscriptionResourceTypeIdEnum.STANDALONE_PRICE; + /** +

Changes to States.

+ + */ + ChangeSubscriptionResourceTypeId STATE = ChangeSubscriptionResourceTypeIdEnum.STATE; + /** +

Changes to Stores.

+ + */ + ChangeSubscriptionResourceTypeId STORE = ChangeSubscriptionResourceTypeIdEnum.STORE; + /** +

Changes to Subscriptions.

+ + */ + ChangeSubscriptionResourceTypeId SUBSCRIPTION = ChangeSubscriptionResourceTypeIdEnum.SUBSCRIPTION; + /** +

Changes to TaxCategories.

+ + */ + ChangeSubscriptionResourceTypeId TAX_CATEGORY = ChangeSubscriptionResourceTypeIdEnum.TAX_CATEGORY; + /** +

Changes to Types.

+ + */ + ChangeSubscriptionResourceTypeId TYPE = ChangeSubscriptionResourceTypeIdEnum.TYPE; + /** +

Changes to Zones.

+ + */ + ChangeSubscriptionResourceTypeId ZONE = ChangeSubscriptionResourceTypeIdEnum.ZONE; + + enum ChangeSubscriptionResourceTypeIdEnum implements ChangeSubscriptionResourceTypeId { + BUSINESS_UNIT("business-unit"), + + CART("cart"), + + CART_DISCOUNT("cart-discount"), + + CATEGORY("category"), + + CHANNEL("channel"), + + CUSTOMER("customer"), + + CUSTOMER_EMAIL_TOKEN("customer-email-token"), + + CUSTOMER_GROUP("customer-group"), + + CUSTOMER_PASSWORD_TOKEN("customer-password-token"), + + DISCOUNT_CODE("discount-code"), + + EXTENSION("extension"), + + INVENTORY_ENTRY("inventory-entry"), + + KEY_VALUE_DOCUMENT("key-value-document"), + + ORDER("order"), + + ORDER_EDIT("order-edit"), + + PAYMENT("payment"), + + PRODUCT("product"), + + PRODUCT_DISCOUNT("product-discount"), + + PRODUCT_PRICE("product-price"), + + PRODUCT_SELECTION("product-selection"), + + PRODUCT_TYPE("product-type"), + + QUOTE("quote"), + + QUOTE_REQUEST("quote-request"), + + REVIEW("review"), + + SHIPPING_METHOD("shipping-method"), + + SHOPPING_LIST("shopping-list"), + + STAGED_QUOTE("staged-quote"), + + STANDALONE_PRICE("standalone-price"), + + STATE("state"), + + STORE("store"), + + SUBSCRIPTION("subscription"), + + TAX_CATEGORY("tax-category"), + + TYPE("type"), + + ZONE("zone"); + private final String jsonName; + + private ChangeSubscriptionResourceTypeIdEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + @JsonValue + String getJsonName(); + + String name(); + + String toString(); + + @JsonCreator + public static ChangeSubscriptionResourceTypeId findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ChangeSubscriptionResourceTypeId() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + public static ChangeSubscriptionResourceTypeId[] values() { + return ChangeSubscriptionResourceTypeIdEnum.values(); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormat.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormat.java index 430e20e7bd3..43932b314af 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormat.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormat.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CloudEventsFormat + *

The CloudEventsFormat can be used with any Destination, and the payload is delivered in the JSON Event Format. AzureEventGridDestination offers native support to filter and route CloudEvents.

* *
* Example to create an instance using the builder pattern @@ -32,7 +32,7 @@ public interface CloudEventsFormat extends DeliveryFormat { String CLOUD_EVENTS = "CloudEvents"; /** - * + *

Supported versions: "1.0".

*/ @NotNull @JsonProperty("cloudEventsVersion") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatBuilder.java index 943c58e1187..7e1910a8a20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatBuilder.java @@ -24,7 +24,7 @@ public class CloudEventsFormatBuilder implements Builder { private String cloudEventsVersion; /** - * + *

Supported versions: "1.0".

*/ public CloudEventsFormatBuilder cloudEventsVersion(final String cloudEventsVersion) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatImpl.java index 2620be8122a..0c95995ef8d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * CloudEventsFormat + *

The CloudEventsFormat can be used with any Destination, and the payload is delivered in the JSON Event Format. AzureEventGridDestination offers native support to filter and route CloudEvents.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CloudEventsFormatImpl implements CloudEventsFormat, ModelBase { @@ -43,7 +43,7 @@ public String getType() { } /** - * + *

Supported versions: "1.0".

*/ public String getCloudEventsVersion() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayload.java new file mode 100644 index 00000000000..7b7bffbb3d2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayload.java @@ -0,0 +1,172 @@ + +package com.commercetools.api.models.subscription; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

The CloudEventsFormat represents event data in a way that conforms to a common specification. The message payload can be found inside the data field.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CloudEventsPayload cloudEventsPayload = CloudEventsPayload.builder()
+ *             .specversion("{specversion}")
+ *             .id("{id}")
+ *             .type("{type}")
+ *             .source("{source}")
+ *             .subject("{subject}")
+ *             .time(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .data(dataBuilder -> dataBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CloudEventsPayloadImpl.class) +public interface CloudEventsPayload { + + String CLOUD_EVENTS = "CloudEvents"; + + /** + *

The version of the CloudEvents specification which the event uses.

+ */ + @NotNull + @JsonProperty("specversion") + public String getSpecversion(); + + /** + *

Unique identifier of the event.

+ */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

The type is namespaced with com.commercetools, followed by the ReferenceTypeId, the type of Subscription (either message or change), and the message or change type. For example, com.commercetools.product.message.ProductPublished or com.commercetools.order.change.ResourceCreated.

+ */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

The default REST URI of the ReferenceTypeId that triggered this event, including the project key.

+ */ + @NotNull + @JsonProperty("source") + public String getSource(); + + /** + *

Unique identifier of the resource that triggered the event.

+ */ + @NotNull + @JsonProperty("subject") + public String getSubject(); + + /** + *

Corresponds to the lastModifiedAt of the resource at the time the event was triggered.

+ */ + @NotNull + @JsonProperty("time") + public ZonedDateTime getTime(); + + /** + *

Corresponds to the sequenceNumber of a MessageSubscription. Can be used to process messages in the correct order.

+ */ + + @JsonProperty("sequence") + public String getSequence(); + + /** + *

"Integer"

+ */ + + @JsonProperty("sequencetype") + public String getSequencetype(); + + /** + *

The URI from which the message can be retrieved if messages are enabled. Only set for MessageSubscriptions.

+ */ + + @JsonProperty("dataref") + public String getDataref(); + + /** + *

MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

+ */ + @NotNull + @Valid + @JsonProperty("data") + public DeliveryPayload getData(); + + public void setSpecversion(final String specversion); + + public void setId(final String id); + + public void setType(final String type); + + public void setSource(final String source); + + public void setSubject(final String subject); + + public void setTime(final ZonedDateTime time); + + public void setSequence(final String sequence); + + public void setSequencetype(final String sequencetype); + + public void setDataref(final String dataref); + + public void setData(final DeliveryPayload data); + + public static CloudEventsPayload of() { + return new CloudEventsPayloadImpl(); + } + + public static CloudEventsPayload of(final CloudEventsPayload template) { + CloudEventsPayloadImpl instance = new CloudEventsPayloadImpl(); + instance.setSpecversion(template.getSpecversion()); + instance.setId(template.getId()); + instance.setType(template.getType()); + instance.setSource(template.getSource()); + instance.setSubject(template.getSubject()); + instance.setTime(template.getTime()); + instance.setSequence(template.getSequence()); + instance.setSequencetype(template.getSequencetype()); + instance.setDataref(template.getDataref()); + instance.setData(template.getData()); + return instance; + } + + public static CloudEventsPayloadBuilder builder() { + return CloudEventsPayloadBuilder.of(); + } + + public static CloudEventsPayloadBuilder builder(final CloudEventsPayload template) { + return CloudEventsPayloadBuilder.of(template); + } + + default T withCloudEventsPayload(Function helper) { + return helper.apply(this); + } + + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadBuilder.java new file mode 100644 index 00000000000..874aabca610 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadBuilder.java @@ -0,0 +1,238 @@ + +package com.commercetools.api.models.subscription; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CloudEventsPayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CloudEventsPayload cloudEventsPayload = CloudEventsPayload.builder()
+ *             .specversion("{specversion}")
+ *             .id("{id}")
+ *             .type("{type}")
+ *             .source("{source}")
+ *             .subject("{subject}")
+ *             .time(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .data(dataBuilder -> dataBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CloudEventsPayloadBuilder implements Builder { + + private String specversion; + + private String id; + + private String type; + + private String source; + + private String subject; + + private java.time.ZonedDateTime time; + + @Nullable + private String sequence; + + @Nullable + private String sequencetype; + + @Nullable + private String dataref; + + private com.commercetools.api.models.subscription.DeliveryPayload data; + + /** + *

The version of the CloudEvents specification which the event uses.

+ */ + + public CloudEventsPayloadBuilder specversion(final String specversion) { + this.specversion = specversion; + return this; + } + + /** + *

Unique identifier of the event.

+ */ + + public CloudEventsPayloadBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

The type is namespaced with com.commercetools, followed by the ReferenceTypeId, the type of Subscription (either message or change), and the message or change type. For example, com.commercetools.product.message.ProductPublished or com.commercetools.order.change.ResourceCreated.

+ */ + + public CloudEventsPayloadBuilder type(final String type) { + this.type = type; + return this; + } + + /** + *

The default REST URI of the ReferenceTypeId that triggered this event, including the project key.

+ */ + + public CloudEventsPayloadBuilder source(final String source) { + this.source = source; + return this; + } + + /** + *

Unique identifier of the resource that triggered the event.

+ */ + + public CloudEventsPayloadBuilder subject(final String subject) { + this.subject = subject; + return this; + } + + /** + *

Corresponds to the lastModifiedAt of the resource at the time the event was triggered.

+ */ + + public CloudEventsPayloadBuilder time(final java.time.ZonedDateTime time) { + this.time = time; + return this; + } + + /** + *

Corresponds to the sequenceNumber of a MessageSubscription. Can be used to process messages in the correct order.

+ */ + + public CloudEventsPayloadBuilder sequence(@Nullable final String sequence) { + this.sequence = sequence; + return this; + } + + /** + *

"Integer"

+ */ + + public CloudEventsPayloadBuilder sequencetype(@Nullable final String sequencetype) { + this.sequencetype = sequencetype; + return this; + } + + /** + *

The URI from which the message can be retrieved if messages are enabled. Only set for MessageSubscriptions.

+ */ + + public CloudEventsPayloadBuilder dataref(@Nullable final String dataref) { + this.dataref = dataref; + return this; + } + + /** + *

MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

+ */ + + public CloudEventsPayloadBuilder data(final com.commercetools.api.models.subscription.DeliveryPayload data) { + this.data = data; + return this; + } + + /** + *

MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

+ */ + + public CloudEventsPayloadBuilder data( + Function> builder) { + this.data = builder.apply(com.commercetools.api.models.subscription.DeliveryPayloadBuilder.of()).build(); + return this; + } + + public String getSpecversion() { + return this.specversion; + } + + public String getId() { + return this.id; + } + + public String getType() { + return this.type; + } + + public String getSource() { + return this.source; + } + + public String getSubject() { + return this.subject; + } + + public java.time.ZonedDateTime getTime() { + return this.time; + } + + @Nullable + public String getSequence() { + return this.sequence; + } + + @Nullable + public String getSequencetype() { + return this.sequencetype; + } + + @Nullable + public String getDataref() { + return this.dataref; + } + + public com.commercetools.api.models.subscription.DeliveryPayload getData() { + return this.data; + } + + public CloudEventsPayload build() { + Objects.requireNonNull(specversion, CloudEventsPayload.class + ": specversion is missing"); + Objects.requireNonNull(id, CloudEventsPayload.class + ": id is missing"); + Objects.requireNonNull(type, CloudEventsPayload.class + ": type is missing"); + Objects.requireNonNull(source, CloudEventsPayload.class + ": source is missing"); + Objects.requireNonNull(subject, CloudEventsPayload.class + ": subject is missing"); + Objects.requireNonNull(time, CloudEventsPayload.class + ": time is missing"); + Objects.requireNonNull(data, CloudEventsPayload.class + ": data is missing"); + return new CloudEventsPayloadImpl(specversion, id, type, source, subject, time, sequence, sequencetype, dataref, + data); + } + + /** + * builds CloudEventsPayload without checking for non null required values + */ + public CloudEventsPayload buildUnchecked() { + return new CloudEventsPayloadImpl(specversion, id, type, source, subject, time, sequence, sequencetype, dataref, + data); + } + + public static CloudEventsPayloadBuilder of() { + return new CloudEventsPayloadBuilder(); + } + + public static CloudEventsPayloadBuilder of(final CloudEventsPayload template) { + CloudEventsPayloadBuilder builder = new CloudEventsPayloadBuilder(); + builder.specversion = template.getSpecversion(); + builder.id = template.getId(); + builder.type = template.getType(); + builder.source = template.getSource(); + builder.subject = template.getSubject(); + builder.time = template.getTime(); + builder.sequence = template.getSequence(); + builder.sequencetype = template.getSequencetype(); + builder.dataref = template.getDataref(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadImpl.java new file mode 100644 index 00000000000..e02c16245da --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadImpl.java @@ -0,0 +1,223 @@ + +package com.commercetools.api.models.subscription; + +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; + +/** + *

The CloudEventsFormat represents event data in a way that conforms to a common specification. The message payload can be found inside the data field.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CloudEventsPayloadImpl implements CloudEventsPayload, ModelBase { + + private String specversion; + + private String id; + + private String type; + + private String source; + + private String subject; + + private java.time.ZonedDateTime time; + + private String sequence; + + private String sequencetype; + + private String dataref; + + private com.commercetools.api.models.subscription.DeliveryPayload data; + + @JsonCreator + CloudEventsPayloadImpl(@JsonProperty("specversion") final String specversion, @JsonProperty("id") final String id, + @JsonProperty("type") final String type, @JsonProperty("source") final String source, + @JsonProperty("subject") final String subject, @JsonProperty("time") final java.time.ZonedDateTime time, + @JsonProperty("sequence") final String sequence, @JsonProperty("sequencetype") final String sequencetype, + @JsonProperty("dataref") final String dataref, + @JsonProperty("data") final com.commercetools.api.models.subscription.DeliveryPayload data) { + this.specversion = specversion; + this.id = id; + this.type = type; + this.source = source; + this.subject = subject; + this.time = time; + this.sequence = sequence; + this.sequencetype = sequencetype; + this.dataref = dataref; + this.data = data; + } + + public CloudEventsPayloadImpl() { + } + + /** + *

The version of the CloudEvents specification which the event uses.

+ */ + + public String getSpecversion() { + return this.specversion; + } + + /** + *

Unique identifier of the event.

+ */ + + public String getId() { + return this.id; + } + + /** + *

The type is namespaced with com.commercetools, followed by the ReferenceTypeId, the type of Subscription (either message or change), and the message or change type. For example, com.commercetools.product.message.ProductPublished or com.commercetools.order.change.ResourceCreated.

+ */ + + public String getType() { + return this.type; + } + + /** + *

The default REST URI of the ReferenceTypeId that triggered this event, including the project key.

+ */ + + public String getSource() { + return this.source; + } + + /** + *

Unique identifier of the resource that triggered the event.

+ */ + + public String getSubject() { + return this.subject; + } + + /** + *

Corresponds to the lastModifiedAt of the resource at the time the event was triggered.

+ */ + + public java.time.ZonedDateTime getTime() { + return this.time; + } + + /** + *

Corresponds to the sequenceNumber of a MessageSubscription. Can be used to process messages in the correct order.

+ */ + + public String getSequence() { + return this.sequence; + } + + /** + *

"Integer"

+ */ + + public String getSequencetype() { + return this.sequencetype; + } + + /** + *

The URI from which the message can be retrieved if messages are enabled. Only set for MessageSubscriptions.

+ */ + + public String getDataref() { + return this.dataref; + } + + /** + *

MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

+ */ + + public com.commercetools.api.models.subscription.DeliveryPayload getData() { + return this.data; + } + + public void setSpecversion(final String specversion) { + this.specversion = specversion; + } + + public void setId(final String id) { + this.id = id; + } + + public void setType(final String type) { + this.type = type; + } + + public void setSource(final String source) { + this.source = source; + } + + public void setSubject(final String subject) { + this.subject = subject; + } + + public void setTime(final java.time.ZonedDateTime time) { + this.time = time; + } + + public void setSequence(final String sequence) { + this.sequence = sequence; + } + + public void setSequencetype(final String sequencetype) { + this.sequencetype = sequencetype; + } + + public void setDataref(final String dataref) { + this.dataref = dataref; + } + + public void setData(final com.commercetools.api.models.subscription.DeliveryPayload data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CloudEventsPayloadImpl that = (CloudEventsPayloadImpl) o; + + return new EqualsBuilder().append(specversion, that.specversion) + .append(id, that.id) + .append(type, that.type) + .append(source, that.source) + .append(subject, that.subject) + .append(time, that.time) + .append(sequence, that.sequence) + .append(sequencetype, that.sequencetype) + .append(dataref, that.dataref) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(specversion) + .append(id) + .append(type) + .append(source) + .append(subject) + .append(time) + .append(sequence) + .append(sequencetype) + .append(dataref) + .append(data) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java index ab909b9ff6f..9f49bbaa584 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java @@ -16,7 +16,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * DeliveryPayload + *

All payloads for the PlatformFormat share these common fields.

* *
* Example to create a subtype instance using the builder pattern @@ -31,7 +31,6 @@ * lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) * sequenceNumber(0.3) * resourceVersion(0.3) - * payloadNotIncluded(payloadNotIncludedBuilder -> payloadNotIncludedBuilder) * .build() * *
@@ -47,21 +46,21 @@ public interface DeliveryPayload { /** - * + *

key of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ @NotNull @JsonProperty("projectKey") public String getProjectKey(); /** - * + *

Identifies the payload.

*/ @NotNull @JsonProperty("notificationType") public String getNotificationType(); /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ @NotNull @Valid @@ -69,7 +68,7 @@ public interface DeliveryPayload { public Reference getResource(); /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ @Valid @JsonProperty("resourceUserProvidedIdentifiers") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java index dcbffa5d93e..cb8d85a61c6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * DeliveryPayload + *

All payloads for the PlatformFormat share these common fields.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class DeliveryPayloadImpl implements DeliveryPayload, ModelBase { @@ -43,7 +43,7 @@ public DeliveryPayloadImpl() { } /** - * + *

key of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public String getProjectKey() { @@ -51,7 +51,7 @@ public String getProjectKey() { } /** - * + *

Identifies the payload.

*/ public String getNotificationType() { @@ -59,7 +59,7 @@ public String getNotificationType() { } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public com.commercetools.api.models.common.Reference getResource() { @@ -67,7 +67,7 @@ public com.commercetools.api.models.common.Reference getResource() { } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestination.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestination.java index aded9ba818c..f0b665337e8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestination.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestination.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

AWS EventBridge can be used to push events and messages to a serverless event bus that can forward them to AWS SQS, SNS, Lambda, and other AWS services based on forwarding rules.

+ *

AWS EventBridge can be used to push events and messages to a serverless event bus that can forward them to AWS SQS, SNS, Lambda, and other AWS services based on forwarding rules. Once the Subscription is created, an equivalent "partner event source" is created in AWS EventBridge. This event source must be associated with an event bus for the Subscription setup to be complete.

* *
* Example to create an instance using the builder pattern @@ -33,14 +33,14 @@ public interface EventBridgeDestination extends Destination { String EVENT_BRIDGE = "EventBridge"; /** - *

AWS region of the Subscriptions that receives the events.

+ *

AWS region that receives the events.

*/ @NotNull @JsonProperty("region") public String getRegion(); /** - *

ID of the AWS account that receives events.

+ *

ID of the AWS account that receives the events.

*/ @NotNull @JsonProperty("accountId") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationBuilder.java index 8293c997a1b..e704b2fe934 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationBuilder.java @@ -27,7 +27,7 @@ public class EventBridgeDestinationBuilder implements BuilderAWS region of the Subscriptions that receives the events.

+ *

AWS region that receives the events.

*/ public EventBridgeDestinationBuilder region(final String region) { @@ -36,7 +36,7 @@ public EventBridgeDestinationBuilder region(final String region) { } /** - *

ID of the AWS account that receives events.

+ *

ID of the AWS account that receives the events.

*/ public EventBridgeDestinationBuilder accountId(final String accountId) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationImpl.java index 9e54a040096..4be187ef2cd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

AWS EventBridge can be used to push events and messages to a serverless event bus that can forward them to AWS SQS, SNS, Lambda, and other AWS services based on forwarding rules.

+ *

AWS EventBridge can be used to push events and messages to a serverless event bus that can forward them to AWS SQS, SNS, Lambda, and other AWS services based on forwarding rules. Once the Subscription is created, an equivalent "partner event source" is created in AWS EventBridge. This event source must be associated with an event bus for the Subscription setup to be complete.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class EventBridgeDestinationImpl implements EventBridgeDestination, ModelBase { @@ -47,7 +47,7 @@ public String getType() { } /** - *

AWS region of the Subscriptions that receives the events.

+ *

AWS region that receives the events.

*/ public String getRegion() { @@ -55,7 +55,7 @@ public String getRegion() { } /** - *

ID of the AWS account that receives events.

+ *

ID of the AWS account that receives the events.

*/ public String getAccountId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestination.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestination.java index 55a9c1be64f..a4f6b0d8fee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestination.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestination.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * GoogleCloudPubSubDestination + *

Destination for Google Cloud Pub/Sub that can be used for Pull subscriptions as well as for Push subscriptions. The topic must give the pubsub.topics.publish permission to the service account subscriptions@commercetools-platform.iam.gserviceaccount.com. If used with the CloudEventsFormat, the message conforms to the PubSub Protocol Binding of the Structured Content Mode.

* *
* Example to create an instance using the builder pattern @@ -33,14 +33,14 @@ public interface GoogleCloudPubSubDestination extends Destination { String GOOGLE_CLOUD_PUB_SUB = "GoogleCloudPubSub"; /** - * + *

ID of the Google Cloud project that contains the Pub/Sub topic.

*/ @NotNull @JsonProperty("projectId") public String getProjectId(); /** - * + *

Name of the topic.

*/ @NotNull @JsonProperty("topic") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationBuilder.java index b80410277d0..aacc59f7f76 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationBuilder.java @@ -27,7 +27,7 @@ public class GoogleCloudPubSubDestinationBuilder implements BuilderID of the Google Cloud project that contains the Pub/Sub topic.

*/ public GoogleCloudPubSubDestinationBuilder projectId(final String projectId) { @@ -36,7 +36,7 @@ public GoogleCloudPubSubDestinationBuilder projectId(final String projectId) { } /** - * + *

Name of the topic.

*/ public GoogleCloudPubSubDestinationBuilder topic(final String topic) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationImpl.java index f388887f2f7..8bed6f68bb9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/GoogleCloudPubSubDestinationImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * GoogleCloudPubSubDestination + *

Destination for Google Cloud Pub/Sub that can be used for Pull subscriptions as well as for Push subscriptions. The topic must give the pubsub.topics.publish permission to the service account subscriptions@commercetools-platform.iam.gserviceaccount.com. If used with the CloudEventsFormat, the message conforms to the PubSub Protocol Binding of the Structured Content Mode.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class GoogleCloudPubSubDestinationImpl implements GoogleCloudPubSubDestination, ModelBase { @@ -47,7 +47,7 @@ public String getType() { } /** - * + *

ID of the Google Cloud project that contains the Pub/Sub topic.

*/ public String getProjectId() { @@ -55,7 +55,7 @@ public String getProjectId() { } /** - * + *

Name of the topic.

*/ public String getTopic() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestination.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestination.java index f0d5cea5264..fdf69cede46 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestination.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestination.java @@ -27,6 +27,7 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = IronMqDestinationImpl.class) +@Deprecated public interface IronMqDestination extends Destination { String IRON_MQ = "IronMQ"; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationBuilder.java index 657ed2cdc19..b999344f8e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationBuilder.java @@ -19,6 +19,7 @@ *
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@Deprecated public class IronMqDestinationBuilder implements Builder { private String uri; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationImpl.java index 628c5796209..09577a7d711 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/IronMqDestinationImpl.java @@ -18,6 +18,7 @@ * IronMqDestination */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@Deprecated public class IronMqDestinationImpl implements IronMqDestination, ModelBase { private String type; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayload.java index f976ab3b9f3..bc61c54fc07 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayload.java @@ -15,7 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MessageDeliveryPayload + *

This payload is sent for a MessageSubscription.

* *
* Example to create an instance using the builder pattern @@ -30,7 +30,6 @@ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) * .sequenceNumber(0.3) * .resourceVersion(0.3) - * .payloadNotIncluded(payloadNotIncludedBuilder -> payloadNotIncludedBuilder) * .build() * *
@@ -42,51 +41,50 @@ public interface MessageDeliveryPayload extends DeliveryPayload { String MESSAGE = "Message"; /** - * + *

Unique ID of the message.

*/ @NotNull @JsonProperty("id") public String getId(); /** - * + *

Last seen version of the resource.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Date and time (UTC) the resource was initially created.

*/ @NotNull @JsonProperty("createdAt") public ZonedDateTime getCreatedAt(); /** - * + *

Date and time (UTC) the resource was last modified.

*/ @NotNull @JsonProperty("lastModifiedAt") public ZonedDateTime getLastModifiedAt(); /** - * + *

Used to ensure all messages of the resource are processed in correct order. The sequenceNumber of the next message of the resource is a successor of the sequenceNumber of the current message.

*/ @NotNull @JsonProperty("sequenceNumber") public Long getSequenceNumber(); /** - * + *

Version of the resource on which the change was performed.

*/ @NotNull @JsonProperty("resourceVersion") public Long getResourceVersion(); /** - * + *

If the payload does not fit into the size limit or its format is not accepted by the messaging service, the payloadNotIncluded field is present.

*/ - @NotNull @Valid @JsonProperty("payloadNotIncluded") public PayloadNotIncluded getPayloadNotIncluded(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadBuilder.java index a0f65c8cb9f..9f1d09554d8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadBuilder.java @@ -24,7 +24,6 @@ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) * .sequenceNumber(0.3) * .resourceVersion(0.3) - * .payloadNotIncluded(payloadNotIncludedBuilder -> payloadNotIncludedBuilder) * .build() * *
@@ -51,10 +50,11 @@ public class MessageDeliveryPayloadBuilder implements Builderkey of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public MessageDeliveryPayloadBuilder projectKey(final String projectKey) { @@ -63,7 +63,7 @@ public MessageDeliveryPayloadBuilder projectKey(final String projectKey) { } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public MessageDeliveryPayloadBuilder resource(final com.commercetools.api.models.common.Reference resource) { @@ -72,7 +72,7 @@ public MessageDeliveryPayloadBuilder resource(final com.commercetools.api.models } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public MessageDeliveryPayloadBuilder resource( @@ -82,7 +82,7 @@ public MessageDeliveryPayloadBuilder resource( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public MessageDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -94,7 +94,7 @@ public MessageDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public MessageDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -104,7 +104,7 @@ public MessageDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - * + *

Unique ID of the message.

*/ public MessageDeliveryPayloadBuilder id(final String id) { @@ -113,7 +113,7 @@ public MessageDeliveryPayloadBuilder id(final String id) { } /** - * + *

Last seen version of the resource.

*/ public MessageDeliveryPayloadBuilder version(final Long version) { @@ -122,7 +122,7 @@ public MessageDeliveryPayloadBuilder version(final Long version) { } /** - * + *

Date and time (UTC) the resource was initially created.

*/ public MessageDeliveryPayloadBuilder createdAt(final java.time.ZonedDateTime createdAt) { @@ -131,7 +131,7 @@ public MessageDeliveryPayloadBuilder createdAt(final java.time.ZonedDateTime cre } /** - * + *

Date and time (UTC) the resource was last modified.

*/ public MessageDeliveryPayloadBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { @@ -140,7 +140,7 @@ public MessageDeliveryPayloadBuilder lastModifiedAt(final java.time.ZonedDateTim } /** - * + *

Used to ensure all messages of the resource are processed in correct order. The sequenceNumber of the next message of the resource is a successor of the sequenceNumber of the current message.

*/ public MessageDeliveryPayloadBuilder sequenceNumber(final Long sequenceNumber) { @@ -149,7 +149,7 @@ public MessageDeliveryPayloadBuilder sequenceNumber(final Long sequenceNumber) { } /** - * + *

Version of the resource on which the change was performed.

*/ public MessageDeliveryPayloadBuilder resourceVersion(final Long resourceVersion) { @@ -158,7 +158,7 @@ public MessageDeliveryPayloadBuilder resourceVersion(final Long resourceVersion) } /** - * + *

If the payload does not fit into the size limit or its format is not accepted by the messaging service, the payloadNotIncluded field is present.

*/ public MessageDeliveryPayloadBuilder payloadNotIncluded( @@ -170,11 +170,11 @@ public MessageDeliveryPayloadBuilder payloadNotIncluded( } /** - * + *

If the payload does not fit into the size limit or its format is not accepted by the messaging service, the payloadNotIncluded field is present.

*/ public MessageDeliveryPayloadBuilder payloadNotIncluded( - final com.commercetools.api.models.subscription.PayloadNotIncluded payloadNotIncluded) { + @Nullable final com.commercetools.api.models.subscription.PayloadNotIncluded payloadNotIncluded) { this.payloadNotIncluded = payloadNotIncluded; return this; } @@ -216,6 +216,7 @@ public Long getResourceVersion() { return this.resourceVersion; } + @Nullable public com.commercetools.api.models.subscription.PayloadNotIncluded getPayloadNotIncluded() { return this.payloadNotIncluded; } @@ -229,7 +230,6 @@ public MessageDeliveryPayload build() { Objects.requireNonNull(lastModifiedAt, MessageDeliveryPayload.class + ": lastModifiedAt is missing"); Objects.requireNonNull(sequenceNumber, MessageDeliveryPayload.class + ": sequenceNumber is missing"); Objects.requireNonNull(resourceVersion, MessageDeliveryPayload.class + ": resourceVersion is missing"); - Objects.requireNonNull(payloadNotIncluded, MessageDeliveryPayload.class + ": payloadNotIncluded is missing"); return new MessageDeliveryPayloadImpl(projectKey, resource, resourceUserProvidedIdentifiers, id, version, createdAt, lastModifiedAt, sequenceNumber, resourceVersion, payloadNotIncluded); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java index 577ebd1cfa6..d5a2279b640 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MessageDeliveryPayload + *

This payload is sent for a MessageSubscription.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MessageDeliveryPayloadImpl implements MessageDeliveryPayload, ModelBase { @@ -70,7 +70,7 @@ public MessageDeliveryPayloadImpl() { } /** - * + *

key of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public String getProjectKey() { @@ -78,7 +78,7 @@ public String getProjectKey() { } /** - * + *

Identifies the payload.

*/ public String getNotificationType() { @@ -86,7 +86,7 @@ public String getNotificationType() { } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public com.commercetools.api.models.common.Reference getResource() { @@ -94,7 +94,7 @@ public com.commercetools.api.models.common.Reference getResource() { } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { @@ -102,7 +102,7 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU } /** - * + *

Unique ID of the message.

*/ public String getId() { @@ -110,7 +110,7 @@ public String getId() { } /** - * + *

Last seen version of the resource.

*/ public Long getVersion() { @@ -118,7 +118,7 @@ public Long getVersion() { } /** - * + *

Date and time (UTC) the resource was initially created.

*/ public java.time.ZonedDateTime getCreatedAt() { @@ -126,7 +126,7 @@ public java.time.ZonedDateTime getCreatedAt() { } /** - * + *

Date and time (UTC) the resource was last modified.

*/ public java.time.ZonedDateTime getLastModifiedAt() { @@ -134,7 +134,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - * + *

Used to ensure all messages of the resource are processed in correct order. The sequenceNumber of the next message of the resource is a successor of the sequenceNumber of the current message.

*/ public Long getSequenceNumber() { @@ -142,7 +142,7 @@ public Long getSequenceNumber() { } /** - * + *

Version of the resource on which the change was performed.

*/ public Long getResourceVersion() { @@ -150,7 +150,7 @@ public Long getResourceVersion() { } /** - * + *

If the payload does not fit into the size limit or its format is not accepted by the messaging service, the payloadNotIncluded field is present.

*/ public com.commercetools.api.models.subscription.PayloadNotIncluded getPayloadNotIncluded() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscription.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscription.java index bf030f4ffdc..86a97624d21 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscription.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscription.java @@ -13,14 +13,15 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * MessageSubscription + *

For supported resources and message types, see Message Types. Messages will be delivered even if the Messages Query HTTP API is not enabled.

+ *

For MessageSubscriptions, the format of the payload is MessageDeliveryPayload.

* *
* Example to create an instance using the builder pattern *
*

  *     MessageSubscription messageSubscription = MessageSubscription.builder()
- *             .resourceTypeId("{resourceTypeId}")
+ *             .resourceTypeId(MessageSubscriptionResourceTypeId.BUSINESS_UNIT)
  *             .build()
  * 
*
@@ -30,20 +31,20 @@ public interface MessageSubscription { /** - * + *

Unique identifier for the type of resource, for example, order.

*/ @NotNull @JsonProperty("resourceTypeId") - public String getResourceTypeId(); + public MessageSubscriptionResourceTypeId getResourceTypeId(); /** - * + *

Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

*/ @JsonProperty("types") public List getTypes(); - public void setResourceTypeId(final String resourceTypeId); + public void setResourceTypeId(final MessageSubscriptionResourceTypeId resourceTypeId); @JsonIgnore public void setTypes(final String... types); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionBuilder.java index 82f45638f8d..43f8ea0944e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionBuilder.java @@ -15,7 +15,7 @@ *
*

  *     MessageSubscription messageSubscription = MessageSubscription.builder()
- *             .resourceTypeId("{resourceTypeId}")
+ *             .resourceTypeId(MessageSubscriptionResourceTypeId.BUSINESS_UNIT)
  *             .build()
  * 
*
@@ -23,22 +23,23 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MessageSubscriptionBuilder implements Builder { - private String resourceTypeId; + private com.commercetools.api.models.subscription.MessageSubscriptionResourceTypeId resourceTypeId; @Nullable private java.util.List types; /** - * + *

Unique identifier for the type of resource, for example, order.

*/ - public MessageSubscriptionBuilder resourceTypeId(final String resourceTypeId) { + public MessageSubscriptionBuilder resourceTypeId( + final com.commercetools.api.models.subscription.MessageSubscriptionResourceTypeId resourceTypeId) { this.resourceTypeId = resourceTypeId; return this; } /** - * + *

Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

*/ public MessageSubscriptionBuilder types(@Nullable final String... types) { @@ -47,7 +48,7 @@ public MessageSubscriptionBuilder types(@Nullable final String... types) { } /** - * + *

Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

*/ public MessageSubscriptionBuilder types(@Nullable final java.util.List types) { @@ -56,7 +57,7 @@ public MessageSubscriptionBuilder types(@Nullable final java.util.List t } /** - * + *

Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

*/ public MessageSubscriptionBuilder plusTypes(@Nullable final String... types) { @@ -67,7 +68,7 @@ public MessageSubscriptionBuilder plusTypes(@Nullable final String... types) { return this; } - public String getResourceTypeId() { + public com.commercetools.api.models.subscription.MessageSubscriptionResourceTypeId getResourceTypeId() { return this.resourceTypeId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionImpl.java index c5874ca5ec5..2e82fb0b1c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionImpl.java @@ -15,17 +15,19 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * MessageSubscription + *

For supported resources and message types, see Message Types. Messages will be delivered even if the Messages Query HTTP API is not enabled.

+ *

For MessageSubscriptions, the format of the payload is MessageDeliveryPayload.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MessageSubscriptionImpl implements MessageSubscription, ModelBase { - private String resourceTypeId; + private com.commercetools.api.models.subscription.MessageSubscriptionResourceTypeId resourceTypeId; private java.util.List types; @JsonCreator - MessageSubscriptionImpl(@JsonProperty("resourceTypeId") final String resourceTypeId, + MessageSubscriptionImpl( + @JsonProperty("resourceTypeId") final com.commercetools.api.models.subscription.MessageSubscriptionResourceTypeId resourceTypeId, @JsonProperty("types") final java.util.List types) { this.resourceTypeId = resourceTypeId; this.types = types; @@ -35,22 +37,23 @@ public MessageSubscriptionImpl() { } /** - * + *

Unique identifier for the type of resource, for example, order.

*/ - public String getResourceTypeId() { + public com.commercetools.api.models.subscription.MessageSubscriptionResourceTypeId getResourceTypeId() { return this.resourceTypeId; } /** - * + *

Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

*/ public java.util.List getTypes() { return this.types; } - public void setResourceTypeId(final String resourceTypeId) { + public void setResourceTypeId( + final com.commercetools.api.models.subscription.MessageSubscriptionResourceTypeId resourceTypeId) { this.resourceTypeId = resourceTypeId; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionResourceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionResourceTypeId.java new file mode 100644 index 00000000000..5163aa9712d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageSubscriptionResourceTypeId.java @@ -0,0 +1,165 @@ + +package com.commercetools.api.models.subscription; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Resource types supported by MessageSubscriptions:

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface MessageSubscriptionResourceTypeId { + + /** +

Messages related to Business Units.

+ + */ + MessageSubscriptionResourceTypeId BUSINESS_UNIT = MessageSubscriptionResourceTypeIdEnum.BUSINESS_UNIT; + /** +

Messages related to Categories.

+ + */ + MessageSubscriptionResourceTypeId CATEGORY = MessageSubscriptionResourceTypeIdEnum.CATEGORY; + /** +

Messages related to Customers.

+ + */ + MessageSubscriptionResourceTypeId CUSTOMER = MessageSubscriptionResourceTypeIdEnum.CUSTOMER; + /** +

Messages related to InventoryEntries.

+ + */ + MessageSubscriptionResourceTypeId INVENTORY_ENTRY = MessageSubscriptionResourceTypeIdEnum.INVENTORY_ENTRY; + /** +

Messages related to Orders.

+ + */ + MessageSubscriptionResourceTypeId ORDER = MessageSubscriptionResourceTypeIdEnum.ORDER; + /** +

Messages related to Payments.

+ + */ + MessageSubscriptionResourceTypeId PAYMENT = MessageSubscriptionResourceTypeIdEnum.PAYMENT; + /** +

Messages related to Products.

+ + */ + MessageSubscriptionResourceTypeId PRODUCT = MessageSubscriptionResourceTypeIdEnum.PRODUCT; + /** +

Messages related to ProductSelections.

+ + */ + MessageSubscriptionResourceTypeId PRODUCT_SELECTION = MessageSubscriptionResourceTypeIdEnum.PRODUCT_SELECTION; + /** +

Messages related to Quotes.

+ + */ + MessageSubscriptionResourceTypeId QUOTE = MessageSubscriptionResourceTypeIdEnum.QUOTE; + /** +

Messages related to Quote Requests.

+ + */ + MessageSubscriptionResourceTypeId QUOTE_REQUEST = MessageSubscriptionResourceTypeIdEnum.QUOTE_REQUEST; + /** +

Messages related to Reviews.

+ + */ + MessageSubscriptionResourceTypeId REVIEW = MessageSubscriptionResourceTypeIdEnum.REVIEW; + /** +

Messages related to Staged Quotes.

+ + */ + MessageSubscriptionResourceTypeId STAGED_QUOTE = MessageSubscriptionResourceTypeIdEnum.STAGED_QUOTE; + /** +

Messages related to StandalonePrices.

+ + */ + MessageSubscriptionResourceTypeId STANDALONE_PRICE = MessageSubscriptionResourceTypeIdEnum.STANDALONE_PRICE; + /** +

Messages related to Stores.

+ + */ + MessageSubscriptionResourceTypeId STORE = MessageSubscriptionResourceTypeIdEnum.STORE; + + enum MessageSubscriptionResourceTypeIdEnum implements MessageSubscriptionResourceTypeId { + BUSINESS_UNIT("business-unit"), + + CATEGORY("category"), + + CUSTOMER("customer"), + + INVENTORY_ENTRY("inventory-entry"), + + ORDER("order"), + + PAYMENT("payment"), + + PRODUCT("product"), + + PRODUCT_SELECTION("product-selection"), + + QUOTE("quote"), + + QUOTE_REQUEST("quote-request"), + + REVIEW("review"), + + STAGED_QUOTE("staged-quote"), + + STANDALONE_PRICE("standalone-price"), + + STORE("store"); + private final String jsonName; + + private MessageSubscriptionResourceTypeIdEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + @JsonValue + String getJsonName(); + + String name(); + + String toString(); + + @JsonCreator + public static MessageSubscriptionResourceTypeId findEnum(String value) { + return findEnumViaJsonName(value).orElse(new MessageSubscriptionResourceTypeId() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + public static MessageSubscriptionResourceTypeId[] values() { + return MessageSubscriptionResourceTypeIdEnum.values(); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncluded.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncluded.java index 417c3365cbb..8f2bf9b5673 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncluded.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncluded.java @@ -31,14 +31,14 @@ public interface PayloadNotIncluded { /** - * + *

Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.

*/ @NotNull @JsonProperty("reason") public String getReason(); /** - * + *

Value of the type field in the original payload.

*/ @NotNull @JsonProperty("payloadType") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedBuilder.java index 104fcb90766..599a8974c41 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedBuilder.java @@ -27,7 +27,7 @@ public class PayloadNotIncludedBuilder implements Builder { private String payloadType; /** - * + *

Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.

*/ public PayloadNotIncludedBuilder reason(final String reason) { @@ -36,7 +36,7 @@ public PayloadNotIncludedBuilder reason(final String reason) { } /** - * + *

Value of the type field in the original payload.

*/ public PayloadNotIncludedBuilder payloadType(final String payloadType) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedImpl.java index 741d2065de9..1bca642110b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PayloadNotIncludedImpl.java @@ -35,7 +35,7 @@ public PayloadNotIncludedImpl() { } /** - * + *

Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.

*/ public String getReason() { @@ -43,7 +43,7 @@ public String getReason() { } /** - * + *

Value of the type field in the original payload.

*/ public String getPayloadType() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormat.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormat.java index f050aa44190..1254eeb5483 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormat.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormat.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * PlatformFormat + *

The PlatformFormat uses constructs that are similar to the ones used in the REST API, for example, on the Messages Query HTTP API.

* *
* Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormatImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormatImpl.java index e3a9af7b3d5..8264c6a12e3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormatImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/PlatformFormatImpl.java @@ -14,7 +14,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * PlatformFormat + *

The PlatformFormat uses constructs that are similar to the ones used in the REST API, for example, on the Messages Query HTTP API.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class PlatformFormatImpl implements PlatformFormat, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayload.java index 14acab18871..ac56167a94c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayload.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * ResourceCreatedDeliveryPayload + *

This payload is sent for a ChangeSubscription when a resource is created.

* *
* Example to create an instance using the builder pattern @@ -36,14 +36,14 @@ public interface ResourceCreatedDeliveryPayload extends DeliveryPayload { String RESOURCE_CREATED = "ResourceCreated"; /** - * + *

Last seen version of the resource.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Date and time (UTC) the resource was last modified.

*/ @NotNull @JsonProperty("modifiedAt") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadBuilder.java index 1c2aa5f4d11..a1752a595d5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadBuilder.java @@ -39,7 +39,7 @@ public class ResourceCreatedDeliveryPayloadBuilder implements Builderkey of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public ResourceCreatedDeliveryPayloadBuilder projectKey(final String projectKey) { @@ -48,7 +48,7 @@ public ResourceCreatedDeliveryPayloadBuilder projectKey(final String projectKey) } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public ResourceCreatedDeliveryPayloadBuilder resource( @@ -58,7 +58,7 @@ public ResourceCreatedDeliveryPayloadBuilder resource( } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public ResourceCreatedDeliveryPayloadBuilder resource( @@ -68,7 +68,7 @@ public ResourceCreatedDeliveryPayloadBuilder resource( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public ResourceCreatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -80,7 +80,7 @@ public ResourceCreatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public ResourceCreatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -90,7 +90,7 @@ public ResourceCreatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - * + *

Last seen version of the resource.

*/ public ResourceCreatedDeliveryPayloadBuilder version(final Long version) { @@ -99,7 +99,7 @@ public ResourceCreatedDeliveryPayloadBuilder version(final Long version) { } /** - * + *

Date and time (UTC) the resource was last modified.

*/ public ResourceCreatedDeliveryPayloadBuilder modifiedAt(final java.time.ZonedDateTime modifiedAt) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java index 05b987a89cf..f07674c7c12 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * ResourceCreatedDeliveryPayload + *

This payload is sent for a ChangeSubscription when a resource is created.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ResourceCreatedDeliveryPayloadImpl implements ResourceCreatedDeliveryPayload, ModelBase { @@ -51,7 +51,7 @@ public ResourceCreatedDeliveryPayloadImpl() { } /** - * + *

key of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public String getProjectKey() { @@ -59,7 +59,7 @@ public String getProjectKey() { } /** - * + *

Identifies the payload.

*/ public String getNotificationType() { @@ -67,7 +67,7 @@ public String getNotificationType() { } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public com.commercetools.api.models.common.Reference getResource() { @@ -75,7 +75,7 @@ public com.commercetools.api.models.common.Reference getResource() { } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { @@ -83,7 +83,7 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU } /** - * + *

Last seen version of the resource.

*/ public Long getVersion() { @@ -91,7 +91,7 @@ public Long getVersion() { } /** - * + *

Date and time (UTC) the resource was last modified.

*/ public java.time.ZonedDateTime getModifiedAt() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java index 71e5f1d26ec..e4aca2f09e6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * ResourceDeletedDeliveryPayload + *

This payload is sent for a ChangeSubscription when a resource is deleted.

* *
* Example to create an instance using the builder pattern @@ -36,21 +36,21 @@ public interface ResourceDeletedDeliveryPayload extends DeliveryPayload { String RESOURCE_DELETED = "ResourceDeleted"; /** - * + *

Last seen version of the resource.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Date and time (UTC) the resource was last deleted.

*/ @NotNull @JsonProperty("modifiedAt") public ZonedDateTime getModifiedAt(); /** - * + *

true if the dataErasure parameter on the DELETE request was set to true.

*/ @JsonProperty("dataErasure") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java index 23bbcf2e1cf..9985fac0e62 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java @@ -42,7 +42,7 @@ public class ResourceDeletedDeliveryPayloadBuilder implements Builderkey of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public ResourceDeletedDeliveryPayloadBuilder projectKey(final String projectKey) { @@ -51,7 +51,7 @@ public ResourceDeletedDeliveryPayloadBuilder projectKey(final String projectKey) } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public ResourceDeletedDeliveryPayloadBuilder resource( @@ -61,7 +61,7 @@ public ResourceDeletedDeliveryPayloadBuilder resource( } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public ResourceDeletedDeliveryPayloadBuilder resource( @@ -71,7 +71,7 @@ public ResourceDeletedDeliveryPayloadBuilder resource( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public ResourceDeletedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -83,7 +83,7 @@ public ResourceDeletedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public ResourceDeletedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -93,7 +93,7 @@ public ResourceDeletedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - * + *

Last seen version of the resource.

*/ public ResourceDeletedDeliveryPayloadBuilder version(final Long version) { @@ -102,7 +102,7 @@ public ResourceDeletedDeliveryPayloadBuilder version(final Long version) { } /** - * + *

Date and time (UTC) the resource was last deleted.

*/ public ResourceDeletedDeliveryPayloadBuilder modifiedAt(final java.time.ZonedDateTime modifiedAt) { @@ -111,7 +111,7 @@ public ResourceDeletedDeliveryPayloadBuilder modifiedAt(final java.time.ZonedDat } /** - * + *

true if the dataErasure parameter on the DELETE request was set to true.

*/ public ResourceDeletedDeliveryPayloadBuilder dataErasure(@Nullable final Boolean dataErasure) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java index 60c26ba4a74..62f60555b57 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * ResourceDeletedDeliveryPayload + *

This payload is sent for a ChangeSubscription when a resource is deleted.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ResourceDeletedDeliveryPayloadImpl implements ResourceDeletedDeliveryPayload, ModelBase { @@ -55,7 +55,7 @@ public ResourceDeletedDeliveryPayloadImpl() { } /** - * + *

key of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public String getProjectKey() { @@ -63,7 +63,7 @@ public String getProjectKey() { } /** - * + *

Identifies the payload.

*/ public String getNotificationType() { @@ -71,7 +71,7 @@ public String getNotificationType() { } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public com.commercetools.api.models.common.Reference getResource() { @@ -79,7 +79,7 @@ public com.commercetools.api.models.common.Reference getResource() { } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { @@ -87,7 +87,7 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU } /** - * + *

Last seen version of the resource.

*/ public Long getVersion() { @@ -95,7 +95,7 @@ public Long getVersion() { } /** - * + *

Date and time (UTC) the resource was last deleted.

*/ public java.time.ZonedDateTime getModifiedAt() { @@ -103,7 +103,7 @@ public java.time.ZonedDateTime getModifiedAt() { } /** - * + *

true if the dataErasure parameter on the DELETE request was set to true.

*/ public Boolean getDataErasure() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayload.java index a055a60678c..0e8811b4570 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayload.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * ResourceUpdatedDeliveryPayload + *

This payload is sent for a ChangeSubscription when a resource is updated. This includes updates by a background process, like a change in product availability.

* *
* Example to create an instance using the builder pattern @@ -37,21 +37,21 @@ public interface ResourceUpdatedDeliveryPayload extends DeliveryPayload { String RESOURCE_UPDATED = "ResourceUpdated"; /** - * + *

Last seen version of the resource.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Version of the resource before the update.

*/ @NotNull @JsonProperty("oldVersion") public Long getOldVersion(); /** - * + *

Date and time (UTC) the resource was last updated.

*/ @NotNull @JsonProperty("modifiedAt") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadBuilder.java index 64a67b91b50..0caf87a04c6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadBuilder.java @@ -42,7 +42,7 @@ public class ResourceUpdatedDeliveryPayloadBuilder implements Builderkey of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public ResourceUpdatedDeliveryPayloadBuilder projectKey(final String projectKey) { @@ -51,7 +51,7 @@ public ResourceUpdatedDeliveryPayloadBuilder projectKey(final String projectKey) } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public ResourceUpdatedDeliveryPayloadBuilder resource( @@ -61,7 +61,7 @@ public ResourceUpdatedDeliveryPayloadBuilder resource( } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public ResourceUpdatedDeliveryPayloadBuilder resource( @@ -71,7 +71,7 @@ public ResourceUpdatedDeliveryPayloadBuilder resource( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public ResourceUpdatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -83,7 +83,7 @@ public ResourceUpdatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public ResourceUpdatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( @@ -93,7 +93,7 @@ public ResourceUpdatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers( } /** - * + *

Last seen version of the resource.

*/ public ResourceUpdatedDeliveryPayloadBuilder version(final Long version) { @@ -102,7 +102,7 @@ public ResourceUpdatedDeliveryPayloadBuilder version(final Long version) { } /** - * + *

Version of the resource before the update.

*/ public ResourceUpdatedDeliveryPayloadBuilder oldVersion(final Long oldVersion) { @@ -111,7 +111,7 @@ public ResourceUpdatedDeliveryPayloadBuilder oldVersion(final Long oldVersion) { } /** - * + *

Date and time (UTC) the resource was last updated.

*/ public ResourceUpdatedDeliveryPayloadBuilder modifiedAt(final java.time.ZonedDateTime modifiedAt) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java index f5544e34bda..12674a76468 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * ResourceUpdatedDeliveryPayload + *

This payload is sent for a ChangeSubscription when a resource is updated. This includes updates by a background process, like a change in product availability.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ResourceUpdatedDeliveryPayloadImpl implements ResourceUpdatedDeliveryPayload, ModelBase { @@ -54,7 +54,7 @@ public ResourceUpdatedDeliveryPayloadImpl() { } /** - * + *

key of the Project. Useful in message processing if the Destination receives events from multiple Projects.

*/ public String getProjectKey() { @@ -62,7 +62,7 @@ public String getProjectKey() { } /** - * + *

Identifies the payload.

*/ public String getNotificationType() { @@ -70,7 +70,7 @@ public String getNotificationType() { } /** - *

A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

+ *

Reference to the resource that triggered the message.

*/ public com.commercetools.api.models.common.Reference getResource() { @@ -78,7 +78,7 @@ public com.commercetools.api.models.common.Reference getResource() { } /** - *

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.

+ *

User-defined unique identifiers of the resource.

*/ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { @@ -86,7 +86,7 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU } /** - * + *

Last seen version of the resource.

*/ public Long getVersion() { @@ -94,7 +94,7 @@ public Long getVersion() { } /** - * + *

Version of the resource before the update.

*/ public Long getOldVersion() { @@ -102,7 +102,7 @@ public Long getOldVersion() { } /** - * + *

Date and time (UTC) the resource was last updated.

*/ public java.time.ZonedDateTime getModifiedAt() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestination.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestination.java index a418a39bd6e..594c561677a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestination.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestination.java @@ -13,7 +13,9 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * SnsDestination + *

AWS SNS can be used to push messages to AWS Lambda, HTTP endpoints (webhooks), or fan-out messages to SQS queues. We recommend setting authenticationMode to IAM, to avoid unnecessary key management. For IAM authentication, give permissions to user arn:aws:iam::362576667341:user/subscriptions to publish to the topic before creating the Subscription. Otherwise, a test message will not be sent.

+ *

If you prefer to use Credentials for authentication, we recommend creating an IAM user with an accessKey and accessSecret pair specifically for each Subscription.

+ *

The IAM user should only have the sns:Publish permission on this topic.

* *
* Example to create an instance using the builder pattern @@ -46,7 +48,7 @@ public interface SnsDestination extends Destination { public String getAccessSecret(); /** - * + *

Amazon Resource Name (ARN) of the topic.

*/ @NotNull @JsonProperty("topicArn") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationBuilder.java index 6057b3ec2eb..4a16db6766d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationBuilder.java @@ -53,7 +53,7 @@ public SnsDestinationBuilder accessSecret(@Nullable final String accessSecret) { } /** - * + *

Amazon Resource Name (ARN) of the topic.

*/ public SnsDestinationBuilder topicArn(final String topicArn) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationImpl.java index b9397e49c10..77c5a0012bc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SnsDestinationImpl.java @@ -15,7 +15,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * SnsDestination + *

AWS SNS can be used to push messages to AWS Lambda, HTTP endpoints (webhooks), or fan-out messages to SQS queues. We recommend setting authenticationMode to IAM, to avoid unnecessary key management. For IAM authentication, give permissions to user arn:aws:iam::362576667341:user/subscriptions to publish to the topic before creating the Subscription. Otherwise, a test message will not be sent.

+ *

If you prefer to use Credentials for authentication, we recommend creating an IAM user with an accessKey and accessSecret pair specifically for each Subscription.

+ *

The IAM user should only have the sns:Publish permission on this topic.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SnsDestinationImpl implements SnsDestination, ModelBase { @@ -70,7 +72,7 @@ public String getAccessSecret() { } /** - * + *

Amazon Resource Name (ARN) of the topic.

*/ public String getTopicArn() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestination.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestination.java index 793506c8ee8..6fdd1d351bd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestination.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestination.java @@ -13,7 +13,9 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * SqsDestination + *

AWS SQS is a pull-queue on AWS. The queue must be a Standard queue type with a MaximumMessageSize of 256 KB. We recommend setting authenticationMode to IAM, to avoid unnecessary key management. For IAM authentication, give permissions to user arn:aws:iam::362576667341:user/subscriptions to send messages to the queue before creating the Subscription. Otherwise, a test message will not be sent.

+ *

If you prefer to use Credentials for authentication, we recommend creating an IAM user with an accessKey and accessSecret pair specifically for each Subscription.

+ *

The IAM user should only have the sqs:SendMessage permission on this queue.

* *
* Example to create an instance using the builder pattern @@ -47,14 +49,14 @@ public interface SqsDestination extends Destination { public String getAccessSecret(); /** - * + *

URL of the Amazon SQS queue.

*/ @NotNull @JsonProperty("queueUrl") public String getQueueUrl(); /** - * + *

AWS Region the message queue is located in.

*/ @NotNull @JsonProperty("region") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationBuilder.java index 77c24f6b49d..7e5d5b84b38 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationBuilder.java @@ -56,7 +56,7 @@ public SqsDestinationBuilder accessSecret(@Nullable final String accessSecret) { } /** - * + *

URL of the Amazon SQS queue.

*/ public SqsDestinationBuilder queueUrl(final String queueUrl) { @@ -65,7 +65,7 @@ public SqsDestinationBuilder queueUrl(final String queueUrl) { } /** - * + *

AWS Region the message queue is located in.

*/ public SqsDestinationBuilder region(final String region) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationImpl.java index 8a2bc01083d..773cf2fa866 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SqsDestinationImpl.java @@ -15,7 +15,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * SqsDestination + *

AWS SQS is a pull-queue on AWS. The queue must be a Standard queue type with a MaximumMessageSize of 256 KB. We recommend setting authenticationMode to IAM, to avoid unnecessary key management. For IAM authentication, give permissions to user arn:aws:iam::362576667341:user/subscriptions to send messages to the queue before creating the Subscription. Otherwise, a test message will not be sent.

+ *

If you prefer to use Credentials for authentication, we recommend creating an IAM user with an accessKey and accessSecret pair specifically for each Subscription.

+ *

The IAM user should only have the sqs:SendMessage permission on this queue.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SqsDestinationImpl implements SqsDestination, ModelBase { @@ -74,7 +76,7 @@ public String getAccessSecret() { } /** - * + *

URL of the Amazon SQS queue.

*/ public String getQueueUrl() { @@ -82,7 +84,7 @@ public String getQueueUrl() { } /** - * + *

AWS Region the message queue is located in.

*/ public String getRegion() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java index 5b6624b5d54..b304370647d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java @@ -50,42 +50,42 @@ public interface Subscription extends BaseResource, com.commercetools.api.models public String getId(); /** - * + *

Current version of the Subscription.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Date and time (UTC) the Subscription was initially created.

*/ @NotNull @JsonProperty("createdAt") public ZonedDateTime getCreatedAt(); /** - * + *

Date and time (UTC) the Subscription was last modified.

*/ @NotNull @JsonProperty("lastModifiedAt") public ZonedDateTime getLastModifiedAt(); /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ @Valid @JsonProperty("lastModifiedBy") public LastModifiedBy getLastModifiedBy(); /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ @Valid @JsonProperty("createdBy") public CreatedBy getCreatedBy(); /** - * + *

Change notifications subscribed to.

*/ @NotNull @Valid @@ -93,7 +93,7 @@ public interface Subscription extends BaseResource, com.commercetools.api.models public List getChanges(); /** - * + *

Messaging service to which the messages are to be sent.

*/ @NotNull @Valid @@ -108,7 +108,7 @@ public interface Subscription extends BaseResource, com.commercetools.api.models public String getKey(); /** - * + *

Messages subscribed to.

*/ @NotNull @Valid @@ -116,7 +116,7 @@ public interface Subscription extends BaseResource, com.commercetools.api.models public List getMessages(); /** - * + *

Format in which the payload is delivered.

*/ @NotNull @Valid @@ -124,7 +124,7 @@ public interface Subscription extends BaseResource, com.commercetools.api.models public DeliveryFormat getFormat(); /** - * + *

Status of the Subscription.

*/ @NotNull @JsonProperty("status") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java index bdac15508e5..e9faf685186 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java @@ -69,7 +69,7 @@ public SubscriptionBuilder id(final String id) { } /** - * + *

Current version of the Subscription.

*/ public SubscriptionBuilder version(final Long version) { @@ -78,7 +78,7 @@ public SubscriptionBuilder version(final Long version) { } /** - * + *

Date and time (UTC) the Subscription was initially created.

*/ public SubscriptionBuilder createdAt(final java.time.ZonedDateTime createdAt) { @@ -87,7 +87,7 @@ public SubscriptionBuilder createdAt(final java.time.ZonedDateTime createdAt) { } /** - * + *

Date and time (UTC) the Subscription was last modified.

*/ public SubscriptionBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { @@ -96,7 +96,7 @@ public SubscriptionBuilder lastModifiedAt(final java.time.ZonedDateTime lastModi } /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ public SubscriptionBuilder lastModifiedBy( @@ -106,7 +106,7 @@ public SubscriptionBuilder lastModifiedBy( } /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ public SubscriptionBuilder lastModifiedBy( @@ -116,7 +116,7 @@ public SubscriptionBuilder lastModifiedBy( } /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ public SubscriptionBuilder createdBy( @@ -126,7 +126,7 @@ public SubscriptionBuilder createdBy( } /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ public SubscriptionBuilder createdBy(@Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { @@ -135,7 +135,7 @@ public SubscriptionBuilder createdBy(@Nullable final com.commercetools.api.model } /** - * + *

Change notifications subscribed to.

*/ public SubscriptionBuilder changes(final com.commercetools.api.models.subscription.ChangeSubscription... changes) { @@ -144,7 +144,7 @@ public SubscriptionBuilder changes(final com.commercetools.api.models.subscripti } /** - * + *

Change notifications subscribed to.

*/ public SubscriptionBuilder changes( @@ -154,7 +154,7 @@ public SubscriptionBuilder changes( } /** - * + *

Change notifications subscribed to.

*/ public SubscriptionBuilder plusChanges( @@ -167,7 +167,7 @@ public SubscriptionBuilder plusChanges( } /** - * + *

Change notifications subscribed to.

*/ public SubscriptionBuilder plusChanges( @@ -181,7 +181,7 @@ public SubscriptionBuilder plusChanges( } /** - * + *

Change notifications subscribed to.

*/ public SubscriptionBuilder withChanges( @@ -193,7 +193,7 @@ public SubscriptionBuilder withChanges( } /** - * + *

Messaging service to which the messages are to be sent.

*/ public SubscriptionBuilder destination(final com.commercetools.api.models.subscription.Destination destination) { @@ -202,7 +202,7 @@ public SubscriptionBuilder destination(final com.commercetools.api.models.subscr } /** - * + *

Messaging service to which the messages are to be sent.

*/ public SubscriptionBuilder destination( @@ -221,7 +221,7 @@ public SubscriptionBuilder key(@Nullable final String key) { } /** - * + *

Messages subscribed to.

*/ public SubscriptionBuilder messages( @@ -231,7 +231,7 @@ public SubscriptionBuilder messages( } /** - * + *

Messages subscribed to.

*/ public SubscriptionBuilder messages( @@ -241,7 +241,7 @@ public SubscriptionBuilder messages( } /** - * + *

Messages subscribed to.

*/ public SubscriptionBuilder plusMessages( @@ -254,7 +254,7 @@ public SubscriptionBuilder plusMessages( } /** - * + *

Messages subscribed to.

*/ public SubscriptionBuilder plusMessages( @@ -268,7 +268,7 @@ public SubscriptionBuilder plusMessages( } /** - * + *

Messages subscribed to.

*/ public SubscriptionBuilder withMessages( @@ -280,7 +280,7 @@ public SubscriptionBuilder withMessages( } /** - * + *

Format in which the payload is delivered.

*/ public SubscriptionBuilder format(final com.commercetools.api.models.subscription.DeliveryFormat format) { @@ -289,7 +289,7 @@ public SubscriptionBuilder format(final com.commercetools.api.models.subscriptio } /** - * + *

Format in which the payload is delivered.

*/ public SubscriptionBuilder format( @@ -299,7 +299,7 @@ public SubscriptionBuilder format( } /** - * + *

Status of the Subscription.

*/ public SubscriptionBuilder status(final com.commercetools.api.models.subscription.SubscriptionHealthStatus status) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationAction.java index 5835ff4df5c..f668c544798 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationAction.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * SubscriptionChangeDestinationAction + *

A test message is sent to ensure the correct configuration of the Destination. If the message cannot be delivered, the update will fail. The payload of the test message is a notification of type ResourceCreated for the resourceTypeId subscription. The status will change to Healthy, if it isn't already.

* *
* Example to create an instance using the builder pattern @@ -33,7 +33,7 @@ public interface SubscriptionChangeDestinationAction extends SubscriptionUpdateA String CHANGE_DESTINATION = "changeDestination"; /** - * + *

New value to set. Must not be empty.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionBuilder.java index bfce296dc73..44cddfb4c42 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionBuilder.java @@ -25,7 +25,7 @@ public class SubscriptionChangeDestinationActionBuilder implements BuilderNew value to set. Must not be empty.

*/ public SubscriptionChangeDestinationActionBuilder destination( @@ -35,7 +35,7 @@ public SubscriptionChangeDestinationActionBuilder destination( } /** - * + *

New value to set. Must not be empty.

*/ public SubscriptionChangeDestinationActionBuilder destination( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionImpl.java index 7e7cb89f054..066f26791bc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionChangeDestinationActionImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * SubscriptionChangeDestinationAction + *

A test message is sent to ensure the correct configuration of the Destination. If the message cannot be delivered, the update will fail. The payload of the test message is a notification of type ResourceCreated for the resourceTypeId subscription. The status will change to Healthy, if it isn't already.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SubscriptionChangeDestinationActionImpl implements SubscriptionChangeDestinationAction, ModelBase { @@ -44,7 +44,7 @@ public String getAction() { } /** - * + *

New value to set. Must not be empty.

*/ public com.commercetools.api.models.subscription.Destination getDestination() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java index c501b8f075e..199eade3c9b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * SubscriptionDraft + *

Either messages or changes must be set.

* *
* Example to create an instance using the builder pattern @@ -31,14 +31,14 @@ public interface SubscriptionDraft { /** - * + *

Change notifications to be subscribed to.

*/ @Valid @JsonProperty("changes") public List getChanges(); /** - * + *

Messaging service to which the messages are sent.

*/ @NotNull @Valid @@ -53,14 +53,14 @@ public interface SubscriptionDraft { public String getKey(); /** - * + *

Messages to be subscribed to.

*/ @Valid @JsonProperty("messages") public List getMessages(); /** - * + *

Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

*/ @Valid @JsonProperty("format") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java index 11916236046..e3e72aa89ce 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java @@ -39,7 +39,7 @@ public class SubscriptionDraftBuilder implements Builder { private com.commercetools.api.models.subscription.DeliveryFormat format; /** - * + *

Change notifications to be subscribed to.

*/ public SubscriptionDraftBuilder changes( @@ -49,7 +49,7 @@ public SubscriptionDraftBuilder changes( } /** - * + *

Change notifications to be subscribed to.

*/ public SubscriptionDraftBuilder changes( @@ -59,7 +59,7 @@ public SubscriptionDraftBuilder changes( } /** - * + *

Change notifications to be subscribed to.

*/ public SubscriptionDraftBuilder plusChanges( @@ -72,7 +72,7 @@ public SubscriptionDraftBuilder plusChanges( } /** - * + *

Change notifications to be subscribed to.

*/ public SubscriptionDraftBuilder plusChanges( @@ -86,7 +86,7 @@ public SubscriptionDraftBuilder plusChanges( } /** - * + *

Change notifications to be subscribed to.

*/ public SubscriptionDraftBuilder withChanges( @@ -98,7 +98,7 @@ public SubscriptionDraftBuilder withChanges( } /** - * + *

Messaging service to which the messages are sent.

*/ public SubscriptionDraftBuilder destination( @@ -108,7 +108,7 @@ public SubscriptionDraftBuilder destination( } /** - * + *

Messaging service to which the messages are sent.

*/ public SubscriptionDraftBuilder destination( @@ -127,7 +127,7 @@ public SubscriptionDraftBuilder key(@Nullable final String key) { } /** - * + *

Messages to be subscribed to.

*/ public SubscriptionDraftBuilder messages( @@ -137,7 +137,7 @@ public SubscriptionDraftBuilder messages( } /** - * + *

Messages to be subscribed to.

*/ public SubscriptionDraftBuilder messages( @@ -147,7 +147,7 @@ public SubscriptionDraftBuilder messages( } /** - * + *

Messages to be subscribed to.

*/ public SubscriptionDraftBuilder plusMessages( @@ -160,7 +160,7 @@ public SubscriptionDraftBuilder plusMessages( } /** - * + *

Messages to be subscribed to.

*/ public SubscriptionDraftBuilder plusMessages( @@ -174,7 +174,7 @@ public SubscriptionDraftBuilder plusMessages( } /** - * + *

Messages to be subscribed to.

*/ public SubscriptionDraftBuilder withMessages( @@ -186,7 +186,7 @@ public SubscriptionDraftBuilder withMessages( } /** - * + *

Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

*/ public SubscriptionDraftBuilder format( @@ -196,7 +196,7 @@ public SubscriptionDraftBuilder format( } /** - * + *

Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

*/ public SubscriptionDraftBuilder format( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java index b7bb5282985..2ec91860ae0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java @@ -15,7 +15,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * SubscriptionDraft + *

Either messages or changes must be set.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SubscriptionDraftImpl implements SubscriptionDraft, ModelBase { @@ -48,7 +48,7 @@ public SubscriptionDraftImpl() { } /** - * + *

Change notifications to be subscribed to.

*/ public java.util.List getChanges() { @@ -56,7 +56,7 @@ public java.util.ListMessaging service to which the messages are sent.

*/ public com.commercetools.api.models.subscription.Destination getDestination() { @@ -72,7 +72,7 @@ public String getKey() { } /** - * + *

Messages to be subscribed to.

*/ public java.util.List getMessages() { @@ -80,7 +80,7 @@ public java.util.ListFormat in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

*/ public com.commercetools.api.models.subscription.DeliveryFormat getFormat() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java index 1d1b620b90b..43085581442 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java @@ -10,17 +10,30 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * SubscriptionHealthStatus + *

The health status of the Subscription that indicates whether messages are being delivered to the Destination.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface SubscriptionHealthStatus { + /** +

Delivers messages as expected.

+ + */ SubscriptionHealthStatus HEALTHY = SubscriptionHealthStatusEnum.HEALTHY; + /** +

Messages cannot be delivered with the current configuration. Common causes are deleting the Destination queue, deleting access credentials, or removing the necessary permissions. The configuration can be fixed by re-creating the configuration on the Destination side, or by setting a new configuration with the Change Destination update action. If the configuration is fixed, undelivered messages will be delivered and the status will change to Healthy. ConfigurationError is automatically turned into ConfigurationErrorDeliveryStopped after some time. For more information, see Delivery Guarantees.

+ */ SubscriptionHealthStatus CONFIGURATION_ERROR = SubscriptionHealthStatusEnum.CONFIGURATION_ERROR; + /** +

Does not deliver messages with the current configuration and the delivery of the messages is no longer attempted. If the configuration is fixed, undelivered messages are not retained and will not be delivered. The status will change to Healthy as soon as new messages can be delivered.

+ */ SubscriptionHealthStatus CONFIGURATION_ERROR_DELIVERY_STOPPED = SubscriptionHealthStatusEnum.CONFIGURATION_ERROR_DELIVERY_STOPPED; + /** +

Does not deliver messages temporarily due to reasons other than a configuration error. For example, the Destination has a temporary outage.

+ */ SubscriptionHealthStatus TEMPORARY_ERROR = SubscriptionHealthStatusEnum.TEMPORARY_ERROR; enum SubscriptionHealthStatusEnum implements SubscriptionHealthStatus { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java index 2d06bf3d3e3..73b05cad282 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java @@ -82,7 +82,7 @@ public String getId() { } /** - * + *

Current version of the Subscription.

*/ public Long getVersion() { @@ -90,7 +90,7 @@ public Long getVersion() { } /** - * + *

Date and time (UTC) the Subscription was initially created.

*/ public java.time.ZonedDateTime getCreatedAt() { @@ -98,7 +98,7 @@ public java.time.ZonedDateTime getCreatedAt() { } /** - * + *

Date and time (UTC) the Subscription was last modified.

*/ public java.time.ZonedDateTime getLastModifiedAt() { @@ -106,7 +106,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { @@ -114,7 +114,7 @@ public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { } /** - *

Present on resources created after 2019-02-01 except for events not tracked.

+ *

Present on resources created after 1 February 2019 except for events not tracked.

*/ public com.commercetools.api.models.common.CreatedBy getCreatedBy() { @@ -122,7 +122,7 @@ public com.commercetools.api.models.common.CreatedBy getCreatedBy() { } /** - * + *

Change notifications subscribed to.

*/ public java.util.List getChanges() { @@ -130,7 +130,7 @@ public java.util.ListMessaging service to which the messages are to be sent.

*/ public com.commercetools.api.models.subscription.Destination getDestination() { @@ -146,7 +146,7 @@ public String getKey() { } /** - * + *

Messages subscribed to.

*/ public java.util.List getMessages() { @@ -154,7 +154,7 @@ public java.util.ListFormat in which the payload is delivered.

*/ public com.commercetools.api.models.subscription.DeliveryFormat getFormat() { @@ -162,7 +162,7 @@ public com.commercetools.api.models.subscription.DeliveryFormat getFormat() { } /** - * + *

Status of the Subscription.

*/ public com.commercetools.api.models.subscription.SubscriptionHealthStatus getStatus() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponse.java index ee1f5130ee5..3c99354d652 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponse.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponse.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * SubscriptionPagedQueryResponse + *

PagedQueryResult with results containing an array of Subscription.

* *
* Example to create an instance using the builder pattern @@ -22,8 +22,8 @@ *

  *     SubscriptionPagedQueryResponse subscriptionPagedQueryResponse = SubscriptionPagedQueryResponse.builder()
  *             .limit(0.3)
- *             .count(0.3)
  *             .offset(0.3)
+ *             .count(0.3)
  *             .plusResults(resultsBuilder -> resultsBuilder)
  *             .build()
  * 
@@ -42,28 +42,28 @@ public interface SubscriptionPagedQueryResponse public Long getLimit(); /** - * + *

Number of elements skipped.

+ */ + @NotNull + @JsonProperty("offset") + public Long getOffset(); + + /** + *

Actual number of results returned.

*/ @NotNull @JsonProperty("count") public Long getCount(); /** - * + *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

*/ @JsonProperty("total") public Long getTotal(); /** - *

Number of elements skipped.

- */ - @NotNull - @JsonProperty("offset") - public Long getOffset(); - - /** - * + *

Subscriptions matching the query.

*/ @NotNull @Valid @@ -72,12 +72,12 @@ public interface SubscriptionPagedQueryResponse public void setLimit(final Long limit); + public void setOffset(final Long offset); + public void setCount(final Long count); public void setTotal(final Long total); - public void setOffset(final Long offset); - @JsonIgnore public void setResults(final Subscription... results); @@ -90,9 +90,9 @@ public static SubscriptionPagedQueryResponse of() { public static SubscriptionPagedQueryResponse of(final SubscriptionPagedQueryResponse template) { SubscriptionPagedQueryResponseImpl instance = new SubscriptionPagedQueryResponseImpl(); instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); instance.setCount(template.getCount()); instance.setTotal(template.getTotal()); - instance.setOffset(template.getOffset()); instance.setResults(template.getResults()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseBuilder.java index 3ed8d83b98b..de89b67256e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseBuilder.java @@ -17,8 +17,8 @@ *

  *     SubscriptionPagedQueryResponse subscriptionPagedQueryResponse = SubscriptionPagedQueryResponse.builder()
  *             .limit(0.3)
- *             .count(0.3)
  *             .offset(0.3)
+ *             .count(0.3)
  *             .plusResults(resultsBuilder -> resultsBuilder)
  *             .build()
  * 
@@ -29,13 +29,13 @@ public class SubscriptionPagedQueryResponseBuilder implements Builder results; /** @@ -48,34 +48,34 @@ public SubscriptionPagedQueryResponseBuilder limit(final Long limit) { } /** - * + *

Number of elements skipped.

*/ - public SubscriptionPagedQueryResponseBuilder count(final Long count) { - this.count = count; + public SubscriptionPagedQueryResponseBuilder offset(final Long offset) { + this.offset = offset; return this; } /** - * + *

Actual number of results returned.

*/ - public SubscriptionPagedQueryResponseBuilder total(@Nullable final Long total) { - this.total = total; + public SubscriptionPagedQueryResponseBuilder count(final Long count) { + this.count = count; return this; } /** - *

Number of elements skipped.

+ *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

*/ - public SubscriptionPagedQueryResponseBuilder offset(final Long offset) { - this.offset = offset; + public SubscriptionPagedQueryResponseBuilder total(@Nullable final Long total) { + this.total = total; return this; } /** - * + *

Subscriptions matching the query.

*/ public SubscriptionPagedQueryResponseBuilder results( @@ -85,7 +85,7 @@ public SubscriptionPagedQueryResponseBuilder results( } /** - * + *

Subscriptions matching the query.

*/ public SubscriptionPagedQueryResponseBuilder results( @@ -95,7 +95,7 @@ public SubscriptionPagedQueryResponseBuilder results( } /** - * + *

Subscriptions matching the query.

*/ public SubscriptionPagedQueryResponseBuilder plusResults( @@ -108,7 +108,7 @@ public SubscriptionPagedQueryResponseBuilder plusResults( } /** - * + *

Subscriptions matching the query.

*/ public SubscriptionPagedQueryResponseBuilder plusResults( @@ -121,7 +121,7 @@ public SubscriptionPagedQueryResponseBuilder plusResults( } /** - * + *

Subscriptions matching the query.

*/ public SubscriptionPagedQueryResponseBuilder withResults( @@ -135,6 +135,10 @@ public Long getLimit() { return this.limit; } + public Long getOffset() { + return this.offset; + } + public Long getCount() { return this.count; } @@ -144,27 +148,23 @@ public Long getTotal() { return this.total; } - public Long getOffset() { - return this.offset; - } - public java.util.List getResults() { return this.results; } public SubscriptionPagedQueryResponse build() { Objects.requireNonNull(limit, SubscriptionPagedQueryResponse.class + ": limit is missing"); - Objects.requireNonNull(count, SubscriptionPagedQueryResponse.class + ": count is missing"); Objects.requireNonNull(offset, SubscriptionPagedQueryResponse.class + ": offset is missing"); + Objects.requireNonNull(count, SubscriptionPagedQueryResponse.class + ": count is missing"); Objects.requireNonNull(results, SubscriptionPagedQueryResponse.class + ": results is missing"); - return new SubscriptionPagedQueryResponseImpl(limit, count, total, offset, results); + return new SubscriptionPagedQueryResponseImpl(limit, offset, count, total, results); } /** * builds SubscriptionPagedQueryResponse without checking for non null required values */ public SubscriptionPagedQueryResponse buildUnchecked() { - return new SubscriptionPagedQueryResponseImpl(limit, count, total, offset, results); + return new SubscriptionPagedQueryResponseImpl(limit, offset, count, total, results); } public static SubscriptionPagedQueryResponseBuilder of() { @@ -174,9 +174,9 @@ public static SubscriptionPagedQueryResponseBuilder of() { public static SubscriptionPagedQueryResponseBuilder of(final SubscriptionPagedQueryResponse template) { SubscriptionPagedQueryResponseBuilder builder = new SubscriptionPagedQueryResponseBuilder(); builder.limit = template.getLimit(); + builder.offset = template.getOffset(); builder.count = template.getCount(); builder.total = template.getTotal(); - builder.offset = template.getOffset(); builder.results = template.getResults(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseImpl.java index 7386cca68ec..f997f83563d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionPagedQueryResponseImpl.java @@ -15,29 +15,30 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * SubscriptionPagedQueryResponse + *

PagedQueryResult with results containing an array of Subscription.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SubscriptionPagedQueryResponseImpl implements SubscriptionPagedQueryResponse, ModelBase { private Long limit; + private Long offset; + private Long count; private Long total; - private Long offset; - private java.util.List results; @JsonCreator - SubscriptionPagedQueryResponseImpl(@JsonProperty("limit") final Long limit, @JsonProperty("count") final Long count, - @JsonProperty("total") final Long total, @JsonProperty("offset") final Long offset, + SubscriptionPagedQueryResponseImpl(@JsonProperty("limit") final Long limit, + @JsonProperty("offset") final Long offset, @JsonProperty("count") final Long count, + @JsonProperty("total") final Long total, @JsonProperty("results") final java.util.List results) { this.limit = limit; + this.offset = offset; this.count = count; this.total = total; - this.offset = offset; this.results = results; } @@ -53,31 +54,31 @@ public Long getLimit() { } /** - * + *

Number of elements skipped.

*/ - public Long getCount() { - return this.count; + public Long getOffset() { + return this.offset; } /** - * + *

Actual number of results returned.

*/ - public Long getTotal() { - return this.total; + public Long getCount() { + return this.count; } /** - *

Number of elements skipped.

+ *

Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. When the results are filtered with a Query Predicate, total is subject to a limit.

*/ - public Long getOffset() { - return this.offset; + public Long getTotal() { + return this.total; } /** - * + *

Subscriptions matching the query.

*/ public java.util.List getResults() { @@ -88,6 +89,10 @@ public void setLimit(final Long limit) { this.limit = limit; } + public void setOffset(final Long offset) { + this.offset = offset; + } + public void setCount(final Long count) { this.count = count; } @@ -96,10 +101,6 @@ public void setTotal(final Long total) { this.total = total; } - public void setOffset(final Long offset) { - this.offset = offset; - } - public void setResults(final com.commercetools.api.models.subscription.Subscription... results) { this.results = new ArrayList<>(Arrays.asList(results)); } @@ -119,9 +120,9 @@ public boolean equals(Object o) { SubscriptionPagedQueryResponseImpl that = (SubscriptionPagedQueryResponseImpl) o; return new EqualsBuilder().append(limit, that.limit) + .append(offset, that.offset) .append(count, that.count) .append(total, that.total) - .append(offset, that.offset) .append(results, that.results) .isEquals(); } @@ -129,9 +130,9 @@ public boolean equals(Object o) { @Override public int hashCode() { return new HashCodeBuilder(17, 37).append(limit) + .append(offset) .append(count) .append(total) - .append(offset) .append(results) .toHashCode(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java index 470fa09d826..0c99ec641cb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java @@ -31,7 +31,7 @@ public interface SubscriptionSetChangesAction extends SubscriptionUpdateAction { String SET_CHANGES = "setChanges"; /** - * + *

Value to set. Can only be unset if messages is set.

*/ @Valid @JsonProperty("changes") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java index c0aa39f0b73..d6a258f9c78 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java @@ -27,7 +27,7 @@ public class SubscriptionSetChangesActionBuilder implements Builder changes; /** - * + *

Value to set. Can only be unset if messages is set.

*/ public SubscriptionSetChangesActionBuilder changes( @@ -37,7 +37,7 @@ public SubscriptionSetChangesActionBuilder changes( } /** - * + *

Value to set. Can only be unset if messages is set.

*/ public SubscriptionSetChangesActionBuilder changes( @@ -47,7 +47,7 @@ public SubscriptionSetChangesActionBuilder changes( } /** - * + *

Value to set. Can only be unset if messages is set.

*/ public SubscriptionSetChangesActionBuilder plusChanges( @@ -60,7 +60,7 @@ public SubscriptionSetChangesActionBuilder plusChanges( } /** - * + *

Value to set. Can only be unset if messages is set.

*/ public SubscriptionSetChangesActionBuilder plusChanges( @@ -74,7 +74,7 @@ public SubscriptionSetChangesActionBuilder plusChanges( } /** - * + *

Value to set. Can only be unset if messages is set.

*/ public SubscriptionSetChangesActionBuilder withChanges( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java index f7cfd2414ed..7a6833491c7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java @@ -44,7 +44,7 @@ public String getAction() { } /** - * + *

Value to set. Can only be unset if messages is set.

*/ public java.util.List getChanges() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyAction.java index 0c55c2eac1d..15fa343384d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyAction.java @@ -29,7 +29,7 @@ public interface SubscriptionSetKeyAction extends SubscriptionUpdateAction { String SET_KEY = "setKey"; /** - *

If key is absent or null, this field will be removed if it exists.

+ *

Value to set. If empty, any existing value will be removed.

*/ @JsonProperty("key") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionBuilder.java index 07390601d24..acc2a067f69 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionBuilder.java @@ -26,7 +26,7 @@ public class SubscriptionSetKeyActionBuilder implements BuilderIf key is absent or null, this field will be removed if it exists.

+ *

Value to set. If empty, any existing value will be removed.

*/ public SubscriptionSetKeyActionBuilder key(@Nullable final String key) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionImpl.java index 5e756b9632e..09eb463ecc4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetKeyActionImpl.java @@ -43,7 +43,7 @@ public String getAction() { } /** - *

If key is absent or null, this field will be removed if it exists.

+ *

Value to set. If empty, any existing value will be removed.

*/ public String getKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java index 5e1224eb79c..bc7ec668d5e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java @@ -31,7 +31,7 @@ public interface SubscriptionSetMessagesAction extends SubscriptionUpdateAction String SET_MESSAGES = "setMessages"; /** - * + *

Value to set. Can only be unset if changes is set.

*/ @Valid @JsonProperty("messages") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java index 587dc3d7b7c..36279ade7a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java @@ -27,7 +27,7 @@ public class SubscriptionSetMessagesActionBuilder implements Builder messages; /** - * + *

Value to set. Can only be unset if changes is set.

*/ public SubscriptionSetMessagesActionBuilder messages( @@ -37,7 +37,7 @@ public SubscriptionSetMessagesActionBuilder messages( } /** - * + *

Value to set. Can only be unset if changes is set.

*/ public SubscriptionSetMessagesActionBuilder messages( @@ -47,7 +47,7 @@ public SubscriptionSetMessagesActionBuilder messages( } /** - * + *

Value to set. Can only be unset if changes is set.

*/ public SubscriptionSetMessagesActionBuilder plusMessages( @@ -60,7 +60,7 @@ public SubscriptionSetMessagesActionBuilder plusMessages( } /** - * + *

Value to set. Can only be unset if changes is set.

*/ public SubscriptionSetMessagesActionBuilder plusMessages( @@ -74,7 +74,7 @@ public SubscriptionSetMessagesActionBuilder plusMessages( } /** - * + *

Value to set. Can only be unset if changes is set.

*/ public SubscriptionSetMessagesActionBuilder withMessages( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java index 7efda844535..ba170eef57f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java @@ -44,7 +44,7 @@ public String getAction() { } /** - * + *

Value to set. Can only be unset if changes is set.

*/ public java.util.List getMessages() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdate.java index 204133402bb..56691bfaa0b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdate.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdate.java @@ -33,14 +33,14 @@ public interface SubscriptionUpdate extends com.commercetools.api.models.ResourceUpdate { /** - * + *

Expected version of the Subscription on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.

*/ @NotNull @JsonProperty("version") public Long getVersion(); /** - * + *

Update actions to be performed on the Subscription.

*/ @NotNull @Valid diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateBuilder.java index 785ea0e5934..b8dc0ee5637 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateBuilder.java @@ -28,7 +28,7 @@ public class SubscriptionUpdateBuilder implements Builder { private java.util.List actions; /** - * + *

Expected version of the Subscription on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.

*/ public SubscriptionUpdateBuilder version(final Long version) { @@ -37,7 +37,7 @@ public SubscriptionUpdateBuilder version(final Long version) { } /** - * + *

Update actions to be performed on the Subscription.

*/ public SubscriptionUpdateBuilder actions( @@ -47,7 +47,7 @@ public SubscriptionUpdateBuilder actions( } /** - * + *

Update actions to be performed on the Subscription.

*/ public SubscriptionUpdateBuilder actions( @@ -57,7 +57,7 @@ public SubscriptionUpdateBuilder actions( } /** - * + *

Update actions to be performed on the Subscription.

*/ public SubscriptionUpdateBuilder plusActions( @@ -70,7 +70,7 @@ public SubscriptionUpdateBuilder plusActions( } /** - * + *

Update actions to be performed on the Subscription.

*/ public SubscriptionUpdateBuilder plusActions( @@ -84,7 +84,7 @@ public SubscriptionUpdateBuilder plusActions( } /** - * + *

Update actions to be performed on the Subscription.

*/ public SubscriptionUpdateBuilder withActions( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateImpl.java index e8b0fa94a59..6403c425644 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateImpl.java @@ -35,7 +35,7 @@ public SubscriptionUpdateImpl() { } /** - * + *

Expected version of the Subscription on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.

*/ public Long getVersion() { @@ -43,7 +43,7 @@ public Long getVersion() { } /** - * + *

Update actions to be performed on the Subscription.

*/ public java.util.List getActions() { diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsByIDTest.java new file mode 100644 index 00000000000..3a0f1b150f4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsByIDTest.java @@ -0,0 +1,145 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeyAttributeGroupsByIDTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .get() + .withExpand("expand") + .createHttpRequest(), + "get", "/test_projectKey/attribute-groups/test_ID?expand=expand", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .get() + .createHttpRequest(), "get", "/test_projectKey/attribute-groups/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .post(null) + .withExpand("expand") + .createHttpRequest(), + "post", "/test_projectKey/attribute-groups/test_ID?expand=expand", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .post(null) + .createHttpRequest(), "post", "/test_projectKey/attribute-groups/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .delete() + .withVersion(2) + .createHttpRequest(), + "delete", "/test_projectKey/attribute-groups/test_ID?version=2", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .delete() + .withExpand("expand") + .createHttpRequest(), + "delete", "/test_projectKey/attribute-groups/test_ID?expand=expand", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .delete() + .createHttpRequest(), "delete", "/test_projectKey/attribute-groups/test_ID", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .get() + .withExpand("expand"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .post(null) + .withExpand("expand"), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().withId("test_ID").post(null), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .delete() + .withVersion(2), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .delete() + .withExpand("expand"), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().withId("test_ID").delete(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsKeyByKeyTest.java new file mode 100644 index 00000000000..e39789f0c61 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsKeyByKeyTest.java @@ -0,0 +1,145 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeyAttributeGroupsKeyByKeyTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .get() + .withExpand("expand") + .createHttpRequest(), + "get", "/test_projectKey/attribute-groups/key=test_key?expand=expand", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .get() + .createHttpRequest(), "get", "/test_projectKey/attribute-groups/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .post(null) + .withExpand("expand") + .createHttpRequest(), + "post", "/test_projectKey/attribute-groups/key=test_key?expand=expand", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .post(null) + .createHttpRequest(), "post", "/test_projectKey/attribute-groups/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .delete() + .withVersion(2) + .createHttpRequest(), + "delete", "/test_projectKey/attribute-groups/key=test_key?version=2", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .delete() + .withExpand("expand") + .createHttpRequest(), + "delete", "/test_projectKey/attribute-groups/key=test_key?expand=expand", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .delete() + .createHttpRequest(), "delete", "/test_projectKey/attribute-groups/key=test_key", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .get() + .withExpand("expand"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .post(null) + .withExpand("expand"), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().withKey("test_key").post(null), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .delete() + .withVersion(2), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .delete() + .withExpand("expand"), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().withKey("test_key").delete(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsTest.java new file mode 100644 index 00000000000..18d4d27d975 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsTest.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeyAttributeGroupsTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withExpand("expand") + .createHttpRequest(), "get", "/test_projectKey/attribute-groups?expand=expand", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withSort("sort") + .createHttpRequest(), "get", "/test_projectKey/attribute-groups?sort=sort", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withLimit(7) + .createHttpRequest(), "get", "/test_projectKey/attribute-groups?limit=7", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withOffset(3) + .createHttpRequest(), "get", "/test_projectKey/attribute-groups?offset=3", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withWithTotal(true) + .createHttpRequest(), "get", "/test_projectKey/attribute-groups?withTotal=true", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withWhere("where") + .createHttpRequest(), "get", "/test_projectKey/attribute-groups?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withPredicateVar("varName", "var.varName") + .createHttpRequest(), + "get", "/test_projectKey/attribute-groups?var.varName=var.varName", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get().createHttpRequest(), + "get", "/test_projectKey/attribute-groups", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .post(null) + .withExpand("expand") + .createHttpRequest(), "post", "/test_projectKey/attribute-groups?expand=expand", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().post(null).createHttpRequest(), + "post", "/test_projectKey/attribute-groups", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().get().withExpand("expand"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get().withSort("sort"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get().withLimit(7), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get().withOffset(3), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get().withWithTotal(true), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .get() + .withPredicateVar("varName", "var.varName"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().post(null).withExpand("expand"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().post(null), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsByIDHealthTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsByIDHealthTest.java new file mode 100644 index 00000000000..d4f18dbe4b1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsByIDHealthTest.java @@ -0,0 +1,79 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeySubscriptionsByIDHealthTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(ClientRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey") + .subscriptions() + .withId("test_ID") + .withIdHealth() + .get() + .createHttpRequest(), "get", "/test_projectKey/subscriptions/test_ID/health", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { new Object[] { + apiRoot.withProjectKey("test_projectKey").subscriptions().withId("test_ID").withIdHealth().get(), } }; + } +} diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..959a4ae9ad0 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +7c83d963b0f0b7060e9fa934b0b3ab7072445293