From 0cf3b06946c84c42a1dc8054ea272c2b14e299b3 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:58:43 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 8 + ...rojectKeyInStoreKeyByStoreKeyMeDelete.java | 7 +- ...nStoreKeyByStoreKeyMeEmailConfirmPost.java | 7 +- ...KeyByStoreKeyMeEmailConfirmPostString.java | 7 +- ...ByProjectKeyInStoreKeyByStoreKeyMeGet.java | 8 +- ...ectKeyInStoreKeyByStoreKeyMeLoginPost.java | 1 + ...InStoreKeyByStoreKeyMeLoginPostString.java | 1 + ...KeyInStoreKeyByStoreKeyMePasswordPost.java | 7 +- ...toreKeyByStoreKeyMePasswordPostString.java | 7 +- ...StoreKeyByStoreKeyMePasswordResetPost.java | 7 +- ...eyByStoreKeyMePasswordResetPostString.java | 7 +- ...yProjectKeyInStoreKeyByStoreKeyMePost.java | 7 +- ...ctKeyInStoreKeyByStoreKeyMePostString.java | 7 +- ...ctKeyInStoreKeyByStoreKeyMeSignupPost.java | 1 + ...nStoreKeyByStoreKeyMeSignupPostString.java | 1 + ...ByProjectKeyMeBusinessUnitsByIDDelete.java | 296 ------------------ .../ByProjectKeyMeBusinessUnitsByIDGet.java | 2 +- .../ByProjectKeyMeBusinessUnitsByIDHead.java | 2 +- .../ByProjectKeyMeBusinessUnitsByIDPost.java | 2 +- ...ojectKeyMeBusinessUnitsByIDPostString.java | 2 +- ...tKeyMeBusinessUnitsByIDRequestBuilder.java | 8 - .../ByProjectKeyMeBusinessUnitsGet.java | 2 +- .../ByProjectKeyMeBusinessUnitsHead.java | 2 +- ...ojectKeyMeBusinessUnitsKeyByKeyDelete.java | 296 ------------------ ...yProjectKeyMeBusinessUnitsKeyByKeyGet.java | 2 +- ...ProjectKeyMeBusinessUnitsKeyByKeyHead.java | 2 +- ...ProjectKeyMeBusinessUnitsKeyByKeyPost.java | 2 +- ...tKeyMeBusinessUnitsKeyByKeyPostString.java | 2 +- ...MeBusinessUnitsKeyByKeyRequestBuilder.java | 8 - .../api/client/ByProjectKeyMeDelete.java | 2 +- .../api/client/ByProjectKeyMeGet.java | 7 +- .../api/client/ByProjectKeyMeLoginPost.java | 2 +- .../client/ByProjectKeyMeLoginPostString.java | 2 +- .../api/client/ByProjectKeyMePost.java | 2 +- .../api/client/ByProjectKeyMePostString.java | 2 +- .../api/client/ByProjectKeyMeSignupPost.java | 2 +- .../ByProjectKeyMeSignupPostString.java | 2 +- .../ByProjectKeyMeBusinessUnitsByIDTest.java | 42 +-- ...ProjectKeyMeBusinessUnitsKeyByKeyTest.java | 45 +-- references.txt | 1 + 40 files changed, 101 insertions(+), 719 deletions(-) delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDDelete.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyDelete.java diff --git a/changes.md b/changes.md index ae0b98735f1..941316630ab 100644 --- a/changes.md +++ b/changes.md @@ -15,3 +15,11 @@ - added type `DeliveryCustomTypeSetMessagePayload` + +
+Removed Method(s) + +- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withId().delete()` +- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withKey().delete()` +
+ 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 b0eca3bebff..942fe547f1d 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 @@ -20,7 +20,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes the Customer in a Store. Returns a 200 OK status if successful.

+ *

A ResourceNotFound error is returned in the following scenarios:

+ * * *
*
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 ae97cb167b6..94b713c1366 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 @@ -16,7 +16,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

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

+ *

This is the last step in the email verification process of a Customer. Returns a 200 OK status if successful.

+ *

A ResourceNotFound error is returned in the following scenarios:

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPostString.java index d4861b4bba8..0239ce06b79 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmPostString.java @@ -17,7 +17,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

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

+ *

This is the last step in the email verification process of a Customer. Returns a 200 OK status if successful.

+ *

A ResourceNotFound error is returned in the following scenarios:

+ * * *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeGet.java index fc9b33de289..3f25a33437c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeGet.java @@ -20,7 +20,13 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Returns a Customer for a given Query Predicate in a Store. Returns a 200 OK status if successful.

+ *

A ResourceNotFound error is returned in the following scenarios:

+ *
    + *
  • If no Customer exists in the Store for the given Query Predicate.
  • + *
  • If a Customer exists in the Store for the given Query Predicate, but does not have an id value that matches the customer:{id} scope.
  • + *
  • If a Customer exists for the given Query Predicate but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.
  • + *
* *
*
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 6aad1644abe..e3648ff2a75 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 @@ -17,6 +17,7 @@ /** *

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

+ *

If used with an optional 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, 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.
  • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPostString.java index 21838c96983..2e6b0f6cef4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeLoginPostString.java @@ -18,6 +18,7 @@ /** *

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

    + *

    If used with an optional 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, 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.
    • 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 3168b6935b3..718bfba13c1 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 @@ -16,7 +16,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

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

      + *

      Changing the password of the Customer produces the CustomerPasswordUpdated Message with reset=false. Returns a 200 OK status if successful.

      + *

      A ResourceNotFound error is returned in the following scenarios:

      + *
        + *
      • If no Customer exists with the id specified in the customer:{id} scope.
      • + *
      • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.
      • + *
      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPostString.java index f9a95592b1e..df52a05ad84 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordPostString.java @@ -17,7 +17,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

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

      + *

      Changing the password of the Customer produces the CustomerPasswordUpdated Message with reset=false. Returns a 200 OK status if successful.

      + *

      A ResourceNotFound error is returned in the following scenarios:

      + *
        + *
      • If no Customer exists with the id specified in the customer:{id} scope.
      • + *
      • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.
      • + *
      * *
      *
      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 b3962c94c34..3f1b1afe7a5 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 @@ -17,7 +17,12 @@ /** *

      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.

      + *

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

      + *

      A ResourceNotFound error is returned in the following scenarios:

      + *
        + *
      • If no Customer exists with the id specified in the customer:{id} scope.
      • + *
      • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.
      • + *
      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPostString.java index 52d3d588d69..d6269ef3ba9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPostString.java @@ -18,7 +18,12 @@ /** *

      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.

      + *

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

      + *

      A ResourceNotFound error is returned in the following scenarios:

      + *
        + *
      • If no Customer exists with the id specified in the customer:{id} scope.
      • + *
      • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.
      • + *
      * *
      *
      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 423cd588ac3..6b5c033ab2d 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 @@ -16,7 +16,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Updates the Customer in a Store. Returns a 200 OK status if successful.

      + *

      A ResourceNotFound error is returned in the following scenarios:

      + *
        + *
      • If no Customer exists with the id specified in the customer:{id} scope.
      • + *
      • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.
      • + *
      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePostString.java index dcaf7783057..12ade7f7ad2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMePostString.java @@ -17,7 +17,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Updates the Customer in a Store. Returns a 200 OK status if successful.

      + *

      A ResourceNotFound error is returned in the following scenarios:

      + *
        + *
      • If no Customer exists with the id specified in the customer:{id} scope.
      • + *
      • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.
      • + *
      * *
      *
      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 61700979c28..ce1e03206c1 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 @@ -16,6 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** + *

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

      *

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

      *

      A Cart returned in the CustomerSignInResult has any invalid Line Items removed and is updated with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: MatchingPriceNotFound and MissingTaxRateForCountry.

      *

      Creating a Customer produces the CustomerCreated Message.

      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPostString.java index 5bd1461fc94..6f714ba0905 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeSignupPostString.java @@ -17,6 +17,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** + *

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

      *

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

      *

      A Cart returned in the CustomerSignInResult has any invalid Line Items removed and is updated with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: MatchingPriceNotFound and MissingTaxRateForCountry.

      *

      Creating a Customer produces the CustomerCreated Message.

      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDDelete.java deleted file mode 100644 index d87354c84cf..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDDelete.java +++ /dev/null @@ -1,296 +0,0 @@ - -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 com.fasterxml.jackson.core.type.TypeReference; - -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}")
      - *            .me()
      - *            .businessUnits()
      - *            .withId("{ID}")
      - *            .delete()
      - *            .withVersion(version)
      - *            .execute()
      - * }
      - *
      - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ByProjectKeyMeBusinessUnitsByIDDelete extends - TypeApiMethod - 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 { - - @Override - public TypeReference resultType() { - return new TypeReference() { - }; - } - - private String projectKey; - private String ID; - - public ByProjectKeyMeBusinessUnitsByIDDelete(final ApiHttpClient apiHttpClient, String projectKey, String ID) { - super(apiHttpClient); - this.projectKey = projectKey; - this.ID = ID; - } - - public ByProjectKeyMeBusinessUnitsByIDDelete(ByProjectKeyMeBusinessUnitsByIDDelete 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/me/business-units/%s", encodePathParam(this.projectKey), - encodePathParam(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.business_unit.BusinessUnit.class); - } - - @Override - public CompletableFuture> execute( - final ApiHttpClient client) { - return execute(client, com.commercetools.api.models.business_unit.BusinessUnit.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 - * @param version value to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete withVersion(final TValue version) { - return copy().withQueryParam("version", version); - } - - /** - * add additional version query parameter - * @param version value to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete addVersion(final TValue version) { - return copy().addQueryParam("version", version); - } - - /** - * set version with the specified value - * @param supplier supplier for the value to be set - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete withVersion(final Supplier supplier) { - return copy().withQueryParam("version", supplier.get()); - } - - /** - * add additional version query parameter - * @param supplier supplier for the value to be added - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete addVersion(final Supplier supplier) { - return copy().addQueryParam("version", supplier.get()); - } - - /** - * set version with the specified value - * @param op builder for the value to be set - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete withVersion(final Function op) { - return copy().withQueryParam("version", op.apply(new StringBuilder())); - } - - /** - * add additional version query parameter - * @param op builder for the value to be added - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete addVersion(final Function op) { - return copy().addQueryParam("version", op.apply(new StringBuilder())); - } - - /** - * set version with the specified values - * @param version values to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete 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 - * @param version values to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete 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 - * @param expand value to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete withExpand(final TValue expand) { - return copy().withQueryParam("expand", expand); - } - - /** - * add additional expand query parameter - * @param expand value to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete addExpand(final TValue expand) { - return copy().addQueryParam("expand", expand); - } - - /** - * set expand with the specified value - * @param supplier supplier for the value to be set - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete withExpand(final Supplier supplier) { - return copy().withQueryParam("expand", supplier.get()); - } - - /** - * add additional expand query parameter - * @param supplier supplier for the value to be added - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete addExpand(final Supplier supplier) { - return copy().addQueryParam("expand", supplier.get()); - } - - /** - * set expand with the specified value - * @param op builder for the value to be set - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete withExpand(final Function op) { - return copy().withQueryParam("expand", op.apply(new StringBuilder())); - } - - /** - * add additional expand query parameter - * @param op builder for the value to be added - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete addExpand(final Function op) { - return copy().addQueryParam("expand", op.apply(new StringBuilder())); - } - - /** - * set expand with the specified values - * @param expand values to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete 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 - * @param expand values to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsByIDDelete - */ - public ByProjectKeyMeBusinessUnitsByIDDelete 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; - - ByProjectKeyMeBusinessUnitsByIDDelete that = (ByProjectKeyMeBusinessUnitsByIDDelete) 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 ByProjectKeyMeBusinessUnitsByIDDelete copy() { - return new ByProjectKeyMeBusinessUnitsByIDDelete(this); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDGet.java index 70963b2750e..0310b28e029 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Returns a Business Unit for a given id. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

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

      Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

      + *

      Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPost.java index 89c189067f6..cfa5b399277 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Updates a Business Unit for a given id. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPostString.java index 2e404383b6c..30568c81717 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Updates a Business Unit for a given id. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java index a25f97aef5c..3838380ec25 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java @@ -42,12 +42,4 @@ public ByProjectKeyMeBusinessUnitsByIDPost post( return post(op.apply(com.commercetools.api.models.me.MyBusinessUnitUpdateBuilder.of()).build()); } - public ByProjectKeyMeBusinessUnitsByIDDelete delete() { - return new ByProjectKeyMeBusinessUnitsByIDDelete(apiHttpClient, projectKey, ID); - } - - public ByProjectKeyMeBusinessUnitsByIDDelete delete(TValue version) { - return delete().withVersion(version); - } - } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsGet.java index c00d31db8c9..51e86e7c844 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Returns all of the authenticated Customer’s Business Units in a Project. Returns a 200 OK status if successful, or a ResourceNotFound error otherwise.

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

      Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.

      + *

      Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate and the Customer has access to them, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyDelete.java deleted file mode 100644 index 99e9e89d01c..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyDelete.java +++ /dev/null @@ -1,296 +0,0 @@ - -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 com.fasterxml.jackson.core.type.TypeReference; - -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}")
      - *            .me()
      - *            .businessUnits()
      - *            .withKey("{key}")
      - *            .delete()
      - *            .withVersion(version)
      - *            .execute()
      - * }
      - *
      - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ByProjectKeyMeBusinessUnitsKeyByKeyDelete extends - TypeApiMethod - 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 { - - @Override - public TypeReference resultType() { - return new TypeReference() { - }; - } - - private String projectKey; - private String key; - - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete(final ApiHttpClient apiHttpClient, String projectKey, String key) { - super(apiHttpClient); - this.projectKey = projectKey; - this.key = key; - } - - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete(ByProjectKeyMeBusinessUnitsKeyByKeyDelete 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/me/business-units/key=%s", encodePathParam(this.projectKey), - encodePathParam(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.business_unit.BusinessUnit.class); - } - - @Override - public CompletableFuture> execute( - final ApiHttpClient client) { - return execute(client, com.commercetools.api.models.business_unit.BusinessUnit.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 - * @param version value to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete withVersion(final TValue version) { - return copy().withQueryParam("version", version); - } - - /** - * add additional version query parameter - * @param version value to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete addVersion(final TValue version) { - return copy().addQueryParam("version", version); - } - - /** - * set version with the specified value - * @param supplier supplier for the value to be set - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete withVersion(final Supplier supplier) { - return copy().withQueryParam("version", supplier.get()); - } - - /** - * add additional version query parameter - * @param supplier supplier for the value to be added - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete addVersion(final Supplier supplier) { - return copy().addQueryParam("version", supplier.get()); - } - - /** - * set version with the specified value - * @param op builder for the value to be set - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete withVersion(final Function op) { - return copy().withQueryParam("version", op.apply(new StringBuilder())); - } - - /** - * add additional version query parameter - * @param op builder for the value to be added - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete addVersion(final Function op) { - return copy().addQueryParam("version", op.apply(new StringBuilder())); - } - - /** - * set version with the specified values - * @param version values to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete 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 - * @param version values to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete 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 - * @param expand value to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete withExpand(final TValue expand) { - return copy().withQueryParam("expand", expand); - } - - /** - * add additional expand query parameter - * @param expand value to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete addExpand(final TValue expand) { - return copy().addQueryParam("expand", expand); - } - - /** - * set expand with the specified value - * @param supplier supplier for the value to be set - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete withExpand(final Supplier supplier) { - return copy().withQueryParam("expand", supplier.get()); - } - - /** - * add additional expand query parameter - * @param supplier supplier for the value to be added - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete addExpand(final Supplier supplier) { - return copy().addQueryParam("expand", supplier.get()); - } - - /** - * set expand with the specified value - * @param op builder for the value to be set - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete withExpand(final Function op) { - return copy().withQueryParam("expand", op.apply(new StringBuilder())); - } - - /** - * add additional expand query parameter - * @param op builder for the value to be added - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete addExpand(final Function op) { - return copy().addQueryParam("expand", op.apply(new StringBuilder())); - } - - /** - * set expand with the specified values - * @param expand values to be set - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete 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 - * @param expand values to be added - * @param value type - * @return ByProjectKeyMeBusinessUnitsKeyByKeyDelete - */ - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete 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; - - ByProjectKeyMeBusinessUnitsKeyByKeyDelete that = (ByProjectKeyMeBusinessUnitsKeyByKeyDelete) 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 ByProjectKeyMeBusinessUnitsKeyByKeyDelete copy() { - return new ByProjectKeyMeBusinessUnitsKeyByKeyDelete(this); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyGet.java index ff6178af703..0d17c01bf47 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Returns a Business Unit for a given key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java index f25a11f8a5f..4817cb1f71f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

      Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

      + *

      Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPost.java index 18395a73d2f..2874da46f15 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Updates a Business Unit for a given key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPostString.java index 92fdfb06061..6f78603e62a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Updates a Business Unit for a given key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java index 70e219540a8..34bafb25982 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java @@ -42,12 +42,4 @@ public ByProjectKeyMeBusinessUnitsKeyByKeyPost post( return post(op.apply(com.commercetools.api.models.me.MyBusinessUnitUpdateBuilder.of()).build()); } - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete delete() { - return new ByProjectKeyMeBusinessUnitsKeyByKeyDelete(apiHttpClient, projectKey, key); - } - - public ByProjectKeyMeBusinessUnitsKeyByKeyDelete delete(TValue version) { - return delete().withVersion(version); - } - } 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 76487e1dda8..1b9beabafa8 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 @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Deletes the Customer specified in the customer:{id} scope. Returns a 200 OK status if successful.

      * *
      *
      diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeGet.java index 1bb39411126..a11f52b6399 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeGet.java @@ -20,7 +20,12 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

      Returns a Customer for a given Query Predicate. Returns a 200 OK status if successful.

      + *

      A ResourceNotFound error is returned in the following scenarios:

      + *
        + *
      • If no Customer exists for the given Query Predicate.
      • + *
      • If a Customer exists for the given Query Predicate, but does not have an id value that matches the customer:{id} scope.
      • + *
      * *
      *
      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 7031d7cdc71..b05f1139f21 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 @@ -17,7 +17,7 @@ /** *

      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 used with an optional 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.
      • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPostString.java index a06f98b88be..e6aaaeae77d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeLoginPostString.java @@ -18,7 +18,7 @@ /** *

        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 used with an optional 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.
        • 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 31be861d958..b5021ef998d 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 @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

          Updates the Customer specified in the customer:{id} scope. Returns a 200 OK status if successful.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePostString.java index 879f439978b..c854bde4f6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePostString.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

          Updates the Customer specified in the customer:{id} scope. Returns a 200 OK status if successful.

          * *
          *
          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 b833741b0c7..184d5611e41 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 @@ -16,7 +16,7 @@ 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.

          + *

          If used with an optional 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/ByProjectKeyMeSignupPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeSignupPostString.java index 35db7951e80..d0625364af0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeSignupPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeSignupPostString.java @@ -17,7 +17,7 @@ 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.

          + *

          If used with an optional 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/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java index 8bf4772b98d..cd3352b354d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java @@ -99,31 +99,7 @@ public static Object[][] requestWithMethodParameters() { .businessUnits() .withId("test_ID") .post(com.commercetools.api.models.me.MyBusinessUnitUpdate.of()) - .createHttpRequest(), "post", "test_projectKey/me/business-units/test_ID", }, - new Object[] { - apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withId("test_ID") - .delete() - .withVersion(2) - .createHttpRequest(), - "delete", "test_projectKey/me/business-units/test_ID?version=2", }, - new Object[] { - apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withId("test_ID") - .delete() - .withExpand("expand") - .createHttpRequest(), - "delete", "test_projectKey/me/business-units/test_ID?expand=expand", }, - new Object[] { apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withId("test_ID") - .delete() - .createHttpRequest(), "delete", "test_projectKey/me/business-units/test_ID", } }; + .createHttpRequest(), "post", "test_projectKey/me/business-units/test_ID", } }; } @DataProvider @@ -149,20 +125,6 @@ public static Object[][] executeMethodParameters() { .me() .businessUnits() .withId("test_ID") - .post(com.commercetools.api.models.me.MyBusinessUnitUpdate.of()), }, - new Object[] { apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withId("test_ID") - .delete() - .withVersion(2), }, - new Object[] { apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withId("test_ID") - .delete() - .withExpand("expand"), }, - new Object[] { - apiRoot.withProjectKey("test_projectKey").me().businessUnits().withId("test_ID").delete(), } }; + .post(com.commercetools.api.models.me.MyBusinessUnitUpdate.of()), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java index 0767860ced8..0fb8fc8e3f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java @@ -99,31 +99,7 @@ public static Object[][] requestWithMethodParameters() { .businessUnits() .withKey("test_key") .post(com.commercetools.api.models.me.MyBusinessUnitUpdate.of()) - .createHttpRequest(), "post", "test_projectKey/me/business-units/key=test_key", }, - new Object[] { - apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withKey("test_key") - .delete() - .withVersion(2) - .createHttpRequest(), - "delete", "test_projectKey/me/business-units/key=test_key?version=2", }, - new Object[] { - apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withKey("test_key") - .delete() - .withExpand("expand") - .createHttpRequest(), - "delete", "test_projectKey/me/business-units/key=test_key?expand=expand", }, - new Object[] { apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withKey("test_key") - .delete() - .createHttpRequest(), "delete", "test_projectKey/me/business-units/key=test_key", } }; + .createHttpRequest(), "post", "test_projectKey/me/business-units/key=test_key", } }; } @DataProvider @@ -149,23 +125,6 @@ public static Object[][] executeMethodParameters() { .me() .businessUnits() .withKey("test_key") - .post(com.commercetools.api.models.me.MyBusinessUnitUpdate.of()), }, - new Object[] { apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withKey("test_key") - .delete() - .withVersion(2), }, - new Object[] { apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withKey("test_key") - .delete() - .withExpand("expand"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey") - .me() - .businessUnits() - .withKey("test_key") - .delete(), } }; + .post(com.commercetools.api.models.me.MyBusinessUnitUpdate.of()), } }; } } diff --git a/references.txt b/references.txt index 059eadb18c4..a6cdc7ed81b 100644 --- a/references.txt +++ b/references.txt @@ -292,3 +292,4 @@ d3777f87ffd605785d0af34c175a0d61176413ca bbcf212f1c06136cd406dd802b8a208daaa1e732 dd82e076236554dd808fb9309d53cb2a207cb296 aa1065bc2b62370c10a6fd7f49098bd9ec71c3ad +6fbc0468427de97a13a8ae23c0d0c157b52b2f45